#ifndef _NTRTL_H
NTSYSAPI
NTSTATUS
NTAPI
RtlGetAce(
_In_ PACL Acl,
_In_ ULONG AceIndex,
_Outptr_ PVOID *Ace
);
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
This function is documented in Windows Driver Kit.
The RtlGetAce routine obtains a pointer to an access control entry (ACE) in an access control list (ACL).
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.
RtlGetAce returns STATUS_SUCCESS or an error status code such as STATUS_INVALID_PARAMETER.
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.