source: trunk/include/winconst.h@ 10316

Last change on this file since 10316 was 10316, checked in by sandervl, 22 years ago

Visible & Clip region changes

File size: 80.2 KB
RevLine 
[7194]1#ifndef __WINCONST_H__
2#define __WINCONST_H__
3
[602]4/* Predefined resources */
5#define IDI_APPLICATION_W 32512
6#define IDI_HAND_W 32513
7#define IDI_QUESTION_W 32514
8#define IDI_EXCLAMATION_W 32515
9#define IDI_ASTERISK_W 32516
10#define IDI_WINLOGO_W 32517
11
12#define IDC_ARROW_W 32512
13#define IDC_IBEAM_W 32513
14#define IDC_WAIT_W 32514
15#define IDC_CROSS_W 32515
16#define IDC_UPARROW_W 32516
17#define IDC_SIZE_W 32640
18#define IDC_ICON_W 32641
19#define IDC_SIZENWSE_W 32642
20#define IDC_SIZENESW_W 32643
21#define IDC_SIZEWE_W 32644
22#define IDC_SIZENS_W 32645
23#define IDC_SIZEALL_W 32646
24#define IDC_NO_W 32648
25#define IDC_APPSTARTING_W 32650
26#define IDC_HELP_W 32651
27
28
29#define OBM_CLOSE_W 32754
30#define OBM_UPARROW_W 32753
31#define OBM_DNARROW_W 32752
32#define OBM_RGARROW_W 32751
33#define OBM_LFARROW_W 32750
34#define OBM_REDUCE_W 32749
35#define OBM_ZOOM_W 32748
36#define OBM_RESTORE_W 32747
37#define OBM_REDUCED_W 32746
38#define OBM_ZOOMD_W 32745
39#define OBM_RESTORED_W 32744
40#define OBM_UPARROWD_W 32743
41#define OBM_DNARROWD_W 32742
42#define OBM_RGARROWD_W 32741
43#define OBM_LFARROWD_W 32740
44#define OBM_MNARROW_W 32739
45#define OBM_COMBO_W 32738
46#define OBM_UPARROWI_W 32737
47#define OBM_DNARROWI_W 32736
48#define OBM_RGARROWI_W 32735
49#define OBM_LFARROWI_W 32734
50
51#define OBM_OLD_CLOSE_W 32767
52#define OBM_SIZE_W 32766
53#define OBM_OLD_UPARROW_W 32765
54#define OBM_OLD_DNARROW_W 32764
55#define OBM_OLD_RGARROW_W 32763
56#define OBM_OLD_LFARROW_W 32762
57#define OBM_BTSIZE_W 32761
58#define OBM_CHECK_W 32760
59#define OBM_CHECKBOXES_W 32759
60#define OBM_BTNCORNERS_W 32758
61#define OBM_OLD_REDUCE_W 32757
62#define OBM_OLD_ZOOM_W 32756
63#define OBM_OLD_RESTORE_W 32755
64
65/* Window Styles */
66#define WS_OVERLAPPED_W 0x00000000L
67#define WS_POPUP_W 0x80000000L
68#define WS_CHILD_W 0x40000000L
69#define WS_MINIMIZE_W 0x20000000L
70#define WS_VISIBLE_W 0x10000000L
71#define WS_DISABLED_W 0x08000000L
72#define WS_CLIPSIBLINGS_W 0x04000000L
73#define WS_CLIPCHILDREN_W 0x02000000L
74#define WS_MAXIMIZE_W 0x01000000L
75#define WS_CAPTION_W 0x00C00000L
76#define WS_BORDER_W 0x00800000L
77#define WS_DLGFRAME_W 0x00400000L
78#define WS_VSCROLL_W 0x00200000L
79#define WS_HSCROLL_W 0x00100000L
80#define WS_SYSMENU_W 0x00080000L
81#define WS_THICKFRAME_W 0x00040000L
82#define WS_GROUP_W 0x00020000L
83#define WS_TABSTOP_W 0x00010000L
84#define WS_MINIMIZEBOX_W 0x00020000L
85#define WS_MAXIMIZEBOX_W 0x00010000L
[1344]86#define WS_TILED_W WS_OVERLAPPED_W
87#define WS_ICONIC_W WS_MINIMIZE_W
88#define WS_SIZEBOX_W WS_THICKFRAME_W
89#define WS_OVERLAPPEDWINDOW_W (WS_OVERLAPPED_W | WS_CAPTION_W | WS_SYSMENU_W | WS_THICKFRAME_W| WS_MINIMIZEBOX_W | WS_MAXIMIZEBOX_W)
90#define WS_POPUPWINDOW_W (WS_POPUP_W | WS_BORDER_W | WS_SYSMENU_W)
91#define WS_CHILDWINDOW_W (WS_CHILD_W)
92#define WS_TILEDWINDOW_W (WS_OVERLAPPEDWINDOW_W)
[602]93
94/* Window extended styles */
95#define WS_EX_DLGMODALFRAME_W 0x00000001L
96#define WS_EX_DRAGDETECT_W 0x00000002L
97#define WS_EX_NOPARENTNOTIFY_W 0x00000004L
98#define WS_EX_TOPMOST_W 0x00000008L
99#define WS_EX_ACCEPTFILES_W 0x00000010L
100#define WS_EX_TRANSPARENT_W 0x00000020L
[1045]101#define WS_EX_MDICHILD_W 0x00000040L
102#define WS_EX_TOOLWINDOW_W 0x00000080L
103#define WS_EX_WINDOWEDGE_W 0x00000100L
104#define WS_EX_CLIENTEDGE_W 0x00000200L
105#define WS_EX_CONTEXTHELP_W 0x00000400L
106#define WS_EX_RIGHT_W 0x00001000L
107#define WS_EX_LEFT_W 0x00000000L
108#define WS_EX_RTLREADING_W 0x00002000L
109#define WS_EX_LTRREADING_W 0x00000000L
110#define WS_EX_LEFTSCROLLBAR_W 0x00004000L
111#define WS_EX_RIGHTSCROLLBAR_W 0x00000000L
112#define WS_EX_CONTROLPARENT_W 0x00010000L
113#define WS_EX_STATICEDGE_W 0x00020000L
114#define WS_EX_APPWINDOW_W 0x00040000L
[689]115
[1045]116#define WS_EX_OVERLAPPEDWINDOW_W (WS_EX_WINDOWEDGE_W|WS_EX_CLIENTEDGE_W)
117#define WS_EX_PALETTEWINDOW_W (WS_EX_WINDOWEDGE_W|WS_EX_TOOLWINDOW_W|WS_EX_TOPMOST_W)
118
[727]119/* Class Styles
120 */
121 #define CS_VREDRAW_W 0x0001
122 #define CS_HREDRAW_W 0x0002
123 #define CS_KEYCVTWINDOW_W 0x0004
124 #define CS_DBLCLKS_W 0x0008
125 #define CS_OWNDC_W 0x0020
126 #define CS_CLASSDC_W 0x0040
127 #define CS_PARENTDC_W 0x0080
128 #define CS_NOKEYCVT_W 0x0100
129 #define CS_NOCLOSE_W 0x0200
130 #define CS_SAVEBITS_W 0x0800
131 #define CS_BYTEALIGNCLIENT_W 0x1000
132 #define CS_BYTEALIGNWINDOW_W 0x2000
133 #define CS_GLOBALCLASS_W 0x4000
[689]134
[9652]135#define DUPLICATE_CLOSE_SOURCE_W 0x00000001
136#define DUPLICATE_SAME_ACCESS_W 0x00000002
[689]137
[9652]138#define HANDLE_FLAG_INHERIT_W 0x00000001
139#define HANDLE_FLAG_PROTECT_FROM_CLOSE_W 0x00000002
[698]140
141/* SetWindowPos() and WINDOWPOS flags */
142#define SWP_NOSIZE_W 0x0001
143#define SWP_NOMOVE_W 0x0002
144#define SWP_NOZORDER_W 0x0004
145#define SWP_NOREDRAW_W 0x0008
146#define SWP_NOACTIVATE_W 0x0010
147#define SWP_FRAMECHANGED_W 0x0020 /* The frame changed: send WM_NCCALCSIZE */
148#define SWP_SHOWWINDOW_W 0x0040
149#define SWP_HIDEWINDOW_W 0x0080
150#define SWP_NOCOPYBITS_W 0x0100
151#define SWP_NOOWNERZORDER_W 0x0200 /* Don't do owner Z ordering */
152
153#define SWP_DRAWFRAME_W SWP_FRAMECHANGED_W
154#define SWP_NOREPOSITION_W SWP_NOOWNERZORDER_W
155
156#define SWP_NOSENDCHANGING_W 0x0400
157#define SWP_DEFERERASE_W 0x2000
158
159/* undocumented SWP flags - from SDK 3.1 */
160#define SWP_NOCLIENTSIZE_W 0x0800
161#define SWP_NOCLIENTMOVE_W 0x1000
162
163#define HWND_DESKTOP_W ((HWND)0)
164#define HWND_BROADCAST_W ((HWND)0xffff)
165
166/* SetWindowPos() hwndInsertAfter field values */
167#define HWND_TOP_W ((HWND)0)
168#define HWND_BOTTOM_W ((HWND)1)
169#define HWND_TOPMOST_W ((HWND)-1)
170#define HWND_NOTOPMOST_W ((HWND)-2)
171
[738]172
173/* Argument 1 passed to the DllEntryProc. */
[902]174#define DLL_PROCESS_DETACH 0 /* detach process (unload library) */
175#define DLL_PROCESS_ATTACH 1 /* attach process (load library) */
176#define DLL_THREAD_ATTACH 2 /* attach new thread */
177#define DLL_THREAD_DETACH 3 /* detach thread */
178
[953]179/* ShowWindow() codes */
180#define SW_HIDE_W 0
181#define SW_SHOWNORMAL_W 1
182#define SW_NORMAL_W 1
183#define SW_SHOWMINIMIZED_W 2
184#define SW_SHOWMAXIMIZED_W 3
185#define SW_MAXIMIZE_W 3
186#define SW_SHOWNOACTIVATE_W 4
187#define SW_SHOW_W 5
188#define SW_MINIMIZE_W 6
189#define SW_SHOWMINNOACTIVE_W 7
190#define SW_SHOWNA_W 8
191#define SW_RESTORE_W 9
192#define SW_SHOWDEFAULT_W 10
193#define SW_MAX_W 10
194#define SW_NORMALNA_W 0xCC /* undoc. flag in MinMaximize */
[1056]195
196
197/* scroll messages */
198#define WM_HSCROLL_W 0x0114
199#define WM_VSCROLL_W 0x0115
200
201/* WM_H/VSCROLL commands */
202#define SB_LINEUP_W 0
203#define SB_LINELEFT_W 0
204#define SB_LINEDOWN_W 1
205#define SB_LINERIGHT_W 1
206#define SB_PAGEUP_W 2
207#define SB_PAGELEFT_W 2
208#define SB_PAGEDOWN_W 3
209#define SB_PAGERIGHT_W 3
210#define SB_THUMBPOSITION_W 4
211#define SB_THUMBTRACK_W 5
212#define SB_TOP_W 6
213#define SB_LEFT_W 6
214#define SB_BOTTOM_W 7
215#define SB_RIGHT_W 7
216#define SB_ENDSCROLL_W 8
[1067]217
218/* WM_SYSCOMMAND parameters */
219#define SC_SIZE_W 0xf000
220#define SC_MOVE_W 0xf010
221#define SC_MINIMIZE_W 0xf020
222#define SC_MAXIMIZE_W 0xf030
223#define SC_NEXTWINDOW_W 0xf040
224#define SC_PREVWINDOW_W 0xf050
225#define SC_CLOSE_W 0xf060
226#define SC_VSCROLL_W 0xf070
227#define SC_HSCROLL_W 0xf080
228#define SC_MOUSEMENU_W 0xf090
229#define SC_KEYMENU_W 0xf100
230#define SC_ARRANGE_W 0xf110
231#define SC_RESTORE_W 0xf120
232#define SC_TASKLIST_W 0xf130
233#define SC_SCREENSAVE_W 0xf140
234#define SC_HOTKEY_W 0xf150
[1631]235
236/* Key status flags for mouse events */
237#define MK_LBUTTON_W 0x0001
238#define MK_RBUTTON_W 0x0002
239#define MK_SHIFT_W 0x0004
240#define MK_CONTROL_W 0x0008
241#define MK_MBUTTON_W 0x0010
[1854]242
243
244/* Queue status flags */
245#define QS_KEY_W 0x0001
246#define QS_MOUSEMOVE_W 0x0002
247#define QS_MOUSEBUTTON_W 0x0004
248#define QS_MOUSE_W (QS_MOUSEMOVE_W | QS_MOUSEBUTTON_W)
249#define QS_POSTMESSAGE_W 0x0008
250#define QS_TIMER_W 0x0010
251#define QS_PAINT_W 0x0020
252#define QS_SENDMESSAGE_W 0x0040
253#define QS_HOTKEY_W 0x0080
254#define QS_INPUT_W (QS_MOUSE_W | QS_KEY_W)
255#define QS_ALLEVENTS_W (QS_INPUT_W | QS_POSTMESSAGE_W | QS_TIMER_W | QS_PAINT_W | QS_HOTKEY_W)
256#define QS_ALLINPUT_W (QS_ALLEVENTS_W | QS_SENDMESSAGE_W)
[2078]257
258
[2081]259 /* Hook values */
260#define WH_MIN_W (-1)
261#define WH_MSGFILTER_W (-1)
262#define WH_JOURNALRECORD_W 0
263#define WH_JOURNALPLAYBACK_W 1
264#define WH_KEYBOARD_W 2
265#define WH_GETMESSAGE_W 3
266#define WH_CALLWNDPROC_W 4
267#define WH_CBT_W 5
268#define WH_SYSMSGFILTER_W 6
269#define WH_MOUSE_W 7
270#define WH_HARDWARE_W 8
271#define WH_DEBUG_W 9
272#define WH_SHELL_W 10
273#define WH_FOREGROUNDIDLE_W 11
274#define WH_CALLWNDPROCRET_W 12
[6898]275#define WH_KEYBOARD_LL 13
276#define WH_MOUSE_LL 14
277#define WH_MAX_W 14
[2081]278
279#define WH_MINHOOK_W WH_MIN_W
280#define WH_MAXHOOK_W WH_MAX_W
281#ifndef WH_NB_HOOKS
282#define WH_NB_HOOKS (WH_MAXHOOK_W-WH_MINHOOK_W+1)
283#endif
[2094]284
[8345]285/* Hook action codes */
286#define HC_ACTION 0
287#define HC_GETNEXT 1
288#define HC_SKIP 2
289#define HC_NOREMOVE 3
290#define HC_NOREM HC_NOREMOVE
291#define HC_SYSMODALON 4
292#define HC_SYSMODALOFF 5
293
[2094]294#define EXCEPTION_DEBUG_EVENT 1
295#define CREATE_THREAD_DEBUG_EVENT 2
296#define CREATE_PROCESS_DEBUG_EVENT 3
297#define EXIT_THREAD_DEBUG_EVENT 4
298#define EXIT_PROCESS_DEBUG_EVENT 5
299#define LOAD_DLL_DEBUG_EVENT 6
300#define UNLOAD_DLL_DEBUG_EVENT 7
301#define OUTPUT_DEBUG_STRING_EVENT 8
302#define RIP_EVENT 9
[2196]303
304/* WM_ACTIVATE wParam values */
305#define WA_INACTIVE_W 0
306#define WA_ACTIVE_W 1
307#define WA_CLICKACTIVE_W 2
308
309
310/* WM_NCHITTEST return codes */
311#define HTERROR_W (-2)
312#define HTTRANSPARENT_W (-1)
313#define HTNOWHERE_W 0
314#define HTCLIENT_W 1
315#define HTCAPTION_W 2
316#define HTSYSMENU_W 3
317#define HTSIZE_W 4
318#define HTMENU_W 5
319#define HTHSCROLL_W 6
320#define HTVSCROLL_W 7
321#define HTMINBUTTON_W 8
322#define HTMAXBUTTON_W 9
323#define HTLEFT_W 10
324#define HTRIGHT_W 11
325#define HTTOP_W 12
326#define HTTOPLEFT_W 13
327#define HTTOPRIGHT_W 14
328#define HTBOTTOM_W 15
329#define HTBOTTOMLEFT_W 16
330#define HTBOTTOMRIGHT_W 17
331#define HTBORDER_W 18
332#define HTGROWBOX_W HTSIZE_W
333#define HTREDUCE_W HTMINBUTTON_W
334#define HTZOOM_W HTMAXBUTTON_W
335#define HTOBJECT_W 19
336#define HTCLOSE_W 20
337#define HTHELP_W 21
338#define HTSIZEFIRST_W HTLEFT_W
339#define HTSIZELAST_W HTBOTTOMRIGHT_W
340
341
342//class styles
343#define CS_VREDRAW_W 0x0001
344#define CS_HREDRAW_W 0x0002
345#define CS_KEYCVTWINDOW_W 0x0004
346#define CS_DBLCLKS_W 0x0008
347#define CS_OWNDC_W 0x0020
348#define CS_CLASSDC_W 0x0040
349#define CS_PARENTDC_W 0x0080
350#define CS_NOKEYCVT_W 0x0100
351#define CS_NOCLOSE_W 0x0200
352#define CS_SAVEBITS_W 0x0800
353#define CS_BYTEALIGNCLIENT_W 0x1000
354#define CS_BYTEALIGNWINDOW_W 0x2000
355#define CS_GLOBALCLASS_W 0x4000
356
357
358/* Offsets for GetClassLong() and GetClassWord() */
359#define GCL_MENUNAME_W (-8)
360#define GCW_HBRBACKGROUND_W (-10)
361#define GCL_HBRBACKGROUND_W GCW_HBRBACKGROUND_W
362#define GCW_HCURSOR_W (-12)
363#define GCL_HCURSOR_W GCW_HCURSOR_W
364#define GCW_HICON_W (-14)
365#define GCL_HICON_W GCW_HICON_W
366#define GCW_HMODULE_W (-16)
367#define GCL_HMODULE_W GCW_HMODULE_W
368#define GCW_CBWNDEXTRA_W (-18)
369#define GCL_CBWNDEXTRA_W GCW_CBWNDEXTRA_W
370#define GCW_CBCLSEXTRA_W (-20)
371#define GCL_CBCLSEXTRA_W GCW_CBCLSEXTRA_W
372#define GCL_WNDPROC_W (-24)
373#define GCW_STYLE_W (-26)
374#define GCL_STYLE_W GCW_STYLE_W
375#define GCW_ATOM_W (-32)
376#define GCW_HICONSM_W (-34)
377#define GCL_HICONSM_W GCW_HICONSM_W
378
379/* PeekMessage() options */
380#define PM_NOREMOVE_W 0x0000
381#define PM_REMOVE_W 0x0001
382#define PM_NOYIELD_W 0x0002
[2281]383
384#define EXCEPTION_DEBUG_EVENT_W 1
385#define CREATE_THREAD_DEBUG_EVENT_W 2
386#define CREATE_PROCESS_DEBUG_EVENT_W 3
387#define EXIT_THREAD_DEBUG_EVENT_W 4
388#define EXIT_PROCESS_DEBUG_EVENT_W 5
389#define LOAD_DLL_DEBUG_EVENT_W 6
390#define UNLOAD_DLL_DEBUG_EVENT_W 7
391#define OUTPUT_DEBUG_STRING_EVENT_W 8
392#define RIP_EVENT_W 9
[2299]393
394//Parameters for CombineRgn
395#define RGN_AND_W 1
396#define RGN_OR_W 2
397#define RGN_XOR_W 3
398#define RGN_DIFF_W 4
399#define RGN_COPY_W 5
[2302]400
401
402#define PIPE_ACCESS_INBOUND_W 0x00000001
403#define PIPE_ACCESS_OUTBOUND_W 0x00000002
404#define PIPE_ACCESS_DUPLEX_W 0x00000003
405
406#define PIPE_WAIT_W 0x00000000
407#define PIPE_NOWAIT_W 0x00000001
408#define PIPE_READMODE_BYTE_W 0x00000000
409#define PIPE_READMODE_MESSAGE_W 0x00000002
410#define PIPE_TYPE_BYTE_W 0x00000000
411#define PIPE_TYPE_MESSAGE_W 0x00000004
412
413
414#define GENERIC_READ_W 0x80000000
415#define GENERIC_WRITE_W 0x40000000
416
417#define FILE_SHARE_READ_W 0x00000001L
418#define FILE_SHARE_WRITE_W 0x00000002L
419
420#define CREATE_NEW_W 1
421#define CREATE_ALWAYS_W 2
422#define OPEN_EXISTING_W 3
423#define OPEN_ALWAYS_W 4
424#define TRUNCATE_EXISTING_W 5
425
426#define FILE_ATTRIBUTE_READONLY_W 0x00000001L
427#define FILE_ATTRIBUTE_HIDDEN_W 0x00000002L
428#define FILE_ATTRIBUTE_SYSTEM_W 0x00000004L
429#define FILE_ATTRIBUTE_DIRECTORY_W 0x00000010L
430#define FILE_ATTRIBUTE_ARCHIVE_W 0x00000020L
431#define FILE_ATTRIBUTE_NORMAL_W 0x00000080L
432#define FILE_ATTRIBUTE_TEMPORARY_W 0x00000100L
433
434#define FILE_FLAG_WRITE_THROUGH_W 0x80000000UL
435#define FILE_FLAG_OVERLAPPED_W 0x40000000L
436#define FILE_FLAG_NO_BUFFERING_W 0x20000000L
437#define FILE_FLAG_RANDOM_ACCESS_W 0x10000000L
438#define FILE_FLAG_SEQUENTIAL_SCAN_W 0x08000000L
439#define FILE_FLAG_DELETE_ON_CLOSE_W 0x04000000L
440#define FILE_FLAG_BACKUP_SEMANTICS_W 0x02000000L
441#define FILE_FLAG_POSIX_SEMANTICS_W 0x01000000L
442
443
444#define NO_ERROR_W 0
445#define ERROR_SUCCESS_W 0
446#define ERROR_INVALID_FUNCTION_W 1
447#define ERROR_FILE_NOT_FOUND_W 2
448#define ERROR_PATH_NOT_FOUND_W 3
449#define ERROR_TOO_MANY_OPEN_FILES_W 4
450#define ERROR_ACCESS_DENIED_W 5
451#define ERROR_INVALID_HANDLE_W 6
452#define ERROR_ARENA_TRASHED_W 7
453#define ERROR_NOT_ENOUGH_MEMORY_W 8
454#define ERROR_INVALID_BLOCK_W 9
455#define ERROR_BAD_ENVIRONMENT_W 10
456#define ERROR_BAD_FORMAT_W 11
457#define ERROR_INVALID_ACCESS_W 12
458#define ERROR_INVALID_DATA_W 13
459#define ERROR_OUTOFMEMORY_W 14
460#define ERROR_INVALID_DRIVE_W 15
461#define ERROR_CURRENT_DIRECTORY_W 16
462#define ERROR_NOT_SAME_DEVICE_W 17
463#define ERROR_NO_MORE_FILES_W 18
464#define ERROR_WRITE_PROTECT_W 19
465#define ERROR_BAD_UNIT_W 20
466#define ERROR_NOT_READY_W 21
467#define ERROR_BAD_COMMAND_W 22
468#define ERROR_CRC_W 23
469#define ERROR_BAD_LENGTH_W 24
470#define ERROR_SEEK_W 25
471#define ERROR_NOT_DOS_DISK_W 26
472#define ERROR_SECTOR_NOT_FOUND_W 27
473#define ERROR_WRITE_FAULT_W 29
474#define ERROR_READ_FAULT_W 30
475#define ERROR_GEN_FAILURE_W 31
476#define ERROR_SHARING_VIOLATION_W 32
477#define ERROR_LOCK_VIOLATION_W 33
478#define ERROR_WRONG_DISK_W 34
479#define ERROR_SHARING_BUFFER_EXCEEDED_W 36
480#define ERROR_HANDLE_EOF_W 38
481#define ERROR_HANDLE_DISK_FULL_W 39
482#define ERROR_NOT_SUPPORTED_W 50
483#define ERROR_REM_NOT_LIST_W 51
484#define ERROR_DUP_NAME_W 52
485#define ERROR_BAD_NETPATH_W 53
486#define ERROR_NETWORK_BUSY_W 54
487#define ERROR_DEV_NOT_EXIST_W 55
488#define ERROR_ADAP_HDW_ERR_W 57
489#define ERROR_BAD_NET_RESP_W 58
490#define ERROR_UNEXP_NET_ERR_W 59
491#define ERROR_BAD_REM_ADAP_W 60
492#define ERROR_PRINTQ_FULL_W 61
493#define ERROR_NO_SPOOL_SPACE_W 62
494#define ERROR_PRINT_CANCELLED_W 63
495#define ERROR_NETNAME_DELETED_W 64
496#define ERROR_NETWORK_ACCESS_DENIED_W 65
497#define ERROR_BAD_DEV_TYPE_W 66
498#define ERROR_BAD_NET_NAME_W 67
499#define ERROR_TOO_MANY_NAMES_W 68
500#define ERROR_TOO_MANY_SESS_W 69
501#define ERROR_SHARING_PAUSED_W 70
502#define ERROR_REQ_NOT_ACCEP_W 71
503#define ERROR_REDIR_PAUSED_W 72
504#define ERROR_FILE_EXISTS_W 80
505#define ERROR_CANNOT_MAKE_W 82
506#define ERROR_FAIL_I24_W 83
507#define ERROR_OUT_OF_STRUCTURES_W 84
508#define ERROR_ALREADY_ASSIGNED_W 85
509#define ERROR_INVALID_PASSWORD_W 86
510#define ERROR_INVALID_PARAMETER_W 87
511#define ERROR_NET_WRITE_FAULT_W 88
512#define ERROR_NO_PROC_SLOTS_W 89
513#define ERROR_TOO_MANY_SEMAPHORES_W 100
514#define ERROR_EXCL_SEM_ALREADY_OWNED_W 101
515#define ERROR_SEM_IS_SET_W 102
516#define ERROR_TOO_MANY_SEM_REQUESTS_W 103
517#define ERROR_INVALID_AT_INTERRUPT_TIME_W 104
518#define ERROR_SEM_OWNER_DIED_W 105
519#define ERROR_SEM_USER_LIMIT_W 106
520#define ERROR_DISK_CHANGE_W 107
521#define ERROR_DRIVE_LOCKED_W 108
522#define ERROR_BROKEN_PIPE_W 109
523#define ERROR_OPEN_FAILED_W 110
524#define ERROR_BUFFER_OVERFLOW_W 111
525#define ERROR_DISK_FULL_W 112
526#define ERROR_NO_MORE_SEARCH_HANDLES_W 113
527#define ERROR_INVALID_TARGET_HANDLE_W 114
528#define ERROR_INVALID_CATEGORY_W 117
529#define ERROR_INVALID_VERIFY_SWITCH_W 118
530#define ERROR_BAD_DRIVER_LEVEL_W 119
531#define ERROR_CALL_NOT_IMPLEMENTED_W 120
532#define ERROR_SEM_TIMEOUT_W 121
533#define ERROR_INSUFFICIENT_BUFFER_W 122
534#define ERROR_INVALID_NAME_W 123
535#define ERROR_INVALID_LEVEL_W 124
536#define ERROR_NO_VOLUME_LABEL_W 125
537#define ERROR_MOD_NOT_FOUND_W 126
538#define ERROR_PROC_NOT_FOUND_W 127
539#define ERROR_WAIT_NO_CHILDREN_W 128
540#define ERROR_CHILD_NOT_COMPLETE_W 129
541#define ERROR_DIRECT_ACCESS_HANDLE_W 130
542#define ERROR_NEGATIVE_SEEK_W 131
543#define ERROR_SEEK_ON_DEVICE_W 132
544#define ERROR_IS_JOIN_TARGET_W 133
545#define ERROR_IS_JOINED_W 134
546#define ERROR_IS_SUBSTED_W 135
547#define ERROR_NOT_JOINED_W 136
548#define ERROR_NOT_SUBSTED_W 137
549#define ERROR_JOIN_TO_JOIN_W 138
550#define ERROR_SUBST_TO_SUBST_W 139
551#define ERROR_JOIN_TO_SUBST_W 140
552#define ERROR_SUBST_TO_JOIN_W 141
553#define ERROR_BUSY_DRIVE_W 142
554#define ERROR_SAME_DRIVE_W 143
555#define ERROR_DIR_NOT_ROOT_W 144
556#define ERROR_DIR_NOT_EMPTY_W 145
557#define ERROR_IS_SUBST_PATH_W 146
558#define ERROR_IS_JOIN_PATH_W 147
559#define ERROR_PATH_BUSY_W 148
560#define ERROR_IS_SUBST_TARGET_W 149
561#define ERROR_SYSTEM_TRACE_W 150
562#define ERROR_INVALID_EVENT_COUNT_W 151
563#define ERROR_TOO_MANY_MUXWAITERS_W 152
564#define ERROR_INVALID_LIST_FORMAT_W 153
565#define ERROR_LABEL_TOO_LONG_W 154
566#define ERROR_TOO_MANY_TCBS_W 155
567#define ERROR_SIGNAL_REFUSED_W 156
568#define ERROR_DISCARDED_W 157
569#define ERROR_NOT_LOCKED_W 158
570#define ERROR_BAD_THREADID_ADDR_W 159
571#define ERROR_BAD_ARGUMENTS_W 160
572#define ERROR_BAD_PATHNAME_W 161
573#define ERROR_SIGNAL_PENDING_W 162
574#define ERROR_MAX_THRDS_REACHED_W 164
575#define ERROR_LOCK_FAILED_W 167
576#define ERROR_BUSY_W 170
577#define ERROR_CANCEL_VIOLATION_W 173
578#define ERROR_ATOMIC_LOCKS_NOT_SUPPORTED_W 174
579#define ERROR_INVALID_SEGMENT_NUMBER_W 180
580#define ERROR_INVALID_ORDINAL_W 182
581#define ERROR_ALREADY_EXISTS_W 183
582#define ERROR_INVALID_FLAG_NUMBER_W 186
583#define ERROR_SEM_NOT_FOUND_W 187
584#define ERROR_INVALID_STARTING_CODESEG_W 188
585#define ERROR_INVALID_STACKSEG_W 189
586#define ERROR_INVALID_MODULETYPE_W 190
587#define ERROR_INVALID_EXE_SIGNATURE_W 191
588#define ERROR_EXE_MARKED_INVALID_W 192
589#define ERROR_BAD_EXE_FORMAT_W 193
590#define ERROR_ITERATED_DATA_EXCEEDS_64k_W 194
591#define ERROR_INVALID_MINALLOCSIZE_W 195
592#define ERROR_DYNLINK_FROM_INVALID_RING_W 196
593#define ERROR_IOPL_NOT_ENABLED_W 197
594#define ERROR_INVALID_SEGDPL_W 198
595#define ERROR_AUTODATASEG_EXCEEDS_64k_W 199
596#define ERROR_RING2SEG_MUST_BE_MOVABLE_W 200
597#define ERROR_RELOC_CHAIN_XEEDS_SEGLIM_W 201
598#define ERROR_INFLOOP_IN_RELOC_CHAIN_W 202
599#define ERROR_ENVVAR_NOT_FOUND_W 203
600#define ERROR_NO_SIGNAL_SENT_W 205
601#define ERROR_FILENAME_EXCED_RANGE_W 206
602#define ERROR_RING2_STACK_IN_USE_W 207
603#define ERROR_META_EXPANSION_TOO_LONG_W 208
604#define ERROR_INVALID_SIGNAL_NUMBER_W 209
605#define ERROR_THREAD_1_INACTIVE_W 210
606#define ERROR_LOCKED_W 212
607#define ERROR_TOO_MANY_MODULES_W 214
608#define ERROR_NESTING_NOT_ALLOWED_W 215
609#define ERROR_EXE_MACHINE_TYPE_MISMATCH_W 216
610#define ERROR_BAD_PIPE_W 230
611#define ERROR_PIPE_BUSY_W 231
612#define ERROR_NO_DATA_W 232
613#define ERROR_PIPE_NOT_CONNECTED_W 233
614#define ERROR_MORE_DATA_W 234
615#define ERROR_VC_DISCONNECTED_W 240
616#define ERROR_INVALID_EA_NAME_W 254
617#define ERROR_EA_LIST_INCONSISTENT_W 255
618#define ERROR_NO_MORE_ITEMS_W 259
619#define ERROR_CANNOT_COPY_W 266
620#define ERROR_DIRECTORY_W 267
621#define ERROR_EAS_DIDNT_FIT_W 275
622#define ERROR_EA_FILE_CORRUPT_W 276
623#define ERROR_EA_TABLE_FULL_W 277
624#define ERROR_INVALID_EA_HANDLE_W 278
625#define ERROR_EAS_NOT_SUPPORTED_W 282
626#define ERROR_NOT_OWNER_W 288
627#define ERROR_TOO_MANY_POSTS_W 298
628#define ERROR_PARTIAL_COPY_W 299
629#define ERROR_OPLOCK_NOT_GRANTED_W 300
630#define ERROR_INVALID_OPLOCK_PROTOCOL_W 301
631#define ERROR_MR_MID_NOT_FOUND_W 317
632#define ERROR_INVALID_ADDRESS_W 487
633#define ERROR_ARITHMETIC_OVERFLOW_W 534
634#define ERROR_PIPE_CONNECTED_W 535
635#define ERROR_PIPE_LISTENING_W 536
636#define ERROR_EA_ACCESS_DENIED_W 994
637#define ERROR_OPERATION_ABORTED_W 995
638#define ERROR_IO_INCOMPLETE_W 996
639#define ERROR_IO_PENDING_W 997
640#define ERROR_NOACCESS_W 998
641#define ERROR_SWAPERROR_W 999
642#define ERROR_STACK_OVERFLOW_W 1001L
643#define ERROR_INVALID_MESSAGE_W 1002L
644#define ERROR_CAN_NOT_COMPLETE_W 1003L
645#define ERROR_INVALID_FLAGS_W 1004L
646#define ERROR_UNRECOGNIZED_VOLUME_W 1005L
647#define ERROR_FILE_INVALID_W 1006L
648#define ERROR_FULLSCREEN_MODE_W 1007L
649#define ERROR_NO_TOKEN_W 1008L
650#define ERROR_BADDB_W 1009L
651#define ERROR_BADKEY_W 1010L
652#define ERROR_CANTOPEN_W 1011L
653#define ERROR_CANTREAD_W 1012L
654#define ERROR_CANTWRITE_W 1013L
655#define ERROR_REGISTRY_RECOVERED_W 1014L
656#define ERROR_REGISTRY_CORRUPT_W 1015L
657#define ERROR_REGISTRY_IO_FAILED_W 1016L
658#define ERROR_NOT_REGISTRY_FILE_W 1017L
659#define ERROR_KEY_DELETED_W 1018L
660#define ERROR_NO_LOG_SPACE_W 1019L
661#define ERROR_KEY_HAS_CHILDREN_W 1020L
662#define ERROR_CHILD_MUST_BE_VOLATILE_W 1021L
663#define ERROR_NOTIFY_ENUM_DIR_W 1022L
664#define ERROR_DEPENDENT_SERVICES_RUNNING_W 1051L
665#define ERROR_INVALID_SERVICE_CONTROL_W 1052L
666#define ERROR_SERVICE_REQUEST_TIMEOUT_W 1053L
667#define ERROR_SERVICE_NO_THREAD_W 1054L
668#define ERROR_SERVICE_DATABASE_LOCKED_W 1055L
669#define ERROR_SERVICE_ALREADY_RUNNING_W 1056L
670#define ERROR_INVALID_SERVICE_ACCOUNT_W 1057L
671#define ERROR_SERVICE_DISABLED_W 1058L
672#define ERROR_CIRCULAR_DEPENDENCY_W 1059L
673#define ERROR_SERVICE_DOES_NOT_EXIST_W 1060L
674#define ERROR_SERVICE_CANNOT_ACCEPT_CTRL_W 1061L
675#define ERROR_SERVICE_NOT_ACTIVE_W 1062L
676#define ERROR_FAILED_SERVICE_CONTROLLER_CONNECT_W 1063L
677#define ERROR_EXCEPTION_IN_SERVICE_W 1064L
678#define ERROR_DATABASE_DOES_NOT_EXIST_W 1065L
679#define ERROR_SERVICE_SPECIFIC_ERROR_W 1066L
680#define ERROR_PROCESS_ABORTED_W 1067L
681#define ERROR_SERVICE_DEPENDENCY_FAIL_W 1068L
682#define ERROR_SERVICE_LOGON_FAILED_W 1069L
683#define ERROR_SERVICE_START_HANG_W 1070L
684#define ERROR_INVALID_SERVICE_LOCK_W 1071L
685#define ERROR_SERVICE_MARKED_FOR_DELETE_W 1072L
686#define ERROR_SERVICE_EXISTS_W 1073L
687#define ERROR_ALREADY_RUNNING_LKG_W 1074L
688#define ERROR_SERVICE_DEPENDENCY_DELETED_W 1075L
689#define ERROR_BOOT_ALREADY_ACCEPTED_W 1076L
690#define ERROR_SERVICE_NEVER_STARTED_W 1077L
691#define ERROR_DUPLICATE_SERVICE_NAME_W 1078L
692#define ERROR_END_OF_MEDIA_W 1100L
693#define ERROR_FILEMARK_DETECTED_W 1101L
694#define ERROR_BEGINNING_OF_MEDIA_W 1102L
695#define ERROR_SETMARK_DETECTED_W 1103L
696#define ERROR_NO_DATA_DETECTED_W 1104L
697#define ERROR_PARTITION_FAILURE_W 1105L
698#define ERROR_INVALID_BLOCK_LENGTH_W 1106L
699#define ERROR_DEVICE_NOT_PARTITIONED_W 1107L
700#define ERROR_UNABLE_TO_LOCK_MEDIA_W 1108L
701#define ERROR_UNABLE_TO_UNLOAD_MEDIA_W 1109L
702#define ERROR_MEDIA_CHANGED_W 1110L
703#define ERROR_BUS_RESET_W 1111L
704#define ERROR_NO_MEDIA_IN_DRIVE_W 1112L
705#define ERROR_NO_UNICODE_TRANSLATION_W 1113L
706#define ERROR_DLL_INIT_FAILED_W 1114L
707#define ERROR_SHUTDOWN_IN_PROGRESS_W 1115L
708#define ERROR_NO_SHUTDOWN_IN_PROGRESS_W 1116L
709#define ERROR_IO_DEVICE_W 1117L
710#define ERROR_SERIAL_NO_DEVICE_W 1118L
711#define ERROR_IRQ_BUSY_W 1119L
712#define ERROR_MORE_WRITES_W 1120L
713#define ERROR_COUNTER_TIMEOUT_W 1121L
714#define ERROR_FLOPPY_ID_MARK_NOT_FOUND_W 1122L
715#define ERROR_FLOPPY_WRONG_CYLINDER_W 1123L
716#define ERROR_FLOPPY_UNKNOWN_ERROR_W 1124L
717#define ERROR_FLOPPY_BAD_REGISTERS_W 1125L
718#define ERROR_DISK_RECALIBRATE_FAILED_W 1126L
719#define ERROR_DISK_OPERATION_FAILED_W 1127L
720#define ERROR_DISK_RESET_FAILED_W 1128L
721#define ERROR_EOM_OVERFLOW_W 1129L
722#define ERROR_NOT_ENOUGH_SERVER_MEMORY_W 1130L
723#define ERROR_POSSIBLE_DEADLOCK_W 1131L
724#define ERROR_MAPPED_ALIGNMENT_W 1132L
725#define ERROR_BAD_DEVICE_W 1200L
726#define ERROR_CONNECTION_UNAVAIL_W 1201L
727#define ERROR_DEVICE_ALREADY_REMEMBERED_W 1202L
728#define ERROR_NO_NET_OR_BAD_PATH_W 1203L
729#define ERROR_BAD_PROVIDER_W 1204L
730#define ERROR_CANNOT_OPEN_PROFILE_W 1205L
731#define ERROR_BAD_PROFILE_W 1206L
732#define ERROR_NOT_CONTAINER_W 1207L
733#define ERROR_EXTENDED_ERROR_W 1208L
734#define ERROR_INVALID_GROUPNAME_W 1209L
735#define ERROR_INVALID_COMPUTERNAME_W 1210L
736#define ERROR_INVALID_EVENTNAME_W 1211L
737#define ERROR_INVALID_DOMAINNAME_W 1212L
738#define ERROR_INVALID_SERVICENAME_W 1213L
739#define ERROR_INVALID_NETNAME_W 1214L
740#define ERROR_INVALID_SHARENAME_W 1215L
741#define ERROR_INVALID_PASSWORDNAME_W 1216L
742#define ERROR_INVALID_MESSAGENAME_W 1217L
743#define ERROR_INVALID_MESSAGEDEST_W 1218L
744#define ERROR_SESSION_CREDENTIAL_CONFLICT_W 1219L
745#define ERROR_REMOTE_SESSION_LIMIT_EXCEEDED_W 1220L
746#define ERROR_DUP_DOMAINNAME_W 1221L
747#define ERROR_NO_NETWORK_W 1222L
748#define ERROR_CANCELLED_W 1223L
749#define ERROR_USER_MAPPED_FILE_W 1224L
750#define ERROR_CONNECTION_REFUSED_W 1225L
751#define ERROR_GRACEFUL_DISCONNECT_W 1226L
752#define ERROR_ADDRESS_ALREADY_ASSOCIATED_W 1227L
753#define ERROR_ADDRESS_NOT_ASSOCIATED_W 1228L
754#define ERROR_CONNECTION_INVALID_W 1229L
755#define ERROR_CONNECTION_ACTIVE_W 1230L
756#define ERROR_NETWORK_UNREACHABLE_W 1231L
757#define ERROR_HOST_UNREACHABLE_W 1232L
758#define ERROR_PROTOCOL_UNREACHABLE_W 1233L
759#define ERROR_PORT_UNREACHABLE_W 1234L
760#define ERROR_REQUEST_ABORTED_W 1235L
761#define ERROR_CONNECTION_ABORTED_W 1236L
762#define ERROR_RETRY_W 1237L
763#define ERROR_CONNECTION_COUNT_LIMIT_W 1238L
764#define ERROR_LOGIN_TIME_RESTRICTION_W 1239L
765#define ERROR_LOGIN_WKSTA_RESTRICTION_W 1240L
766#define ERROR_INCORRECT_ADDRESS_W 1241L
767#define ERROR_ALREADY_REGISTERED_W 1242L
768#define ERROR_SERVICE_NOT_FOUND_W 1243L
[3268]769#define ERROR_NOT_AUTHENTICATED_W 1244L
[2302]770#define ERROR_NOT_LOGGED_ON_W 1245L
771#define ERROR_CONTINUE_W 1246L
772#define ERROR_ALREADY_INITIALIZED_W 1247L
773#define ERROR_NO_MORE_DEVICES_W 1248L
774#define ERROR_NOT_ALL_ASSIGNED_W 1300L
775#define ERROR_SOME_NOT_MAPPED_W 1301L
776#define ERROR_NO_QUOTAS_FOR_ACCOUNT_W 1302L
777#define ERROR_LOCAL_USER_SESSION_KEY_W 1303L
778#define ERROR_NULL_LM_PASSWORD_W 1304L
779#define ERROR_UNKNOWN_REVISION_W 1305L
780#define ERROR_REVISION_MISMATCH_W 1306L
781#define ERROR_INVALID_OWNER_W 1307L
782#define ERROR_INVALID_PRIMARY_GROUP_W 1308L
783#define ERROR_NO_IMPERSONATION_TOKEN_W 1309L
784#define ERROR_CANT_DISABLE_MANDATORY_W 1310L
785#define ERROR_NO_LOGON_SERVERS_W 1311L
786#define ERROR_NO_SUCH_LOGON_SESSION_W 1312L
787#define ERROR_NO_SUCH_PRIVILEGE_W 1313L
788#define ERROR_PRIVILEGE_NOT_HELD_W 1314L
789#define ERROR_INVALID_ACCOUNT_NAME_W 1315L
790#define ERROR_USER_EXISTS_W 1316L
791#define ERROR_NO_SUCH_USER_W 1317L
792#define ERROR_GROUP_EXISTS_W 1318L
793#define ERROR_NO_SUCH_GROUP_W 1319L
794#define ERROR_MEMBER_IN_GROUP_W 1320L
795#define ERROR_MEMBER_NOT_IN_GROUP_W 1321L
796#define ERROR_LAST_ADMIN_W 1322L
797#define ERROR_WRONG_PASSWORD_W 1323L
798#define ERROR_ILL_FORMED_PASSWORD_W 1324L
799#define ERROR_PASSWORD_RESTRICTION_W 1325L
800#define ERROR_LOGON_FAILURE_W 1326L
801#define ERROR_ACCOUNT_RESTRICTION_W 1327L
802#define ERROR_INVALID_LOGON_HOURS_W 1328L
803#define ERROR_INVALID_WORKSTATION_W 1329L
804#define ERROR_PASSWORD_EXPIRED_W 1330L
805#define ERROR_ACCOUNT_DISABLED_W 1331L
806#define ERROR_NONE_MAPPED_W 1332L
807#define ERROR_TOO_MANY_LUIDS_REQUESTED_W 1333L
808#define ERROR_LUIDS_EXHAUSTED_W 1334L
809#define ERROR_INVALID_SUB_AUTHORITY_W 1335L
810#define ERROR_INVALID_ACL_W 1336L
811#define ERROR_INVALID_SID_W 1337L
812#define ERROR_INVALID_SECURITY_DESCR_W 1338L
813#define ERROR_BAD_INHERITANCE_ACL_W 1340L
814#define ERROR_SERVER_DISABLED_W 1341L
815#define ERROR_SERVER_NOT_DISABLED_W 1342L
816#define ERROR_INVALID_ID_AUTHORITY_W 1343L
817#define ERROR_ALLOTTED_SPACE_EXCEEDED_W 1344L
818#define ERROR_INVALID_GROUP_ATTRIBUTES_W 1345L
819#define ERROR_BAD_IMPERSONATION_LEVEL_W 1346L
820#define ERROR_CANT_OPEN_ANONYMOUS_W 1347L
821#define ERROR_BAD_VALIDATION_CLASS_W 1348L
822#define ERROR_BAD_TOKEN_TYPE_W 1349L
823#define ERROR_NO_SECURITY_ON_OBJECT_W 1350L
824#define ERROR_CANT_ACCESS_DOMAIN_INFO_W 1351L
825#define ERROR_INVALID_SERVER_STATE_W 1352L
826#define ERROR_INVALID_DOMAIN_STATE_W 1353L
827#define ERROR_INVALID_DOMAIN_ROLE_W 1354L
828#define ERROR_NO_SUCH_DOMAIN_W 1355L
829#define ERROR_DOMAIN_EXISTS_W 1356L
830#define ERROR_DOMAIN_LIMIT_EXCEEDED_W 1357L
831#define ERROR_INTERNAL_DB_CORRUPTION_W 1358L
832#define ERROR_INTERNAL_ERROR_W 1359L
833#define ERROR_GENERIC_NOT_MAPPED_W 1360L
834#define ERROR_BAD_DESCRIPTOR_FORMAT_W 1361L
835#define ERROR_NOT_LOGON_PROCESS_W 1362L
836#define ERROR_LOGON_SESSION_EXISTS_W 1363L
837#define ERROR_NO_SUCH_PACKAGE_W 1364L
838#define ERROR_BAD_LOGON_SESSION_STATE_W 1365L
839#define ERROR_LOGON_SESSION_COLLISION_W 1366L
840#define ERROR_INVALID_LOGON_TYPE_W 1367L
841#define ERROR_CANNOT_IMPERSONATE_W 1368L
842#define ERROR_RXACT_INVALID_STATE_W 1369L
843#define ERROR_RXACT_COMMIT_FAILURE_W 1370L
844#define ERROR_SPECIAL_ACCOUNT_W 1371L
845#define ERROR_SPECIAL_GROUP_W 1372L
846#define ERROR_SPECIAL_USER_W 1373L
847#define ERROR_MEMBERS_PRIMARY_GROUP_W 1374L
848#define ERROR_TOKEN_ALREADY_IN_USE_W 1375L
849#define ERROR_NO_SUCH_ALIAS_W 1376L
850#define ERROR_MEMBER_NOT_IN_ALIAS_W 1377L
851#define ERROR_MEMBER_IN_ALIAS_W 1378L
852#define ERROR_ALIAS_EXISTS_W 1379L
853#define ERROR_LOGON_NOT_GRANTED_W 1380L
854#define ERROR_TOO_MANY_SECRETS_W 1381L
855#define ERROR_SECRET_TOO_LONG_W 1382L
856#define ERROR_INTERNAL_DB_ERROR_W 1383L
857#define ERROR_TOO_MANY_CONTEXT_IDS_W 1384L
858#define ERROR_LOGON_TYPE_NOT_GRANTED_W 1385L
859#define ERROR_NT_CROSS_ENCRYPTION_REQUIRED_W 1386L
860#define ERROR_NO_SUCH_MEMBER_W 1387L
861#define ERROR_INVALID_MEMBER_W 1388L
862#define ERROR_TOO_MANY_SIDS_W 1389L
863#define ERROR_LM_CROSS_ENCRYPTION_REQUIRED_W 1390L
864#define ERROR_NO_INHERITANCE_W 1391L
865#define ERROR_FILE_CORRUPT_W 1392L
866#define ERROR_DISK_CORRUPT_W 1393L
867#define ERROR_NO_USER_SESSION_KEY_W 1394L
868#define ERROR_INVALID_WINDOW_HANDLE_W 1400L
869#define ERROR_INVALID_MENU_HANDLE_W 1401L
870#define ERROR_INVALID_CURSOR_HANDLE_W 1402L
871#define ERROR_INVALID_ACCEL_HANDLE_W 1403L
872#define ERROR_INVALID_HOOK_HANDLE_W 1404L
873#define ERROR_INVALID_DWP_HANDLE_W 1405L
874#define ERROR_TLW_WITH_WSCHILD_W 1406L
875#define ERROR_CANNOT_FIND_WND_CLASS_W 1407L
876#define ERROR_WINDOW_OF_OTHER_THREAD_W 1408L
877#define ERROR_HOTKEY_ALREADY_REGISTERED_W 1409L
878#define ERROR_CLASS_ALREADY_EXISTS_W 1410L
879#define ERROR_CLASS_DOES_NOT_EXIST_W 1411L
880#define ERROR_CLASS_HAS_WINDOWS_W 1412L
881#define ERROR_INVALID_INDEX_W 1413L
882#define ERROR_INVALID_ICON_HANDLE_W 1414L
883#define ERROR_PRIVATE_DIALOG_INDEX_W 1415L
884#define ERROR_LISTBOX_ID_NOT_FOUND_W 1416L
885#define ERROR_NO_WILDCARD_CHARACTERS_W 1417L
886#define ERROR_CLIPBOARD_NOT_OPEN_W 1418L
887#define ERROR_HOTKEY_NOT_REGISTERED_W 1419L
888#define ERROR_WINDOW_NOT_DIALOG_W 1420L
889#define ERROR_CONTROL_ID_NOT_FOUND_W 1421L
890#define ERROR_INVALID_COMBOBOX_MESSAGE_W 1422L
891#define ERROR_WINDOW_NOT_COMBOBOX_W 1423L
892#define ERROR_INVALID_EDIT_HEIGHT_W 1424L
893#define ERROR_DC_NOT_FOUND_W 1425L
894#define ERROR_INVALID_HOOK_FILTER_W 1426L
895#define ERROR_INVALID_FILTER_PROC_W 1427L
896#define ERROR_HOOK_NEEDS_HMOD_W 1428L
897#define ERROR_GLOBAL_ONLY_HOOK_W 1429L
898#define ERROR_JOURNAL_HOOK_SET_W 1430L
899#define ERROR_HOOK_NOT_INSTALLED_W 1431L
900#define ERROR_INVALID_LB_MESSAGE_W 1432L
901#define ERROR_SETCOUNT_ON_BAD_LB_W 1433L
902#define ERROR_LB_WITHOUT_TABSTOPS_W 1434L
903#define ERROR_DESTROY_OBJECT_OF_OTHER_THREAD_W 1435L
904#define ERROR_CHILD_WINDOW_MENU_W 1436L
905#define ERROR_NO_SYSTEM_MENU_W 1437L
906#define ERROR_INVALID_MSGBOX_STYLE_W 1438L
907#define ERROR_INVALID_SPI_VALUE_W 1439L
908#define ERROR_SCREEN_ALREADY_LOCKED_W 1440L
909#define ERROR_HWNDS_HAVE_DIFF_PARENT_W 1441L
910#define ERROR_NOT_CHILD_WINDOW_W 1442L
911#define ERROR_INVALID_GW_COMMAND_W 1443L
912#define ERROR_INVALID_THREAD_ID_W 1444L
913#define ERROR_NON_MDICHILD_WINDOW_W 1445L
914#define ERROR_POPUP_ALREADY_ACTIVE_W 1446L
915#define ERROR_NO_SCROLLBARS_W 1447L
916#define ERROR_INVALID_SCROLLBAR_RANGE_W 1448L
917#define ERROR_INVALID_SHOWWIN_COMMAND_W 1449L
918#define ERROR_COMMITMENT_LIMIT_W 1455L
919#define ERROR_EVENTLOG_FILE_CORRUPT_W 1500L
920#define ERROR_EVENTLOG_CANT_START_W 1501L
921#define ERROR_LOG_FILE_FULL_W 1502L
922#define ERROR_EVENTLOG_FILE_CHANGED_W 1503L
923#define ERROR_INVALID_USER_BUFFER_W 1784L
924#define ERROR_UNRECOGNIZED_MEDIA_W 1785L
925#define ERROR_NO_TRUST_LSA_SECRET_W 1786L
926#define ERROR_NO_TRUST_SAM_ACCOUNT_W 1787L
927#define ERROR_TRUSTED_DOMAIN_FAILURE_W 1788L
928#define ERROR_TRUSTED_RELATIONSHIP_FAILURE_W 1789L
929#define ERROR_TRUST_FAILURE_W 1790L
930#define ERROR_NETLOGON_NOT_STARTED_W 1792L
931#define ERROR_ACCOUNT_EXPIRED_W 1793L
932#define ERROR_REDIRECTOR_HAS_OPEN_HANDLES_W 1794L
933#define ERROR_PRINTER_DRIVER_ALREADY_INSTALLED_W 1795L
934#define ERROR_UNKNOWN_PORT_W 1796L
935#define ERROR_UNKNOWN_PRINTER_DRIVER_W 1797L
936#define ERROR_UNKNOWN_PRINTPROCESSOR_W 1798L
937#define ERROR_INVALID_SEPARATOR_FILE_W 1799L
938#define ERROR_INVALID_PRIORITY_W 1800L
939#define ERROR_INVALID_PRINTER_NAME_W 1801L
940#define ERROR_PRINTER_ALREADY_EXISTS_W 1802L
941#define ERROR_INVALID_PRINTER_COMMAND_W 1803L
942#define ERROR_INVALID_DATATYPE_W 1804L
943#define ERROR_INVALID_ENVIRONMENT_W 1805L
944#define ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT_W 1807L
945#define ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT_W 1808L
946#define ERROR_NOLOGON_SERVER_TRUST_ACCOUNT_W 1809L
947#define ERROR_DOMAIN_TRUST_INCONSISTENT_W 1810L
948#define ERROR_SERVER_HAS_OPEN_HANDLES_W 1811L
949#define ERROR_RESOURCE_DATA_NOT_FOUND_W 1812L
950#define ERROR_RESOURCE_TYPE_NOT_FOUND_W 1813L
951#define ERROR_RESOURCE_NAME_NOT_FOUND_W 1814L
952#define ERROR_RESOURCE_LANG_NOT_FOUND_W 1815L
953#define ERROR_NOT_ENOUGH_QUOTA_W 1816L
954#define ERROR_INVALID_TIME_W 1901L
955#define ERROR_INVALID_FORM_NAME_W 1902L
956#define ERROR_INVALID_FORM_SIZE_W 1903L
957#define ERROR_ALREADY_WAITING_W 1904L
958#define ERROR_PRINTER_DELETED_W 1905L
959#define ERROR_INVALID_PRINTER_STATE_W 1906L
960#define ERROR_PASSWORD_MUST_CHANGE_W 1907L
961#define ERROR_DOMAIN_CONTROLLER_NOT_FOUND_W 1908L
962#define ERROR_ACCOUNT_LOCKED_OUT_W 1909L
963#define ERROR_INVALID_PIXEL_FORMAT_W 2000L
964#define ERROR_BAD_DRIVER_W 2001L
965#define ERROR_INVALID_WINDOW_STYLE_W 2002L
966#define ERROR_METAFILE_NOT_SUPPORTED_W 2003L
967#define ERROR_TRANSFORM_NOT_SUPPORTED_W 2004L
968#define ERROR_CLIPPING_NOT_SUPPORTED_W 2005L
969#define ERROR_BAD_USERNAME_W 2202L
970#define ERROR_NOT_CONNECTED_W 2250L
971#define ERROR_OPEN_FILES_W 2401L
972#define ERROR_ACTIVE_CONNECTIONS_W 2402L
973#define ERROR_DEVICE_IN_USE_W 2404L
974#define ERROR_UNKNOWN_PRINT_MONITOR_W 3000L
975#define ERROR_PRINTER_DRIVER_IN_USE_W 3001L
976#define ERROR_SPOOL_FILE_NOT_FOUND_W 3002L
977#define ERROR_SPL_NO_STARTDOC_W 3003L
978#define ERROR_SPL_NO_ADDJOB_W 3004L
979#define ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED_W 3005L
980#define ERROR_PRINT_MONITOR_ALREADY_INSTALLED_W 3006L
981#define ERROR_WINS_INTERNAL_W 4000L
982#define ERROR_CAN_NOT_DEL_LOCAL_WINS_W 4001L
983#define ERROR_STATIC_INIT_W 4002L
984#define ERROR_INC_BACKUP_W 4003L
985#define ERROR_FULL_BACKUP_W 4004L
986#define ERROR_REC_NON_EXISTENT_W 4005L
987#define ERROR_RPL_NOT_ALLOWED_W 4006L
988
[3098]989/* Access rights */
[2427]990
[6048]991#define DELETE_W 0x00010000
992#define READ_CONTROL_W 0x00020000
993#define WRITE_DAC_W 0x00040000
994#define WRITE_OWNER_W 0x00080000
995#define SYNCHRONIZE_W 0x00100000
996#define STANDARD_RIGHTS_REQUIRED_W 0x000f0000
[3098]997
[6048]998#define STANDARD_RIGHTS_READ_W READ_CONTROL_W
999#define STANDARD_RIGHTS_WRITE_W READ_CONTROL_W
1000#define STANDARD_RIGHTS_EXECUTE_W READ_CONTROL_W
[3098]1001
[6048]1002#define STANDARD_RIGHTS_ALL_W 0x001f0000
[3098]1003
[6048]1004#define SPECIFIC_RIGHTS_ALL_W 0x0000ffff
[3098]1005
[6048]1006#define EVENT_MODIFY_STATE_W 0x0002
1007#define EVENT_ALL_ACCESS_W (STANDARD_RIGHTS_REQUIRED_W|SYNCHRONIZE_W|0x3)
[3098]1008
[6048]1009#define SEMAPHORE_MODIFY_STATE_W 0x0002
1010#define SEMAPHORE_ALL_ACCESS_W (STANDARD_RIGHTS_REQUIRED_W|SYNCHRONIZE_W|0x3)
[3098]1011
[6048]1012#define MUTEX_MODIFY_STATE_W 0x0001
1013#define MUTEX_ALL_ACCESS_W (STANDARD_RIGHTS_REQUIRED_W|SYNCHRONIZE_W|0x1)
1014
1015#define MAXIMUM_ALLOWED_W 0x02000000
1016#define ACCESS_SYSTEM_SECURITY_W 0x01000000
1017
[2488]1018#ifndef LOWORD
[2427]1019#define LOWORD(l) ((WORD)(DWORD)(l))
[2488]1020#endif
1021#ifndef HIWORD
[2427]1022#define HIWORD(l) ((WORD)((DWORD)(l) >> 16))
[2488]1023#endif
[2605]1024
1025 /* biCompression */
[3622]1026#define BI_RGB_W 0
1027#define BI_RLE8_W 1
1028#define BI_RLE4_W 2
1029#define BI_BITFIELDS_W 3
[2674]1030
1031 /* Polygon modes */
1032#define ALTERNATE_W 1
1033#define WINDING_W 2
1034
1035/* Regions */
1036#define ERROR_W 0
1037#define NULLREGION_W 1
1038#define SIMPLEREGION_W 2
1039#define COMPLEXREGION_W 3
1040
[10294]1041#define SYSRGN_W 4
1042
[2674]1043#define RGN_AND_W 1
1044#define RGN_OR_W 2
1045#define RGN_XOR_W 3
1046#define RGN_DIFF_W 4
1047#define RGN_COPY_W 5
[2720]1048
1049
[3268]1050#define PAGE_NOACCESS_W 0x01
1051#define PAGE_READONLY_W 0x02
1052#define PAGE_READWRITE_W 0x04
1053#define PAGE_WRITECOPY_W 0x08
1054#define PAGE_EXECUTE_W 0x10
1055#define PAGE_EXECUTE_READ_W 0x20
1056#define PAGE_EXECUTE_READWRITE_W 0x40
1057#define PAGE_EXECUTE_WRITECOPY_W 0x80
1058#define PAGE_GUARD_W 0x100
1059#define PAGE_NOCACHE_W 0x200
[2720]1060
[3268]1061#define MEM_COMMIT_W 0x00001000
1062#define MEM_RESERVE_W 0x00002000
1063#define MEM_DECOMMIT_W 0x00004000
1064#define MEM_RELEASE_W 0x00008000
1065#define MEM_FREE_W 0x00010000
1066#define MEM_PRIVATE_W 0x00020000
1067#define MEM_MAPPED_W 0x00040000
1068#define MEM_TOP_DOWN_W 0x00100000
[2720]1069
[3268]1070#define SEC_FILE_W 0x00800000
1071#define SEC_IMAGE_W 0x01000000
1072#define SEC_RESERVE_W 0x04000000
1073#define SEC_COMMIT_W 0x08000000
1074#define SEC_NOCACHE_W 0x10000000
[2720]1075
1076#define FILE_MAP_COPY_W 0x00000001
1077#define FILE_MAP_WRITE_W 0x00000002
1078#define FILE_MAP_READ_W 0x00000004
1079#define FILE_MAP_ALL_ACCESS_W 0x000f001f
[2793]1080
[3268]1081#define SND_SYNC_W 0x0000 /* play synchronously (default) */
1082#define SND_ASYNC_W 0x0001 /* play asynchronously */
1083#define SND_NODEFAULT_W 0x0002 /* don't use default sound */
1084#define SND_MEMORY_W 0x0004 /* lpszSoundName points to a memory file */
1085#define SND_LOOP_W 0x0008 /* loop the sound until next sndPlaySound */
1086#define SND_NOSTOP_W 0x0010 /* don't stop any currently playing sound */
[2793]1087
[3268]1088#define SND_NOWAIT_W 0x00002000L /* don't wait if the driver is busy */
1089#define SND_ALIAS_W 0x00010000L /* name is a registry alias */
1090#define SND_ALIAS_ID_W 0x00110000L /* alias is a predefined ID */
1091#define SND_FILENAME_W 0x00020000L /* name is file name */
1092#define SND_RESOURCE_W 0x00040004L /* name is resource name or atom */
1093#define SND_PURGE_W 0x00000040L /* purge all sounds */
1094#define SND_APPLICATION_W 0x00000080L /* look for application specific association */
[2982]1095
1096
1097#define REG_NONE 0 /* no type */
1098#define REG_SZ 1 /* string type (ASCII) */
1099#define REG_EXPAND_SZ 2 /* string, includes %ENVVAR% (expanded by caller) (ASCII) */
1100#define REG_BINARY 3 /* binary format, callerspecific */
1101 /* YES, REG_DWORD == REG_DWORD_LITTLE_ENDIAN */
1102#define REG_DWORD 4 /* DWORD in little endian format */
1103#define REG_DWORD_LITTLE_ENDIAN 4 /* DWORD in little endian format */
1104#define REG_DWORD_BIG_ENDIAN 5 /* DWORD in big endian format */
1105#define REG_LINK 6 /* symbolic link (UNICODE) */
1106#define REG_MULTI_SZ 7 /* multiple strings, delimited by \0, terminated by \0\0 (ASCII) */
1107#define REG_RESOURCE_LIST 8 /* resource list? huh? */
1108#define REG_FULL_RESOURCE_DESCRIPTOR 9 /* full resource descriptor? huh? */
1109
[3098]1110#define KEY_QUERY_VALUE 0x00000001
1111#define KEY_SET_VALUE 0x00000002
1112#define KEY_CREATE_SUB_KEY 0x00000004
1113#define KEY_ENUMERATE_SUB_KEYS 0x00000008
1114#define KEY_NOTIFY 0x00000010
1115#define KEY_CREATE_LINK 0x00000020
[2982]1116
[6048]1117#define KEY_READ (STANDARD_RIGHTS_READ_W| \
[3268]1118 KEY_QUERY_VALUE| \
1119 KEY_ENUMERATE_SUB_KEYS|\
1120 KEY_NOTIFY \
1121 )
[6048]1122#define KEY_WRITE (STANDARD_RIGHTS_WRITE_W| \
[3268]1123 KEY_SET_VALUE| \
1124 KEY_CREATE_SUB_KEY \
1125 )
[3098]1126#define KEY_EXECUTE KEY_READ
[6048]1127#define KEY_ALL_ACCESS (STANDARD_RIGHTS_ALL_W| \
[3268]1128 KEY_READ|KEY_WRITE| \
1129 KEY_CREATE_LINK \
1130 )
[3098]1131
[2982]1132#define HKEY_CLASSES_ROOT ((HKEY) 0x80000000)
1133#define HKEY_CURRENT_USER ((HKEY) 0x80000001)
1134#define HKEY_LOCAL_MACHINE ((HKEY) 0x80000002)
1135#define HKEY_USERS ((HKEY) 0x80000003)
1136#define HKEY_PERFORMANCE_DATA ((HKEY) 0x80000004)
1137#define HKEY_CURRENT_CONFIG ((HKEY) 0x80000005)
1138#define HKEY_DYN_DATA ((HKEY) 0x80000006)
[3124]1139
1140/* Virtual key codes */
1141#define VK_LBUTTON_W 0x01
1142#define VK_RBUTTON_W 0x02
1143#define VK_CANCEL_W 0x03
1144#define VK_MBUTTON_W 0x04
1145/* 0x05-0x07 Undefined */
1146#define VK_BACK_W 0x08
1147#define VK_TAB_W 0x09
1148/* 0x0A-0x0B Undefined */
1149#define VK_CLEAR_W 0x0C
1150#define VK_RETURN_W 0x0D
1151/* 0x0E-0x0F Undefined */
1152#define VK_SHIFT_W 0x10
1153#define VK_CONTROL_W 0x11
1154#define VK_MENU_W 0x12
1155#define VK_PAUSE_W 0x13
1156#define VK_CAPITAL_W 0x14
1157/* 0x15-0x19 Reserved for Kanji systems */
1158/* 0x1A Undefined */
1159#define VK_ESCAPE_W 0x1B
1160/* 0x1C-0x1F Reserved for Kanji systems */
1161#define VK_SPACE_W 0x20
1162#define VK_PRIOR_W 0x21
1163#define VK_NEXT_W 0x22
1164#define VK_END_W 0x23
1165#define VK_HOME_W 0x24
1166#define VK_LEFT_W 0x25
1167#define VK_UP_W 0x26
1168#define VK_RIGHT_W 0x27
1169#define VK_DOWN_W 0x28
1170#define VK_SELECT_W 0x29
1171#define VK_PRINT_W 0x2A /* OEM specific in Windows 3.1 SDK */
1172#define VK_EXECUTE_W 0x2B
1173#define VK_SNAPSHOT_W 0x2C
1174#define VK_INSERT_W 0x2D
1175#define VK_DELETE_W 0x2E
1176#define VK_HELP_W 0x2F
1177#define VK_0_W 0x30
1178#define VK_1_W 0x31
1179#define VK_2_W 0x32
1180#define VK_3_W 0x33
1181#define VK_4_W 0x34
1182#define VK_5_W 0x35
1183#define VK_6_W 0x36
1184#define VK_7_W 0x37
1185#define VK_8_W 0x38
1186#define VK_9_W 0x39
1187/* 0x3A-0x40 Undefined */
1188#define VK_A_W 0x41
1189#define VK_B_W 0x42
1190#define VK_C_W 0x43
1191#define VK_D_W 0x44
1192#define VK_E_W 0x45
1193#define VK_F_W 0x46
1194#define VK_G_W 0x47
1195#define VK_H_W 0x48
1196#define VK_I_W 0x49
1197#define VK_J_W 0x4A
1198#define VK_K_W 0x4B
1199#define VK_L_W 0x4C
1200#define VK_M_W 0x4D
1201#define VK_N_W 0x4E
1202#define VK_O_W 0x4F
1203#define VK_P_W 0x50
1204#define VK_Q_W 0x51
1205#define VK_R_W 0x52
1206#define VK_S_W 0x53
1207#define VK_T_W 0x54
1208#define VK_U_W 0x55
1209#define VK_V_W 0x56
1210#define VK_W_W 0x57
1211#define VK_X_W 0x58
1212#define VK_Y_W 0x59
1213#define VK_Z_W 0x5A
1214
1215#define VK_LWIN_W 0x5B
1216#define VK_RWIN_W 0x5C
1217#define VK_APPS_W 0x5D
1218/* 0x5E-0x5F Unassigned */
1219#define VK_NUMPAD0_W 0x60
1220#define VK_NUMPAD1_W 0x61
1221#define VK_NUMPAD2_W 0x62
1222#define VK_NUMPAD3_W 0x63
1223#define VK_NUMPAD4_W 0x64
1224#define VK_NUMPAD5_W 0x65
1225#define VK_NUMPAD6_W 0x66
1226#define VK_NUMPAD7_W 0x67
1227#define VK_NUMPAD8_W 0x68
1228#define VK_NUMPAD9_W 0x69
1229#define VK_MULTIPLY_W 0x6A
1230#define VK_ADD_W 0x6B
1231#define VK_SEPARATOR_W 0x6C
1232#define VK_SUBTRACT_W 0x6D
1233#define VK_DECIMAL_W 0x6E
1234#define VK_DIVIDE_W 0x6F
1235#define VK_F1_W 0x70
1236#define VK_F2_W 0x71
1237#define VK_F3_W 0x72
1238#define VK_F4_W 0x73
1239#define VK_F5_W 0x74
1240#define VK_F6_W 0x75
1241#define VK_F7_W 0x76
1242#define VK_F8_W 0x77
1243#define VK_F9_W 0x78
1244#define VK_F10_W 0x79
1245#define VK_F11_W 0x7A
1246#define VK_F12_W 0x7B
1247#define VK_F13_W 0x7C
1248#define VK_F14_W 0x7D
1249#define VK_F15_W 0x7E
1250#define VK_F16_W 0x7F
1251#define VK_F17_W 0x80
1252#define VK_F18_W 0x81
1253#define VK_F19_W 0x82
1254#define VK_F20_W 0x83
1255#define VK_F21_W 0x84
1256#define VK_F22_W 0x85
1257#define VK_F23_W 0x86
1258#define VK_F24_W 0x87
1259/* 0x88-0x8F Unassigned */
1260#define VK_NUMLOCK_W 0x90
1261#define VK_SCROLL_W 0x91
1262/* 0x92-0x9F Unassigned */
1263/*
1264 * differencing between right and left shift/control/alt key.
1265 * Used only by GetAsyncKeyState() and GetKeyState().
1266 */
1267#define VK_LSHIFT_W 0xA0
1268#define VK_RSHIFT_W 0xA1
1269#define VK_LCONTROL_W 0xA2
1270#define VK_RCONTROL_W 0xA3
1271#define VK_LMENU_W 0xA4
1272#define VK_RMENU_W 0xA5
1273/* 0xA6-0xB9 Unassigned */
1274#define VK_OEM_1_W 0xBA
1275#define VK_OEM_PLUS_W 0xBB
1276#define VK_OEM_COMMA_W 0xBC
1277#define VK_OEM_MINUS_W 0xBD
1278#define VK_OEM_PERIOD_W 0xBE
1279#define VK_OEM_2_W 0xBF
1280#define VK_OEM_3_W 0xC0
1281/* 0xC1-0xDA Unassigned */
1282#define VK_OEM_4_W 0xDB
1283#define VK_OEM_5_W 0xDC
1284#define VK_OEM_6_W 0xDD
1285#define VK_OEM_7_W 0xDE
1286/* 0xDF-0xE4 OEM specific */
1287
1288#define VK_PROCESSKEY_W 0xE5
1289
1290/* 0xE6 OEM specific */
1291/* 0xE7-0xE8 Unassigned */
1292/* 0xE9-0xF5 OEM specific */
1293
1294#define VK_ATTN_W 0xF6
1295#define VK_CRSEL_W 0xF7
1296#define VK_EXSEL_W 0xF8
1297#define VK_EREOF_W 0xF9
1298#define VK_PLAY_W 0xFA
1299#define VK_ZOOM_W 0xFB
1300#define VK_NONAME_W 0xFC
1301#define VK_PA1_W 0xFD
1302#define VK_OEM_CLEAR_W 0xFE
1303
1304/**************************************************************/
1305/* The following vkey definitions are undocumented in Windows */
1306/**************************************************************/
1307#define VK_SEMICOLON_W 0xBA
1308#define VK_EQUAL_W 0xBB
1309#define VK_COMMA_W 0xBC
1310#define VK_HYPHEN_W 0xBD
1311#define VK_PERIOD_W 0xBE
1312#define VK_SLASH_W 0xBF
1313#define VK_GRAVE_W 0xC0
1314#define VK_BRACKETLEFT_W 0xDB
1315#define VK_BACKSLASH_W 0xDC
1316#define VK_BRACKETRIGHT_W 0xDD
1317#define VK_QUOTESINGLE_W 0xDE
1318#define VK_EXTRA_W 0xE2
[3196]1319
1320/* Heap flags */
1321
1322#define HEAP_NO_SERIALIZE 0x00000001
1323#define HEAP_GROWABLE 0x00000002
1324#define HEAP_GENERATE_EXCEPTIONS 0x00000004
1325#define HEAP_ZERO_MEMORY 0x00000008
1326#define HEAP_REALLOC_IN_PLACE_ONLY 0x00000010
1327#define HEAP_TAIL_CHECKING_ENABLED 0x00000020
1328#define HEAP_FREE_CHECKING_ENABLED 0x00000040
1329#define HEAP_DISABLE_COALESCE_ON_FREE 0x00000080
1330#define HEAP_CREATE_ALIGN_16 0x00010000
1331#define HEAP_CREATE_ENABLE_TRACING 0x00020000
[3268]1332
1333/* FindFirstFile */
1334
1335#define INVALID_HANDLE_VALUE_W ((HANDLE) -1)
[3416]1336
1337 /* StretchBlt() modes */
1338#define BLACKONWHITE_W 1
1339#define WHITEONBLACK_W 2
1340#define COLORONCOLOR_W 3
1341#define HALFTONE_W 4
1342#define MAXSTRETCHBLTMODE_W 4
[3622]1343
1344 #define NTRT_NEWRESOURCE 0x2000
1345 #define NTRT_ERROR 0x7fff
1346 #define NTRT_CURSOR 1
1347 #define NTRT_BITMAP 2
1348 #define NTRT_ICON 3
1349 #define NTRT_MENU 4
1350 #define NTRT_DIALOG 5
1351 #define NTRT_STRING 6
1352 #define NTRT_FONTDIR 7
1353 #define NTRT_FONT 8
1354 #define NTRT_ACCELERATORS 9
1355 #define NTRT_RCDATA 10
1356 #define NTRT_MESSAGETABLE 11
1357 #define NTRT_GROUP_CURSOR 12
1358 #define NTRT_GROUP_ICON 14
1359 #define NTRT_VERSION 16
1360 #define NTRT_NEWBITMAP (NTRT_BITMAP|NTRT_NEWRESOURCE)
1361 #define NTRT_NEWMENU (NTRT_MENU|NTRT_NEWRESOURCE)
1362 #define NTRT_NEWDIALOG (NTRT_DIALOG|NTRT_NEWRESOURCE)
[3640]1363
1364
1365/* Device parameters for GetDeviceCaps() */
1366#define DRIVERVERSION_W 0
1367#define TECHNOLOGY_W 2
1368#define HORZSIZE_W 4
1369#define VERTSIZE_W 6
1370#define HORZRES_W 8
1371#define VERTRES_W 10
1372#define BITSPIXEL_W 12
1373#define PLANES_W 14
1374#define NUMBRUSHES_W 16
1375#define NUMPENS_W 18
1376#define NUMMARKERS_W 20
1377#define NUMFONTS_W 22
1378#define NUMCOLORS_W 24
1379#define PDEVICESIZE_W 26
1380#define CURVECAPS_W 28
1381#define LINECAPS_W 30
1382#define POLYGONALCAPS_W 32
1383#define TEXTCAPS_W 34
1384#define CLIPCAPS_W 36
1385#define RASTERCAPS_W 38
1386#define ASPECTX_W 40
1387#define ASPECTY_W 42
1388#define ASPECTXY_W 44
1389#define LOGPIXELSX_W 88
1390#define LOGPIXELSY_W 90
1391#define SIZEPALETTE_W 104
1392#define NUMRESERVED_W 106
1393#define COLORRES_W 108
1394#define PHYSICALWIDTH_W 110
1395#define PHYSICALHEIGHT_W 111
1396#define PHYSICALOFFSETX_W 112
1397#define PHYSICALOFFSETY_W 113
1398#define SCALINGFACTORX_W 114
1399#define SCALINGFACTORY_W 115
1400
1401#define OF_READ_W 0x0000
1402#define OF_WRITE_W 0x0001
1403#define OF_READWRITE_W 0x0002
1404#define OF_SHARE_COMPAT_W 0x0000
1405#define OF_SHARE_EXCLUSIVE_W 0x0010
1406#define OF_SHARE_DENY_WRITE_W 0x0020
1407#define OF_SHARE_DENY_READ_W 0x0030
1408#define OF_SHARE_DENY_NONE_W 0x0040
1409#define OF_PARSE_W 0x0100
1410#define OF_DELETE_W 0x0200
1411#define OF_VERIFY_W 0x0400 /* Used with OF_REOPEN */
1412#define OF_SEARCH_W 0x0400 /* Used without OF_REOPEN */
1413#define OF_CANCEL_W 0x0800
1414#define OF_CREATE_W 0x1000
1415#define OF_PROMPT_W 0x2000
1416#define OF_EXIST_W 0x4000
1417#define OF_REOPEN_W 0x8000
1418
1419#define HFILE_ERROR_W ((HFILE)-1)
1420
1421// LockFileEx flags
1422
1423#define LOCKFILE_FAIL_IMMEDIATELY_W 0x00000001
1424#define LOCKFILE_EXCLUSIVE_LOCK_W 0x00000002
1425
1426#define FILE_BEGIN_W 0
1427#define FILE_CURRENT_W 1
1428#define FILE_END_W 2
[3707]1429
1430/* Graphics Modes */
1431#define GM_COMPATIBLE_W 1
1432#define GM_ADVANCED_W 2
1433#define GM_LAST_W 2
1434
1435#define RDH_RECTANGLES_W 1
[4022]1436
1437//nls
1438#define MAKELANGID(p, s) ((((WORD)(s))<<10) | (WORD)(p))
1439
1440#define LANG_NEUTRAL 0x00
1441
1442/* Sublanguage definitions */
1443#define SUBLANG_NEUTRAL 0x00 /* language neutral */
1444#define SUBLANG_DEFAULT 0x01 /* user default */
1445#define SUBLANG_SYS_DEFAULT 0x02 /* system default */
[4556]1446
1447
1448/* Flags for ModifyWorldTransform */
1449#define MWT_IDENTITY_W 1
1450#define MWT_LEFTMULTIPLY_W 2
1451#define MWT_RIGHTMULTIPLY_W 3
1452
1453 /* Map modes */
1454#define MM_TEXT_W 1
1455#define MM_LOMETRIC_W 2
1456#define MM_HIMETRIC_W 3
1457#define MM_LOENGLISH_W 4
1458#define MM_HIENGLISH_W 5
1459#define MM_TWIPS_W 6
1460#define MM_ISOTROPIC_W 7
1461#define MM_ANISOTROPIC_W 8
[4761]1462
1463
1464#define DRIVE_UNKNOWN_W 0
1465#define DRIVE_NO_ROOT_DIR_W 1
1466#define DRIVE_CANNOTDETERMINE_W 0
1467#define DRIVE_DOESNOTEXIST_W 1
1468#define DRIVE_REMOVABLE_W 2
1469#define DRIVE_FIXED_W 3
1470#define DRIVE_REMOTE_W 4
1471/* Win32 additions */
1472#define DRIVE_CDROM_W 5
1473#define DRIVE_RAMDISK_W 6
[5156]1474
1475
1476/* GetWindow() constants */
1477#define GW_HWNDFIRST_W 0
1478#define GW_HWNDLAST_W 1
1479#define GW_HWNDNEXT_W 2
1480#define GW_HWNDPREV_W 3
1481#define GW_OWNER_W 4
1482#define GW_CHILD_W 5
[5244]1483
1484/* WM_NCCALCSIZE return flags */
1485#define WVR_ALIGNTOP_W 0x0010
1486#define WVR_ALIGNLEFT_W 0x0020
1487#define WVR_ALIGNBOTTOM_W 0x0040
1488#define WVR_ALIGNRIGHT_W 0x0080
1489#define WVR_HREDRAW_W 0x0100
1490#define WVR_VREDRAW_W 0x0200
1491#define WVR_REDRAW_W (WVR_HREDRAW_W | WVR_VREDRAW_W)
1492#define WVR_VALIDRECTS_W 0x0400
[6058]1493
1494
1495#define STATUS_WAIT_0_W 0x00000000
1496#define STATUS_ABANDONED_WAIT_0_W 0x00000080
1497#define STATUS_USER_APC_W 0x000000C0
1498#define STATUS_TIMEOUT_W 0x00000102
1499
1500#define WAIT_FAILED_W 0xffffffff
1501#define WAIT_OBJECT_0_W 0
1502#define WAIT_ABANDONED_W STATUS_ABANDONED_WAIT_0_W
1503#define WAIT_ABANDONED_0_W STATUS_ABANDONED_WAIT_0_W
1504#define WAIT_IO_COMPLETION_W STATUS_USER_APC_W
1505#define WAIT_TIMEOUT_W STATUS_TIMEOUT_W
[6930]1506
1507#define WM_NULL_W 0x0000
1508#define WM_CREATE_W 0x0001
1509#define WM_DESTROY_W 0x0002
1510#define WM_MOVE_W 0x0003
1511#define WM_SIZEWAIT_W 0x0004
1512#define WM_SIZE_W 0x0005
1513#define WM_ACTIVATE_W 0x0006
1514#define WM_SETFOCUS_W 0x0007
1515#define WM_KILLFOCUS_W 0x0008
1516#define WM_SETVISIBLE_W 0x0009
1517#define WM_ENABLE_W 0x000a
1518#define WM_SETREDRAW_W 0x000b
1519#define WM_SETTEXT_W 0x000c
1520#define WM_GETTEXT_W 0x000d
1521#define WM_GETTEXTLENGTH_W 0x000e
1522#define WM_PAINT_W 0x000f
1523#define WM_CLOSE_W 0x0010
1524#define WM_QUERYENDSESSION_W 0x0011
1525#define WM_QUIT_W 0x0012
1526#define WM_QUERYOPEN_W 0x0013
1527#define WM_ERASEBKGND_W 0x0014
1528#define WM_SYSCOLORCHANGE_W 0x0015
1529#define WM_ENDSESSION_W 0x0016
1530#define WM_SYSTEMERROR_W 0x0017
1531#define WM_SHOWWINDOW_W 0x0018
1532#define WM_CTLCOLOR_W 0x0019
1533#define WM_WININICHANGE_W 0x001a
1534#define WM_SETTINGCHANGE_W WM_WININICHANGE_W
1535#define WM_DEVMODECHANGE_W 0x001b
1536#define WM_ACTIVATEAPP_W 0x001c
1537#define WM_FONTCHANGE_W 0x001d
1538#define WM_TIMECHANGE_W 0x001e
1539#define WM_CANCELMODE_W 0x001f
1540#define WM_SETCURSOR_W 0x0020
1541#define WM_MOUSEACTIVATE_W 0x0021
1542#define WM_CHILDACTIVATE_W 0x0022
1543#define WM_QUEUESYNC_W 0x0023
1544#define WM_GETMINMAXINFO_W 0x0024
1545
1546#define WM_PAINTICON_W 0x0026
1547#define WM_ICONERASEBKGND_W 0x0027
1548#define WM_NEXTDLGCTL_W 0x0028
1549#define WM_ALTTABACTIVE_W 0x0029
1550#define WM_SPOOLERSTATUS_W 0x002a
1551#define WM_DRAWITEM_W 0x002b
1552#define WM_MEASUREITEM_W 0x002c
1553#define WM_DELETEITEM_W 0x002d
1554#define WM_VKEYTOITEM_W 0x002e
1555#define WM_CHARTOITEM_W 0x002f
1556#define WM_SETFONT_W 0x0030
1557#define WM_GETFONT_W 0x0031
1558#define WM_SETHOTKEY_W 0x0032
1559#define WM_GETHOTKEY_W 0x0033
1560#define WM_FILESYSCHANGE_W 0x0034
1561#define WM_ISACTIVEICON_W 0x0035
1562#define WM_QUERYPARKICON_W 0x0036
1563#define WM_QUERYDRAGICON_W 0x0037
1564#define WM_QUERYSAVESTATE_W 0x0038
1565#define WM_COMPAREITEM_W 0x0039
1566#define WM_TESTING_W 0x003a
1567#define WM_GETOBJECT_W 0x003D
1568
1569#define WM_OTHERWINDOWCREATED_W 0x003c
1570#define WM_OTHERWINDOWDESTROYED_W 0x003d
1571#define WM_ACTIVATESHELLWINDOW_W 0x003e
1572
1573#define WM_COMPACTING_W 0x0041
1574
1575#define WM_COMMNOTIFY_W 0x0044
1576#define WM_WINDOWPOSCHANGING_W 0x0046
1577#define WM_WINDOWPOSCHANGED_W 0x0047
1578#define WM_POWER_W 0x0048
1579
1580 /* Win32 4.0 messages */
1581#define WM_COPYDATA_W 0x004a
1582#define WM_CANCELJOURNAL_W 0x004b
1583#define WM_NOTIFY_W 0x004e
1584#define WM_INPUTLANGCHANGEREQUEST_W 0x0050
1585#define WM_INPUTLANGCHANGE_W 0x0051
1586#define WM_TCARD_W 0x0052
1587#define WM_HELP_W 0x0053
1588#define WM_USERCHANGED_W 0x0054
1589#define WM_HELP_W 0x0053
1590#define WM_NOTIFYFORMAT_W 0x0055
1591
1592#define WM_CONTEXTMENU_W 0x007b
1593#define WM_STYLECHANGING_W 0x007c
1594#define WM_STYLECHANGED_W 0x007d
1595#define WM_DISPLAYCHANGE_W 0x007e
1596#define WM_GETICON_W 0x007f
1597#define WM_SETICON_W 0x0080
1598
1599 /* Non-client system messages */
1600#define WM_NCCREATE_W 0x0081
1601#define WM_NCDESTROY_W 0x0082
1602#define WM_NCCALCSIZE_W 0x0083
1603#define WM_NCHITTEST_W 0x0084
1604#define WM_NCPAINT_W 0x0085
1605#define WM_NCACTIVATE_W 0x0086
1606
1607#define WM_GETDLGCODE_W 0x0087
1608#define WM_SYNCPAINT_W 0x0088
1609#define WM_SYNCTASK_W 0x0089
1610
1611 /* Non-client mouse messages */
1612#define WM_NCMOUSEMOVE_W 0x00a0
1613#define WM_NCLBUTTONDOWN_W 0x00a1
1614#define WM_NCLBUTTONUP_W 0x00a2
1615#define WM_NCLBUTTONDBLCLK_W 0x00a3
1616#define WM_NCRBUTTONDOWN_W 0x00a4
1617#define WM_NCRBUTTONUP_W 0x00a5
1618#define WM_NCRBUTTONDBLCLK_W 0x00a6
1619#define WM_NCMBUTTONDOWN_W 0x00a7
1620#define WM_NCMBUTTONUP_W 0x00a8
1621#define WM_NCMBUTTONDBLCLK_W 0x00a9
1622
1623 /* Keyboard messages */
1624#define WM_KEYDOWN_W 0x0100
1625#define WM_KEYUP_W 0x0101
1626#define WM_CHAR_W 0x0102
1627#define WM_DEADCHAR_W 0x0103
1628#define WM_SYSKEYDOWN_W 0x0104
1629#define WM_SYSKEYUP_W 0x0105
1630#define WM_SYSCHAR_W 0x0106
1631#define WM_SYSDEADCHAR_W 0x0107
1632#define WM_KEYFIRST_W WM_KEYDOWN_W
1633#define WM_KEYLAST_W 0x0108
1634
1635#define WM_IME_STARTCOMPOSITION_W 0x010D
1636#define WM_IME_ENDCOMPOSITION_W 0x010E
1637#define WM_IME_COMPOSITION_W 0x010F
1638#define WM_IME_KEYLAST_W 0x010F
1639
1640#define WM_INITDIALOG_W 0x0110
1641#define WM_COMMAND_W 0x0111
1642#define WM_SYSCOMMAND_W 0x0112
1643#define WM_TIMER_W 0x0113
1644#define WM_SYSTIMER_W 0x0118
1645
1646 /* scroll messages */
1647#define WM_HSCROLL_W 0x0114
1648#define WM_VSCROLL_W 0x0115
1649
1650/* Menu messages */
1651#define WM_INITMENU_W 0x0116
1652#define WM_INITMENUPOPUP_W 0x0117
1653
1654#define WM_MENUSELECT_W 0x011F
1655#define WM_MENUCHAR_W 0x0120
1656#define WM_ENTERIDLE_W 0x0121
1657#define WM_MENURBUTTONUP_W 0x0122
1658#define WM_MENUDRAG_W 0x0123
1659#define WM_MENUGETOBJECT_W 0x0124
1660#define WM_UNINITMENUPOPUP_W 0x0125
1661#define WM_MENUCOMMAND_W 0x0126
1662
1663#define WM_KEYBOARDCUES_W 0x0127
1664
1665#define WM_LBTRACKPOINT_W 0x0131
1666
1667 /* Win32 CTLCOLOR messages */
1668#define WM_CTLCOLORMSGBOX_W 0x0132
1669#define WM_CTLCOLOREDIT_W 0x0133
1670#define WM_CTLCOLORLISTBOX_W 0x0134
1671#define WM_CTLCOLORBTN_W 0x0135
1672#define WM_CTLCOLORDLG_W 0x0136
1673#define WM_CTLCOLORSCROLLBAR_W 0x0137
1674#define WM_CTLCOLORSTATIC_W 0x0138
1675
1676 /* Mouse messages */
1677#define WM_MOUSEMOVE_W 0x0200
1678#define WM_LBUTTONDOWN_W 0x0201
1679#define WM_LBUTTONUP_W 0x0202
1680#define WM_LBUTTONDBLCLK_W 0x0203
1681#define WM_RBUTTONDOWN_W 0x0204
1682#define WM_RBUTTONUP_W 0x0205
1683#define WM_RBUTTONDBLCLK_W 0x0206
1684#define WM_MBUTTONDOWN_W 0x0207
1685#define WM_MBUTTONUP_W 0x0208
1686#define WM_MBUTTONDBLCLK_W 0x0209
1687#define WM_MOUSEWHEEL_W 0x020A
1688#define WM_MOUSEFIRST_W WM_MOUSEMOVE_W
1689#define WM_MOUSELAST_W WM_MOUSEWHEEL_W
1690
1691#define WM_PARENTNOTIFY_W 0x0210
1692#define WM_ENTERMENULOOP_W 0x0211
1693#define WM_EXITMENULOOP_W 0x0212
1694#define WM_NEXTMENU_W 0x0213
1695
1696 /* Win32 4.0 messages */
1697#define WM_SIZING_W 0x0214
1698#define WM_CAPTURECHANGED_W 0x0215
1699#define WM_MOVING_W 0x0216
1700
1701#define WM_POWERBROADCAST_W 0x0218
1702#define WM_DEVICECHANGE_W 0x0219
1703
1704/* wParam for WM_SIZING message */
1705#define WMSZ_LEFT_W 1
1706#define WMSZ_RIGHT_W 2
1707#define WMSZ_TOP_W 3
1708#define WMSZ_TOPLEFT_W 4
1709#define WMSZ_TOPRIGHT_W 5
1710#define WMSZ_BOTTOM_W 6
1711#define WMSZ_BOTTOMLEFT_W 7
1712#define WMSZ_BOTTOMRIGHT_W 8
1713
1714 /* MDI messages */
1715#define WM_MDICREATE_W 0x0220
1716#define WM_MDIDESTROY_W 0x0221
1717#define WM_MDIACTIVATE_W 0x0222
1718#define WM_MDIRESTORE_W 0x0223
1719#define WM_MDINEXT_W 0x0224
1720#define WM_MDIMAXIMIZE_W 0x0225
1721#define WM_MDITILE_W 0x0226
1722#define WM_MDICASCADE_W 0x0227
1723#define WM_MDIICONARRANGE_W 0x0228
1724#define WM_MDIGETACTIVE_W 0x0229
1725#define WM_MDIREFRESHMENU_W 0x0234
1726
1727 /* D&D messages */
1728#define WM_DROPOBJECT_W 0x022A
1729#define WM_QUERYDROPOBJECT_W 0x022B
1730#define WM_BEGINDRAG_W 0x022C
1731#define WM_DRAGLOOP_W 0x022D
1732#define WM_DRAGSELECT_W 0x022E
1733#define WM_DRAGMOVE_W 0x022F
1734#define WM_MDISETMENU_W 0x0230
1735
1736#define WM_ENTERSIZEMOVE_W 0x0231
1737#define WM_EXITSIZEMOVE_W 0x0232
1738#define WM_DROPFILES_W 0x0233
1739
1740#define WM_IME_SETCONTEXT_W 0x0281
1741#define WM_IME_NOTIFY_W 0x0282
1742#define WM_IME_CONTROL_W 0x0283
1743#define WM_IME_COMPOSITIONFULL_W 0x0284
1744#define WM_IME_SELECT_W 0x0285
1745#define WM_IME_CHAR_W 0x0286
1746#define WM_IME_REQUEST_W 0x0288
1747#define WM_IME_KEYDOWN_W 0x0290
1748#define WM_IME_KEYUP_W 0x0291
1749
1750#define WM_MOUSEHOVER_W 0x02A1
1751#define WM_MOUSELEAVE_W 0x02A3
1752#define WM_NCMOUSEHOVER_W 0x02A0
1753#define WM_NCMOUSELEAVE_W 0x02A2
1754
1755#define WM_CUT_W 0x0300
1756#define WM_COPY_W 0x0301
1757#define WM_PASTE_W 0x0302
1758#define WM_CLEAR_W 0x0303
1759#define WM_UNDO_W 0x0304
1760#define WM_RENDERFORMAT_W 0x0305
1761#define WM_RENDERALLFORMATS_W 0x0306
1762#define WM_DESTROYCLIPBOARD_W 0x0307
1763#define WM_DRAWCLIPBOARD_W 0x0308
1764#define WM_PAINTCLIPBOARD_W 0x0309
1765#define WM_VSCROLLCLIPBOARD_W 0x030A
1766#define WM_SIZECLIPBOARD_W 0x030B
1767#define WM_ASKCBFORMATNAME_W 0x030C
1768#define WM_CHANGECBCHAIN_W 0x030D
1769#define WM_HSCROLLCLIPBOARD_W 0x030E
1770#define WM_QUERYNEWPALETTE_W 0x030F
1771#define WM_PALETTEISCHANGING_W 0x0310
1772#define WM_PALETTECHANGED_W 0x0311
1773#define WM_HOTKEY_W 0x0312
1774
1775#define WM_PRINT_W 0x0317
1776#define WM_PRINTCLIENT_W 0x0318
1777
1778#define WM_HANDHELDFIRST_W 0x0358
1779#define WM_HANDHELDLAST_W 0x035F
1780
1781#define WM_AFXFIRST_W 0x0360
1782#define WM_FORWARDMSG_W 0x037F
1783#define WM_AFXLAST_W 0x037F
1784
1785#define WM_PENWINFIRST_W 0x0380
1786#define WM_PENWINLAST_W 0x038F
1787
1788#define WM_APP_W 0x8000
[7194]1789
1790 /* GetSystemMetrics() codes */
1791#define SM_CXSCREEN_W 0
1792#define SM_CYSCREEN_W 1
1793#define SM_CXVSCROLL_W 2
1794#define SM_CYHSCROLL_W 3
1795#define SM_CYCAPTION_W 4
1796#define SM_CXBORDER_W 5
1797#define SM_CYBORDER_W 6
1798#define SM_CXDLGFRAME_W 7
1799#define SM_CYDLGFRAME_W 8
1800#define SM_CYVTHUMB_W 9
1801#define SM_CXHTHUMB_W 10
1802#define SM_CXICON_W 11
1803#define SM_CYICON_W 12
1804#define SM_CXCURSOR_W 13
1805#define SM_CYCURSOR_W 14
1806#define SM_CYMENU_W 15
1807#define SM_CXFULLSCREEN_W 16
1808#define SM_CYFULLSCREEN_W 17
1809#define SM_CYKANJIWINDOW_W 18
1810#define SM_MOUSEPRESENT_W 19
1811#define SM_CYVSCROLL_W 20
1812#define SM_CXHSCROLL_W 21
1813#define SM_DEBUG_W 22
1814#define SM_SWAPBUTTON_W 23
1815#define SM_RESERVED1_W 24
1816#define SM_RESERVED2_W 25
1817#define SM_RESERVED3_W 26
1818#define SM_RESERVED4_W 27
1819#define SM_CXMIN_W 28
1820#define SM_CYMIN_W 29
1821#define SM_CXSIZE_W 30
1822#define SM_CYSIZE_W 31
1823#define SM_CXFRAME_W 32
1824#define SM_CYFRAME_W 33
1825#define SM_CXMINTRACK_W 34
1826#define SM_CYMINTRACK_W 35
1827#define SM_CXDOUBLECLK_W 36
1828#define SM_CYDOUBLECLK_W 37
1829#define SM_CXICONSPACING_W 38
1830#define SM_CYICONSPACING_W 39
1831#define SM_MENUDROPALIGNMENT_W 40
1832#define SM_PENWINDOWS_W 41
1833#define SM_DBCSENABLED_W 42
1834#define SM_CMOUSEBUTTONS_W 43
1835#define SM_CXFIXEDFRAME_W SM_CXDLGFRAME_W
1836#define SM_CYFIXEDFRAME_W SM_CYDLGFRAME_W
1837#define SM_CXSIZEFRAME_W SM_CXFRAME_W
1838#define SM_CYSIZEFRAME_W SM_CYFRAME_W
1839#define SM_SECURE_W 44
1840#define SM_CXEDGE_W 45
1841#define SM_CYEDGE_W 46
1842#define SM_CXMINSPACING_W 47
1843#define SM_CYMINSPACING_W 48
1844#define SM_CXSMICON_W 49
1845#define SM_CYSMICON_W 50
1846#define SM_CYSMCAPTION_W 51
1847#define SM_CXSMSIZE_W 52
1848#define SM_CYSMSIZE_W 53
1849#define SM_CXMENUSIZE_W 54
1850#define SM_CYMENUSIZE_W 55
1851#define SM_ARRANGE_W 56
1852#define SM_CXMINIMIZED_W 57
1853#define SM_CYMINIMIZED_W 58
1854#define SM_CXMAXTRACK_W 59
1855#define SM_CYMAXTRACK_W 60
1856#define SM_CXMAXIMIZED_W 61
1857#define SM_CYMAXIMIZED_W 62
1858#define SM_NETWORK_W 63
1859#define SM_CLEANBOOT_W 67
1860#define SM_CXDRAG_W 68
1861#define SM_CYDRAG_W 69
1862#define SM_SHOWSOUNDS_W 70
1863#define SM_CXMENUCHECK_W 71
1864#define SM_CYMENUCHECK_W 72
1865#define SM_SLOWMACHINE_W 73
1866#define SM_MIDEASTENABLED_W 74
1867#define SM_MOUSEWHEELPRESENT_W 75
1868#define SM_XVIRTUALSCREEN_W 76
1869#define SM_YVIRTUALSCREEN_W 77
1870#define SM_CXVIRTUALSCREEN_W 78
1871#define SM_CYVIRTUALSCREEN_W 79
1872#define SM_CMONITORS_W 80
1873#define SM_SAMEDISPLAYFORMAT_W 81
1874#define SM_CMETRICS_W 83
1875
[7204]1876#define SEM_FAILCRITICALERRORS_W 0x0001
1877#define SEM_NOGPFAULTERRORBOX_W 0x0002
1878#define SEM_NOALIGNMENTFAULTEXCEPT_W 0x0004
1879#define SEM_NOOPENFILEERRORBOX_W 0x8000
1880
[7533]1881
1882#define THREAD_BASE_PRIORITY_LOWRT_W 15
1883#define THREAD_BASE_PRIORITY_MAX_W 2
1884#define THREAD_BASE_PRIORITY_MIN_W -2
1885#define THREAD_BASE_PRIORITY_IDLE_W -15
1886
1887#define THREAD_PRIORITY_LOWEST_W THREAD_BASE_PRIORITY_MIN_W
1888#define THREAD_PRIORITY_BELOW_NORMAL_W (THREAD_PRIORITY_LOWEST_W+1)
1889#define THREAD_PRIORITY_NORMAL_W 0
1890#define THREAD_PRIORITY_HIGHEST_W THREAD_BASE_PRIORITY_MAX_W
1891#define THREAD_PRIORITY_ABOVE_NORMAL_W (THREAD_PRIORITY_HIGHEST_W-1)
1892#define THREAD_PRIORITY_ERROR_RETURN_W (0x7fffffff)
1893#define THREAD_PRIORITY_TIME_CRITICAL_W THREAD_BASE_PRIORITY_LOWRT_W
1894#define THREAD_PRIORITY_IDLE_W THREAD_BASE_PRIORITY_IDLE_W
1895
1896/* CreateProcess: dwCreationFlag values
1897 */
1898#define DEBUG_PROCESS_W 0x00000001
1899#define DEBUG_ONLY_THIS_PROCESS_W 0x00000002
1900#define CREATE_SUSPENDED_W 0x00000004
1901#define DETACHED_PROCESS_W 0x00000008
1902#define CREATE_NEW_CONSOLE_W 0x00000010
1903#define NORMAL_PRIORITY_CLASS_W 0x00000020
1904#define IDLE_PRIORITY_CLASS_W 0x00000040
1905#define HIGH_PRIORITY_CLASS_W 0x00000080
1906#define REALTIME_PRIORITY_CLASS_W 0x00000100
1907#define CREATE_NEW_PROCESS_GROUP_W 0x00000200
1908#define CREATE_UNICODE_ENVIRONMENT_W 0x00000400
1909#define CREATE_SEPARATE_WOW_VDM_W 0x00000800
1910#define CREATE_SHARED_WOW_VDM_W 0x00001000
1911#define CREATE_DEFAULT_ERROR_MODE_W 0x04000000
1912#define CREATE_NO_WINDOW_W 0x08000000
1913#define PROFILE_USER_W 0x10000000
1914#define PROFILE_KERNEL_W 0x20000000
1915#define PROFILE_SERVER_W 0x40000000
1916
[8345]1917#define COLOR_SCROLLBAR_W 0
1918#define COLOR_BACKGROUND_W 1
1919#define COLOR_ACTIVECAPTION_W 2
1920#define COLOR_INACTIVECAPTION_W 3
1921#define COLOR_MENU_W 4
1922#define COLOR_WINDOW_W 5
1923#define COLOR_WINDOWFRAME_W 6
1924#define COLOR_MENUTEXT_W 7
1925#define COLOR_WINDOWTEXT_W 8
1926#define COLOR_CAPTIONTEXT_W 9
1927#define COLOR_ACTIVEBORDER_W 10
1928#define COLOR_INACTIVEBORDER_W 11
1929#define COLOR_APPWORKSPACE_W 12
1930#define COLOR_HIGHLIGHT_W 13
1931#define COLOR_HIGHLIGHTTEXT_W 14
1932#define COLOR_BTNFACE_W 15
1933#define COLOR_BTNSHADOW_W 16
1934#define COLOR_GRAYTEXT_W 17
1935#define COLOR_BTNTEXT_W 18
1936#define COLOR_INACTIVECAPTIONTEXT_W 19
1937#define COLOR_BTNHIGHLIGHT_W 20
1938#define COLOR_3DDKSHADOW_W 21
1939#define COLOR_3DLIGHT_W 22
1940#define COLOR_INFOTEXT_W 23
1941#define COLOR_INFOBK_W 24
1942#define COLOR_DESKTOP_W COLOR_BACKGROUND_W
1943#define COLOR_3DFACE_W COLOR_BTNFACE_W
1944#define COLOR_3DSHADOW_W COLOR_BTNSHADOW_W
1945#define COLOR_3DHIGHLIGHT_W COLOR_BTNHIGHLIGHT_W
1946#define COLOR_3DHILIGHT_W COLOR_BTNHIGHLIGHT_W
1947#define COLOR_BTNHILIGHT_W COLOR_BTNHIGHLIGHT_W
1948#define COLOR_ALTERNATEBTNFACE_W 25 /* undocumented, constant's name unknown */
1949#define COLOR_HOTLIGHT_W 26
1950#define COLOR_GRADIENTACTIVECAPTION_W 27
1951#define COLOR_GRADIENTINACTIVECAPTION_W 28
1952
[8539]1953/* Offsets for GetWindowLong() and GetWindowWord() */
1954#define GWL_USERDATA_W (-21)
1955#define GWL_EXSTYLE_W (-20)
1956#define GWL_STYLE_W (-16)
1957#define GWW_ID_W (-12)
1958#define GWL_ID_W GWW_ID_W
1959#define GWW_HWNDPARENT_W (-8)
1960#define GWL_HWNDPARENT_W GWW_HWNDPARENT_W
1961#define GWW_HINSTANCE_W (-6)
1962#define GWL_HINSTANCE_W GWW_HINSTANCE_W
1963#define GWL_WNDPROC_W (-4)
1964#define DWL_MSGRESULT_W 0
1965#define DWL_DLGPROC_W 4
1966#define DWL_USER_W 8
1967
[8551]1968//OLE drag & drop constants
1969#define DROPEFFECT_NONE_W 0
1970#define DROPEFFECT_COPY_W 1
1971#define DROPEFFECT_MOVE_W 2
1972#define DROPEFFECT_LINK_W 4
1973#define DROPEFFECT_SCROLL_W 0x80000000
1974
[8833]1975#define MB_OK_W 0x00000000
1976#define MB_OKCANCEL_W 0x00000001
1977#define MB_ABORTRETRYIGNORE_W 0x00000002
1978#define MB_YESNOCANCEL_W 0x00000003
1979#define MB_YESNO_W 0x00000004
1980#define MB_RETRYCANCEL_W 0x00000005
1981#define MB_TYPEMASK_W 0x0000000F
1982
1983#define MB_ICONHAND_W 0x00000010
1984#define MB_ICONQUESTION_W 0x00000020
1985#define MB_ICONEXCLAMATION_W 0x00000030
1986#define MB_ICONASTERISK_W 0x00000040
1987#define MB_USERICON_W 0x00000080
1988#define MB_ICONMASK_W 0x000000F0
1989
1990#define MB_ICONINFORMATION_W MB_ICONASTERISK
1991#define MB_ICONSTOP_W MB_ICONHAND
1992#define MB_ICONWARNING_W MB_ICONEXCLAMATION
1993#define MB_ICONERROR_W MB_ICONHAND
1994
1995/* Standard dialog button IDs */
1996#define IDOK_W 1
1997#define IDCANCEL_W 2
1998#define IDABORT_W 3
1999#define IDRETRY_W 4
2000#define IDIGNORE_W 5
2001#define IDYES_W 6
2002#define IDNO_W 7
2003#define IDCLOSE_W 8
2004#define IDHELP_W 9
2005
[9158]2006/* wParam for WM_POWERBROADCAST */
2007#define PBT_APMQUERYSUSPEND_W 0x0000
2008#define PBT_APMQUERYSTANDBY_W 0x0001
2009#define PBT_APMQUERYSUSPENDFAILED_W 0x0002
2010#define PBT_APMQUERYSTANDBYFAILED_W 0x0003
2011#define PBT_APMSUSPEND_W 0x0004
2012#define PBT_APMSTANDBY_W 0x0005
2013#define PBT_APMRESUMECRITICAL_W 0x0006
2014#define PBT_APMRESUMESUSPEND_W 0x0007
2015#define PBT_APMRESUMESTANDBY_W 0x0008
2016#define PBTF_APMRESUMEFROMFAILURE_W 0x0001
2017#define PBT_APMBATTERYLOW_W 0x0009
2018#define PBT_APMPOWERSTATUSCHANGE_W 0x000A
2019#define PBT_APMOEMEVENT_W 0x000B
2020#define PBT_APMRESUMEAUTOMATIC_W 0x0012
2021
[9935]2022#define CTRL_C_EVENT_W 0
2023#define CTRL_BREAK_EVENT_W 1
2024#define CTRL_CLOSE_EVENT_W 2
2025#define CTRL_LOGOFF_EVENT_W 5
2026#define CTRL_SHUTDOWN_EVENT_W 6
2027
[10294]2028/* Object Definitions for EnumObjects() */
2029#define OBJ_PEN_W 1
2030#define OBJ_BRUSH_W 2
2031#define OBJ_DC_W 3
2032#define OBJ_METADC_W 4
2033#define OBJ_PAL_W 5
2034#define OBJ_FONT_W 6
2035#define OBJ_BITMAP_W 7
2036#define OBJ_REGION_W 8
2037#define OBJ_METAFILE_W 9
2038#define OBJ_MEMDC_W 10
2039#define OBJ_EXTPEN_W 11
2040#define OBJ_ENHMETADC_W 12
2041#define OBJ_ENHMETAFILE_W 13
2042
[10316]2043#define PS_SOLID_W 0x00000000
2044#define PS_DASH_W 0x00000001
2045#define PS_DOT_W 0x00000002
2046#define PS_DASHDOT_W 0x00000003
2047#define PS_DASHDOTDOT_W 0x00000004
2048#define PS_NULL_W 0x00000005
2049#define PS_INSIDEFRAME_W 0x00000006
2050#define PS_USERSTYLE_W 0x00000007
2051#define PS_ALTERNATE_W 0x00000008
2052#define PS_STYLE_MASK_W 0x0000000f
2053
2054/* DC Graphics Mode */
2055#define GM_COMPATIBLE_W 1
2056#define GM_ADVANCED_W 2
2057
2058#define DCX_WINDOW_W 0x00000001L
2059#define DCX_CACHE_W 0x00000002L
2060#define DCX_NORESETATTRS_W 0x00000004L
2061#define DCX_CLIPCHILDREN_W 0x00000008L
2062#define DCX_CLIPSIBLINGS_W 0x00000010L
2063#define DCX_PARENTCLIP_W 0x00000020L
2064#define DCX_EXCLUDERGN_W 0x00000040L
2065#define DCX_INTERSECTRGN_W 0x00000080L
2066#define DCX_EXCLUDEUPDATE_W 0x00000100L
2067#define DCX_INTERSECTUPDATE_W 0x00000200L
2068#define DCX_LOCKWINDOWUPDATE_W 0x00000400L
2069#define DCX_USESTYLE_W 0x00010000L
2070#define DCX_VALIDATE_W 0x00200000L
2071
2072#define RDW_INVALIDATE_W 0x0001
2073#define RDW_INTERNALPAINT_W 0x0002
2074#define RDW_ERASE_W 0x0004
2075#define RDW_VALIDATE_W 0x0008
2076#define RDW_NOINTERNALPAINT_W 0x0010
2077#define RDW_NOERASE_W 0x0020
2078#define RDW_NOCHILDREN_W 0x0040
2079#define RDW_ALLCHILDREN_W 0x0080
2080#define RDW_UPDATENOW_W 0x0100
2081#define RDW_ERASENOW_W 0x0200
2082#define RDW_FRAME_W 0x0400
2083#define RDW_NOFRAME_W 0x0800
2084/* Xform FLAGS */
2085#define MWT_IDENTITY_W 1
2086#define MWT_LEFTMULTIPLY_W 2
2087#define MWT_RIGHTMULTIPLY_W 3
2088
2089/* Mapping Modes */
2090#define MM_TEXT_W 1
2091#define MM_LOMETRIC_W 2
2092#define MM_HIMETRIC_W 3
2093#define MM_LOENGLISH_W 4
2094#define MM_HIENGLISH_W 5
2095#define MM_TWIPS_W 6
2096#define MM_ISOTROPIC_W 7
2097#define MM_ANISOTROPIC_W 8
2098
2099#define RGN_OR_W 2
2100
2101/* Window scrolling */
2102#define SW_SCROLLCHILDREN_W 0x0001
2103#define SW_INVALIDATE_W 0x0002
2104#define SW_ERASE_W 0x0004
2105#define SW_SMOOTHSCROLL_W 0x0010
2106
[7194]2107#endif //__WINCONST_H__
Note: See TracBrowser for help on using the repository browser.