Prev Next

IsValidAcl info  Overview  Group

The IsValidAcl function validates an access-control list (ACL).

BOOL IsValidAcl(

    PACL pAcl 

// address of access-control list

   );

Parameters

pAcl
Points to an ACL structure validated by this function. This must be a non-NULL value.

Return Values

If the ACL is valid, the return value is nonzero.

If the ACL is not valid, the return value is zero. To get extended error information, call GetLastError.

Remarks

This function checks the revision level of the ACL and verifies that the number of access-control entries (ACEs) specified in the AceCount member of the ACL structure fits the space specified by the AclSize member of the ACL structure.

If pAcl is NULL, the application will fail with an access violation.

See Also

ACL, GetAclInformation, InitializeAcl