Platform SDK: Files and I/O |
Invalidates the contents of the system's SID-to-name cache so subsequent requests for new user objects (IEnumDiskQuotaUsers::Next, IDiskQuotaControl::FindUserSid and IDiskQuotaControl::FindUserName) must obtain user names from the network domain controller. As names are obtained, they are cached.
HRESULT InvalidateSidNameCache(void);
This method has no parameters.
This method returns one of the following values.
Value | Meaning |
---|---|
NOERROR | Success. |
ERROR_NOT_READY | The DiskQuotaControl object is not initialized. |
E_OUTOFMEMORY | Insufficient memory. |
E_UNEXPECTED | An unexpected exception occurred. |
E_FAIL | The SID-to-name cache is not available or could not be exclusively locked. |
In general, there is no reason to call this method. It is included to provide a method for programmatically refreshing the entire SID-to-name cache.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Dskquota.h.
File Systems Overview, File System Interfaces, IDiskQuotaControl