Contents
|
Python for Win32 Extensions Help
>
Win32 API
>
Modules
>
win32ts
>
WTSQueryUserToken
win32ts
.WTSQueryUserToken
PyHANDLE
=
WTSQueryUserToken(
SessionId
)
Retrieves the access token for a session
Parameters
SessionId
: int
Terminal services session id
Comments
This function is intended only for use by trusted processes that have SE_TCB_PRIVILEGE enabled