// wificx.h
VOID WifiRequestSetBytesNeeded(
WIFIREQUEST Request,
UINT BytesNeeded
);
View the official Windows Driver Kit DDI referenceNo description available.
WiFiCx drivers call the WifiRequestSetBytesNeeded function to set a larger buffer size for a command message.
Request[_In_] A handle to the framework request object passed in from the EvtWifiDeviceSendCommand callback function.
BytesNeeded[_In_] The number of bytes needed.
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.
Handling WiFiCx command messages