DOT11EXTIHV_CONTROL callback function

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 operating system calls the IHV Extensions DLL Dot11ExtIhvControl function to allow independent hardware vendor (IHV) control of WLAN drivers or services.


DOT11EXTIHV_CONTROL Dot11extihvControl;

DWORD Dot11extihvControl(
  HANDLE hIhvExtAdapter,
  DWORD dwInBufferSize,
  PBYTE pInBuffer,
  DWORD dwOutBufferSize,
  PBYTE pOutBuffer,
  PDWORD pdwBytesReturned



The handle used by the IHV Extensions DLL to reference the WLAN adapter. This handle value was specified through a previous call to the Dot11ExtIhvInitAdapter IHV Handler function.


The size, in bytes, of the input control buffer pointed to by the pInBuffer parameter.


A pointer to the input control buffer.


The size, in bytes, of the output buffer (if provided) pointed to by the pOutBuffer parameter.


A pointer to the output buffer, if provided.


A pointer to a variable that contains the size, in bytes, of the response input/output buffer.

Return Value

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


The operating system calls this function when the WlanIhvControl function is called with the Type parameter set to a value of wlan_ihv_control_type_service. For a description of the WlanIhvControl function, see the Microsoft Windows SDK documentation.

Data transferred with this function is not validated, so the IHV is responsible for correctly parsing the input buffer.

The data buffer pointed to by the pdwBytesReturned parameter will always be returned. However, the buffer pointed to by pOutBuffer will be copied only if a valid pointer is provided and the value pointed to by pdwBytesReturned is less than or equal to dwOutBufferSize .


Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header wlanihv.h (include Wlanihv.h)

See Also