mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-23 09:43:24 +03:00
f15c9df85b
clipboard owner support (MS windows done, X windows partial) added key transfer on ms windows mutex fixes in CClient (had race conditions) faster debug output in ms windows changed temporary screen name to "secondary" network fixes on ms windows (poll returned wrong result) fixed transparent cursor on ms windows
38 lines
971 B
C
38 lines
971 B
C
#ifndef CSYNERGYHOOK_H
|
|
#define CSYNERGYHOOK_H
|
|
|
|
#include "BasicTypes.h"
|
|
#include <windows.h>
|
|
|
|
#if defined(CONFIG_PLATFORM_WIN32)
|
|
#if defined(SYNRGYHK_EXPORTS)
|
|
#define CSYNERGYHOOK_API __declspec(dllexport)
|
|
#else
|
|
#define CSYNERGYHOOK_API __declspec(dllimport)
|
|
#endif
|
|
#else
|
|
#define CSYNERGYHOOK_API
|
|
#endif
|
|
|
|
#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
|
|
|
|
typedef int (*InstallFunc)(HWND);
|
|
typedef int (*UninstallFunc)(void);
|
|
typedef void (*SetZoneFunc)(UInt32, SInt32, SInt32, SInt32);
|
|
typedef void (*SetRelayFunc)(void);
|
|
|
|
extern "C" {
|
|
|
|
CSYNERGYHOOK_API int install(HWND);
|
|
CSYNERGYHOOK_API int uninstall(void);
|
|
CSYNERGYHOOK_API void setZone(UInt32 sides,
|
|
SInt32 w, SInt32 h, SInt32 jumpZoneSize);
|
|
CSYNERGYHOOK_API void setRelay(void);
|
|
|
|
}
|
|
|
|
#endif
|