IDot11AdHocInterfaceNotificationSink::OnConnectionStatusChange method (adhoc.h)

Notifies the client that the connection status of the network associated with the NIC has changed.

Syntax

HRESULT OnConnectionStatusChange(
  DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus
);

Parameters

eStatus

A pointer to a DOT11_ADHOC_NETWORK_CONNECTION_STATUS value that specifies the new connection state.

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.

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

IDot11AdHocInterfaceNotificationSink