---
name: "RtlAdjustPrivilege"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/RtlAdjustPrivilege"
---

# RtlAdjustPrivilege(3w)

## NAME

**RtlAdjustPrivilege** (NTDLL.@)

## SYNOPSIS

NTSTATUS RtlAdjustPrivilege\
  (\
   ULONG    *Privilege*,\
   BOOLEAN  *Enable*,\
   BOOLEAN  *CurrentThread*,\
   PBOOLEAN *Enabled*\
  )

## DESCRIPTION

Enables or disables a privilege from the calling thread or process.

## PARAMS

*Privilege* **\[In\]**  *Privilege* index to change.

*Enable* **\[In\]**  If **TRUE**, then enable the privilege otherwise disable.

*CurrentThread* **\[In\]**  If **TRUE**, then enable in calling thread, otherwise process.

*Enabled* **\[Out\]**  Whether privilege was previously enabled or disabled.

## RETURNS

**Success:** **STATUS\_SUCCESS**.

**Failure:** **NTSTATUS** code.

## SEE ALSO

NtAdjustPrivilegesToken, NtOpenThreadToken, NtOpenProcessToken.

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/sec.c"**.

Debug channel **"ntdll"**.
