FltSetQuotaInformationFile function

The FltSetQuotaInformationFile routine modifies quota entries for a file object.

Syntax

NTSTATUS FLTAPI FltSetQuotaInformationFile(
  PFLT_INSTANCE Instance,
  PFILE_OBJECT  FileObject,
  PVOID         Buffer,
  ULONG         Length
);

Parameters

Instance

An opaque instance pointer for the minifilter driver instance that the operation is to be sent to. The instance must be attached to the volume where the file resides.

FileObject

The file object pointer for the file.

Buffer

A pointer to a caller-supplied, FILE_GET_QUOTA_INFORMATION-structured input buffer that contains the quota information entries to be set.

Length

The length, in bytes, of the buffer that the Buffer parameter points to.

Return Value

FltSetQuotaInformationFile returns STATUS_SUCCESS or an appropriate NTSTATUS value such as the following.

Return code Description
STATUS_FLT_DELETING_OBJECT
The instance or volume is being torn down. This is an error code.

Requirements

   
Windows version Available starting with Windows 8.
Target Platform Universal
Header fltkernel.h (include Fltkernel.h)
Library FltMgr.lib
DLL Fltmgr.sys
IRQL PASSIVE_LEVEL

See Also

FILE_GET_QUOTA_INFORMATION

FltQueryQuotaInformationFile

ZwSetQuotaInformationFile