Changeset 2752 for trunk/synergy/lib/platform/CPMSynergyHook.h
- Timestamp:
- Jul 29, 2006, 6:43:07 AM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/synergy/lib/platform/CPMSynergyHook.h
r2751 r2752 17 17 18 18 #include "BasicTypes.h" 19 #define WIN32_LEAN_AND_MEAN 20 #include <windows.h> 19 #define INCL_BASE 20 #define INCL_ERRORS 21 #define INCL_PM 22 #include <os2.h> 21 23 22 24 #if defined(SYNRGYHK_EXPORTS) 23 # define CSYNERGYHOOK_API __declspec(dllexport)25 # define CSYNERGYHOOK_API __declspec(dllexport) 24 26 #else 25 # define CSYNERGYHOOK_API __declspec(dllimport)27 # define CSYNERGYHOOK_API __declspec(dllimport) 26 28 #endif 27 29 28 #define SYNERGY_MSG_MARK WM_ APP+ 0x0011 // mark id; <unused>29 #define SYNERGY_MSG_KEY WM_ APP+ 0x0012 // vk code; key data30 #define SYNERGY_MSG_MOUSE_BUTTON WM_ APP+ 0x0013 // button msg; <unused>31 #define SYNERGY_MSG_MOUSE_WHEEL WM_ APP+ 0x0014 // delta; <unused>32 #define SYNERGY_MSG_MOUSE_MOVE WM_ APP+ 0x0015 // x; y33 #define SYNERGY_MSG_POST_WARP WM_ APP+ 0x0016 // <unused>; <unused>34 #define SYNERGY_MSG_PRE_WARP WM_ APP+ 0x0017 // x; y35 #define SYNERGY_MSG_SCREEN_SAVER WM_ APP+ 0x0018 // activated; <unused>36 #define SYNERGY_MSG_DEBUG WM_ APP+ 0x0019 // data, data30 #define SYNERGY_MSG_MARK WM_USER + 0x0011 // mark id; <unused> 31 #define SYNERGY_MSG_KEY WM_USER + 0x0012 // vk code; key data 32 #define SYNERGY_MSG_MOUSE_BUTTON WM_USER + 0x0013 // button msg; <unused> 33 #define SYNERGY_MSG_MOUSE_WHEEL WM_USER + 0x0014 // delta; <unused> 34 #define SYNERGY_MSG_MOUSE_MOVE WM_USER + 0x0015 // x; y 35 #define SYNERGY_MSG_POST_WARP WM_USER + 0x0016 // <unused>; <unused> 36 #define SYNERGY_MSG_PRE_WARP WM_USER + 0x0017 // x; y 37 #define SYNERGY_MSG_SCREEN_SAVER WM_USER + 0x0018 // activated; <unused> 38 #define SYNERGY_MSG_DEBUG WM_USER + 0x0019 // data, data 37 39 #define SYNERGY_MSG_INPUT_FIRST SYNERGY_MSG_KEY 38 40 #define SYNERGY_MSG_INPUT_LAST SYNERGY_MSG_PRE_WARP … … 56 58 }; 57 59 58 typedef int (*InitFunc)( DWORD targetQueueThreadID);60 typedef int (*InitFunc)(HMQ hmq, int tid, int pid); 59 61 typedef int (*CleanupFunc)(void); 60 62 typedef EHookResult (*InstallFunc)(void); … … 66 68 typedef void (*SetModeFunc)(int); 67 69 68 CSYNERGYHOOK_API int init( DWORD);70 CSYNERGYHOOK_API int init(HMQ hmq, int tid, int pid); 69 71 CSYNERGYHOOK_API int cleanup(void); 70 72 CSYNERGYHOOK_API EHookResult install(void); … … 73 75 CSYNERGYHOOK_API int uninstallScreenSaver(void); 74 76 CSYNERGYHOOK_API void setSides(UInt32 sides); 75 CSYNERGYHOOK_API void setZone(SInt32 x, SInt32 y, SInt32 w, SInt32 h, 76 SInt32 jumpZoneSize); 77 CSYNERGYHOOK_API void setZone(SInt32 x, SInt32 y, SInt32 cx, SInt32 cy, SInt32 jumpZoneSize); 77 78 CSYNERGYHOOK_API void setMode(EHookMode mode); 78 79
Note:
See TracChangeset
for help on using the changeset viewer.