(hThread)
| 4303 | # __in HANDLE hThread |
| 4304 | # ); |
| 4305 | def SuspendThread(hThread): |
| 4306 | _SuspendThread = windll.kernel32.SuspendThread |
| 4307 | _SuspendThread.argtypes = [HANDLE] |
| 4308 | _SuspendThread.restype = DWORD |
| 4309 | |
| 4310 | previousCount = _SuspendThread(hThread) |
| 4311 | if previousCount == DWORD(-1).value: |
| 4312 | raise ctypes.WinError() |
| 4313 | return previousCount |
| 4314 | |
| 4315 | |
| 4316 | # DWORD WINAPI ResumeThread( |