IMbnDeviceServicesManager::GetDeviceServicesContext method
Gets the IMbnDeviceServicesContext interface for a specific Mobile Broadband device
Syntax
HRESULT GetDeviceServicesContext(
[in] BSTR networkInterfaceID,
[out, retval] IMbnDeviceServicesContext **mbnDevicesContext
);
Parameters
- networkInterfaceID [in]
-
A string that contains the ID of the Mobile Broadband device. The ID can be obtained using the InterfaceID property
- mbnDevicesContext [out, retval]
-
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
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
None supported |
|
IDL |
|
See also