IMbnRegistration::GetPacketAttachNetworkError method (mbnapi.h)

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 network error from a packet attach operation.

Syntax

HRESULT GetPacketAttachNetworkError(
  [out] ULONG *packetAttachNetworkError
);

Parameters

[out] packetAttachNetworkError

A pointer to an error code returned by the last failed network packet attach operation. This is set to 0 if there is no error or if the error code is unknown.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

For GSM devices, the error codes are defined in 3GPP specification 24.008 as "cause codes". For CDMA devices, the codes are device and network specific.

The error codes are cleared when the packet attach operation completes successfully.

Whenever there is a change in the network error value, the Mobile Broadband service will call the OnPacketServiceStateChange method of IMbnRegistrationEvents.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header mbnapi.h

See also

IMbnRegistration