FLT_PARAMETERS for IRP_MJ_SET_QUOTA union

Union component used when the MajorFunction field of the FLT_IO_PARAMETER_BLOCK structure for the operation is IRP_MJ_SET_QUOTA.

Syntax

typedef union _FLT_PARAMETERS {
  ...    ;
  struct {
    ULONG Length;
    PVOID QuotaBuffer;
    PMDL  MdlAddress;
  } SetQuota;
  ...    ;
} FLT_PARAMETERS, *PFLT_PARAMETERS;

Members

  • SetQuota: Structure containing the following members.

  • Length: Length, in bytes, of the buffer that QuotaBuffer points to.

  • QuotaBuffer: Pointer to a caller-supplied, FILE_QUOTA_INFORMATION-structured input buffer that contains the quota information to be set. This member is optional and can be NULL if a MDL is provided in MdlAddress. See Remarks.

  • MdlAddress: Address of a memory descriptor list (MDL) that describes the buffer that QuotaBuffer points to. This member is optional and can be NULL if a buffer is provided in QuotaBuffer. See Remarks.

Remarks

The FLT_PARAMETERS structure for IRP_MJ_SET_QUOTA operations contains the parameters for a set-quota-information operation represented by a callback data (FLT_CALLBACK_DATA) structure. It is contained in an FLT_IO_PARAMETER_BLOCK structure.

If both a QuotaBuffer and MdlAddress buffer are provided, it is recommended that minifilters use the MDL. The memory that QuotaBuffer points to is valid when it is a user mode address being accessed within the context of the calling process, or if it is a kernel mode address.

If a minifilter changes the value of MdlAddress, then after its post operation callback, Filter Manager will free the MDL currently stored in MdlAddress and restore the previous value of MdlAddress.

IRP_MJ_SET_QUOTA is an IRP-based operation.

Requirements

Requirement type Requirement
Header Fltkernel.h (include Fltkernel.h)

See also

FILE_QUOTA_INFORMATION

FLT_CALLBACK_DATA

FLT_IO_PARAMETER_BLOCK

FLT_IS_FASTIO_OPERATION

FLT_IS_FS_FILTER_OPERATION

FLT_IS_IRP_OPERATION

FLT_PARAMETERS

IoCheckQuotaBufferValidity

IRP_MJ_SET_QUOTA