MsgControlHook - Syntax

This hook allows the call to determine the flow of messages to be intercepted.

#define INCL_WINHOOKS /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HAB      hab;           /*  Anchor-block handle. */
LONG     idContext;     /*  Origin of call to hook. */
HWND     hwnd;          /*  Window handle. */
PSZ      pszClassName;  /*  Window class name. */
ULONG    usMsgClass;    /*  Message class. */
LONG     idControl;     /*  Control setting. */
PBOOL    fSuccess;      /*  Success indicator. */
BOOL     rc;            /*  Processing indicator. */

rc = MsgControlHook(hab, idContext, hwnd,
       pszClassName, usMsgClass, idControl,
       fSuccess);


[Back: MsgControlHook]
[Next: MsgControlHook Parameter - hab]