Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 | UWP apps]

Minimum supported server

Windows Server 2003 [desktop apps | UWP apps]

Header

Winbase.h (include Windows.h)

Library

Advapi32.lib

DLL

Advapi32.dll

See also

CreateWellKnownSid
SID
WELL_KNOWN_SID_TYPE

 

 

Show: