Expand Minimize

GetWindowsAccountDomainSid function

The GetWindowsAccountDomainSid function receives a security identifier (SID) and returns a SID representing the domain of that SID.

Syntax


BOOL WINAPI GetWindowsAccountDomainSid(
  _In_       PSID pSid,
  _Out_opt_  PSID ppDomainSid,
  _Inout_    DWORD *cbSid
);

Parameters

pSid [in]

A pointer to the SID to examine.

ppDomainSid [out, optional]

Pointer that GetWindowsAccountDomainSid fills with a pointer to a SID representing the domain.

cbSid [in, out]

A pointer to a DWORD that GetWindowsAccountDomainSid fills with the size of the domain SID, in bytes.

Return value

Returns TRUE if successful.

Otherwise, returns FALSE. For extended error information, call GetLastError.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Advapi32.lib

DLL

Advapi32.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft