2009-02-02 19:26:39 +00:00
|
|
|
#ifndef _ThTypes_H_
|
|
|
|
#define _ThTypes_H_
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
2011-07-09 19:26:30 +00:00
|
|
|
#define GD_FLAG_METHOD_STANDARD 0x00000001
|
|
|
|
#define GD_FLAG_METHOD_GD_MESSAGE 0x00000002
|
|
|
|
#define GD_FLAG_METHOD_IACCESSIBLEEX 0x00000004
|
|
|
|
#define GD_FLAG_METHOD_UI_AUTOMATION 0x00000008
|
|
|
|
|
2009-02-02 19:26:39 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
typedef struct TCurrentMode {
|
|
|
|
HWND WND;
|
|
|
|
POINT Pt;
|
|
|
|
size_t WordLen;
|
|
|
|
char MatchedWord[256];
|
|
|
|
int BeginPos;
|
|
|
|
} TCurrentMode;
|
|
|
|
|
|
|
|
typedef struct TGlobalDLLData {
|
|
|
|
HWND ServerWND;
|
|
|
|
HHOOK g_hHookMouse;
|
|
|
|
UINT_PTR TimerID;
|
|
|
|
HWND LastWND;
|
|
|
|
POINT LastPt;
|
|
|
|
TCurrentMode CurMod;
|
|
|
|
char LibName[256];
|
|
|
|
} TGlobalDLLData;
|
|
|
|
|
|
|
|
extern TGlobalDLLData *GlobalData;
|
|
|
|
|
|
|
|
|
|
|
|
void ThTypes_Init();
|
|
|
|
void Thtypes_End();
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif
|