This function releases an application hook from a hook chain.

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

HAB        hab;       /*  Anchor-block handle. */
HMQ        hmq;       /*  Handle of message queue from which the hook is to be released. */
LONG       lHook;     /*  Type of hook chain. */
PFN        pAddress;  /*  Address of the hook routine. */
HMODULE    Module;    /*  Module handle. */
BOOL       rc;        /*  Success indicator. */

rc = WinReleaseHook(hab, hmq, lHook, pAddress,
       Module);


[Back] [Next]