Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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) |