process_resume/suspend() refactoring on Windows: - adds error checking for CreateToolhelp32Snapshot() and Thread32First() - close handle returned by CreateToolhelp32Snapshot() in case of errors on SuspendThread() or ResumeThread() - call PyErr_SetFromWindowsErr(0) before closing handle as a safety measure to avoid that the actual error gets overridden
process_resume/suspend() refactoring on Windows:
- adds error checking for CreateToolhelp32Snapshot() and Thread32First()
- close handle returned by CreateToolhelp32Snapshot() in case of errors on SuspendThread() or ResumeThread()
- call PyErr_SetFromWindowsErr(0) before closing handle as a safety measure to avoid that the actual error gets overridden

After this change, calling resume_process() in a loop results in a different failure, from:
WindowsError: [Error 6] The handle is invalid
...to:
WindowsError: [Error 87] The parameter is incorrect

git-svn-id: 9f18dd852162ff6c59c5533c0914e9cf81af9e7c@749 d8a29897-7e4b-0410-a74a-8bb4c295346f

elventear/psutil,elventear/psutil