IDot11AdHocNetworkNotificationSink::OnStatusChange method (adhoc.h)

Notifies the client that the connection status of the network has changed.

Syntax

HRESULT OnStatusChange(
  DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus
);

Parameters

eStatus

A DOT11_ADHOC_NETWORK_CONNECTION_STATUS value that specifies the updated connection status.

Return value

Possible return values include, but are not limited to, the following.

Return code Description
S_OK
The method completed successfully.
E_FAIL
The method failed.

Remarks

This notification is triggered when the connection status changes as a result of connection and disconnection requests issued by the current application. It is also triggered when other applications issue successful connection and disconnection requests using the IDot11AdHocNetwork methods or the Native Wifi functions. Connection and disconnection requests triggered by the user interface will also trigger the OnStatusChange notification.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header adhoc.h

See also

IDot11AdHocNetworkNotificationSink