This function processes a modal secondary window by dispatching messages while the modal window is displayed.
#define INCL_SW #include <os2.h> HWND hwndSW; /* Secondary window handle. */ ULONG rc; /* Result. */ rc = WinProcessSecondaryWindow(hwndSW);