(hSnapshot)
| 4595 | # __inout LPTHREADENTRY32 lpte |
| 4596 | # ); |
| 4597 | def Thread32First(hSnapshot): |
| 4598 | _Thread32First = windll.kernel32.Thread32First |
| 4599 | _Thread32First.argtypes = [HANDLE, LPTHREADENTRY32] |
| 4600 | _Thread32First.restype = bool |
| 4601 | |
| 4602 | te = THREADENTRY32() |
| 4603 | te.dwSize = sizeof(THREADENTRY32) |
| 4604 | success = _Thread32First(hSnapshot, byref(te)) |
| 4605 | if not success: |
| 4606 | if GetLastError() == ERROR_NO_MORE_FILES: |
| 4607 | return None |
| 4608 | raise ctypes.WinError() |
| 4609 | return te |
| 4610 | |
| 4611 | |
| 4612 | # BOOL WINAPI Thread32Next( |
no test coverage detected