IDot11AdHocNetworkNotificationSink::OnConnectFail method

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 codeDescription
S_OK

The method completed successfully.

E_FAIL

The method failed.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Adhoc.h

IDL

Adhoc.idl

See also

IDot11AdHocNetworkNotificationSink

 

 

Community Additions

ADD
Show:
© 2014 Microsoft