2
Copyright (c) 2009 Jay Sorg
4
Permission is hereby granted, free of charge, to any person obtaining a
5
copy of this software and associated documentation files (the "Software"),
6
to deal in the Software without restriction, including without limitation
7
the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
and/or sell copies of the Software, and to permit persons to whom the
9
Software is furnished to do so, subject to the following conditions:
11
The above copyright notice and this permission notice shall be included
12
in all copies or substantial portions of the Software.
14
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20
DEALINGS IN THE SOFTWARE.
22
these are the types needed for the ui interface
23
self contained file, requires no other includes
27
#ifndef __CONSTANTS_UI_H
28
#define __CONSTANTS_UI_H
30
/* TCP port for Remote Desktop Protocol */
31
#define TCP_PORT_RDP 3389
35
RDP_INPUT_SYNC = 0x0000,
36
RDP_INPUT_SCANCODE = 0x0004,
37
RDP_INPUT_UNICODE = 0x0005,
38
RDP_INPUT_MOUSE = 0x8001,
39
RDP_INPUT_MOUSEX = 0x8002
43
#define KBD_FLAG_RIGHT 0x0001
44
#define KBD_FLAG_EXT 0x0100
45
#define KBD_FLAG_QUIET 0x1000
46
#define KBD_FLAG_DOWN 0x4000
47
#define KBD_FLAG_UP 0x8000
49
/* Toggle key synchronization */
50
#define KBD_SYNC_SCROLL_LOCK 0x0001
51
#define KBD_SYNC_NUM_LOCK 0x0002
52
#define KBD_SYNC_CAPS_LOCK 0x0004
53
#define KBD_SYNC_KANA_LOCK 0x0008
56
#define RDP_KEYPRESS 0
57
#define RDP_KEYRELEASE (KBD_FLAG_DOWN | KBD_FLAG_UP)
59
/* these are the old style defines, PTRFLAGS_* is the new defines, use them */
60
#define MOUSE_FLAG_MOVE 0x0800
61
#define MOUSE_FLAG_BUTTON1 0x1000
62
#define MOUSE_FLAG_BUTTON2 0x2000
63
#define MOUSE_FLAG_BUTTON3 0x4000
64
#define MOUSE_FLAG_BUTTON4 0x0280
65
#define MOUSE_FLAG_BUTTON5 0x0380
66
#define MOUSE_FLAG_DOWN 0x8000
68
#define PTRFLAGS_WHEEL_NEGATIVE 0x0100
69
#define PTRFLAGS_WHEEL 0x0200
70
#define PTRFLAGS_BUTTON1 0x1000
71
#define PTRFLAGS_BUTTON2 0x2000
72
#define PTRFLAGS_BUTTON3 0x4000
73
#define PTRFLAGS_MOVE 0x0800
74
#define PTRFLAGS_DOWN 0x8000
76
#define PERF_FLAG_NONE 0x00000000
77
#define PERF_DISABLE_WALLPAPER 0x00000001
78
#define PERF_DISABLE_FULLWINDOWDRAG 0x00000002
79
#define PERF_DISABLE_MENUANIMATIONS 0x00000004
80
#define PERF_DISABLE_THEMING 0x00000008
81
#define PERF_RESERVED1 0x00000010
82
#define PERF_DISABLE_CURSOR_SHADOW 0x00000020
83
#define PERF_DISABLE_CURSORSETTINGS 0x00000040
84
#define PERF_ENABLE_FONT_SMOOTHING 0x00000080
85
#define PERF_ENABLE_DESKTOP_COMPOSITION 0x00000100