次の方法で共有


Dot11ExtIhvInitAdapter (Compact 2013)

3/26/2014

The operating system calls this function to have the IHV Extensions DLL allocate and initialize an adapter context.

Syntax

DWORD WINAPI Dot11ExtIhvInitAdapter(
  PDOT11_ADAPTER pDot11Adapter,
  HANDLE hDot11SvcHandle,
  PHANDLE phIhvExtAdapter
);

Parameters

  • pDotAdapter
    [in] A pointer to a DOT11_ADAPTER structure, which identifies the adapter to be initialized.
  • hDot11SvcHandle
    [in] A handle assigned by the operating system for the adapter. The IHV Extensions DLL must use this handle value when it calls any IHV Extensibility function that declares an hDot11SvcHandle parameter, such as Dot11ExtPreAssociateCompletion.
  • phIhvExtAdapter
    [out] A pointer to a handle variable. The IHV Extensions DLL must assign a unique handle value for the adapter and set *phIhvExtAdapter to the handle value The operating system uses this handle value when it calls any IHV Handler function that declares an hIhvExtAdapter parameter, such as Dot11ExtIhvPerformPreAssociate.

    Typically, the IHV Extensions DLL allocates a state array for the adapter context and returns the address of the array as the handle value.

Return Value

If the call succeeds, the function returns ERROR_SUCCESS. Otherwise, it returns an error code defined in Winerror.h.

Remarks

The operating system calls the Dot11ExtIhvInitAdapter function when a WLAN adapter becomes available and enabled for use.

Requirements

Header

wlanihv.h

See Also

Reference

Native 802.11 IHV Handler Functions
DOT11_ADAPTER
Dot11ExtIhvPerformPreAssociate
Native 802.11 IHV Extensions DLL