IsValidSecurityDescriptor  D4IGE1 

The IsValidSecurityDescriptor function validates a SECURITY_DESCRIPTOR188MR8K structure. Validation is performed by checking the revision level of each component in the security descriptor.

BOOL IsValidSecurityDescriptor(

    PSECURITY_DESCRIPTOR pSecurityDescriptor

// address of security descriptor

   );

 

 

Parameters

pSecurityDescriptor

Points to a SECURITY_DESCRIPTOR structure that the function validates.

 

Return Values

If the structure of the security descriptor is valid, the return value is nonzero.

If the structure of the security descriptor is not valid, the return value is zero. To get extended error information, call GetLastError11C2VS7.

See Also

GetSecurityDescriptorControl, GetSecurityDescriptorDacl, GetSecurityDescriptorGroup, GetSecurityDescriptorLength, GetSecurityDescriptorOwner, GetSecurityDescriptorSacl, InitializeSecurityDescriptor, SECURITY_DESCRIPTOR, SetSecurityDescriptorDacl, SetSecurityDescriptorGroup, SetSecurityDescriptorOwner, SetSecurityDescriptorSacl