source: trunk/include/winconst.h@ 7548

Last change on this file since 7548 was 7548, checked in by sandervl, 24 years ago

header update

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