pythoncom.PumpWaitingMessages

int = PumpWaitingMessages()

Pumps all waiting messages for the current thread.

Comments

It is sometimes necessary for a COM thread to have a message loop. This function can be used with win32event::MsgWaitForMultipleObjects to pump all messages when necessary. Please see the COM documentation for more details.

Win32 API References

Search for PeekMessage and DispatchMessage at msdn, google or google groups.

Return Value

Returns 1 if a WM_QUIT message was received, else 0