.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH RtlAdjustPrivilege 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBRtlAdjustPrivilege\fR (NTDLL.@) .SH SYNOPSIS NTSTATUS RtlAdjustPrivilege ( ULONG \fIPrivilege\fR, BOOLEAN \fIEnable\fR, BOOLEAN \fICurrentThread\fR, PBOOLEAN \fIEnabled\fR ) .SH DESCRIPTION .PP Enables or disables a privilege from the calling thread or process. .SH PARAMS \fIPrivilege\fR \fB[In]\fR \fIPrivilege\fR index to change. .PP \fIEnable\fR \fB[In]\fR If \fBTRUE\fR, then enable the privilege otherwise disable. .PP \fICurrentThread\fR \fB[In]\fR If \fBTRUE\fR, then enable in calling thread, otherwise process. .PP \fIEnabled\fR \fB[Out]\fR Whether privilege was previously enabled or disabled. .PP .SH RETURNS .PP \fBSuccess:\fR \fBSTATUS_SUCCESS\fR. .PP \fBFailure:\fR \fBNTSTATUS\fR code. .SH SEE ALSO .PP NtAdjustPrivilegesToken, NtOpenThreadToken, NtOpenProcessToken. .SH IMPLEMENTATION .PP Declared in \fB"winternl.h"\fR. .PP Implemented in \fB"dlls/ntdll/sec.c"\fR. .PP Debug channel \fB"ntdll"\fR.