Platform SDK: Files and I/O

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
ERROR_ACCESS_DENIED The caller has insufficient access rights.
ERROR_BAD_PATHNAME The requested path name is invalid.
ERROR_FILE_NOT_FOUND The specified user account cannot be located.
ERROR_INITIALIZED The object has already been initialized. Multiple initialization is not allowed.
ERROR_INSUFFICIENT_BUFFER There is insufficient memory to complete the operation.
ERROR_INVALID_NAME The requested file path is invalid.
ERROR_INVALID_SID The SID for the user is invalid.
ERROR_LOCK_FAILED Failure to obtain an exclusive lock.
ERROR_NO_MORE_ITEMS There are no more items in the enumeration.
ERROR_NO_QUOTAS_FS The file system does not support quotas. Currently, the file system must be NTFS.
ERROR_NO_QUOTAS_FSVER The file system version does not support quotas. Currently, the file system must be Windows 2000 NTFS or later.
ERROR_NO_SID_MAPPING There is no mapping available for the SID.
ERROR_NOT_INITIALIZED The object has not been initialized. Initialization must be completed before the operation can be performed.
ERROR_NOT_SUPPORTED The operation or capability is not supported.
ERROR_PATH_NOT_FOUND The requested file path was not found.
ERROR_USER_HAS_FILES The user owns files on the volume.
ERROR_USER_UNKNOWN The specified user is unknown.