#ifndef _NTRTL_H
NTSYSAPI
NTSTATUS
NTAPI
RtlDeleteAce(
_Inout_ PACL Acl,
_In_ ULONG AceIndex
);
View code on GitHub// ntifs.h
NTSYSAPI NTSTATUS RtlDeleteAce(
[in, out] PACL Acl,
[in] ULONG AceIndex
);
View the official Windows Driver Kit DDI referenceThis function is documented in Windows Driver Kit.
The RtlDeleteAce routine deletes an access control entry (ACE) from a specified access control list (ACL).
Acl [in, out]Pointer to the ACL to be modified. RtlDeleteAce deletes the specified ACE from this ACL.
AceIndex [in]Specifies the ACE to delete. A value of zero corresponds to the first ACE in the ACL, 1 to the second ACE, and so on.
RtlDeleteAce returns STATUS_SUCCESS or an appropriate NTSTATUS value such as one of the following:
| Return code | Description |
|---|---|
| STATUS_INVALID_PARAMETER | One of the parameter values was invalid. |
Possible reasons for STATUS_INVALID_PARAMETER include:
For information about calculating the size of an ACL, see the Remarks section of the reference entry for RtlCreateAcl.
To add an ACE to an ACL, use RtlAddAce.
To obtain a pointer to an ACE in an ACL, use RtlGetAce.
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.