IMbnDeviceServicesManager::GetDeviceServicesContext 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.
Gets the IMbnDeviceServicesContext interface for a specific Mobile Broadband device
Syntax
HRESULT GetDeviceServicesContext(
[in] BSTR networkInterfaceID,
[out, retval] IMbnDeviceServicesContext **mbnDevicesContext
);
Parameters
[in] networkInterfaceID
A string that contains the ID of the Mobile Broadband device. The ID can be obtained using the InterfaceID property
[out, retval] mbnDevicesContext
Pointer to the address of the IMbnDeviceServicesContext for the device specified by networkInterfaceID or NULL if there is no matching interface.
Return value
The method can return one of the following values.
Return code | Description |
---|---|
|
The method completed successfully. |
|
There is no available device matching the specified interface ID. |
|
The mbnDeviceServicesContext parameter is NULL. |
|
Could not allocate the required memory. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | mbnapi.h |