This hook filters messages sent by the WinSendMsg function.
#define INCL_WINHOOKS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ PSMHSTRUCT psmh; /* Pointer to a send message hook structure. */ BOOL fInterTask; /* Intertask indicator. */ SendMsgHook(hab, psmh, fInterTask);