IDiskQuotaUser::GetSid

[This is preliminary documentation and subject to change.]

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
S_OK Success.
E_POINTER The pbSidBuffer parameter is NULL.
DQC_E_INVALID_SID The SID for the user is invalid.
DQC_E_INSUFFICIENT_BUFFER Insufficient destination buffer size.
DQC_E_LOCK_FAILED Failure to obtain an exclusive lock.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in dskquota.h.

See Also

File Systems Overview, File System Interfaces, IDiskQuotaUser