Export (0) Print
Expand All
Expand Minimize

GetAce function

The GetAce function obtains a pointer to an access control entry (ACE) in an access control list (ACL).

Syntax


BOOL WINAPI GetAce(
  _In_   PACL pAcl,
  _In_   DWORD dwAceIndex,
  _Out_  LPVOID *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.

If the function fails, it returns zero. To get extended error information, call GetLastError.

Examples

For an example that uses this function, see Starting an Interactive Client Process.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Advapi32.lib

DLL

Advapi32.dll

See also

Low-level Access Control
Low-level Access Control Functions
AddAccessAllowedAce
AddAccessDeniedAce
AddAce
AddAuditAccessAce
GetAclInformation
InitializeAcl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft