RxCreateRxContext allocates a new RX_CONTEXT structure and initializes the data structure.
PRX_CONTEXT RxCreateRxContext( _In_opt_ PIRP Irp, _In_ PRDBSS_DEVICE_OBJECT RxDeviceObject, _In_ ULONG InitialContextFlags );
- Irp [in, optional]
A pointer to the IRP to be encapsulated by this RX_CONTEXT structure.
- RxDeviceObject [in]
A pointer to the device object to which this RX_CONTEXT and IRP apply.
- InitialContextFlags [in]
The set of initial values for the Flags member of the RX_CONTEXT data structure to be stored in the RX_CONTEXT structure. These initial values can be any combination of the following enumerations:
When this value is set, the IRP should be not be posted for later execution by the file system process, but should be waited on to complete.
When this value is set, the operation must succeed. This value is not currently used by RDBSS, but it may be used by network mini-redirector drivers.
When this value is set, the operation must succeed for non-blocking operations. This value is not currently used by RDBSS, but it may be used by network mini-redirector drivers.
RxCreateRxContext returns a pointer to an allocated RX_CONTEXT data structure on success or a NULL pointer on failure.
RxCreateRxContext calls RxInitializeContext to initialize the newly created RX_CONTEXT structure before returning.
RxCreateRxContext allocates non-paged pool memory when creating a new RX_CONTEXT data structure and sets the following value in the Flags member of the RX_CONTEXT:
When this value is set, the RX_CONTEXT structure was allocated from non-paged pool memory.