Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.07 KB

GetAce.md

File metadata and controls

53 lines (36 loc) · 1.07 KB

Home

Function name : GetAce

Group: Security - Library: advapi32


Obtains a pointer to an access control entry (ACE) in an access control list (ACL).


Code examples:

Reading security permissions for NTFS files and folders

Declaration:

BOOL GetAce(
	PACL pAcl,
	DWORD dwAceIndex,
	LPVOID* pAce
);
  

FoxPro declaration:

DECLARE INTEGER GetAce IN advapi32;
	INTEGER pAcl,;
	INTEGER dwAceIndex,;
	INTEGER @pAce  

Parameters:

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.


Return value:

If the function succeeds, the function returns nonzero.