Bewerken

Delen via


WifiRequestSetBytesNeeded function (wificx.h)

WiFiCx drivers call the WifiRequestSetBytesNeeded function to set a larger buffer size for a command message.

Syntax

void WifiRequestSetBytesNeeded(
  WIFIREQUEST Request,
  UINT        BytesNeeded
);

Parameters

Request

[In] A handle to the framework request object passed in from the EvtWifiDeviceSendCommand callback function.

BytesNeeded

[In] The number of bytes needed.

Return value

None

Remarks

If WiFiCx sends a set command to the client driver's EvtWifiDeviceSendCommand callback function and the request doesn't contain a large enough buffer, the driver should call WifiRequestSetBytesNeeded to set the required buffer size and then fail the request with status BUFFER_OVERFLOW.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
Header wificx.h
IRQL <= DISPATCH_LEVEL

See also

EvtWifiDeviceSendCommand

Handling WiFiCx command messages