Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SeAppendPrivileges routine

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

Syntax


NTSTATUS SeAppendPrivileges(
  _Inout_ PACCESS_STATE  AccessState,
  _In_    PPRIVILEGE_SET Privileges
);

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 codeDescription
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

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft