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.
BOOL IsValidSid( PSID pSid );
A pointer to the SID structure to validate. This parameter cannot be NULL.
If the SID structure is valid, the return value is nonzero.
If pSid is NULL, the application will fail with an access violation.
|Minimum supported client||Windows XP [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2003 [desktop apps | UWP apps]|
|Header||securitybaseapi.h (include Windows.h)|