1. #define WINVER 0x0500 /* version 5.0 */
2. #define RT_CURSOR MAKEINTRESOURCE(1)
3. #define RT_BITMAP MAKEINTRESOURCE(2)
4. #define RT_ICON MAKEINTRESOURCE(3)
5. #define RT_MENU MAKEINTRESOURCE(4)
6. #define RT_DIALOG MAKEINTRESOURCE(5)
7. #define RT_STRING MAKEINTRESOURCE(6)
8. #define RT_FONTDIR MAKEINTRESOURCE(7)
9. #define RT_FONT MAKEINTRESOURCE(8)
10. #define RT_ACCELERATOR MAKEINTRESOURCE(9)
11. #define RT_RCDATA MAKEINTRESOURCE(10)
12. #define RT_MESSAGETABLE MAKEINTRESOURCE(11)
13. #define DIFFERENCE 11
14. #define RT_VERSION MAKEINTRESOURCE(16)
15. #define RT_DLGINCLUDE MAKEINTRESOURCE(17)
16. #define RT_PLUGPLAY MAKEINTRESOURCE(19)
17. #define RT_VXD MAKEINTRESOURCE(20)
18. #define RT_ANICURSOR MAKEINTRESOURCE(21)
19. #define RT_ANIICON MAKEINTRESOURCE(22)
20. #define RT_HTML MAKEINTRESOURCE(23)
21. #define RT_MANIFEST 24
22. #define SB_HORZ 0
23. #define SB_VERT 1
24. #define SB_CTL 2
25. #define SB_BOTH 3
26. #define SB_LINEUP 0
27. #define SB_LINELEFT 0
28. #define SB_LINEDOWN 1
29. #define SB_LINERIGHT 1
30. #define SB_PAGEUP 2
31. #define SB_PAGELEFT 2
32. #define SB_PAGEDOWN 3
33. #define SB_PAGERIGHT 3
34. #define SB_THUMBPOSITION 4
35. #define SB_THUMBTRACK 5
36. #define SB_TOP 6
37. #define SB_LEFT 6
38. #define SB_BOTTOM 7
39. #define SB_RIGHT 7
40. #define SB_ENDSCROLL 8
41. #define SW_HIDE 0
42. #define SW_SHOWNORMAL 1
43. #define SW_NORMAL 1
44. #define SW_SHOWMINIMIZED 2
45. #define SW_SHOWMAXIMIZED 3
46. #define SW_MAXIMIZE 3
47. #define SW_SHOWNOACTIVATE 4
48. #define SW_SHOW 5
49. #define SW_MINIMIZE 6
50. #define SW_SHOWMINNOACTIVE 7
51. #define SW_SHOWNA 8
52. #define SW_RESTORE 9
53. #define SW_SHOWDEFAULT 10
54. #define SW_FORCEMINIMIZE 11
55. #define SW_MAX 11
56. #define HIDE_WINDOW 0
57. #define SHOW_OPENWINDOW 1
58. #define SHOW_ICONWINDOW 2
59. #define SHOW_FULLSCREEN 3
60. #define SHOW_OPENNOACTIVATE 4
61. #define SW_PARENTCLOSING 1
62. #define SW_OTHERZOOM 2
63. #define SW_PARENTOPENING 3
64. #define SW_OTHERUNZOOM 4
65. #define AW_HOR_POSITIVE 0x00000001
66. #define AW_HOR_NEGATIVE 0x00000002
67. #define AW_VER_POSITIVE 0x00000004
68. #define AW_VER_NEGATIVE 0x00000008
69. #define AW_CENTER 0x00000010
70. #define AW_HIDE 0x00010000
71. #define AW_ACTIVATE 0x00020000
72. #define AW_SLIDE 0x00040000
73. #define AW_BLEND 0x00080000
74. #define KF_EXTENDED 0x0100
75. #define KF_DLGMODE 0x0800
76. #define KF_MENUMODE 0x1000
77. #define KF_ALTDOWN 0x2000
78. #define KF_REPEAT 0x4000
79. #define KF_UP 0x8000
80. #define VK_LBUTTON 0x01
81. #define VK_RBUTTON 0x02
82. #define VK_CANCEL 0x03
83. #define VK_MBUTTON 0x04 /* NOT contiguous with L & RBUTTON */
84. #define VK_XBUTTON1 0x05 /* NOT contiguous with L & RBUTTON */
85. #define VK_XBUTTON2 0x06 /* NOT contiguous with L & RBUTTON */
86. #define VK_BACK 0x08
87. #define VK_TAB 0x09
88. #define VK_CLEAR 0x0C
89. #define VK_RETURN 0x0D
90. #define VK_SHIFT 0x10
91. #define VK_CONTROL 0x11
92. #define VK_MENU 0x12
93. #define VK_PAUSE 0x13
94. #define VK_CAPITAL 0x14
95. #define VK_KANA 0x15
96. #define VK_HANGEUL 0x15 /* old name - should be here for compatibility */
97. #define VK_HANGUL 0x15
98. #define VK_JUNJA 0x17
99. #define VK_FINAL 0x18
100. #define VK_HANJA 0x19
101. #define VK_KANJI 0x19
102. #define VK_ESCAPE 0x1B
103. #define VK_CONVERT 0x1C
104. #define VK_NONCONVERT 0x1D
105. #define VK_ACCEPT 0x1E
106. #define VK_MODECHANGE 0x1F
107. #define VK_SPACE 0x20
108. #define VK_PRIOR 0x21
109. #define VK_NEXT 0x22
110. #define VK_END 0x23
111. #define VK_HOME 0x24
112. #define VK_LEFT 0x25
113. #define VK_UP 0x26
114. #define VK_RIGHT 0x27
115. #define VK_DOWN 0x28
116. #define VK_SELECT 0x29
117. #define VK_PRINT 0x2A
118. #define VK_EXECUTE 0x2B
119. #define VK_SNAPSHOT 0x2C
120. #define VK_INSERT 0x2D
121. #define VK_DELETE 0x2E
122. #define VK_HELP 0x2F
123. #define VK_LWIN 0x5B
124. #define VK_RWIN 0x5C
125. #define VK_APPS 0x5D
126. #define VK_SLEEP 0x5F
127. #define VK_NUMPAD0 0x60
128. #define VK_NUMPAD1 0x61
129. #define VK_NUMPAD2 0x62
130. #define VK_NUMPAD3 0x63
131. #define VK_NUMPAD4 0x64
132. #define VK_NUMPAD5 0x65
133. #define VK_NUMPAD6 0x66
134. #define VK_NUMPAD7 0x67
135. #define VK_NUMPAD8 0x68
136. #define VK_NUMPAD9 0x69
137. #define VK_MULTIPLY 0x6A
138. #define VK_ADD 0x6B
139. #define VK_SEPARATOR 0x6C
140. #define VK_SUBTRACT 0x6D
141. #define VK_DECIMAL 0x6E
142. #define VK_DIVIDE 0x6F
143. #define VK_F1 0x70
144. #define VK_F2 0x71
145. #define VK_F3 0x72
146. #define VK_F4 0x73
147. #define VK_F5 0x74
148. #define VK_F6 0x75
149. #define VK_F7 0x76
150. #define VK_F8 0x77
151. #define VK_F9 0x78
152. #define VK_F10 0x79
153. #define VK_F11 0x7A
154. #define VK_F12 0x7B
155. #define VK_F13 0x7C
156. #define VK_F14 0x7D
157. #define VK_F15 0x7E
158. #define VK_F16 0x7F
159. #define VK_F17 0x80
160. #define VK_F18 0x81
161. #define VK_F19 0x82
162. #define VK_F20 0x83
163. #define VK_F21 0x84
164. #define VK_F22 0x85
165. #define VK_F23 0x86
166. #define VK_F24 0x87
167. #define VK_NUMLOCK 0x90
168. #define VK_SCROLL 0x91
169. #define VK_OEM_NEC_EQUAL 0x92 // ‘=‘ key on numpad
170. #define VK_OEM_FJ_JISHO 0x92 // ‘Dictionary‘ key
171. #define VK_OEM_FJ_MASSHOU 0x93 // ‘Unregister word‘ key
172. #define VK_OEM_FJ_TOUROKU 0x94 // ‘Register word‘ key
173. #define VK_OEM_FJ_LOYA 0x95 // ‘Left OYAYUBI‘ key
174. #define VK_OEM_FJ_ROYA 0x96 // ‘Right OYAYUBI‘ key
175. #define VK_LSHIFT 0xA0
176. #define VK_RSHIFT 0xA1
177. #define VK_LCONTROL 0xA2
178. #define VK_RCONTROL 0xA3
179. #define VK_LMENU 0xA4
180. #define VK_RMENU 0xA5
181. #define VK_BROWSER_BACK 0xA6
182. #define VK_BROWSER_FORWARD 0xA7
183. #define VK_BROWSER_REFRESH 0xA8
184. #define VK_BROWSER_STOP 0xA9
185. #define VK_BROWSER_SEARCH 0xAA
186. #define VK_BROWSER_FAVORITES 0xAB
187. #define VK_BROWSER_HOME 0xAC
188. #define VK_VOLUME_MUTE 0xAD
189. #define VK_VOLUME_DOWN 0xAE
190. #define VK_VOLUME_UP 0xAF
191. #define VK_MEDIA_NEXT_TRACK 0xB0
192. #define VK_MEDIA_PREV_TRACK 0xB1
193. #define VK_MEDIA_STOP 0xB2
194. #define VK_MEDIA_PLAY_PAUSE 0xB3
195. #define VK_LAUNCH_MAIL 0xB4
196. #define VK_LAUNCH_MEDIA_SELECT 0xB5
197. #define VK_LAUNCH_APP1 0xB6
198. #define VK_LAUNCH_APP2 0xB7
199. #define VK_OEM_1 0xBA // ‘;:‘ for US
200. #define VK_OEM_PLUS 0xBB // ‘+‘ any country
201. #define VK_OEM_COMMA 0xBC // ‘,‘ any country
202. #define VK_OEM_MINUS 0xBD // ‘-‘ any country
203. #define VK_OEM_PERIOD 0xBE // ‘.‘ any country
204. #define VK_OEM_2 0xBF // ‘/?‘ for US
205. #define VK_OEM_3 0xC0 // ‘`~‘ for US
206. #define VK_OEM_4 0xDB // ‘[{‘ for US
207. #define VK_OEM_5 0xDC // ‘\|‘ for US
208. #define VK_OEM_6 0xDD // ‘]}‘ for US
209. #define VK_OEM_7 0xDE // ‘‘"‘ for US
210. #define VK_OEM_8 0xDF
211. #define VK_OEM_AX 0xE1 // ‘AX‘ key on Japanese AX kbd
212. #define VK_OEM_102 0xE2 // "" or "\|" on RT 102-key kbd.
213. #define VK_ICO_HELP 0xE3 // Help key on ICO
214. #define VK_ICO_00 0xE4 // 00 key on ICO
215. #define VK_PROCESSKEY 0xE5
216. #define VK_ICO_CLEAR 0xE6
217. #define VK_PACKET 0xE7
218. #define VK_OEM_RESET 0xE9
219. #define VK_OEM_JUMP 0xEA
220. #define VK_OEM_PA1 0xEB
221. #define VK_OEM_PA2 0xEC
222. #define VK_OEM_PA3 0xED
223. #define VK_OEM_WSCTRL 0xEE
224. #define VK_OEM_CUSEL 0xEF
225. #define VK_OEM_ATTN 0xF0
226. #define VK_OEM_FINISH 0xF1
227. #define VK_OEM_COPY 0xF2
228. #define VK_OEM_AUTO 0xF3
229. #define VK_OEM_ENLW 0xF4
230. #define VK_OEM_BACKTAB 0xF5
231. #define VK_ATTN 0xF6
232. #define VK_CRSEL 0xF7
233. #define VK_EXSEL 0xF8
234. #define VK_EREOF 0xF9
235. #define VK_PLAY 0xFA
236. #define VK_ZOOM 0xFB
237. #define VK_NONAME 0xFC
238. #define VK_PA1 0xFD
239. #define VK_OEM_CLEAR 0xFE
240. #define WH_MIN (-1)
241. #define WH_MSGFILTER (-1)
242. #define WH_JOURNALRECORD 0
243. #define WH_JOURNALPLAYBACK 1
244. #define WH_KEYBOARD 2
245. #define WH_GETMESSAGE 3
246. #define WH_CALLWNDPROC 4
247. #define WH_CBT 5
248. #define WH_SYSMSGFILTER 6
249. #define WH_MOUSE 7
250. #define WH_HARDWARE 8
251. #define WH_DEBUG 9
252. #define WH_SHELL 10
253. #define WH_FOREGROUNDIDLE 11
254. #define WH_CALLWNDPROCRET 12
255. #define WH_KEYBOARD_LL 13
256. #define WH_MOUSE_LL 14
257. #define WH_MAX 14
258. #define WH_MAX 12
259. #define WH_MAX 11
260. #define WH_MINHOOK WH_MIN
261. #define WH_MAXHOOK WH_MAX
262. #define HC_ACTION 0
263. #define HC_GETNEXT 1
264. #define HC_SKIP 2
265. #define HC_NOREMOVE 3
266. #define HC_NOREM HC_NOREMOVE
267. #define HC_SYSMODALON 4
268. #define HC_SYSMODALOFF 5
269. #define HCBT_MOVESIZE 0
270. #define HCBT_MINMAX 1
271. #define HCBT_QS 2
272. #define HCBT_CREATEWND 3
273. #define HCBT_DESTROYWND 4
274. #define HCBT_ACTIVATE 5
275. #define HCBT_CLICKSKIPPED 6
276. #define HCBT_KEYSKIPPED 7
277. #define HCBT_SYSCOMMAND 8
278. #define HCBT_SETFOCUS 9
279. #define WTS_CONSOLE_CONNECT 0x1
280. #define WTS_CONSOLE_DISCONNECT 0x2
281. #define WTS_REMOTE_CONNECT 0x3
282. #define WTS_REMOTE_DISCONNECT 0x4
283. #define WTS_SESSION_LOGON 0x5
284. #define WTS_SESSION_LOGOFF 0x6
285. #define WTS_SESSION_LOCK 0x7
286. #define WTS_SESSION_UNLOCK 0x8
287. #define WTS_SESSION_REMOTE_CONTROL 0x9
288. #define WTS_SESSION_CREATE 0xa
289. #define WTS_SESSION_TERMINATE 0xb
290. #define MSGF_DIALOGBOX 0
291. #define MSGF_MESSAGEBOX 1
292. #define MSGF_MENU 2
293. #define MSGF_SCROLLBAR 5
294. #define MSGF_NEXTWINDOW 6
295. #define MSGF_MAX 8 // unused
296. #define MSGF_USER 4096
297. #define HSHELL_WINDOWCREATED 1
298. #define HSHELL_WINDOWDESTROYED 2
299. #define HSHELL_ACTIVATESHELLWINDOW 3
300. #define HSHELL_WINDOWACTIVATED 4
301. #define HSHELL_GETMINRECT 5
302. #define HSHELL_REDRAW 6
303. #define HSHELL_TASKMAN 7
304. #define HSHELL_LANGUAGE 8
305. #define HSHELL_SYSMENU 9
306. #define HSHELL_ENDTASK 10
307. #define HSHELL_ACCESSIBILITYSTATE 11
308. #define HSHELL_APPCOMMAND 12
309. #define HSHELL_WINDOWREPLACED 13
310. #define HSHELL_WINDOWREPLACING 14
311. #define HSHELL_MONITORCHANGED 16
312. #define HSHELL_HIGHBIT 0x8000
313. #define HSHELL_FLASH (HSHELL_REDRAW|HSHELL_HIGHBIT)
314. #define HSHELL_RUDEAPPACTIVATED (HSHELL_WINDOWACTIVATED|HSHELL_HIGHBIT)
315. #define APPCOMMAND_BROWSER_BACKWARD 1
316. #define APPCOMMAND_BROWSER_FORWARD 2
317. #define APPCOMMAND_BROWSER_REFRESH 3
318. #define APPCOMMAND_BROWSER_STOP 4
319. #define APPCOMMAND_BROWSER_SEARCH 5
320. #define APPCOMMAND_BROWSER_FAVORITES 6
321. #define APPCOMMAND_BROWSER_HOME 7
322. #define APPCOMMAND_VOLUME_MUTE 8
323. #define APPCOMMAND_VOLUME_DOWN 9
324. #define APPCOMMAND_VOLUME_UP 10
&g