IoCheckQuotaBufferValidity - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

NTSTATUS IoCheckQuotaBufferValidity(
  [in]  PFILE_QUOTA_INFORMATION QuotaBuffer,
  [in]  ULONG                   QuotaLength,
  [out] PULONG                  ErrorOffset
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-iocheckquotabuffervalidity)

IoCheckQuotaBufferValidity function

Description

The IoCheckQuotaBufferValidity routine checks whether the specified quota buffer is valid.

Parameters

QuotaBuffer [in]

Pointer to the buffer containing the quota entries to be checked.

QuotaLength [in]

Length, in bytes, of QuotaBuffer.

ErrorOffset [out]

A variable to receive the offset of the offending entry in the quota buffer if an error is found. This variable is only valid if an error occurs.

Return value

IoCheckQuotaBufferValidity returns STATUS_SUCCESS if the quota buffer is valid. Otherwise, it returns STATUS_DATATYPE_MISALIGNMENT if the quota buffer is not ULONG-aligned. For all other errors, including misalignment of entries in the buffer, IoCheckQuotaBufferValidity returns STATUS_QUOTA_LIST_INCONSISTENT.

Remarks

IoCheckQuotaBufferValidity checks each FILE_QUOTA_INFORMATION entry in the specified quota buffer to ensure that the following conditions are met:

In addition, IoCheckQuotaBufferValidity checks the quota buffer to ensure that the following conditions are met:

To be valid, the quota buffer must meet all of these conditions.

See also

FILE_QUOTA_INFORMATION

IRP_MJ_QUERY_QUOTA

IRP_MJ_SET_QUOTA