2001-11-19 00:33:36 +00:00
|
|
|
#ifndef CSYNERGYHOOK_H
|
|
|
|
#define CSYNERGYHOOK_H
|
|
|
|
|
|
|
|
#include "BasicTypes.h"
|
2002-06-19 11:23:49 +00:00
|
|
|
|
|
|
|
#if WINDOWS_LIKE
|
2002-06-10 16:49:46 +00:00
|
|
|
#define WIN32_LEAN_AND_MEAN
|
2001-11-19 00:33:36 +00:00
|
|
|
#include <windows.h>
|
2002-06-19 11:23:49 +00:00
|
|
|
#else
|
|
|
|
#error CSynergyHook is a win32 specific file
|
|
|
|
#endif
|
2001-11-19 00:33:36 +00:00
|
|
|
|
|
|
|
#if defined(SYNRGYHK_EXPORTS)
|
|
|
|
#define CSYNERGYHOOK_API __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define CSYNERGYHOOK_API __declspec(dllimport)
|
|
|
|
#endif
|
|
|
|
|
2001-11-25 18:32:41 +00:00
|
|
|
#define SYNERGY_MSG_MARK WM_APP + 0x0011 // mark id; <unused>
|
|
|
|
#define SYNERGY_MSG_KEY WM_APP + 0x0012 // vk code; key data
|
|
|
|
#define SYNERGY_MSG_MOUSE_BUTTON WM_APP + 0x0013 // button msg; <unused>
|
|
|
|
#define SYNERGY_MSG_MOUSE_MOVE WM_APP + 0x0014 // x; y
|
2002-06-19 20:24:35 +00:00
|
|
|
#define SYNERGY_MSG_POST_WARP WM_APP + 0x0015 // x; y
|
|
|
|
#define SYNERGY_MSG_MOUSE_WHEEL WM_APP + 0x0016 // delta; <unused>
|
2002-06-23 21:53:31 +00:00
|
|
|
#define SYNERGY_MSG_SCREEN_SAVER WM_APP + 0x0017 // activated; <unused>
|
2001-11-19 00:33:36 +00:00
|
|
|
|
2002-06-08 21:48:00 +00:00
|
|
|
extern "C" {
|
|
|
|
|
2002-06-23 21:53:31 +00:00
|
|
|
typedef int (*InitFunc)(DWORD targetQueueThreadID);
|
|
|
|
typedef int (*CleanupFunc)(void);
|
|
|
|
typedef int (*InstallFunc)(void);
|
2001-11-19 00:33:36 +00:00
|
|
|
typedef int (*UninstallFunc)(void);
|
2002-06-23 21:53:31 +00:00
|
|
|
typedef int (*InstallScreenSaverFunc)(void);
|
|
|
|
typedef int (*UninstallScreenSaverFunc)(void);
|
2002-06-19 17:03:29 +00:00
|
|
|
typedef void (*SetZoneFunc)(UInt32,
|
|
|
|
SInt32, SInt32, SInt32, SInt32, SInt32);
|
2001-11-19 00:33:36 +00:00
|
|
|
typedef void (*SetRelayFunc)(void);
|
|
|
|
|
2002-06-23 21:53:31 +00:00
|
|
|
CSYNERGYHOOK_API int init(DWORD);
|
|
|
|
CSYNERGYHOOK_API int cleanup(void);
|
|
|
|
CSYNERGYHOOK_API int install(void);
|
2001-11-19 00:33:36 +00:00
|
|
|
CSYNERGYHOOK_API int uninstall(void);
|
2002-06-23 21:53:31 +00:00
|
|
|
CSYNERGYHOOK_API int installScreenSaver(void);
|
|
|
|
CSYNERGYHOOK_API int uninstallScreenSaver(void);
|
2001-11-19 00:33:36 +00:00
|
|
|
CSYNERGYHOOK_API void setZone(UInt32 sides,
|
2002-06-19 17:03:29 +00:00
|
|
|
SInt32 x, SInt32 y, SInt32 w, SInt32 h,
|
|
|
|
SInt32 jumpZoneSize);
|
2001-11-19 00:33:36 +00:00
|
|
|
CSYNERGYHOOK_API void setRelay(void);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|