IDot11AdHocNetworkNotificationSink::OnConnectFail method (adhoc.h)

Notifies the client that a connection attempt failed. The connection attempt may have been initiated by the client itself or by another application using the IDot11AdHocNetwork methods or the Native Wifi functions.

Syntax

HRESULT OnConnectFail(
  DOT11_ADHOC_CONNECT_FAIL_REASON eFailReason
);

Parameters

eFailReason

A DOT11_ADHOC_CONNECT_FAIL_REASON value that specifies the reason the connection attempt failed.

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.

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