// wlanihv.h
DOT11EXT_PRE_ASSOCIATE_COMPLETION Dot11extPreAssociateCompletion;
DWORD Dot11extPreAssociateCompletion(
[in, optional] HANDLE hDot11SvcHandle,
[in, optional] HANDLE hConnectSession,
[in] DWORD dwReasonCode,
[in] DWORD dwWin32Error
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Important The Native 802.11 Wireless LAN interface is deprecated in Windows 10 and later. Please use the WLAN Device Driver Interface (WDI) instead. For more information about WDI, see WLAN Universal Windows driver model.
The IHV Extensions DLL calls the Dot11ExtPreAssociateCompletion function to asynchronously complete a pre-association operation initiated through a call to the Dot11ExtIhvPerformPreAssociate IHV Handler function.
hDot11SvcHandle [in, optional]The handle used by the operating system to reference the wireless LAN (WLAN) adapter. This handle value was specified through a previous call to the Dot11ExtIhvInitAdapter IHV Handler function.
hConnectSession [in, optional]The handle used by the operating system to reference the connection session with the basic service set (BSS) network. This handle value was specified through a previous call to the Dot11ExtIhvPerformPreAssociate IHV Handler function.
dwReasonCode [in]A value that provides additional information for the completion status of the pre-association operation. The IHV Extensions DLL must set dwReasonCode to an L2_REASON_CODE_xxxx value, which are defined in L2cmn.h.
The IHV Extensions DLL returns the general completion status of the pre-association operation through the dwWin32Error parameter. Typically, the IHV Extensions DLL sets dwReasonCode to a value in the range from L2_REASON_CODE_IHV_BASE to (L2_REASON_CODE_IHV_BASE+ L2_REASON_CODE_GROUP_SIZE-1).
dwWin32Error [in]The completion status of the pre-association operation as defined by an error code within Winerror.h. If the operation completes successfully, the IHV Extensions DLL must set dwWin32Error to ERROR_SUCCESS.
If the call succeeds, the function returns ERROR_SUCCESS. Otherwise, it returns an error code defined in Winerror.h.
DWORD WINAPI * Dot11ExtPreAssociateCompletion(
_In_opt_ HANDLE hDot11SvcHandle,
_In_opt_ HANDLE hConnectSession,
_In_ DWORD dwReasonCode,
_In_ DWORD dwWin32Error
);
The IHV Extensions DLL must follow these guidelines when calling the Dot11ExtPreAssociateCompletion function.
If the pre-association operation completed successfully, the IHV Extensions DLL must set dwReasonCode to one of the following:
If the pre-association operation completed with a failure, the IHV Extensions DLL must not set dwReasonCode to L2_REASON_CODE_SUCCESS. Instead, the DLL must set dwReasonCode to one of the following:
Native 802.11 IHV Handler Functions
Dot11ExtIhvPerformPreAssociate