Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.08 KB

IsValidSid.md

File metadata and controls

44 lines (30 loc) · 1.08 KB

Home

Function name : IsValidSid

Group: Security - Library: advapi32


The IsValidSid function validates a security identifier (SID) by verifying that the revision number is within a known range, and that the number of subauthorities is less than the maximum.


Code examples:

Obtaining a handle to the desktop associated with the calling thread
Accessing LSA Policy object (Local Security Authority)
Reading security permissions for NTFS files and folders

Declaration:

BOOL IsValidSid(
  PSID pSid
);
  

FoxPro declaration:

DECLARE INTEGER IsValidSid IN advapi32;
	STRING pSid  

Parameters:

pSid [in] Pointer to the SID structure to validate. This parameter cannot be NULL.


Return value:

If the SID structure is valid, the return value is nonzero.