Waits for the next debug event. @see: L{cont}, L{dispatch}, L{loop} @type dwMilliseconds: int @param dwMilliseconds: (Optional) Timeout in milliseconds. Use C{INFINITE} or C{None} for no timeout. @rtype: L{Event} @return: An event tha
(self, dwMilliseconds=None)
| 811 | # ------------------------------------------------------------------------------ |
| 812 | |
| 813 | def wait(self, dwMilliseconds=None): |
| 814 | """ |
| 815 | Waits for the next debug event. |
| 816 | |
| 817 | @see: L{cont}, L{dispatch}, L{loop} |
| 818 | |
| 819 | @type dwMilliseconds: int |
| 820 | @param dwMilliseconds: (Optional) Timeout in milliseconds. |
| 821 | Use C{INFINITE} or C{None} for no timeout. |
| 822 | |
| 823 | @rtype: L{Event} |
| 824 | @return: An event that occured in one of the debugees. |
| 825 | |
| 826 | @raise WindowsError: Raises an exception on error. |
| 827 | If no target processes are left to debug, |
| 828 | the error code is L{win32.ERROR_INVALID_HANDLE}. |
| 829 | """ |
| 830 | |
| 831 | # Wait for the next debug event. |
| 832 | raw = win32.WaitForDebugEvent(dwMilliseconds) |
| 833 | event = EventFactory.get(self, raw) |
| 834 | |
| 835 | # Remember it. |
| 836 | self.lastEvent = event |
| 837 | |
| 838 | # Return it. |
| 839 | return event |
| 840 | |
| 841 | def dispatch(self, event=None): |
| 842 | """ |