IsValidSecurityDescriptor

  BOOL IsValidSecurityDescriptor(SecurityDescriptor)    
  PSECURITY_DESCRIPTOR SecurityDescriptor;    

The IsValidSecurityDescriptor function validates a security descriptor's structure. This involves validating the revision level of each component of the security descriptor.

Parameters

SecurityDescriptor

Pointer to a SECURITY_DESCRIPTOR data structure that the function will validate.

Return Value

The return value is TRUE if the structure of the security descriptor is valid. Otherwise, the return value is FALSE. Use the GetLastError function to obtain extended error information.

See Also

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