IMbnDeviceServicesContext::GetDeviceService 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 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
[in] deviceServiceID
The deviceServiceID of the Mobile Broadband device.
[out, retval] mbnDeviceService
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
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | mbnapi.h |