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

The method completed successfully.

HRESULT_FROM_WIN32(ERROR_NOT_FOUND)

There is no available device matching the specified interface ID.

E_POINTER

The mbnDeviceServicesContext parameter is NULL.

E_OUTOFMEMORY

Could not allocate the required memory.

 

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

None supported

IDL

Mbnapi.idl

See also

IMbnDeviceServicesManager

 

 

Show: