MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / GetThreadId

Function GetThreadId

pydevd_attach_to_process/winappdbg/win32/kernel32.py:4384–4392  ·  view source on GitHub ↗
(hThread)

Source from the content-addressed store, hash-verified

4382# __in HANDLE hThread
4383# );
4384def GetThreadId(hThread):
4385 _GetThreadId = windll.kernel32._GetThreadId
4386 _GetThreadId.argtypes = [HANDLE]
4387 _GetThreadId.restype = DWORD
4388
4389 dwThreadId = _GetThreadId(hThread)
4390 if dwThreadId == 0:
4391 raise ctypes.WinError()
4392 return dwThreadId
4393
4394
4395# DWORD WINAPI GetProcessIdOfThread(

Callers 1

get_tidMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected