chsvlib
chsv helper source code

◆ IsPrincipalSidValid()

bool Chusov::Win32::Security::IsPrincipalSidValid ( PSID  pPrincipalSid)

Checks if the specified security identifier valid.

Parameters
[in]pPrincipalSidis a pointer to a SID which is checked by the function for validity exploiting the standard IsValidSid function.
Returns
Returns true if the SID is valid and false otherwise.