NetRequestRetrieveInputOutputBuffer function

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

Retrieves the input/output buffer associated with a NETREQUEST object.

Syntax

NTSTATUS NetRequestRetrieveInputOutputBuffer(
  NETREQUEST Request,
  UINT       MininumInputLengthRequired,
  UINT       MininumOutputLengthRequired,
  PVOID      *InputOutputBuffer,
  UINT       *InputBufferLength,
  UINT       *OutputBufferLength
);

Parameters

Request

A handle to a network request object.

MininumInputLengthRequired

The minimum input length needed for InputOutputBuffer. If the buffer's InputOutputBuffer is less than the minimum required, this routine returns STATUS_BUFFER_TOO_SMALL.

MininumOutputLengthRequired

The minimum output length needed for InputOutputBuffer. If the buffer's OutputBufferLength is less than the minimum required, this routine returns STATUS_BUFFER_TOO_SMALL.

InputOutputBuffer

Address to a location that receives a pointer to the buffer.

InputBufferLength

Address to a location that receives the actual input length of InputOutputBuffer.

OutputBufferLength

Address to a location that receives the actual output length of InputOutputBuffer.

Return Value

The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method may return an appropriate NTSTATUS error code.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.21
Header netrequest.h (include netadaptercx.h)
IRQL <= DISPATCH_LEVEL