SetThreadToken (ADVAPI32.@)
BOOL SetThreadToken ( PHANDLE thread, HANDLE token )
Assigns an 'impersonation token' to a thread so it can assume the security privileges of another thread or process. Can also remove a previously assigned token.
thread | [Out] | Handle to thread to set the token for. |
token | [In] | Token to set. |
Success: TRUE. The threads access token is set to token
Failure: FALSE.
Only supported on NT or higher. On Win9X this function does nothing. See SetTokenInformation.
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.