AdjustTokenPrivileges (ADVAPI32.@)
BOOL AdjustTokenPrivileges ( HANDLE TokenHandle, BOOL DisableAllPrivileges, LPVOID NewState, DWORD BufferLength, LPVOID PreviousState, LPDWORD ReturnLength )
Adjust the privileges of an open token handle.
| TokenHandle | [In] | Handle from OpenProcessToken or OpenThreadToken. |
| DisableAllPrivileges | [In] | TRUE=Remove all privileges, FALSE=Use NewState. |
| 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. |
Success: TRUE. Privileges are set to NewState and PreviousState is updated.
Failure: FALSE.
Defined in "winbase.h".
Implemented in "dlls/advapi32/security.c". source.winehq.org/source/dlls/advapi32/security.c
Debug channel "advapi".
Copyright © 2006 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Oct 2006.