| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * Keyboard hook definitions | 
|---|
| 3 | * | 
|---|
| 4 | * Copyright 2003 Innotek Systemberatung GmbH (sandervl@innotek.de) | 
|---|
| 5 | * | 
|---|
| 6 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 7 | */ | 
|---|
| 8 |  | 
|---|
| 9 | #ifndef __KBDHOOK_H | 
|---|
| 10 | #define __KBDHOOK_H | 
|---|
| 11 |  | 
|---|
| 12 |  | 
|---|
| 13 | /* | 
|---|
| 14 | * HK_PREACCEL: | 
|---|
| 15 | *      additional undocumented PM hook type | 
|---|
| 16 | */ | 
|---|
| 17 |  | 
|---|
| 18 | #ifndef HK_PREACCEL | 
|---|
| 19 | #define HK_PREACCEL             17 | 
|---|
| 20 | #endif | 
|---|
| 21 |  | 
|---|
| 22 | /**************************************************************/ | 
|---|
| 23 | /* Try to load the Presentation Manager Keyboard Hook module. */ | 
|---|
| 24 | /* If this fails, some hotkeys may not arrive properly at the */ | 
|---|
| 25 | /* targetted window, but no more harmful things will happen.  */ | 
|---|
| 26 | /**************************************************************/ | 
|---|
| 27 | #define STD_PMKBDHK_MODULE  "PMKBDHK"; | 
|---|
| 28 | #define PMKBDHK_HOOK_INIT   "_hookInit@8" | 
|---|
| 29 | #define PMKBDHK_HOOK_TERM   "_hookKill@0" | 
|---|
| 30 |  | 
|---|
| 31 | #ifdef __cplusplus | 
|---|
| 32 | extern "C" { | 
|---|
| 33 | #endif | 
|---|
| 34 |  | 
|---|
| 35 | typedef BOOL  (* WIN32API PFN_HOOKINIT)(ULONG hab, char *lpszWindowClass); | 
|---|
| 36 | typedef BOOL  (* WIN32API PFN_HOOKTERM)(void); | 
|---|
| 37 |  | 
|---|
| 38 | BOOL WIN32API hookInit(ULONG hab); | 
|---|
| 39 | BOOL WIN32API hookKill(ULONG hab); | 
|---|
| 40 |  | 
|---|
| 41 | #ifdef __cplusplus | 
|---|
| 42 | } // extern "C" | 
|---|
| 43 | #endif | 
|---|
| 44 |  | 
|---|
| 45 | #endif  // __KBDHOOK_H | 
|---|
| 46 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.