IMbnConnectionEvents interface
This notification interface signals an application about change and completion status of asynchronous connection requests.
Members
The IMbnConnectionEvents interface inherits from the IUnknown interface. IMbnConnectionEvents also has these types of members:
Methods
The IMbnConnectionEvents interface has these methods.
| Method | Description |
|---|---|
| OnConnectComplete |
A connection operation has completed. |
| OnConnectStateChange |
The connection state of the device has changed. |
| OnDisconnectComplete |
A disconnect operation has completed. |
| OnVoiceCallStateChange |
The voice call state has changed. |
Remarks
The following procedure describes how to register for notifications.
- Get an IConnectionPointContainer interface by calling QueryInterface on an IMbnConnectionManager object.
- Call FindConnectionPoint on the returned interface and pass IID_IMbnConnectionEvents to riid.
- Call Advise on the returned connection point and pass a pointer to an IUnknown interface on an object that implements IMbnConnectionEvents to pUnk.
Notifications can be terminated by calling Unadvise on the connection point returned in step 2.
To view some code that registers for COM notifications, see the Client section of the COM Connection Points article.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
None supported |
|
IDL |
|