IMbnConnectionEvents::OnConnectStateChange 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 that indicates whether the connection state of the device has changed.

Syntax

HRESULT OnConnectStateChange(
  [in] IMbnConnection *newConnection
);

Parameters

[in] newConnection

An IMbnConnection interface that represents the connection on which the state has changed due to a system or network initiated change.

Return value

This method must return S_OK.

Remarks

An application can use IMbnConnection to get the updated connection state.

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

IMbnConnectionEvents