Disk Quota Interface Error Codes

The following error codes are custom HRESULT values defined in DSKQUOTA.H. They are returned by the disk quota interfaces, along with some of the standard HRESULT values.

Error Meaning
DQC_E_ACCESS_DENIED The caller has insufficient access rights.
DQC_E_BAD_PATHNAME The requested path name is invalid.
DQC_E_FILE_NOT_FOUND The specified user account cannot be located.
DQC_E_INITIALIZED The object has already been initialized. Multiple initialization is not allowed.
DQC_E_INSUFFICIENT_BUFFER There is insufficient memory to complete the operation.
DQC_E_INVALID_NAME The requested file path is invalid.
DQC_E_INVALID_SID The SID for the user is invalid.
DQC_E_LOCK_FAILED Failure to obtain an exclusive lock.
DQC_E_NO_MORE_ITEMS There are no more items in the enumeration.
DQC_E_NO_QUOTAS_FS The file system does not support quotas. Currently, the file system must be NTFS.
DQC_E_NO_QUOTAS_FSVER The file system version does not support quotas. Currently, the file system must be NTFS 5.0 or later.
DQC_E_NO_SID_MAPPING There is no mapping available for the SID.
DQC_E_NOT_INITIALIZED The object has not been initialized. Initialization must be completed before the operation can be performed.
DQC_E_NOT_SUPPORTED The operation or capability is not supported.
DQC_E_PATH_NOT_FOUND The requested file path was not found.
DQC_E_USER_HAS_FILES The user owns files on the volume.
DQC_E_USER_UNKNOWN The specified user is unknown.