Debian Codegraph @

Include/Win/WinUser.nsh

raw
1 !ifndef __WIN_WINUSER__INC
2 !define __WIN_WINUSER__INC
3 !verbose push
4 !verbose 3
5 !ifndef __WIN_MS_NOUSER & __WIN_NOINC_WINUSER
6
7 !ifndef __WIN_MS_NOVIRTUALKEYCODES
8 !define VK_LBUTTON 0x01
9 !define VK_RBUTTON 0x02
10 !define VK_CANCEL 0x03
11 !define VK_MBUTTON 0x04 /* NOT contiguous with L & RBUTTON */
12 !define VK_XBUTTON1 0x05 /* NOT contiguous with L & RBUTTON */
13 !define VK_XBUTTON2 0x06 /* NOT contiguous with L & RBUTTON */
14 !define VK_BACK 0x08
15 !define VK_TAB 0x09
16 !define VK_CLEAR 0x0C
17 !define VK_RETURN 0x0D
18 !define VK_SHIFT 0x10
19 !define VK_CONTROL 0x11
20 !define VK_MENU 0x12
21 !define VK_PAUSE 0x13
22 !define VK_CAPITAL 0x14
23 !define VK_ESCAPE 0x1B
24 !define VK_CONVERT 0x1C
25 !define VK_NONCONVERT 0x1D
26 !define VK_ACCEPT 0x1E
27 !define VK_MODECHANGE 0x1F
28 !define VK_SPACE 0x20
29 !define VK_PRIOR 0x21
30 !define VK_NEXT 0x22
31 !define VK_END 0x23
32 !define VK_HOME 0x24
33 !define VK_LEFT 0x25
34 !define VK_UP 0x26
35 !define VK_RIGHT 0x27
36 !define VK_DOWN 0x28
37 !define VK_SELECT 0x29
38 !define VK_PRINT 0x2A
39 !define VK_EXECUTE 0x2B
40 !define VK_SNAPSHOT 0x2C
41 !define VK_INSERT 0x2D
42 !define VK_DELETE 0x2E
43 !define VK_HELP 0x2F
44 ; VK_0 - VK_9 are the same as ASCII '0' - '9' (0x30 - 0x39)
45 ; VK_A - VK_Z are the same as ASCII 'A' - 'Z' (0x41 - 0x5A)
46 !define VK_LWIN 0x5B
47 !define VK_RWIN 0x5C
48 !define VK_APPS 0x5D
49 !define VK_SLEEP 0x5F
50 !define VK_NUMPAD0 0x60
51 !define VK_NUMPAD1 0x61
52 !define VK_NUMPAD2 0x62
53 !define VK_NUMPAD3 0x63
54 !define VK_NUMPAD4 0x64
55 !define VK_NUMPAD5 0x65
56 !define VK_NUMPAD6 0x66
57 !define VK_NUMPAD7 0x67
58 !define VK_NUMPAD8 0x68
59 !define VK_NUMPAD9 0x69
60 !define VK_MULTIPLY 0x6A
61 !define VK_ADD 0x6B
62 !define VK_SEPARATOR 0x6C
63 !define VK_SUBTRACT 0x6D
64 !define VK_DECIMAL 0x6E
65 !define VK_DIVIDE 0x6F
66 !define VK_F1 0x70
67 !define VK_F2 0x71
68 !define VK_F3 0x72
69 !define VK_F4 0x73
70 !define VK_F5 0x74
71 !define VK_F6 0x75
72 !define VK_F7 0x76
73 !define VK_F8 0x77
74 !define VK_F9 0x78
75 !define VK_F10 0x79
76 !define VK_F11 0x7A
77 !define VK_F12 0x7B
78 !define VK_NUMLOCK 0x90
79 !define VK_SCROLL 0x91
80 !define VK_OEM_NEC_EQUAL 0x92 ; '=' key on numpad
81 !define VK_LSHIFT 0xA0
82 !define VK_RSHIFT 0xA1
83 !define VK_LCONTROL 0xA2
84 !define VK_RCONTROL 0xA3
85 !define VK_LMENU 0xA4
86 !define VK_RMENU 0xA5
87 !endif
88
89 !ifndef __WIN_MS_NOWINOFFSETS
90 !define /ifndef GWL_STYLE -16
91 !define /ifndef GWL_EXSTYLE -20
92 !define /ifndef GWLP_WNDPROC -4
93 !define /ifndef GWLP_HINSTANCE -6
94 !define /ifndef GWLP_HWNDPARENT -8
95 !define /ifndef GWLP_USERDATA -21
96 !define /ifndef GWLP_ID -12
97 !define DWLP_MSGRESULT 0
98 !define /math DWLP_DLGPROC ${DWLP_MSGRESULT} + ${NSIS_PTR_SIZE} ;DWLP_MSGRESULT + sizeof(LRESULT)
99 !define /math DWLP_USER ${DWLP_DLGPROC} + ${NSIS_PTR_SIZE} ;DWLP_DLGPROC + sizeof(DLGPROC)
100 !endif
101
102 !ifndef __WIN_MS_NONCMESSAGES
103 !define HTERROR -2
104 !define HTTRANSPARENT -1
105 !define HTNOWHERE 0
106 !define HTCLIENT 1
107 !define HTCAPTION 2
108 !define HTSYSMENU 3
109 !define HTGROWBOX 4
110 !define HTSIZE ${HTGROWBOX}
111 !define HTMENU 5
112 !define HTHSCROLL 6
113 !define HTVSCROLL 7
114 !define HTMINBUTTON 8
115 !define HTMAXBUTTON 9
116 !define HTLEFT 10
117 !define HTRIGHT 11
118 !define HTTOP 12
119 !define HTTOPLEFT 13
120 !define HTTOPRIGHT 14
121 !define HTBOTTOM 15
122 !define HTBOTTOMLEFT 16
123 !define HTBOTTOMRIGHT 17
124 !define HTBORDER 18
125 !define HTREDUCE ${HTMINBUTTON}
126 !define HTZOOM ${HTMAXBUTTON}
127 !define HTSIZEFIRST ${HTLEFT}
128 !define HTSIZELAST ${HTBOTTOMRIGHT}
129 !define HTOBJECT 19
130 !define HTCLOSE 20
131 !define HTHELP 21
132 !endif
133
134 !ifndef __WIN_MS_NOSYSCOMMANDS
135 !define SC_SIZE 0xF000
136 !define SC_MOVE 0xF010
137 !define SC_MINIMIZE 0xF020
138 !define SC_MAXIMIZE 0xF030
139 !define SC_NEXTWINDOW 0xF040
140 !define SC_PREVWINDOW 0xF050
141 !define SC_CLOSE 0xF060
142 !define SC_VSCROLL 0xF070
143 !define SC_HSCROLL 0xF080
144 !define SC_MOUSEMENU 0xF090
145 !define SC_KEYMENU 0xF100
146 !define SC_ARRANGE 0xF110
147 !define SC_RESTORE 0xF120
148 !define SC_TASKLIST 0xF130
149 !define SC_SCREENSAVE 0xF140
150 !define SC_HOTKEY 0xF150
151 !define SC_DEFAULT 0xF160
152 !define SC_MONITORPOWER 0xF170
153 !define SC_CONTEXTHELP 0xF180
154 !define SC_SEPARATOR 0xF00F
155 !endif
156
157 !define /ifndef IDC_ARROW 32512
158 !define /ifndef IDC_IBEAM 32513
159 !define /ifndef IDC_WAIT 32514
160 !define /ifndef IDC_CROSS 32515
161 !define /ifndef IDC_UPARROW 32516
162 !define /ifndef IDC_SIZE 32640
163 !define /ifndef IDC_ICON 32641
164 !define /ifndef IDC_SIZENWSE 32642
165 !define /ifndef IDC_SIZENESW 32643
166 !define /ifndef IDC_SIZEWE 32644
167 !define /ifndef IDC_SIZENS 32645
168 !define /ifndef IDC_SIZEALL 32646
169 !define /ifndef IDC_NO 32648
170 !define /ifndef IDC_HAND 32649
171 !define /ifndef IDC_APPSTARTING 32650
172 !define /ifndef IDC_HELP 32651
173
174 !define /ifndef IMAGE_BITMAP 0
175 !define /ifndef IMAGE_ICON 1
176 !define /ifndef IMAGE_CURSOR 2
177 !define /ifndef IMAGE_ENHMETAFILE 3
178
179 !define /ifndef LR_DEFAULTCOLOR 0x0000
180 !define /ifndef LR_MONOCHROME 0x0001
181 !define /ifndef LR_COLOR 0x0002
182 !define /ifndef LR_COPYRETURNORG 0x0004
183 !define /ifndef LR_COPYDELETEORG 0x0008
184 !define /ifndef LR_LOADFROMFILE 0x0010
185 !define /ifndef LR_LOADTRANSPARENT 0x0020
186 !define /ifndef LR_DEFAULTSIZE 0x0040
187 !define /ifndef LR_VGACOLOR 0x0080
188 !define /ifndef LR_LOADMAP3DCOLORS 0x1000
189 !define /ifndef LR_CREATEDIBSECTION 0x2000
190 !define /ifndef LR_COPYFROMRESOURCE 0x4000
191 !define /ifndef LR_SHARED 0x8000
192
193 !define GA_PARENT 1
194 !define GA_ROOT 2
195 !define GA_ROOTOWNER 3
196
197 !endif /* __WIN_MS_NOUSER & __WIN_NOINC_WINUSER */
198 !verbose pop
199 !endif /* __WIN_WINUSER__INC */