Platform SDK: Files and I/O |
Creates an enumerator object for enumerating quota users on the volume. The newly created object implements the IEnumDiskQuotaUsers interface.
HRESULT CreateEnumUsers( PSID *rgpUserSids, DWORD cpSids, DWORD fNameResolution, PENUM_DISKQUOTA_USERS *ppEnum );
Value | Meaning |
---|---|
DISKQUOTA_USERNAME_RESOLVE_NONE | Do not resolve user account information. |
DISKQUOTA_USERNAME_RESOLVE_SYNC | Resolve user account information synchronously. The IEnumDiskQuotaUsers::Next method returns when the information is resolved. If the information exists in the disk quota SID cache, it is returned immediately. Otherwise, the method must locate the information. This can take several seconds. |
DISKQUOTA_USERNAME_RESOLVE_ASYNC | Resolve user account information asynchronously. The IEnumDiskQuotaUsers::Next method returns immediately. The caller must implement the IDiskQuotaEvents interface to receive notification when the information is available. If the information was cached during a previous request, notification occurs as soon as the object is serviced. Otherwise, the method obtains the information from the network domain controller, then notifies IDiskQuotaEvents. |
This method returns one of the following values.
Value | Meaning |
---|---|
NOERROR | Success. |
ERROR_ACCESS_DENIED | The caller has insufficient access rights. |
ERROR_NOT_READY | The DiskQuotaControl object is not initialized. |
E_INVALIDARG | The ppEnum parameter is NULL. |
E_OUTOFMEMORY | Insufficient memory. |
E_UNEXPECTED | An unexpected exception occurred. |
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Dskquota.h.
File Systems Overview, File System Interfaces, IDiskQuotaControl