Group: Security - Library: advapi32
Reading security permissions for NTFS files and folders
BOOL GetAce(
PACL pAcl,
DWORD dwAceIndex,
LPVOID* pAce
);
DECLARE INTEGER GetAce IN advapi32;
INTEGER pAcl,;
INTEGER dwAceIndex,;
INTEGER @pAce
pAcl [in] A pointer to an ACL that contains the ACE to be retrieved.
dwAceIndex [in] The index of the ACE to be retrieved. A value of zero corresponds to the first ACE in the ACL, a value of one to the second ACE, and so on.
pAce [out] A pointer to a pointer that the function sets to the address of the ACE.
If the function succeeds, the function returns nonzero.