This defines the window procedure provided by an application.
#define INCL_WINMESSAGEMGR /* Or use INCL_WIN, INCL_PM, Also in COMMON section */ #include <os2.h> HWND hwnd; /* Window handle. */ ULONG msg; /* Message identity. */ MPARAM mp1; /* Message parameter 1. */ MPARAM mp2; /* Message parameter 2. */ MRESULT mresReply; /* Message-return data. */ mresReply = WndProc(hwnd, msg, mp1, mp2);