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

Function Thread32Next

pydevd_attach_to_process/winappdbg/win32/kernel32.py:4616–4629  ·  view source on GitHub ↗
(hSnapshot, te=None)

Source from the content-addressed store, hash-verified

4614# __out LPTHREADENTRY32 lpte
4615# );
4616def Thread32Next(hSnapshot, te=None):
4617 _Thread32Next = windll.kernel32.Thread32Next
4618 _Thread32Next.argtypes = [HANDLE, LPTHREADENTRY32]
4619 _Thread32Next.restype = bool
4620
4621 if te is None:
4622 te = THREADENTRY32()
4623 te.dwSize = sizeof(THREADENTRY32)
4624 success = _Thread32Next(hSnapshot, byref(te))
4625 if not success:
4626 if GetLastError() == ERROR_NO_MORE_FILES:
4627 return None
4628 raise ctypes.WinError()
4629 return te
4630
4631
4632# BOOL WINAPI Module32First(

Callers 1

SuspendThreadsFunction · 0.85

Calls 2

THREADENTRY32Class · 0.85
GetLastErrorFunction · 0.85

Tested by

no test coverage detected