Closes the handle to the thread. @note: Normally you don't need to call this method. All handles created by I{WinAppDbg} are automatically closed when the garbage collector claims them.
(self)
| 295 | self.hThread = hThread |
| 296 | |
| 297 | def close_handle(self): |
| 298 | """ |
| 299 | Closes the handle to the thread. |
| 300 | |
| 301 | @note: Normally you don't need to call this method. All handles |
| 302 | created by I{WinAppDbg} are automatically closed when the garbage |
| 303 | collector claims them. |
| 304 | """ |
| 305 | try: |
| 306 | if hasattr(self.hThread, "close"): |
| 307 | self.hThread.close() |
| 308 | elif self.hThread not in (None, win32.INVALID_HANDLE_VALUE): |
| 309 | win32.CloseHandle(self.hThread) |
| 310 | finally: |
| 311 | self.hThread = None |
| 312 | |
| 313 | def get_handle(self, dwDesiredAccess=win32.THREAD_ALL_ACCESS): |
| 314 | """ |
no test coverage detected