SeAppendPrivileges function

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

Syntax

NTSTATUS SeAppendPrivileges(
  PACCESS_STATE  AccessState,
  PPRIVILEGE_SET Privileges
);

Parameters

AccessState

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

Privileges

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 the documentation on these topics in the Microsoft Windows SDK.

Requirements

   
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

See Also

ACCESS_STATE

PRIVILEGE_SET

SeAccessCheck

SeFreePrivileges

SePrivilegeCheck

SeSetAccessStateGenericMapping