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 code | Description |
|---|---|
|
The method completed successfully. |
|
The device does not support any device services. |
|
The information is not available. The Mobile Broadband service is currently probing the device to retrieve this information. |
|
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 |
|
See also