This hook records user-input messages.
#define INCL_WINHOOKS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ PQMSG pQmsg; /* Data structure that contains the message to be recorded. */ JournalRecordHook(hab, pQmsg);