@pymethod |pythoncom|PumpMessages|Pumps all messages for the current thread until a WM_QUIT message.
| 1477 | |
| 1478 | // @pymethod |pythoncom|PumpMessages|Pumps all messages for the current thread until a WM_QUIT message. |
| 1479 | static PyObject *pythoncom_PumpMessages(PyObject *self, PyObject *args) |
| 1480 | { |
| 1481 | MSG msg; |
| 1482 | int rc; |
| 1483 | Py_BEGIN_ALLOW_THREADS |
| 1484 | while ((rc=GetMessage(&msg, 0, 0, 0))==1) { |
| 1485 | TranslateMessage(&msg); // needed? |
| 1486 | DispatchMessage(&msg); |
| 1487 | } |
| 1488 | Py_END_ALLOW_THREADS |
| 1489 | if (rc==-1) |
| 1490 | return PyWin_SetAPIError("GetMessage"); |
| 1491 | Py_INCREF(Py_None); |
| 1492 | return Py_None; |
| 1493 | } |
| 1494 | |
| 1495 | // @pymethod |pythoncom|EnableQuitMessage|Indicates the thread PythonCOM should post a WM_QUIT message to. |
| 1496 | static PyObject *pythoncom_EnableQuitMessage(PyObject *self, PyObject *args) |
nothing calls this directly
no test coverage detected