Suspends the thread execution. @rtype: int @return: Suspend count. If zero, the thread is running.
(self)
| 389 | # was suspended, so on debugger exit they could (optionally!) be restored |
| 390 | |
| 391 | def suspend(self): |
| 392 | """ |
| 393 | Suspends the thread execution. |
| 394 | |
| 395 | @rtype: int |
| 396 | @return: Suspend count. If zero, the thread is running. |
| 397 | """ |
| 398 | hThread = self.get_handle(win32.THREAD_SUSPEND_RESUME) |
| 399 | if self.is_wow64(): |
| 400 | # FIXME this will be horribly slow on XP 64 |
| 401 | # since it'll try to resolve a missing API every time |
| 402 | try: |
| 403 | return win32.Wow64SuspendThread(hThread) |
| 404 | except AttributeError: |
| 405 | pass |
| 406 | return win32.SuspendThread(hThread) |
| 407 | |
| 408 | def resume(self): |
| 409 | """ |
no test coverage detected