SeAppendPrivileges - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

NTSTATUS SeAppendPrivileges(
  [in, out] PACCESS_STATE  AccessState,
  [in]      PPRIVILEGE_SET Privileges
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

SeAppendPrivileges function

Description

The SeAppendPrivileges routine appends additional privileges to the privilege set in an access state structure.

Parameters

AccessState [in, out]

Pointer to a caller-allocated ACCESS_STATE structure representing the current access request.

Privileges [in]

Pointer to a caller-allocated PRIVILEGE_SET structure containing the privileges to be added.

Return value

Return code Description
STATUS_SUCCESS The append operation succeeded.
STATUS_INSUFFICIENT_RESOURCES SeAppendPrivileges encountered a pool allocation failure when allocating memory for the new privileges.

Remarks

Initially, an access state structure can hold up to three privileges in its privilege set. If more than three privileges need to be stored, SeAppendPrivileges allocates a new privilege set from the paged pool and copies into it both the current privileges and the new privileges.

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

ACCESS_STATE

PRIVILEGE_SET

SeAccessCheck

SeFreePrivileges

SePrivilegeCheck

SeSetAccessStateGenericMapping