FLT_PARAMETERS for IRP_MJ_WRITE union

The following union component is used when the MajorFunction field of the FLT_IO_PARAMETER_BLOCK structure for the operation is IRP_MJ_WRITE.

Syntax


typedef union _FLT_PARAMETERS {
  ...    ;
  struct {
    ULONG         Length;
    ULONG         Key;
    LARGE_INTEGER ByteOffset;
    PVOID         WriteBuffer;
    PMDL          MdlAddress;
  } Write;
  ...    ;
} FLT_PARAMETERS, *PFLT_PARAMETERS;

Members

Write

Structure containing the following members.

Length

Length, in bytes, of the data to be written.

Key

Key value associated with a byte-range lock on the target file.

ByteOffset

Starting byte offset within the file of the data to be written.

WriteBuffer

Pointer to a buffer that contains the data to be written to the file.

MdlAddress

Address of a memory descriptor list (MDL) that describes the buffer that the WriteBuffer member points to. This member is optional and can be NULL.

Remarks

The FLT_PARAMETERS structure for IRP_MJ_WRITE operations contains the parameters for a write operation represented by a callback data (FLT_CALLBACK_DATA) structure. It is contained in an FLT_IO_PARAMETER_BLOCK structure.

IRP_MJ_WRITE can be an IRP-based operation or a fast I/O operation.

Requirements

Header

Fltkernel.h (include Fltkernel.h)

See also

FLT_CALLBACK_DATA
FLT_IO_PARAMETER_BLOCK
FLT_IS_FASTIO_OPERATION
FLT_IS_FS_FILTER_OPERATION
FLT_IS_IRP_OPERATION
FLT_PARAMETERS
FltWriteFile
IRP_MJ_WRITE
ZwWriteFile

 

 

Send comments about this topic to Microsoft

Show: