Platform SDK: Files and I/O |
Retrieves the user's security identifier (SID).
HRESULT GetSid( LPBYTE pbSidBuffer, DWORD cbSidBuffer );
This method returns one of the following values.
Value | Meaning |
---|---|
NOERROR | Success. |
E_INVALIDARG | The pbSidBuffer parameter is NULL. |
ERROR_INVALID_SID | The SID for the user is invalid. |
ERROR_INSUFFICIENT_BUFFER | Insufficient destination buffer size. |
ERROR_LOCK_FAILED | Failure to obtain an exclusive lock. |
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Dskquota.h.
File Systems Overview, File System Interfaces, IDiskQuotaUser