IMbnDeviceServicesContext::GetDeviceService method
Gets the IMbnDeviceService object that can be used for communicating with a device service on the Mobile Broadband device.
Syntax
HRESULT GetDeviceService(
[in] BSTR deviceServiceID,
[out, retval] IMbnDeviceService **mbnDeviceService
);
Parameters
- deviceServiceID [in]
-
The deviceServiceID of the Mobile Broadband device.
- mbnDeviceService [out, retval]
-
The IMbnDeviceService object.
Return value
The method can return one of the following values.
| Return code | Description |
|---|---|
|
The method completed successfully. |
|
An error was encountered when executing this method. |
Remarks
GetDeviceService may return an IMbnDeviceService object that already has a command or data session open. The calling process can check if the device service is already open.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
None supported |
|
IDL |
|
See also