Export (0) Print
Expand All
Expand Minimize

IsWellKnownSid function

The IsWellKnownSid function compares a SID to a well-known SID and returns TRUE if they match.

Syntax


BOOL WINAPI IsWellKnownSid(
  _In_  PSID pSid,
  _In_  WELL_KNOWN_SID_TYPE WellKnownSidType
);

Parameters

pSid [in]

A pointer to the SID to test.

WellKnownSidType [in]

Member of the WELL_KNOWN_SID_TYPE enumeration to compare with the SID at pSid.

Return value

Returns TRUE if the SID at pSid matches the well-known SID indicated by WellKnownSidType.

Otherwise, returns FALSE.

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

See also

CreateWellKnownSid
SID
WELL_KNOWN_SID_TYPE

 

 

Community Additions

ADD
Show:
© 2014 Microsoft