RtlGetAce - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
NTSTATUS
NTAPI
RtlGetAce(
    _In_ PACL Acl,
    _In_ ULONG AceIndex,
    _Outptr_ PVOID *Ace
    );

#endif

View code on GitHub
// ntifs.h

NTSYSAPI NTSTATUS RtlGetAce(
  [in]  PACL  Acl,
  [in]  ULONG AceIndex,
  [out] PVOID *Ace
);

View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntifs-rtlgetace)

RtlGetAce function

Description

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

Parameters

Acl [in]

Pointer to an ACL containing the ACE to be retrieved.

AceIndex [in]

Specifies the ACE to which a pointer is retrieved. A value of zero corresponds to the first ACE in the ACL, 1 to the second ACE, and so on.

Ace [out]

Pointer to a caller-allocated variable to receive the address of the ACE within the ACL.

Return value

RtlGetAce returns STATUS_SUCCESS or an error status code such as STATUS_INVALID_PARAMETER.

Remarks

For more information about security and access control, see Windows security model for driver developers and the documentation on these topics in the Windows SDK.

See also

ACE

ACL

RtlCreateAcl