Skip to content

Latest commit

 

History

History
118 lines (98 loc) · 4.61 KB

nf-mbnapi-imbnregistration-getavailabledataclasses.md

File metadata and controls

118 lines (98 loc) · 4.61 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mbnapi.IMbnRegistration.GetAvailableDataClasses
IMbnRegistration::GetAvailableDataClasses (mbnapi.h)
Gets the available data classes in the current network.
GetAvailableDataClasses
GetAvailableDataClasses method [Microsoft Broadband Networks]
GetAvailableDataClasses method [Microsoft Broadband Networks]
IMbnRegistration interface
IMbnRegistration interface [Microsoft Broadband Networks]
GetAvailableDataClasses method
IMbnRegistration.GetAvailableDataClasses
IMbnRegistration::GetAvailableDataClasses
mbn.imbnregistration_getavailabledataclasses
mbnapi/IMbnRegistration::GetAvailableDataClasses
mbn\imbnregistration_getavailabledataclasses.htm
mbn
fb799232-0ef5-4fbd-9b7f-a106ef440a68
12/05/2018
GetAvailableDataClasses, GetAvailableDataClasses method [Microsoft Broadband Networks], GetAvailableDataClasses method [Microsoft Broadband Networks],IMbnRegistration interface, IMbnRegistration interface [Microsoft Broadband Networks],GetAvailableDataClasses method, IMbnRegistration.GetAvailableDataClasses, IMbnRegistration::GetAvailableDataClasses, mbn.imbnregistration_getavailabledataclasses, mbnapi/IMbnRegistration::GetAvailableDataClasses
mbnapi.h
Windows
Windows 7 [desktop apps \| UWP apps]
None supported
Mbnapi.idl
Windows
19H1
IMbnRegistration::GetAvailableDataClasses
mbnapi/IMbnRegistration::GetAvailableDataClasses
c++
APIRef
kbSyntax
COM
mbnapi.h
IMbnRegistration.GetAvailableDataClasses

IMbnRegistration::GetAvailableDataClasses

-description

Important

Starting in Windows 10, version 1803, the Win32 APIs described in this section are replaced by the Windows Runtime APIs in the Windows.Networking.Connectivity namespace.

Gets the available data classes in the current network.

-parameters

-param availableDataClasses [out]

A pointer to a bitwise OR combination of MBN_DATA_CLASS values. This parameter is meaningful only if the function returns S_OK.

-returns

This method can return one of these values.

Return code Description
S_OK
The operation was successful.
E_PENDING
The data classes are not available. the Mobile Broadband service is currently probing the device for the information. When the data classes are available, the Mobile Broadband service will call the OnPacketServiceStateChange method of IMbnRegistrationEvents.
E_MBN_PIN_REQUIRED
A PIN is required to get the data classes.

-remarks

GetAvailableDataClasses returns the set of data class possible in the current network. These values can be set to MBN_DATA_CLASS_NONE if value is not known.

Available data classes can change automatically as a device moves from one cell to another. Whenever such a change occurs, the Mobile Broadband service will notify applications by calling the OnPacketServiceStateChange method of IMbnRegistrationEvents.

For the recoverable error E_MBN_PIN_REQUIRED, the Mobile Broadband service will again try to fetch this information from the device when the error condition is over (when a PIN is entered). Afterwards, the Mobile Broadband service will call the OnPacketServiceStateChange method of IMbnRegistrationEvents.

-see-also

IMbnRegistration