IMbnDeviceServicesEvents interface (mbnapi.h)

Important

Starting in Windows 10, version 1803, the Win32 APIs described in this section are replaced by the Windows Runtime APIs in the Windows.Networking.Connectivity namespace.

Signals an application about notification events related to Mobile Broadband device services on the system.

Inheritance

The IMbnDeviceServicesEvents interface inherits from the IUnknown interface. IMbnDeviceServicesEvents also has these types of members:

Methods

The IMbnDeviceServicesEvents interface has these methods.

 
IMbnDeviceServicesEvents::OnCloseCommandSessionComplete

Notification method indicating that a device service CloseCommandSession request has completed.
IMbnDeviceServicesEvents::OnCloseDataSessionComplete

Notification method indicating that a device service session CloseDataSession request has completed.
IMbnDeviceServicesEvents::OnEventNotification

Notification method signaling a device service state change event from the Mobile Broadband device.
IMbnDeviceServicesEvents::OnInterfaceStateChange

Notification method that signals a change in the state of device services on the system.
IMbnDeviceServicesEvents::OnOpenCommandSessionComplete

Notification method indicating that a device service CommandSessionOpen request has completed.
IMbnDeviceServicesEvents::OnOpenDataSessionComplete

Notification method indicating that a device service OpenDataSession request has completed.
IMbnDeviceServicesEvents::OnQueryCommandComplete

Notification method indicating that a device service QUERY request has completed.
IMbnDeviceServicesEvents::OnQuerySupportedCommandsComplete

Notification method indicating that a query for the messages supported on a device service has completed.
IMbnDeviceServicesEvents::OnReadData

Notification for data being read from a device service data session.
IMbnDeviceServicesEvents::OnSetCommandComplete

Notification method indicating that a device service SET request has completed.
IMbnDeviceServicesEvents::OnWriteDataComplete

Notification method indicating that a device service session Write request has completed.

Remarks

The following procedure describes how to register for notifications.

  1. Get an IConnectionPoint interface by calling QueryInterface on an IMbnDeviceServicesManager object.
  2. Call FindConnectionPoint on the returned interface and pass IID_IMbnDeviceServicesEvents to RIID.
  3. Call Advise on the returned connection point and pass a pointer to an IUnknown interface on an object that implements IMbnDeviceServicesEvents 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

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header mbnapi.h