RtlAdjustPrivilege (NTDLL.@)
NTSTATUS RtlAdjustPrivilege ( ULONG Privilege, BOOLEAN Enable, BOOLEAN CurrentThread, PBOOLEAN Enabled )
Enables or disables a privilege from the calling thread or process.
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. |
Success: STATUS_SUCCESS.
Failure: NTSTATUS code.
NtAdjustPrivilegesToken, NtOpenThreadToken, NtOpenProcessToken.
Declared in "include/winternl.h". gitlab.winehq.org/wine/wine/blob/master/include/winternl.h
Implemented in "dlls/ntdll/sec.c". gitlab.winehq.org/wine/wine/blob/master/dlls/ntdll/sec.c
Debug channel "ntdll".
Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.