IMbnRegistrationEvents::OnPacketServiceStateChange 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.

Notification method called by the Mobile Broadband service to indicate a change in the device packet service state.

Syntax

HRESULT OnPacketServiceStateChange(
  [in] IMbnRegistration *newInterface
);

Parameters

[in] newInterface

Pointer to an IMbnRegistration interface that represents the device whose packet service state has changed.

Return value

This method must return S_OK.

Remarks

The OnPacketServiceStateChange method is called by the Mobile Broadband service to signal a change in the packet service state of the device. This can occur if there is a change in the current data class, the available data class, or a packet attach network error. An application can use the passed IMbnRegistration interface to get updated state values.

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

IMbnRegistrationEvents