这是从 c:\Program Files\Windows Kits\8.1\Include\um\WinUser.h 这个文件 中提取的
CTRL+F 查看变量所对应的值
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
325. #define APPCOMMAND_MEDIA_NEXTTRACK 11
326. #define APPCOMMAND_MEDIA_PREVIOUSTRACK 12
327. #define APPCOMMAND_MEDIA_STOP 13
328. #define APPCOMMAND_MEDIA_PLAY_PAUSE 14
329. #define APPCOMMAND_LAUNCH_MAIL 15
330. #define APPCOMMAND_LAUNCH_MEDIA_SELECT 16
331. #define APPCOMMAND_LAUNCH_APP1 17
332. #define APPCOMMAND_LAUNCH_APP2 18
333. #define APPCOMMAND_BASS_DOWN 19
334. #define APPCOMMAND_BASS_BOOST 20
335. #define APPCOMMAND_BASS_UP 21
336. #define APPCOMMAND_TREBLE_DOWN 22
337. #define APPCOMMAND_TREBLE_UP 23
338. #define APPCOMMAND_MICROPHONE_VOLUME_MUTE 24
339. #define APPCOMMAND_MICROPHONE_VOLUME_DOWN 25
340. #define APPCOMMAND_MICROPHONE_VOLUME_UP 26
341. #define APPCOMMAND_HELP 27
342. #define APPCOMMAND_FIND 28
343. #define APPCOMMAND_NEW 29
344. #define APPCOMMAND_OPEN 30
345. #define APPCOMMAND_CLOSE 31
346. #define APPCOMMAND_SAVE 32
347. #define APPCOMMAND_PRINT 33
348. #define APPCOMMAND_UNDO 34
349. #define APPCOMMAND_REDO 35
350. #define APPCOMMAND_COPY 36
351. #define APPCOMMAND_CUT 37
352. #define APPCOMMAND_PASTE 38
353. #define APPCOMMAND_REPLY_TO_MAIL 39
354. #define APPCOMMAND_FORWARD_MAIL 40
355. #define APPCOMMAND_SEND_MAIL 41
356. #define APPCOMMAND_SPELL_CHECK 42
357. #define APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE 43
358. #define APPCOMMAND_MIC_ON_OFF_TOGGLE 44
359. #define APPCOMMAND_CORRECTION_LIST 45
360. #define APPCOMMAND_MEDIA_PLAY 46
361. #define APPCOMMAND_MEDIA_PAUSE 47
362. #define APPCOMMAND_MEDIA_RECORD 48
363. #define APPCOMMAND_MEDIA_FAST_FORWARD 49
364. #define APPCOMMAND_MEDIA_REWIND 50
365. #define APPCOMMAND_MEDIA_CHANNEL_UP 51
366. #define APPCOMMAND_MEDIA_CHANNEL_DOWN 52
367. #define APPCOMMAND_DELETE 53
368. #define APPCOMMAND_DWM_FLIP3D 54
369. #define FAPPCOMMAND_MOUSE 0x8000
370. #define FAPPCOMMAND_KEY 0
371. #define FAPPCOMMAND_OEM 0x1000
372. #define FAPPCOMMAND_MASK 0xF000
373. #define LLKHF_EXTENDED (KF_EXTENDED >> 8)
374. #define LLKHF_INJECTED 0x00000010
375. #define LLKHF_ALTDOWN (KF_ALTDOWN >> 8)
376. #define LLKHF_UP (KF_UP >> 8)
377. #define LLMHF_INJECTED 0x00000001
378. #define HKL_PREV 0
379. #define HKL_NEXT 1
380. #define KLF_ACTIVATE 0x00000001
381. #define KLF_SUBSTITUTE_OK 0x00000002
382. #define KLF_REORDER 0x00000008
383. #define KLF_REPLACELANG 0x00000010
384. #define KLF_NOTELLSHELL 0x00000080
385. #define KLF_SETFORPROCESS 0x00000100
386. #define KLF_SHIFTLOCK 0x00010000
387. #define KLF_RESET 0x40000000
388. #define INPUTLANGCHANGE_SYSCHARSET 0x0001
389. #define INPUTLANGCHANGE_FORWARD 0x0002
390. #define INPUTLANGCHANGE_BACKWARD 0x0004
391. #define KL_NAMELENGTH 9
392. #define GMMP_USE_DISPLAY_POINTS 1
393. #define GMMP_USE_HIGH_RESOLUTION_POINTS 2
394. #define DESKTOP_READOBJECTS 0x0001L
395. #define DESKTOP_CREATEWINDOW 0x0002L
396. #define DESKTOP_CREATEMENU 0x0004L
397. #define DESKTOP_HOOKCONTROL 0x0008L
398. #define DESKTOP_JOURNALRECORD 0x0010L
399. #define DESKTOP_JOURNALPLAYBACK 0x0020L
400. #define DESKTOP_ENUMERATE 0x0040L
401. #define DESKTOP_WRITEOBJECTS 0x0080L
402. #define DESKTOP_SWITCHDESKTOP 0x0100L
403. #define DF_ALLOWOTHERACCOUNTHOOK 0x0001L
404. #define CreateDesktop CreateDesktopW
405. #define CreateDesktop CreateDesktopA
406. #define CreateDesktopEx CreateDesktopExW
407. #define CreateDesktopEx CreateDesktopExA
408. #define OpenDesktop OpenDesktopW
409. #define OpenDesktop OpenDesktopA
410. #define EnumDesktops EnumDesktopsW
411. #define EnumDesktops EnumDesktopsA
412. #define WINSTA_ENUMDESKTOPS 0x0001L
413. #define WINSTA_READATTRIBUTES 0x0002L
414. #define WINSTA_ACCESSCLIPBOARD 0x0004L
415. #define WINSTA_CREATEDESKTOP 0x0008L
416. #define WINSTA_WRITEATTRIBUTES 0x0010L
417. #define WINSTA_ACCESSGLOBALATOMS 0x0020L
418. #define WINSTA_EXITWINDOWS 0x0040L
419. #define WINSTA_ENUMERATE 0x0100L
420. #define WINSTA_READSCREEN 0x0200L
421. #define CWF_CREATE_ONLY 0x00000001
422. #define WSF_VISIBLE 0x0001L
423. #define UOI_FLAGS 1
424. #define UOI_NAME 2
425. #define UOI_TYPE 3
426. #define UOI_USER_SID 4
427. #define UOI_HEAPSIZE 5
428. #define UOI_IO 6
429. #define GWL_WNDPROC (-4)
430. #define GWL_HINSTANCE (-6)
431. #define GWL_HWNDPARENT (-8)
432. #define GWL_STYLE (-16)
433. #define GWL_EXSTYLE (-20)
434. #define GWL_USERDATA (-21)
435. #define GWL_ID (-12)
436. #define GWLP_WNDPROC (-4)
437. #define GWLP_HINSTANCE (-6)
438. #define GWLP_HWNDPARENT (-8)
439. #define GWLP_USERDATA (-21)
440. #define GWLP_ID (-12)
441. #define GCL_MENUNAME (-8)
442. #define GCL_HBRBACKGROUND (-10)
443. #define GCL_HCURSOR (-12)
444. #define GCL_HICON (-14)
445. #define GCL_HMODULE (-16)
446. #define GCL_CBWNDEXTRA (-18)
447. #define GCL_CBCLSEXTRA (-20)
448. #define GCL_WNDPROC (-24)
449. #define GCL_STYLE (-26)
450. #define GCW_ATOM (-32)
451. #define GCL_HICONSM (-34)
452. #define GCLP_MENUNAME (-8)
453. #define GCLP_HBRBACKGROUND (-10)
454. #define GCLP_HCURSOR (-12)
455. #define GCLP_HICON (-14)
456. #define GCLP_HMODULE (-16)
457. #define GCLP_WNDPROC (-24)
458. #define GCLP_HICONSM (-34)
459. #define WM_NULL 0x0000
460. #define WM_CREATE 0x0001
461. #define WM_DESTROY 0x0002
462. #define WM_MOVE 0x0003
463. #define WM_SIZE 0x0005
464. #define WM_ACTIVATE 0x0006
465. #define WA_INACTIVE 0
466. #define WA_ACTIVE 1
467. #define WA_CLICKACTIVE 2
468. #define WM_SETFOCUS 0x0007
469. #define WM_KILLFOCUS 0x0008
470. #define WM_ENABLE 0x000A
471. #define WM_SETREDRAW 0x000B
472. #define WM_SETTEXT 0x000C
473. #define WM_GETTEXT 0x000D
474. #define WM_GETTEXTLENGTH 0x000E
475. #define WM_PAINT 0x000F
476. #define WM_CLOSE 0x0010
477. #define WM_QUERYENDSESSION 0x0011
478. #define WM_QUERYOPEN 0x0013
479. #define WM_ENDSESSION 0x0016
480. #define WM_QUIT 0x0012
481. #define WM_ERASEBKGND 0x0014
482. #define WM_SYSCOLORCHANGE 0x0015
483. #define WM_SHOWWINDOW 0x0018
484. #define WM_WININICHANGE 0x001A
485. #define WM_SETTINGCHANGE WM_WININICHANGE
486. #define WM_DEVMODECHANGE 0x001B
487. #define WM_ACTIVATEAPP 0x001C
488. #define WM_FONTCHANGE 0x001D
489. #define WM_TIMECHANGE 0x001E
490. #define WM_CANCELMODE 0x001F
491. #define WM_SETCURSOR 0x0020
492. #define WM_MOUSEACTIVATE 0x0021
493. #define WM_CHILDACTIVATE 0x0022
494. #define WM_QUEUESYNC 0x0023
495. #define WM_GETMINMAXINFO 0x0024
496. #define WM_PAINTICON 0x0026
497. #define WM_ICONERASEBKGND 0x0027
498. #define WM_NEXTDLGCTL 0x0028
499. #define WM_SPOOLERSTATUS 0x002A
500. #define WM_DRAWITEM 0x002B
501. #define WM_MEASUREITEM 0x002C
502. #define WM_DELETEITEM 0x002D
503. #define WM_VKEYTOITEM 0x002E
504. #define WM_CHARTOITEM 0x002F
505. #define WM_SETFONT 0x0030
506. #define WM_GETFONT 0x0031
507. #define WM_SETHOTKEY 0x0032
508. #define WM_GETHOTKEY 0x0033
509. #define WM_QUERYDRAGICON 0x0037
510. #define WM_COMPAREITEM 0x0039
511. #define WM_GETOBJECT 0x003D
512. #define WM_COMPACTING 0x0041
513. #define WM_COMMNOTIFY 0x0044 /* no longer suported */
514. #define WM_WINDOWPOSCHANGING 0x0046
515. #define WM_WINDOWPOSCHANGED 0x0047
516. #define WM_POWER 0x0048
517. #define PWR_OK 1
518. #define PWR_FAIL (-1)
519. #define PWR_SUSPENDREQUEST 1
520. #define PWR_SUSPENDRESUME 2
521. #define PWR_CRITICALRESUME 3
522. #define WM_COPYDATA 0x004A
523. #define WM_CANCELJOURNAL 0x004B
524. #define WM_NOTIFY 0x004E
525. #define WM_INPUTLANGCHANGEREQUEST 0x0050
526. #define WM_INPUTLANGCHANGE 0x0051
527. #define WM_TCARD 0x0052
528. #define WM_HELP 0x0053
529. #define WM_USERCHANGED 0x0054
530. #define WM_NOTIFYFORMAT 0x0055
531. #define NFR_ANSI 1
532. #define NFR_UNICODE 2
533. #define NF_QUERY 3
534. #define NF_REQUERY 4
535. #define WM_CONTEXTMENU 0x007B
536. #define WM_STYLECHANGING 0x007C
537. #define WM_STYLECHANGED 0x007D
538. #define WM_DISPLAYCHANGE 0x007E
539. #define WM_GETICON 0x007F
540. #define WM_SETICON 0x0080
541. #define WM_NCCREATE 0x0081
542. #define WM_NCDESTROY 0x0082
543. #define WM_NCCALCSIZE 0x0083
544. #define WM_NCHITTEST 0x0084
545. #define WM_NCPAINT 0x0085
546. #define WM_NCACTIVATE 0x0086
547. #define WM_GETDLGCODE 0x0087
548. #define WM_SYNCPAINT 0x0088
549. #define WM_NCMOUSEMOVE 0x00A0
550. #define WM_NCLBUTTONDOWN 0x00A1
551. #define WM_NCLBUTTONUP 0x00A2
552. #define WM_NCLBUTTONDBLCLK 0x00A3
553. #define WM_NCRBUTTONDOWN 0x00A4
554. #define WM_NCRBUTTONUP 0x00A5
555. #define WM_NCRBUTTONDBLCLK 0x00A6
556. #define WM_NCMBUTTONDOWN 0x00A7
557. #define WM_NCMBUTTONUP 0x00A8
558. #define WM_NCMBUTTONDBLCLK 0x00A9
559. #define WM_NCXBUTTONDOWN 0x00AB
560. #define WM_NCXBUTTONUP 0x00AC
561. #define WM_NCXBUTTONDBLCLK 0x00AD
562. #define WM_INPUT_DEVICE_CHANGE 0x00FE
563. #define WM_INPUT 0x00FF
564. #define WM_KEYFIRST 0x0100
565. #define WM_KEYDOWN 0x0100
566. #define WM_KEYUP 0x0101
567. #define WM_CHAR 0x0102
568. #define WM_DEADCHAR 0x0103
569. #define WM_SYSKEYDOWN 0x0104
570. #define WM_SYSKEYUP 0x0105
571. #define WM_SYSCHAR 0x0106
572. #define WM_SYSDEADCHAR 0x0107
573. #define WM_UNICHAR 0x0109
574. #define WM_KEYLAST 0x0109
575. #define UNICODE_NOCHAR 0xFFFF
576. #define WM_KEYLAST 0x0108
577. #define WM_IME_STARTCOMPOSITION 0x010D
578. #define WM_IME_ENDCOMPOSITION 0x010E
579. #define WM_IME_COMPOSITION 0x010F
580. #define WM_IME_KEYLAST 0x010F
581. #define WM_INITDIALOG 0x0110
582. #define WM_COMMAND 0x0111
583. #define WM_SYSCOMMAND 0x0112
584. #define WM_TIMER 0x0113
585. #define WM_HSCROLL 0x0114
586. #define WM_VSCROLL 0x0115
587. #define WM_INITMENU 0x0116
588. #define WM_INITMENUPOPUP 0x0117
589. #define WM_GESTURE 0x0119
590. #define WM_GESTURENOTIFY 0x011A
591. #define WM_MENUSELECT 0x011F
592. #define WM_MENUCHAR 0x0120
593. #define WM_ENTERIDLE 0x0121
594. #define WM_MENURBUTTONUP 0x0122
595. #define WM_MENUDRAG 0x0123
596. #define WM_MENUGETOBJECT 0x0124
597. #define WM_UNINITMENUPOPUP 0x0125
598. #define WM_MENUCOMMAND 0x0126
599. #define WM_CHANGEUISTATE 0x0127
600. #define WM_UPDATEUISTATE 0x0128
601. #define WM_QUERYUISTATE 0x0129
602. #define UIS_SET 1
603. #define UIS_CLEAR 2
604. #define UIS_INITIALIZE 3
605. #define UISF_HIDEFOCUS 0x1
606. #define UISF_HIDEACCEL 0x2
607. #define UISF_ACTIVE 0x4
608. #define WM_CTLCOLORMSGBOX 0x0132
609. #define WM_CTLCOLOREDIT 0x0133
610. #define WM_CTLCOLORLISTBOX 0x0134
611. #define WM_CTLCOLORBTN 0x0135
612. #define WM_CTLCOLORDLG 0x0136
613. #define WM_CTLCOLORSCROLLBAR 0x0137
614. #define WM_CTLCOLORSTATIC 0x0138
615. #define MN_GETHMENU 0x01E1
616. #define WM_MOUSEFIRST 0x0200
617. #define WM_MOUSEMOVE 0x0200
618. #define WM_LBUTTONDOWN 0x0201
619. #define WM_LBUTTONUP 0x0202
620. #define WM_LBUTTONDBLCLK 0x0203
621. #define WM_RBUTTONDOWN 0x0204
622. #define WM_RBUTTONUP 0x0205
623. #define WM_RBUTTONDBLCLK 0x0206
624. #define WM_MBUTTONDOWN 0x0207
625. #define WM_MBUTTONUP 0x0208
626. #define WM_MBUTTONDBLCLK 0x0209
627. #define WM_MOUSEWHEEL 0x020A
628. #define WM_XBUTTONDOWN 0x020B
629. #define WM_XBUTTONUP 0x020C
630. #define WM_XBUTTONDBLCLK 0x020D
631. #define WM_MOUSEHWHEEL 0x020E
632. #define WM_MOUSELAST 0x020E
633. #define WM_MOUSELAST 0x020D
634. #define WM_MOUSELAST 0x020A
635. #define WM_MOUSELAST 0x0209
636. #define WHEEL_DELTA 120
637. #define GET_WHEEL_DELTA_WPARAM(wParam) ((short)HIWORD(wParam))
638. #define WHEEL_PAGESCROLL (UINT_MAX)
639. #define GET_KEYSTATE_WPARAM(wParam) (LOWORD(wParam))
640. #define GET_NCHITTEST_WPARAM(wParam) ((short)LOWORD(wParam))
641. #define GET_XBUTTON_WPARAM(wParam) (HIWORD(wParam))
642. #define XBUTTON1 0x0001
643. #define XBUTTON2 0x0002
644. #define WM_PARENTNOTIFY 0x0210
645. #define WM_ENTERMENULOOP 0x0211
646. #define WM_EXITMENULOOP 0x0212
647. #define WM_NEXTMENU 0x0213
648. #define WM_SIZING 0x0214
649. #define WM_CAPTURECHANGED 0x0215
650. #define WM_MOVING 0x0216
651. #define WM_POWERBROADCAST 0x0218
652. #define PBT_APMQUERYSUSPEND 0x0000
653. #define PBT_APMQUERYSTANDBY 0x0001
654. #define PBT_APMQUERYSUSPENDFAILED 0x0002
655. #define PBT_APMQUERYSTANDBYFAILED 0x0003
656. #define PBT_APMSUSPEND 0x0004
657. #define PBT_APMSTANDBY 0x0005
658. #define PBT_APMRESUMECRITICAL 0x0006
659. #define PBT_APMRESUMESUSPEND 0x0007
660. #define PBT_APMRESUMESTANDBY 0x0008
661. #define PBTF_APMRESUMEFROMFAILURE 0x00000001
662. #define PBT_APMBATTERYLOW 0x0009
663. #define PBT_APMPOWERSTATUSCHANGE 0x000A
664. #define PBT_APMOEMEVENT 0x000B
665. #define PBT_APMRESUMEAUTOMATIC 0x0012
666. #define PBT_POWERSETTINGCHANGE 0x8013
667. #define WM_DEVICECHANGE 0x0219
668. #define WM_MDICREATE 0x0220
669. #define WM_MDIDESTROY 0x0221
670. #define WM_MDIACTIVATE 0x0222
671. #define WM_MDIRESTORE 0x0223
672. #define WM_MDINEXT 0x0224
673. #define WM_MDIMAXIMIZE 0x0225
674. #define WM_MDITILE 0x0226
675. #define WM_MDICASCADE 0x0227
676. #define WM_MDIICONARRANGE 0x0228
677. #define WM_MDIGETACTIVE 0x0229
678. #define WM_MDISETMENU 0x0230
679. #define WM_ENTERSIZEMOVE 0x0231
680. #define WM_EXITSIZEMOVE 0x0232
681. #define WM_DROPFILES 0x0233
682. #define WM_MDIREFRESHMENU 0x0234
683. #define WM_POINTERDEVICECHANGE 0x238
684. #define WM_POINTERDEVICEINRANGE 0x239
685. #define WM_POINTERDEVICEOUTOFRANGE 0x23A
686. #define WM_TOUCH 0x0240
687. #define WM_NCPOINTERUPDATE 0x0241
688. #define WM_NCPOINTERDOWN 0x0242
689. #define WM_NCPOINTERUP 0x0243
690. #define WM_POINTERUPDATE 0x0245
691. #define WM_POINTERDOWN 0x0246
692. #define WM_POINTERUP 0x0247
693. #define WM_POINTERENTER 0x0249
694. #define WM_POINTERLEAVE 0x024A
695. #define WM_POINTERACTIVATE 0x024B
696. #define WM_POINTERCAPTURECHANGED 0x024C
697. #define WM_TOUCHHITTESTING 0x024D
698. #define WM_POINTERWHEEL 0x024E
699. #define WM_POINTERHWHEEL 0x024F
700. #define DM_POINTERHITTEST 0x0250
701. #define WM_IME_SETCONTEXT 0x0281
702. #define WM_IME_NOTIFY 0x0282
703. #define WM_IME_CONTROL 0x0283
704. #define WM_IME_COMPOSITIONFULL 0x0284
705. #define WM_IME_SELECT 0x0285
706. #define WM_IME_CHAR 0x0286
707. #define WM_IME_REQUEST 0x0288
708. #define WM_IME_KEYDOWN 0x0290
709. #define WM_IME_KEYUP 0x0291
710. #define WM_MOUSEHOVER 0x02A1
711. #define WM_MOUSELEAVE 0x02A3
712. #define WM_NCMOUSEHOVER 0x02A0
713. #define WM_NCMOUSELEAVE 0x02A2
714. #define WM_WTSSESSION_CHANGE 0x02B1
715. #define WM_TABLET_FIRST 0x02c0
716. #define WM_TABLET_LAST 0x02df
717. #define WM_DPICHANGED 0x02E0
718. #define WM_CUT 0x0300
719. #define WM_COPY 0x0301
720. #define WM_PASTE 0x0302
721. #define WM_CLEAR 0x0303
722. #define WM_UNDO 0x0304
723. #define WM_RENDERFORMAT 0x0305
724. #define WM_RENDERALLFORMATS 0x0306
725. #define WM_DESTROYCLIPBOARD 0x0307
726. #define WM_DRAWCLIPBOARD 0x0308
727. #define WM_PAINTCLIPBOARD 0x0309
728. #define WM_VSCROLLCLIPBOARD 0x030A
729. #define WM_SIZECLIPBOARD 0x030B
730. #define WM_ASKCBFORMATNAME 0x030C
731. #define WM_CHANGECBCHAIN 0x030D
732. #define WM_HSCROLLCLIPBOARD 0x030E
733. #define WM_QUERYNEWPALETTE 0x030F
734. #define WM_PALETTEISCHANGING 0x0310
735. #define WM_PALETTECHANGED 0x0311
736. #define WM_HOTKEY 0x0312
737. #define WM_PRINT 0x0317
738. #define WM_PRINTCLIENT 0x0318
739. #define WM_APPCOMMAND 0x0319
740. #define WM_THEMECHANGED 0x031A
741. #define WM_CLIPBOARDUPDATE 0x031D
742. #define WM_DWMCOMPOSITIONCHANGED 0x031E
743. #define WM_DWMNCRENDERINGCHANGED 0x031F
744. #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320
745. #define WM_DWMWINDOWMAXIMIZEDCHANGE 0x0321
746. #define WM_DWMSENDICONICTHUMBNAIL 0x0323
747. #define WM_DWMSENDICONICLIVEPREVIEWBITMAP 0x0326
748. #define WM_GETTITLEBARINFOEX 0x033F
749. #define WM_HANDHELDFIRST 0x0358
750. #define WM_HANDHELDLAST 0x035F
751. #define WM_AFXFIRST 0x0360
752. #define WM_AFXLAST 0x037F
753. #define WM_PENWINFIRST 0x0380
754. #define WM_PENWINLAST 0x038F
755. #define WM_APP 0x8000
756. #define WM_USER 0x0400
757. #define WMSZ_LEFT 1
758. #define WMSZ_RIGHT 2
759. #define WMSZ_TOP 3
760. #define WMSZ_TOPLEFT 4
761. #define WMSZ_TOPRIGHT 5
762. #define WMSZ_BOTTOM 6
763. #define WMSZ_BOTTOMLEFT 7
764. #define WMSZ_BOTTOMRIGHT 8
765. #define HTERROR (-2)
766. #define HTTRANSPARENT (-1)
767. #define HTNOWHERE 0
768. #define HTCLIENT 1
769. #define HTCAPTION 2
770. #define HTSYSMENU 3
771. #define HTGROWBOX 4
772. #define HTSIZE HTGROWBOX
773. #define HTMENU 5
774. #define HTHSCROLL 6
775. #define HTVSCROLL 7
776. #define HTMINBUTTON 8
777. #define HTMAXBUTTON 9
778. #define HTLEFT 10
779. #define HTRIGHT 11
780. #define HTTOP 12
781. #define HTTOPLEFT 13
782. #define HTTOPRIGHT 14
783. #define HTBOTTOM 15
784. #define HTBOTTOMLEFT 16
785. #define HTBOTTOMRIGHT 17
786. #define HTBORDER 18
787. #define HTREDUCE HTMINBUTTON
788. #define HTZOOM HTMAXBUTTON
789. #define HTSIZEFIRST HTLEFT
790. #define HTSIZELAST HTBOTTOMRIGHT
791. #define HTOBJECT 19
792. #define HTCLOSE 20
793. #define HTHELP 21
794. #define SMTO_NORMAL 0x0000
795. #define SMTO_BLOCK 0x0001
796. #define SMTO_ABORTIFHUNG 0x0002
797. #define SMTO_NOTIMEOUTIFNOTHUNG 0x0008
798. #define SMTO_ERRORONEXIT 0x0020
799. #define MA_ACTIVATE 1
800. #define MA_ACTIVATEANDEAT 2
801. #define MA_NOACTIVATE 3
802. #define MA_NOACTIVATEANDEAT 4
803. #define ICON_SMALL 0
804. #define ICON_BIG 1
805. #define ICON_SMALL2 2
806. #define SIZE_RESTORED 0
807. #define SIZE_MINIMIZED 1
808. #define SIZE_MAXIMIZED 2
809. #define SIZE_MAXSHOW 3
810. #define SIZE_MAXHIDE 4
811. #define WVR_ALIGNTOP 0x0010
812. #define WVR_ALIGNLEFT 0x0020
813. #define WVR_ALIGNBOTTOM 0x0040
814. #define WVR_ALIGNRIGHT 0x0080
815. #define WVR_HREDRAW 0x0100
816. #define WVR_VREDRAW 0x0200
817. #define WVR_REDRAW (WVR_HREDRAW | \
818. #define WVR_VALIDRECTS 0x0400
819. #define MK_LBUTTON 0x0001
820. #define MK_RBUTTON 0x0002
821. #define MK_SHIFT 0x0004
822. #define MK_CONTROL 0x0008
823. #define MK_MBUTTON 0x0010
824. #define MK_XBUTTON1 0x0020
825. #define MK_XBUTTON2 0x0040
826. #define TME_HOVER 0x00000001
827. #define TME_LEAVE 0x00000002
828. #define TME_NONCLIENT 0x00000010
829. #define TME_QUERY 0x40000000
830. #define TME_CANCEL 0x80000000
831. #define HOVER_DEFAULT 0xFFFFFFFF
832. #define WS_OVERLAPPED 0x00000000L
833. #define WS_POPUP 0x80000000L
834. #define WS_CHILD 0x40000000L
835. #define WS_MINIMIZE 0x20000000L
836. #define WS_VISIBLE 0x10000000L
837. #define WS_DISABLED 0x08000000L
838. #define WS_CLIPSIBLINGS 0x04000000L
839. #define WS_CLIPCHILDREN 0x02000000L
840. #define WS_MAXIMIZE 0x01000000L
841. #define WS_CAPTION 0x00C00000L /* WS_BORDER | WS_DLGFRAME */
842. #define WS_BORDER 0x00800000L
843. #define WS_DLGFRAME 0x00400000L
844. #define WS_VSCROLL 0x00200000L
845. #define WS_HSCROLL 0x00100000L
846. #define WS_SYSMENU 0x00080000L
847. #define WS_THICKFRAME 0x00040000L
848. #define WS_GROUP 0x00020000L
849. #define WS_TABSTOP 0x00010000L
850. #define WS_MINIMIZEBOX 0x00020000L
851. #define WS_MAXIMIZEBOX 0x00010000L
852. #define WS_EX_DLGMODALFRAME 0x00000001L
853. #define WS_EX_NOPARENTNOTIFY 0x00000004L
854. #define WS_EX_TOPMOST 0x00000008L
855. #define WS_EX_ACCEPTFILES 0x00000010L
856. #define WS_EX_TRANSPARENT 0x00000020L
857. #define WS_EX_MDICHILD 0x00000040L
858. #define WS_EX_TOOLWINDOW 0x00000080L
859. #define WS_EX_WINDOWEDGE 0x00000100L
860. #define WS_EX_CLIENTEDGE 0x00000200L
861. #define WS_EX_CONTEXTHELP 0x00000400L
862. #define WS_EX_RIGHT 0x00001000L
863. #define WS_EX_LEFT 0x00000000L
864. #define WS_EX_RTLREADING 0x00002000L
865. #define WS_EX_LTRREADING 0x00000000L
866. #define WS_EX_LEFTSCROLLBAR 0x00004000L
867. #define WS_EX_RIGHTSCROLLBAR 0x00000000L
868. #define WS_EX_CONTROLPARENT 0x00010000L
869. #define WS_EX_STATICEDGE 0x00020000L
870. #define WS_EX_APPWINDOW 0x00040000L
871. #define WS_EX_LAYERED 0x00080000
872. #define WS_EX_NOINHERITLAYOUT 0x00100000L // Disable inheritence of mirroring by children
873. #define WS_EX_NOREDIRECTIONBITMAP 0x00200000L
874. #define WS_EX_LAYOUTRTL 0x00400000L // Right to left mirroring
875. #define WS_EX_COMPOSITED 0x02000000L
876. #define WS_EX_NOACTIVATE 0x08000000L
877. #define CS_VREDRAW 0x0001
878. #define CS_HREDRAW 0x0002
879. #define CS_DBLCLKS 0x0008
880. #define CS_OWNDC 0x0020
881. #define CS_CLASSDC 0x0040
882. #define CS_PARENTDC 0x0080
883. #define CS_NOCLOSE 0x0200
884. #define CS_SAVEBITS 0x0800
885. #define CS_BYTEALIGNCLIENT 0x1000
886. #define CS_BYTEALIGNWINDOW 0x2000
887. #define CS_GLOBALCLASS 0x4000
888. #define CS_IME 0x00010000
889. #define CS_DROPSHADOW 0x00020000
890. #define PRF_CHECKVISIBLE 0x00000001L
891. #define PRF_NONCLIENT 0x00000002L
892. #define PRF_CLIENT 0x00000004L
893. #define PRF_ERASEBKGND 0x00000008L
894. #define PRF_CHILDREN 0x00000010L
895. #define PRF_OWNED 0x00000020L
896. #define BDR_RAISEDOUTER 0x0001
897. #define BDR_SUNKENOUTER 0x0002
898. #define BDR_RAISEDINNER 0x0004
899. #define BDR_SUNKENINNER 0x0008
900. #define BF_LEFT 0x0001
901. #define BF_TOP 0x0002
902. #define BF_RIGHT 0x0004
903. #define BF_BOTTOM 0x0008
904. #define BF_TOPLEFT (BF_TOP | BF_LEFT)
905. #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
906. #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
907. #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
908. #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
909. #define BF_DIAGONAL 0x0010
910. #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
911. #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
912. #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
913. #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
914. #define BF_MIDDLE 0x0800 /* Fill in the middle */
915. #define BF_SOFT 0x1000 /* For softer buttons */
916. #define BF_ADJUST 0x2000 /* Calculate the space left over */
917. #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
918. #define BF_MONO 0x8000 /* For monochrome borders */
919. #define DFC_CAPTION 1
920. #define DFC_MENU 2
921. #define DFC_SCROLL 3
922. #define DFC_BUTTON 4
923. #define DFC_POPUPMENU 5
924. #define DFCS_CAPTIONCLOSE 0x0000
925. #define DFCS_CAPTIONMIN 0x0001
926. #define DFCS_CAPTIONMAX 0x0002
927. #define DFCS_CAPTIONRESTORE 0x0003
928. #define DFCS_CAPTIONHELP 0x0004
929. #define DFCS_MENUARROW 0x0000
930. #define DFCS_MENUCHECK 0x0001
931. #define DFCS_MENUBULLET 0x0002
932. #define DFCS_MENUARROWRIGHT 0x0004
933. #define DFCS_SCROLLUP 0x0000
934. #define DFCS_SCROLLDOWN 0x0001
935. #define DFCS_SCROLLLEFT 0x0002
936. #define DFCS_SCROLLRIGHT 0x0003
937. #define DFCS_SCROLLCOMBOBOX 0x0005
938. #define DFCS_SCROLLSIZEGRIP 0x0008
939. #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
940. #define DFCS_BUTTONCHECK 0x0000
941. #define DFCS_BUTTONRADIOIMAGE 0x0001
942. #define DFCS_BUTTONRADIOMASK 0x0002
943. #define DFCS_BUTTONRADIO 0x0004
944. #define DFCS_BUTTON3STATE 0x0008
945. #define DFCS_BUTTONPUSH 0x0010
946. #define DFCS_INACTIVE 0x0100
947. #define DFCS_PUSHED 0x0200
948. #define DFCS_CHECKED 0x0400
949. #define DFCS_TRANSPARENT 0x0800
950. #define DFCS_HOT 0x1000
951. #define DFCS_ADJUSTRECT 0x2000
952. #define DFCS_FLAT 0x4000
953. #define DFCS_MONO 0x8000
954. #define DC_ACTIVE 0x0001
955. #define DC_SMALLCAP 0x0002
956. #define DC_ICON 0x0004
957. #define DC_TEXT 0x0008
958. #define DC_INBUTTON 0x0010
959. #define DC_GRADIENT 0x0020
960. #define DC_BUTTONS 0x1000
961. #define IDANI_OPEN 1
962. #define IDANI_CAPTION 3
963. #define CF_TEXT 1
964. #define CF_BITMAP 2
965. #define CF_METAFILEPICT 3
966. #define CF_SYLK 4
967. #define CF_DIF 5
968. #define CF_TIFF 6
969. #define CF_OEMTEXT 7
970. #define CF_DIB 8
971. #define CF_PALETTE 9
972. #define CF_PENDATA 10
973. #define CF_RIFF 11
974. #define CF_WAVE 12
975. #define CF_UNICODETEXT 13
976. #define CF_ENHMETAFILE 14
977. #define CF_HDROP 15
978. #define CF_LOCALE 16
979. #define CF_DIBV5 17
980. #define CF_MAX 18
981. #define CF_MAX 17
982. #define CF_MAX 15
983. #define CF_OWNERDISPLAY 0x0080
984. #define CF_DSPTEXT 0x0081
985. #define CF_DSPBITMAP 0x0082
986. #define CF_DSPMETAFILEPICT 0x0083
987. #define CF_DSPENHMETAFILE 0x008E
988. #define CF_PRIVATEFIRST 0x0200
989. #define CF_PRIVATELAST 0x02FF
990. #define CF_GDIOBJFIRST 0x0300
991. #define CF_GDIOBJLAST 0x03FF
992. #define FVIRTKEY TRUE /* Assumed to be == TRUE */
993. #define FNOINVERT 0x02
994. #define FSHIFT 0x04
995. #define FCONTROL 0x08
996. #define FALT 0x10
997. #define WPF_SETMINPOSITION 0x0001
998. #define WPF_RESTORETOMAXIMIZED 0x0002
999. #define WPF_ASYNCWINDOWPLACEMENT 0x0004
1000. #define ODT_MENU 1
1001. #define ODT_LISTBOX 2
1002. #define ODT_COMBOBOX 3
1003. #define ODT_BUTTON 4
1004. #define ODT_STATIC 5
1005. #define ODA_DRAWENTIRE 0x0001
1006. #define ODA_SELECT 0x0002
1007. #define ODA_FOCUS 0x0004
1008. #define ODS_SELECTED 0x0001
1009. #define ODS_GRAYED 0x0002
1010. #define ODS_DISABLED 0x0004
1011. #define ODS_CHECKED 0x0008
1012. #define ODS_FOCUS 0x0010
1013. #define ODS_DEFAULT 0x0020
1014. #define ODS_COMBOBOXEDIT 0x1000
1015. #define ODS_HOTLIGHT 0x0040
1016. #define ODS_INACTIVE 0x0080
1017. #define ODS_NOACCEL 0x0100
1018. #define ODS_NOFOCUSRECT 0x0200
1019. #define GetMessage GetMessageW
1020. #define GetMessage GetMessageA
1021. #define DispatchMessage DispatchMessageW
1022. #define DispatchMessage DispatchMessageA
1023. #define PeekMessage PeekMessageW
1024. #define PeekMessage PeekMessageA
1025. #define PM_NOREMOVE 0x0000
1026. #define PM_REMOVE 0x0001
1027. #define PM_NOYIELD 0x0002
1028. #define MOD_ALT 0x0001
1029. #define MOD_CONTROL 0x0002
1030. #define MOD_SHIFT 0x0004
1031. #define MOD_WIN 0x0008
1032. #define MOD_NOREPEAT 0x4000
1033. #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
1034. #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
1035. #define NOLSTRING
1036. #define NOLFILEIO
1037. #define ENDSESSION_CLOSEAPP 0x00000001
1038. #define ENDSESSION_CRITICAL 0x40000000
1039. #define ENDSESSION_LOGOFF 0x80000000
1040. #define EWX_LOGOFF 0x00000000
1041. #define EWX_SHUTDOWN 0x00000001
1042. #define EWX_REBOOT 0x00000002
1043. #define EWX_FORCE 0x00000004
1044. #define EWX_POWEROFF 0x00000008
1045. #define EWX_FORCEIFHUNG 0x00000010
1046. #define EWX_QUICKRESOLVE 0x00000020
1047. #define EWX_RESTARTAPPS 0x00000040
1048. #define EWX_HYBRID_SHUTDOWN 0x00400000
1049. #define EWX_BOOTOPTIONS 0x01000000
1050.
1051. #define BSM_ALLCOMPONENTS 0x00000000
1052. #define BSM_VXDS 0x00000001
1053. #define BSM_NETDRIVER 0x00000002
1054. #define BSM_INSTALLABLEDRIVERS 0x00000004
1055. #define BSM_APPLICATIONS 0x00000008
1056. #define BSM_ALLDESKTOPS 0x00000010
1057. #define BSF_QUERY 0x00000001
1058. #define BSF_IGNORECURRENTTASK 0x00000002
1059. #define BSF_FLUSHDISK 0x00000004
1060. #define BSF_NOHANG 0x00000008
1061. #define BSF_POSTMESSAGE 0x00000010
1062. #define BSF_FORCEIFHUNG 0x00000020
1063. #define BSF_NOTIMEOUTIFNOTHUNG 0x00000040
1064. #define BSF_ALLOWSFW 0x00000080
1065. #define BSF_SENDNOTIFYMESSAGE 0x00000100
1066. #define BSF_RETURNHDESK 0x00000200
1067. #define BSF_LUID 0x00000400
1068. #define BROADCAST_QUERY_DENY 0x424D5144 // Return this value to deny a query.
1069. #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
1070. #define DEVICE_NOTIFY_SERVICE_HANDLE 0x00000001
1071. #define DEVICE_NOTIFY_ALL_INTERFACE_CLASSES 0x00000004
1072. #define HWND_BROADCAST ((HWND)0xffff)
1073. #define HWND_MESSAGE ((HWND)-3)
1074. #define ISMEX_NOSEND 0x00000000
1075. #define ISMEX_SEND 0x00000001
1076. #define ISMEX_NOTIFY 0x00000002
1077. #define ISMEX_CALLBACK 0x00000004
1078. #define ISMEX_REPLIED 0x00000008
1079. #define CW_USEDEFAULT ((int)0x80000000)
1080. #define HWND_DESKTOP ((HWND)0)
1081. #define PW_CLIENTONLY 0x00000001
1082. #define PW_RENDERFULLCONTENT 0x00000002
1083. #define LWA_COLORKEY 0x00000001
1084. #define LWA_ALPHA 0x00000002
1085. #define ULW_COLORKEY 0x00000001
1086. #define ULW_ALPHA 0x00000002
1087. #define ULW_OPAQUE 0x00000004
1088. #define ULW_EX_NORESIZE 0x00000008
1089. #define FLASHW_STOP 0
1090. #define FLASHW_CAPTION 0x00000001
1091. #define FLASHW_TRAY 0x00000002
1092. #define FLASHW_ALL (FLASHW_CAPTION | FLASHW_TRAY)
1093. #define FLASHW_TIMER 0x00000004
1094. #define FLASHW_TIMERNOFG 0x0000000C
1095. #define WDA_NONE 0x00000000
1096. #define WDA_MONITOR 0x00000001
1097. #define SWP_NOSIZE 0x0001
1098. #define SWP_NOMOVE 0x0002
1099. #define SWP_NOZORDER 0x0004
1100. #define SWP_NOREDRAW 0x0008
1101. #define SWP_NOACTIVATE 0x0010
1102. #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
1103. #define SWP_SHOWWINDOW 0x0040
1104. #define SWP_HIDEWINDOW 0x0080
1105. #define SWP_NOCOPYBITS 0x0100
1106. #define SWP_NOOWNERZORDER 0x0200 /* Don‘t do owner Z ordering */
1107. #define SWP_NOSENDCHANGING 0x0400 /* Don‘t send WM_WINDOWPOSCHANGING */
1108. #define SWP_DEFERERASE 0x2000
1109. #define SWP_ASYNCWINDOWPOS 0x4000
1110. #define HWND_TOP ((HWND)0)
1111. #define HWND_BOTTOM ((HWND)1)
1112. #define HWND_TOPMOST ((HWND)-1)
1113. #define HWND_NOTOPMOST ((HWND)-2)
1114. #define KEYEVENTF_EXTENDEDKEY 0x0001
1115. #define KEYEVENTF_KEYUP 0x0002
1116. #define KEYEVENTF_UNICODE 0x0004
1117. #define KEYEVENTF_SCANCODE 0x0008
1118. #define MOUSEEVENTF_MOVE 0x0001 /* mouse move */
1119. #define MOUSEEVENTF_LEFTDOWN 0x0002 /* left button down */
1120. #define MOUSEEVENTF_LEFTUP 0x0004 /* left button up */
1121. #define MOUSEEVENTF_RIGHTDOWN 0x0008 /* right button down */
1122. #define MOUSEEVENTF_RIGHTUP 0x0010 /* right button up */
1123. #define MOUSEEVENTF_MIDDLEDOWN 0x0020 /* middle button down */
1124. #define MOUSEEVENTF_MIDDLEUP 0x0040 /* middle button up */
1125. #define MOUSEEVENTF_XDOWN 0x0080 /* x button down */
1126. #define MOUSEEVENTF_XUP 0x0100 /* x button down */
1127. #define MOUSEEVENTF_WHEEL 0x0800 /* wheel button rolled */
1128. #define MOUSEEVENTF_HWHEEL 0x01000 /* hwheel button rolled */
1129. #define MOUSEEVENTF_MOVE_NOCOALESCE 0x2000 /* do not coalesce mouse moves */
1130. #define MOUSEEVENTF_VIRTUALDESK 0x4000 /* map to entire virtual desktop */
1131. #define MOUSEEVENTF_ABSOLUTE 0x8000 /* absolute move */
1132. #define INPUT_MOUSE 0
1133. #define INPUT_KEYBOARD 1
1134. #define INPUT_HARDWARE 2
1135. #define TOUCH_COORD_TO_PIXEL(l) ((l) / 100)
1136. #define TOUCHEVENTF_MOVE 0x0001
1137. #define TOUCHEVENTF_DOWN 0x0002
1138. #define TOUCHEVENTF_UP 0x0004
1139. #define TOUCHEVENTF_INRANGE 0x0008
1140. #define TOUCHEVENTF_PRIMARY 0x0010
1141. #define TOUCHEVENTF_NOCOALESCE 0x0020
1142. #define TOUCHEVENTF_PEN 0x0040
1143. #define TOUCHEVENTF_PALM 0x0080
1144. #define TOUCHINPUTMASKF_TIMEFROMSYSTEM 0x0001 // the dwTime field contains a system generated value
1145. #define TOUCHINPUTMASKF_EXTRAINFO 0x0002 // the dwExtraInfo field is valid
1146. #define TOUCHINPUTMASKF_CONTACTAREA 0x0004 // the cxContact and cyContact fields are valid
1147. #define TWF_FINETOUCH (0x00000001)
1148. #define TWF_WANTPALM (0x00000002)
1149. #define POINTER_FLAG_NONE 0x00000000 // Default
1150. #define POINTER_FLAG_NEW 0x00000001 // New pointer
1151. #define POINTER_FLAG_INRANGE 0x00000002 // Pointer has not departed
1152. #define POINTER_FLAG_INCONTACT 0x00000004 // Pointer is in contact
1153. #define POINTER_FLAG_FIRSTBUTTON 0x00000010 // Primary action
1154. #define POINTER_FLAG_SECONDBUTTON 0x00000020 // Secondary action
1155. #define POINTER_FLAG_THIRDBUTTON 0x00000040 // Third button
1156. #define POINTER_FLAG_FOURTHBUTTON 0x00000080 // Fourth button
1157. #define POINTER_FLAG_FIFTHBUTTON 0x00000100 // Fifth button
1158. #define POINTER_FLAG_PRIMARY 0x00002000 // Pointer is primary
1159. #define POINTER_FLAG_CONFIDENCE 0x00004000 // Pointer is considered unlikely to be accidental
1160. #define POINTER_FLAG_CANCELED 0x00008000 // Pointer is departing in an abnormal manner
1161. #define POINTER_FLAG_DOWN 0x00010000 // Pointer transitioned to down state (made contact)
1162. #define POINTER_FLAG_UPDATE 0x00020000 // Pointer update
1163. #define POINTER_FLAG_UP 0x00040000 // Pointer transitioned from down state (broke contact)
1164. #define POINTER_FLAG_WHEEL 0x00080000 // Vertical wheel
1165. #define POINTER_FLAG_HWHEEL 0x00100000 // Horizontal wheel
1166. #define POINTER_FLAG_CAPTURECHANGED 0x00200000 // Lost capture
1167. #define POINTER_FLAG_HASTRANSFORM 0x00400000 // Input has a transform associated with it
1168. #define POINTER_MOD_SHIFT (0x0004) // Shift key is held down.
1169. #define POINTER_MOD_CTRL (0x0008) // Ctrl key is held down.
1170. #define TOUCH_FLAG_NONE 0x00000000 // Default
1171. #define TOUCH_MASK_NONE 0x00000000 // Default - none of the optional fields are valid
1172. #define TOUCH_MASK_CONTACTAREA 0x00000001 // The rcContact field is valid
1173. #define TOUCH_MASK_ORIENTATION 0x00000002 // The orientation field is valid
1174. #define TOUCH_MASK_PRESSURE 0x00000004 // The pressure field is valid
1175. #define PEN_FLAG_NONE 0x00000000 // Default
1176. #define PEN_FLAG_BARREL 0x00000001 // The barrel button is pressed
1177. #define PEN_FLAG_INVERTED 0x00000002 // The pen is inverted
1178. #define PEN_FLAG_ERASER 0x00000004 // The eraser button is pressed
1179. #define PEN_MASK_NONE 0x00000000 // Default - none of the optional fields are valid
1180. #define PEN_MASK_PRESSURE 0x00000001 // The pressure field is valid
1181. #define PEN_MASK_ROTATION 0x00000002 // The rotation field is valid
1182. #define PEN_MASK_TILT_X 0x00000004 // The tiltX field is valid
1183. #define PEN_MASK_TILT_Y 0x00000008 // The tiltY field is valid
1184. #define POINTER_MESSAGE_FLAG_NEW 0x00000001 // New pointer
1185. #define POINTER_MESSAGE_FLAG_INRANGE 0x00000002 // Pointer has not departed
1186. #define POINTER_MESSAGE_FLAG_INCONTACT 0x00000004 // Pointer is in contact
1187. #define POINTER_MESSAGE_FLAG_FIRSTBUTTON 0x00000010 // Primary action
1188. #define POINTER_MESSAGE_FLAG_SECONDBUTTON 0x00000020 // Secondary action
1189. #define POINTER_MESSAGE_FLAG_THIRDBUTTON 0x00000040 // Third button
1190. #define POINTER_MESSAGE_FLAG_FOURTHBUTTON 0x00000080 // Fourth button
1191. #define POINTER_MESSAGE_FLAG_FIFTHBUTTON 0x00000100 // Fifth button
1192. #define POINTER_MESSAGE_FLAG_PRIMARY 0x00002000 // Pointer is primary
1193. #define POINTER_MESSAGE_FLAG_CONFIDENCE 0x00004000 // Pointer is considered unlikely to be accidental
1194. #define POINTER_MESSAGE_FLAG_CANCELED 0x00008000 // Pointer is departing in an abnormal manner
1195. #define MAX_TOUCH_COUNT 256
1196. #define TOUCH_FEEDBACK_DEFAULT 0x1
1197. #define TOUCH_FEEDBACK_INDIRECT 0x2
1198. #define TOUCH_FEEDBACK_NONE 0x3
1199. #define TOUCH_HIT_TESTING_DEFAULT 0x0
1200. #define TOUCH_HIT_TESTING_CLIENT 0x1
1201. #define TOUCH_HIT_TESTING_NONE 0x2
1202. #define TOUCH_HIT_TESTING_PROXIMITY_CLOSEST 0x0
1203. #define TOUCH_HIT_TESTING_PROXIMITY_FARTHEST 0xFFF
1204. #define GWFS_INCLUDE_ANCESTORS 0x00000001
1205. #define MapVirtualKey MapVirtualKeyW
1206. #define MapVirtualKey MapVirtualKeyA
1207. #define MapVirtualKeyEx MapVirtualKeyExW
1208. #define MapVirtualKeyEx MapVirtualKeyExA
1209. #define MAPVK_VK_TO_VSC (0)
1210. #define MAPVK_VSC_TO_VK (1)
1211. #define MAPVK_VK_TO_CHAR (2)
1212. #define MAPVK_VSC_TO_VK_EX (3)
1213. #define MAPVK_VK_TO_VSC_EX (4)
1214. #define MWMO_WAITALL 0x0001
1215. #define MWMO_ALERTABLE 0x0002
1216. #define MWMO_INPUTAVAILABLE 0x0004
1217. #define QS_KEY 0x0001
1218. #define QS_MOUSEMOVE 0x0002
1219. #define QS_MOUSEBUTTON 0x0004
1220. #define QS_POSTMESSAGE 0x0008
1221. #define QS_TIMER 0x0010
1222. #define QS_PAINT 0x0020
1223. #define QS_SENDMESSAGE 0x0040
1224. #define QS_HOTKEY 0x0080
1225. #define QS_ALLPOSTMESSAGE 0x0100
1226. #define QS_RAWINPUT 0x0400
1227. #define QS_TOUCH 0x0800
1228. #define QS_POINTER 0x1000
1229. #define QS_MOUSE (QS_MOUSEMOVE | \
1230. #define QS_INPUT(QS_MOUSE | \
1231. #define QS_INPUT(QS_MOUSE | \
1232. #define QS_INPUT(QS_MOUSE | \
1233. #define QS_ALLEVENTS(QS_INPUT | \
1234. #define QS_ALLINPUT(QS_INPUT | \
1235. #define USER_TIMER_MAXIMUM 0x7FFFFFFF
1236. #define USER_TIMER_MINIMUM 0x0000000A
1237. #define TIMERV_DEFAULT_COALESCING (0)
1238. #define TIMERV_NO_COALESCING (0xFFFFFFFF)
1239. #define TIMERV_COALESCING_MIN (1)
1240. #define TIMERV_COALESCING_MAX (0x7FFFFFF5)
1241. #define SM_CXSCREEN 0
1242. #define SM_CYSCREEN 1
1243. #define SM_CXVSCROLL 2
1244. #define SM_CYHSCROLL 3
1245. #define SM_CYCAPTION 4
1246. #define SM_CXBORDER 5
1247. #define SM_CYBORDER 6
1248. #define SM_CXDLGFRAME 7
1249. #define SM_CYDLGFRAME 8
1250. #define SM_CYVTHUMB 9
1251. #define SM_CXHTHUMB 10
1252. #define SM_CXICON 11
1253. #define SM_CYICON 12
1254. #define SM_CXCURSOR 13
1255. #define SM_CYCURSOR 14
1256. #define SM_CYMENU 15
1257. #define SM_CXFULLSCREEN 16
1258. #define SM_CYFULLSCREEN 17
1259. #define SM_CYKANJIWINDOW 18
1260. #define SM_MOUSEPRESENT 19
1261. #define SM_CYVSCROLL 20
1262. #define SM_CXHSCROLL 21
1263. #define SM_DEBUG 22
1264. #define SM_SWAPBUTTON 23
1265. #define SM_RESERVED1 24
1266. #define SM_RESERVED2 25
1267. #define SM_RESERVED3 26
1268. #define SM_RESERVED4 27
1269. #define SM_CXMIN 28
1270. #define SM_CYMIN 29
1271. #define SM_CXSIZE 30
1272. #define SM_CYSIZE 31
1273. #define SM_CXFRAME 32
1274. #define SM_CYFRAME 33
1275. #define SM_CXMINTRACK 34
1276. #define SM_CYMINTRACK 35
1277. #define SM_CXDOUBLECLK 36
1278. #define SM_CYDOUBLECLK 37
1279. #define SM_CXICONSPACING 38
1280. #define SM_CYICONSPACING 39
1281. #define SM_MENUDROPALIGNMENT 40
1282. #define SM_PENWINDOWS 41
1283. #define SM_DBCSENABLED 42
1284. #define SM_CMOUSEBUTTONS 43
1285. #define SM_CXFIXEDFRAME SM_CXDLGFRAME /* ;win40 name change */
1286. #define SM_CYFIXEDFRAME SM_CYDLGFRAME /* ;win40 name change */
1287. #define SM_CXSIZEFRAME SM_CXFRAME /* ;win40 name change */
1288. #define SM_CYSIZEFRAME SM_CYFRAME /* ;win40 name change */
1289. #define SM_SECURE 44
1290. #define SM_CXEDGE 45
1291. #define SM_CYEDGE 46
1292. #define SM_CXMINSPACING 47
1293. #define SM_CYMINSPACING 48
1294. #define SM_CXSMICON 49
1295. #define SM_CYSMICON 50
1296. #define SM_CYSMCAPTION 51
1297. #define SM_CXSMSIZE 52
1298. #define SM_CYSMSIZE 53
1299. #define SM_CXMENUSIZE 54
1300. #define SM_CYMENUSIZE 55
1301. #define SM_ARRANGE 56
1302. #define SM_CXMINIMIZED 57
1303. #define SM_CYMINIMIZED 58
1304. #define SM_CXMAXTRACK 59
1305. #define SM_CYMAXTRACK 60
1306. #define SM_CXMAXIMIZED 61
1307. #define SM_CYMAXIMIZED 62
1308. #define SM_NETWORK 63
1309. #define SM_CLEANBOOT 67
1310. #define SM_CXDRAG 68
1311. #define SM_CYDRAG 69
1312. #define SM_SHOWSOUNDS 70
1313. #define SM_CXMENUCHECK 71 /* Use instead of GetMenuCheckMarkDimensions()! */
1314. #define SM_CYMENUCHECK 72
1315. #define SM_SLOWMACHINE 73
1316. #define SM_MIDEASTENABLED 74
1317. #define SM_MOUSEWHEELPRESENT 75
1318. #define SM_XVIRTUALSCREEN 76
1319. #define SM_YVIRTUALSCREEN 77
1320. #define SM_CXVIRTUALSCREEN 78
1321. #define SM_CYVIRTUALSCREEN 79
1322. #define SM_CMONITORS 80
1323. #define SM_SAMEDISPLAYFORMAT 81
1324. #define SM_IMMENABLED 82
1325. #define SM_CXFOCUSBORDER 83
1326. #define SM_CYFOCUSBORDER 84
1327. #define SM_TABLETPC 86
1328. #define SM_MEDIACENTER 87
1329. #define SM_STARTER 88
1330. #define SM_SERVERR2 89
1331. #define SM_MOUSEHORIZONTALWHEELPRESENT 91
1332. #define SM_CXPADDEDBORDER 92
1333. #define SM_DIGITIZER 94
1334. #define SM_MAXIMUMTOUCHES 95
1335. #define SM_CMETRICS 76
1336. #define SM_CMETRICS 83
1337. #define SM_CMETRICS 91
1338. #define SM_CMETRICS 93
1339. #define SM_CMETRICS 97
1340. #define SM_REMOTESESSION 0x1000
1341. #define SM_SHUTTINGDOWN 0x2000
1342. #define SM_REMOTECONTROL 0x2001
1343. #define SM_CARETBLINKINGENABLED 0x2002
1344. #define SM_CONVERTIBLESLATEMODE 0x2003
1345. #define SM_SYSTEMDOCKED 0x2004
1346. #define MNC_IGNORE 0
1347. #define MNC_CLOSE 1
1348. #define MNC_EXECUTE 2
1349. #define MNC_SELECT 3
1350. #define MNS_NOCHECK 0x80000000
1351. #define MNS_MODELESS 0x40000000
1352. #define MNS_DRAGDROP 0x20000000
1353. #define MNS_AUTODISMISS 0x10000000
1354. #define MNS_NOTIFYBYPOS 0x08000000
1355. #define MNS_CHECKORBMP 0x04000000
1356. #define MIM_MAXHEIGHT 0x00000001
1357. #define MIM_BACKGROUND 0x00000002
1358. #define MIM_HELPID 0x00000004
1359. #define MIM_MENUDATA 0x00000008
1360. #define MIM_STYLE 0x00000010
1361. #define MIM_APPLYTOSUBMENUS 0x80000000
1362. #define MND_CONTINUE 0
1363. #define MND_ENDMENU 1
1364. #define MNGOF_TOPGAP 0x00000001
1365. #define MNGOF_BOTTOMGAP 0x00000002
1366. #define MNGO_NOINTERFACE 0x00000000
1367. #define MNGO_NOERROR 0x00000001
1368. #define MIIM_STATE 0x00000001
1369. #define MIIM_ID 0x00000002
1370. #define MIIM_SUBMENU 0x00000004
1371. #define MIIM_CHECKMARKS 0x00000008
1372. #define MIIM_TYPE 0x00000010
1373. #define MIIM_DATA 0x00000020
1374. #define MIIM_STRING 0x00000040
1375. #define MIIM_BITMAP 0x00000080
1376. #define MIIM_FTYPE 0x00000100
1377. #define HBMMENU_CALLBACK ((HBITMAP) -1)
1378. #define HBMMENU_SYSTEM ((HBITMAP) 1)
1379. #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
1380. #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
1381. #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
1382. #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
1383. #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
1384. #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
1385. #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
1386. #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
1387. #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
1388. #define GMDI_USEDISABLED 0x0001L
1389. #define GMDI_GOINTOPOPUPS 0x0002L
1390. #define TPM_LEFTBUTTON 0x0000L
1391. #define TPM_RIGHTBUTTON 0x0002L
1392. #define TPM_LEFTALIGN 0x0000L
1393. #define TPM_CENTERALIGN 0x0004L
1394. #define TPM_RIGHTALIGN 0x0008L
1395. #define TPM_TOPALIGN 0x0000L
1396. #define TPM_VCENTERALIGN 0x0010L
1397. #define TPM_BOTTOMALIGN 0x0020L
1398. #define TPM_HORIZONTAL 0x0000L /* Horz alignment matters more */
1399. #define TPM_VERTICAL 0x0040L /* Vert alignment matters more */
1400. #define TPM_NONOTIFY 0x0080L /* Don‘t send any notification msgs */
1401. #define TPM_RETURNCMD 0x0100L
1402. #define TPM_RECURSE 0x0001L
1403. #define TPM_HORPOSANIMATION 0x0400L
1404. #define TPM_HORNEGANIMATION 0x0800L
1405. #define TPM_VERPOSANIMATION 0x1000L
1406. #define TPM_VERNEGANIMATION 0x2000L
1407. #define TPM_NOANIMATION 0x4000L
1408. #define TPM_LAYOUTRTL 0x8000L
1409. #define TPM_WORKAREA 0x10000L
1410. #define DOF_EXECUTABLE 0x8001 // wFmt flags
1411. #define DOF_DOCUMENT 0x8002
1412. #define DOF_DIRECTORY 0x8003
1413. #define DOF_MULTIPLE 0x8004
1414. #define DOF_PROGMAN 0x0001
1415. #define DOF_SHELLDATA 0x0002
1416. #define DO_DROPFILE 0x454C4946L
1417. #define DO_PRINTFILE 0x544E5250L
1418. #define DT_TOP 0x00000000
1419. #define DT_LEFT 0x00000000
1420. #define DT_CENTER 0x00000001
1421. #define DT_RIGHT 0x00000002
1422. #define DT_VCENTER 0x00000004
1423. #define DT_BOTTOM 0x00000008
1424. #define DT_WORDBREAK 0x00000010
1425. #define DT_SINGLELINE 0x00000020
1426. #define DT_EXPANDTABS 0x00000040
1427. #define DT_TABSTOP 0x00000080
1428. #define DT_NOCLIP 0x00000100
1429. #define DT_EXTERNALLEADING 0x00000200
1430. #define DT_CALCRECT 0x00000400
1431. #define DT_NOPREFIX 0x00000800
1432. #define DT_INTERNAL 0x00001000
1433. #define DT_EDITCONTROL 0x00002000
1434. #define DT_PATH_ELLIPSIS 0x00004000
1435. #define DT_END_ELLIPSIS 0x00008000
1436. #define DT_MODIFYSTRING 0x00010000
1437. #define DT_RTLREADING 0x00020000
1438. #define DT_WORD_ELLIPSIS 0x00040000
1439. #define DT_NOFULLWIDTHCHARBREAK 0x00080000
1440. #define DT_HIDEPREFIX 0x00100000
1441. #define DT_PREFIXONLY 0x00200000
1442. #define DST_COMPLEX 0x0000
1443. #define DST_TEXT 0x0001
1444. #define DST_PREFIXTEXT 0x0002
1445. #define DST_ICON 0x0003
1446. #define DST_BITMAP 0x0004
1447. #define DSS_NORMAL 0x0000
1448. #define DSS_UNION 0x0010 /* Gray string appearance */
1449. #define DSS_DISABLED 0x0020
1450. #define DSS_MONO 0x0080
1451. #define DSS_HIDEPREFIX 0x0200
1452. #define DSS_PREFIXONLY 0x0400
1453. #define DSS_RIGHT 0x8000
1454. #define ASFW_ANY ((DWORD)-1)
1455. #define LSFW_LOCK 1
1456. #define LSFW_UNLOCK 2
1457. #define DCX_WINDOW 0x00000001L
1458. #define DCX_CACHE 0x00000002L
1459. #define DCX_NORESETATTRS 0x00000004L
1460. #define DCX_CLIPCHILDREN 0x00000008L
1461. #define DCX_CLIPSIBLINGS 0x00000010L
1462. #define DCX_PARENTCLIP 0x00000020L
1463. #define DCX_EXCLUDERGN 0x00000040L
1464. #define DCX_INTERSECTRGN 0x00000080L
1465. #define DCX_EXCLUDEUPDATE 0x00000100L
1466. #define DCX_INTERSECTUPDATE 0x00000200L
1467. #define DCX_LOCKWINDOWUPDATE 0x00000400L
1468. #define DCX_VALIDATE 0x00200000L
1469. #define RDW_INVALIDATE 0x0001
1470. #define RDW_INTERNALPAINT 0x0002
1471. #define RDW_ERASE 0x0004
1472. #define RDW_VALIDATE 0x0008
1473. #define RDW_NOINTERNALPAINT 0x0010
1474. #define RDW_NOERASE 0x0020
1475. #define RDW_NOCHILDREN 0x0040
1476. #define RDW_ALLCHILDREN 0x0080
1477. #define RDW_UPDATENOW 0x0100
1478. #define RDW_ERASENOW 0x0200
1479. #define RDW_FRAME 0x0400
1480. #define RDW_NOFRAME 0x0800
1481. #define SW_SCROLLCHILDREN 0x0001 /* Scroll children within *lprcScroll. */
1482. #define SW_INVALIDATE 0x0002 /* Invalidate after scrolling */
1483. #define SW_ERASE 0x0004 /* If SW_INVALIDATE, don‘t send WM_ERASEBACKGROUND */
1484. #define SW_SMOOTHSCROLL 0x0010 /* Use smooth scrolling */
1485. #define ESB_ENABLE_BOTH 0x0000
1486. #define ESB_DISABLE_BOTH 0x0003
1487. #define ESB_DISABLE_LEFT 0x0001
1488. #define ESB_DISABLE_RIGHT 0x0002
1489. #define ESB_DISABLE_UP 0x0001
1490. #define ESB_DISABLE_DOWN 0x0002
1491. #define HELPINFO_WINDOW 0x0001
1492. #define HELPINFO_MENUITEM 0x0002
1493. #define MB_OK 0x00000000L
1494. #define MB_OKCANCEL 0x00000001L
1495. #define MB_ABORTRETRYIGNORE 0x00000002L
1496. #define MB_YESNOCANCEL 0x00000003L
1497. #define MB_YESNO 0x00000004L
1498. #define MB_RETRYCANCEL 0x00000005L
1499. #define MB_CANCELTRYCONTINUE 0x00000006L
1500. #define MB_ICONHAND 0x00000010L
1501. #define MB_ICONQUESTION 0x00000020L
1502. #define MB_ICONEXCLAMATION 0x00000030L
1503. #define MB_ICONASTERISK 0x00000040L
1504. #define MB_USERICON 0x00000080L
1505. #define MB_ICONWARNING MB_ICONEXCLAMATION
1506. #define MB_ICONERROR MB_ICONHAND
1507. #define MB_ICONINFORMATION MB_ICONASTERISK
1508. #define MB_ICONSTOP MB_ICONHAND
1509. #define MB_DEFBUTTON1 0x00000000L
1510. #define MB_DEFBUTTON2 0x00000100L
1511. #define MB_DEFBUTTON3 0x00000200L
1512. #define MB_DEFBUTTON4 0x00000300L
1513. #define MB_APPLMODAL 0x00000000L
1514. #define MB_SYSTEMMODAL 0x00001000L
1515. #define MB_TASKMODAL 0x00002000L
1516. #define MB_HELP 0x00004000L // Help Button
1517. #define MB_NOFOCUS 0x00008000L
1518. #define MB_SETFOREGROUND 0x00010000L
1519. #define MB_DEFAULT_DESKTOP_ONLY 0x00020000L
1520. #define MB_TOPMOST 0x00040000L
1521. #define MB_RIGHT 0x00080000L
1522. #define MB_RTLREADING 0x00100000L
1523. #define MB_SERVICE_NOTIFICATION 0x00200000L
1524. #define MB_SERVICE_NOTIFICATION 0x00040000L
1525. #define MB_SERVICE_NOTIFICATION_NT3X 0x00040000L
1526. #define MB_TYPEMASK 0x0000000FL
1527. #define MB_ICONMASK 0x000000F0L
1528. #define MB_DEFMASK 0x00000F00L
1529. #define MB_MODEMASK 0x00003000L
1530. #define MB_MISCMASK 0x0000C000L
1531. #define CWP_ALL 0x0000
1532. #define CWP_SKIPINVISIBLE 0x0001
1533. #define CWP_SKIPDISABLED 0x0002
1534. #define CWP_SKIPTRANSPARENT 0x0004
1535. #define CTLCOLOR_MSGBOX 0
1536. #define CTLCOLOR_EDIT 1
1537. #define CTLCOLOR_LISTBOX 2
1538. #define CTLCOLOR_BTN 3
1539. #define CTLCOLOR_DLG 4
1540. #define CTLCOLOR_SCROLLBAR 5
1541. #define CTLCOLOR_STATIC 6
1542. #define CTLCOLOR_MAX 7
1543. #define COLOR_SCROLLBAR 0
1544. #define COLOR_BACKGROUND 1
1545. #define COLOR_ACTIVECAPTION 2
1546. #define COLOR_INACTIVECAPTION 3
1547. #define COLOR_MENU 4
1548. #define COLOR_WINDOW 5
1549. #define COLOR_WINDOWFRAME 6
1550. #define COLOR_MENUTEXT 7
1551. #define COLOR_WINDOWTEXT 8
1552. #define COLOR_CAPTIONTEXT 9
1553. #define COLOR_ACTIVEBORDER 10
1554. #define COLOR_INACTIVEBORDER 11
1555. #define COLOR_APPWORKSPACE 12
1556. #define COLOR_HIGHLIGHT 13
1557. #define COLOR_HIGHLIGHTTEXT 14
1558. #define COLOR_BTNFACE 15
1559. #define COLOR_BTNSHADOW 16
1560. #define COLOR_GRAYTEXT 17
1561. #define COLOR_BTNTEXT 18
1562. #define COLOR_INACTIVECAPTIONTEXT 19
1563. #define COLOR_BTNHIGHLIGHT 20
1564. #define COLOR_3DDKSHADOW 21
1565. #define COLOR_3DLIGHT 22
1566. #define COLOR_INFOTEXT 23
1567. #define COLOR_INFOBK 24
1568. #define COLOR_HOTLIGHT 26
1569. #define COLOR_GRADIENTACTIVECAPTION 27
1570. #define COLOR_GRADIENTINACTIVECAPTION 28
1571. #define COLOR_MENUHILIGHT 29
1572. #define COLOR_MENUBAR 30
1573. #define GW_HWNDFIRST 0
1574. #define GW_HWNDLAST 1
1575. #define GW_HWNDNEXT 2
1576. #define GW_HWNDPREV 3
1577. #define GW_OWNER 4
1578. #define GW_CHILD 5
1579. #define GW_MAX 5
1580. #define GW_ENABLEDPOPUP 6
1581. #define GW_MAX 6
1582. #define MF_INSERT 0x00000000L
1583. #define MF_CHANGE 0x00000080L
1584. #define MF_APPEND 0x00000100L
1585. #define MF_DELETE 0x00000200L
1586. #define MF_REMOVE 0x00001000L
1587. #define MF_BYCOMMAND 0x00000000L
1588. #define MF_BYPOSITION 0x00000400L
1589. #define MF_SEPARATOR 0x00000800L
1590. #define MF_ENABLED 0x00000000L
1591. #define MF_GRAYED 0x00000001L
1592. #define MF_DISABLED 0x00000002L
1593. #define MF_UNCHECKED 0x00000000L
1594. #define MF_CHECKED 0x00000008L
1595. #define MF_USECHECKBITMAPS 0x00000200L
1596. #define MF_STRING 0x00000000L
1597. #define MF_BITMAP 0x00000004L
1598. #define MF_OWNERDRAW 0x00000100L
1599. #define MF_POPUP 0x00000010L
1600. #define MF_MENUBARBREAK 0x00000020L
1601. #define MF_MENUBREAK 0x00000040L
1602. #define MF_UNHILITE 0x00000000L
1603. #define MF_HILITE 0x00000080L
1604. #define MF_DEFAULT 0x00001000L
1605. #define MF_SYSMENU 0x00002000L
1606. #define MF_HELP 0x00004000L
1607. #define MF_RIGHTJUSTIFY 0x00004000L
1608. #define MF_MOUSESELECT 0x00008000L
1609. #define MF_END 0x00000080L /* Obsolete -- only used by old RES files */
1610. #define MFT_STRING MF_STRING
1611. #define MFT_BITMAP MF_BITMAP
1612. #define MFT_MENUBARBREAK MF_MENUBARBREAK
1613. #define MFT_MENUBREAK MF_MENUBREAK
1614. #define MFT_OWNERDRAW MF_OWNERDRAW
1615. #define MFT_RADIOCHECK 0x00000200L
1616. #define MFT_SEPARATOR MF_SEPARATOR
1617. #define MFT_RIGHTORDER 0x00002000L
1618. #define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
1619. #define MFS_GRAYED 0x00000003L
1620. #define MF_END 0x00000080L
1621. #define SC_SIZE 0xF000
1622. #define SC_MOVE 0xF010
1623. #define SC_MINIMIZE 0xF020
1624. #define SC_MAXIMIZE 0xF030
1625. #define SC_NEXTWINDOW 0xF040
1626. #define SC_PREVWINDOW 0xF050
1627. #define SC_CLOSE 0xF060
1628. #define SC_VSCROLL 0xF070
1629. #define SC_HSCROLL 0xF080
1630. #define SC_MOUSEMENU 0xF090
1631. #define SC_KEYMENU 0xF100
1632. #define SC_ARRANGE 0xF110
1633. #define SC_RESTORE 0xF120
1634. #define SC_TASKLIST 0xF130
1635. #define SC_SCREENSAVE 0xF140
1636. #define SC_HOTKEY 0xF150
1637. #define SC_DEFAULT 0xF160
1638. #define SC_MONITORPOWER 0xF170
1639. #define SC_CONTEXTHELP 0xF180
1640. #define SC_SEPARATOR 0xF00F
1641. #define SCF_ISSECURE 0x00000001
1642. #define IDC_ARROW MAKEINTRESOURCE(32512)
1643. #define IDC_IBEAM MAKEINTRESOURCE(32513)
1644. #define IDC_WAIT MAKEINTRESOURCE(32514)
1645. #define IDC_CROSS MAKEINTRESOURCE(32515)
1646. #define IDC_UPARROW MAKEINTRESOURCE(32516)
1647. #define IDC_SIZE MAKEINTRESOURCE(32640) /* OBSOLETE: use IDC_SIZEALL */
1648. #define IDC_ICON MAKEINTRESOURCE(32641) /* OBSOLETE: use IDC_ARROW */
1649. #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
1650. #define IDC_SIZENESW MAKEINTRESOURCE(32643)
1651. #define IDC_SIZEWE MAKEINTRESOURCE(32644)
1652. #define IDC_SIZENS MAKEINTRESOURCE(32645)
1653. #define IDC_SIZEALL MAKEINTRESOURCE(32646)
1654. #define IDC_NO MAKEINTRESOURCE(32648) /*not in win3.1 */
1655. #define IDC_HAND MAKEINTRESOURCE(32649)
1656. #define IDC_APPSTARTING MAKEINTRESOURCE(32650) /*not in win3.1 */
1657. #define IDC_HELP MAKEINTRESOURCE(32651)
1658. #define IMAGE_BITMAP 0
1659. #define IMAGE_ICON 1
1660. #define IMAGE_CURSOR 2
1661. #define IMAGE_ENHMETAFILE 3
1662. #define LR_DEFAULTCOLOR 0x00000000
1663. #define LR_MONOCHROME 0x00000001
1664. #define LR_COLOR 0x00000002
1665. #define LR_COPYRETURNORG 0x00000004
1666. #define LR_COPYDELETEORG 0x00000008
1667. #define LR_LOADFROMFILE 0x00000010
1668. #define LR_LOADTRANSPARENT 0x00000020
1669. #define LR_DEFAULTSIZE 0x00000040
1670. #define LR_VGACOLOR 0x00000080
1671. #define LR_LOADMAP3DCOLORS 0x00001000
1672. #define LR_CREATEDIBSECTION 0x00002000
1673. #define LR_COPYFROMRESOURCE 0x00004000
1674. #define LR_SHARED 0x00008000
1675. #define LoadImage LoadImageW
1676. #define LoadImage LoadImageA
1677. #define DI_MASK 0x0001
1678. #define DI_IMAGE 0x0002
1679. #define DI_NORMAL 0x0003
1680. #define DI_COMPAT 0x0004
1681. #define DI_DEFAULTSIZE 0x0008
1682. #define DI_NOMIRROR 0x0010
1683. #define RES_ICON 1
1684. #define RES_CURSOR 2
1685. #define OBM_CLOSE 32754
1686. #define OBM_UPARROW 32753
1687. #define OBM_DNARROW 32752
1688. #define OBM_RGARROW 32751
1689. #define OBM_LFARROW 32750
1690. #define OBM_REDUCE 32749
1691. #define OBM_ZOOM 32748
1692. #define OBM_RESTORE 32747
1693. #define OBM_REDUCED 32746
1694. #define OBM_ZOOMD 32745
1695. #define OBM_RESTORED 32744
1696. #define OBM_UPARROWD 32743
1697. #define OBM_DNARROWD 32742
1698. #define OBM_RGARROWD 32741
1699. #define OBM_LFARROWD 32740
1700. #define OBM_MNARROW 32739
1701. #define OBM_COMBO 32738
1702. #define OBM_UPARROWI 32737
1703. #define OBM_DNARROWI 32736
1704. #define OBM_RGARROWI 32735
1705. #define OBM_LFARROWI 32734
1706. #define OBM_OLD_CLOSE 32767
1707. #define OBM_SIZE 32766
1708. #define OBM_OLD_UPARROW 32765
1709. #define OBM_OLD_DNARROW 32764
1710. #define OBM_OLD_RGARROW 32763
1711. #define OBM_OLD_LFARROW 32762
1712. #define OBM_BTSIZE 32761
1713. #define OBM_CHECK 32760
1714. #define OBM_CHECKBOXES 32759
1715. #define OBM_BTNCORNERS 32758
1716. #define OBM_OLD_REDUCE 32757
1717. #define OBM_OLD_ZOOM 32756
1718. #define OBM_OLD_RESTORE 32755
1719. #define OCR_NORMAL 32512
1720. #define OCR_IBEAM 32513
1721. #define OCR_WAIT 32514
1722. #define OCR_CROSS 32515
1723. #define OCR_UP 32516
1724. #define OCR_SIZE 32640 /* OBSOLETE: use OCR_SIZEALL */
1725. #define OCR_ICON 32641 /* OBSOLETE: use OCR_NORMAL */
1726. #define OCR_SIZENWSE 32642
1727. #define OCR_SIZENESW 32643
1728. #define OCR_SIZEWE 32644
1729. #define OCR_SIZENS 32645
1730. #define OCR_SIZEALL 32646
1731. #define OCR_ICOCUR 32647 /* OBSOLETE: use OIC_WINLOGO */
1732. #define OCR_NO 32648
1733. #define OCR_HAND 32649
1734. #define OCR_APPSTARTING 32650
1735. #define OIC_SAMPLE 32512
1736. #define OIC_HAND 32513
1737. #define OIC_QUES 32514
1738. #define OIC_BANG 32515
1739. #define OIC_NOTE 32516
1740. #define OIC_WINLOGO 32517
1741. #define OIC_WARNING OIC_BANG
1742. #define OIC_ERROR OIC_HAND
1743. #define OIC_INFORMATION OIC_NOTE
1744. #define OIC_SHIELD 32518
1745. #define ORD_LANGDRIVER 1
1746. #define IDI_APPLICATION 32512
1747. #define IDI_HAND 32513
1748. #define IDI_QUESTION 32514
1749. #define IDI_EXCLAMATION 32515
1750. #define IDI_ASTERISK 32516
1751. #define IDI_WINLOGO 32517
1752. #define IDI_SHIELD 32518
1753. #define IDI_APPLICATION MAKEINTRESOURCE(32512)
1754. #define IDI_HAND MAKEINTRESOURCE(32513)
1755. #define IDI_QUESTION MAKEINTRESOURCE(32514)
1756. #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
1757. #define IDI_ASTERISK MAKEINTRESOURCE(32516)
1758. #define IDI_WINLOGO MAKEINTRESOURCE(32517)
1759. #define IDI_SHIELD MAKEINTRESOURCE(32518)
1760. #define IDI_WARNING IDI_EXCLAMATION
1761. #define IDI_ERROR IDI_HAND
1762. #define IDI_INFORMATION IDI_ASTERISK
1763. #define LoadString LoadStringW
1764. #define LoadString LoadStringA
1765. #define IDOK 1
1766. #define IDCANCEL 2
1767. #define IDABORT 3
1768. #define IDRETRY 4
1769. #define IDIGNORE 5
1770. #define IDYES 6
1771. #define IDNO 7
1772. #define IDCLOSE 8
1773. #define IDHELP 9
1774. #define IDTRYAGAIN 10
1775. #define IDCONTINUE 11
1776. #define IDTIMEOUT 32000
1777. #define ES_LEFT 0x0000L
1778. #define ES_CENTER 0x0001L
1779. #define ES_RIGHT 0x0002L
1780. #define ES_MULTILINE 0x0004L
1781. #define ES_UPPERCASE 0x0008L
1782. #define ES_LOWERCASE 0x0010L
1783. #define ES_PASSWORD 0x0020L
1784. #define ES_AUTOVSCROLL 0x0040L
1785. #define ES_AUTOHSCROLL 0x0080L
1786. #define ES_NOHIDESEL 0x0100L
1787. #define ES_OEMCONVERT 0x0400L
1788. #define ES_READONLY 0x0800L
1789. #define ES_WANTRETURN 0x1000L
1790. #define ES_NUMBER 0x2000L
1791. #define EN_SETFOCUS 0x0100
1792. #define EN_KILLFOCUS 0x0200
1793. #define EN_CHANGE 0x0300
1794. #define EN_UPDATE 0x0400
1795. #define EN_ERRSPACE 0x0500
1796. #define EN_MAXTEXT 0x0501
1797. #define EN_HSCROLL 0x0601
1798. #define EN_VSCROLL 0x0602
1799. #define EN_ALIGN_LTR_EC 0x0700
1800. #define EN_ALIGN_RTL_EC 0x0701
1801. #define EC_LEFTMARGIN 0x0001
1802. #define EC_RIGHTMARGIN 0x0002
1803. #define EC_USEFONTINFO 0xffff
1804. #define EMSIS_COMPOSITIONSTRING 0x0001
1805. #define EIMES_GETCOMPSTRATONCE 0x0001
1806. #define EIMES_CANCELCOMPSTRINFOCUS 0x0002
1807. #define EIMES_COMPLETECOMPSTRKILLFOCUS 0x0004
1808. #define EM_GETSEL 0x00B0
1809. #define EM_SETSEL 0x00B1
1810. #define EM_GETRECT 0x00B2
1811. #define EM_SETRECT 0x00B3
1812. #define EM_SETRECTNP 0x00B4
1813. #define EM_SCROLL 0x00B5
1814. #define EM_LINESCROLL 0x00B6
1815. #define EM_SCROLLCARET 0x00B7
1816. #define EM_GETMODIFY 0x00B8
1817. #define EM_SETMODIFY 0x00B9
1818. #define EM_GETLINECOUNT 0x00BA
1819. #define EM_LINEINDEX 0x00BB
1820. #define EM_SETHANDLE 0x00BC
1821. #define EM_GETHANDLE 0x00BD
1822. #define EM_GETTHUMB 0x00BE
1823. #define EM_LINELENGTH 0x00C1
1824. #define EM_REPLACESEL 0x00C2
1825. #define EM_GETLINE 0x00C4
1826. #define EM_LIMITTEXT 0x00C5
1827. #define EM_CANUNDO 0x00C6
1828. #define EM_UNDO 0x00C7
1829. #define EM_FMTLINES 0x00C8
1830. #define EM_LINEFROMCHAR 0x00C9
1831. #define EM_SETTABSTOPS 0x00CB
1832. #define EM_SETPASSWORDCHAR 0x00CC
1833. #define EM_EMPTYUNDOBUFFER 0x00CD
1834. #define EM_GETFIRSTVISIBLELINE 0x00CE
1835. #define EM_SETREADONLY 0x00CF
1836. #define EM_SETWORDBREAKPROC 0x00D0
1837. #define EM_GETWORDBREAKPROC 0x00D1
1838. #define EM_GETPASSWORDCHAR 0x00D2
1839. #define EM_SETMARGINS 0x00D3
1840. #define EM_GETMARGINS 0x00D4
1841. #define EM_SETLIMITTEXT EM_LIMITTEXT /* ;win40 Name change */
1842. #define EM_GETLIMITTEXT 0x00D5
1843. #define EM_POSFROMCHAR 0x00D6
1844. #define EM_CHARFROMPOS 0x00D7
1845. #define EM_SETIMESTATUS 0x00D8
1846. #define EM_GETIMESTATUS 0x00D9
1847. #define WB_LEFT 0
1848. #define WB_RIGHT 1
1849. #define WB_ISDELIMITER 2
1850. #define BS_PUSHBUTTON 0x00000000L
1851. #define BS_DEFPUSHBUTTON 0x00000001L
1852. #define BS_CHECKBOX 0x00000002L
1853. #define BS_AUTOCHECKBOX 0x00000003L
1854. #define BS_RADIOBUTTON 0x00000004L
1855. #define BS_3STATE 0x00000005L
1856. #define BS_AUTO3STATE 0x00000006L
1857. #define BS_GROUPBOX 0x00000007L
1858. #define BS_USERBUTTON 0x00000008L
1859. #define BS_AUTORADIOBUTTON 0x00000009L
1860. #define BS_PUSHBOX 0x0000000AL
1861. #define BS_OWNERDRAW 0x0000000BL
1862. #define BS_TYPEMASK 0x0000000FL
1863. #define BS_LEFTTEXT 0x00000020L
1864. #define BS_TEXT 0x00000000L
1865. #define BS_ICON 0x00000040L
1866. #define BS_BITMAP 0x00000080L
1867. #define BS_LEFT 0x00000100L
1868. #define BS_RIGHT 0x00000200L
1869. #define BS_CENTER 0x00000300L
1870. #define BS_TOP 0x00000400L
1871. #define BS_BOTTOM 0x00000800L
1872. #define BS_VCENTER 0x00000C00L
1873. #define BS_PUSHLIKE 0x00001000L
1874. #define BS_MULTILINE 0x00002000L
1875. #define BS_NOTIFY 0x00004000L
1876. #define BS_FLAT 0x00008000L
1877. #define BS_RIGHTBUTTON BS_LEFTTEXT
1878. #define BN_CLICKED 0
1879. #define BN_PAINT 1
1880. #define BN_HILITE 2
1881. #define BN_UNHILITE 3
1882. #define BN_DISABLE 4
1883. #define BN_DOUBLECLICKED 5
1884. #define BN_PUSHED BN_HILITE
1885. #define BN_UNPUSHED BN_UNHILITE
1886. #define BN_DBLCLK BN_DOUBLECLICKED
1887. #define BN_SETFOCUS 6
1888. #define BN_KILLFOCUS 7
1889. #define BM_GETCHECK 0x00F0
1890. #define BM_SETCHECK 0x00F1
1891. #define BM_GETSTATE 0x00F2
1892. #define BM_SETSTATE 0x00F3
1893. #define BM_SETSTYLE 0x00F4
1894. #define BM_CLICK 0x00F5
1895. #define BM_GETIMAGE 0x00F6
1896. #define BM_SETIMAGE 0x00F7
1897. #define BM_SETDONTCLICK 0x00F8
1898. #define BST_UNCHECKED 0x0000
1899. #define BST_CHECKED 0x0001
1900. #define BST_INDETERMINATE 0x0002
1901. #define BST_PUSHED 0x0004
1902. #define BST_FOCUS 0x0008
1903. #define SS_LEFT 0x00000000L
1904. #define SS_CENTER 0x00000001L
1905. #define SS_RIGHT 0x00000002L
1906. #define SS_ICON 0x00000003L
1907. #define SS_BLACKRECT 0x00000004L
1908. #define SS_GRAYRECT 0x00000005L
1909. #define SS_WHITERECT 0x00000006L
1910. #define SS_BLACKFRAME 0x00000007L
1911. #define SS_GRAYFRAME 0x00000008L
1912. #define SS_WHITEFRAME 0x00000009L
1913. #define SS_USERITEM 0x0000000AL
1914. #define SS_SIMPLE 0x0000000BL
1915. #define SS_LEFTNOWORDWRAP 0x0000000CL
1916. #define SS_OWNERDRAW 0x0000000DL
1917. #define SS_BITMAP 0x0000000EL
1918. #define SS_ENHMETAFILE 0x0000000FL
1919. #define SS_ETCHEDHORZ 0x00000010L
1920. #define SS_ETCHEDVERT 0x00000011L
1921. #define SS_ETCHEDFRAME 0x00000012L
1922. #define SS_TYPEMASK 0x0000001FL
1923. #define SS_REALSIZECONTROL 0x00000040L
1924. #define SS_NOPREFIX 0x00000080L /* Don‘t do "&" character translation */
1925. #define SS_NOTIFY 0x00000100L
1926. #define SS_CENTERIMAGE 0x00000200L
1927. #define SS_RIGHTJUST 0x00000400L
1928. #define SS_REALSIZEIMAGE 0x00000800L
1929. #define SS_SUNKEN 0x00001000L
1930. #define SS_EDITCONTROL 0x00002000L
1931. #define SS_ENDELLIPSIS 0x00004000L
1932. #define SS_PATHELLIPSIS 0x00008000L
1933. #define SS_WORDELLIPSIS 0x0000C000L
1934. #define SS_ELLIPSISMASK 0x0000C000L
1935. #define STM_SETICON 0x0170
1936. #define STM_GETICON 0x0171
1937. #define STM_SETIMAGE 0x0172
1938. #define STM_GETIMAGE 0x0173
1939. #define STN_CLICKED 0
1940. #define STN_DBLCLK 1
1941. #define STN_ENABLE 2
1942. #define STN_DISABLE 3
1943. #define STM_MSGMAX 0x0174
1944. #define WC_DIALOG (MAKEINTATOM(0x8002))
1945. #define DWL_MSGRESULT 0
1946. #define DWL_DLGPROC 4
1947. #define DWL_USER 8
1948. #define DWLP_MSGRESULT 0
1949. #define DDL_READWRITE 0x0000
1950. #define DDL_READONLY 0x0001
1951. #define DDL_HIDDEN 0x0002
1952. #define DDL_SYSTEM 0x0004
1953. #define DDL_DIRECTORY 0x0010
1954. #define DDL_ARCHIVE 0x0020
1955. #define DDL_POSTMSGS 0x2000
1956. #define DDL_DRIVES 0x4000
1957. #define DDL_EXCLUSIVE 0x8000
1958. #define DS_ABSALIGN 0x01L
1959. #define DS_SYSMODAL 0x02L
1960. #define DS_LOCALEDIT 0x20L /* Edit items get Local storage. */
1961. #define DS_SETFONT 0x40L /* User specified font for Dlg controls */
1962. #define DS_MODALFRAME 0x80L /* Can be combined with WS_CAPTION */
1963. #define DS_NOIDLEMSG 0x100L /* WM_ENTERIDLE message will not be sent */
1964. #define DS_SETFOREGROUND 0x200L /* not in win3.1 */
1965. #define DS_3DLOOK 0x0004L
1966. #define DS_FIXEDSYS 0x0008L
1967. #define DS_NOFAILCREATE 0x0010L
1968. #define DS_CONTROL 0x0400L
1969. #define DS_CENTER 0x0800L
1970. #define DS_CENTERMOUSE 0x1000L
1971. #define DS_CONTEXTHELP 0x2000L
1972. #define DS_SHELLFONT (DS_SETFONT | DS_FIXEDSYS)
1973. #define DS_USEPIXELS 0x8000L
1974. #define DM_GETDEFID (WM_USER+0)
1975. #define DM_SETDEFID (WM_USER+1)
1976. #define DM_REPOSITION (WM_USER+2)
1977. #define DC_HASDEFID 0x534B
1978. #define DLGC_WANTARROWS 0x0001 /* Control wants arrow keys */
1979. #define DLGC_WANTTAB 0x0002 /* Control wants tab keys */
1980. #define DLGC_WANTALLKEYS 0x0004 /* Control wants all keys */
1981. #define DLGC_WANTMESSAGE 0x0004 /* Pass message to control */
1982. #define DLGC_HASSETSEL 0x0008 /* Understands EM_SETSEL message */
1983. #define DLGC_DEFPUSHBUTTON 0x0010 /* Default pushbutton */
1984. #define DLGC_UNDEFPUSHBUTTON 0x0020 /* Non-default pushbutton */
1985. #define DLGC_RADIOBUTTON 0x0040 /* Radio button */
1986. #define DLGC_WANTCHARS 0x0080 /* Want WM_CHAR messages */
1987. #define DLGC_STATIC 0x0100 /* Static item: don‘t include */
1988. #define DLGC_BUTTON 0x2000 /* Button item: can be checked */
1989. #define LB_CTLCODE 0L
1990. #define LB_OKAY 0
1991. #define LB_ERR (-1)
1992. #define LB_ERRSPACE (-2)
1993. #define LBN_ERRSPACE (-2)
1994. #define LBN_SELCHANGE 1
1995. #define LBN_DBLCLK 2
1996. #define LBN_SELCANCEL 3
1997. #define LBN_SETFOCUS 4
1998. #define LBN_KILLFOCUS 5
1999. #define LB_ADDSTRING 0x0180
2000. #define LB_INSERTSTRING 0x0181
2001. #define LB_DELETESTRING 0x0182
2002. #define LB_SELITEMRANGEEX 0x0183
2003. #define LB_RESETCONTENT 0x0184
2004. #define LB_SETSEL 0x0185
2005. #define LB_SETCURSEL 0x0186
2006. #define LB_GETSEL 0x0187
2007. #define LB_GETCURSEL 0x0188
2008. #define LB_GETTEXT 0x0189
2009. #define LB_GETTEXTLEN 0x018A
2010. #define LB_GETCOUNT 0x018B
2011. #define LB_SELECTSTRING 0x018C
2012. #define LB_DIR 0x018D
2013. #define LB_GETTOPINDEX 0x018E
2014. #define LB_FINDSTRING 0x018F
2015. #define LB_GETSELCOUNT 0x0190
2016. #define LB_GETSELITEMS 0x0191
2017. #define LB_SETTABSTOPS 0x0192
2018. #define LB_GETHORIZONTALEXTENT 0x0193
2019. #define LB_SETHORIZONTALEXTENT 0x0194
2020. #define LB_SETCOLUMNWIDTH 0x0195
2021. #define LB_ADDFILE 0x0196
2022. #define LB_SETTOPINDEX 0x0197
2023. #define LB_GETITEMRECT 0x0198
2024. #define LB_GETITEMDATA 0x0199
2025. #define LB_SETITEMDATA 0x019A
2026. #define LB_SELITEMRANGE 0x019B
2027. #define LB_SETANCHORINDEX 0x019C
2028. #define LB_GETANCHORINDEX 0x019D
2029. #define LB_SETCARETINDEX 0x019E
2030. #define LB_GETCARETINDEX 0x019F
2031. #define LB_SETITEMHEIGHT 0x01A0
2032. #define LB_GETITEMHEIGHT 0x01A1
2033. #define LB_FINDSTRINGEXACT 0x01A2
2034. #define LB_SETLOCALE 0x01A5
2035. #define LB_GETLOCALE 0x01A6
2036. #define LB_SETCOUNT 0x01A7
2037. #define LB_INITSTORAGE 0x01A8
2038. #define LB_ITEMFROMPOINT 0x01A9
2039. #define LB_MULTIPLEADDSTRING 0x01B1
2040. #define LB_GETLISTBOXINFO 0x01B2
2041. #define LB_MSGMAX 0x01B3
2042. #define LB_MSGMAX 0x01B1
2043. #define LB_MSGMAX 0x01B0
2044. #define LB_MSGMAX 0x01A8
2045. #define LBS_NOTIFY 0x0001L
2046. #define LBS_SORT 0x0002L
2047. #define LBS_NOREDRAW 0x0004L
2048. #define LBS_MULTIPLESEL 0x0008L
2049. #define LBS_OWNERDRAWFIXED 0x0010L
2050. #define LBS_OWNERDRAWVARIABLE 0x0020L
2051. #define LBS_HASSTRINGS 0x0040L
2052. #define LBS_USETABSTOPS 0x0080L
2053. #define LBS_NOINTEGRALHEIGHT 0x0100L
2054. #define LBS_MULTICOLUMN 0x0200L
2055. #define LBS_WANTKEYBOARDINPUT 0x0400L
2056. #define LBS_EXTENDEDSEL 0x0800L
2057. #define LBS_DISABLENOSCROLL 0x1000L
2058. #define LBS_NODATA 0x2000L
2059. #define LBS_NOSEL 0x4000L
2060. #define LBS_COMBOBOX 0x8000L
2061. #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
2062. #define CB_OKAY 0
2063. #define CB_ERR (-1)
2064. #define CB_ERRSPACE (-2)
2065. #define CBN_ERRSPACE (-1)
2066. #define CBN_SELCHANGE 1
2067. #define CBN_DBLCLK 2
2068. #define CBN_SETFOCUS 3
2069. #define CBN_KILLFOCUS 4
2070. #define CBN_EDITCHANGE 5
2071. #define CBN_EDITUPDATE 6
2072. #define CBN_DROPDOWN 7
2073. #define CBN_CLOSEUP 8
2074. #define CBN_SELENDOK 9
2075. #define CBN_SELENDCANCEL 10
2076. #define CBS_SIMPLE 0x0001L
2077. #define CBS_DROPDOWN 0x0002L
2078. #define CBS_DROPDOWNLIST 0x0003L
2079. #define CBS_OWNERDRAWFIXED 0x0010L
2080. #define CBS_OWNERDRAWVARIABLE 0x0020L
2081. #define CBS_AUTOHSCROLL 0x0040L
2082. #define CBS_OEMCONVERT 0x0080L
2083. #define CBS_SORT 0x0100L
2084. #define CBS_HASSTRINGS 0x0200L
2085. #define CBS_NOINTEGRALHEIGHT 0x0400L
2086. #define CBS_DISABLENOSCROLL 0x0800L
2087. #define CBS_UPPERCASE 0x2000L
2088. #define CBS_LOWERCASE 0x4000L
2089. #define CB_GETEDITSEL 0x0140
2090. #define CB_LIMITTEXT 0x0141
2091. #define CB_SETEDITSEL 0x0142
2092. #define CB_ADDSTRING 0x0143
2093. #define CB_DELETESTRING 0x0144
2094. #define CB_DIR 0x0145
2095. #define CB_GETCOUNT 0x0146
2096. #define CB_GETCURSEL 0x0147
2097. #define CB_GETLBTEXT 0x0148
2098. #define CB_GETLBTEXTLEN 0x0149
2099. #define CB_INSERTSTRING 0x014A
2100. #define CB_RESETCONTENT 0x014B
2101. #define CB_FINDSTRING 0x014C
2102. #define CB_SELECTSTRING 0x014D
2103. #define CB_SETCURSEL 0x014E
2104. #define CB_SHOWDROPDOWN 0x014F
2105. #define CB_GETITEMDATA 0x0150
2106. #define CB_SETITEMDATA 0x0151
2107. #define CB_GETDROPPEDCONTROLRECT 0x0152
2108. #define CB_SETITEMHEIGHT 0x0153
2109. #define CB_GETITEMHEIGHT 0x0154
2110. #define CB_SETEXTENDEDUI 0x0155
2111. #define CB_GETEXTENDEDUI 0x0156
2112. #define CB_GETDROPPEDSTATE 0x0157
2113. #define CB_FINDSTRINGEXACT 0x0158
2114. #define CB_SETLOCALE 0x0159
2115. #define CB_GETLOCALE 0x015A
2116. #define CB_GETTOPINDEX 0x015b
2117. #define CB_SETTOPINDEX 0x015c
2118. #define CB_GETHORIZONTALEXTENT 0x015d
2119. #define CB_SETHORIZONTALEXTENT 0x015e
2120. #define CB_GETDROPPEDWIDTH 0x015f
2121. #define CB_SETDROPPEDWIDTH 0x0160
2122. #define CB_INITSTORAGE 0x0161
2123. #define CB_MULTIPLEADDSTRING 0x0163
2124. #define CB_GETCOMBOBOXINFO 0x0164
2125. #define CB_MSGMAX 0x0165
2126. #define CB_MSGMAX 0x0163
2127. #define CB_MSGMAX 0x0162
2128. #define CB_MSGMAX 0x015B
2129. #define SBS_HORZ 0x0000L
2130. #define SBS_VERT 0x0001L
2131. #define SBS_TOPALIGN 0x0002L
2132. #define SBS_LEFTALIGN 0x0002L
2133. #define SBS_BOTTOMALIGN 0x0004L
2134. #define SBS_RIGHTALIGN 0x0004L
2135. #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
2136. #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
2137. #define SBS_SIZEBOX 0x0008L
2138. #define SBS_SIZEGRIP 0x0010L
2139. #define SBM_SETPOS 0x00E0 /*not in win3.1 */
2140. #define SBM_GETPOS 0x00E1 /*not in win3.1 */
2141. #define SBM_SETRANGE 0x00E2 /*not in win3.1 */
2142. #define SBM_SETRANGEREDRAW 0x00E6 /*not in win3.1 */
2143. #define SBM_GETRANGE 0x00E3 /*not in win3.1 */
2144. #define SBM_ENABLE_ARROWS 0x00E4 /*not in win3.1 */
2145. #define SBM_SETSCROLLINFO 0x00E9
2146. #define SBM_GETSCROLLINFO 0x00EA
2147. #define SBM_GETSCROLLBARINFO 0x00EB
2148. #define SIF_RANGE 0x0001
2149. #define SIF_PAGE 0x0002
2150. #define SIF_POS 0x0004
2151. #define SIF_DISABLENOSCROLL 0x0008
2152. #define SIF_TRACKPOS 0x0010
2153. #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
2154. #define MDIS_ALLCHILDSTYLES 0x0001
2155. #define MDITILE_VERTICAL 0x0000 /*not in win3.1 */
2156. #define MDITILE_HORIZONTAL 0x0001 /*not in win3.1 */
2157. #define MDITILE_SKIPDISABLED 0x0002 /*not in win3.1 */
2158. #define MDITILE_ZORDER 0x0004
2159. #define HELP_CONTEXT 0x0001L /* Display topic in ulTopic */
2160. #define HELP_QUIT 0x0002L /* Terminate help */
2161. #define HELP_INDEX 0x0003L /* Display index */
2162. #define HELP_CONTENTS 0x0003L
2163. #define HELP_HELPONHELP 0x0004L /* Display help on using help */
2164. #define HELP_SETINDEX 0x0005L /* Set current Index for multi index help */
2165. #define HELP_SETCONTENTS 0x0005L
2166. #define HELP_CONTEXTPOPUP 0x0008L
2167. #define HELP_FORCEFILE 0x0009L
2168. #define HELP_KEY 0x0101L /* Display topic for keyword in offabData */
2169. #define HELP_COMMAND 0x0102L
2170. #define HELP_PARTIALKEY 0x0105L
2171. #define HELP_MULTIKEY 0x0201L
2172. #define HELP_SETWINPOS 0x0203L
2173. #define HELP_CONTEXTMENU 0x000a
2174. #define HELP_FINDER 0x000b
2175. #define HELP_WM_HELP 0x000c
2176. #define HELP_SETPOPUP_POS 0x000d
2177. #define HELP_TCARD 0x8000
2178. #define HELP_TCARD_DATA 0x0010
2179. #define HELP_TCARD_OTHER_CALLER 0x0011
2180. #define IDH_NO_HELP 28440
2181. #define IDH_MISSING_CONTEXT 28441 // Control doesn‘t have matching help context
2182. #define IDH_GENERIC_HELP_BUTTON 28442 // Property sheet help button
2183. #define IDH_OK 28443
2184. #define IDH_CANCEL 28444
2185. #define IDH_HELP 28445
2186. #define WinHelp WinHelpW
2187. #define WinHelp WinHelpA
2188. #define GR_GDIOBJECTS 0 /* Count of GDI objects */
2189. #define GR_USEROBJECTS 1 /* Count of USER objects */
2190. #define GR_GDIOBJECTS_PEAK 2 /* Peak count of GDI objects */
2191. #define GR_USEROBJECTS_PEAK 4 /* Peak count of USER objects */
2192. #define GR_GLOBAL ((HANDLE)-2)
2193. #define SPI_GETBEEP 0x0001
2194. #define SPI_SETBEEP 0x0002
2195. #define SPI_GETMOUSE 0x0003
2196. #define SPI_SETMOUSE 0x0004
2197. #define SPI_GETBORDER 0x0005
2198. #define SPI_SETBORDER 0x0006
2199. #define SPI_GETKEYBOARDSPEED 0x000A
2200. #define SPI_SETKEYBOARDSPEED 0x000B
2201. #define SPI_LANGDRIVER 0x000C
2202. #define SPI_ICONHORIZONTALSPACING 0x000D
2203. #define SPI_GETSCREENSAVETIMEOUT 0x000E
2204. #define SPI_SETSCREENSAVETIMEOUT 0x000F
2205. #define SPI_GETSCREENSAVEACTIVE 0x0010
2206. #define SPI_SETSCREENSAVEACTIVE 0x0011
2207. #define SPI_GETGRIDGRANULARITY 0x0012
2208. #define SPI_SETGRIDGRANULARITY 0x0013
2209. #define SPI_SETDESKWALLPAPER 0x0014
2210. #define SPI_SETDESKPATTERN 0x0015
2211. #define SPI_GETKEYBOARDDELAY 0x0016
2212. #define SPI_SETKEYBOARDDELAY 0x0017
2213. #define SPI_ICONVERTICALSPACING 0x0018
2214. #define SPI_GETICONTITLEWRAP 0x0019
2215. #define SPI_SETICONTITLEWRAP 0x001A
2216. #define SPI_GETMENUDROPALIGNMENT 0x001B
2217. #define SPI_SETMENUDROPALIGNMENT 0x001C
2218. #define SPI_SETDOUBLECLKWIDTH 0x001D
2219. #define SPI_SETDOUBLECLKHEIGHT 0x001E
2220. #define SPI_GETICONTITLELOGFONT 0x001F
2221. #define SPI_SETDOUBLECLICKTIME 0x0020
2222. #define SPI_SETMOUSEBUTTONSWAP 0x0021
2223. #define SPI_SETICONTITLELOGFONT 0x0022
2224. #define SPI_GETFASTTASKSWITCH 0x0023
2225. #define SPI_SETFASTTASKSWITCH 0x0024
2226. #define SPI_SETDRAGFULLWINDOWS 0x0025
2227. #define SPI_GETDRAGFULLWINDOWS 0x0026
2228. #define SPI_GETNONCLIENTMETRICS 0x0029
2229. #define SPI_SETNONCLIENTMETRICS 0x002A
2230. #define SPI_GETMINIMIZEDMETRICS 0x002B
2231. #define SPI_SETMINIMIZEDMETRICS 0x002C
2232. #define SPI_GETICONMETRICS 0x002D
2233. #define SPI_SETICONMETRICS 0x002E
2234. #define SPI_SETWORKAREA 0x002F
2235. #define SPI_GETWORKAREA 0x0030
2236. #define SPI_SETPENWINDOWS 0x0031
2237. #define SPI_GETHIGHCONTRAST 0x0042
2238. #define SPI_SETHIGHCONTRAST 0x0043
2239. #define SPI_GETKEYBOARDPREF 0x0044
2240. #define SPI_SETKEYBOARDPREF 0x0045
2241. #define SPI_GETSCREENREADER 0x0046
2242. #define SPI_SETSCREENREADER 0x0047
2243. #define SPI_GETANIMATION 0x0048
2244. #define SPI_SETANIMATION 0x0049
2245. #define SPI_GETFONTSMOOTHING 0x004A
2246. #define SPI_SETFONTSMOOTHING 0x004B
2247. #define SPI_SETDRAGWIDTH 0x004C
2248. #define SPI_SETDRAGHEIGHT 0x004D
2249. #define SPI_SETHANDHELD 0x004E
2250. #define SPI_GETLOWPOWERTIMEOUT 0x004F
2251. #define SPI_GETPOWEROFFTIMEOUT 0x0050
2252. #define SPI_SETLOWPOWERTIMEOUT 0x0051
2253. #define SPI_SETPOWEROFFTIMEOUT 0x0052
2254. #define SPI_GETLOWPOWERACTIVE 0x0053
2255. #define SPI_GETPOWEROFFACTIVE 0x0054
2256. #define SPI_SETLOWPOWERACTIVE 0x0055
2257. #define SPI_SETPOWEROFFACTIVE 0x0056
2258. #define SPI_SETCURSORS 0x0057
2259. #define SPI_SETICONS 0x0058
2260. #define SPI_GETDEFAULTINPUTLANG 0x0059
2261. #define SPI_SETDEFAULTINPUTLANG 0x005A
2262. #define SPI_SETLANGTOGGLE 0x005B
2263. #define SPI_GETWINDOWSEXTENSION 0x005C
2264. #define SPI_SETMOUSETRAILS 0x005D
2265. #define SPI_GETMOUSETRAILS 0x005E
2266. #define SPI_SETSCREENSAVERRUNNING 0x0061
2267. #define SPI_GETFILTERKEYS 0x0032
2268. #define SPI_SETFILTERKEYS 0x0033
2269. #define SPI_GETTOGGLEKEYS 0x0034
2270. #define SPI_SETTOGGLEKEYS 0x0035
2271. #define SPI_GETMOUSEKEYS 0x0036
2272. #define SPI_SETMOUSEKEYS 0x0037
2273. #define SPI_GETSHOWSOUNDS 0x0038
2274. #define SPI_SETSHOWSOUNDS 0x0039
2275. #define SPI_GETSTICKYKEYS 0x003A
2276. #define SPI_SETSTICKYKEYS 0x003B
2277. #define SPI_GETACCESSTIMEOUT 0x003C
2278. #define SPI_SETACCESSTIMEOUT 0x003D
2279. #define SPI_GETSERIALKEYS 0x003E
2280. #define SPI_SETSERIALKEYS 0x003F
2281. #define SPI_GETSOUNDSENTRY 0x0040
2282. #define SPI_SETSOUNDSENTRY 0x0041
2283. #define SPI_GETSNAPTODEFBUTTON 0x005F
2284. #define SPI_SETSNAPTODEFBUTTON 0x0060
2285. #define SPI_GETMOUSEHOVERWIDTH 0x0062
2286. #define SPI_SETMOUSEHOVERWIDTH 0x0063
2287. #define SPI_GETMOUSEHOVERHEIGHT 0x0064
2288. #define SPI_SETMOUSEHOVERHEIGHT 0x0065
2289. #define SPI_GETMOUSEHOVERTIME 0x0066
2290. #define SPI_SETMOUSEHOVERTIME 0x0067
2291. #define SPI_GETWHEELSCROLLLINES 0x0068
2292. #define SPI_SETWHEELSCROLLLINES 0x0069
2293. #define SPI_GETMENUSHOWDELAY 0x006A
2294. #define SPI_SETMENUSHOWDELAY 0x006B
2295. #define SPI_GETWHEELSCROLLCHARS 0x006C
2296. #define SPI_SETWHEELSCROLLCHARS 0x006D
2297. #define SPI_GETSHOWIMEUI 0x006E
2298. #define SPI_SETSHOWIMEUI 0x006F
2299. #define SPI_GETMOUSESPEED 0x0070
2300. #define SPI_SETMOUSESPEED 0x0071
2301. #define SPI_GETSCREENSAVERRUNNING 0x0072
2302. #define SPI_GETDESKWALLPAPER 0x0073
2303. #define SPI_GETAUDIODESCRIPTION 0x0074
2304. #define SPI_SETAUDIODESCRIPTION 0x0075
2305. #define SPI_GETSCREENSAVESECURE 0x0076
2306. #define SPI_SETSCREENSAVESECURE 0x0077
2307. #define SPI_GETHUNGAPPTIMEOUT 0x0078
2308. #define SPI_SETHUNGAPPTIMEOUT 0x0079
2309. #define SPI_GETWAITTOKILLTIMEOUT 0x007A
2310. #define SPI_SETWAITTOKILLTIMEOUT 0x007B
2311. #define SPI_GETWAITTOKILLSERVICETIMEOUT 0x007C
2312. #define SPI_SETWAITTOKILLSERVICETIMEOUT 0x007D
2313. #define SPI_GETMOUSEDOCKTHRESHOLD 0x007E
2314. #define SPI_SETMOUSEDOCKTHRESHOLD 0x007F
2315. #define SPI_GETPENDOCKTHRESHOLD 0x0080
2316. #define SPI_SETPENDOCKTHRESHOLD 0x0081
2317. #define SPI_GETWINARRANGING 0x0082
2318. #define SPI_SETWINARRANGING 0x0083
2319. #define SPI_GETMOUSEDRAGOUTTHRESHOLD 0x0084
2320. #define SPI_SETMOUSEDRAGOUTTHRESHOLD 0x0085
2321. #define SPI_GETPENDRAGOUTTHRESHOLD 0x0086
2322. #define SPI_SETPENDRAGOUTTHRESHOLD 0x0087
2323. #define SPI_GETMOUSESIDEMOVETHRESHOLD 0x0088
2324. #define SPI_SETMOUSESIDEMOVETHRESHOLD 0x0089
2325. #define SPI_GETPENSIDEMOVETHRESHOLD 0x008A
2326. #define SPI_SETPENSIDEMOVETHRESHOLD 0x008B
2327. #define SPI_GETDRAGFROMMAXIMIZE 0x008C
2328. #define SPI_SETDRAGFROMMAXIMIZE 0x008D
2329. #define SPI_GETSNAPSIZING 0x008E
2330. #define SPI_SETSNAPSIZING 0x008F
2331. #define SPI_GETDOCKMOVING 0x0090
2332. #define SPI_SETDOCKMOVING 0x0091
2333. #define MAX_TOUCH_PREDICTION_FILTER_TAPS 3
2334. #define SPI_GETTOUCHPREDICTIONPARAMETERS 0x009C
2335. #define SPI_SETTOUCHPREDICTIONPARAMETERS 0x009D
2336. #define MAX_LOGICALDPIOVERRIDE 2
2337. #define MIN_LOGICALDPIOVERRIDE -2
2338. #define SPI_GETLOGICALDPIOVERRIDE 0x009E
2339. #define SPI_SETLOGICALDPIOVERRIDE 0x009F
2340. #define SPI_GETMOUSECORNERCLIPLENGTH 0x00A0
2341. #define SPI_SETMOUSECORNERCLIPLENGTH 0x00A1
2342. #define SPI_GETMENURECT 0x00A2
2343. #define SPI_SETMENURECT 0x00A3
2344. #define SPI_GETACTIVEWINDOWTRACKING 0x1000
2345. #define SPI_SETACTIVEWINDOWTRACKING 0x1001
2346. #define SPI_GETMENUANIMATION 0x1002
2347. #define SPI_SETMENUANIMATION 0x1003
2348. #define SPI_GETCOMBOBOXANIMATION 0x1004
2349. #define SPI_SETCOMBOBOXANIMATION 0x1005
2350. #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2351. #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2352. #define SPI_GETGRADIENTCAPTIONS 0x1008
2353. #define SPI_SETGRADIENTCAPTIONS 0x1009
2354. #define SPI_GETKEYBOARDCUES 0x100A
2355. #define SPI_SETKEYBOARDCUES 0x100B
2356. #define SPI_GETACTIVEWNDTRKZORDER 0x100C
2357. #define SPI_SETACTIVEWNDTRKZORDER 0x100D
2358. #define SPI_GETHOTTRACKING 0x100E
2359. #define SPI_SETHOTTRACKING 0x100F
2360. #define SPI_GETMENUFADE 0x1012
2361. #define SPI_SETMENUFADE 0x1013
2362. #define SPI_GETSELECTIONFADE 0x1014
2363. #define SPI_SETSELECTIONFADE 0x1015
2364. #define SPI_GETTOOLTIPANIMATION 0x1016
2365. #define SPI_SETTOOLTIPANIMATION 0x1017
2366. #define SPI_GETTOOLTIPFADE 0x1018
2367. #define SPI_SETTOOLTIPFADE 0x1019
2368. #define SPI_GETCURSORSHADOW 0x101A
2369. #define SPI_SETCURSORSHADOW 0x101B
2370. #define SPI_GETMOUSESONAR 0x101C
2371. #define SPI_SETMOUSESONAR 0x101D
2372. #define SPI_GETMOUSECLICKLOCK 0x101E
2373. #define SPI_SETMOUSECLICKLOCK 0x101F
2374. #define SPI_GETMOUSEVANISH 0x1020
2375. #define SPI_SETMOUSEVANISH 0x1021
2376. #define SPI_GETFLATMENU 0x1022
2377. #define SPI_SETFLATMENU 0x1023
2378. #define SPI_GETDROPSHADOW 0x1024
2379. #define SPI_SETDROPSHADOW 0x1025
2380. #define SPI_GETBLOCKSENDINPUTRESETS 0x1026
2381. #define SPI_SETBLOCKSENDINPUTRESETS 0x1027
2382. #define SPI_GETUIEFFECTS 0x103E
2383. #define SPI_SETUIEFFECTS 0x103F
2384. #define SPI_GETDISABLEOVERLAPPEDCONTENT 0x1040
2385. #define SPI_SETDISABLEOVERLAPPEDCONTENT 0x1041
2386. #define SPI_GETCLIENTAREAANIMATION 0x1042
2387. #define SPI_SETCLIENTAREAANIMATION 0x1043
2388. #define SPI_GETCLEARTYPE 0x1048
2389. #define SPI_SETCLEARTYPE 0x1049
2390. #define SPI_GETSPEECHRECOGNITION 0x104A
2391. #define SPI_SETSPEECHRECOGNITION 0x104B
2392. #define SPI_GETCARETBROWSING 0x104C
2393. #define SPI_SETCARETBROWSING 0x104D
2394. #define SPI_GETTHREADLOCALINPUTSETTINGS 0x104E
2395. #define SPI_SETTHREADLOCALINPUTSETTINGS 0x104F
2396. #define SPI_GETSYSTEMLANGUAGEBAR 0x1050
2397. #define SPI_SETSYSTEMLANGUAGEBAR 0x1051
2398. #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2399. #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2400. #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2401. #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2402. #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2403. #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2404. #define SPI_GETCARETWIDTH 0x2006
2405. #define SPI_SETCARETWIDTH 0x2007
2406. #define SPI_GETMOUSECLICKLOCKTIME 0x2008
2407. #define SPI_SETMOUSECLICKLOCKTIME 0x2009
2408. #define SPI_GETFONTSMOOTHINGTYPE 0x200A
2409. #define SPI_SETFONTSMOOTHINGTYPE 0x200B
2410. #define FE_FONTSMOOTHINGSTANDARD 0x0001
2411. #define FE_FONTSMOOTHINGCLEARTYPE 0x0002
2412. #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
2413. #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D
2414. #define SPI_GETFOCUSBORDERWIDTH 0x200E
2415. #define SPI_SETFOCUSBORDERWIDTH 0x200F
2416. #define SPI_GETFOCUSBORDERHEIGHT 0x2010
2417. #define SPI_SETFOCUSBORDERHEIGHT 0x2011
2418. #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012
2419. #define SPI_SETFONTSMOOTHINGORIENTATION 0x2013
2420. #define FE_FONTSMOOTHINGORIENTATIONBGR 0x0000
2421. #define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001
2422. #define SPI_GETMINIMUMHITRADIUS 0x2014
2423. #define SPI_SETMINIMUMHITRADIUS 0x2015
2424. #define SPI_GETMESSAGEDURATION 0x2016
2425. #define SPI_SETMESSAGEDURATION 0x2017
2426. #define SPI_GETCONTACTVISUALIZATION 0x2018
2427. #define SPI_SETCONTACTVISUALIZATION 0x2019
2428. #define CONTACTVISUALIZATION_OFF 0x0000
2429. #define CONTACTVISUALIZATION_ON 0x0001
2430. #define CONTACTVISUALIZATION_PRESENTATIONMODE 0x0002
2431. #define SPI_GETGESTUREVISUALIZATION 0x201A
2432. #define SPI_SETGESTUREVISUALIZATION 0x201B
2433. #define GESTUREVISUALIZATION_OFF 0x0000
2434. #define GESTUREVISUALIZATION_ON 0x001F
2435. #define GESTUREVISUALIZATION_TAP 0x0001
2436. #define GESTUREVISUALIZATION_DOUBLETAP 0x0002
2437. #define GESTUREVISUALIZATION_PRESSANDTAP 0x0004
2438. #define GESTUREVISUALIZATION_PRESSANDHOLD 0x0008
2439. #define GESTUREVISUALIZATION_RIGHTTAP 0x0010
2440. #define SPI_GETMOUSEWHEELROUTING 0x201C
2441. #define SPI_SETMOUSEWHEELROUTING 0x201D
2442. #define MOUSEWHEEL_ROUTING_FOCUS 0
2443. #define MOUSEWHEEL_ROUTING_HYBRID 1
2444. #define SPIF_UPDATEINIFILE 0x0001
2445. #define SPIF_SENDWININICHANGE 0x0002
2446. #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2447. #define METRICS_USEDEFAULT -1
2448. #define ARW_BOTTOMLEFT 0x0000L
2449. #define ARW_BOTTOMRIGHT 0x0001L
2450. #define ARW_TOPLEFT 0x0002L
2451. #define ARW_TOPRIGHT 0x0003L
2452. #define ARW_STARTMASK 0x0003L
2453. #define ARW_STARTRIGHT 0x0001L
2454. #define ARW_STARTTOP 0x0002L
2455. #define ARW_LEFT 0x0000L
2456. #define ARW_RIGHT 0x0000L
2457. #define ARW_UP 0x0004L
2458. #define ARW_DOWN 0x0004L
2459. #define ARW_HIDE 0x0008L
2460. #define SERKF_SERIALKEYSON 0x00000001
2461. #define SERKF_AVAILABLE 0x00000002
2462. #define SERKF_INDICATOR 0x00000004
2463. #define HCF_HIGHCONTRASTON 0x00000001
2464. #define HCF_AVAILABLE 0x00000002
2465. #define HCF_HOTKEYACTIVE 0x00000004
2466. #define HCF_CONFIRMHOTKEY 0x00000008
2467. #define HCF_HOTKEYSOUND 0x00000010
2468. #define HCF_INDICATOR 0x00000020
2469. #define HCF_HOTKEYAVAILABLE 0x00000040
2470. #define HCF_LOGONDESKTOP 0x00000100
2471. #define HCF_DEFAULTDESKTOP 0x00000200
2472. #define CDS_UPDATEREGISTRY 0x00000001
2473. #define CDS_TEST 0x00000002
2474. #define CDS_FULLSCREEN 0x00000004
2475. #define CDS_GLOBAL 0x00000008
2476. #define CDS_SET_PRIMARY 0x00000010
2477. #define CDS_VIDEOPARAMETERS 0x00000020
2478. #define CDS_ENABLE_UNSAFE_MODES 0x00000100
2479. #define CDS_DISABLE_UNSAFE_MODES 0x00000200
2480. #define CDS_RESET 0x40000000
2481. #define CDS_RESET_EX 0x20000000
2482. #define CDS_NORESET 0x10000000
2483. #define DISP_CHANGE_SUCCESSFUL 0
2484. #define DISP_CHANGE_RESTART 1
2485. #define DISP_CHANGE_FAILED -1
2486. #define DISP_CHANGE_BADMODE -2
2487. #define DISP_CHANGE_NOTUPDATED -3
2488. #define DISP_CHANGE_BADFLAGS -4
2489. #define DISP_CHANGE_BADPARAM -5
2490. #define DISP_CHANGE_BADDUALVIEW -6
2491. #define ENUM_CURRENT_SETTINGS ((DWORD)-1)
2492. #define ENUM_REGISTRY_SETTINGS ((DWORD)-2)
2493. #define EDS_RAWMODE 0x00000002
2494. #define EDS_ROTATEDMODE 0x00000004
2495. #define EDD_GET_DEVICE_INTERFACE_NAME 0x00000001
2496. #define FKF_FILTERKEYSON 0x00000001
2497. #define FKF_AVAILABLE 0x00000002
2498. #define FKF_HOTKEYACTIVE 0x00000004
2499. #define FKF_CONFIRMHOTKEY 0x00000008
2500. #define FKF_HOTKEYSOUND 0x00000010
2501. #define FKF_INDICATOR 0x00000020
2502. #define FKF_CLICKON 0x00000040
2503. #define SKF_STICKYKEYSON 0x00000001
2504. #define SKF_AVAILABLE 0x00000002
2505. #define SKF_HOTKEYACTIVE 0x00000004
2506. #define SKF_CONFIRMHOTKEY 0x00000008
2507. #define SKF_HOTKEYSOUND 0x00000010
2508. #define SKF_INDICATOR 0x00000020
2509. #define SKF_AUDIBLEFEEDBACK 0x00000040
2510. #define SKF_TRISTATE 0x00000080
2511. #define SKF_TWOKEYSOFF 0x00000100
2512. #define SKF_LALTLATCHED 0x10000000
2513. #define SKF_LCTLLATCHED 0x04000000
2514. #define SKF_LSHIFTLATCHED 0x01000000
2515. #define SKF_RALTLATCHED 0x20000000
2516. #define SKF_RCTLLATCHED 0x08000000
2517. #define SKF_RSHIFTLATCHED 0x02000000
2518. #define SKF_LWINLATCHED 0x40000000
2519. #define SKF_RWINLATCHED 0x80000000
2520. #define SKF_LALTLOCKED 0x00100000
2521. #define SKF_LCTLLOCKED 0x00040000
2522. #define SKF_LSHIFTLOCKED 0x00010000
2523. #define SKF_RALTLOCKED 0x00200000
2524. #define SKF_RCTLLOCKED 0x00080000
2525. #define SKF_RSHIFTLOCKED 0x00020000
2526. #define SKF_LWINLOCKED 0x00400000
2527. #define SKF_RWINLOCKED 0x00800000
2528. #define MKF_MOUSEKEYSON 0x00000001
2529. #define MKF_AVAILABLE 0x00000002
2530. #define MKF_HOTKEYACTIVE 0x00000004
2531. #define MKF_CONFIRMHOTKEY 0x00000008
2532. #define MKF_HOTKEYSOUND 0x00000010
2533. #define MKF_INDICATOR 0x00000020
2534. #define MKF_MODIFIERS 0x00000040
2535. #define MKF_REPLACENUMBERS 0x00000080
2536. #define MKF_LEFTBUTTONSEL 0x10000000
2537. #define MKF_RIGHTBUTTONSEL 0x20000000
2538. #define MKF_LEFTBUTTONDOWN 0x01000000
2539. #define MKF_RIGHTBUTTONDOWN 0x02000000
2540. #define MKF_MOUSEMODE 0x80000000
2541. #define ATF_TIMEOUTON 0x00000001
2542. #define ATF_ONOFFFEEDBACK 0x00000002
2543. #define SSGF_NONE 0
2544. #define SSGF_DISPLAY 3
2545. #define SSTF_NONE 0
2546. #define SSTF_CHARS 1
2547. #define SSTF_BORDER 2
2548. #define SSTF_DISPLAY 3
2549. #define SSWF_NONE 0
2550. #define SSWF_TITLE 1
2551. #define SSWF_WINDOW 2
2552. #define SSWF_DISPLAY 3
2553. #define SSWF_CUSTOM 4
2554. #define SSF_SOUNDSENTRYON 0x00000001
2555. #define SSF_AVAILABLE 0x00000002
2556. #define SSF_INDICATOR 0x00000004
2557. #define TKF_TOGGLEKEYSON 0x00000001
2558. #define TKF_AVAILABLE 0x00000002
2559. #define TKF_HOTKEYACTIVE 0x00000004
2560. #define TKF_CONFIRMHOTKEY 0x00000008
2561. #define TKF_HOTKEYSOUND 0x00000010
2562. #define TKF_INDICATOR 0x00000020
2563. #define SLE_ERROR 0x00000001
2564. #define SLE_MINORERROR 0x00000002
2565. #define SLE_WARNING 0x00000003
2566. #define MONITOR_DEFAULTTONULL 0x00000000
2567. #define MONITOR_DEFAULTTOPRIMARY 0x00000001
2568. #define MONITOR_DEFAULTTONEAREST 0x00000002
2569. #define MONITORINFOF_PRIMARY 0x00000001
2570. #define CCHDEVICENAME 32
2571. #define GetMonitorInfo GetMonitorInfoW
2572. #define GetMonitorInfo GetMonitorInfoA
2573. #define WINEVENT_OUTOFCONTEXT 0x0000 // Events are ASYNC
2574. #define WINEVENT_SKIPOWNTHREAD 0x0001 // Don‘t call back for events on installer‘s thread
2575. #define WINEVENT_SKIPOWNPROCESS 0x0002 // Don‘t call back for events on installer‘s process
2576. #define WINEVENT_INCONTEXT 0x0004 // Events are SYNC, this causes your dll to be injected into every process
2577. #define CHILDID_SELF 0
2578. #define INDEXID_OBJECT 0
2579. #define INDEXID_CONTAINER 0
2580. #define OBJID_WINDOW ((LONG)0x00000000)
2581. #define OBJID_SYSMENU ((LONG)0xFFFFFFFF)
2582. #define OBJID_TITLEBAR ((LONG)0xFFFFFFFE)
2583. #define OBJID_MENU ((LONG)0xFFFFFFFD)
2584. #define OBJID_CLIENT ((LONG)0xFFFFFFFC)
2585. #define OBJID_VSCROLL ((LONG)0xFFFFFFFB)
2586. #define OBJID_HSCROLL ((LONG)0xFFFFFFFA)
2587. #define OBJID_SIZEGRIP ((LONG)0xFFFFFFF9)
2588. #define OBJID_CARET ((LONG)0xFFFFFFF8)
2589. #define OBJID_CURSOR ((LONG)0xFFFFFFF7)
2590. #define OBJID_ALERT ((LONG)0xFFFFFFF6)
2591. #define OBJID_SOUND ((LONG)0xFFFFFFF5)
2592. #define OBJID_QUERYCLASSNAMEIDX ((LONG)0xFFFFFFF4)
2593. #define OBJID_NATIVEOM ((LONG)0xFFFFFFF0)
2594. #define EVENT_MIN 0x00000001
2595. #define EVENT_MAX 0x7FFFFFFF
2596. #define EVENT_SYSTEM_SOUND 0x0001
2597. #define EVENT_SYSTEM_ALERT 0x0002
2598. #define EVENT_SYSTEM_FOREGROUND 0x0003
2599. #define EVENT_SYSTEM_MENUSTART 0x0004
2600. #define EVENT_SYSTEM_MENUEND 0x0005
2601. #define EVENT_SYSTEM_MENUPOPUPSTART 0x0006
2602. #define EVENT_SYSTEM_MENUPOPUPEND 0x0007
2603. #define EVENT_SYSTEM_CAPTURESTART 0x0008
2604. #define EVENT_SYSTEM_CAPTUREEND 0x0009
2605. #define EVENT_SYSTEM_MOVESIZESTART 0x000A
2606. #define EVENT_SYSTEM_MOVESIZEEND 0x000B
2607. #define EVENT_SYSTEM_CONTEXTHELPSTART 0x000C
2608. #define EVENT_SYSTEM_CONTEXTHELPEND 0x000D
2609. #define EVENT_SYSTEM_DRAGDROPSTART 0x000E
2610. #define EVENT_SYSTEM_DRAGDROPEND 0x000F
2611. #define EVENT_SYSTEM_DIALOGSTART 0x0010
2612. #define EVENT_SYSTEM_DIALOGEND 0x0011
2613. #define EVENT_SYSTEM_SCROLLINGSTART 0x0012
2614. #define EVENT_SYSTEM_SCROLLINGEND 0x0013
2615. #define EVENT_SYSTEM_SWITCHSTART 0x0014
2616. #define EVENT_SYSTEM_SWITCHEND 0x0015
2617. #define EVENT_SYSTEM_MINIMIZESTART 0x0016
2618. #define EVENT_SYSTEM_MINIMIZEEND 0x0017
2619. #define EVENT_SYSTEM_DESKTOPSWITCH 0x0020
2620. #define EVENT_SYSTEM_SWITCHER_APPGRABBED 0x0024
2621. #define EVENT_SYSTEM_SWITCHER_APPOVERTARGET 0x0025
2622. #define EVENT_SYSTEM_SWITCHER_APPDROPPED 0x0026
2623. #define EVENT_SYSTEM_SWITCHER_CANCELLED 0x0027
2624. #define EVENT_SYSTEM_IME_KEY_NOTIFICATION 0x0029
2625. #define EVENT_SYSTEM_END 0x00FF
2626. #define EVENT_OEM_DEFINED_START 0x0101
2627. #define EVENT_OEM_DEFINED_END 0x01FF
2628. #define EVENT_UIA_EVENTID_START 0x4E00
2629. #define EVENT_UIA_EVENTID_END 0x4EFF
2630. #define EVENT_UIA_PROPID_START 0x7500
2631. #define EVENT_UIA_PROPID_END 0x75FF
2632. #define EVENT_CONSOLE_CARET 0x4001
2633. #define EVENT_CONSOLE_UPDATE_REGION 0x4002
2634. #define EVENT_CONSOLE_UPDATE_SIMPLE 0x4003
2635. #define EVENT_CONSOLE_UPDATE_SCROLL 0x4004
2636. #define EVENT_CONSOLE_LAYOUT 0x4005
2637. #define EVENT_CONSOLE_START_APPLICATION 0x4006
2638. #define EVENT_CONSOLE_END_APPLICATION 0x4007
2639. #define CONSOLE_APPLICATION_16BIT 0x0000
2640. #define CONSOLE_APPLICATION_16BIT 0x0001
2641. #define CONSOLE_CARET_SELECTION 0x0001
2642. #define CONSOLE_CARET_VISIBLE 0x0002
2643. #define EVENT_CONSOLE_END 0x40FF
2644. #define EVENT_OBJECT_CREATE 0x8000 // hwnd + ID + idChild is created item
2645. #define EVENT_OBJECT_DESTROY 0x8001 // hwnd + ID + idChild is destroyed item
2646. #define EVENT_OBJECT_SHOW 0x8002 // hwnd + ID + idChild is shown item
2647. #define EVENT_OBJECT_HIDE 0x8003 // hwnd + ID + idChild is hidden item
2648. #define EVENT_OBJECT_REORDER 0x8004 // hwnd + ID + idChild is parent of zordering children
2649. #define EVENT_OBJECT_FOCUS 0x8005 // hwnd + ID + idChild is focused item
2650. #define EVENT_OBJECT_SELECTION 0x8006 // hwnd + ID + idChild is selected item (if only one), or idChild is OBJID_WINDOW if complex
2651. #define EVENT_OBJECT_SELECTIONADD 0x8007 // hwnd + ID + idChild is item added
2652. #define EVENT_OBJECT_SELECTIONREMOVE 0x8008 // hwnd + ID + idChild is item removed
2653. #define EVENT_OBJECT_SELECTIONWITHIN 0x8009 // hwnd + ID + idChild is parent of changed selected items
2654. #define EVENT_OBJECT_STATECHANGE 0x800A // hwnd + ID + idChild is item w/ state change
2655. #define EVENT_OBJECT_LOCATIONCHANGE 0x800B // hwnd + ID + idChild is moved/sized item
2656. #define EVENT_OBJECT_NAMECHANGE 0x800C // hwnd + ID + idChild is item w/ name change
2657. #define EVENT_OBJECT_DESCRIPTIONCHANGE 0x800D // hwnd + ID + idChild is item w/ desc change
2658. #define EVENT_OBJECT_VALUECHANGE 0x800E // hwnd + ID + idChild is item w/ value change
2659. #define EVENT_OBJECT_PARENTCHANGE 0x800F // hwnd + ID + idChild is item w/ new parent
2660. #define EVENT_OBJECT_HELPCHANGE 0x8010 // hwnd + ID + idChild is item w/ help change
2661. #define EVENT_OBJECT_DEFACTIONCHANGE 0x8011 // hwnd + ID + idChild is item w/ def action change
2662. #define EVENT_OBJECT_ACCELERATORCHANGE 0x8012 // hwnd + ID + idChild is item w/ keybd accel change
2663. #define EVENT_OBJECT_INVOKED 0x8013 // hwnd + ID + idChild is item invoked
2664. #define EVENT_OBJECT_TEXTSELECTIONCHANGED 0x8014 // hwnd + ID + idChild is item w? test selection change
2665. #define EVENT_OBJECT_CONTENTSCROLLED 0x8015
2666. #define EVENT_SYSTEM_ARRANGMENTPREVIEW 0x8016
2667. #define EVENT_OBJECT_CLOAKED 0x8017
2668. #define EVENT_OBJECT_UNCLOAKED 0x8018
2669. #define EVENT_OBJECT_LIVEREGIONCHANGED 0x8019
2670. #define EVENT_OBJECT_HOSTEDOBJECTSINVALIDATED 0x8020
2671. #define EVENT_OBJECT_DRAGSTART 0x8021
2672. #define EVENT_OBJECT_DRAGCANCEL 0x8022
2673. #define EVENT_OBJECT_DRAGCOMPLETE 0x8023
2674. #define EVENT_OBJECT_DRAGENTER 0x8024
2675. #define EVENT_OBJECT_DRAGLEAVE 0x8025
2676. #define EVENT_OBJECT_DRAGDROPPED 0x8026
2677. #define EVENT_OBJECT_IME_SHOW 0x8027
2678. #define EVENT_OBJECT_IME_HIDE 0x8028
2679. #define EVENT_OBJECT_IME_CHANGE 0x8029
2680. #define EVENT_OBJECT_TEXTEDIT_CONVERSIONTARGETCHANGED 0x8030
2681. #define EVENT_OBJECT_END 0x80FF
2682. #define EVENT_AIA_START 0xA000
2683. #define EVENT_AIA_END 0xAFFF
2684. #define SOUND_SYSTEM_STARTUP 1
2685. #define SOUND_SYSTEM_SHUTDOWN 2
2686. #define SOUND_SYSTEM_BEEP 3
2687. #define SOUND_SYSTEM_ERROR 4
2688. #define SOUND_SYSTEM_QUESTION 5
2689. #define SOUND_SYSTEM_WARNING 6
2690. #define SOUND_SYSTEM_INFORMATION 7
2691. #define SOUND_SYSTEM_MAXIMIZE 8
2692. #define SOUND_SYSTEM_MINIMIZE 9
2693. #define SOUND_SYSTEM_RESTOREUP 10
2694. #define SOUND_SYSTEM_RESTOREDOWN 11
2695. #define SOUND_SYSTEM_APPSTART 12
2696. #define SOUND_SYSTEM_FAULT 13
2697. #define SOUND_SYSTEM_APPEND 14
2698. #define SOUND_SYSTEM_MENUCOMMAND 15
2699. #define SOUND_SYSTEM_MENUPOPUP 16
2700. #define CSOUND_SYSTEM 16
2701. #define ALERT_SYSTEM_INFORMATIONAL 1 // MB_INFORMATION
2702. #define ALERT_SYSTEM_WARNING 2 // MB_WARNING
2703. #define ALERT_SYSTEM_ERROR 3 // MB_ERROR
2704. #define ALERT_SYSTEM_QUERY 4 // MB_QUESTION
2705. #define ALERT_SYSTEM_CRITICAL 5 // HardSysErrBox
2706. #define CALERT_SYSTEM 6
2707. #define GUI_CARETBLINKING 0x00000001
2708. #define GUI_INMOVESIZE 0x00000002
2709. #define GUI_INMENUMODE 0x00000004
2710. #define GUI_SYSTEMMENUMODE 0x00000008
2711. #define GUI_POPUPMENUMODE 0x00000010
2712. #define GUI_16BITTASK 0x00000000
2713. #define GUI_16BITTASK 0x00000020
2714. #define USER_DEFAULT_SCREEN_DPI 96
2715. #define GetWindowModuleFileName GetWindowModuleFileNameW
2716. #define GetWindowModuleFileName GetWindowModuleFileNameA
2717. #define STATE_SYSTEM_UNAVAILABLE 0x00000001 // Disabled
2718. #define STATE_SYSTEM_SELECTED 0x00000002
2719. #define STATE_SYSTEM_FOCUSED 0x00000004
2720. #define STATE_SYSTEM_PRESSED 0x00000008
2721. #define STATE_SYSTEM_CHECKED 0x00000010
2722. #define STATE_SYSTEM_MIXED 0x00000020 // 3-state checkbox or toolbar button
2723. #define STATE_SYSTEM_INDETERMINATE STATE_SYSTEM_MIXED
2724. #define STATE_SYSTEM_READONLY 0x00000040
2725. #define STATE_SYSTEM_HOTTRACKED 0x00000080
2726. #define STATE_SYSTEM_DEFAULT 0x00000100
2727. #define STATE_SYSTEM_EXPANDED 0x00000200
2728. #define STATE_SYSTEM_COLLAPSED 0x00000400
2729. #define STATE_SYSTEM_BUSY 0x00000800
2730. #define STATE_SYSTEM_FLOATING 0x00001000 // Children "owned" not "contained" by parent
2731. #define STATE_SYSTEM_MARQUEED 0x00002000
2732. #define STATE_SYSTEM_ANIMATED 0x00004000
2733. #define STATE_SYSTEM_INVISIBLE 0x00008000
2734. #define STATE_SYSTEM_OFFSCREEN 0x00010000
2735. #define STATE_SYSTEM_SIZEABLE 0x00020000
2736. #define STATE_SYSTEM_MOVEABLE 0x00040000
2737. #define STATE_SYSTEM_SELFVOICING 0x00080000
2738. #define STATE_SYSTEM_FOCUSABLE 0x00100000
2739. #define STATE_SYSTEM_SELECTABLE 0x00200000
2740. #define STATE_SYSTEM_LINKED 0x00400000
2741. #define STATE_SYSTEM_TRAVERSED 0x00800000
2742. #define STATE_SYSTEM_MULTISELECTABLE 0x01000000 // Supports multiple selection
2743. #define STATE_SYSTEM_EXTSELECTABLE 0x02000000 // Supports extended selection
2744. #define STATE_SYSTEM_ALERT_LOW 0x04000000 // This information is of low priority
2745. #define STATE_SYSTEM_ALERT_MEDIUM 0x08000000 // This information is of medium priority
2746. #define STATE_SYSTEM_ALERT_HIGH 0x10000000 // This information is of high priority
2747. #define STATE_SYSTEM_PROTECTED 0x20000000 // access to this is restricted
2748. #define STATE_SYSTEM_VALID 0x3FFFFFFF
2749. #define CCHILDREN_TITLEBAR 5
2750. #define CCHILDREN_SCROLLBAR 5
2751. #define CURSOR_SHOWING 0x00000001
2752. #define CURSOR_SUPPRESSED 0x00000002
2753. #define WS_ACTIVECAPTION 0x0001
2754. #define GA_PARENT 1
2755. #define GA_ROOT 2
2756. #define GA_ROOTOWNER 3
2757. #define GET_RAWINPUT_CODE_WPARAM(wParam) ((wParam) & 0xff)
2758. #define RIM_INPUT 0
2759. #define RIM_INPUTSINK 1
2760. #define RIM_TYPEMOUSE 0
2761. #define RIM_TYPEKEYBOARD 1
2762. #define RIM_TYPEHID 2
2763. #define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001 // Left Button changed to down.
2764. #define RI_MOUSE_LEFT_BUTTON_UP 0x0002 // Left Button changed to up.
2765. #define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004 // Right Button changed to down.
2766. #define RI_MOUSE_RIGHT_BUTTON_UP 0x0008 // Right Button changed to up.
2767. #define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010 // Middle Button changed to down.
2768. #define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020 // Middle Button changed to up.
2769. #define RI_MOUSE_BUTTON_4_DOWN 0x0040
2770. #define RI_MOUSE_BUTTON_4_UP 0x0080
2771. #define RI_MOUSE_BUTTON_5_DOWN 0x0100
2772. #define RI_MOUSE_BUTTON_5_UP 0x0200
2773. #define RI_MOUSE_WHEEL 0x0400
2774. #define MOUSE_MOVE_RELATIVE 0
2775. #define MOUSE_MOVE_ABSOLUTE 1
2776. #define MOUSE_VIRTUAL_DESKTOP 0x02 // the coordinates are mapped to the virtual desktop
2777. #define MOUSE_ATTRIBUTES_CHANGED 0x04 // requery for mouse attributes
2778. #define MOUSE_MOVE_NOCOALESCE 0x08 // do not coalesce mouse moves
2779. #define KEYBOARD_OVERRUN_MAKE_CODE 0xFF
2780. #define RI_KEY_MAKE 0
2781. #define RI_KEY_BREAK 1
2782. #define RI_KEY_E0 2
2783. #define RI_KEY_E1 4
2784. #define RI_KEY_TERMSRV_SET_LED 8
2785. #define RI_KEY_TERMSRV_SHADOW 0x10
2786. #define RAWINPUT_ALIGN(x) (((x) + sizeof(QWORD) - 1) & ~(sizeof(QWORD) - 1))
2787. #define RAWINPUT_ALIGN(x) (((x) + sizeof(DWORD) - 1) & ~(sizeof(DWORD) - 1))
2788. #define RID_INPUT 0x10000003
2789. #define RID_HEADER 0x10000005
2790. #define RIDI_PREPARSEDDATA 0x20000005
2791. #define RIDI_DEVICENAME 0x20000007 // the return valus is the character length, not the byte size
2792. #define RIDI_DEVICEINFO 0x2000000b
2793. #define RIDEV_REMOVE 0x00000001
2794. #define RIDEV_EXCLUDE 0x00000010
2795. #define RIDEV_PAGEONLY 0x00000020
2796. #define RIDEV_NOLEGACY 0x00000030
2797. #define RIDEV_INPUTSINK 0x00000100
2798. #define RIDEV_CAPTUREMOUSE 0x00000200 // effective when mouse nolegacy is specified, otherwise it would be an error
2799. #define RIDEV_NOHOTKEYS 0x00000200 // effective for keyboard.
2800. #define RIDEV_APPKEYS 0x00000400 // effective for keyboard.
2801. #define RIDEV_EXINPUTSINK 0x00001000
2802. #define RIDEV_DEVNOTIFY 0x00002000
2803. #define RIDEV_EXMODEMASK 0x000000F0
2804. #define RIDEV_EXMODE(mode) ((mode) & RIDEV_EXMODEMASK)
2805. #define GIDC_ARRIVAL 1
2806. #define GIDC_REMOVAL 2
2807. #define POINTER_DEVICE_PRODUCT_STRING_MAX 520
2808. #define PDC_ARRIVAL 0x001
2809. #define PDC_REMOVAL 0x002
2810. #define PDC_ORIENTATION_0 0x004
2811. #define PDC_ORIENTATION_90 0x008
2812. #define PDC_ORIENTATION_180 0x010
2813. #define PDC_ORIENTATION_270 0x020
2814. #define PDC_MODE_DEFAULT 0x040
2815. #define PDC_MODE_CENTERED 0x080
2816. #define PDC_MAPPING_CHANGE 0x100
2817. #define PDC_RESOLUTION 0x200
2818. #define PDC_ORIGIN 0x400
2819. #define PDC_MODE_ASPECTRATIOPRESERVED 0x800
2820. #define MSGFLT_ADD 1
2821. #define MSGFLT_REMOVE 2
2822. #define MSGFLTINFO_NONE (0)
2823. #define MSGFLTINFO_ALREADYALLOWED_FORWND (1)
2824. #define MSGFLTINFO_ALREADYDISALLOWED_FORWND (2)
2825. #define MSGFLTINFO_ALLOWED_HIGHER (3)
2826. #define MSGFLT_RESET (0)
2827. #define MSGFLT_ALLOW (1)
2828. #define MSGFLT_DISALLOW (2)
2829. #define GF_BEGIN 0x00000001
2830. #define GF_INERTIA 0x00000002
2831. #define GF_END 0x00000004
2832. #define GID_BEGIN 1
2833. #define GID_END 2
2834. #define GID_ZOOM 3
2835. #define GID_PAN 4
2836. #define GID_ROTATE 5
2837. #define GID_TWOFINGERTAP 6
2838. #define GID_PRESSANDTAP 7
2839. #define GID_ROLLOVER GID_PRESSANDTAP
2840. #define GID_ROTATE_ANGLE_TO_ARGUMENT(_arg_) ((USHORT)((((_arg_) + 2.0 * 3.14159265) / (4.0 * 3.14159265)) * 65535.0))
2841. #define GID_ROTATE_ANGLE_FROM_ARGUMENT(_arg_) ((((double)(_arg_) / 65535.0) * 4.0 * 3.14159265) - 2.0 * 3.14159265)
2842. #define GC_ALLGESTURES 0x00000001
2843. #define GC_ZOOM 0x00000001
2844. #define GC_PAN 0x00000001
2845. #define GC_PAN_WITH_SINGLE_FINGER_VERTICALLY 0x00000002
2846. #define GC_PAN_WITH_SINGLE_FINGER_HORIZONTALLY 0x00000004
2847. #define GC_PAN_WITH_GUTTER 0x00000008
2848. #define GC_PAN_WITH_INERTIA 0x00000010
2849. #define GC_ROTATE 0x00000001
2850. #define GC_TWOFINGERTAP 0x00000001
2851. #define GC_PRESSANDTAP 0x00000001
2852. #define GC_ROLLOVER GC_PRESSANDTAP
2853. #define GESTURECONFIGMAXCOUNT 256 // Maximum number of gestures that can be included
2854. #define GCF_INCLUDE_ANCESTORS 0x00000001 // If specified, GetGestureConfig returns consolidated configuration
2855. #define NID_INTEGRATED_TOUCH 0x00000001
2856. #define NID_EXTERNAL_TOUCH 0x00000002
2857. #define NID_INTEGRATED_PEN 0x00000004
2858. #define NID_EXTERNAL_PEN 0x00000008
2859. #define NID_MULTI_INPUT 0x00000040
2860. #define NID_READY 0x00000080
2861. #define MAX_STR_BLOCKREASON 256
WINAPI 变量(2861个)