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 [desktop apps | Windows Store apps]

IDL

Mbnapi.idl

See also

IMbnDeviceServicesContext

 

 

Community Additions

ADD
Show:
© 2014 Microsoft