BOOL IsValidAcl(Acl) | |||
PACL Acl; |
The IsValidAcl function validates an access control list (ACL).
The function checks the revision level of the ACL. It also checks that the number of ACEs specified in the AceCount field of the ACL header fit the space specified by the AclSize field of the ACL header.
Acl
Pointer to an ACL data structure that the function will validate.
The ACL data structure has the following form:
typedef struct _ACL { /* acl */
BYTE AclRevision;
BYTE Sbz1;
WORD AclSize;
WORD AceCount;
WORD Sbz2;
} ACL;
The return value is TRUE if the structure of the ACL is valid. Otherwise, the return value is FALSE. Use the GetLastError function to obtain extended error information.
AddAccessAllowedAce, AddAce, DeleteAce, GetAce, GetAclInformation, InitializeAcl, SetAclInformation