[This is preliminary documentation and subject to change.]
Retrieves the status of the user object's account. User information is identified in the quota system by user security identifier (SID). This SID must resolve to a user account for the user's domain, account name, or full name to be retrieved. To determine why a user's name strings are not available, use the status information.
HRESULT GetAccountStatus(
LPDWORD pdwStatus
);
Value | Meaning |
---|---|
DISKQUOTA_USER_ACCOUNT_RESOLVED | The SID was resolved to a user account. Names are available through IDiskQuotaUser::GetName. |
DISKQUOTA_USER_ACCOUNT_UNAVAILABLE | The user account is unavailable at this time. The network domain controller may not be available. Name information is not available. |
DISKQUOTA_USER_ACCOUNT_DELETED | The user account was deleted from the domain. Name information is not available. |
DISKQUOTA_USER_ACCOUNT_INVALID | The user account is invalid. Name information is not available. |
DISKQUOTA_USER_ACCOUNT_UNKNOWN | The user account is unknown. Name information is not available. |
DISKQUOTA_USER_ACCOUNT_UNRESOLVED | The SID has not been resolved to a user account. |
This method returns one of the following values.
Value | Meaning |
---|---|
S_OK | Success. |
E_POINTER | The pdwStatus parameter is NULL. |
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in dskquota.h.
File Systems Overview, File System Interfaces, IDiskQuotaUser