Platform SDK: Files and I/O

IDiskQuotaUser::GetSidLength

Retrieves the length of the user's security identifier (SID), in bytes. Use the return value to determine the size of the destination buffer you pass to IDiskQuotaUser::GetSid.

HRESULT GetSidLength(
  LPDWORD pdwLength
);

Parameters

pdwLength
Pointer to the variable to receive the SID length, in bytes.

Return Values

This method returns one of the following values.

Value Meaning
NOERROR Success.
E_INVALIDARG The pdwLength parameter is NULL.
ERROR_INVALID_SID The SID for the user is invalid.
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