// netrxqueue.h
NTSTATUS NetRxQueueCreate(
[_Inout_] NETRXQUEUE_INIT *NetRxQueueInit,
[_In_opt_] WDF_OBJECT_ATTRIBUTES *RxQueueAttributes,
[_In_] NET_PACKET_QUEUE_CONFIG *Configuration,
[_Out_] NETPACKETQUEUE *PacketQueue
);
View the official Windows Driver Kit DDI referenceNo description available.
Creates a net receive queue object.
NetRxQueueInit [_Inout_]A pointer to the NETRXQUEUE_INIT structure that the client driver received in its EVT_NET_ADAPTER_CREATE_RXQUEUE callback function.
RxQueueAttributes [_In_opt_]A pointer to caller-allocated and initialized WDF_OBJECT_ATTRIBUTES structure. This parameter is optional and can be WDF_NO_OBJECT_ATTRIBUTES. However, if the client driver supplies this parameter, the ParentObject field must be NULL.
Configuration [_In_]A pointer to a caller-allocated NET_PACKET_QUEUE_CONFIG structure.
PacketQueue [_Out_]A pointer to a location that receives a handle to the new net receive queue object.
This function returns STATUS_SUCCESS if the operation succeeds. Otherwise, this function may return an appropriate NTSTATUS error code.
The client calls NetRxQueueCreate from within its EVT_NET_ADAPTER_CREATE_RXQUEUE event callback function. For info on assigning context space to the new object, see Framework Object Context Space.
The NETPACKETQUEUE object is a standard WDF object. The framework manages its deletion, which occurs when the parent NETADAPTER object is deleted.