RtlAdjustPrivilege - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
NTSTATUS
NTAPI
RtlAdjustPrivilege(
    _In_ ULONG Privilege,
    _In_ BOOLEAN Enable,
    _In_ BOOLEAN Client,
    _Out_ PBOOLEAN WasEnabled
    );

#endif

View code on GitHub

Enables or disables a single privilege in the current process or thread token.

Parameters

Notable return values

Remarks

Disabled privileges are not taken into account during access checks. Some privileges cannot be enabled when token integrity level is too low.

Implementation details

This function is a wrapper over NtAdjustPrivilegesToken.

See also