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::EnumerateDeviceServices method

Gets the list of supported device services by the Mobile Broadband device.

Syntax


HRESULT EnumerateDeviceServices(
  [out, retval] SAFEARRAY(MBN_DEVICE_SERVICE) **deviceServices
);

Parameters

deviceServices [out, retval]

Pointer to an array of MBN_DEVICE_SERVICE structures that contains the list of device service supported by the device. If EnumerateDeviceServices returns any value other than S_OK, deviceServices is NULL. Otherwise, upon completion, the calling program must free the allocated memory. Before freeing the array by calling SafeArrayDestroy, the calling program must also free all the BSTRs in theMBN_DEVICE_SERVICE structure by calling SysFreeString.

Return value

The method can return one of the following values.

Return codeDescription
S_OK

The method completed successfully.

HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)

The device does not support any device services.

E_PENDING

The information is not available. The Mobile Broadband service is currently probing the device to retrieve this information.

Other

An error was encountered when executing this method.

 

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