Partager via


Dot11ExtIhvControl (Compact 2013)

3/26/2014

The operating system calls this function to allow independent hardware vendor (IHV) control of WLAN drivers or services.

Syntax

DWORD WINAPI Dot11ExtIhvControl (
    HANDLE hIhvExtAdapter,
    DWORD dwInBufferSize,
    PBYTE pInBuffer,
    DWORD dwOutBufferSize,
    PBYTE pOutBuffer,
    PDWORD pdwBytesReturned
);

Parameters

  • hIhvExtAdapter
    [in] The handle that is 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.
  • dwInBufferSize
    [in] The size, in bytes, of the input control buffer pointed to by the pInBuffer parameter
  • pInBuffer
    [in] A pointer to the input control buffer
  • dwOutBufferSize
    [in] The size, in bytes, of the output buffer (if provided) pointed to by the pOutBuffer parameter
  • pOutBuffer
    [out] A pointer to the output buffer, if provided
  • pwdBytesReturned
    [out] 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.

Remarks

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.

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.

Requirements

Header

wlanihv.h

See Also

Reference

Native 802.11 IHV Handler Functions
Dot11ExtIhvInitAdapter
Native 802.11 IHV Extensions DLL

Other Resources

WlanIhvControl