RtlAdjustPrivilege(3w)

RtlAdjustPrivilege3w

Usage

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

Overview

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.

Implementation

Declared in "winternl.h".

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

Debug channel "ntdll".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.