SetThreadToken(3w)

SetThreadToken3w

Usage

BOOL SetThreadToken
(
PHANDLE thread,
HANDLE token
)

Overview

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.

Params

thread [Out] Handle to thread to set the token for.

token [In] Token to set.

Returns

Success: TRUE. The threads access token is set to token

Failure: FALSE.

Notes

Only supported on NT or higher. On Win9X this function does nothing. See SetTokenInformation(3w).

Implementation

Declared in "winbase.h".

Implemented in "dlls/advapi32/security.c".

Debug channel "advapi".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.