EVT_NET_REQUEST_DEFAULT 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 as the default handler for object identifier (OID) requests that are not query, set, or method requests.

Syntax

EVT_NET_REQUEST_DEFAULT EvtNetRequestDefault;

void EvtNetRequestDefault(
  NETREQUESTQUEUE RequestQueue,
  NETREQUEST Request,
  NDIS_REQUEST_TYPE RequestType,
  NDIS_OID Oid,
  void *InputOutputBuffer,
  UINT InputBufferLength,
  UINT OutputBufferLength
)
{...}

Parameters

RequestQueue

A handle to the net request queue object that is associated with the I/O request.

Request

A handle to a network request object.

RequestType

The request type as one of the NDIS_REQUEST_TYPE enumeration values.

Oid

The object identifier of the requested operation. The value is an OID_XXX code.

InputOutputBuffer

A pointer to a buffer into which the client driver or NetAdapterCx returns information for the specified request.

InputBufferLength

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

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

Register your implementation of this callback function by setting the appropriate member of NET_REQUEST_QUEUE_CONFIG and then calling NetRequestQueueCreate.

If NDIS_REQUEST_TYPE is not query, set, or method, NetAdapterCx calls the client driver's EVT_NET_REQUEST_DEFAULT handler with the request. If the client driver has not provided this callback, the request fails.

The contents of the InputOutputBuffer, InputBufferLength, and OutputBufferLength parameters are specific to NDIS_REQUEST_TYPE.

Requirements

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

See Also

MiniportOidRequest

NDIS_OID_REQUEST