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

Defined in "winternl.h".

Implemented in "build/buildd-wine-unstable_1.1.32-1+b1-amd64-KnxYu0/wine-unstable-1.1.32/build32/dlls/ntdll/sec.c".

Debug channel "ntdll".
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout