// wdfrequest.h
typedef struct _WDF_REQUEST_PARAMETERS {
USHORT Size;
UCHAR MinorFunction;
WDF_REQUEST_TYPE Type;
union {
struct {
PIO_SECURITY_CONTEXT SecurityContext;
ULONG Options;
USHORT POINTER_ALIGNMENT FileAttributes;
USHORT ShareAccess;
ULONG POINTER_ALIGNMENT EaLength;
} Create;
struct {
size_t Length;
ULONG POINTER_ALIGNMENT Key;
LONGLONG DeviceOffset;
} Read;
struct {
size_t Length;
ULONG POINTER_ALIGNMENT Key;
LONGLONG DeviceOffset;
} Write;
struct {
size_t OutputBufferLength;
size_t POINTER_ALIGNMENT InputBufferLength;
ULONG POINTER_ALIGNMENT IoControlCode;
PVOID Type3InputBuffer;
} DeviceIoControl;
struct {
PVOID Arg1;
PVOID Arg2;
ULONG POINTER_ALIGNMENT IoControlCode;
PVOID Arg4;
} Others;
} Parameters;
} WDF_REQUEST_PARAMETERS, *PWDF_REQUEST_PARAMETERS;
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF and UMDF]
The WDF_REQUEST_PARAMETERS structure receives parameters that are associated with an I/O request.
SizeThe size, in bytes, of this structure.
MinorFunctionThe IRP minor function code, if any, that is associated with the I/O request. Some major function codes have associated minor function codes.
TypeA WDF_REQUEST_TYPE-typed value that identifies the I/O request's type.
ParametersParameters that are unique for each IRP major function code. This member contains a subset of the Parameters member of the IO_STACK_LOCATION structure.
Parameters.CreateParameters for IRP_MJ_CREATE.
Parameters.Create.SecurityContextParameters.Create.OptionsParameters.Create.FileAttributesParameters.Create.ShareAccessParameters.Create.EaLengthParameters.ReadParameters for IRP_MJ_READ.
Parameters.Read.LengthParameters.Read.KeyParameters.Read.DeviceOffsetParameters.WriteParameters for IRP_MJ_WRITE.
Parameters.Write.LengthParameters.Write.KeyParameters.Write.DeviceOffsetParameters.DeviceIoControlParameters for IRP_MJ_DEVICE_CONTROL and IRP_MJ_INTERNAL_DEVICE_CONTROL.
Parameters.DeviceIoControl.OutputBufferLengthParameters.DeviceIoControl.InputBufferLengthParameters.DeviceIoControl.IoControlCodeParameters.DeviceIoControl.Type3InputBufferParameters.OthersUse of this member is defined by the driver stack.
Parameters.Others.Arg1Parameters.Others.Arg2Parameters.Others.IoControlCodeParameters.Others.Arg4The WDF_REQUEST_PARAMETERS structure is used as input to WdfRequestGetParameters. Drivers must call WDF_REQUEST_PARAMETERS_INIT to initialize this structure before they call WdfRequestGetParameters.