Skip to content

Latest commit

 

History

History
84 lines (66 loc) · 4.21 KB

ns-winnt-system_audit_ace.md

File metadata and controls

84 lines (66 loc) · 4.21 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:winnt._SYSTEM_AUDIT_ACE
SYSTEM_AUDIT_ACE (winnt.h)
Defines an access control entry (ACE) for the system access control list (SACL) that specifies what types of access cause system-level notifications.
*PSYSTEM_AUDIT_ACE
PSYSTEM_AUDIT_ACE
PSYSTEM_AUDIT_ACE structure pointer [Security]
SYSTEM_AUDIT_ACE
SYSTEM_AUDIT_ACE structure [Security]
_SYSTEM_AUDIT_ACE
_win32_system_audit_ace_str
security.system_audit_ace
winnt/PSYSTEM_AUDIT_ACE
winnt/SYSTEM_AUDIT_ACE
security\system_audit_ace.htm
security
c26b5856-5447-4606-8110-f24a4d235c64
12/05/2018
*PSYSTEM_AUDIT_ACE, PSYSTEM_AUDIT_ACE, PSYSTEM_AUDIT_ACE structure pointer [Security], SYSTEM_AUDIT_ACE, SYSTEM_AUDIT_ACE structure [Security], _SYSTEM_AUDIT_ACE, _win32_system_audit_ace_str, security.system_audit_ace, winnt/PSYSTEM_AUDIT_ACE, winnt/SYSTEM_AUDIT_ACE
winnt.h
Windows.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
SYSTEM_AUDIT_ACE
19H1
_SYSTEM_AUDIT_ACE
winnt/_SYSTEM_AUDIT_ACE
SYSTEM_AUDIT_ACE
winnt/SYSTEM_AUDIT_ACE
c++
APIRef
kbSyntax
HeaderDef
Winnt.h
SYSTEM_AUDIT_ACE

SYSTEM_AUDIT_ACE structure

-description

The SYSTEM_AUDIT_ACE structure defines an access control entry (ACE) for the system access control list (SACL) that specifies what types of access cause system-level notifications. A system-audit ACE causes an audit message to be logged when a specified trustee attempts to gain access to an object. The trustee is identified by a security identifier (SID).

-struct-fields

-field Header

ACE_HEADER structure that specifies the size and type of ACE. It also contains flags that control inheritance of the ACE by child objects. The AceType member of the ACE_HEADER structure should be set to SYSTEM_AUDIT_ACE_TYPE, and the AceSize member should be set to the total number of bytes allocated for the SYSTEM_AUDIT_ACE structure.

-field Mask

Specifies an ACCESS_MASK structure that gives the access rights that cause audit messages to be generated. The SUCCESSFUL_ACCESS_ACE_FLAG and FAILED_ACCESS_ACE_FLAG flags in the AceFlags member of the ACE_HEADER structure indicate whether messages are generated for successful access attempts, unsuccessful access attempts, or both.

-field SidStart

The first DWORD of a trustee's SID. The remaining bytes of the SID are stored in contiguous memory after the SidStart member. This SID can be appended with application data.

An access attempt of a kind specified by the Mask member by any trustee whose SID matches the SidStart member causes the system to generate an audit message. If an application does not specify a SID for this member, audit messages are generated for the specified access rights for all trustees.

-remarks

Audit messages are stored in an event log that can be manipulated by using the Windows API event-logging functions or by using the Event Viewer (Eventvwr.exe).

ACE structures should be aligned on DWORD boundaries. All Windows memory-management functions return DWORD-aligned handles to memory.

When a SYSTEM_AUDIT_ACE structure is created, sufficient memory must be allocated to accommodate the complete SID of the trustee in the SidStart member and the contiguous memory that follows it.

-see-also

ACL