(hSnapshot, te=None)
| 4614 | # __out LPTHREADENTRY32 lpte |
| 4615 | # ); |
| 4616 | def 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( |
no test coverage detected