Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.17 KB

File metadata and controls

56 lines (37 loc) · 1.17 KB

Home

Function name : IsWellKnownSid

Group: Security - Library: advapi32


Compares a SID to a well known SID and returns TRUE if they match.


Code examples:

How to enumerate sessions and processes on a specified terminal server

Declaration:

BOOL IsWellKnownSid(
	PSID pSid,
	WELL_KNOWN_SID_TYPE WellKnownSidType
);  

FoxPro declaration:

DECLARE INTEGER IsWellKnownSid IN Advapi32;
	INTEGER pSid,;
	INTEGER WellKnownSidType  

Parameters:

pSid [in] 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.


Comments:

The WELL_KNOWN_SID_TYPE enumeration type is a list of commonly used security identifiers (SIDs).
Dec.29, 2006: members from 0 to 60.

See also: CreateWellKnownSid.