home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / vrac / visvideo.zip / KEYHOOK.H_ / KEYHOOK.bin
Text File  |  1994-07-06  |  738b  |  24 lines

  1. /*
  2.  * File name: keyhook.h
  3.  *
  4.  * Description: 
  5.  *      Header information for keyhook.dll and applications.
  6.  */
  7. #define MAXKEYS   30    // max keys can be specified
  8.  
  9. // Define error code
  10. #define EHOOK     1     // callback function already installed
  11.  
  12. typedef struct _keymsg{
  13.    UINT nKeys;          // number of keys specified
  14.    int  key[MAXKEYS];   // keys that application desired
  15.    int  msgID[MAXKEYS]; // message ID relative to the specified key
  16.    int  msgUndefinedKey;// message sent when an undefined key pressed
  17. }KeyTable;
  18.  
  19. // keyhook.c
  20. int   FAR PASCAL SetHook (HWND,KeyTable far *);
  21. void  FAR PASCAL RemoveHook (void);
  22. int   FAR PASCAL SetMouseHook (HWND,int);
  23. void  FAR PASCAL RemoveMouseHook (void);
  24.