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.