EVT_NET_REQUEST_QUERY_DATA callback 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.

Implemented by the client driver to handle a specific OID query request.

Syntax

EVT_NET_REQUEST_QUERY_DATA EvtNetRequestQueryData;

void EvtNetRequestQueryData(
  NETREQUESTQUEUE RequestQueue,
  NETREQUEST Request,
  void *OutputBuffer,
  UINT OutputBufferLength
)
{...}

Parameters

RequestQueue

A handle to a net request queue object.

Request

A handle to a network request object.

OutputBuffer

A pointer to a caller-supplied buffer.

OutputBufferLength

The length, in bytes, of the request's output buffer, if an output buffer is available.

Return Value

This callback function does not return a value.

Remarks

To register an EVT_NET_REQUEST_QUERY_DATA callback function, the client driver calls NET_REQUEST_QUEUE_CONFIG_ADD_QUERY_DATA_HANDLER or NET_REQUEST_QUEUE_CONFIG_ADD_INITIALIZED_QUERY_DATA_HANDLER, and then calls NetRequestQueueCreate.

Your client driver can provide one or more specialized handlers for specific OID query requests. In addition, it can also provide a generic EVT_NET_REQUEST_DEFAULT_QUERY_DATA callback function.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.21
Header netrequestqueue.h
IRQL PASSIVE_LEVEL