man:AdjustTokenPrivileges(3w)
Z funus.net
AdjustTokenPrivileges(3w) Wine API AdjustTokenPrivileges(3w)
NAME
AdjustTokenPrivileges (ADVAPI32.@)
SYNOPSIS
BOOL AdjustTokenPrivileges
(
HANDLE TokenHandle,
BOOL DisableAllPrivileges,
LPVOID NewState,
DWORD BufferLength,
LPVOID PreviousState,
LPDWORD ReturnLength
)
DESCRIPTION
Adjust the privileges of an open token handle.
PARAMS
TokenHandle [In] Handle from OpenProcessToken(3w) or OpenThreadTo-
ken(3w).
DisableAllPrivileges [In] TRUE=Remove all privileges, FALSE=Use New-
State.
NewState [In] Desired new privileges of the token.
BufferLength [In] Length of NewState.
PreviousState [Out] Destination for the previous state.
ReturnLength [In/Out] Size of PreviousState.
RETURNS
Success: TRUE. Privileges are set to NewState and PreviousState is
updated.
Failure: FALSE.
NOTES
See NtAdjustPrivilegesToken(3w).
IMPLEMENTATION
Defined in "winbase.h".
Implemented in "dlls/advapi32/security.c".
Debug channel "advapi".
Wine API Mar 2007 AdjustTokenPrivileges(3w)
|