MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / SetThreadToken

Function SetThreadToken

windows/winproxy/apis/advapi32.py:49–52  ·  view source on GitHub ↗
(Thread, Token)

Source from the content-addressed store, hash-verified

47
48@Advapi32Proxy()
49def SetThreadToken(Thread, Token):
50 if isinstance(Thread, (int, long)):
51 Thread = gdef.HANDLE(Thread)
52 return SetThreadToken.ctypes_function(Thread, Token)
53
54@Advapi32Proxy()
55def DuplicateToken(ExistingTokenHandle, ImpersonationLevel, DuplicateTokenHandle):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected