2001-11-19 03:33:36 +03:00
|
|
|
#ifndef CSYNERGYHOOK_H
|
|
|
|
#define CSYNERGYHOOK_H
|
|
|
|
|
|
|
|
#include "BasicTypes.h"
|
2002-06-19 15:23:49 +04:00
|
|
|
|
|
|
|
#if WINDOWS_LIKE
|
2002-06-10 20:49:46 +04:00
|
|
|
#define WIN32_LEAN_AND_MEAN
|
2001-11-19 03:33:36 +03:00
|
|
|
#include <windows.h>
|
2002-06-19 15:23:49 +04:00
|
|
|
#else
|
|
|
|
#error CSynergyHook is a win32 specific file
|
|
|
|
#endif
|
2001-11-19 03:33:36 +03:00
|
|
|
|
|
|
|
#if defined(SYNRGYHK_EXPORTS)
|
|
|
|
#define CSYNERGYHOOK_API __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define CSYNERGYHOOK_API __declspec(dllimport)
|
|
|
|
#endif
|
|
|
|
|
2001-11-25 21:32:41 +03: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-05-23 22:35:08 +04:00
|
|
|
#define SYNERGY_MSG_MOUSE_WHEEL WM_APP + 0x0015 // delta; <unused>
|
2001-11-19 03:33:36 +03:00
|
|
|
|
2002-06-09 01:48:00 +04:00
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
typedef int (*InstallFunc)(DWORD targetQueueThreadID);
|
2001-11-19 03:33:36 +03:00
|
|
|
typedef int (*UninstallFunc)(void);
|
|
|
|
typedef void (*SetZoneFunc)(UInt32, SInt32, SInt32, SInt32);
|
|
|
|
typedef void (*SetRelayFunc)(void);
|
|
|
|
|
2002-06-09 01:48:00 +04:00
|
|
|
CSYNERGYHOOK_API int install(DWORD);
|
2001-11-19 03:33:36 +03:00
|
|
|
CSYNERGYHOOK_API int uninstall(void);
|
|
|
|
CSYNERGYHOOK_API void setZone(UInt32 sides,
|
2002-06-11 02:06:45 +04:00
|
|
|
SInt32 w, SInt32 h, SInt32 jumpZoneSize);
|
2001-11-19 03:33:36 +03:00
|
|
|
CSYNERGYHOOK_API void setRelay(void);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|