IMbnDeviceServicesEvents::OnReadData 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 for data being read from a device service data session.
Syntax
HRESULT OnReadData(
[in] IMbnDeviceService *deviceService,
[in] SAFEARRAY *deviceServiceData
);
Parameters
[in] deviceService
The IMbnDeviceService session object on which the data was read.
[in] deviceServiceData
A byte array containing the data read from the underlying device service session.
Return value
The method must return the following value.
Return code | Description |
---|---|
|
The method completed successfully. |
Remarks
This byte array contains the byte-by-byte copy of data read from the device service session. The Mobile Broadband service will free the memory for this field 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 |