IMbnDeviceServicesEvents::OnEventNotification method (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.

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

Syntax

HRESULT OnEventNotification(
  [in] IMbnDeviceService *deviceService,
  [in] ULONG             eventID,
  [in] SAFEARRAY         *deviceServiceData
);

Parameters

[in] deviceService

The IMbnDeviceService object for which the event notification was received.

[in] eventID

An identifier for the event.

[in] deviceServiceData

A byte array containing the data returned by underlying device.

Return value

The method must return the following value.

Return code Description
S_OK
The method completed successfully.

Remarks

The deviceServiceData byte array contains the byte-by-byte copy of data returned by the device. The Mobile Broadband service will free the memory after the function call returns. If an application wants to use this data then it should copy the contents in its own memory.

Requirements

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

See also

IMbnDeviceServicesEvents