Platform SDK: Access Control |
The IsValidSecurityDescriptor function determines whether the components of a security descriptor are valid.
BOOL IsValidSecurityDescriptor( PSECURITY_DESCRIPTOR pSecurityDescriptor // SD );
If the components of the security descriptor is valid, the return value is nonzero.
If any of the components of the security descriptor is not valid, the return value is zero. There is no extended error information for this function; do not call GetLastError.
The IsValidSecurityDescriptor function checks the validity of the components that are present in the security descriptor. It does not verify whether certain components are present.
Windows NT/2000: Requires Windows NT 3.1 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Advapi32.lib.
Low-Level Access-Control Overview, Low-Level Access Control Functions, GetSecurityDescriptorControl, GetSecurityDescriptorDacl, GetSecurityDescriptorGroup, GetSecurityDescriptorLength, GetSecurityDescriptorOwner, GetSecurityDescriptorSacl, InitializeSecurityDescriptor, IsValidAcl, IsValidSid, SECURITY_DESCRIPTOR, SetSecurityDescriptorDacl, SetSecurityDescriptorGroup, SetSecurityDescriptorOwner, SetSecurityDescriptorSacl