Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 codeDescription
S_OK

The method completed successfully.

Other

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

Mbnapi.idl

See also

IMbnDeviceServicesContext

 

 

Show:
© 2017 Microsoft