IObexDevice::Connect (Compact 2013)
This method initiates an Object Exchange (OBEX) Protocol transaction with a specific remote device.
HRESULT Connect( LPCWSTR pszPassword, DWORD dwCapability, IHeaderCollection* pHeaders );
[in] Password for the connection (optional). If a password is unnecessary, set this parameter to NULL.
[in] Reserved. Set to 0.
[in] Points to the header list that may provide the server with additional information. For example, if the list contains the Target header, then the client can use it retrieve the UUID of the server. If the Target header is not included in the list, then the connection is made to the default service, Inbox Server.
If a password is not specified in pszPassword and the server requires a password, a callback is made to the interface registered on the main OBEX object. If no interface is registered for callbacks and a password is required, the method returns an error. If the password is not specified, this method uses the password specified in IObexDevice::SetPassword.
|This method does not make the connection but it sends a new CONNECT packet. The physical transport might already exist and be reused.|
To connect to a custom service, refer to that service using its associated GUID.