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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for