sourCEntral - mobile manpages

pdf

OpenThreadToken

NAME

OpenThreadToken (ADVAPI32.@)

SYNOPSIS

BOOL OpenThreadToken
(
HANDLE ThreadHandle,
DWORD DesiredAccess,
BOOL OpenAsSelf,
HANDLE* TokenHandle
)

DESCRIPTION

Opens the access token associated with a thread handle.

PARAMS

ThreadHandle [In] Handle to process.

DesiredAccess [In] Desired access to the thread.

OpenAsSelf [In] ???.

TokenHandle [Out] Destination for the token handle.

RETURNS

Success: TRUE. TokenHandle contains the access token.

Failure: FALSE.

NOTES

See NtOpenThreadToken(3w).

IMPLEMENTATION

Defined in "winbase.h".

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

Debug channel "advapi".

pdf