Platform SDK: Files and I/O

IDiskQuotaUser::GetSid

Retrieves the user's security identifier (SID).

HRESULT GetSid(
  LPBYTE pbSidBuffer, 
  DWORD cbSidBuffer
);

Parameters

pbSidBuffer
Pointer to the buffer to receive the SID.
cbSidBuffer
Size of the buffer, in bytes. Use the IDiskQuotaUser::GetSidLength method to obtain the required size for the buffer.

Return Values

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.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Dskquota.h.

See Also

File Systems Overview, File System Interfaces, IDiskQuotaUser