Added several file server requests
[wine.git] / include / windows.h
blob2a08332ed094378ac070455b17f6c1d1029db04f
1 #ifndef __WINE_WINDOWS_H
2 #define __WINE_WINDOWS_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #ifndef RC_INVOKED
9 #include <stdarg.h>
10 #endif
12 #include "wintypes.h"
14 /* FIXME: Maybe we should try to get something from the Unix headers instead, this should be in windef.h by the way */
15 #define MAX_PATH 260
17 #ifndef DONT_INCLUDE_WINGDI
18 #include "winbase.h"
19 #include "wingdi.h"
20 #include "winuser.h"
21 #endif /* DONT_INCLUDE_WINGDI */
23 #pragma pack(1)
25 typedef struct tagCOORD {
26 INT16 x;
27 INT16 y;
28 } COORD, *LPCOORD;
31 /* Windows */
33 typedef struct
35 LPVOID lpCreateParams;
36 HINSTANCE16 hInstance;
37 HMENU16 hMenu;
38 HWND16 hwndParent;
39 INT16 cy;
40 INT16 cx;
41 INT16 y;
42 INT16 x;
43 LONG style WINE_PACKED;
44 SEGPTR lpszName WINE_PACKED;
45 SEGPTR lpszClass WINE_PACKED;
46 DWORD dwExStyle WINE_PACKED;
47 } CREATESTRUCT16, *LPCREATESTRUCT16;
49 typedef struct
51 LPVOID lpCreateParams;
52 HINSTANCE32 hInstance;
53 HMENU32 hMenu;
54 HWND32 hwndParent;
55 INT32 cy;
56 INT32 cx;
57 INT32 y;
58 INT32 x;
59 LONG style;
60 LPCSTR lpszName;
61 LPCSTR lpszClass;
62 DWORD dwExStyle;
63 } CREATESTRUCT32A, *LPCREATESTRUCT32A;
65 typedef struct
67 LPVOID lpCreateParams;
68 HINSTANCE32 hInstance;
69 HMENU32 hMenu;
70 HWND32 hwndParent;
71 INT32 cy;
72 INT32 cx;
73 INT32 y;
74 INT32 x;
75 LONG style;
76 LPCWSTR lpszName;
77 LPCWSTR lpszClass;
78 DWORD dwExStyle;
79 } CREATESTRUCT32W, *LPCREATESTRUCT32W;
81 DECL_WINELIB_TYPE_AW(CREATESTRUCT)
82 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT)
84 typedef struct
86 HMENU16 hWindowMenu;
87 UINT16 idFirstChild;
88 } CLIENTCREATESTRUCT16, *LPCLIENTCREATESTRUCT16;
90 typedef struct
92 HMENU32 hWindowMenu;
93 UINT32 idFirstChild;
94 } CLIENTCREATESTRUCT32, *LPCLIENTCREATESTRUCT32;
96 DECL_WINELIB_TYPE(CLIENTCREATESTRUCT)
97 DECL_WINELIB_TYPE(LPCLIENTCREATESTRUCT)
99 typedef struct
101 SEGPTR szClass;
102 SEGPTR szTitle;
103 HINSTANCE16 hOwner;
104 INT16 x;
105 INT16 y;
106 INT16 cx;
107 INT16 cy;
108 DWORD style WINE_PACKED;
109 LPARAM lParam WINE_PACKED;
110 } MDICREATESTRUCT16, *LPMDICREATESTRUCT16;
112 typedef struct
114 LPCSTR szClass;
115 LPCSTR szTitle;
116 HINSTANCE32 hOwner;
117 INT32 x;
118 INT32 y;
119 INT32 cx;
120 INT32 cy;
121 DWORD style;
122 LPARAM lParam;
123 } MDICREATESTRUCT32A, *LPMDICREATESTRUCT32A;
125 typedef struct
127 LPCWSTR szClass;
128 LPCWSTR szTitle;
129 HINSTANCE32 hOwner;
130 INT32 x;
131 INT32 y;
132 INT32 cx;
133 INT32 cy;
134 DWORD style;
135 LPARAM lParam;
136 } MDICREATESTRUCT32W, *LPMDICREATESTRUCT32W;
138 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT)
139 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT)
141 #define MDITILE_VERTICAL 0x0000
142 #define MDITILE_HORIZONTAL 0x0001
143 #define MDITILE_SKIPDISABLED 0x0002
145 #define MDIS_ALLCHILDSTYLES 0x0001
147 typedef struct {
148 DWORD styleOld;
149 DWORD styleNew;
150 } STYLESTRUCT, *LPSTYLESTRUCT;
152 /* Offsets for GetWindowLong() and GetWindowWord() */
153 #define GWL_USERDATA (-21)
154 #define GWL_EXSTYLE (-20)
155 #define GWL_STYLE (-16)
156 #define GWW_ID (-12)
157 #define GWL_ID GWW_ID
158 #define GWW_HWNDPARENT (-8)
159 #define GWL_HWNDPARENT GWW_HWNDPARENT
160 #define GWW_HINSTANCE (-6)
161 #define GWL_HINSTANCE GWW_HINSTANCE
162 #define GWL_WNDPROC (-4)
163 #define DWL_MSGRESULT 0
164 #define DWL_DLGPROC 4
165 #define DWL_USER 8
167 /* GetWindow() constants */
168 #define GW_HWNDFIRST 0
169 #define GW_HWNDLAST 1
170 #define GW_HWNDNEXT 2
171 #define GW_HWNDPREV 3
172 #define GW_OWNER 4
173 #define GW_CHILD 5
175 /* WM_GETMINMAXINFO struct */
176 typedef struct
178 POINT16 ptReserved;
179 POINT16 ptMaxSize;
180 POINT16 ptMaxPosition;
181 POINT16 ptMinTrackSize;
182 POINT16 ptMaxTrackSize;
183 } MINMAXINFO16;
185 typedef struct
187 POINT32 ptReserved;
188 POINT32 ptMaxSize;
189 POINT32 ptMaxPosition;
190 POINT32 ptMinTrackSize;
191 POINT32 ptMaxTrackSize;
192 } MINMAXINFO32;
194 DECL_WINELIB_TYPE(MINMAXINFO)
196 /* RedrawWindow() flags */
197 #define RDW_INVALIDATE 0x0001
198 #define RDW_INTERNALPAINT 0x0002
199 #define RDW_ERASE 0x0004
200 #define RDW_VALIDATE 0x0008
201 #define RDW_NOINTERNALPAINT 0x0010
202 #define RDW_NOERASE 0x0020
203 #define RDW_NOCHILDREN 0x0040
204 #define RDW_ALLCHILDREN 0x0080
205 #define RDW_UPDATENOW 0x0100
206 #define RDW_ERASENOW 0x0200
207 #define RDW_FRAME 0x0400
208 #define RDW_NOFRAME 0x0800
210 /* debug flags */
211 #define DBGFILL_ALLOC 0xfd
212 #define DBGFILL_FREE 0xfb
213 #define DBGFILL_BUFFER 0xf9
214 #define DBGFILL_STACK 0xf7
216 /* WM_WINDOWPOSCHANGING/CHANGED struct */
217 typedef struct
219 HWND16 hwnd;
220 HWND16 hwndInsertAfter;
221 INT16 x;
222 INT16 y;
223 INT16 cx;
224 INT16 cy;
225 UINT16 flags;
226 } WINDOWPOS16, *LPWINDOWPOS16;
228 typedef struct
230 HWND32 hwnd;
231 HWND32 hwndInsertAfter;
232 INT32 x;
233 INT32 y;
234 INT32 cx;
235 INT32 cy;
236 UINT32 flags;
237 } WINDOWPOS32, *LPWINDOWPOS32;
239 DECL_WINELIB_TYPE(WINDOWPOS)
240 DECL_WINELIB_TYPE(LPWINDOWPOS)
242 /* SetWindowPlacement() struct */
243 typedef struct
245 UINT16 length;
246 UINT16 flags;
247 UINT16 showCmd;
248 POINT16 ptMinPosition WINE_PACKED;
249 POINT16 ptMaxPosition WINE_PACKED;
250 RECT16 rcNormalPosition WINE_PACKED;
251 } WINDOWPLACEMENT16, *LPWINDOWPLACEMENT16;
253 typedef struct
255 UINT32 length;
256 UINT32 flags;
257 UINT32 showCmd;
258 POINT32 ptMinPosition WINE_PACKED;
259 POINT32 ptMaxPosition WINE_PACKED;
260 RECT32 rcNormalPosition WINE_PACKED;
261 } WINDOWPLACEMENT32, *LPWINDOWPLACEMENT32;
263 DECL_WINELIB_TYPE(WINDOWPLACEMENT)
264 DECL_WINELIB_TYPE(LPWINDOWPLACEMENT)
266 /* WINDOWPLACEMENT flags */
267 #define WPF_SETMINPOSITION 0x0001
268 #define WPF_RESTORETOMAXIMIZED 0x0002
270 /* WM_MOUSEACTIVATE return values */
271 #define MA_ACTIVATE 1
272 #define MA_ACTIVATEANDEAT 2
273 #define MA_NOACTIVATE 3
274 #define MA_NOACTIVATEANDEAT 4
276 /* WM_ACTIVATE wParam values */
277 #define WA_INACTIVE 0
278 #define WA_ACTIVE 1
279 #define WA_CLICKACTIVE 2
281 /* WM_NCCALCSIZE parameter structure */
282 typedef struct
284 RECT16 rgrc[3];
285 SEGPTR lppos;
286 } NCCALCSIZE_PARAMS16, *LPNCCALCSIZE_PARAMS16;
288 typedef struct
290 RECT32 rgrc[3];
291 WINDOWPOS32 *lppos;
292 } NCCALCSIZE_PARAMS32, *LPNCCALCSIZE_PARAMS32;
294 DECL_WINELIB_TYPE(NCCALCSIZE_PARAMS)
295 DECL_WINELIB_TYPE(LPNCCALCSIZE_PARAMS)
297 /* WM_NCCALCSIZE return flags */
298 #define WVR_ALIGNTOP 0x0010
299 #define WVR_ALIGNLEFT 0x0020
300 #define WVR_ALIGNBOTTOM 0x0040
301 #define WVR_ALIGNRIGHT 0x0080
302 #define WVR_HREDRAW 0x0100
303 #define WVR_VREDRAW 0x0200
304 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
305 #define WVR_VALIDRECTS 0x0400
307 /* WM_NCHITTEST return codes */
308 #define HTERROR (-2)
309 #define HTTRANSPARENT (-1)
310 #define HTNOWHERE 0
311 #define HTCLIENT 1
312 #define HTCAPTION 2
313 #define HTSYSMENU 3
314 #define HTSIZE 4
315 #define HTMENU 5
316 #define HTHSCROLL 6
317 #define HTVSCROLL 7
318 #define HTMINBUTTON 8
319 #define HTMAXBUTTON 9
320 #define HTLEFT 10
321 #define HTRIGHT 11
322 #define HTTOP 12
323 #define HTTOPLEFT 13
324 #define HTTOPRIGHT 14
325 #define HTBOTTOM 15
326 #define HTBOTTOMLEFT 16
327 #define HTBOTTOMRIGHT 17
328 #define HTBORDER 18
329 #define HTGROWBOX HTSIZE
330 #define HTREDUCE HTMINBUTTON
331 #define HTZOOM HTMAXBUTTON
332 #define HTOBJECT 19
333 #define HTCLOSE 20
334 #define HTHELP 21
335 #define HTSIZEFIRST HTLEFT
336 #define HTSIZELAST HTBOTTOMRIGHT
338 /* WM_SYSCOMMAND parameters */
339 #ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */
340 #undef SC_SIZE
341 #endif
342 #define SC_SIZE 0xf000
343 #define SC_MOVE 0xf010
344 #define SC_MINIMIZE 0xf020
345 #define SC_MAXIMIZE 0xf030
346 #define SC_NEXTWINDOW 0xf040
347 #define SC_PREVWINDOW 0xf050
348 #define SC_CLOSE 0xf060
349 #define SC_VSCROLL 0xf070
350 #define SC_HSCROLL 0xf080
351 #define SC_MOUSEMENU 0xf090
352 #define SC_KEYMENU 0xf100
353 #define SC_ARRANGE 0xf110
354 #define SC_RESTORE 0xf120
355 #define SC_TASKLIST 0xf130
356 #define SC_SCREENSAVE 0xf140
357 #define SC_HOTKEY 0xf150
359 /****** Window classes ******/
361 typedef struct
363 UINT16 style;
364 WNDPROC16 lpfnWndProc WINE_PACKED;
365 INT16 cbClsExtra;
366 INT16 cbWndExtra;
367 HANDLE16 hInstance;
368 HICON16 hIcon;
369 HCURSOR16 hCursor;
370 HBRUSH16 hbrBackground;
371 SEGPTR lpszMenuName WINE_PACKED;
372 SEGPTR lpszClassName WINE_PACKED;
373 } WNDCLASS16, *LPWNDCLASS16;
375 typedef struct
377 UINT32 style;
378 WNDPROC32 lpfnWndProc;
379 INT32 cbClsExtra;
380 INT32 cbWndExtra;
381 HINSTANCE32 hInstance;
382 HICON32 hIcon;
383 HCURSOR32 hCursor;
384 HBRUSH32 hbrBackground;
385 LPCSTR lpszMenuName;
386 LPCSTR lpszClassName;
387 } WNDCLASS32A, *LPWNDCLASS32A;
389 typedef struct
391 UINT32 style;
392 WNDPROC32 lpfnWndProc;
393 INT32 cbClsExtra;
394 INT32 cbWndExtra;
395 HINSTANCE32 hInstance;
396 HICON32 hIcon;
397 HCURSOR32 hCursor;
398 HBRUSH32 hbrBackground;
399 LPCWSTR lpszMenuName;
400 LPCWSTR lpszClassName;
401 } WNDCLASS32W, *LPWNDCLASS32W;
403 DECL_WINELIB_TYPE_AW(WNDCLASS)
404 DECL_WINELIB_TYPE_AW(LPWNDCLASS)
406 typedef struct
408 UINT32 cbSize;
409 UINT32 style;
410 WNDPROC16 lpfnWndProc;
411 INT16 cbClsExtra;
412 INT16 cbWndExtra;
413 HANDLE16 hInstance;
414 HICON16 hIcon;
415 HCURSOR16 hCursor;
416 HBRUSH16 hbrBackground;
417 SEGPTR lpszMenuName;
418 SEGPTR lpszClassName;
419 HICON16 hIconSm;
420 } WNDCLASSEX16, *LPWNDCLASSEX16;
422 typedef struct
424 UINT32 cbSize;
425 UINT32 style;
426 WNDPROC32 lpfnWndProc;
427 INT32 cbClsExtra;
428 INT32 cbWndExtra;
429 HINSTANCE32 hInstance;
430 HICON32 hIcon;
431 HCURSOR32 hCursor;
432 HBRUSH32 hbrBackground;
433 LPCSTR lpszMenuName;
434 LPCSTR lpszClassName;
435 HICON32 hIconSm;
436 } WNDCLASSEX32A, *LPWNDCLASSEX32A;
438 typedef struct
440 UINT32 cbSize;
441 UINT32 style;
442 WNDPROC32 lpfnWndProc;
443 INT32 cbClsExtra;
444 INT32 cbWndExtra;
445 HINSTANCE32 hInstance;
446 HICON32 hIcon;
447 HCURSOR32 hCursor;
448 HBRUSH32 hbrBackground;
449 LPCWSTR lpszMenuName;
450 LPCWSTR lpszClassName;
451 HICON32 hIconSm;
452 } WNDCLASSEX32W, *LPWNDCLASSEX32W;
454 DECL_WINELIB_TYPE_AW(WNDCLASSEX)
455 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX)
457 #define CS_VREDRAW 0x0001
458 #define CS_HREDRAW 0x0002
459 #define CS_KEYCVTWINDOW 0x0004
460 #define CS_DBLCLKS 0x0008
461 #define CS_OWNDC 0x0020
462 #define CS_CLASSDC 0x0040
463 #define CS_PARENTDC 0x0080
464 #define CS_NOKEYCVT 0x0100
465 #define CS_NOCLOSE 0x0200
466 #define CS_SAVEBITS 0x0800
467 #define CS_BYTEALIGNCLIENT 0x1000
468 #define CS_BYTEALIGNWINDOW 0x2000
469 #define CS_GLOBALCLASS 0x4000
471 /* Offsets for GetClassLong() and GetClassWord() */
472 #define GCL_MENUNAME (-8)
473 #define GCW_HBRBACKGROUND (-10)
474 #define GCL_HBRBACKGROUND GCW_HBRBACKGROUND
475 #define GCW_HCURSOR (-12)
476 #define GCL_HCURSOR GCW_HCURSOR
477 #define GCW_HICON (-14)
478 #define GCL_HICON GCW_HICON
479 #define GCW_HMODULE (-16)
480 #define GCL_HMODULE GCW_HMODULE
481 #define GCW_CBWNDEXTRA (-18)
482 #define GCL_CBWNDEXTRA GCW_CBWNDEXTRA
483 #define GCW_CBCLSEXTRA (-20)
484 #define GCL_CBCLSEXTRA GCW_CBCLSEXTRA
485 #define GCL_WNDPROC (-24)
486 #define GCW_STYLE (-26)
487 #define GCL_STYLE GCW_STYLE
488 #define GCW_ATOM (-32)
489 #define GCW_HICONSM (-34)
490 #define GCL_HICONSM GCW_HICONSM
492 /***** Window hooks *****/
494 /* Hook values */
495 #define WH_MIN (-1)
496 #define WH_MSGFILTER (-1)
497 #define WH_JOURNALRECORD 0
498 #define WH_JOURNALPLAYBACK 1
499 #define WH_KEYBOARD 2
500 #define WH_GETMESSAGE 3
501 #define WH_CALLWNDPROC 4
502 #define WH_CBT 5
503 #define WH_SYSMSGFILTER 6
504 #define WH_MOUSE 7
505 #define WH_HARDWARE 8
506 #define WH_DEBUG 9
507 #define WH_SHELL 10
508 #define WH_FOREGROUNDIDLE 11
509 #define WH_CALLWNDPROCRET 12
510 #define WH_MAX 12
512 #define WH_MINHOOK WH_MIN
513 #define WH_MAXHOOK WH_MAX
514 #define WH_NB_HOOKS (WH_MAXHOOK-WH_MINHOOK+1)
516 /* Hook action codes */
517 #define HC_ACTION 0
518 #define HC_GETNEXT 1
519 #define HC_SKIP 2
520 #define HC_NOREMOVE 3
521 #define HC_NOREM HC_NOREMOVE
522 #define HC_SYSMODALON 4
523 #define HC_SYSMODALOFF 5
525 /* CallMsgFilter() values */
526 #define MSGF_DIALOGBOX 0
527 #define MSGF_MESSAGEBOX 1
528 #define MSGF_MENU 2
529 #define MSGF_MOVE 3
530 #define MSGF_SIZE 4
531 #define MSGF_SCROLLBAR 5
532 #define MSGF_NEXTWINDOW 6
533 #define MSGF_MAINLOOP 8
534 #define MSGF_USER 4096
536 /* Windows Exit Procedure flag values */
537 #define WEP_FREE_DLL 0
538 #define WEP_SYSTEM_EXIT 1
540 /* Journalling hook structure */
542 typedef struct
544 UINT16 message;
545 UINT16 paramL;
546 UINT16 paramH;
547 DWORD time WINE_PACKED;
548 } EVENTMSG16, *LPEVENTMSG16;
550 typedef struct
552 UINT32 message;
553 UINT32 paramL;
554 UINT32 paramH;
555 DWORD time;
556 HWND32 hwnd;
557 } EVENTMSG32, *LPEVENTMSG32;
559 DECL_WINELIB_TYPE(EVENTMSG)
560 DECL_WINELIB_TYPE(LPEVENTMSG)
562 /* Mouse hook structure */
564 typedef struct
566 POINT16 pt;
567 HWND16 hwnd;
568 UINT16 wHitTestCode;
569 DWORD dwExtraInfo;
570 } MOUSEHOOKSTRUCT16, *LPMOUSEHOOKSTRUCT16;
572 typedef struct
574 POINT32 pt;
575 HWND32 hwnd;
576 UINT32 wHitTestCode;
577 DWORD dwExtraInfo;
578 } MOUSEHOOKSTRUCT32, *LPMOUSEHOOKSTRUCT32;
580 DECL_WINELIB_TYPE(MOUSEHOOKSTRUCT)
581 DECL_WINELIB_TYPE(LPMOUSEHOOKSTRUCT)
583 /* Hardware hook structure */
585 typedef struct
587 HWND16 hWnd;
588 UINT16 wMessage;
589 WPARAM16 wParam;
590 LPARAM lParam WINE_PACKED;
591 } HARDWAREHOOKSTRUCT16, *LPHARDWAREHOOKSTRUCT16;
593 typedef struct
595 HWND32 hWnd;
596 UINT32 wMessage;
597 WPARAM32 wParam;
598 LPARAM lParam;
599 } HARDWAREHOOKSTRUCT32, *LPHARDWAREHOOKSTRUCT32;
601 DECL_WINELIB_TYPE(HARDWAREHOOKSTRUCT)
602 DECL_WINELIB_TYPE(LPHARDWAREHOOKSTRUCT)
604 /* CBT hook values */
605 #define HCBT_MOVESIZE 0
606 #define HCBT_MINMAX 1
607 #define HCBT_QS 2
608 #define HCBT_CREATEWND 3
609 #define HCBT_DESTROYWND 4
610 #define HCBT_ACTIVATE 5
611 #define HCBT_CLICKSKIPPED 6
612 #define HCBT_KEYSKIPPED 7
613 #define HCBT_SYSCOMMAND 8
614 #define HCBT_SETFOCUS 9
616 /* CBT hook structures */
618 typedef struct
620 CREATESTRUCT16 *lpcs;
621 HWND16 hwndInsertAfter;
622 } CBT_CREATEWND16, *LPCBT_CREATEWND16;
624 typedef struct
626 CREATESTRUCT32A *lpcs;
627 HWND32 hwndInsertAfter;
628 } CBT_CREATEWND32A, *LPCBT_CREATEWND32A;
630 typedef struct
632 CREATESTRUCT32W *lpcs;
633 HWND32 hwndInsertAfter;
634 } CBT_CREATEWND32W, *LPCBT_CREATEWND32W;
636 DECL_WINELIB_TYPE_AW(CBT_CREATEWND)
637 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND)
639 typedef struct
641 BOOL16 fMouse;
642 HWND16 hWndActive;
643 } CBTACTIVATESTRUCT16, *LPCBTACTIVATESTRUCT16;
645 typedef struct
647 BOOL32 fMouse;
648 HWND32 hWndActive;
649 } CBTACTIVATESTRUCT32, *LPCBTACTIVATESTRUCT32;
651 DECL_WINELIB_TYPE(CBTACTIVATESTRUCT)
652 DECL_WINELIB_TYPE(LPCBTACTIVATESTRUCT)
654 /* Shell hook values */
655 #define HSHELL_WINDOWCREATED 1
656 #define HSHELL_WINDOWDESTROYED 2
657 #define HSHELL_ACTIVATESHELLWINDOW 3
659 /* Debug hook structure */
661 typedef struct
663 HMODULE16 hModuleHook;
664 LPARAM reserved WINE_PACKED;
665 LPARAM lParam WINE_PACKED;
666 WPARAM16 wParam;
667 INT16 code;
668 } DEBUGHOOKINFO16, *LPDEBUGHOOKINFO16;
670 typedef struct
672 DWORD idThread;
673 DWORD idThreadInstaller;
674 LPARAM lParam;
675 WPARAM32 wParam;
676 INT32 code;
677 } DEBUGHOOKINFO32, *LPDEBUGHOOKINFO32;
679 DECL_WINELIB_TYPE(DEBUGHOOKINFO)
680 DECL_WINELIB_TYPE(LPDEBUGHOOKINFO)
682 typedef DWORD (CALLBACK *LPTHREAD_START_ROUTINE)(LPVOID);
684 /* This is also defined in winnt.h */
685 /* typedef struct _EXCEPTION_RECORD {
686 DWORD ExceptionCode;
687 DWORD ExceptionFlags;
688 struct _EXCEPTION_RECORD *ExceptionRecord;
689 LPVOID ExceptionAddress;
690 DWORD NumberParameters;
691 DWORD ExceptionInformation[15];
692 } EXCEPTION_RECORD; */
694 typedef struct _EXCEPTION_DEBUG_INFO {
695 /* EXCEPTION_RECORD ExceptionRecord; */
696 DWORD dwFirstChange;
697 } EXCEPTION_DEBUG_INFO;
699 typedef struct _CREATE_THREAD_DEBUG_INFO {
700 HANDLE32 hThread;
701 LPVOID lpThreadLocalBase;
702 LPTHREAD_START_ROUTINE lpStartAddress;
703 } CREATE_THREAD_DEBUG_INFO;
705 typedef struct _CREATE_PROCESS_DEBUG_INFO {
706 HANDLE32 hFile;
707 HANDLE32 hProcess;
708 HANDLE32 hThread;
709 LPVOID lpBaseOfImage;
710 DWORD dwDebugInfoFileOffset;
711 DWORD nDebugInfoSize;
712 LPVOID lpThreadLocalBase;
713 LPTHREAD_START_ROUTINE lpStartAddress;
714 LPVOID lpImageName;
715 WORD fUnicode;
716 } CREATE_PROCESS_DEBUG_INFO;
718 typedef struct _EXIT_THREAD_DEBUG_INFO {
719 DWORD dwExitCode;
720 } EXIT_THREAD_DEBUG_INFO;
722 typedef struct _EXIT_PROCESS_DEBUG_INFO {
723 DWORD dwExitCode;
724 } EXIT_PROCESS_DEBUG_INFO;
726 typedef struct _LOAD_DLL_DEBUG_INFO {
727 HANDLE32 hFile;
728 LPVOID lpBaseOfDll;
729 DWORD dwDebugInfoFileOffset;
730 DWORD nDebugInfoSize;
731 LPVOID lpImageName;
732 WORD fUnicode;
733 } LOAD_DLL_DEBUG_INFO;
735 typedef struct _UNLOAD_DLL_DEBUG_INFO {
736 LPVOID lpBaseOfDll;
737 } UNLOAD_DLL_DEBUG_INFO;
739 typedef struct _OUTPUT_DEBUG_STRING_INFO {
740 LPSTR lpDebugStringData;
741 WORD fUnicode;
742 WORD nDebugStringLength;
743 } OUTPUT_DEBUG_STRING_INFO;
745 typedef struct _RIP_INFO {
746 DWORD dwError;
747 DWORD dwType;
748 } RIP_INFO;
750 typedef struct _DEBUG_EVENT {
751 DWORD dwDebugEventCode;
752 DWORD dwProcessId;
753 DWORD dwThreadId;
754 union {
755 EXCEPTION_DEBUG_INFO Exception;
756 CREATE_THREAD_DEBUG_INFO CreateThread;
757 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo;
758 EXIT_THREAD_DEBUG_INFO ExitThread;
759 EXIT_PROCESS_DEBUG_INFO ExitProcess;
760 LOAD_DLL_DEBUG_INFO LoadDll;
761 UNLOAD_DLL_DEBUG_INFO UnloadDll;
762 OUTPUT_DEBUG_STRING_INFO DebugString;
763 RIP_INFO RipInfo;
764 } u;
765 } DEBUG_EVENT, *LPDEBUG_EVENT;
768 /***** Dialogs *****/
770 /* cbWndExtra bytes for dialog class */
771 #define DLGWINDOWEXTRA 30
773 /* Dialog styles */
774 #define DS_ABSALIGN 0x0001
775 #define DS_SYSMODAL 0x0002
776 #define DS_3DLOOK 0x0004 /* win95 */
777 #define DS_FIXEDSYS 0x0008 /* win95 */
778 #define DS_NOFAILCREATE 0x0010 /* win95 */
779 #define DS_LOCALEDIT 0x0020
780 #define DS_SETFONT 0x0040
781 #define DS_MODALFRAME 0x0080
782 #define DS_NOIDLEMSG 0x0100
783 #define DS_SETFOREGROUND 0x0200 /* win95 */
784 #define DS_CONTROL 0x0400 /* win95 */
785 #define DS_CENTER 0x0800 /* win95 */
786 #define DS_CENTERMOUSE 0x1000 /* win95 */
787 #define DS_CONTEXTHELP 0x2000 /* win95 */
790 /* Dialog messages */
791 #define DM_GETDEFID (WM_USER+0)
792 #define DM_SETDEFID (WM_USER+1)
794 #define DC_HASDEFID 0x534b
796 /* WM_GETDLGCODE values */
797 #define DLGC_WANTARROWS 0x0001
798 #define DLGC_WANTTAB 0x0002
799 #define DLGC_WANTALLKEYS 0x0004
800 #define DLGC_WANTMESSAGE 0x0004
801 #define DLGC_HASSETSEL 0x0008
802 #define DLGC_DEFPUSHBUTTON 0x0010
803 #define DLGC_UNDEFPUSHBUTTON 0x0020
804 #define DLGC_RADIOBUTTON 0x0040
805 #define DLGC_WANTCHARS 0x0080
806 #define DLGC_STATIC 0x0100
807 #define DLGC_BUTTON 0x2000
809 /* Standard dialog button IDs */
810 #define IDOK 1
811 #define IDCANCEL 2
812 #define IDABORT 3
813 #define IDRETRY 4
814 #define IDIGNORE 5
815 #define IDYES 6
816 #define IDNO 7
817 #define IDCLOSE 8
818 #define IDHELP 9
820 typedef struct
822 HWND16 hwnd;
823 UINT16 message;
824 WPARAM16 wParam;
825 LPARAM lParam WINE_PACKED;
826 DWORD time WINE_PACKED;
827 POINT16 pt WINE_PACKED;
828 } MSG16, *LPMSG16;
830 typedef struct
832 HWND32 hwnd;
833 UINT32 message;
834 WPARAM32 wParam;
835 LPARAM lParam;
836 DWORD time;
837 POINT32 pt;
838 } MSG32, *LPMSG32;
840 DECL_WINELIB_TYPE(MSG)
841 DECL_WINELIB_TYPE(LPMSG)
843 /* Cursors / Icons */
845 typedef struct
847 POINT16 ptHotSpot;
848 WORD nWidth;
849 WORD nHeight;
850 WORD nWidthBytes;
851 BYTE bPlanes;
852 BYTE bBitsPerPixel;
853 } CURSORICONINFO;
855 /* only used by Win32 functions */
856 typedef struct {
857 BOOL32 fIcon;
858 DWORD xHotspot;
859 DWORD yHotspot;
860 HBITMAP32 hbmMask;
861 HBITMAP32 hbmColor;
862 } ICONINFO,*LPICONINFO;
864 #ifdef FSHIFT
865 /* Gcc on Solaris has a version of this that we don't care about. */
866 #undef FSHIFT
867 #endif
869 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
870 #define FNOINVERT 0x02
871 #define FSHIFT 0x04
872 #define FCONTROL 0x08
873 #define FALT 0x10
875 typedef struct
877 BYTE fVirt;
878 WORD key;
879 WORD cmd;
880 } ACCEL16, *LPACCEL16;
882 typedef struct
884 BYTE fVirt;
885 BYTE pad0;
886 WORD key;
887 WORD cmd;
888 WORD pad1;
889 } ACCEL32, *LPACCEL32;
891 DECL_WINELIB_TYPE(ACCEL)
892 DECL_WINELIB_TYPE(LPACCEL)
894 /* modifiers for RegisterHotKey */
895 #define MOD_ALT 0x0001
896 #define MOD_CONTROL 0x0002
897 #define MOD_SHIFT 0x0004
898 #define MOD_WIN 0x0008
900 /* ids for RegisterHotKey */
901 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
902 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
904 /* Flags for DrawIconEx. */
905 #define DI_MASK 1
906 #define DI_IMAGE 2
907 #define DI_NORMAL (DI_MASK | DI_IMAGE)
908 #define DI_COMPAT 4
909 #define DI_DEFAULTSIZE 8
911 typedef struct {
912 BYTE i; /* much more .... */
913 } KANJISTRUCT;
914 typedef KANJISTRUCT *LPKANJISTRUCT;
915 typedef KANJISTRUCT *NPKANJISTRUCT;
916 typedef KANJISTRUCT *PKANJISTRUCT;
918 #define OFS_MAXPATHNAME 128
919 typedef struct
921 BYTE cBytes;
922 BYTE fFixedDisk;
923 WORD nErrCode;
924 BYTE reserved[4];
925 BYTE szPathName[OFS_MAXPATHNAME];
926 } OFSTRUCT, *LPOFSTRUCT;
928 #define OF_READ 0x0000
929 #define OF_WRITE 0x0001
930 #define OF_READWRITE 0x0002
931 #define OF_SHARE_COMPAT 0x0000
932 #define OF_SHARE_EXCLUSIVE 0x0010
933 #define OF_SHARE_DENY_WRITE 0x0020
934 #define OF_SHARE_DENY_READ 0x0030
935 #define OF_SHARE_DENY_NONE 0x0040
936 #define OF_PARSE 0x0100
937 #define OF_DELETE 0x0200
938 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
939 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
940 #define OF_CANCEL 0x0800
941 #define OF_CREATE 0x1000
942 #define OF_PROMPT 0x2000
943 #define OF_EXIST 0x4000
944 #define OF_REOPEN 0x8000
946 /* SetErrorMode values */
947 #define SEM_FAILCRITICALERRORS 0x0001
948 #define SEM_NOGPFAULTERRORBOX 0x0002
949 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
950 #define SEM_NOOPENFILEERRORBOX 0x8000
952 /* CopyFileEx flags */
953 #define COPY_FILE_FAIL_IF_EXISTS 0x00000001
954 #define COPY_FILE_RESTARTABLE 0x00000002
955 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
957 /* GetTempFileName() Flags */
958 #define TF_FORCEDRIVE 0x80
960 #define DRIVE_CANNOTDETERMINE 0
961 #define DRIVE_DOESNOTEXIST 1
962 #define DRIVE_REMOVABLE 2
963 #define DRIVE_FIXED 3
964 #define DRIVE_REMOTE 4
965 /* Win32 additions */
966 #define DRIVE_CDROM 5
967 #define DRIVE_RAMDISK 6
969 #define HFILE_ERROR16 ((HFILE16)-1)
970 #define HFILE_ERROR32 ((HFILE32)-1)
971 #define HFILE_ERROR WINELIB_NAME(HFILE_ERROR)
973 #define DDL_READWRITE 0x0000
974 #define DDL_READONLY 0x0001
975 #define DDL_HIDDEN 0x0002
976 #define DDL_SYSTEM 0x0004
977 #define DDL_DIRECTORY 0x0010
978 #define DDL_ARCHIVE 0x0020
980 #define DDL_POSTMSGS 0x2000
981 #define DDL_DRIVES 0x4000
982 #define DDL_EXCLUSIVE 0x8000
984 typedef struct _ACL {
985 BYTE AclRevision;
986 BYTE Sbz1;
987 WORD AclSize;
988 WORD AceCount;
989 WORD Sbz2;
990 } ACL, *LPACL;
992 typedef struct {
993 BYTE Value[6];
994 } SID_IDENTIFIER_AUTHORITY,*PSID_IDENTIFIER_AUTHORITY,*LPSID_IDENTIFIER_AUTHORITY;
996 typedef struct _SID {
997 BYTE Revision;
998 BYTE SubAuthorityCount;
999 SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
1000 DWORD SubAuthority[1];
1001 } SID,*PSID,*LPSID;
1003 /* The security attributes structure */
1004 typedef struct
1006 DWORD nLength;
1007 LPVOID lpSecurityDescriptor;
1008 BOOL32 bInheritHandle;
1009 } SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
1011 typedef WORD SECURITY_DESCRIPTOR_CONTROL;
1013 /* The security descriptor structure */
1014 typedef struct {
1015 BYTE Revision;
1016 BYTE Sbz1;
1017 SECURITY_DESCRIPTOR_CONTROL Control;
1018 LPSID Owner;
1019 LPSID Group;
1020 LPACL Sacl;
1021 LPACL Dacl;
1022 } SECURITY_DESCRIPTOR, *PSECURITY_DESCRIPTOR, *LPSECURITY_DESCRIPTOR;
1024 typedef DWORD SECURITY_INFORMATION;
1027 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
1028 typedef struct
1030 DWORD dwLowDateTime;
1031 DWORD dwHighDateTime;
1032 } FILETIME, *LPFILETIME;
1034 /* Find* structures */
1035 typedef struct
1037 DWORD dwFileAttributes;
1038 FILETIME ftCreationTime;
1039 FILETIME ftLastAccessTime;
1040 FILETIME ftLastWriteTime;
1041 DWORD nFileSizeHigh;
1042 DWORD nFileSizeLow;
1043 DWORD dwReserved0;
1044 DWORD dwReserved1;
1045 CHAR cFileName[260];
1046 CHAR cAlternateFileName[14];
1047 } WIN32_FIND_DATA32A, *LPWIN32_FIND_DATA32A;
1049 typedef struct
1051 DWORD dwFileAttributes;
1052 FILETIME ftCreationTime;
1053 FILETIME ftLastAccessTime;
1054 FILETIME ftLastWriteTime;
1055 DWORD nFileSizeHigh;
1056 DWORD nFileSizeLow;
1057 DWORD dwReserved0;
1058 DWORD dwReserved1;
1059 WCHAR cFileName[260];
1060 WCHAR cAlternateFileName[14];
1061 } WIN32_FIND_DATA32W, *LPWIN32_FIND_DATA32W;
1063 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
1064 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
1066 #define INVALID_HANDLE_VALUE16 ((HANDLE16) -1)
1067 #define INVALID_HANDLE_VALUE32 ((HANDLE32) -1)
1068 #define INVALID_HANDLE_VALUE WINELIB_NAME(INVALID_HANDLE_VALUE)
1070 /* comm */
1072 #define CBR_110 0xFF10
1073 #define CBR_300 0xFF11
1074 #define CBR_600 0xFF12
1075 #define CBR_1200 0xFF13
1076 #define CBR_2400 0xFF14
1077 #define CBR_4800 0xFF15
1078 #define CBR_9600 0xFF16
1079 #define CBR_14400 0xFF17
1080 #define CBR_19200 0xFF18
1081 #define CBR_38400 0xFF1B
1082 #define CBR_56000 0xFF1F
1083 #define CBR_128000 0xFF23
1084 #define CBR_256000 0xFF27
1086 #define NOPARITY 0
1087 #define ODDPARITY 1
1088 #define EVENPARITY 2
1089 #define MARKPARITY 3
1090 #define SPACEPARITY 4
1091 #define ONESTOPBIT 0
1092 #define ONE5STOPBITS 1
1093 #define TWOSTOPBITS 2
1095 #define IGNORE 0
1096 #define INFINITE16 0xFFFF
1097 #define INFINITE32 0xFFFFFFFF
1098 #define INFINITE WINELIB_NAME(INFINITE)
1100 #define CE_RXOVER 0x0001
1101 #define CE_OVERRUN 0x0002
1102 #define CE_RXPARITY 0x0004
1103 #define CE_FRAME 0x0008
1104 #define CE_BREAK 0x0010
1105 #define CE_CTSTO 0x0020
1106 #define CE_DSRTO 0x0040
1107 #define CE_RLSDTO 0x0080
1108 #define CE_TXFULL 0x0100
1109 #define CE_PTO 0x0200
1110 #define CE_IOE 0x0400
1111 #define CE_DNS 0x0800
1112 #define CE_OOP 0x1000
1113 #define CE_MODE 0x8000
1115 #define IE_BADID -1
1116 #define IE_OPEN -2
1117 #define IE_NOPEN -3
1118 #define IE_MEMORY -4
1119 #define IE_DEFAULT -5
1120 #define IE_HARDWARE -10
1121 #define IE_BYTESIZE -11
1122 #define IE_BAUDRATE -12
1124 #define EV_RXCHAR 0x0001
1125 #define EV_RXFLAG 0x0002
1126 #define EV_TXEMPTY 0x0004
1127 #define EV_CTS 0x0008
1128 #define EV_DSR 0x0010
1129 #define EV_RLSD 0x0020
1130 #define EV_BREAK 0x0040
1131 #define EV_ERR 0x0080
1132 #define EV_RING 0x0100
1133 #define EV_PERR 0x0200
1134 #define EV_CTSS 0x0400
1135 #define EV_DSRS 0x0800
1136 #define EV_RLSDS 0x1000
1137 #define EV_RINGTE 0x2000
1138 #define EV_RingTe EV_RINGTE
1140 #define SETXOFF 1
1141 #define SETXON 2
1142 #define SETRTS 3
1143 #define CLRRTS 4
1144 #define SETDTR 5
1145 #define CLRDTR 6
1146 #define RESETDEV 7
1147 /* win16 only */
1148 #define GETMAXLPT 8
1149 #define GETMAXCOM 9
1150 /* win32 only */
1151 #define SETBREAK 8
1152 #define CLRBREAK 9
1154 #define GETBASEIRQ 10
1156 /* Purge functions for Comm Port */
1157 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
1158 comm port */
1159 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
1160 the comm port */
1161 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
1162 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
1165 /* Modem Status Flags */
1166 #define MS_CTS_ON ((DWORD)0x0010)
1167 #define MS_DSR_ON ((DWORD)0x0020)
1168 #define MS_RING_ON ((DWORD)0x0040)
1169 #define MS_RLSD_ON ((DWORD)0x0080)
1171 typedef struct tagDCB16
1173 BYTE Id;
1174 UINT16 BaudRate WINE_PACKED;
1175 BYTE ByteSize;
1176 BYTE Parity;
1177 BYTE StopBits;
1178 UINT16 RlsTimeout;
1179 UINT16 CtsTimeout;
1180 UINT16 DsrTimeout;
1182 UINT16 fBinary :1;
1183 UINT16 fRtsDisable :1;
1184 UINT16 fParity :1;
1185 UINT16 fOutxCtsFlow :1;
1186 UINT16 fOutxDsrFlow :1;
1187 UINT16 fDummy :2;
1188 UINT16 fDtrDisable :1;
1190 UINT16 fOutX :1;
1191 UINT16 fInX :1;
1192 UINT16 fPeChar :1;
1193 UINT16 fNull :1;
1194 UINT16 fChEvt :1;
1195 UINT16 fDtrflow :1;
1196 UINT16 fRtsflow :1;
1197 UINT16 fDummy2 :1;
1199 CHAR XonChar;
1200 CHAR XoffChar;
1201 UINT16 XonLim;
1202 UINT16 XoffLim;
1203 CHAR PeChar;
1204 CHAR EofChar;
1205 CHAR EvtChar;
1206 UINT16 TxDelay WINE_PACKED;
1207 } DCB16, *LPDCB16;
1209 typedef struct tagDCB32
1211 DWORD DCBlength;
1212 DWORD BaudRate;
1213 DWORD fBinary :1;
1214 DWORD fParity :1;
1215 DWORD fOutxCtsFlow :1;
1216 DWORD fOutxDsrFlow :1;
1217 DWORD fDtrControl :2;
1218 DWORD fDsrSensitivity :1;
1219 DWORD fTXContinueOnXoff :1;
1220 DWORD fOutX :1;
1221 DWORD fInX :1;
1222 DWORD fErrorChar :1;
1223 DWORD fNull :1;
1224 DWORD fRtsControl :2;
1225 DWORD fAbortOnError :1;
1226 DWORD fDummy2 :17;
1227 WORD wReserved;
1228 WORD XonLim;
1229 WORD XoffLim;
1230 BYTE ByteSize;
1231 BYTE Parity;
1232 BYTE StopBits;
1233 char XonChar;
1234 char XoffChar;
1235 char ErrorChar;
1236 char EofChar;
1237 char EvtChar;
1238 } DCB32, *LPDCB32;
1240 DECL_WINELIB_TYPE(DCB)
1241 DECL_WINELIB_TYPE(LPDCB)
1243 #define RTS_CONTROL_DISABLE 0
1244 #define RTS_CONTROL_ENABLE 1
1245 #define RTS_CONTROL_HANDSHAKE 2
1246 #define RTS_CONTROL_TOGGLE 3
1248 #define DTR_CONTROL_DISABLE 0
1249 #define DTR_CONTROL_ENABLE 1
1250 #define DTR_CONTROL_HANDSHAKE 2
1252 typedef struct tagCOMMTIMEOUTS {
1253 DWORD ReadIntervalTimeout;
1254 DWORD ReadTotalTimeoutMultiplier;
1255 DWORD ReadTotalTimeoutConstant;
1256 DWORD WriteTotalTimeoutMultiplier;
1257 DWORD WriteTotalTimeoutConstant;
1258 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1260 typedef struct tagCOMSTAT
1262 BYTE status;
1263 UINT16 cbInQue WINE_PACKED;
1264 UINT16 cbOutQue WINE_PACKED;
1265 } COMSTAT,*LPCOMSTAT;
1267 #define CSTF_CTSHOLD 0x01
1268 #define CSTF_DSRHOLD 0x02
1269 #define CSTF_RLSDHOLD 0x04
1270 #define CSTF_XOFFHOLD 0x08
1271 #define CSTF_XOFFSENT 0x10
1272 #define CSTF_EOF 0x20
1273 #define CSTF_TXIM 0x40
1275 /* SystemParametersInfo */
1276 /* defines below are for all win versions */
1277 #define SPI_GETBEEP 1
1278 #define SPI_SETBEEP 2
1279 #define SPI_GETMOUSE 3
1280 #define SPI_SETMOUSE 4
1281 #define SPI_GETBORDER 5
1282 #define SPI_SETBORDER 6
1283 #define SPI_GETKEYBOARDSPEED 10
1284 #define SPI_SETKEYBOARDSPEED 11
1285 #define SPI_LANGDRIVER 12
1286 #define SPI_ICONHORIZONTALSPACING 13
1287 #define SPI_GETSCREENSAVETIMEOUT 14
1288 #define SPI_SETSCREENSAVETIMEOUT 15
1289 #define SPI_GETSCREENSAVEACTIVE 16
1290 #define SPI_SETSCREENSAVEACTIVE 17
1291 #define SPI_GETGRIDGRANULARITY 18
1292 #define SPI_SETGRIDGRANULARITY 19
1293 #define SPI_SETDESKWALLPAPER 20
1294 #define SPI_SETDESKPATTERN 21
1295 #define SPI_GETKEYBOARDDELAY 22
1296 #define SPI_SETKEYBOARDDELAY 23
1297 #define SPI_ICONVERTICALSPACING 24
1298 #define SPI_GETICONTITLEWRAP 25
1299 #define SPI_SETICONTITLEWRAP 26
1300 #define SPI_GETMENUDROPALIGNMENT 27
1301 #define SPI_SETMENUDROPALIGNMENT 28
1302 #define SPI_SETDOUBLECLKWIDTH 29
1303 #define SPI_SETDOUBLECLKHEIGHT 30
1304 #define SPI_GETICONTITLELOGFONT 31
1305 #define SPI_SETDOUBLECLICKTIME 32
1306 #define SPI_SETMOUSEBUTTONSWAP 33
1307 #define SPI_SETICONTITLELOGFONT 34
1308 #define SPI_GETFASTTASKSWITCH 35
1309 #define SPI_SETFASTTASKSWITCH 36
1310 #define SPI_SETDRAGFULLWINDOWS 37
1311 #define SPI_GETDRAGFULLWINDOWS 38
1313 #define SPI_GETFILTERKEYS 50
1314 #define SPI_SETFILTERKEYS 51
1315 #define SPI_GETTOGGLEKEYS 52
1316 #define SPI_SETTOGGLEKEYS 53
1317 #define SPI_GETMOUSEKEYS 54
1318 #define SPI_SETMOUSEKEYS 55
1319 #define SPI_GETSHOWSOUNDS 56
1320 #define SPI_SETSHOWSOUNDS 57
1321 #define SPI_GETSTICKYKEYS 58
1322 #define SPI_SETSTICKYKEYS 59
1323 #define SPI_GETACCESSTIMEOUT 60
1324 #define SPI_SETACCESSTIMEOUT 61
1326 #define SPI_GETSOUNDSENTRY 64
1327 #define SPI_SETSOUNDSENTRY 65
1329 /* defines below are for all win versions WINVER >= 0x0400 */
1330 #define SPI_SETDRAGFULLWINDOWS 37
1331 #define SPI_GETDRAGFULLWINDOWS 38
1332 #define SPI_GETNONCLIENTMETRICS 41
1333 #define SPI_SETNONCLIENTMETRICS 42
1334 #define SPI_GETMINIMIZEDMETRICS 43
1335 #define SPI_SETMINIMIZEDMETRICS 44
1336 #define SPI_GETICONMETRICS 45
1337 #define SPI_SETICONMETRICS 46
1338 #define SPI_SETWORKAREA 47
1339 #define SPI_GETWORKAREA 48
1340 #define SPI_SETPENWINDOWS 49
1342 #define SPI_GETSERIALKEYS 62
1343 #define SPI_SETSERIALKEYS 63
1344 #define SPI_GETHIGHCONTRAST 66
1345 #define SPI_SETHIGHCONTRAST 67
1346 #define SPI_GETKEYBOARDPREF 68
1347 #define SPI_SETKEYBOARDPREF 69
1348 #define SPI_GETSCREENREADER 70
1349 #define SPI_SETSCREENREADER 71
1350 #define SPI_GETANIMATION 72
1351 #define SPI_SETANIMATION 73
1352 #define SPI_GETFONTSMOOTHING 74
1353 #define SPI_SETFONTSMOOTHING 75
1354 #define SPI_SETDRAGWIDTH 76
1355 #define SPI_SETDRAGHEIGHT 77
1356 #define SPI_SETHANDHELD 78
1357 #define SPI_GETLOWPOWERTIMEOUT 79
1358 #define SPI_GETPOWEROFFTIMEOUT 80
1359 #define SPI_SETLOWPOWERTIMEOUT 81
1360 #define SPI_SETPOWEROFFTIMEOUT 82
1361 #define SPI_GETLOWPOWERACTIVE 83
1362 #define SPI_GETPOWEROFFACTIVE 84
1363 #define SPI_SETLOWPOWERACTIVE 85
1364 #define SPI_SETPOWEROFFACTIVE 86
1365 #define SPI_SETCURSORS 87
1366 #define SPI_SETICONS 88
1367 #define SPI_GETDEFAULTINPUTLANG 89
1368 #define SPI_SETDEFAULTINPUTLANG 90
1369 #define SPI_SETLANGTOGGLE 91
1370 #define SPI_GETWINDOWSEXTENSION 92
1371 #define SPI_SETMOUSETRAILS 93
1372 #define SPI_GETMOUSETRAILS 94
1373 #define SPI_SETSCREENSAVERRUNNING 97
1374 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
1376 /* defines below are for all win versions (_WIN32_WINNT >= 0x0400) ||
1377 * (_WIN32_WINDOWS > 0x0400) */
1378 #define SPI_GETMOUSEHOVERWIDTH 98
1379 #define SPI_SETMOUSEHOVERWIDTH 99
1380 #define SPI_GETMOUSEHOVERHEIGHT 100
1381 #define SPI_SETMOUSEHOVERHEIGHT 101
1382 #define SPI_GETMOUSEHOVERTIME 102
1383 #define SPI_SETMOUSEHOVERTIME 103
1384 #define SPI_GETWHEELSCROLLLINES 104
1385 #define SPI_SETWHEELSCROLLLINES 105
1387 #define SPI_GETSHOWIMEUI 110
1388 #define SPI_SETSHOWIMEUI 111
1390 /* defines below are for all win versions WINVER >= 0x0500 */
1391 #define SPI_GETMOUSESPEED 112
1392 #define SPI_SETMOUSESPEED 113
1393 #define SPI_GETSCREENSAVERRUNNING 114
1395 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
1396 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
1397 #define SPI_GETMENUANIMATION 0x1002
1398 #define SPI_SETMENUANIMATION 0x1003
1399 #define SPI_GETCOMBOBOXANIMATION 0x1004
1400 #define SPI_SETCOMBOBOXANIMATION 0x1005
1401 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
1402 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
1403 #define SPI_GETGRADIENTCAPTIONS 0x1008
1404 #define SPI_SETGRADIENTCAPTIONS 0x1009
1405 #define SPI_GETMENUUNDERLINES 0x100A
1406 #define SPI_SETMENUUNDERLINES 0x100B
1407 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
1408 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
1409 #define SPI_GETHOTTRACKING 0x100E
1410 #define SPI_SETHOTTRACKING 0x100F
1411 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
1412 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
1413 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
1414 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
1415 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
1416 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
1418 /* SystemParametersInfo flags */
1420 #define SPIF_UPDATEINIFILE 1
1421 #define SPIF_SENDWININICHANGE 2
1422 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
1424 /* flags for HIGHCONTRAST dwFlags field */
1425 #define HCF_HIGHCONTRASTON 0x00000001
1426 #define HCF_AVAILABLE 0x00000002
1427 #define HCF_HOTKEYACTIVE 0x00000004
1428 #define HCF_CONFIRMHOTKEY 0x00000008
1429 #define HCF_HOTKEYSOUND 0x00000010
1430 #define HCF_INDICATOR 0x00000020
1431 #define HCF_HOTKEYAVAILABLE 0x00000040
1432 typedef struct tagHIGHCONTRASTA
1434 UINT32 cbSize;
1435 DWORD dwFlags;
1436 LPSTR lpszDefaultScheme;
1437 } HIGHCONTRASTA, *LPHIGHCONTRASTA;
1439 typedef struct tagHIGHCONTRASTW
1441 UINT32 cbSize;
1442 DWORD dwFlags;
1443 LPWSTR lpszDefaultScheme;
1444 } HIGHCONTRASTW, *LPHIGHCONTRASTW;
1446 /* GetFreeSystemResources() parameters */
1448 #define GFSR_SYSTEMRESOURCES 0x0000
1449 #define GFSR_GDIRESOURCES 0x0001
1450 #define GFSR_USERRESOURCES 0x0002
1452 /* GetWinFlags */
1454 #define WF_PMODE 0x0001
1455 #define WF_CPU286 0x0002
1456 #define WF_CPU386 0x0004
1457 #define WF_CPU486 0x0008
1458 #define WF_STANDARD 0x0010
1459 #define WF_WIN286 0x0010
1460 #define WF_ENHANCED 0x0020
1461 #define WF_WIN386 0x0020
1462 #define WF_CPU086 0x0040
1463 #define WF_CPU186 0x0080
1464 #define WF_LARGEFRAME 0x0100
1465 #define WF_SMALLFRAME 0x0200
1466 #define WF_80x87 0x0400
1467 #define WF_PAGING 0x0800
1468 #define WF_HASCPUID 0x2000
1469 #define WF_WIN32WOW 0x4000 /* undoc */
1470 #define WF_WLO 0x8000
1472 #define MAKEINTRESOURCE16(i) (SEGPTR)((DWORD)((WORD)(i)))
1473 #define MAKEINTRESOURCE32A(i) (LPSTR)((DWORD)((WORD)(i)))
1474 #define MAKEINTRESOURCE32W(i) (LPWSTR)((DWORD)((WORD)(i)))
1475 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
1477 /* Predefined resource types */
1478 #define RT_CURSOR16 MAKEINTRESOURCE16(1)
1479 #define RT_CURSOR32A MAKEINTRESOURCE32A(1)
1480 #define RT_CURSOR32W MAKEINTRESOURCE32W(1)
1481 #define RT_CURSOR WINELIB_NAME_AW(RT_CURSOR)
1482 #define RT_BITMAP16 MAKEINTRESOURCE16(2)
1483 #define RT_BITMAP32A MAKEINTRESOURCE32A(2)
1484 #define RT_BITMAP32W MAKEINTRESOURCE32W(2)
1485 #define RT_BITMAP WINELIB_NAME_AW(RT_BITMAP)
1486 #define RT_ICON16 MAKEINTRESOURCE16(3)
1487 #define RT_ICON32A MAKEINTRESOURCE32A(3)
1488 #define RT_ICON32W MAKEINTRESOURCE32W(3)
1489 #define RT_ICON WINELIB_NAME_AW(RT_ICON)
1490 #define RT_MENU16 MAKEINTRESOURCE16(4)
1491 #define RT_MENU32A MAKEINTRESOURCE32A(4)
1492 #define RT_MENU32W MAKEINTRESOURCE32W(4)
1493 #define RT_MENU WINELIB_NAME_AW(RT_MENU)
1494 #define RT_DIALOG16 MAKEINTRESOURCE16(5)
1495 #define RT_DIALOG32A MAKEINTRESOURCE32A(5)
1496 #define RT_DIALOG32W MAKEINTRESOURCE32W(5)
1497 #define RT_DIALOG WINELIB_NAME_AW(RT_DIALOG)
1498 #define RT_STRING16 MAKEINTRESOURCE16(6)
1499 #define RT_STRING32A MAKEINTRESOURCE32A(6)
1500 #define RT_STRING32W MAKEINTRESOURCE32W(6)
1501 #define RT_STRING WINELIB_NAME_AW(RT_STRING)
1502 #define RT_FONTDIR16 MAKEINTRESOURCE16(7)
1503 #define RT_FONTDIR32A MAKEINTRESOURCE32A(7)
1504 #define RT_FONTDIR32W MAKEINTRESOURCE32W(7)
1505 #define RT_FONTDIR WINELIB_NAME_AW(RT_FONTDIR)
1506 #define RT_FONT16 MAKEINTRESOURCE16(8)
1507 #define RT_FONT32A MAKEINTRESOURCE32A(8)
1508 #define RT_FONT32W MAKEINTRESOURCE32W(8)
1509 #define RT_FONT WINELIB_NAME_AW(RT_FONT)
1510 #define RT_ACCELERATOR16 MAKEINTRESOURCE16(9)
1511 #define RT_ACCELERATOR32A MAKEINTRESOURCE32A(9)
1512 #define RT_ACCELERATOR32W MAKEINTRESOURCE32W(9)
1513 #define RT_ACCELERATOR WINELIB_NAME_AW(RT_ACCELERATOR)
1514 #define RT_RCDATA16 MAKEINTRESOURCE16(10)
1515 #define RT_RCDATA32A MAKEINTRESOURCE32A(10)
1516 #define RT_RCDATA32W MAKEINTRESOURCE32W(10)
1517 #define RT_RCDATA WINELIB_NAME_AW(RT_RCDATA)
1518 #define RT_MESSAGELIST16 MAKEINTRESOURCE16(11)
1519 #define RT_MESSAGELIST32A MAKEINTRESOURCE32A(11)
1520 #define RT_MESSAGELIST32W MAKEINTRESOURCE32W(11)
1521 #define RT_MESSAGELIST WINELIB_NAME_AW(RT_MESSAGELIST)
1522 #define RT_GROUP_CURSOR16 MAKEINTRESOURCE16(12)
1523 #define RT_GROUP_CURSOR32A MAKEINTRESOURCE32A(12)
1524 #define RT_GROUP_CURSOR32W MAKEINTRESOURCE32W(12)
1525 #define RT_GROUP_CURSOR WINELIB_NAME_AW(RT_GROUP_CURSOR)
1526 #define RT_GROUP_ICON16 MAKEINTRESOURCE16(14)
1527 #define RT_GROUP_ICON32A MAKEINTRESOURCE32A(14)
1528 #define RT_GROUP_ICON32W MAKEINTRESOURCE32W(14)
1529 #define RT_GROUP_ICON WINELIB_NAME_AW(RT_GROUP_ICON)
1531 /* Predefined resources */
1532 #define IDI_APPLICATION16 MAKEINTRESOURCE16(32512)
1533 #define IDI_APPLICATION32A MAKEINTRESOURCE32A(32512)
1534 #define IDI_APPLICATION32W MAKEINTRESOURCE32W(32512)
1535 #define IDI_APPLICATION WINELIB_NAME_AW(IDI_APPLICATION)
1536 #define IDI_HAND16 MAKEINTRESOURCE16(32513)
1537 #define IDI_HAND32A MAKEINTRESOURCE32A(32513)
1538 #define IDI_HAND32W MAKEINTRESOURCE32W(32513)
1539 #define IDI_HAND WINELIB_NAME_AW(IDI_HAND)
1540 #define IDI_QUESTION16 MAKEINTRESOURCE16(32514)
1541 #define IDI_QUESTION32A MAKEINTRESOURCE32A(32514)
1542 #define IDI_QUESTION32W MAKEINTRESOURCE32W(32514)
1543 #define IDI_QUESTION WINELIB_NAME_AW(IDI_QUESTION)
1544 #define IDI_EXCLAMATION16 MAKEINTRESOURCE16(32515)
1545 #define IDI_EXCLAMATION32A MAKEINTRESOURCE32A(32515)
1546 #define IDI_EXCLAMATION32W MAKEINTRESOURCE32W(32515)
1547 #define IDI_EXCLAMATION WINELIB_NAME_AW(IDI_EXCLAMATION)
1548 #define IDI_ASTERISK16 MAKEINTRESOURCE16(32516)
1549 #define IDI_ASTERISK32A MAKEINTRESOURCE32A(32516)
1550 #define IDI_ASTERISK32W MAKEINTRESOURCE32W(32516)
1551 #define IDI_ASTERISK WINELIB_NAME_AW(IDI_ASTERISK)
1553 #define IDC_BUMMER16 MAKEINTRESOURCE16(100)
1554 #define IDC_BUMMER32A MAKEINTRESOURCE32A(100)
1555 #define IDC_BUMMER32W MAKEINTRESOURCE32W(100)
1556 #define IDC_BUMMER WINELIB_NAME_AW(IDC_BUMMER)
1557 #define IDC_ARROW16 MAKEINTRESOURCE16(32512)
1558 #define IDC_ARROW32A MAKEINTRESOURCE32A(32512)
1559 #define IDC_ARROW32W MAKEINTRESOURCE32W(32512)
1560 #define IDC_ARROW WINELIB_NAME_AW(IDC_ARROW)
1561 #define IDC_IBEAM16 MAKEINTRESOURCE16(32513)
1562 #define IDC_IBEAM32A MAKEINTRESOURCE32A(32513)
1563 #define IDC_IBEAM32W MAKEINTRESOURCE32W(32513)
1564 #define IDC_IBEAM WINELIB_NAME_AW(IDC_IBEAM)
1565 #define IDC_WAIT16 MAKEINTRESOURCE16(32514)
1566 #define IDC_WAIT32A MAKEINTRESOURCE32A(32514)
1567 #define IDC_WAIT32W MAKEINTRESOURCE32W(32514)
1568 #define IDC_WAIT WINELIB_NAME_AW(IDC_WAIT)
1569 #define IDC_CROSS16 MAKEINTRESOURCE16(32515)
1570 #define IDC_CROSS32A MAKEINTRESOURCE32A(32515)
1571 #define IDC_CROSS32W MAKEINTRESOURCE32W(32515)
1572 #define IDC_CROSS WINELIB_NAME_AW(IDC_CROSS)
1573 #define IDC_UPARROW16 MAKEINTRESOURCE16(32516)
1574 #define IDC_UPARROW32A MAKEINTRESOURCE32A(32516)
1575 #define IDC_UPARROW32W MAKEINTRESOURCE32W(32516)
1576 #define IDC_UPARROW WINELIB_NAME_AW(IDC_UPARROW)
1577 #define IDC_SIZE16 MAKEINTRESOURCE16(32640)
1578 #define IDC_SIZE32A MAKEINTRESOURCE32A(32640)
1579 #define IDC_SIZE32W MAKEINTRESOURCE32W(32640)
1580 #define IDC_SIZE WINELIB_NAME_AW(IDC_SIZE)
1581 #define IDC_ICON16 MAKEINTRESOURCE16(32641)
1582 #define IDC_ICON32A MAKEINTRESOURCE32A(32641)
1583 #define IDC_ICON32W MAKEINTRESOURCE32W(32641)
1584 #define IDC_ICON WINELIB_NAME_AW(IDC_ICON)
1585 #define IDC_SIZENWSE16 MAKEINTRESOURCE16(32642)
1586 #define IDC_SIZENWSE32A MAKEINTRESOURCE32A(32642)
1587 #define IDC_SIZENWSE32W MAKEINTRESOURCE32W(32642)
1588 #define IDC_SIZENWSE WINELIB_NAME_AW(IDC_SIZENWSE)
1589 #define IDC_SIZENESW16 MAKEINTRESOURCE16(32643)
1590 #define IDC_SIZENESW32A MAKEINTRESOURCE32A(32643)
1591 #define IDC_SIZENESW32W MAKEINTRESOURCE32W(32643)
1592 #define IDC_SIZENESW WINELIB_NAME_AW(IDC_SIZENESW)
1593 #define IDC_SIZEWE16 MAKEINTRESOURCE16(32644)
1594 #define IDC_SIZEWE32A MAKEINTRESOURCE32A(32644)
1595 #define IDC_SIZEWE32W MAKEINTRESOURCE32W(32644)
1596 #define IDC_SIZEWE WINELIB_NAME_AW(IDC_SIZEWE)
1597 #define IDC_SIZENS16 MAKEINTRESOURCE16(32645)
1598 #define IDC_SIZENS32A MAKEINTRESOURCE32A(32645)
1599 #define IDC_SIZENS32W MAKEINTRESOURCE32W(32645)
1600 #define IDC_SIZENS WINELIB_NAME_AW(IDC_SIZENS)
1601 #define IDC_SIZEALL16 MAKEINTRESOURCE16(32646)
1602 #define IDC_SIZEALL32A MAKEINTRESOURCE32A(32646)
1603 #define IDC_SIZEALL32W MAKEINTRESOURCE32W(32646)
1604 #define IDC_SIZEALL WINELIB_NAME_AW(IDC_SIZEALL)
1605 #define IDC_NO16 MAKEINTRESOURCE16(32648)
1606 #define IDC_NO32A MAKEINTRESOURCE32A(32648)
1607 #define IDC_NO32W MAKEINTRESOURCE32W(32648)
1608 #define IDC_NO WINELIB_NAME_AW(IDC_NO)
1609 #define IDC_APPSTARTING16 MAKEINTRESOURCE16(32650)
1610 #define IDC_APPSTARTING32A MAKEINTRESOURCE32A(32650)
1611 #define IDC_APPSTARTING32W MAKEINTRESOURCE32W(32650)
1612 #define IDC_APPSTARTING WINELIB_NAME_AW(IDC_APPSTARTING)
1613 #define IDC_HELP16 MAKEINTRESOURCE16(32651)
1614 #define IDC_HELP32A MAKEINTRESOURCE32A(32651)
1615 #define IDC_HELP32W MAKEINTRESOURCE32W(32651)
1616 #define IDC_HELP WINELIB_NAME_AW(IDC_HELP)
1618 /* OEM Resource Ordinal Numbers */
1619 #define OBM_CLOSE 32754
1620 #define OBM_UPARROW 32753
1621 #define OBM_DNARROW 32752
1622 #define OBM_RGARROW 32751
1623 #define OBM_LFARROW 32750
1624 #define OBM_REDUCE 32749
1625 #define OBM_ZOOM 32748
1626 #define OBM_RESTORE 32747
1627 #define OBM_REDUCED 32746
1628 #define OBM_ZOOMD 32745
1629 #define OBM_RESTORED 32744
1630 #define OBM_UPARROWD 32743
1631 #define OBM_DNARROWD 32742
1632 #define OBM_RGARROWD 32741
1633 #define OBM_LFARROWD 32740
1634 #define OBM_MNARROW 32739
1635 #define OBM_COMBO 32738
1636 #define OBM_UPARROWI 32737
1637 #define OBM_DNARROWI 32736
1638 #define OBM_RGARROWI 32735
1639 #define OBM_LFARROWI 32734
1641 #define OBM_FOLDER 32733
1642 #define OBM_FOLDER2 32732
1643 #define OBM_FLOPPY 32731
1644 #define OBM_HDISK 32730
1645 #define OBM_CDROM 32729
1646 #define OBM_TRTYPE 32728
1648 /* Wine extension, I think. */
1649 #define OBM_RADIOCHECK 32727
1651 #define OBM_OLD_CLOSE 32767
1652 #define OBM_SIZE 32766
1653 #define OBM_OLD_UPARROW 32765
1654 #define OBM_OLD_DNARROW 32764
1655 #define OBM_OLD_RGARROW 32763
1656 #define OBM_OLD_LFARROW 32762
1657 #define OBM_BTSIZE 32761
1658 #define OBM_CHECK 32760
1659 #define OBM_CHECKBOXES 32759
1660 #define OBM_BTNCORNERS 32758
1661 #define OBM_OLD_REDUCE 32757
1662 #define OBM_OLD_ZOOM 32756
1663 #define OBM_OLD_RESTORE 32755
1665 #define OCR_BUMMER 100
1666 #define OCR_DRAGOBJECT 101
1668 #define OCR_NORMAL 32512
1669 #define OCR_IBEAM 32513
1670 #define OCR_WAIT 32514
1671 #define OCR_CROSS 32515
1672 #define OCR_UP 32516
1673 #define OCR_SIZE 32640
1674 #define OCR_ICON 32641
1675 #define OCR_SIZENWSE 32642
1676 #define OCR_SIZENESW 32643
1677 #define OCR_SIZEWE 32644
1678 #define OCR_SIZENS 32645
1679 #define OCR_SIZEALL 32646
1680 #define OCR_ICOCUR 32647
1681 #define OCR_NO 32648
1682 #define OCR_APPSTARTING 32650
1683 #define OCR_HELP 32651 /* only defined in wine */
1685 #define OIC_SAMPLE 32512
1686 #define OIC_HAND 32513
1687 #define OIC_QUES 32514
1688 #define OIC_BANG 32515
1689 #define OIC_NOTE 32516
1690 #define OIC_PORTRAIT 32517
1691 #define OIC_LANDSCAPE 32518
1692 #define OIC_WINEICON 32519
1695 /* DragObject stuff */
1697 typedef struct
1699 HWND16 hWnd;
1700 HANDLE16 hScope;
1701 WORD wFlags;
1702 HANDLE16 hList;
1703 HANDLE16 hOfStruct;
1704 POINT16 pt WINE_PACKED;
1705 LONG l WINE_PACKED;
1706 } DRAGINFO, *LPDRAGINFO;
1708 #define DRAGOBJ_PROGRAM 0x0001
1709 #define DRAGOBJ_DATA 0x0002
1710 #define DRAGOBJ_DIRECTORY 0x0004
1711 #define DRAGOBJ_MULTIPLE 0x0008
1712 #define DRAGOBJ_EXTERNAL 0x8000
1714 #define DRAG_PRINT 0x544E5250
1715 #define DRAG_FILE 0x454C4946
1717 /* Messages */
1719 #define WM_NULL 0x0000
1720 #define WM_CREATE 0x0001
1721 #define WM_DESTROY 0x0002
1722 #define WM_MOVE 0x0003
1723 #define WM_SIZEWAIT 0x0004
1724 #define WM_SIZE 0x0005
1725 #define WM_ACTIVATE 0x0006
1726 #define WM_SETFOCUS 0x0007
1727 #define WM_KILLFOCUS 0x0008
1728 #define WM_SETVISIBLE 0x0009
1729 #define WM_ENABLE 0x000a
1730 #define WM_SETREDRAW 0x000b
1731 #define WM_SETTEXT 0x000c
1732 #define WM_GETTEXT 0x000d
1733 #define WM_GETTEXTLENGTH 0x000e
1734 #define WM_PAINT 0x000f
1735 #define WM_CLOSE 0x0010
1736 #define WM_QUERYENDSESSION 0x0011
1737 #define WM_QUIT 0x0012
1738 #define WM_QUERYOPEN 0x0013
1739 #define WM_ERASEBKGND 0x0014
1740 #define WM_SYSCOLORCHANGE 0x0015
1741 #define WM_ENDSESSION 0x0016
1742 #define WM_SYSTEMERROR 0x0017
1743 #define WM_SHOWWINDOW 0x0018
1744 #define WM_CTLCOLOR 0x0019
1745 #define WM_WININICHANGE 0x001a
1746 #define WM_SETTINGCHANGE WM_WININICHANGE
1747 #define WM_DEVMODECHANGE 0x001b
1748 #define WM_ACTIVATEAPP 0x001c
1749 #define WM_FONTCHANGE 0x001d
1750 #define WM_TIMECHANGE 0x001e
1751 #define WM_CANCELMODE 0x001f
1752 #define WM_SETCURSOR 0x0020
1753 #define WM_MOUSEACTIVATE 0x0021
1754 #define WM_CHILDACTIVATE 0x0022
1755 #define WM_QUEUESYNC 0x0023
1756 #define WM_GETMINMAXINFO 0x0024
1758 #define WM_PAINTICON 0x0026
1759 #define WM_ICONERASEBKGND 0x0027
1760 #define WM_NEXTDLGCTL 0x0028
1761 #define WM_ALTTABACTIVE 0x0029
1762 #define WM_SPOOLERSTATUS 0x002a
1763 #define WM_DRAWITEM 0x002b
1764 #define WM_MEASUREITEM 0x002c
1765 #define WM_DELETEITEM 0x002d
1766 #define WM_VKEYTOITEM 0x002e
1767 #define WM_CHARTOITEM 0x002f
1768 #define WM_SETFONT 0x0030
1769 #define WM_GETFONT 0x0031
1770 #define WM_SETHOTKEY 0x0032
1771 #define WM_GETHOTKEY 0x0033
1772 #define WM_FILESYSCHANGE 0x0034
1773 #define WM_ISACTIVEICON 0x0035
1774 #define WM_QUERYPARKICON 0x0036
1775 #define WM_QUERYDRAGICON 0x0037
1776 #define WM_QUERYSAVESTATE 0x0038
1777 #define WM_COMPAREITEM 0x0039
1778 #define WM_TESTING 0x003a
1780 #define WM_OTHERWINDOWCREATED 0x003c
1781 #define WM_OTHERWINDOWDESTROYED 0x003d
1782 #define WM_ACTIVATESHELLWINDOW 0x003e
1784 #define WM_COMPACTING 0x0041
1786 #define WM_COMMNOTIFY 0x0044
1787 #define WM_WINDOWPOSCHANGING 0x0046
1788 #define WM_WINDOWPOSCHANGED 0x0047
1789 #define WM_POWER 0x0048
1791 /* Win32 4.0 messages */
1792 #define WM_COPYDATA 0x004a
1793 #define WM_CANCELJOURNAL 0x004b
1794 #define WM_NOTIFY 0x004e
1795 #define WM_HELP 0x0053
1796 #define WM_NOTIFYFORMAT 0x0055
1798 #define WM_CONTEXTMENU 0x007b
1799 #define WM_STYLECHANGING 0x007c
1800 #define WM_STYLECHANGED 0x007d
1801 #define WM_DISPLAYCHANGE 0x007e
1802 #define WM_GETICON 0x007f
1803 #define WM_SETICON 0x0080
1805 /* Non-client system messages */
1806 #define WM_NCCREATE 0x0081
1807 #define WM_NCDESTROY 0x0082
1808 #define WM_NCCALCSIZE 0x0083
1809 #define WM_NCHITTEST 0x0084
1810 #define WM_NCPAINT 0x0085
1811 #define WM_NCACTIVATE 0x0086
1813 #define WM_GETDLGCODE 0x0087
1814 #define WM_SYNCPAINT 0x0088
1815 #define WM_SYNCTASK 0x0089
1817 /* Non-client mouse messages */
1818 #define WM_NCMOUSEMOVE 0x00a0
1819 #define WM_NCLBUTTONDOWN 0x00a1
1820 #define WM_NCLBUTTONUP 0x00a2
1821 #define WM_NCLBUTTONDBLCLK 0x00a3
1822 #define WM_NCRBUTTONDOWN 0x00a4
1823 #define WM_NCRBUTTONUP 0x00a5
1824 #define WM_NCRBUTTONDBLCLK 0x00a6
1825 #define WM_NCMBUTTONDOWN 0x00a7
1826 #define WM_NCMBUTTONUP 0x00a8
1827 #define WM_NCMBUTTONDBLCLK 0x00a9
1829 /* Keyboard messages */
1830 #define WM_KEYDOWN 0x0100
1831 #define WM_KEYUP 0x0101
1832 #define WM_CHAR 0x0102
1833 #define WM_DEADCHAR 0x0103
1834 #define WM_SYSKEYDOWN 0x0104
1835 #define WM_SYSKEYUP 0x0105
1836 #define WM_SYSCHAR 0x0106
1837 #define WM_SYSDEADCHAR 0x0107
1838 #define WM_KEYFIRST WM_KEYDOWN
1839 #define WM_KEYLAST 0x0108
1841 #define WM_INITDIALOG 0x0110
1842 #define WM_COMMAND 0x0111
1843 #define WM_SYSCOMMAND 0x0112
1844 #define WM_TIMER 0x0113
1845 #define WM_SYSTIMER 0x0118
1847 /* scroll messages */
1848 #define WM_HSCROLL 0x0114
1849 #define WM_VSCROLL 0x0115
1851 /* Menu messages */
1852 #define WM_INITMENU 0x0116
1853 #define WM_INITMENUPOPUP 0x0117
1855 #define WM_MENUSELECT 0x011F
1856 #define WM_MENUCHAR 0x0120
1857 #define WM_ENTERIDLE 0x0121
1859 #define WM_LBTRACKPOINT 0x0131
1861 /* Win32 CTLCOLOR messages */
1862 #define WM_CTLCOLORMSGBOX 0x0132
1863 #define WM_CTLCOLOREDIT 0x0133
1864 #define WM_CTLCOLORLISTBOX 0x0134
1865 #define WM_CTLCOLORBTN 0x0135
1866 #define WM_CTLCOLORDLG 0x0136
1867 #define WM_CTLCOLORSCROLLBAR 0x0137
1868 #define WM_CTLCOLORSTATIC 0x0138
1870 /* Mouse messages */
1871 #define WM_MOUSEMOVE 0x0200
1872 #define WM_LBUTTONDOWN 0x0201
1873 #define WM_LBUTTONUP 0x0202
1874 #define WM_LBUTTONDBLCLK 0x0203
1875 #define WM_RBUTTONDOWN 0x0204
1876 #define WM_RBUTTONUP 0x0205
1877 #define WM_RBUTTONDBLCLK 0x0206
1878 #define WM_MBUTTONDOWN 0x0207
1879 #define WM_MBUTTONUP 0x0208
1880 #define WM_MBUTTONDBLCLK 0x0209
1881 #define WM_MOUSEFIRST WM_MOUSEMOVE
1882 #define WM_MOUSELAST WM_MBUTTONDBLCLK
1884 #define WM_PARENTNOTIFY 0x0210
1885 #define WM_ENTERMENULOOP 0x0211
1886 #define WM_EXITMENULOOP 0x0212
1887 #define WM_NEXTMENU 0x0213
1889 /* Win32 4.0 messages */
1890 #define WM_SIZING 0x0214
1891 #define WM_CAPTURECHANGED 0x0215
1892 #define WM_MOVING 0x0216
1894 /* MDI messages */
1895 #define WM_MDICREATE 0x0220
1896 #define WM_MDIDESTROY 0x0221
1897 #define WM_MDIACTIVATE 0x0222
1898 #define WM_MDIRESTORE 0x0223
1899 #define WM_MDINEXT 0x0224
1900 #define WM_MDIMAXIMIZE 0x0225
1901 #define WM_MDITILE 0x0226
1902 #define WM_MDICASCADE 0x0227
1903 #define WM_MDIICONARRANGE 0x0228
1904 #define WM_MDIGETACTIVE 0x0229
1905 #define WM_MDIREFRESHMENU 0x0234
1907 /* D&D messages */
1908 #define WM_DROPOBJECT 0x022A
1909 #define WM_QUERYDROPOBJECT 0x022B
1910 #define WM_BEGINDRAG 0x022C
1911 #define WM_DRAGLOOP 0x022D
1912 #define WM_DRAGSELECT 0x022E
1913 #define WM_DRAGMOVE 0x022F
1914 #define WM_MDISETMENU 0x0230
1916 #define WM_ENTERSIZEMOVE 0x0231
1917 #define WM_EXITSIZEMOVE 0x0232
1918 #define WM_DROPFILES 0x0233
1920 #define WM_CUT 0x0300
1921 #define WM_COPY 0x0301
1922 #define WM_PASTE 0x0302
1923 #define WM_CLEAR 0x0303
1924 #define WM_UNDO 0x0304
1925 #define WM_RENDERFORMAT 0x0305
1926 #define WM_RENDERALLFORMATS 0x0306
1927 #define WM_DESTROYCLIPBOARD 0x0307
1928 #define WM_DRAWCLIPBOARD 0x0308
1929 #define WM_PAINTCLIPBOARD 0x0309
1930 #define WM_VSCROLLCLIPBOARD 0x030A
1931 #define WM_SIZECLIPBOARD 0x030B
1932 #define WM_ASKCBFORMATNAME 0x030C
1933 #define WM_CHANGECBCHAIN 0x030D
1934 #define WM_HSCROLLCLIPBOARD 0x030E
1935 #define WM_QUERYNEWPALETTE 0x030F
1936 #define WM_PALETTEISCHANGING 0x0310
1937 #define WM_PALETTECHANGED 0x0311
1938 #define WM_HOTKEY 0x0312
1940 #define WM_PRINT 0x0317
1941 #define WM_PRINTCLIENT 0x0318
1943 /* MFC messages [370-37f] */
1945 #define WM_QUERYAFXWNDPROC 0x0360
1946 #define WM_SIZEPARENT 0x0361
1947 #define WM_SETMESSAGESTRING 0x0362
1948 #define WM_IDLEUPDATECMDUI 0x0363
1949 #define WM_INITIALUPDATE 0x0364
1950 #define WM_COMMANDHELP 0x0365
1951 #define WM_HELPHITTEST 0x0366
1952 #define WM_EXITHELPMODE 0x0367
1953 #define WM_RECALCPARENT 0x0368
1954 #define WM_SIZECHILD 0x0369
1955 #define WM_KICKIDLE 0x036A
1956 #define WM_QUERYCENTERWND 0x036B
1957 #define WM_DISABLEMODAL 0x036C
1958 #define WM_FLOATSTATUS 0x036D
1959 #define WM_ACTIVATETOPLEVEL 0x036E
1960 #define WM_QUERY3DCONTROLS 0x036F
1961 #define WM_SOCKET_NOTIFY 0x0373
1962 #define WM_SOCKET_DEAD 0x0374
1963 #define WM_POPMESSAGESTRING 0x0375
1964 #define WM_OCC_LOADFROMSTREAM 0x0376
1965 #define WM_OCC_LOADFROMSTORAGE 0x0377
1966 #define WM_OCC_INITNEW 0x0378
1967 #define WM_OCC_LOADFROMSTREAM_EX 0x037A
1968 #define WM_OCC_LOADFROMSTORAGE_EX 0x037B
1969 #define WM_QUEUE_SENTINEL 0x0379
1971 /* end of MFC messages */
1973 #define WM_COALESCE_FIRST 0x0390
1974 #define WM_COALESCE_LAST 0x039F
1976 /* misc messages */
1977 #define WM_NULL 0x0000
1978 #define WM_USER 0x0400
1979 #define WM_CPL_LAUNCH (WM_USER + 1000)
1980 #define WM_CPL_LAUNCHED (WM_USER + 1001)
1982 /* WM_NOTIFYFORMAT commands and return values */
1983 #define NFR_ANSI 1
1984 #define NFR_UNICODE 2
1985 #define NF_QUERY 3
1986 #define NF_REQUERY 4
1988 /* Key status flags for mouse events */
1989 #define MK_LBUTTON 0x0001
1990 #define MK_RBUTTON 0x0002
1991 #define MK_SHIFT 0x0004
1992 #define MK_CONTROL 0x0008
1993 #define MK_MBUTTON 0x0010
1995 /* keybd_event flags */
1996 #define KEYEVENTF_EXTENDEDKEY 0x0001
1997 #define KEYEVENTF_KEYUP 0x0002
1998 #define KEYEVENTF_WINE_FORCEEXTENDED 0x8000
2000 /* mouse_event flags */
2001 #define MOUSEEVENTF_MOVE 0x0001
2002 #define MOUSEEVENTF_LEFTDOWN 0x0002
2003 #define MOUSEEVENTF_LEFTUP 0x0004
2004 #define MOUSEEVENTF_RIGHTDOWN 0x0008
2005 #define MOUSEEVENTF_RIGHTUP 0x0010
2006 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
2007 #define MOUSEEVENTF_MIDDLEUP 0x0040
2008 #define MOUSEEVENTF_ABSOLUTE 0x8000
2010 /* Queue status flags */
2011 #define QS_KEY 0x0001
2012 #define QS_MOUSEMOVE 0x0002
2013 #define QS_MOUSEBUTTON 0x0004
2014 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
2015 #define QS_POSTMESSAGE 0x0008
2016 #define QS_TIMER 0x0010
2017 #define QS_PAINT 0x0020
2018 #define QS_SENDMESSAGE 0x0040
2019 #define QS_ALLINPUT 0x007f
2021 /* PeekMessage() options */
2022 #define PM_NOREMOVE 0x0000
2023 #define PM_REMOVE 0x0001
2024 #define PM_NOYIELD 0x0002
2026 #define WM_SHOWWINDOW 0x0018
2028 /* WM_SHOWWINDOW wParam codes */
2029 #define SW_PARENTCLOSING 1
2030 #define SW_OTHERMAXIMIZED 2
2031 #define SW_PARENTOPENING 3
2032 #define SW_OTHERRESTORED 4
2034 /* ShowWindow() codes */
2035 #define SW_HIDE 0
2036 #define SW_SHOWNORMAL 1
2037 #define SW_NORMAL 1
2038 #define SW_SHOWMINIMIZED 2
2039 #define SW_SHOWMAXIMIZED 3
2040 #define SW_MAXIMIZE 3
2041 #define SW_SHOWNOACTIVATE 4
2042 #define SW_SHOW 5
2043 #define SW_MINIMIZE 6
2044 #define SW_SHOWMINNOACTIVE 7
2045 #define SW_SHOWNA 8
2046 #define SW_RESTORE 9
2047 #define SW_SHOWDEFAULT 10
2048 #define SW_MAX 10
2049 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
2051 /* WM_SIZE message wParam values */
2052 #define SIZE_RESTORED 0
2053 #define SIZE_MINIMIZED 1
2054 #define SIZE_MAXIMIZED 2
2055 #define SIZE_MAXSHOW 3
2056 #define SIZE_MAXHIDE 4
2057 #define SIZENORMAL SIZE_RESTORED
2058 #define SIZEICONIC SIZE_MINIMIZED
2059 #define SIZEFULLSCREEN SIZE_MAXIMIZED
2060 #define SIZEZOOMSHOW SIZE_MAXSHOW
2061 #define SIZEZOOMHIDE SIZE_MAXHIDE
2063 /* SetWindowPos() and WINDOWPOS flags */
2064 #define SWP_NOSIZE 0x0001
2065 #define SWP_NOMOVE 0x0002
2066 #define SWP_NOZORDER 0x0004
2067 #define SWP_NOREDRAW 0x0008
2068 #define SWP_NOACTIVATE 0x0010
2069 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2070 #define SWP_SHOWWINDOW 0x0040
2071 #define SWP_HIDEWINDOW 0x0080
2072 #define SWP_NOCOPYBITS 0x0100
2073 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2075 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2076 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2078 #define SWP_NOSENDCHANGING 0x0400
2079 #define SWP_DEFERERASE 0x2000
2081 #define HWND_DESKTOP ((HWND32)0)
2082 #define HWND_BROADCAST ((HWND32)0xffff)
2084 /* SetWindowPos() hwndInsertAfter field values */
2085 #define HWND_TOP ((HWND32)0)
2086 #define HWND_BOTTOM ((HWND32)1)
2087 #define HWND_TOPMOST ((HWND32)-1)
2088 #define HWND_NOTOPMOST ((HWND32)-2)
2090 /* Flags for TrackPopupMenu */
2091 #define TPM_LEFTBUTTON 0x0000
2092 #define TPM_RIGHTBUTTON 0x0002
2093 #define TPM_LEFTALIGN 0x0000
2094 #define TPM_CENTERALIGN 0x0004
2095 #define TPM_RIGHTALIGN 0x0008
2096 #define TPM_TOPALIGN 0x0000
2097 #define TPM_VCENTERALIGN 0x0010
2098 #define TPM_BOTTOMALIGN 0x0020
2099 #define TPM_HORIZONTAL 0x0000
2100 #define TPM_VERTICAL 0x0040
2101 #define TPM_NONOTIFY 0x0080
2102 #define TPM_RETURNCMD 0x0100
2104 typedef struct
2106 UINT32 cbSize;
2107 RECT32 rcExclude;
2108 } TPMPARAMS, *LPTPMPARAMS;
2111 #define MF_INSERT 0x0000
2112 #define MF_CHANGE 0x0080
2113 #define MF_APPEND 0x0100
2114 #define MF_DELETE 0x0200
2115 #define MF_REMOVE 0x1000
2116 #define MF_END 0x0080
2118 #define MF_ENABLED 0x0000
2119 #define MF_GRAYED 0x0001
2120 #define MF_DISABLED 0x0002
2121 #define MF_STRING 0x0000
2122 #define MF_BITMAP 0x0004
2123 #define MF_UNCHECKED 0x0000
2124 #define MF_CHECKED 0x0008
2125 #define MF_POPUP 0x0010
2126 #define MF_MENUBARBREAK 0x0020
2127 #define MF_MENUBREAK 0x0040
2128 #define MF_UNHILITE 0x0000
2129 #define MF_HILITE 0x0080
2130 #define MF_OWNERDRAW 0x0100
2131 #define MF_USECHECKBITMAPS 0x0200
2132 #define MF_BYCOMMAND 0x0000
2133 #define MF_BYPOSITION 0x0400
2134 #define MF_SEPARATOR 0x0800
2135 #define MF_DEFAULT 0x1000
2136 #define MF_SYSMENU 0x2000
2137 #define MF_HELP 0x4000
2138 #define MF_RIGHTJUSTIFY 0x4000
2139 #define MF_MOUSESELECT 0x8000
2141 /* Flags for extended menu item types. */
2142 #define MFT_STRING MF_STRING
2143 #define MFT_BITMAP MF_BITMAP
2144 #define MFT_MENUBARBREAK MF_MENUBARBREAK
2145 #define MFT_MENUBREAK MF_MENUBREAK
2146 #define MFT_OWNERDRAW MF_OWNERDRAW
2147 #define MFT_RADIOCHECK 0x00000200L
2148 #define MFT_SEPARATOR MF_SEPARATOR
2149 #define MFT_RIGHTORDER 0x00002000L
2150 #define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
2152 /* Flags for extended menu item states. */
2153 #define MFS_GRAYED 0x00000003L
2154 #define MFS_DISABLED MFS_GRAYED
2155 #define MFS_CHECKED MF_CHECKED
2156 #define MFS_HILITE MF_HILITE
2157 #define MFS_ENABLED MF_ENABLED
2158 #define MFS_UNCHECKED MF_UNCHECKED
2159 #define MFS_UNHILITE MF_UNHILITE
2160 #define MFS_DEFAULT MF_DEFAULT
2162 /* FIXME: not sure this one is correct */
2163 typedef struct {
2164 UINT16 cbSize;
2165 UINT16 fMask;
2166 UINT16 fType;
2167 UINT16 fState;
2168 UINT16 wID;
2169 HMENU16 hSubMenu;
2170 HBITMAP16 hbmpChecked;
2171 HBITMAP16 hbmpUnchecked;
2172 DWORD dwItemData;
2173 LPSTR dwTypeData;
2174 UINT16 cch;
2175 } MENUITEMINFO16, *LPMENUITEMINFO16;
2177 typedef struct {
2178 UINT32 cbSize;
2179 UINT32 fMask;
2180 UINT32 fType;
2181 UINT32 fState;
2182 UINT32 wID;
2183 HMENU32 hSubMenu;
2184 HBITMAP32 hbmpChecked;
2185 HBITMAP32 hbmpUnchecked;
2186 DWORD dwItemData;
2187 LPSTR dwTypeData;
2188 UINT32 cch;
2189 } MENUITEMINFO32A, *LPMENUITEMINFO32A;
2191 typedef struct {
2192 UINT32 cbSize;
2193 UINT32 fMask;
2194 UINT32 fType;
2195 UINT32 fState;
2196 UINT32 wID;
2197 HMENU32 hSubMenu;
2198 HBITMAP32 hbmpChecked;
2199 HBITMAP32 hbmpUnchecked;
2200 DWORD dwItemData;
2201 LPWSTR dwTypeData;
2202 UINT32 cch;
2203 } MENUITEMINFO32W, *LPMENUITEMINFO32W;
2205 DECL_WINELIB_TYPE_AW(MENUITEMINFO)
2206 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)
2208 /* Field specifiers for MENUITEMINFO[AW] type. */
2209 #define MIIM_STATE 0x00000001
2210 #define MIIM_ID 0x00000002
2211 #define MIIM_SUBMENU 0x00000004
2212 #define MIIM_CHECKMARKS 0x00000008
2213 #define MIIM_TYPE 0x00000010
2214 #define MIIM_DATA 0x00000020
2217 #ifndef NOWINOFFSETS
2218 #define GCW_HBRBACKGROUND (-10)
2219 #endif
2221 #define MB_OK 0x00000000
2222 #define MB_OKCANCEL 0x00000001
2223 #define MB_ABORTRETRYIGNORE 0x00000002
2224 #define MB_YESNOCANCEL 0x00000003
2225 #define MB_YESNO 0x00000004
2226 #define MB_RETRYCANCEL 0x00000005
2227 #define MB_TYPEMASK 0x0000000F
2229 #define MB_ICONHAND 0x00000010
2230 #define MB_ICONQUESTION 0x00000020
2231 #define MB_ICONEXCLAMATION 0x00000030
2232 #define MB_ICONASTERISK 0x00000040
2233 #define MB_USERICON 0x00000080
2234 #define MB_ICONMASK 0x000000F0
2236 #define MB_ICONINFORMATION MB_ICONASTERISK
2237 #define MB_ICONSTOP MB_ICONHAND
2238 #define MB_ICONWARNING MB_ICONEXCLAMATION
2239 #define MB_ICONERROR MB_ICONHAND
2241 #define MB_DEFBUTTON1 0x00000000
2242 #define MB_DEFBUTTON2 0x00000100
2243 #define MB_DEFBUTTON3 0x00000200
2244 #define MB_DEFBUTTON4 0x00000300
2245 #define MB_DEFMASK 0x00000F00
2247 #define MB_APPLMODAL 0x00000000
2248 #define MB_SYSTEMMODAL 0x00001000
2249 #define MB_TASKMODAL 0x00002000
2250 #define MB_MODEMASK 0x00003000
2252 #define MB_HELP 0x00004000
2253 #define MB_NOFOCUS 0x00008000
2254 #define MB_MISCMASK 0x0000C000
2256 #define MB_SETFOREGROUND 0x00010000
2257 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
2258 #define MB_SERVICE_NOTIFICATION 0x00040000
2259 #define MB_TOPMOST 0x00040000
2260 #define MB_RIGHT 0x00080000
2261 #define MB_RTLREADING 0x00100000
2264 #define DT_TOP 0
2265 #define DT_LEFT 0
2266 #define DT_CENTER 1
2267 #define DT_RIGHT 2
2268 #define DT_VCENTER 4
2269 #define DT_BOTTOM 8
2270 #define DT_WORDBREAK 16
2271 #define DT_SINGLELINE 32
2272 #define DT_EXPANDTABS 64
2273 #define DT_TABSTOP 128
2274 #define DT_NOCLIP 256
2275 #define DT_EXTERNALLEADING 512
2276 #define DT_CALCRECT 1024
2277 #define DT_NOPREFIX 2048
2278 #define DT_INTERNAL 4096
2280 /* DrawCaption()/DrawCaptionTemp() flags */
2281 #define DC_ACTIVE 0x0001
2282 #define DC_SMALLCAP 0x0002
2283 #define DC_ICON 0x0004
2284 #define DC_TEXT 0x0008
2285 #define DC_INBUTTON 0x0010
2287 /* DrawEdge() flags */
2288 #define BDR_RAISEDOUTER 0x0001
2289 #define BDR_SUNKENOUTER 0x0002
2290 #define BDR_RAISEDINNER 0x0004
2291 #define BDR_SUNKENINNER 0x0008
2293 #define BDR_OUTER 0x0003
2294 #define BDR_INNER 0x000c
2295 #define BDR_RAISED 0x0005
2296 #define BDR_SUNKEN 0x000a
2298 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
2299 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
2300 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
2301 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
2303 /* border flags */
2304 #define BF_LEFT 0x0001
2305 #define BF_TOP 0x0002
2306 #define BF_RIGHT 0x0004
2307 #define BF_BOTTOM 0x0008
2308 #define BF_DIAGONAL 0x0010
2309 #define BF_MIDDLE 0x0800 /* Fill in the middle */
2310 #define BF_SOFT 0x1000 /* For softer buttons */
2311 #define BF_ADJUST 0x2000 /* Calculate the space left over */
2312 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
2313 #define BF_MONO 0x8000 /* For monochrome borders */
2314 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
2315 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
2316 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
2317 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
2318 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
2319 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
2320 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
2321 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
2322 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
2324 /* DrawFrameControl() uType's */
2326 #define DFC_CAPTION 1
2327 #define DFC_MENU 2
2328 #define DFC_SCROLL 3
2329 #define DFC_BUTTON 4
2331 /* uState's */
2333 #define DFCS_CAPTIONCLOSE 0x0000
2334 #define DFCS_CAPTIONMIN 0x0001
2335 #define DFCS_CAPTIONMAX 0x0002
2336 #define DFCS_CAPTIONRESTORE 0x0003
2337 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
2339 #define DFCS_MENUARROW 0x0000
2340 #define DFCS_MENUCHECK 0x0001
2341 #define DFCS_MENUBULLET 0x0002
2342 #define DFCS_MENUARROWRIGHT 0x0004
2344 #define DFCS_SCROLLUP 0x0000
2345 #define DFCS_SCROLLDOWN 0x0001
2346 #define DFCS_SCROLLLEFT 0x0002
2347 #define DFCS_SCROLLRIGHT 0x0003
2348 #define DFCS_SCROLLCOMBOBOX 0x0005
2349 #define DFCS_SCROLLSIZEGRIP 0x0008
2350 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
2352 #define DFCS_BUTTONCHECK 0x0000
2353 #define DFCS_BUTTONRADIOIMAGE 0x0001
2354 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
2355 #define DFCS_BUTTONRADIO 0x0004
2356 #define DFCS_BUTTON3STATE 0x0008
2357 #define DFCS_BUTTONPUSH 0x0010
2359 /* additional state of the control */
2361 #define DFCS_INACTIVE 0x0100
2362 #define DFCS_PUSHED 0x0200
2363 #define DFCS_CHECKED 0x0400
2364 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
2365 #define DFCS_FLAT 0x4000
2366 #define DFCS_MONO 0x8000
2368 /* DrawState defines ... */
2369 typedef BOOL16 (CALLBACK *DRAWSTATEPROC16)(HDC16,LPARAM,WPARAM16,INT16,INT16);
2370 typedef BOOL32 (CALLBACK *DRAWSTATEPROC32)(HDC32,LPARAM,WPARAM32,INT32,INT32);
2371 DECL_WINELIB_TYPE(DRAWSTATEPROC)
2373 /* Image type */
2374 #define DST_COMPLEX 0x0000
2375 #define DST_TEXT 0x0001
2376 #define DST_PREFIXTEXT 0x0002
2377 #define DST_ICON 0x0003
2378 #define DST_BITMAP 0x0004
2380 /* State type */
2381 #define DSS_NORMAL 0x0000
2382 #define DSS_UNION 0x0010 /* Gray string appearance */
2383 #define DSS_DISABLED 0x0020
2384 #define DSS_DEFAULT 0x0040 /* Make it bold */
2385 #define DSS_MONO 0x0080
2386 #define DSS_RIGHT 0x8000
2388 /* Window Styles */
2389 #define WS_OVERLAPPED 0x00000000L
2390 #define WS_POPUP 0x80000000L
2391 #define WS_CHILD 0x40000000L
2392 #define WS_MINIMIZE 0x20000000L
2393 #define WS_VISIBLE 0x10000000L
2394 #define WS_DISABLED 0x08000000L
2395 #define WS_CLIPSIBLINGS 0x04000000L
2396 #define WS_CLIPCHILDREN 0x02000000L
2397 #define WS_MAXIMIZE 0x01000000L
2398 #define WS_CAPTION 0x00C00000L
2399 #define WS_BORDER 0x00800000L
2400 #define WS_DLGFRAME 0x00400000L
2401 #define WS_VSCROLL 0x00200000L
2402 #define WS_HSCROLL 0x00100000L
2403 #define WS_SYSMENU 0x00080000L
2404 #define WS_THICKFRAME 0x00040000L
2405 #define WS_GROUP 0x00020000L
2406 #define WS_TABSTOP 0x00010000L
2407 #define WS_MINIMIZEBOX 0x00020000L
2408 #define WS_MAXIMIZEBOX 0x00010000L
2409 #define WS_TILED WS_OVERLAPPED
2410 #define WS_ICONIC WS_MINIMIZE
2411 #define WS_SIZEBOX WS_THICKFRAME
2412 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2413 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2414 #define WS_CHILDWINDOW (WS_CHILD)
2415 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2417 /* Window extended styles */
2418 #define WS_EX_DLGMODALFRAME 0x00000001L
2419 #define WS_EX_DRAGDETECT 0x00000002L
2420 #define WS_EX_NOPARENTNOTIFY 0x00000004L
2421 #define WS_EX_TOPMOST 0x00000008L
2422 #define WS_EX_ACCEPTFILES 0x00000010L
2423 #define WS_EX_TRANSPARENT 0x00000020L
2425 /* New Win95/WinNT4 styles */
2426 #define WS_EX_MDICHILD 0x00000040L
2427 #define WS_EX_TOOLWINDOW 0x00000080L
2428 #define WS_EX_WINDOWEDGE 0x00000100L
2429 #define WS_EX_CLIENTEDGE 0x00000200L
2430 #define WS_EX_CONTEXTHELP 0x00000400L
2431 #define WS_EX_RIGHT 0x00001000L
2432 #define WS_EX_LEFT 0x00000000L
2433 #define WS_EX_RTLREADING 0x00002000L
2434 #define WS_EX_LTRREADING 0x00000000L
2435 #define WS_EX_LEFTSCROLLBAR 0x00004000L
2436 #define WS_EX_RIGHTSCROLLBAR 0x00000000L
2437 #define WS_EX_CONTROLPARENT 0x00010000L
2438 #define WS_EX_STATICEDGE 0x00020000L
2439 #define WS_EX_APPWINDOW 0x00040000L
2441 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
2442 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
2444 /* Window scrolling */
2445 #define SW_SCROLLCHILDREN 0x0001
2446 #define SW_INVALIDATE 0x0002
2447 #define SW_ERASE 0x0004
2449 /* CreateWindow() coordinates */
2450 #define CW_USEDEFAULT16 ((INT16)0x8000)
2451 #define CW_USEDEFAULT32 ((INT32)0x80000000)
2452 #define CW_USEDEFAULT WINELIB_NAME(CW_USEDEFAULT)
2454 /* ChildWindowFromPointEx Flags */
2455 #define CWP_ALL 0x0000
2456 #define CWP_SKIPINVISIBLE 0x0001
2457 #define CWP_SKIPDISABLED 0x0002
2458 #define CWP_SKIPTRANSPARENT 0x0004
2460 /* Button control styles */
2461 #define BS_PUSHBUTTON 0x00000000L
2462 #define BS_DEFPUSHBUTTON 0x00000001L
2463 #define BS_CHECKBOX 0x00000002L
2464 #define BS_AUTOCHECKBOX 0x00000003L
2465 #define BS_RADIOBUTTON 0x00000004L
2466 #define BS_3STATE 0x00000005L
2467 #define BS_AUTO3STATE 0x00000006L
2468 #define BS_GROUPBOX 0x00000007L
2469 #define BS_USERBUTTON 0x00000008L
2470 #define BS_AUTORADIOBUTTON 0x00000009L
2471 #define BS_OWNERDRAW 0x0000000BL
2472 #define BS_LEFTTEXT 0x00000020L
2474 /* Win16 button control messages */
2475 #define BM_GETCHECK16 (WM_USER+0)
2476 #define BM_SETCHECK16 (WM_USER+1)
2477 #define BM_GETSTATE16 (WM_USER+2)
2478 #define BM_SETSTATE16 (WM_USER+3)
2479 #define BM_SETSTYLE16 (WM_USER+4)
2480 #define BM_CLICK16 WM_NULL /* Does not exist in Win16 */
2481 #define BM_GETIMAGE16 WM_NULL /* Does not exist in Win16 */
2482 #define BM_SETIMAGE16 WM_NULL /* Does not exist in Win16 */
2483 /* Win32 button control messages */
2484 #define BM_GETCHECK32 0x00f0
2485 #define BM_SETCHECK32 0x00f1
2486 #define BM_GETSTATE32 0x00f2
2487 #define BM_SETSTATE32 0x00f3
2488 #define BM_SETSTYLE32 0x00f4
2489 #define BM_CLICK32 0x00f5
2490 #define BM_GETIMAGE32 0x00f6
2491 #define BM_SETIMAGE32 0x00f7
2492 /* Winelib button control messages */
2493 #define BM_GETCHECK WINELIB_NAME(BM_GETCHECK)
2494 #define BM_SETCHECK WINELIB_NAME(BM_SETCHECK)
2495 #define BM_GETSTATE WINELIB_NAME(BM_GETSTATE)
2496 #define BM_SETSTATE WINELIB_NAME(BM_SETSTATE)
2497 #define BM_SETSTYLE WINELIB_NAME(BM_SETSTYLE)
2498 #define BM_CLICK WINELIB_NAME(BM_CLICK)
2499 #define BM_GETIMAGE WINELIB_NAME(BM_GETIMAGE)
2500 #define BM_SETIMAGE WINELIB_NAME(BM_SETIMAGE)
2502 /* Button notification codes */
2503 #define BN_CLICKED 0
2504 #define BN_PAINT 1
2505 #define BN_HILITE 2
2506 #define BN_UNHILITE 3
2507 #define BN_DISABLE 4
2508 #define BN_DOUBLECLICKED 5
2510 /* Static Control Styles */
2511 #define SS_LEFT 0x00000000L
2512 #define SS_CENTER 0x00000001L
2513 #define SS_RIGHT 0x00000002L
2514 #define SS_ICON 0x00000003L
2515 #define SS_BLACKRECT 0x00000004L
2516 #define SS_GRAYRECT 0x00000005L
2517 #define SS_WHITERECT 0x00000006L
2518 #define SS_BLACKFRAME 0x00000007L
2519 #define SS_GRAYFRAME 0x00000008L
2520 #define SS_WHITEFRAME 0x00000009L
2522 #define SS_SIMPLE 0x0000000BL
2523 #define SS_LEFTNOWORDWRAP 0x0000000CL
2525 #define SS_OWNERDRAW 0x0000000DL
2526 #define SS_BITMAP 0x0000000EL
2527 #define SS_ENHMETAFILE 0x0000000FL
2529 #define SS_ETCHEDHORZ 0x00000010L
2530 #define SS_ETCHEDVERT 0x00000011L
2531 #define SS_ETCHEDFRAME 0x00000012L
2532 #define SS_TYPEMASK 0x0000001FL
2534 #define SS_NOPREFIX 0x00000080L
2535 #define SS_NOTIFY 0x00000100L
2536 #define SS_CENTERIMAGE 0x00000200L
2537 #define SS_RIGHTJUST 0x00000400L
2538 #define SS_REALSIZEIMAGE 0x00000800L
2539 #define SS_SUNKEN 0x00001000L
2541 /* Static Control Messages */
2542 #define STM_SETICON16 (WM_USER+0)
2543 #define STM_SETICON32 0x0170
2544 #define STM_SETICON WINELIB_NAME(STM_SETICON)
2545 #define STM_GETICON16 (WM_USER+1)
2546 #define STM_GETICON32 0x0171
2547 #define STM_GETICON WINELIB_NAME(STM_GETICON)
2548 #define STM_SETIMAGE 0x0172
2549 #define STM_GETIMAGE 0x0173
2551 /* WM_H/VSCROLL commands */
2552 #define SB_LINEUP 0
2553 #define SB_LINELEFT 0
2554 #define SB_LINEDOWN 1
2555 #define SB_LINERIGHT 1
2556 #define SB_PAGEUP 2
2557 #define SB_PAGELEFT 2
2558 #define SB_PAGEDOWN 3
2559 #define SB_PAGERIGHT 3
2560 #define SB_THUMBPOSITION 4
2561 #define SB_THUMBTRACK 5
2562 #define SB_TOP 6
2563 #define SB_LEFT 6
2564 #define SB_BOTTOM 7
2565 #define SB_RIGHT 7
2566 #define SB_ENDSCROLL 8
2568 /* Scroll bar selection constants */
2569 #define SB_HORZ 0
2570 #define SB_VERT 1
2571 #define SB_CTL 2
2572 #define SB_BOTH 3
2574 /* Scrollbar styles */
2575 #define SBS_HORZ 0x0000L
2576 #define SBS_VERT 0x0001L
2577 #define SBS_TOPALIGN 0x0002L
2578 #define SBS_LEFTALIGN 0x0002L
2579 #define SBS_BOTTOMALIGN 0x0004L
2580 #define SBS_RIGHTALIGN 0x0004L
2581 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
2582 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
2583 #define SBS_SIZEBOX 0x0008L
2585 /* EnableScrollBar() flags */
2586 #define ESB_ENABLE_BOTH 0x0000
2587 #define ESB_DISABLE_BOTH 0x0003
2589 #define ESB_DISABLE_LEFT 0x0001
2590 #define ESB_DISABLE_RIGHT 0x0002
2592 #define ESB_DISABLE_UP 0x0001
2593 #define ESB_DISABLE_DOWN 0x0002
2595 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
2596 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
2598 /* Scrollbar messages */
2599 #define SBM_SETPOS16 (WM_USER+0)
2600 #define SBM_SETPOS32 0x00e0
2601 #define SBM_SETPOS WINELIB_NAME(SBM_SETPOS)
2602 #define SBM_GETPOS16 (WM_USER+1)
2603 #define SBM_GETPOS32 0x00e1
2604 #define SBM_GETPOS WINELIB_NAME(SBM_GETPOS)
2605 #define SBM_SETRANGE16 (WM_USER+2)
2606 #define SBM_SETRANGE32 0x00e2
2607 #define SBM_SETRANGE WINELIB_NAME(SBM_SETRANGE)
2608 #define SBM_GETRANGE16 (WM_USER+3)
2609 #define SBM_GETRANGE32 0x00e3
2610 #define SBM_GETRANGE WINELIB_NAME(SBM_GETRANGE)
2611 #define SBM_ENABLE_ARROWS16 (WM_USER+4)
2612 #define SBM_ENABLE_ARROWS32 0x00e4
2613 #define SBM_ENABLE_ARROWS WINELIB_NAME(SBM_ENABLE_ARROWS)
2614 #define SBM_SETRANGEREDRAW16 WM_NULL /* Not in Win16 */
2615 #define SBM_SETRANGEREDRAW32 0x00e6
2616 #define SBM_SETRANGEREDRAW WINELIB_NAME(SBM_SETRANGEREDRAW)
2617 #define SBM_SETSCROLLINFO16 WM_NULL /* Not in Win16 */
2618 #define SBM_SETSCROLLINFO32 0x00e9
2619 #define SBM_SETSCROLLINFO WINELIB_NAME(SBM_SETSCROLLINFO)
2620 #define SBM_GETSCROLLINFO16 WM_NULL /* Not in Win16 */
2621 #define SBM_GETSCROLLINFO32 0x00ea
2622 #define SBM_GETSCROLLINFO WINELIB_NAME(SBM_GETSCROLLINFO)
2624 /* Scrollbar info */
2625 typedef struct
2627 UINT32 cbSize;
2628 UINT32 fMask;
2629 INT32 nMin;
2630 INT32 nMax;
2631 UINT32 nPage;
2632 INT32 nPos;
2633 INT32 nTrackPos;
2634 } SCROLLINFO, *LPSCROLLINFO;
2636 /* GetScrollInfo() flags */
2637 #define SIF_RANGE 0x0001
2638 #define SIF_PAGE 0x0002
2639 #define SIF_POS 0x0004
2640 #define SIF_DISABLENOSCROLL 0x0008
2641 #define SIF_TRACKPOS 0x0010
2642 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
2644 /* Listbox styles */
2645 #define LBS_NOTIFY 0x0001
2646 #define LBS_SORT 0x0002
2647 #define LBS_NOREDRAW 0x0004
2648 #define LBS_MULTIPLESEL 0x0008
2649 #define LBS_OWNERDRAWFIXED 0x0010
2650 #define LBS_OWNERDRAWVARIABLE 0x0020
2651 #define LBS_HASSTRINGS 0x0040
2652 #define LBS_USETABSTOPS 0x0080
2653 #define LBS_NOINTEGRALHEIGHT 0x0100
2654 #define LBS_MULTICOLUMN 0x0200
2655 #define LBS_WANTKEYBOARDINPUT 0x0400
2656 #define LBS_EXTENDEDSEL 0x0800
2657 #define LBS_DISABLENOSCROLL 0x1000
2658 #define LBS_NODATA 0x2000
2659 #define LBS_NOSEL 0x4000
2660 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
2662 /* Listbox messages */
2663 #define LB_ADDSTRING16 (WM_USER+1)
2664 #define LB_ADDSTRING32 0x0180
2665 #define LB_ADDSTRING WINELIB_NAME(LB_ADDSTRING)
2666 #define LB_INSERTSTRING16 (WM_USER+2)
2667 #define LB_INSERTSTRING32 0x0181
2668 #define LB_INSERTSTRING WINELIB_NAME(LB_INSERTSTRING)
2669 #define LB_DELETESTRING16 (WM_USER+3)
2670 #define LB_DELETESTRING32 0x0182
2671 #define LB_DELETESTRING WINELIB_NAME(LB_DELETESTRING)
2672 #define LB_SELITEMRANGEEX16 (WM_USER+4)
2673 #define LB_SELITEMRANGEEX32 0x0183
2674 #define LB_SELITEMRANGEEX WINELIB_NAME(LB_SELITEMRANGEEX)
2675 #define LB_RESETCONTENT16 (WM_USER+5)
2676 #define LB_RESETCONTENT32 0x0184
2677 #define LB_RESETCONTENT WINELIB_NAME(LB_RESETCONTENT)
2678 #define LB_SETSEL16 (WM_USER+6)
2679 #define LB_SETSEL32 0x0185
2680 #define LB_SETSEL WINELIB_NAME(LB_SETSEL)
2681 #define LB_SETCURSEL16 (WM_USER+7)
2682 #define LB_SETCURSEL32 0x0186
2683 #define LB_SETCURSEL WINELIB_NAME(LB_SETCURSEL)
2684 #define LB_GETSEL16 (WM_USER+8)
2685 #define LB_GETSEL32 0x0187
2686 #define LB_GETSEL WINELIB_NAME(LB_GETSEL)
2687 #define LB_GETCURSEL16 (WM_USER+9)
2688 #define LB_GETCURSEL32 0x0188
2689 #define LB_GETCURSEL WINELIB_NAME(LB_GETCURSEL)
2690 #define LB_GETTEXT16 (WM_USER+10)
2691 #define LB_GETTEXT32 0x0189
2692 #define LB_GETTEXT WINELIB_NAME(LB_GETTEXT)
2693 #define LB_GETTEXTLEN16 (WM_USER+11)
2694 #define LB_GETTEXTLEN32 0x018a
2695 #define LB_GETTEXTLEN WINELIB_NAME(LB_GETTEXTLEN)
2696 #define LB_GETCOUNT16 (WM_USER+12)
2697 #define LB_GETCOUNT32 0x018b
2698 #define LB_GETCOUNT WINELIB_NAME(LB_GETCOUNT)
2699 #define LB_SELECTSTRING16 (WM_USER+13)
2700 #define LB_SELECTSTRING32 0x018c
2701 #define LB_SELECTSTRING WINELIB_NAME(LB_SELECTSTRING)
2702 #define LB_DIR16 (WM_USER+14)
2703 #define LB_DIR32 0x018d
2704 #define LB_DIR WINELIB_NAME(LB_DIR)
2705 #define LB_GETTOPINDEX16 (WM_USER+15)
2706 #define LB_GETTOPINDEX32 0x018e
2707 #define LB_GETTOPINDEX WINELIB_NAME(LB_GETTOPINDEX)
2708 #define LB_FINDSTRING16 (WM_USER+16)
2709 #define LB_FINDSTRING32 0x018f
2710 #define LB_FINDSTRING WINELIB_NAME(LB_FINDSTRING)
2711 #define LB_GETSELCOUNT16 (WM_USER+17)
2712 #define LB_GETSELCOUNT32 0x0190
2713 #define LB_GETSELCOUNT WINELIB_NAME(LB_GETSELCOUNT)
2714 #define LB_GETSELITEMS16 (WM_USER+18)
2715 #define LB_GETSELITEMS32 0x0191
2716 #define LB_GETSELITEMS WINELIB_NAME(LB_GETSELITEMS)
2717 #define LB_SETTABSTOPS16 (WM_USER+19)
2718 #define LB_SETTABSTOPS32 0x0192
2719 #define LB_SETTABSTOPS WINELIB_NAME(LB_SETTABSTOPS)
2720 #define LB_GETHORIZONTALEXTENT16 (WM_USER+20)
2721 #define LB_GETHORIZONTALEXTENT32 0x0193
2722 #define LB_GETHORIZONTALEXTENT WINELIB_NAME(LB_GETHORIZONTALEXTENT)
2723 #define LB_SETHORIZONTALEXTENT16 (WM_USER+21)
2724 #define LB_SETHORIZONTALEXTENT32 0x0194
2725 #define LB_SETHORIZONTALEXTENT WINELIB_NAME(LB_SETHORIZONTALEXTENT)
2726 #define LB_SETCOLUMNWIDTH16 (WM_USER+22)
2727 #define LB_SETCOLUMNWIDTH32 0x0195
2728 #define LB_SETCOLUMNWIDTH WINELIB_NAME(LB_SETCOLUMNWIDTH)
2729 #define LB_ADDFILE16 (WM_USER+23)
2730 #define LB_ADDFILE32 0x0196
2731 #define LB_ADDFILE WINELIB_NAME(LB_ADDFILE)
2732 #define LB_SETTOPINDEX16 (WM_USER+24)
2733 #define LB_SETTOPINDEX32 0x0197
2734 #define LB_SETTOPINDEX WINELIB_NAME(LB_SETTOPINDEX)
2735 #define LB_GETITEMRECT16 (WM_USER+25)
2736 #define LB_GETITEMRECT32 0x0198
2737 #define LB_GETITEMRECT WINELIB_NAME(LB_GETITEMRECT)
2738 #define LB_GETITEMDATA16 (WM_USER+26)
2739 #define LB_GETITEMDATA32 0x0199
2740 #define LB_GETITEMDATA WINELIB_NAME(LB_GETITEMDATA)
2741 #define LB_SETITEMDATA16 (WM_USER+27)
2742 #define LB_SETITEMDATA32 0x019a
2743 #define LB_SETITEMDATA WINELIB_NAME(LB_SETITEMDATA)
2744 #define LB_SELITEMRANGE16 (WM_USER+28)
2745 #define LB_SELITEMRANGE32 0x019b
2746 #define LB_SELITEMRANGE WINELIB_NAME(LB_SELITEMRANGE)
2747 #define LB_SETANCHORINDEX16 (WM_USER+29)
2748 #define LB_SETANCHORINDEX32 0x019c
2749 #define LB_SETANCHORINDEX WINELIB_NAME(LB_SETANCHORINDEX)
2750 #define LB_GETANCHORINDEX16 (WM_USER+30)
2751 #define LB_GETANCHORINDEX32 0x019d
2752 #define LB_GETANCHORINDEX WINELIB_NAME(LB_GETANCHORINDEX)
2753 #define LB_SETCARETINDEX16 (WM_USER+31)
2754 #define LB_SETCARETINDEX32 0x019e
2755 #define LB_SETCARETINDEX WINELIB_NAME(LB_SETCARETINDEX)
2756 #define LB_GETCARETINDEX16 (WM_USER+32)
2757 #define LB_GETCARETINDEX32 0x019f
2758 #define LB_GETCARETINDEX WINELIB_NAME(LB_GETCARETINDEX)
2759 #define LB_SETITEMHEIGHT16 (WM_USER+33)
2760 #define LB_SETITEMHEIGHT32 0x01a0
2761 #define LB_SETITEMHEIGHT WINELIB_NAME(LB_SETITEMHEIGHT)
2762 #define LB_GETITEMHEIGHT16 (WM_USER+34)
2763 #define LB_GETITEMHEIGHT32 0x01a1
2764 #define LB_GETITEMHEIGHT WINELIB_NAME(LB_GETITEMHEIGHT)
2765 #define LB_FINDSTRINGEXACT16 (WM_USER+35)
2766 #define LB_FINDSTRINGEXACT32 0x01a2
2767 #define LB_FINDSTRINGEXACT WINELIB_NAME(LB_FINDSTRINGEXACT)
2768 #define LB_CARETON16 (WM_USER+36)
2769 #define LB_CARETON32 0x01a3
2770 #define LB_CARETON WINELIB_NAME(LB_CARETON)
2771 #define LB_CARETOFF16 (WM_USER+37)
2772 #define LB_CARETOFF32 0x01a4
2773 #define LB_CARETOFF WINELIB_NAME(LB_CARETOFF)
2774 #define LB_SETLOCALE16 WM_NULL /* Not in Win16 */
2775 #define LB_SETLOCALE32 0x01a5
2776 #define LB_SETLOCALE WINELIB_NAME(LB_SETLOCALE)
2777 #define LB_GETLOCALE16 WM_NULL /* Not in Win16 */
2778 #define LB_GETLOCALE32 0x01a6
2779 #define LB_GETLOCALE WINELIB_NAME(LB_GETLOCALE)
2780 #define LB_SETCOUNT16 WM_NULL /* Not in Win16 */
2781 #define LB_SETCOUNT32 0x01a7
2782 #define LB_SETCOUNT WINELIB_NAME(LB_SETCOUNT)
2783 #define LB_INITSTORAGE16 WM_NULL /* Not in Win16 */
2784 #define LB_INITSTORAGE32 0x01a8
2785 #define LB_INITSTORAGE WINELIB_NAME(LB_INITSTORAGE)
2786 #define LB_ITEMFROMPOINT16 WM_NULL /* Not in Win16 */
2787 #define LB_ITEMFROMPOINT32 0x01a9
2788 #define LB_ITEMFROMPOINT WINELIB_NAME(LB_ITEMFROMPOINT)
2790 /* Listbox notification codes */
2791 #define LBN_ERRSPACE (-2)
2792 #define LBN_SELCHANGE 1
2793 #define LBN_DBLCLK 2
2794 #define LBN_SELCANCEL 3
2795 #define LBN_SETFOCUS 4
2796 #define LBN_KILLFOCUS 5
2798 /* Listbox message return values */
2799 #define LB_OKAY 0
2800 #define LB_ERR (-1)
2801 #define LB_ERRSPACE (-2)
2803 #define LB_CTLCODE 0L
2805 /* Combo box styles */
2806 #define CBS_SIMPLE 0x0001L
2807 #define CBS_DROPDOWN 0x0002L
2808 #define CBS_DROPDOWNLIST 0x0003L
2809 #define CBS_OWNERDRAWFIXED 0x0010L
2810 #define CBS_OWNERDRAWVARIABLE 0x0020L
2811 #define CBS_AUTOHSCROLL 0x0040L
2812 #define CBS_OEMCONVERT 0x0080L
2813 #define CBS_SORT 0x0100L
2814 #define CBS_HASSTRINGS 0x0200L
2815 #define CBS_NOINTEGRALHEIGHT 0x0400L
2816 #define CBS_DISABLENOSCROLL 0x0800L
2818 #define CBS_UPPERCASE 0x2000L
2819 #define CBS_LOWERCASE 0x4000L
2822 /* Combo box messages */
2823 #define CB_GETEDITSEL16 (WM_USER+0)
2824 #define CB_GETEDITSEL32 0x0140
2825 #define CB_GETEDITSEL WINELIB_NAME(CB_GETEDITSEL)
2826 #define CB_LIMITTEXT16 (WM_USER+1)
2827 #define CB_LIMITTEXT32 0x0141
2828 #define CB_LIMITTEXT WINELIB_NAME(CB_LIMITTEXT)
2829 #define CB_SETEDITSEL16 (WM_USER+2)
2830 #define CB_SETEDITSEL32 0x0142
2831 #define CB_SETEDITSEL WINELIB_NAME(CB_SETEDITSEL)
2832 #define CB_ADDSTRING16 (WM_USER+3)
2833 #define CB_ADDSTRING32 0x0143
2834 #define CB_ADDSTRING WINELIB_NAME(CB_ADDSTRING)
2835 #define CB_DELETESTRING16 (WM_USER+4)
2836 #define CB_DELETESTRING32 0x0144
2837 #define CB_DELETESTRING WINELIB_NAME(CB_DELETESTRING)
2838 #define CB_DIR16 (WM_USER+5)
2839 #define CB_DIR32 0x0145
2840 #define CB_DIR WINELIB_NAME(CB_DIR)
2841 #define CB_GETCOUNT16 (WM_USER+6)
2842 #define CB_GETCOUNT32 0x0146
2843 #define CB_GETCOUNT WINELIB_NAME(CB_GETCOUNT)
2844 #define CB_GETCURSEL16 (WM_USER+7)
2845 #define CB_GETCURSEL32 0x0147
2846 #define CB_GETCURSEL WINELIB_NAME(CB_GETCURSEL)
2847 #define CB_GETLBTEXT16 (WM_USER+8)
2848 #define CB_GETLBTEXT32 0x0148
2849 #define CB_GETLBTEXT WINELIB_NAME(CB_GETLBTEXT)
2850 #define CB_GETLBTEXTLEN16 (WM_USER+9)
2851 #define CB_GETLBTEXTLEN32 0x0149
2852 #define CB_GETLBTEXTLEN WINELIB_NAME(CB_GETLBTEXTLEN)
2853 #define CB_INSERTSTRING16 (WM_USER+10)
2854 #define CB_INSERTSTRING32 0x014a
2855 #define CB_INSERTSTRING WINELIB_NAME(CB_INSERTSTRING)
2856 #define CB_RESETCONTENT16 (WM_USER+11)
2857 #define CB_RESETCONTENT32 0x014b
2858 #define CB_RESETCONTENT WINELIB_NAME(CB_RESETCONTENT)
2859 #define CB_FINDSTRING16 (WM_USER+12)
2860 #define CB_FINDSTRING32 0x014c
2861 #define CB_FINDSTRING WINELIB_NAME(CB_FINDSTRING)
2862 #define CB_SELECTSTRING16 (WM_USER+13)
2863 #define CB_SELECTSTRING32 0x014d
2864 #define CB_SELECTSTRING WINELIB_NAME(CB_SELECTSTRING)
2865 #define CB_SETCURSEL16 (WM_USER+14)
2866 #define CB_SETCURSEL32 0x014e
2867 #define CB_SETCURSEL WINELIB_NAME(CB_SETCURSEL)
2868 #define CB_SHOWDROPDOWN16 (WM_USER+15)
2869 #define CB_SHOWDROPDOWN32 0x014f
2870 #define CB_SHOWDROPDOWN WINELIB_NAME(CB_SHOWDROPDOWN)
2871 #define CB_GETITEMDATA16 (WM_USER+16)
2872 #define CB_GETITEMDATA32 0x0150
2873 #define CB_GETITEMDATA WINELIB_NAME(CB_GETITEMDATA)
2874 #define CB_SETITEMDATA16 (WM_USER+17)
2875 #define CB_SETITEMDATA32 0x0151
2876 #define CB_SETITEMDATA WINELIB_NAME(CB_SETITEMDATA)
2877 #define CB_GETDROPPEDCONTROLRECT16 (WM_USER+18)
2878 #define CB_GETDROPPEDCONTROLRECT32 0x0152
2879 #define CB_GETDROPPEDCONTROLRECT WINELIB_NAME(CB_GETDROPPEDCONTROLRECT)
2880 #define CB_SETITEMHEIGHT16 (WM_USER+19)
2881 #define CB_SETITEMHEIGHT32 0x0153
2882 #define CB_SETITEMHEIGHT WINELIB_NAME(CB_SETITEMHEIGHT)
2883 #define CB_GETITEMHEIGHT16 (WM_USER+20)
2884 #define CB_GETITEMHEIGHT32 0x0154
2885 #define CB_GETITEMHEIGHT WINELIB_NAME(CB_GETITEMHEIGHT)
2886 #define CB_SETEXTENDEDUI16 (WM_USER+21)
2887 #define CB_SETEXTENDEDUI32 0x0155
2888 #define CB_SETEXTENDEDUI WINELIB_NAME(CB_SETEXTENDEDUI)
2889 #define CB_GETEXTENDEDUI16 (WM_USER+22)
2890 #define CB_GETEXTENDEDUI32 0x0156
2891 #define CB_GETEXTENDEDUI WINELIB_NAME(CB_GETEXTENDEDUI)
2892 #define CB_GETDROPPEDSTATE16 (WM_USER+23)
2893 #define CB_GETDROPPEDSTATE32 0x0157
2894 #define CB_GETDROPPEDSTATE WINELIB_NAME(CB_GETDROPPEDSTATE)
2895 #define CB_FINDSTRINGEXACT16 (WM_USER+24)
2896 #define CB_FINDSTRINGEXACT32 0x0158
2897 #define CB_FINDSTRINGEXACT WINELIB_NAME(CB_FINDSTRINGEXACT)
2898 #define CB_SETLOCALE16 WM_NULL /* Not in Win16 */
2899 #define CB_SETLOCALE32 0x0159
2900 #define CB_SETLOCALE WINELIB_NAME(CB_SETLOCALE)
2901 #define CB_GETLOCALE16 WM_NULL /* Not in Win16 */
2902 #define CB_GETLOCALE32 0x015a
2903 #define CB_GETLOCALE WINELIB_NAME(CB_GETLOCALE)
2904 #define CB_GETTOPINDEX16 WM_NULL /* Not in Win16 */
2905 #define CB_GETTOPINDEX32 0x015b
2906 #define CB_GETTOPINDEX WINELIB_NAME(CB_GETTOPINDEX)
2907 #define CB_SETTOPINDEX16 WM_NULL /* Not in Win16 */
2908 #define CB_SETTOPINDEX32 0x015c
2909 #define CB_SETTOPINDEX WINELIB_NAME(CB_SETTOPINDEX)
2910 #define CB_GETHORIZONTALEXTENT16 WM_NULL /* Not in Win16 */
2911 #define CB_GETHORIZONTALEXTENT32 0x015d
2912 #define CB_GETHORIZONTALEXTENT WINELIB_NAME(CB_GETHORIZONTALEXTENT)
2913 #define CB_SETHORIZONTALEXTENT16 WM_NULL /* Not in Win16 */
2914 #define CB_SETHORIZONTALEXTENT32 0x015e
2915 #define CB_SETHORIZONTALEXTENT WINELIB_NAME(CB_SETHORIZONTALEXTENT)
2916 #define CB_GETDROPPEDWIDTH16 WM_NULL /* Not in Win16 */
2917 #define CB_GETDROPPEDWIDTH32 0x015f
2918 #define CB_GETDROPPEDWIDTH WINELIB_NAME(CB_GETDROPPEDWIDTH)
2919 #define CB_SETDROPPEDWIDTH16 WM_NULL /* Not in Win16 */
2920 #define CB_SETDROPPEDWIDTH32 0x0160
2921 #define CB_SETDROPPEDWIDTH WINELIB_NAME(CB_SETDROPPEDWIDTH)
2922 #define CB_INITSTORAGE16 WM_NULL /* Not in Win16 */
2923 #define CB_INITSTORAGE32 0x0161
2924 #define CB_INITSTORAGE WINELIB_NAME(CB_INITSTORAGE)
2926 /* Combo box notification codes */
2927 #define CBN_ERRSPACE (-1)
2928 #define CBN_SELCHANGE 1
2929 #define CBN_DBLCLK 2
2930 #define CBN_SETFOCUS 3
2931 #define CBN_KILLFOCUS 4
2932 #define CBN_EDITCHANGE 5
2933 #define CBN_EDITUPDATE 6
2934 #define CBN_DROPDOWN 7
2935 #define CBN_CLOSEUP 8
2936 #define CBN_SELENDOK 9
2937 #define CBN_SELENDCANCEL 10
2939 /* Combo box message return values */
2940 #define CB_OKAY 0
2941 #define CB_ERR (-1)
2942 #define CB_ERRSPACE (-2)
2945 /* Owner draw control types */
2946 #define ODT_MENU 1
2947 #define ODT_LISTBOX 2
2948 #define ODT_COMBOBOX 3
2949 #define ODT_BUTTON 4
2951 /* Owner draw actions */
2952 #define ODA_DRAWENTIRE 0x0001
2953 #define ODA_SELECT 0x0002
2954 #define ODA_FOCUS 0x0004
2956 /* Owner draw state */
2957 #define ODS_SELECTED 0x0001
2958 #define ODS_GRAYED 0x0002
2959 #define ODS_DISABLED 0x0004
2960 #define ODS_CHECKED 0x0008
2961 #define ODS_FOCUS 0x0010
2963 /* Edit control styles */
2964 #define ES_LEFT 0x00000000
2965 #define ES_CENTER 0x00000001
2966 #define ES_RIGHT 0x00000002
2967 #define ES_MULTILINE 0x00000004
2968 #define ES_UPPERCASE 0x00000008
2969 #define ES_LOWERCASE 0x00000010
2970 #define ES_PASSWORD 0x00000020
2971 #define ES_AUTOVSCROLL 0x00000040
2972 #define ES_AUTOHSCROLL 0x00000080
2973 #define ES_NOHIDESEL 0x00000100
2974 #define ES_OEMCONVERT 0x00000400
2975 #define ES_READONLY 0x00000800
2976 #define ES_WANTRETURN 0x00001000
2977 #define ES_NUMBER 0x00002000
2979 /* Edit control messages */
2980 #define EM_GETSEL16 (WM_USER+0)
2981 #define EM_GETSEL32 0x00b0
2982 #define EM_GETSEL WINELIB_NAME(EM_GETSEL)
2983 #define EM_SETSEL16 (WM_USER+1)
2984 #define EM_SETSEL32 0x00b1
2985 #define EM_SETSEL WINELIB_NAME(EM_SETSEL)
2986 #define EM_GETRECT16 (WM_USER+2)
2987 #define EM_GETRECT32 0x00b2
2988 #define EM_GETRECT WINELIB_NAME(EM_GETRECT)
2989 #define EM_SETRECT16 (WM_USER+3)
2990 #define EM_SETRECT32 0x00b3
2991 #define EM_SETRECT WINELIB_NAME(EM_SETRECT)
2992 #define EM_SETRECTNP16 (WM_USER+4)
2993 #define EM_SETRECTNP32 0x00b4
2994 #define EM_SETRECTNP WINELIB_NAME(EM_SETRECTNP)
2995 #define EM_SCROLL16 (WM_USER+5)
2996 #define EM_SCROLL32 0x00b5
2997 #define EM_SCROLL WINELIB_NAME(EM_SCROLL)
2998 #define EM_LINESCROLL16 (WM_USER+6)
2999 #define EM_LINESCROLL32 0x00b6
3000 #define EM_LINESCROLL WINELIB_NAME(EM_LINESCROLL)
3001 #define EM_SCROLLCARET16 (WM_USER+7)
3002 #define EM_SCROLLCARET32 0x00b7
3003 #define EM_SCROLLCARET WINELIB_NAME(EM_SCROLLCARET)
3004 #define EM_GETMODIFY16 (WM_USER+8)
3005 #define EM_GETMODIFY32 0x00b8
3006 #define EM_GETMODIFY WINELIB_NAME(EM_GETMODIFY)
3007 #define EM_SETMODIFY16 (WM_USER+9)
3008 #define EM_SETMODIFY32 0x00b9
3009 #define EM_SETMODIFY WINELIB_NAME(EM_SETMODIFY)
3010 #define EM_GETLINECOUNT16 (WM_USER+10)
3011 #define EM_GETLINECOUNT32 0x00ba
3012 #define EM_GETLINECOUNT WINELIB_NAME(EM_GETLINECOUNT)
3013 #define EM_LINEINDEX16 (WM_USER+11)
3014 #define EM_LINEINDEX32 0x00bb
3015 #define EM_LINEINDEX WINELIB_NAME(EM_LINEINDEX)
3016 #define EM_SETHANDLE16 (WM_USER+12)
3017 #define EM_SETHANDLE32 0x00bc
3018 #define EM_SETHANDLE WINELIB_NAME(EM_SETHANDLE)
3019 #define EM_GETHANDLE16 (WM_USER+13)
3020 #define EM_GETHANDLE32 0x00bd
3021 #define EM_GETHANDLE WINELIB_NAME(EM_GETHANDLE)
3022 #define EM_GETTHUMB16 (WM_USER+14)
3023 #define EM_GETTHUMB32 0x00be
3024 #define EM_GETTHUMB WINELIB_NAME(EM_GETTHUMB)
3025 /* FIXME : missing from specs 0x00bf and 0x00c0 */
3026 #define EM_LINELENGTH16 (WM_USER+17)
3027 #define EM_LINELENGTH32 0x00c1
3028 #define EM_LINELENGTH WINELIB_NAME(EM_LINELENGTH)
3029 #define EM_REPLACESEL16 (WM_USER+18)
3030 #define EM_REPLACESEL32 0x00c2
3031 #define EM_REPLACESEL WINELIB_NAME(EM_REPLACESEL)
3032 /* FIXME : missing from specs 0x00c3 */
3033 #define EM_GETLINE16 (WM_USER+20)
3034 #define EM_GETLINE32 0x00c4
3035 #define EM_GETLINE WINELIB_NAME(EM_GETLINE)
3036 #define EM_LIMITTEXT16 (WM_USER+21)
3037 #define EM_LIMITTEXT32 0x00c5
3038 #define EM_LIMITTEXT WINELIB_NAME(EM_LIMITTEXT)
3039 #define EM_CANUNDO16 (WM_USER+22)
3040 #define EM_CANUNDO32 0x00c6
3041 #define EM_CANUNDO WINELIB_NAME(EM_CANUNDO)
3042 #define EM_UNDO16 (WM_USER+23)
3043 #define EM_UNDO32 0x00c7
3044 #define EM_UNDO WINELIB_NAME(EM_UNDO)
3045 #define EM_FMTLINES16 (WM_USER+24)
3046 #define EM_FMTLINES32 0x00c8
3047 #define EM_FMTLINES WINELIB_NAME(EM_FMTLINES)
3048 #define EM_LINEFROMCHAR16 (WM_USER+25)
3049 #define EM_LINEFROMCHAR32 0x00c9
3050 #define EM_LINEFROMCHAR WINELIB_NAME(EM_LINEFROMCHAR)
3051 /* FIXME : missing from specs 0x00ca */
3052 #define EM_SETTABSTOPS16 (WM_USER+27)
3053 #define EM_SETTABSTOPS32 0x00cb
3054 #define EM_SETTABSTOPS WINELIB_NAME(EM_SETTABSTOPS)
3055 #define EM_SETPASSWORDCHAR16 (WM_USER+28)
3056 #define EM_SETPASSWORDCHAR32 0x00cc
3057 #define EM_SETPASSWORDCHAR WINELIB_NAME(EM_SETPASSWORDCHAR)
3058 #define EM_EMPTYUNDOBUFFER16 (WM_USER+29)
3059 #define EM_EMPTYUNDOBUFFER32 0x00cd
3060 #define EM_EMPTYUNDOBUFFER WINELIB_NAME(EM_EMPTYUNDOBUFFER)
3061 #define EM_GETFIRSTVISIBLELINE16 (WM_USER+30)
3062 #define EM_GETFIRSTVISIBLELINE32 0x00ce
3063 #define EM_GETFIRSTVISIBLELINE WINELIB_NAME(EM_GETFIRSTVISIBLELINE)
3064 #define EM_SETREADONLY16 (WM_USER+31)
3065 #define EM_SETREADONLY32 0x00cf
3066 #define EM_SETREADONLY WINELIB_NAME(EM_SETREADONLY)
3067 #define EM_SETWORDBREAKPROC16 (WM_USER+32)
3068 #define EM_SETWORDBREAKPROC32 0x00d0
3069 #define EM_SETWORDBREAKPROC WINELIB_NAME(EM_SETWORDBREAKPROC)
3070 #define EM_GETWORDBREAKPROC16 (WM_USER+33)
3071 #define EM_GETWORDBREAKPROC32 0x00d1
3072 #define EM_GETWORDBREAKPROC WINELIB_NAME(EM_GETWORDBREAKPROC)
3073 #define EM_GETPASSWORDCHAR16 (WM_USER+34)
3074 #define EM_GETPASSWORDCHAR32 0x00d2
3075 #define EM_GETPASSWORDCHAR WINELIB_NAME(EM_GETPASSWORDCHAR)
3076 #define EM_SETMARGINS16 WM_NULL /* not in win16 */
3077 #define EM_SETMARGINS32 0x00d3
3078 #define EM_SETMARGINS WINELIB_NAME(EM_SETMARGINS)
3079 #define EM_GETMARGINS16 WM_NULL /* not in win16 */
3080 #define EM_GETMARGINS32 0x00d4
3081 #define EM_GETMARGINS WINELIB_NAME(EM_GETMARGINS)
3082 #define EM_GETLIMITTEXT16 WM_NULL /* not in win16 */
3083 #define EM_GETLIMITTEXT32 0x00d5
3084 #define EM_GETLIMITTEXT WINELIB_NAME(EM_GETLIMITTEXT)
3085 #define EM_POSFROMCHAR16 WM_NULL /* not in win16 */
3086 #define EM_POSFROMCHAR32 0x00d6
3087 #define EM_POSFROMCHAR WINELIB_NAME(EM_POSFROMCHAR)
3088 #define EM_CHARFROMPOS16 WM_NULL /* not in win16 */
3089 #define EM_CHARFROMPOS32 0x00d7
3090 #define EM_CHARFROMPOS WINELIB_NAME(EM_CHARFROMPOS)
3091 /* a name change since win95 */
3092 #define EM_SETLIMITTEXT16 WM_NULL /* no name change in win16 */
3093 #define EM_SETLIMITTEXT32 EM_LIMITTEXT32
3094 #define EM_SETLIMITTEXT WINELIB_NAME(EM_SETLIMITTEXT)
3096 /* EDITWORDBREAKPROC code values */
3097 #define WB_LEFT 0
3098 #define WB_RIGHT 1
3099 #define WB_ISDELIMITER 2
3101 /* Edit control notification codes */
3102 #define EN_SETFOCUS 0x0100
3103 #define EN_KILLFOCUS 0x0200
3104 #define EN_CHANGE 0x0300
3105 #define EN_UPDATE 0x0400
3106 #define EN_ERRSPACE 0x0500
3107 #define EN_MAXTEXT 0x0501
3108 #define EN_HSCROLL 0x0601
3109 #define EN_VSCROLL 0x0602
3111 /* New since win95 : EM_SETMARGIN parameters */
3112 #define EC_LEFTMARGIN 0x0001
3113 #define EC_RIGHTMARGIN 0x0002
3114 #define EC_USEFONTINFO 0xffff
3117 typedef struct
3119 UINT16 CtlType;
3120 UINT16 CtlID;
3121 UINT16 itemID;
3122 UINT16 itemAction;
3123 UINT16 itemState;
3124 HWND16 hwndItem;
3125 HDC16 hDC;
3126 RECT16 rcItem WINE_PACKED;
3127 DWORD itemData WINE_PACKED;
3128 } DRAWITEMSTRUCT16, *PDRAWITEMSTRUCT16, *LPDRAWITEMSTRUCT16;
3130 typedef struct
3132 UINT32 CtlType;
3133 UINT32 CtlID;
3134 UINT32 itemID;
3135 UINT32 itemAction;
3136 UINT32 itemState;
3137 HWND32 hwndItem;
3138 HDC32 hDC;
3139 RECT32 rcItem WINE_PACKED;
3140 DWORD itemData WINE_PACKED;
3141 } DRAWITEMSTRUCT32, *PDRAWITEMSTRUCT32, *LPDRAWITEMSTRUCT32;
3143 DECL_WINELIB_TYPE(DRAWITEMSTRUCT)
3144 DECL_WINELIB_TYPE(PDRAWITEMSTRUCT)
3145 DECL_WINELIB_TYPE(LPDRAWITEMSTRUCT)
3147 typedef struct
3149 UINT16 CtlType;
3150 UINT16 CtlID;
3151 UINT16 itemID;
3152 UINT16 itemWidth;
3153 UINT16 itemHeight;
3154 DWORD itemData WINE_PACKED;
3155 } MEASUREITEMSTRUCT16, *PMEASUREITEMSTRUCT16, *LPMEASUREITEMSTRUCT16;
3157 typedef struct
3159 UINT32 CtlType;
3160 UINT32 CtlID;
3161 UINT32 itemID;
3162 UINT32 itemWidth;
3163 UINT32 itemHeight;
3164 DWORD itemData;
3165 } MEASUREITEMSTRUCT32, *PMEASUREITEMSTRUCT32, *LPMEASUREITEMSTRUCT32;
3167 DECL_WINELIB_TYPE(MEASUREITEMSTRUCT)
3168 DECL_WINELIB_TYPE(PMEASUREITEMSTRUCT)
3169 DECL_WINELIB_TYPE(LPMEASUREITEMSTRUCT)
3171 typedef struct
3173 UINT16 CtlType;
3174 UINT16 CtlID;
3175 UINT16 itemID;
3176 HWND16 hwndItem;
3177 DWORD itemData;
3178 } DELETEITEMSTRUCT16, *LPDELETEITEMSTRUCT16;
3180 typedef struct
3182 UINT32 CtlType;
3183 UINT32 CtlID;
3184 UINT32 itemID;
3185 HWND32 hwndItem;
3186 DWORD itemData;
3187 } DELETEITEMSTRUCT32, *LPDELETEITEMSTRUCT32;
3189 DECL_WINELIB_TYPE(DELETEITEMSTRUCT)
3190 DECL_WINELIB_TYPE(LPDELETEITEMSTRUCT)
3192 typedef struct
3194 UINT16 CtlType;
3195 UINT16 CtlID;
3196 HWND16 hwndItem;
3197 UINT16 itemID1;
3198 DWORD itemData1;
3199 UINT16 itemID2;
3200 DWORD itemData2 WINE_PACKED;
3201 } COMPAREITEMSTRUCT16, *LPCOMPAREITEMSTRUCT16;
3203 typedef struct
3205 UINT32 CtlType;
3206 UINT32 CtlID;
3207 HWND32 hwndItem;
3208 UINT32 itemID1;
3209 DWORD itemData1;
3210 UINT32 itemID2;
3211 DWORD itemData2;
3212 DWORD dwLocaleId;
3213 } COMPAREITEMSTRUCT32, *LPCOMPAREITEMSTRUCT32;
3215 DECL_WINELIB_TYPE(COMPAREITEMSTRUCT)
3216 DECL_WINELIB_TYPE(LPCOMPAREITEMSTRUCT)
3218 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
3219 #define KF_EXTENDED 0x0100
3220 #define KF_DLGMODE 0x0800
3221 #define KF_MENUMODE 0x1000
3222 #define KF_ALTDOWN 0x2000
3223 #define KF_REPEAT 0x4000
3224 #define KF_UP 0x8000
3226 /* Virtual key codes */
3227 #define VK_LBUTTON 0x01
3228 #define VK_RBUTTON 0x02
3229 #define VK_CANCEL 0x03
3230 #define VK_MBUTTON 0x04
3231 /* 0x05-0x07 Undefined */
3232 #define VK_BACK 0x08
3233 #define VK_TAB 0x09
3234 /* 0x0A-0x0B Undefined */
3235 #define VK_CLEAR 0x0C
3236 #define VK_RETURN 0x0D
3237 /* 0x0E-0x0F Undefined */
3238 #define VK_SHIFT 0x10
3239 #define VK_CONTROL 0x11
3240 #define VK_MENU 0x12
3241 #define VK_PAUSE 0x13
3242 #define VK_CAPITAL 0x14
3243 /* 0x15-0x19 Reserved for Kanji systems */
3244 /* 0x1A Undefined */
3245 #define VK_ESCAPE 0x1B
3246 /* 0x1C-0x1F Reserved for Kanji systems */
3247 #define VK_SPACE 0x20
3248 #define VK_PRIOR 0x21
3249 #define VK_NEXT 0x22
3250 #define VK_END 0x23
3251 #define VK_HOME 0x24
3252 #define VK_LEFT 0x25
3253 #define VK_UP 0x26
3254 #define VK_RIGHT 0x27
3255 #define VK_DOWN 0x28
3256 #define VK_SELECT 0x29
3257 #define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */
3258 #define VK_EXECUTE 0x2B
3259 #define VK_SNAPSHOT 0x2C
3260 #define VK_INSERT 0x2D
3261 #define VK_DELETE 0x2E
3262 #define VK_HELP 0x2F
3263 #define VK_0 0x30
3264 #define VK_1 0x31
3265 #define VK_2 0x32
3266 #define VK_3 0x33
3267 #define VK_4 0x34
3268 #define VK_5 0x35
3269 #define VK_6 0x36
3270 #define VK_7 0x37
3271 #define VK_8 0x38
3272 #define VK_9 0x39
3273 /* 0x3A-0x40 Undefined */
3274 #define VK_A 0x41
3275 #define VK_B 0x42
3276 #define VK_C 0x43
3277 #define VK_D 0x44
3278 #define VK_E 0x45
3279 #define VK_F 0x46
3280 #define VK_G 0x47
3281 #define VK_H 0x48
3282 #define VK_I 0x49
3283 #define VK_J 0x4A
3284 #define VK_K 0x4B
3285 #define VK_L 0x4C
3286 #define VK_M 0x4D
3287 #define VK_N 0x4E
3288 #define VK_O 0x4F
3289 #define VK_P 0x50
3290 #define VK_Q 0x51
3291 #define VK_R 0x52
3292 #define VK_S 0x53
3293 #define VK_T 0x54
3294 #define VK_U 0x55
3295 #define VK_V 0x56
3296 #define VK_W 0x57
3297 #define VK_X 0x58
3298 #define VK_Y 0x59
3299 #define VK_Z 0x5A
3301 #define VK_LWIN 0x5B
3302 #define VK_RWIN 0x5C
3303 #define VK_APPS 0x5D
3304 /* 0x5E-0x5F Unassigned */
3305 #define VK_NUMPAD0 0x60
3306 #define VK_NUMPAD1 0x61
3307 #define VK_NUMPAD2 0x62
3308 #define VK_NUMPAD3 0x63
3309 #define VK_NUMPAD4 0x64
3310 #define VK_NUMPAD5 0x65
3311 #define VK_NUMPAD6 0x66
3312 #define VK_NUMPAD7 0x67
3313 #define VK_NUMPAD8 0x68
3314 #define VK_NUMPAD9 0x69
3315 #define VK_MULTIPLY 0x6A
3316 #define VK_ADD 0x6B
3317 #define VK_SEPARATOR 0x6C
3318 #define VK_SUBTRACT 0x6D
3319 #define VK_DECIMAL 0x6E
3320 #define VK_DIVIDE 0x6F
3321 #define VK_F1 0x70
3322 #define VK_F2 0x71
3323 #define VK_F3 0x72
3324 #define VK_F4 0x73
3325 #define VK_F5 0x74
3326 #define VK_F6 0x75
3327 #define VK_F7 0x76
3328 #define VK_F8 0x77
3329 #define VK_F9 0x78
3330 #define VK_F10 0x79
3331 #define VK_F11 0x7A
3332 #define VK_F12 0x7B
3333 #define VK_F13 0x7C
3334 #define VK_F14 0x7D
3335 #define VK_F15 0x7E
3336 #define VK_F16 0x7F
3337 #define VK_F17 0x80
3338 #define VK_F18 0x81
3339 #define VK_F19 0x82
3340 #define VK_F20 0x83
3341 #define VK_F21 0x84
3342 #define VK_F22 0x85
3343 #define VK_F23 0x86
3344 #define VK_F24 0x87
3345 /* 0x88-0x8F Unassigned */
3346 #define VK_NUMLOCK 0x90
3347 #define VK_SCROLL 0x91
3348 /* 0x92-0x9F Unassigned */
3350 * differencing between right and left shift/control/alt key.
3351 * Used only by GetAsyncKeyState() and GetKeyState().
3353 #define VK_LSHIFT 0xA0
3354 #define VK_RSHIFT 0xA1
3355 #define VK_LCONTROL 0xA2
3356 #define VK_RCONTROL 0xA3
3357 #define VK_LMENU 0xA4
3358 #define VK_RMENU 0xA5
3359 /* 0xA6-0xB9 Unassigned */
3360 #define VK_OEM_1 0xBA
3361 #define VK_OEM_PLUS 0xBB
3362 #define VK_OEM_COMMA 0xBC
3363 #define VK_OEM_MINUS 0xBD
3364 #define VK_OEM_PERIOD 0xBE
3365 #define VK_OEM_2 0xBF
3366 #define VK_OEM_3 0xC0
3367 /* 0xC1-0xDA Unassigned */
3368 #define VK_OEM_4 0xDB
3369 #define VK_OEM_5 0xDC
3370 #define VK_OEM_6 0xDD
3371 #define VK_OEM_7 0xDE
3372 /* 0xDF-0xE4 OEM specific */
3374 #define VK_PROCESSKEY 0xE5
3376 /* 0xE6 OEM specific */
3377 /* 0xE7-0xE8 Unassigned */
3378 /* 0xE9-0xF5 OEM specific */
3380 #define VK_ATTN 0xF6
3381 #define VK_CRSEL 0xF7
3382 #define VK_EXSEL 0xF8
3383 #define VK_EREOF 0xF9
3384 #define VK_PLAY 0xFA
3385 #define VK_ZOOM 0xFB
3386 #define VK_NONAME 0xFC
3387 #define VK_PA1 0xFD
3388 #define VK_OEM_CLEAR 0xFE
3390 #define LMEM_FIXED 0
3391 #define LMEM_MOVEABLE 0x0002
3392 #define LMEM_NOCOMPACT 0x0010
3393 #define LMEM_NODISCARD 0x0020
3394 #define LMEM_ZEROINIT 0x0040
3395 #define LMEM_MODIFY 0x0080
3396 #define LMEM_DISCARDABLE 0x0F00
3397 #define LMEM_DISCARDED 0x4000
3398 #define LMEM_LOCKCOUNT 0x00FF
3400 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
3402 #define GMEM_FIXED 0x0000
3403 #define GMEM_MOVEABLE 0x0002
3404 #define GMEM_NOCOMPACT 0x0010
3405 #define GMEM_NODISCARD 0x0020
3406 #define GMEM_ZEROINIT 0x0040
3407 #define GMEM_MODIFY 0x0080
3408 #define GMEM_DISCARDABLE 0x0100
3409 #define GMEM_NOT_BANKED 0x1000
3410 #define GMEM_SHARE 0x2000
3411 #define GMEM_DDESHARE 0x2000
3412 #define GMEM_NOTIFY 0x4000
3413 #define GMEM_LOWER GMEM_NOT_BANKED
3414 #define GMEM_DISCARDED 0x4000
3415 #define GMEM_LOCKCOUNT 0x00ff
3416 #define GMEM_INVALID_HANDLE 0x8000
3418 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
3419 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
3422 typedef struct tagMEMORYSTATUS
3424 DWORD dwLength;
3425 DWORD dwMemoryLoad;
3426 DWORD dwTotalPhys;
3427 DWORD dwAvailPhys;
3428 DWORD dwTotalPageFile;
3429 DWORD dwAvailPageFile;
3430 DWORD dwTotalVirtual;
3431 DWORD dwAvailVirtual;
3432 } MEMORYSTATUS, *LPMEMORYSTATUS;
3434 /* Predefined Clipboard Formats */
3435 #define CF_TEXT 1
3436 #define CF_BITMAP 2
3437 #define CF_METAFILEPICT 3
3438 #define CF_SYLK 4
3439 #define CF_DIF 5
3440 #define CF_TIFF 6
3441 #define CF_OEMTEXT 7
3442 #define CF_DIB 8
3443 #define CF_PALETTE 9
3444 #define CF_PENDATA 10
3445 #define CF_RIFF 11
3446 #define CF_WAVE 12
3447 #define CF_ENHMETAFILE 14
3449 #define CF_OWNERDISPLAY 0x0080
3450 #define CF_DSPTEXT 0x0081
3451 #define CF_DSPBITMAP 0x0082
3452 #define CF_DSPMETAFILEPICT 0x0083
3454 /* "Private" formats don't get GlobalFree()'d */
3455 #define CF_PRIVATEFIRST 0x0200
3456 #define CF_PRIVATELAST 0x02FF
3458 /* "GDIOBJ" formats do get DeleteObject()'d */
3459 #define CF_GDIOBJFIRST 0x0300
3460 #define CF_GDIOBJLAST 0x03FF
3462 /* Clipboard command messages */
3463 #define WM_CUT 0x0300
3464 #define WM_COPY 0x0301
3465 #define WM_PASTE 0x0302
3466 #define WM_CLEAR 0x0303
3467 #define WM_UNDO 0x0304
3469 /* Clipboard owner messages */
3470 #define WM_RENDERFORMAT 0x0305
3471 #define WM_RENDERALLFORMATS 0x0306
3472 #define WM_DESTROYCLIPBOARD 0x0307
3474 /* Clipboard viewer messages */
3475 #define WM_DRAWCLIPBOARD 0x0308
3476 #define WM_PAINTCLIPBOARD 0x0309
3477 #define WM_SIZECLIPBOARD 0x030B
3478 #define WM_VSCROLLCLIPBOARD 0x030A
3479 #define WM_HSCROLLCLIPBOARD 0x030E
3480 #define WM_ASKCBFORMATNAME 0x030C
3481 #define WM_CHANGECBCHAIN 0x030D
3484 #ifndef NOLOGERROR
3486 /* LogParamError and LogError values */
3488 /* Error modifier bits */
3489 #define ERR_WARNING 0x8000
3490 #define ERR_PARAM 0x4000
3492 #define ERR_SIZE_MASK 0x3000
3493 #define ERR_BYTE 0x1000
3494 #define ERR_WORD 0x2000
3495 #define ERR_DWORD 0x3000
3497 /* LogParamError() values */
3499 /* Generic parameter values */
3500 #define ERR_BAD_VALUE 0x6001
3501 #define ERR_BAD_FLAGS 0x6002
3502 #define ERR_BAD_INDEX 0x6003
3503 #define ERR_BAD_DVALUE 0x7004
3504 #define ERR_BAD_DFLAGS 0x7005
3505 #define ERR_BAD_DINDEX 0x7006
3506 #define ERR_BAD_PTR 0x7007
3507 #define ERR_BAD_FUNC_PTR 0x7008
3508 #define ERR_BAD_SELECTOR 0x6009
3509 #define ERR_BAD_STRING_PTR 0x700a
3510 #define ERR_BAD_HANDLE 0x600b
3512 /* KERNEL parameter errors */
3513 #define ERR_BAD_HINSTANCE 0x6020
3514 #define ERR_BAD_HMODULE 0x6021
3515 #define ERR_BAD_GLOBAL_HANDLE 0x6022
3516 #define ERR_BAD_LOCAL_HANDLE 0x6023
3517 #define ERR_BAD_ATOM 0x6024
3518 #define ERR_BAD_HFILE 0x6025
3520 /* USER parameter errors */
3521 #define ERR_BAD_HWND 0x6040
3522 #define ERR_BAD_HMENU 0x6041
3523 #define ERR_BAD_HCURSOR 0x6042
3524 #define ERR_BAD_HICON 0x6043
3525 #define ERR_BAD_HDWP 0x6044
3526 #define ERR_BAD_CID 0x6045
3527 #define ERR_BAD_HDRVR 0x6046
3529 /* GDI parameter errors */
3530 #define ERR_BAD_COORDS 0x7060
3531 #define ERR_BAD_GDI_OBJECT 0x6061
3532 #define ERR_BAD_HDC 0x6062
3533 #define ERR_BAD_HPEN 0x6063
3534 #define ERR_BAD_HFONT 0x6064
3535 #define ERR_BAD_HBRUSH 0x6065
3536 #define ERR_BAD_HBITMAP 0x6066
3537 #define ERR_BAD_HRGN 0x6067
3538 #define ERR_BAD_HPALETTE 0x6068
3539 #define ERR_BAD_HMETAFILE 0x6069
3542 /* LogError() values */
3544 /* KERNEL errors */
3545 #define ERR_GALLOC 0x0001
3546 #define ERR_GREALLOC 0x0002
3547 #define ERR_GLOCK 0x0003
3548 #define ERR_LALLOC 0x0004
3549 #define ERR_LREALLOC 0x0005
3550 #define ERR_LLOCK 0x0006
3551 #define ERR_ALLOCRES 0x0007
3552 #define ERR_LOCKRES 0x0008
3553 #define ERR_LOADMODULE 0x0009
3555 /* USER errors */
3556 #define ERR_CREATEDLG 0x0040
3557 #define ERR_CREATEDLG2 0x0041
3558 #define ERR_REGISTERCLASS 0x0042
3559 #define ERR_DCBUSY 0x0043
3560 #define ERR_CREATEWND 0x0044
3561 #define ERR_STRUCEXTRA 0x0045
3562 #define ERR_LOADSTR 0x0046
3563 #define ERR_LOADMENU 0x0047
3564 #define ERR_NESTEDBEGINPAINT 0x0048
3565 #define ERR_BADINDEX 0x0049
3566 #define ERR_CREATEMENU 0x004a
3568 /* GDI errors */
3569 #define ERR_CREATEDC 0x0080
3570 #define ERR_CREATEMETA 0x0081
3571 #define ERR_DELOBJSELECTED 0x0082
3572 #define ERR_SELBITMAP 0x0083
3576 /* Debugging support (DEBUG SYSTEM ONLY) */
3577 typedef struct
3579 UINT16 flags;
3580 DWORD dwOptions WINE_PACKED;
3581 DWORD dwFilter WINE_PACKED;
3582 CHAR achAllocModule[8] WINE_PACKED;
3583 DWORD dwAllocBreak WINE_PACKED;
3584 DWORD dwAllocCount WINE_PACKED;
3585 } WINDEBUGINFO, *LPWINDEBUGINFO;
3587 /* WINDEBUGINFO flags values */
3588 #define WDI_OPTIONS 0x0001
3589 #define WDI_FILTER 0x0002
3590 #define WDI_ALLOCBREAK 0x0004
3592 /* dwOptions values */
3593 #define DBO_CHECKHEAP 0x0001
3594 #define DBO_BUFFERFILL 0x0004
3595 #define DBO_DISABLEGPTRAPPING 0x0010
3596 #define DBO_CHECKFREE 0x0020
3598 #define DBO_SILENT 0x8000
3600 #define DBO_TRACEBREAK 0x2000
3601 #define DBO_WARNINGBREAK 0x1000
3602 #define DBO_NOERRORBREAK 0x0800
3603 #define DBO_NOFATALBREAK 0x0400
3604 #define DBO_INT3BREAK 0x0100
3606 /* DebugOutput flags values */
3607 #define DBF_TRACE 0x0000
3608 #define DBF_WARNING 0x4000
3609 #define DBF_ERROR 0x8000
3610 #define DBF_FATAL 0xc000
3612 /* dwFilter values */
3613 #define DBF_KERNEL 0x1000
3614 #define DBF_KRN_MEMMAN 0x0001
3615 #define DBF_KRN_LOADMODULE 0x0002
3616 #define DBF_KRN_SEGMENTLOAD 0x0004
3617 #define DBF_USER 0x0800
3618 #define DBF_GDI 0x0400
3619 #define DBF_MMSYSTEM 0x0040
3620 #define DBF_PENWIN 0x0020
3621 #define DBF_APPLICATION 0x0008
3622 #define DBF_DRIVER 0x0010
3624 #endif /* NOLOGERROR */
3626 /* Win32-specific structures */
3628 typedef struct {
3629 DWORD dwData;
3630 DWORD cbData;
3631 LPVOID lpData;
3632 } COPYDATASTRUCT, *PCOPYDATASTRUCT, *LPCOPYDATASTRUCT;
3634 typedef struct {
3635 HMENU32 hmenuIn;
3636 HMENU32 hmenuNext;
3637 HWND32 hwndNext;
3638 } MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU;
3640 typedef struct {
3641 WORD wYear;
3642 WORD wMonth;
3643 WORD wDayOfWeek;
3644 WORD wDay;
3645 WORD wHour;
3646 WORD wMinute;
3647 WORD wSecond;
3648 WORD wMilliseconds;
3649 } SYSTEMTIME, *LPSYSTEMTIME;
3652 /* Code page information.
3654 #define MAX_LEADBYTES 12
3655 #define MAX_DEFAULTCHAR 2
3657 typedef struct
3659 UINT32 MaxCharSize;
3660 BYTE DefaultChar[MAX_DEFAULTCHAR];
3661 BYTE LeadByte[MAX_LEADBYTES];
3662 } CPINFO, *LPCPINFO;
3664 /* The 'overlapped' data structure used by async I/O functions.
3666 typedef struct {
3667 DWORD Internal;
3668 DWORD InternalHigh;
3669 DWORD Offset;
3670 DWORD OffsetHigh;
3671 HANDLE32 hEvent;
3672 } OVERLAPPED, *LPOVERLAPPED;
3674 /* Process startup information.
3677 /* STARTUPINFO.dwFlags */
3678 #define STARTF_USESHOWWINDOW 0x00000001
3679 #define STARTF_USESIZE 0x00000002
3680 #define STARTF_USEPOSITION 0x00000004
3681 #define STARTF_USECOUNTCHARS 0x00000008
3682 #define STARTF_USEFILLATTRIBUTE 0x00000010
3683 #define STARTF_RUNFULLSCREEN 0x00000020
3684 #define STARTF_FORCEONFEEDBACK 0x00000040
3685 #define STARTF_FORCEOFFFEEDBACK 0x00000080
3686 #define STARTF_USESTDHANDLES 0x00000100
3687 #define STARTF_USEHOTKEY 0x00000200
3689 typedef struct {
3690 DWORD cb; /* 00: size of struct */
3691 LPSTR lpReserved; /* 04: */
3692 LPSTR lpDesktop; /* 08: */
3693 LPSTR lpTitle; /* 0c: */
3694 DWORD dwX; /* 10: */
3695 DWORD dwY; /* 14: */
3696 DWORD dwXSize; /* 18: */
3697 DWORD dwYSize; /* 1c: */
3698 DWORD dwXCountChars; /* 20: */
3699 DWORD dwYCountChars; /* 24: */
3700 DWORD dwFillAttribute; /* 28: */
3701 DWORD dwFlags; /* 2c: */
3702 WORD wShowWindow; /* 30: */
3703 WORD cbReserved2; /* 32: */
3704 BYTE *lpReserved2; /* 34: */
3705 HANDLE32 hStdInput; /* 38: */
3706 HANDLE32 hStdOutput; /* 3c: */
3707 HANDLE32 hStdError; /* 40: */
3708 } STARTUPINFO32A, *LPSTARTUPINFO32A;
3710 typedef struct {
3711 DWORD cb;
3712 LPWSTR lpReserved;
3713 LPWSTR lpDesktop;
3714 LPWSTR lpTitle;
3715 DWORD dwX;
3716 DWORD dwY;
3717 DWORD dwXSize;
3718 DWORD dwYSize;
3719 DWORD dwXCountChars;
3720 DWORD dwYCountChars;
3721 DWORD dwFillAttribute;
3722 DWORD dwFlags;
3723 WORD wShowWindow;
3724 WORD cbReserved2;
3725 BYTE *lpReserved2;
3726 HANDLE32 hStdInput;
3727 HANDLE32 hStdOutput;
3728 HANDLE32 hStdError;
3729 } STARTUPINFO32W, *LPSTARTUPINFO32W;
3731 DECL_WINELIB_TYPE_AW(STARTUPINFO)
3732 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
3734 typedef struct {
3735 HANDLE32 hProcess;
3736 HANDLE32 hThread;
3737 DWORD dwProcessId;
3738 DWORD dwThreadId;
3739 } PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
3741 typedef struct {
3742 LONG Bias;
3743 WCHAR StandardName[32];
3744 SYSTEMTIME StandardDate;
3745 LONG StandardBias;
3746 WCHAR DaylightName[32];
3747 SYSTEMTIME DaylightDate;
3748 LONG DaylightBias;
3749 } TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
3751 #define TIME_ZONE_ID_UNKNOWN 0
3752 #define TIME_ZONE_ID_STANDARD 1
3753 #define TIME_ZONE_ID_DAYLIGHT 2
3755 /* CreateProcess: dwCreationFlag values
3757 #define DEBUG_PROCESS 0x00000001
3758 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
3759 #define CREATE_SUSPENDED 0x00000004
3760 #define DETACHED_PROCESS 0x00000008
3761 #define CREATE_NEW_CONSOLE 0x00000010
3762 #define NORMAL_PRIORITY_CLASS 0x00000020
3763 #define IDLE_PRIORITY_CLASS 0x00000040
3764 #define HIGH_PRIORITY_CLASS 0x00000080
3765 #define REALTIME_PRIORITY_CLASS 0x00000100
3766 #define CREATE_NEW_PROCESS_GROUP 0x00000200
3767 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
3768 #define CREATE_SEPARATE_WOW_VDM 0x00000800
3769 #define CREATE_SHARED_WOW_VDM 0x00001000
3770 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
3771 #define CREATE_NO_WINDOW 0x08000000
3772 #define PROFILE_USER 0x10000000
3773 #define PROFILE_KERNEL 0x20000000
3774 #define PROFILE_SERVER 0x40000000
3777 /* File object type definitions
3779 #define FILE_TYPE_UNKNOWN 0
3780 #define FILE_TYPE_DISK 1
3781 #define FILE_TYPE_CHAR 2
3782 #define FILE_TYPE_PIPE 3
3783 #define FILE_TYPE_REMOTE 32768
3785 /* File creation flags
3787 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
3788 #define FILE_FLAG_OVERLAPPED 0x40000000L
3789 #define FILE_FLAG_NO_BUFFERING 0x20000000L
3790 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
3791 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
3792 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
3793 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
3794 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
3795 #define CREATE_NEW 1
3796 #define CREATE_ALWAYS 2
3797 #define OPEN_EXISTING 3
3798 #define OPEN_ALWAYS 4
3799 #define TRUNCATE_EXISTING 5
3801 /* Standard handle identifiers
3803 #define STD_INPUT_HANDLE ((DWORD) -10)
3804 #define STD_OUTPUT_HANDLE ((DWORD) -11)
3805 #define STD_ERROR_HANDLE ((DWORD) -12)
3807 typedef struct
3809 int dwFileAttributes;
3810 FILETIME ftCreationTime;
3811 FILETIME ftLastAccessTime;
3812 FILETIME ftLastWriteTime;
3813 int dwVolumeSerialNumber;
3814 int nFileSizeHigh;
3815 int nFileSizeLow;
3816 int nNumberOfLinks;
3817 int nFileIndexHigh;
3818 int nFileIndexLow;
3819 } BY_HANDLE_FILE_INFORMATION ;
3821 /* File attribute flags
3823 #define FILE_SHARE_READ 0x00000001L
3824 #define FILE_SHARE_WRITE 0x00000002L
3825 #define FILE_SHARE_DELETE 0x00000004L
3826 #define FILE_ATTRIBUTE_READONLY 0x00000001L
3827 #define FILE_ATTRIBUTE_HIDDEN 0x00000002L
3828 #define FILE_ATTRIBUTE_SYSTEM 0x00000004L
3829 #define FILE_ATTRIBUTE_LABEL 0x00000008L /* Not in Windows API */
3830 #define FILE_ATTRIBUTE_DIRECTORY 0x00000010L
3831 #define FILE_ATTRIBUTE_ARCHIVE 0x00000020L
3832 #define FILE_ATTRIBUTE_NORMAL 0x00000080L
3833 #define FILE_ATTRIBUTE_TEMPORARY 0x00000100L
3834 #define FILE_ATTRIBUTE_ATOMIC_WRITE 0x00000200L
3835 #define FILE_ATTRIBUTE_XACTION_WRITE 0x00000400L
3836 #define FILE_ATTRIBUTE_COMPRESSED 0x00000800L
3837 #define FILE_ATTRIBUTE_OFFLINE 0x00001000L
3839 /* File alignments (NT) */
3840 #define FILE_BYTE_ALIGNMENT 0x00000000
3841 #define FILE_WORD_ALIGNMENT 0x00000001
3842 #define FILE_LONG_ALIGNMENT 0x00000003
3843 #define FILE_QUAD_ALIGNMENT 0x00000007
3844 #define FILE_OCTA_ALIGNMENT 0x0000000f
3845 #define FILE_32_BYTE_ALIGNMENT 0x0000001f
3846 #define FILE_64_BYTE_ALIGNMENT 0x0000003f
3847 #define FILE_128_BYTE_ALIGNMENT 0x0000007f
3848 #define FILE_256_BYTE_ALIGNMENT 0x000000ff
3849 #define FILE_512_BYTE_ALIGNMENT 0x000001ff
3851 /* WinHelp internal structure */
3852 typedef struct {
3853 WORD size;
3854 WORD command;
3855 LONG data;
3856 LONG reserved;
3857 WORD ofsFilename;
3858 WORD ofsData;
3859 } WINHELP,*LPWINHELP;
3861 typedef struct
3863 UINT16 mkSize;
3864 BYTE mkKeyList;
3865 BYTE szKeyPhrase[1];
3866 } MULTIKEYHELP, *LPMULTIKEYHELP;
3868 typedef struct {
3869 WORD wStructSize;
3870 WORD x;
3871 WORD y;
3872 WORD dx;
3873 WORD dy;
3874 WORD wMax;
3875 char rgchMember[2];
3876 } HELPWININFO, *LPHELPWININFO;
3878 #define HELP_CONTEXT 0x0001
3879 #define HELP_QUIT 0x0002
3880 #define HELP_INDEX 0x0003
3881 #define HELP_CONTENTS 0x0003
3882 #define HELP_HELPONHELP 0x0004
3883 #define HELP_SETINDEX 0x0005
3884 #define HELP_SETCONTENTS 0x0005
3885 #define HELP_CONTEXTPOPUP 0x0008
3886 #define HELP_FORCEFILE 0x0009
3887 #define HELP_KEY 0x0101
3888 #define HELP_COMMAND 0x0102
3889 #define HELP_PARTIALKEY 0x0105
3890 #define HELP_MULTIKEY 0x0201
3891 #define HELP_SETWINPOS 0x0203
3892 #define HELP_CONTEXTMENU 0x000a
3893 #define HELP_FINDER 0x000b
3894 #define HELP_WM_HELP 0x000c
3895 #define HELP_SETPOPUP_POS 0x000d
3897 #define HELP_TCARD 0x8000
3898 #define HELP_TCARD_DATA 0x0010
3899 #define HELP_TCARD_OTHER_CALLER 0x0011
3902 /* ExitWindows() flags */
3903 #define EW_RESTARTWINDOWS 0x0042
3904 #define EW_REBOOTSYSTEM 0x0043
3905 #define EW_EXITANDEXECAPP 0x0044
3907 /* ExitWindowsEx() flags */
3908 #define EWX_LOGOFF 0
3909 #define EWX_SHUTDOWN 1
3910 #define EWX_REBOOT 2
3911 #define EWX_FORCE 4
3912 #define EWX_POWEROFF 8
3915 #define DM_UPDATE 1
3916 #define DM_COPY 2
3917 #define DM_PROMPT 4
3918 #define DM_MODIFY 8
3920 #define DM_ORIENTATION 0x00000001L
3921 #define DM_PAPERSIZE 0x00000002L
3922 #define DM_PAPERLENGTH 0x00000004L
3923 #define DM_PAPERWIDTH 0x00000008L
3924 #define DM_SCALE 0x00000010L
3925 #define DM_COPIES 0x00000100L
3926 #define DM_DEFAULTSOURCE 0x00000200L
3927 #define DM_PRINTQUALITY 0x00000400L
3928 #define DM_COLOR 0x00000800L
3929 #define DM_DUPLEX 0x00001000L
3930 #define DM_YRESOLUTION 0x00002000L
3931 #define DM_TTOPTION 0x00004000L
3932 #define DM_BITSPERPEL 0x00040000L
3933 #define DM_PELSWIDTH 0x00080000L
3934 #define DM_PELSHEIGHT 0x00100000L
3935 #define DM_DISPLAYFLAGS 0x00200000L
3936 #define DM_DISPLAYFREQUENCY 0x00400000L
3938 /* etc.... */
3940 #define DMORIENT_PORTRAIT 1
3941 #define DMORIENT_LANDSCAPE 2
3943 #define DMPAPER_LETTER 1
3944 #define DMPAPER_LEGAL 5
3945 #define DMPAPER_EXECUTIVE 7
3946 #define DMPAPER_A3 8
3947 #define DMPAPER_A4 9
3948 #define DMPAPER_A5 11
3949 #define DMPAPER_ENV_10 20
3950 #define DMPAPER_ENV_DL 27
3951 #define DMPAPER_ENV_C5 28
3952 #define DMPAPER_ENV_B5 34
3953 #define DMPAPER_ENV_MONARCH 37
3955 #define DMBIN_UPPER 1
3956 #define DMBIN_LOWER 2
3957 #define DMBIN_MIDDLE 3
3958 #define DMBIN_MANUAL 4
3959 #define DMBIN_ENVELOPE 5
3960 #define DMBIN_ENVMANUAL 6
3961 #define DMBIN_AUTO 7
3962 #define DMBIN_LARGECAPACITY 11
3964 #define DMCOLOR_MONOCHROME 1
3965 #define DMCOLOR_COLOR 2
3967 #define DMTT_BITMAP 1
3968 #define DMTT_DOWNLOAD 2
3969 #define DMTT_SUBDEV 3
3972 #define DC_FIELDS 1
3973 #define DC_PAPERS 2
3974 #define DC_PAPERSIZE 3
3975 #define DC_MINEXTENT 4
3976 #define DC_MAXEXTENT 5
3977 #define DC_BINS 6
3978 #define DC_DUPLEX 7
3979 #define DC_SIZE 8
3980 #define DC_EXTRA 9
3981 #define DC_VERSION 10
3982 #define DC_DRIVER 11
3983 #define DC_BINNAMES 12
3984 #define DC_ENUMRESOLUTIONS 13
3985 #define DC_FILEDEPENDENCIES 14
3986 #define DC_TRUETYPE 15
3987 #define DC_PAPERNAMES 16
3988 #define DC_ORIENTATION 17
3989 #define DC_COPIES 18
3991 /* ChangeDisplaySettings return codes */
3993 #define DISP_CHANGE_SUCCESSFUL 0
3994 #define DISP_CHANGE_RESTART 1
3995 #define DISP_CHANGE_FAILED (-1)
3996 #define DISP_CHANGE_BADMODE (-2)
3997 #define DISP_CHANGE_NOTUPDATED (-3)
3998 #define DISP_CHANGE_BADFLAGS (-4)
4001 typedef struct _SYSTEM_POWER_STATUS
4003 BOOL16 ACLineStatus;
4004 BYTE BatteryFlag;
4005 BYTE BatteryLifePercent;
4006 BYTE reserved;
4007 DWORD BatteryLifeTime;
4008 DWORD BatteryFullLifeTime;
4009 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
4011 /* flags to FormatMessage */
4012 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
4013 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
4014 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
4015 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
4016 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
4017 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
4018 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
4020 /* types of LoadImage */
4021 #define IMAGE_BITMAP 0
4022 #define IMAGE_ICON 1
4023 #define IMAGE_CURSOR 2
4024 #define IMAGE_ENHMETA 3
4026 /* loadflags to LoadImage */
4027 #define LR_DEFAULTCOLOR 0x0000
4028 #define LR_MONOCHROME 0x0001
4029 #define LR_COLOR 0x0002
4030 #define LR_COPYRETURNORG 0x0004
4031 #define LR_COPYDELETEORG 0x0008
4032 #define LR_LOADFROMFILE 0x0010
4033 #define LR_LOADTRANSPARENT 0x0020
4034 #define LR_DEFAULTSIZE 0x0040
4035 #define LR_VGA_COLOR 0x0080
4036 #define LR_LOADMAP3DCOLORS 0x1000
4037 #define LR_CREATEDIBSECTION 0x2000
4038 #define LR_COPYFROMRESOURCE 0x4000
4039 #define LR_SHARED 0x8000
4041 /* Flags for PolyDraw and GetPath */
4042 #define PT_CLOSEFIGURE 0x0001
4043 #define PT_LINETO 0x0002
4044 #define PT_BEZIERTO 0x0004
4045 #define PT_MOVETO 0x0006
4047 typedef struct _LARGE_INTEGER
4049 DWORD LowPart;
4050 LONG HighPart;
4051 } LARGE_INTEGER,*LPLARGE_INTEGER;
4053 typedef struct _ULARGE_INTEGER
4055 DWORD LowPart;
4056 DWORD HighPart;
4057 } ULARGE_INTEGER,*LPULARGE_INTEGER;
4059 typedef LARGE_INTEGER LUID,*LPLUID; /* locally unique ids */
4061 /* SetLastErrorEx types */
4062 #define SLE_ERROR 0x00000001
4063 #define SLE_MINORERROR 0x00000002
4064 #define SLE_WARNING 0x00000003
4066 /* Argument 1 passed to the DllEntryProc. */
4067 #define DLL_PROCESS_DETACH 0 /* detach process (unload library) */
4068 #define DLL_PROCESS_ATTACH 1 /* attach process (load library) */
4069 #define DLL_THREAD_ATTACH 2 /* attach new thread */
4070 #define DLL_THREAD_DETACH 3 /* detach thread */
4072 typedef struct _MEMORY_BASIC_INFORMATION
4074 LPVOID BaseAddress;
4075 LPVOID AllocationBase;
4076 DWORD AllocationProtect;
4077 DWORD RegionSize;
4078 DWORD State;
4079 DWORD Protect;
4080 DWORD Type;
4081 } MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION;
4084 typedef BOOL32 (CALLBACK *CODEPAGE_ENUMPROC32A)(LPSTR);
4085 typedef BOOL32 (CALLBACK *CODEPAGE_ENUMPROC32W)(LPWSTR);
4086 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
4087 typedef BOOL32 (CALLBACK *LOCALE_ENUMPROC32A)(LPSTR);
4088 typedef BOOL32 (CALLBACK *LOCALE_ENUMPROC32W)(LPWSTR);
4089 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
4091 typedef struct tagSYSTEM_INFO
4093 union {
4094 DWORD dwOemId;
4095 struct {
4096 WORD wProcessorArchitecture;
4097 WORD wReserved;
4098 } x;
4099 } u;
4100 DWORD dwPageSize;
4101 LPVOID lpMinimumApplicationAddress;
4102 LPVOID lpMaximumApplicationAddress;
4103 DWORD dwActiveProcessorMask;
4104 DWORD dwNumberOfProcessors;
4105 DWORD dwProcessorType;
4106 DWORD dwAllocationGranularity;
4107 WORD wProcessorLevel;
4108 WORD wProcessorRevision;
4109 } SYSTEM_INFO, *LPSYSTEM_INFO;
4111 /* u.x.wProcessorArchitecture (NT) */
4112 #define PROCESSOR_ARCHITECTURE_INTEL 0
4113 #define PROCESSOR_ARCHITECTURE_MIPS 1
4114 #define PROCESSOR_ARCHITECTURE_ALPHA 2
4115 #define PROCESSOR_ARCHITECTURE_PPC 3
4116 #define PROCESSOR_ARCHITECTURE_UNKNOWN 0xFFFF
4118 /* dwProcessorType */
4119 #define PROCESSOR_INTEL_386 386
4120 #define PROCESSOR_INTEL_486 486
4121 #define PROCESSOR_INTEL_PENTIUM 586
4122 #define PROCESSOR_MIPS_R4000 4000
4123 #define PROCESSOR_ALPHA_21064 21064
4125 /* service main function prototype */
4126 typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTION32A)(DWORD,LPSTR);
4127 typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTION32W)(DWORD,LPWSTR);
4128 DECL_WINELIB_TYPE_AW(LPSERVICE_MAIN_FUNCTION)
4130 /* service start table */
4131 typedef struct
4133 LPSTR lpServiceName;
4134 LPSERVICE_MAIN_FUNCTION32A lpServiceProc;
4135 } *LPSERVICE_TABLE_ENTRY32A, SERVICE_TABLE_ENTRY32A;
4137 typedef struct
4139 LPWSTR lpServiceName;
4140 LPSERVICE_MAIN_FUNCTION32W lpServiceProc;
4141 } *LPSERVICE_TABLE_ENTRY32W, SERVICE_TABLE_ENTRY32W;
4143 DECL_WINELIB_TYPE_AW(SERVICE_TABLE_ENTRY)
4144 DECL_WINELIB_TYPE_AW(LPSERVICE_TABLE_ENTRY)
4146 /* Used by: ControlService */
4147 typedef struct _SERVICE_STATUS {
4148 DWORD dwServiceType;
4149 DWORD dwCurrentState;
4150 DWORD dwControlsAccepted;
4151 DWORD dwWin32ExitCode;
4152 DWORD dwServiceSpecificExitCode;
4153 DWORD dwCheckPoint;
4154 DWORD dwWaitHint;
4155 } SERVICE_STATUS, *LPSERVICE_STATUS;
4158 /* {G,S}etPriorityClass */
4159 #define NORMAL_PRIORITY_CLASS 0x00000020
4160 #define IDLE_PRIORITY_CLASS 0x00000040
4161 #define HIGH_PRIORITY_CLASS 0x00000080
4162 #define REALTIME_PRIORITY_CLASS 0x00000100
4164 /* GDI Escape commands */
4165 #define NEWFRAME 1
4166 #define ABORTDOC 2
4167 #define NEXTBAND 3
4168 #define SETCOLORTABLE 4
4169 #define GETCOLORTABLE 5
4170 #define FLUSHOUTPUT 6
4171 #define DRAFTMODE 7
4172 #define QUERYESCSUPPORT 8
4173 #define SETABORTPROC 9
4174 #define STARTDOC 10
4175 #define ENDDOC 11
4176 #define GETPHYSPAGESIZE 12
4177 #define GETPRINTINGOFFSET 13
4178 #define GETSCALINGFACTOR 14
4179 #define MFCOMMENT 15
4180 #define GETPENWIDTH 16
4181 #define SETCOPYCOUNT 17
4182 #define SELECTPAPERSOURCE 18
4183 #define DEVICEDATA 19
4184 #define PASSTHROUGH 19
4185 #define GETTECHNOLGY 20
4186 #define GETTECHNOLOGY 20 /* yes, both of them */
4187 #define SETLINECAP 21
4188 #define SETLINEJOIN 22
4189 #define SETMITERLIMIT 23
4190 #define BANDINFO 24
4191 #define DRAWPATTERNRECT 25
4192 #define GETVECTORPENSIZE 26
4193 #define GETVECTORBRUSHSIZE 27
4194 #define ENABLEDUPLEX 28
4195 #define GETSETPAPERBINS 29
4196 #define GETSETPRINTORIENT 30
4197 #define ENUMPAPERBINS 31
4198 #define SETDIBSCALING 32
4199 #define EPSPRINTING 33
4200 #define ENUMPAPERMETRICS 34
4201 #define GETSETPAPERMETRICS 35
4202 #define POSTSCRIPT_DATA 37
4203 #define POSTSCRIPT_IGNORE 38
4204 #define MOUSETRAILS 39
4205 #define GETDEVICEUNITS 42
4207 #define GETEXTENDEDTEXTMETRICS 256
4208 #define GETEXTENTTABLE 257
4209 #define GETPAIRKERNTABLE 258
4210 #define GETTRACKKERNTABLE 259
4211 #define EXTTEXTOUT 512
4212 #define GETFACENAME 513
4213 #define DOWNLOADFACE 514
4214 #define ENABLERELATIVEWIDTHS 768
4215 #define ENABLEPAIRKERNING 769
4216 #define SETKERNTRACK 770
4217 #define SETALLJUSTVALUES 771
4218 #define SETCHARSET 772
4220 #define STRETCHBLT 2048
4221 #define GETSETSCREENPARAMS 3072
4222 #define QUERYDIBSUPPORT 3073
4223 #define BEGIN_PATH 4096
4224 #define CLIP_TO_PATH 4097
4225 #define END_PATH 4098
4226 #define EXT_DEVICE_CAPS 4099
4227 #define RESTORE_CTM 4100
4228 #define SAVE_CTM 4101
4229 #define SET_ARC_DIRECTION 4102
4230 #define SET_BACKGROUND_COLOR 4103
4231 #define SET_POLY_MODE 4104
4232 #define SET_SCREEN_ANGLE 4105
4233 #define SET_SPREAD 4106
4234 #define TRANSFORM_CTM 4107
4235 #define SET_CLIP_BOX 4108
4236 #define SET_BOUNDS 4109
4237 #define SET_MIRROR_MODE 4110
4238 #define OPENCHANNEL 4110
4239 #define DOWNLOADHEADER 4111
4240 #define CLOSECHANNEL 4112
4241 #define POSTSCRIPT_PASSTHROUGH 4115
4242 #define ENCAPSULATED_POSTSCRIPT 4116
4244 /* Flag returned from Escape QUERYDIBSUPPORT */
4245 #define QDI_SETDIBITS 1
4246 #define QDI_GETDIBITS 2
4247 #define QDI_DIBTOSCREEN 4
4248 #define QDI_STRETCHDIB 8
4250 /* Spooler Error Codes */
4251 #define SP_NOTREPORTED 0x4000
4252 #define SP_ERROR (-1)
4253 #define SP_APPABORT (-2)
4254 #define SP_USERABORT (-3)
4255 #define SP_OUTOFDISK (-4)
4256 #define SP_OUTOFMEMORY (-5)
4258 #define PR_JOBSTATUS 0x0000
4260 typedef BOOL32 (CALLBACK *ENUMRESTYPEPROC32A)(HMODULE32,LPSTR,LONG);
4261 typedef BOOL32 (CALLBACK *ENUMRESTYPEPROC32W)(HMODULE32,LPWSTR,LONG);
4262 typedef BOOL32 (CALLBACK *ENUMRESNAMEPROC32A)(HMODULE32,LPCSTR,LPSTR,LONG);
4263 typedef BOOL32 (CALLBACK *ENUMRESNAMEPROC32W)(HMODULE32,LPCWSTR,LPWSTR,LONG);
4264 typedef BOOL32 (CALLBACK *ENUMRESLANGPROC32A)(HMODULE32,LPCSTR,LPCSTR,WORD,LONG);
4265 typedef BOOL32 (CALLBACK *ENUMRESLANGPROC32W)(HMODULE32,LPCWSTR,LPCWSTR,WORD,LONG);
4267 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
4268 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
4269 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
4271 /* Character Type Flags */
4272 #define CT_CTYPE1 0x00000001 /* usual ctype */
4273 #define CT_CTYPE2 0x00000002 /* bidirectional layout info */
4274 #define CT_CTYPE3 0x00000004 /* textprocessing info */
4276 /* CType 1 Flag Bits */
4277 #define C1_UPPER 0x0001
4278 #define C1_LOWER 0x0002
4279 #define C1_DIGIT 0x0004
4280 #define C1_SPACE 0x0008
4281 #define C1_PUNCT 0x0010
4282 #define C1_CNTRL 0x0020
4283 #define C1_BLANK 0x0040
4284 #define C1_XDIGIT 0x0080
4285 #define C1_ALPHA 0x0100
4287 /* CType 2 Flag Bits */
4288 #define C2_LEFTTORIGHT 0x0001
4289 #define C2_RIGHTTOLEFT 0x0002
4290 #define C2_EUROPENUMBER 0x0003
4291 #define C2_EUROPESEPARATOR 0x0004
4292 #define C2_EUROPETERMINATOR 0x0005
4293 #define C2_ARABICNUMBER 0x0006
4294 #define C2_COMMONSEPARATOR 0x0007
4295 #define C2_BLOCKSEPARATOR 0x0008
4296 #define C2_SEGMENTSEPARATOR 0x0009
4297 #define C2_WHITESPACE 0x000A
4298 #define C2_OTHERNEUTRAL 0x000B
4299 #define C2_NOTAPPLICABLE 0x0000
4301 /* CType 3 Flag Bits */
4302 #define C3_NONSPACING 0x0001
4303 #define C3_DIACRITIC 0x0002
4304 #define C3_VOWELMARK 0x0004
4305 #define C3_SYMBOL 0x0008
4306 #define C3_KATAKANA 0x0010
4307 #define C3_HIRAGANA 0x0020
4308 #define C3_HALFWIDTH 0x0040
4309 #define C3_FULLWIDTH 0x0080
4310 #define C3_IDEOGRAPH 0x0100
4311 #define C3_KASHIDA 0x0200
4312 #define C3_LEXICAL 0x0400
4313 #define C3_ALPHA 0x8000
4314 #define C3_NOTAPPLICABLE 0x0000
4316 /* flags that can be passed to LoadLibraryEx */
4317 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
4318 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
4319 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
4322 typedef struct {
4323 DWORD dwScope;
4324 DWORD dwType;
4325 DWORD dwDisplayType;
4326 DWORD dwUsage;
4327 LPSTR lpLocalName;
4328 LPSTR lpRemoteName;
4329 LPSTR lpComment ;
4330 LPSTR lpProvider;
4331 } NETRESOURCE32A,*LPNETRESOURCE32A;
4333 typedef struct {
4334 DWORD dwScope;
4335 DWORD dwType;
4336 DWORD dwDisplayType;
4337 DWORD dwUsage;
4338 LPWSTR lpLocalName;
4339 LPWSTR lpRemoteName;
4340 LPWSTR lpComment ;
4341 LPWSTR lpProvider;
4342 } NETRESOURCE32W,*LPNETRESOURCE32W;
4344 DECL_WINELIB_TYPE_AW(NETRESOURCE)
4345 DECL_WINELIB_TYPE_AW(LPNETRESOURCE)
4347 typedef struct {
4348 DWORD cbStructure; /* size of this structure in bytes */
4349 HWND32 hwndOwner; /* owner window for the dialog */
4350 LPNETRESOURCE32A lpConnRes;/* Requested Resource info */
4351 DWORD dwFlags; /* flags (see below) */
4352 DWORD dwDevNum; /* number of devices connected to */
4353 } CONNECTDLGSTRUCT32A, *LPCONNECTDLGSTRUCT32A;
4354 typedef struct {
4355 DWORD cbStructure; /* size of this structure in bytes */
4356 HWND32 hwndOwner; /* owner window for the dialog */
4357 LPNETRESOURCE32W lpConnRes;/* Requested Resource info */
4358 DWORD dwFlags; /* flags (see below) */
4359 DWORD dwDevNum; /* number of devices connected to */
4360 } CONNECTDLGSTRUCT32W, *LPCONNECTDLGSTRUCT32W;
4362 DECL_WINELIB_TYPE_AW(CONNECTDLGSTRUCT)
4363 DECL_WINELIB_TYPE_AW(LPCONNECTDLGSTRUCT)
4365 /**/
4366 #define CONNDLG_RO_PATH 0x00000001 /* Resource path should be read-only */
4367 #define CONNDLG_CONN_POINT 0x00000002 /* Netware -style movable connection point enabled */
4368 #define CONNDLG_USE_MRU 0x00000004 /* Use MRU combobox */
4369 #define CONNDLG_HIDE_BOX 0x00000008 /* Hide persistent connect checkbox */
4370 #define CONNDLG_PERSIST 0x00000010 /* Force persistent connection */
4371 #define CONNDLG_NOT_PERSIST 0x00000020 /* Force connection NOT persistent */
4374 typedef struct {
4375 DWORD cbStructure;
4376 DWORD dwFlags;
4377 DWORD dwSpeed;
4378 DWORD dwDelay;
4379 DWORD dwOptDataSize;
4380 } NETCONNECTINFOSTRUCT,*LPNETCONNECTINFOSTRUCT;
4383 typedef struct tagANIMATIONINFO
4385 UINT32 cbSize;
4386 INT32 iMinAnimate;
4387 } ANIMATIONINFO, *LPANIMATIONINFO;
4389 typedef struct tagNMHDR
4391 HWND32 hwndFrom;
4392 UINT32 idFrom;
4393 UINT32 code;
4394 } NMHDR, *LPNMHDR;
4396 typedef struct
4398 UINT32 cbSize;
4399 INT32 iTabLength;
4400 INT32 iLeftMargin;
4401 INT32 iRightMargin;
4402 UINT32 uiLengthDrawn;
4403 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
4405 /* ifdef _x86_ ... */
4406 typedef struct _LDT_ENTRY {
4407 WORD LimitLow;
4408 WORD BaseLow;
4409 union {
4410 struct {
4411 BYTE BaseMid;
4412 BYTE Flags1;/*Declare as bytes to avoid alignment problems */
4413 BYTE Flags2;
4414 BYTE BaseHi;
4415 } Bytes;
4416 struct {
4417 DWORD BaseMid : 8;
4418 DWORD Type : 5;
4419 DWORD Dpl : 2;
4420 DWORD Pres : 1;
4421 DWORD LimitHi : 4;
4422 DWORD Sys : 1;
4423 DWORD Reserved_0 : 1;
4424 DWORD Default_Big : 1;
4425 DWORD Granularity : 1;
4426 DWORD BaseHi : 8;
4427 } Bits;
4428 } HighWord;
4429 } LDT_ENTRY, *LPLDT_ENTRY;
4430 #define HELPINFO_WINDOW 0x0001
4431 #define HELPINFO_MENUITEM 0x0002
4432 typedef struct /* Structure pointed to by lParam of WM_HELP */
4434 UINT32 cbSize; /* Size in bytes of this struct */
4435 INT32 iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
4436 INT32 iCtrlId; /* Control Id or a Menu item Id. */
4437 HANDLE32 hItemHandle; /* hWnd of control or hMenu. */
4438 DWORD dwContextId; /* Context Id associated with this item */
4439 POINT32 MousePos; /* Mouse Position in screen co-ordinates */
4440 } HELPINFO,*LPHELPINFO;
4442 typedef void (CALLBACK *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);
4444 typedef struct /* not sure if the 16bit version is correct */
4446 UINT32 cbSize;
4447 HWND16 hwndOwner;
4448 HINSTANCE16 hInstance;
4449 SEGPTR lpszText;
4450 SEGPTR lpszCaption;
4451 DWORD dwStyle;
4452 SEGPTR lpszIcon;
4453 DWORD dwContextHelpId;
4454 MSGBOXCALLBACK lpfnMsgBoxCallback;
4455 DWORD dwLanguageId;
4456 } MSGBOXPARAMS16,*LPMSGBOXPARAMS16;
4458 typedef struct
4460 UINT32 cbSize;
4461 HWND32 hwndOwner;
4462 HINSTANCE32 hInstance;
4463 LPCSTR lpszText;
4464 LPCSTR lpszCaption;
4465 DWORD dwStyle;
4466 LPCSTR lpszIcon;
4467 DWORD dwContextHelpId;
4468 MSGBOXCALLBACK lpfnMsgBoxCallback;
4469 DWORD dwLanguageId;
4470 } MSGBOXPARAMS32A,*LPMSGBOXPARAMS32A;
4472 typedef struct
4474 UINT32 cbSize;
4475 HWND32 hwndOwner;
4476 HINSTANCE32 hInstance;
4477 LPCWSTR lpszText;
4478 LPCWSTR lpszCaption;
4479 DWORD dwStyle;
4480 LPCWSTR lpszIcon;
4481 DWORD dwContextHelpId;
4482 MSGBOXCALLBACK lpfnMsgBoxCallback;
4483 DWORD dwLanguageId;
4484 } MSGBOXPARAMS32W,*LPMSGBOXPARAMS32W;
4486 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS)
4487 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS)
4489 /* for WOWHandle{16,32} */
4490 typedef enum _WOW_HANDLE_TYPE { /* WOW */
4491 WOW_TYPE_HWND,
4492 WOW_TYPE_HMENU,
4493 WOW_TYPE_HDWP,
4494 WOW_TYPE_HDROP,
4495 WOW_TYPE_HDC,
4496 WOW_TYPE_HFONT,
4497 WOW_TYPE_HMETAFILE,
4498 WOW_TYPE_HRGN,
4499 WOW_TYPE_HBITMAP,
4500 WOW_TYPE_HBRUSH,
4501 WOW_TYPE_HPALETTE,
4502 WOW_TYPE_HPEN,
4503 WOW_TYPE_HACCEL,
4504 WOW_TYPE_HTASK,
4505 WOW_TYPE_FULLHWND
4506 } WOW_HANDLE_TYPE;
4508 /* WOWCallback16Ex defines */
4509 #define WCB16_MAX_CBARGS 16
4510 /* ... dwFlags */
4511 #define WCB16_PASCAL 0x0
4512 #define WCB16_CDECL 0x1
4514 typedef struct _numberfmt32a {
4515 UINT32 NumDigits;
4516 UINT32 LeadingZero;
4517 UINT32 Grouping;
4518 LPCSTR lpDecimalSep;
4519 LPCSTR lpThousandSep;
4520 UINT32 NegativeOrder;
4521 } NUMBERFMT32A;
4523 typedef struct _numberfmt32w {
4524 UINT32 NumDigits;
4525 UINT32 LeadingZero;
4526 UINT32 Grouping;
4527 LPCWSTR lpDecimalSep;
4528 LPCWSTR lpThousandSep;
4529 UINT32 NegativeOrder;
4530 } NUMBERFMT32W;
4532 typedef enum _GET_FILEEX_INFO_LEVELS {
4533 GetFileExInfoStandard
4534 } GET_FILEEX_INFO_LEVELS;
4536 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
4537 DWORD dwFileAttributes;
4538 FILETIME ftCreationTime;
4539 FILETIME ftLastAccessTime;
4540 FILETIME ftLastWriteTime;
4541 DWORD nFileSizeHigh;
4542 DWORD nFileSizeLow;
4543 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
4545 typedef struct _DllVersionInfo {
4546 DWORD cbSize;
4547 DWORD dwMajorVersion;
4548 DWORD dwMinorVersion;
4549 DWORD dwBuildNumber;
4550 DWORD dwPlatformID;
4551 } DLLVERSIONINFO;
4553 typedef struct _SEGINFO {
4554 UINT16 offSegment;
4555 UINT16 cbSegment;
4556 UINT16 flags;
4557 UINT16 cbAlloc;
4558 HGLOBAL16 h;
4559 UINT16 alignShift;
4560 UINT16 reserved[2];
4561 } SEGINFO;
4563 typedef struct tagDLGTEMPLATE
4565 DWORD style;
4566 DWORD dwExtendedStyle;
4567 WORD cdit;
4568 short x;
4569 short y;
4570 short cx;
4571 short cy;
4572 }DLGTEMPLATE, *LPDLGTEMPLATE;
4573 typedef const DLGTEMPLATE *LPCDLGTEMPLATE;
4574 /* Fixme: use this instaed of LPCVOID for CreateDialogIndirectParam and DialogBoxIndirectParam*/
4575 typedef struct tagDLGITEMTEMPLATE
4577 DWORD style;
4578 DWORD dwExtendedStyle;
4579 WORD cdit;
4580 short x;
4581 short y;
4582 short cx;
4583 short cy;
4584 WORD id;
4585 }DLGITEMTEMPLATE, *LPDLGITEMTEMPLATE;
4586 typedef const DLGITEMTEMPLATE *LPCDLGITEMTEMPLATE;
4589 * This one seems to be a Win32 only definition. It also is defined with
4590 * WINAPI instead of CALLBACK in the windows headers.
4592 typedef DWORD (WINAPI *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
4593 LARGE_INTEGER, DWORD, DWORD, HANDLE32,
4594 HANDLE32, LPVOID);
4596 #pragma pack(4)
4598 /* Declarations for functions that exist only in Win16 */
4600 #ifdef __WINE__
4601 typedef VOID (*SYSTEMTIMERPROC)(WORD);
4603 WORD WINAPI AllocCStoDSAlias(WORD);
4604 WORD WINAPI AllocDStoCSAlias(WORD);
4605 HGLOBAL16 WINAPI AllocResource(HINSTANCE16,HRSRC16,DWORD);
4606 WORD WINAPI AllocSelector(WORD);
4607 WORD WINAPI AllocSelectorArray(WORD);
4608 VOID WINAPI CalcChildScroll(HWND16,WORD);
4609 VOID WINAPI CascadeChildWindows(HWND16,WORD);
4610 INT16 WINAPI CloseComm(INT16);
4611 HGLOBAL16 WINAPI CreateCursorIconIndirect(HINSTANCE16,CURSORICONINFO*,
4612 LPCVOID,LPCVOID);
4613 WORD WINAPI CreateSystemTimer(WORD,SYSTEMTIMERPROC);
4614 BOOL16 WINAPI DCHook(HDC16,WORD,DWORD,LPARAM);
4615 VOID WINAPI DirectedYield(HTASK16);
4616 HGLOBAL16 WINAPI DirectResAlloc(HINSTANCE16,WORD,UINT16);
4617 VOID WINAPI DisableSystemTimers(void);
4618 BOOL16 WINAPI DlgDirSelect(HWND16,LPSTR,INT16);
4619 BOOL16 WINAPI DlgDirSelectComboBox(HWND16,LPSTR,INT16);
4620 DWORD WINAPI DumpIcon(SEGPTR,WORD*,SEGPTR*,SEGPTR*);
4621 BOOL16 WINAPI EnableCommNotification(INT16,HWND16,INT16,INT16);
4622 BOOL16 WINAPI EnableHardwareInput(BOOL16);
4623 VOID WINAPI EnableSystemTimers(void);
4624 HANDLE16 WINAPI FarGetOwner(HGLOBAL16);
4625 VOID WINAPI FarSetOwner(HGLOBAL16,HANDLE16);
4626 FARPROC16 WINAPI FileCDR(FARPROC16);
4627 VOID WINAPI FillWindow(HWND16,HWND16,HDC16,HBRUSH16);
4628 INT16 WINAPI FlushComm(INT16,INT16);
4629 WORD WINAPI FreeSelector(WORD);
4630 HANDLE16 WINAPI GetAtomHandle(ATOM);
4631 HANDLE16 WINAPI GetCodeHandle(FARPROC16);
4632 INT16 WINAPI GetCommError(INT16,LPCOMSTAT);
4633 UINT16 WINAPI GetCommEventMask(INT16,UINT16);
4634 HBRUSH16 WINAPI GetControlBrush(HWND16,HDC16,UINT16);
4635 VOID WINAPI GetCodeInfo(FARPROC16,SEGINFO*);
4636 DWORD WINAPI GetCurrentPDB(void);
4637 HTASK16 WINAPI GetCurrentTask(void);
4638 HWND16 WINAPI GetDesktopHwnd(void);
4639 SEGPTR WINAPI GetDOSEnvironment(void);
4640 HMODULE16 WINAPI GetExePtr(HANDLE16);
4641 WORD WINAPI GetExeVersion(void);
4642 WORD WINAPI GetExpWinVer(HMODULE16);
4643 DWORD WINAPI GetFileResourceSize(LPCSTR,SEGPTR,SEGPTR,LPDWORD);
4644 DWORD WINAPI GetFileResource(LPCSTR,SEGPTR,SEGPTR,DWORD,DWORD,LPVOID);
4645 DWORD WINAPI GetHeapSpaces(HMODULE16);
4646 WORD WINAPI GetIconID(HGLOBAL16,DWORD);
4647 INT16 WINAPI GetInstanceData(HINSTANCE16,WORD,INT16);
4648 BOOL16 WINAPI GetModuleName(HINSTANCE16,LPSTR,INT16);
4649 INT16 WINAPI GetModuleUsage(HINSTANCE16);
4650 FARPROC16 WINAPI GetMouseEventProc(void);
4651 UINT16 WINAPI GetNumTasks(void);
4652 DWORD WINAPI GetSelectorBase(WORD);
4653 DWORD WINAPI GetSelectorLimit(WORD);
4654 FARPROC16 WINAPI GetSetKernelDOSProc(FARPROC16 DosProc);
4655 HINSTANCE16 WINAPI GetTaskDS(void);
4656 HQUEUE16 WINAPI GetTaskQueue(HTASK16);
4657 BYTE WINAPI GetTempDrive(BYTE);
4658 BOOL16 WINAPI GetWinDebugInfo(LPWINDEBUGINFO,UINT16);
4659 DWORD WINAPI GetWinFlags(void);
4660 DWORD WINAPI GlobalDOSAlloc(DWORD);
4661 WORD WINAPI GlobalDOSFree(WORD);
4662 void WINAPI GlobalFreeAll(HGLOBAL16);
4663 DWORD WINAPI GlobalHandleNoRIP(WORD);
4664 HGLOBAL16 WINAPI GlobalLRUNewest(HGLOBAL16);
4665 HGLOBAL16 WINAPI GlobalLRUOldest(HGLOBAL16);
4666 VOID WINAPI GlobalNotify(FARPROC16);
4667 WORD WINAPI GlobalPageLock(HGLOBAL16);
4668 WORD WINAPI GlobalPageUnlock(HGLOBAL16);
4669 INT16 WINAPI InitApp(HINSTANCE16);
4670 BOOL16 WINAPI IsSharedSelector(HANDLE16);
4671 BOOL16 WINAPI IsTask(HTASK16);
4672 HTASK16 WINAPI IsTaskLocked(void);
4673 BOOL16 WINAPI IsUserIdle(void);
4674 VOID WINAPI LogError(UINT16, LPVOID);
4675 VOID WINAPI LogParamError(UINT16,FARPROC16,LPVOID);
4676 HGLOBAL16 WINAPI LoadCursorIconHandler(HGLOBAL16,HMODULE16,HRSRC16);
4677 HGLOBAL16 WINAPI LoadDIBCursorHandler(HGLOBAL16,HMODULE16,HRSRC16);
4678 HGLOBAL16 WINAPI LoadDIBIconHandler(HGLOBAL16,HMODULE16,HRSRC16);
4679 WORD WINAPI LocalCountFree(void);
4680 WORD WINAPI LocalHandleDelta(WORD);
4681 WORD WINAPI LocalHeapSize(void);
4682 HICON16 WINAPI LoadIconHandler(HGLOBAL16,BOOL16);
4683 BOOL16 WINAPI LocalInit(HANDLE16,WORD,WORD);
4684 HMODULE32 WINAPI LoadLibraryEx32W16(LPCSTR,HANDLE16,DWORD);
4685 FARPROC16 WINAPI LocalNotify(FARPROC16);
4686 HTASK16 WINAPI LockCurrentTask(BOOL16);
4687 HMENU16 WINAPI LookupMenuHandle(HMENU16,INT16);
4688 VOID WINAPI OldYield(void);
4689 INT16 WINAPI OpenComm(LPCSTR,UINT16,UINT16);
4690 VOID WINAPI PaintRect(HWND16,HWND16,HDC16,HBRUSH16,const RECT16*);
4691 VOID WINAPI PostEvent(HTASK16);
4692 WORD WINAPI PrestoChangoSelector(WORD,WORD);
4693 INT16 WINAPI ReadComm(INT16,LPSTR,INT16);
4694 BOOL32 WINAPI RegisterShellHook(HWND16,UINT16);
4695 WORD WINAPI SelectorAccessRights(WORD,WORD,WORD);
4696 SEGPTR WINAPI SetCommEventMask(INT16,UINT16);
4697 BOOL16 WINAPI SetDeskPattern(void);
4698 VOID WINAPI SetPriority(HTASK16,INT16);
4699 FARPROC16 WINAPI SetResourceHandler(HINSTANCE16,SEGPTR,FARPROC16);
4700 WORD WINAPI SetSelectorBase(WORD,DWORD);
4701 WORD WINAPI SetSelectorLimit(WORD,DWORD);
4702 HQUEUE16 WINAPI SetTaskQueue(HTASK16,HQUEUE16);
4703 FARPROC16 WINAPI SetTaskSignalProc(HTASK16,FARPROC16);
4704 BOOL16 WINAPI SetWinDebugInfo(LPWINDEBUGINFO);
4705 VOID WINAPI SwitchStackTo(WORD,WORD,WORD);
4706 VOID WINAPI TileChildWindows(HWND16,WORD);
4707 INT16 WINAPI UngetCommChar(INT16,CHAR);
4708 VOID WINAPI UserYield(void);
4709 BOOL16 WINAPI WaitEvent(HTASK16);
4710 INT16 WINAPI WriteComm(INT16,LPSTR,INT16);
4711 VOID WINAPI WriteOutProfiles(VOID);
4712 VOID WINAPI hmemcpy(LPVOID,LPCVOID,LONG);
4713 #endif /* __WINE__ */
4715 /* Declarations for functions that exist only in Win32 */
4717 BOOL32 WINAPI AllocConsole(void);
4718 BOOL32 WINAPI AreFileApisANSI(void);
4719 BOOL32 WINAPI Beep(DWORD,DWORD);
4720 WORD WINAPI CascadeWindows (HWND32, UINT32, const LPRECT32,
4721 UINT32, const HWND32 *);
4722 BOOL32 WINAPI ClearCommError(INT32,LPDWORD,LPCOMSTAT);
4723 BOOL32 WINAPI CloseHandle(HANDLE32);
4724 BOOL32 WINAPI CloseServiceHandle(HANDLE32);
4725 INT32 WINAPI CopyAcceleratorTable32A(HACCEL32,LPACCEL32,INT32);
4726 INT32 WINAPI CopyAcceleratorTable32W(HACCEL32,LPACCEL32,INT32);
4727 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
4728 BOOL32 WINAPI CopyFile32A(LPCSTR,LPCSTR,BOOL32);
4729 BOOL32 WINAPI CopyFile32W(LPCWSTR,LPCWSTR,BOOL32);
4730 #define CopyFile WINELIB_NAME_AW(CopyFile)
4731 BOOL32 WINAPI CopyFileEx32A(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL32, DWORD);
4732 BOOL32 WINAPI CopyFileEx32W(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL32, DWORD);
4733 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
4734 INT32 WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
4735 BOOL32 WINAPI ControlService(HANDLE32,DWORD,LPSERVICE_STATUS);
4736 HANDLE32 WINAPI CreateEvent32A(LPSECURITY_ATTRIBUTES,BOOL32,BOOL32,LPCSTR);
4737 HANDLE32 WINAPI CreateEvent32W(LPSECURITY_ATTRIBUTES,BOOL32,BOOL32,LPCWSTR);
4738 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
4739 HFILE32 WINAPI CreateFile32A(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
4740 DWORD,DWORD,HANDLE32);
4741 HFILE32 WINAPI CreateFile32W(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
4742 DWORD,DWORD,HANDLE32);
4743 #define CreateFile WINELIB_NAME_AW(CreateFile)
4744 HANDLE32 WINAPI CreateFileMapping32A(HANDLE32,LPSECURITY_ATTRIBUTES,DWORD,
4745 DWORD,DWORD,LPCSTR);
4746 HANDLE32 WINAPI CreateFileMapping32W(HANDLE32,LPSECURITY_ATTRIBUTES,DWORD,
4747 DWORD,DWORD,LPCWSTR);
4748 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
4749 HICON32 WINAPI CreateIconIndirect(LPICONINFO);
4750 HANDLE32 WINAPI CreateMutex32A(LPSECURITY_ATTRIBUTES,BOOL32,LPCSTR);
4751 HANDLE32 WINAPI CreateMutex32W(LPSECURITY_ATTRIBUTES,BOOL32,LPCWSTR);
4752 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
4753 BOOL32 WINAPI CreateProcess32A(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
4754 LPSECURITY_ATTRIBUTES,BOOL32,DWORD,LPVOID,LPCSTR,
4755 LPSTARTUPINFO32A,LPPROCESS_INFORMATION);
4756 BOOL32 WINAPI CreateProcess32W(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
4757 LPSECURITY_ATTRIBUTES,BOOL32,DWORD,LPVOID,LPCWSTR,
4758 LPSTARTUPINFO32W,LPPROCESS_INFORMATION);
4759 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
4760 HANDLE32 WINAPI CreateSemaphore32A(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
4761 HANDLE32 WINAPI CreateSemaphore32W(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
4762 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
4763 HANDLE32 WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
4764 BOOL32 WINAPI DeleteService(HANDLE32);
4765 BOOL32 WINAPI DeregisterEventSource(HANDLE32);
4766 BOOL32 WINAPI DestroyAcceleratorTable(HACCEL32);
4767 BOOL32 WINAPI DisableThreadLibraryCalls(HMODULE32);
4768 BOOL32 WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
4769 BOOL32 WINAPI DuplicateHandle(HANDLE32,HANDLE32,HANDLE32,HANDLE32*,DWORD,BOOL32,DWORD);
4770 BOOL32 WINAPI EnumDateFormats32A(DATEFMT_ENUMPROC32A lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
4771 BOOL32 WINAPI EnumDateFormats32W(DATEFMT_ENUMPROC32W lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
4772 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
4773 INT32 WINAPI EnumPropsEx32A(HWND32,PROPENUMPROCEX32A,LPARAM);
4774 INT32 WINAPI EnumPropsEx32W(HWND32,PROPENUMPROCEX32W,LPARAM);
4775 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
4776 BOOL32 WINAPI EnumResourceLanguages32A(HMODULE32,LPCSTR,LPCSTR,
4777 ENUMRESLANGPROC32A,LONG);
4778 BOOL32 WINAPI EnumResourceLanguages32W(HMODULE32,LPCWSTR,LPCWSTR,
4779 ENUMRESLANGPROC32W,LONG);
4780 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
4781 BOOL32 WINAPI EnumResourceNames32A(HMODULE32,LPCSTR,ENUMRESNAMEPROC32A,
4782 LONG);
4783 BOOL32 WINAPI EnumResourceNames32W(HMODULE32,LPCWSTR,ENUMRESNAMEPROC32W,
4784 LONG);
4785 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
4786 BOOL32 WINAPI EnumResourceTypes32A(HMODULE32,ENUMRESTYPEPROC32A,LONG);
4787 BOOL32 WINAPI EnumResourceTypes32W(HMODULE32,ENUMRESTYPEPROC32W,LONG);
4788 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
4789 BOOL32 WINAPI EnumSystemCodePages32A(CODEPAGE_ENUMPROC32A,DWORD);
4790 BOOL32 WINAPI EnumSystemCodePages32W(CODEPAGE_ENUMPROC32W,DWORD);
4791 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
4792 BOOL32 WINAPI EnumSystemLocales32A(LOCALE_ENUMPROC32A,DWORD);
4793 BOOL32 WINAPI EnumSystemLocales32W(LOCALE_ENUMPROC32W,DWORD);
4794 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
4795 BOOL32 WINAPI EnumThreadWindows(DWORD,WNDENUMPROC32,LPARAM);
4796 BOOL32 WINAPI EnumTimeFormats32A(TIMEFMT_ENUMPROC32A lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
4797 BOOL32 WINAPI EnumTimeFormats32W(TIMEFMT_ENUMPROC32W lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
4798 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
4799 VOID WINAPI ExitProcess(DWORD);
4800 VOID WINAPI ExitThread(DWORD);
4801 BOOL32 WINAPI ExitWindowsEx(UINT32,DWORD);
4802 DWORD WINAPI ExpandEnvironmentStrings32A(LPCSTR,LPSTR,DWORD);
4803 DWORD WINAPI ExpandEnvironmentStrings32W(LPCWSTR,LPWSTR,DWORD);
4804 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
4805 BOOL32 WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
4806 BOOL32 WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
4807 BOOL32 WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
4808 HANDLE32 WINAPI FindFirstChangeNotification32A(LPCSTR,BOOL32,DWORD);
4809 HANDLE32 WINAPI FindFirstChangeNotification32W(LPCWSTR,BOOL32,DWORD);
4810 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
4811 BOOL32 WINAPI FindNextChangeNotification(HANDLE32);
4812 BOOL32 WINAPI FindCloseChangeNotification(HANDLE32);
4813 HRSRC32 WINAPI FindResourceEx32A(HMODULE32,LPCSTR,LPCSTR,WORD);
4814 HRSRC32 WINAPI FindResourceEx32W(HMODULE32,LPCWSTR,LPCWSTR,WORD);
4815 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
4816 BOOL32 WINAPI FlushConsoleInputBuffer(HANDLE32);
4817 BOOL32 WINAPI FlushFileBuffers(HFILE32);
4818 BOOL32 WINAPI FlushViewOfFile(LPCVOID, DWORD);
4819 DWORD WINAPI FormatMessage32A(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
4820 DWORD,LPDWORD);
4821 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
4822 BOOL32 WINAPI FreeConsole(void);
4823 BOOL32 WINAPI FreeEnvironmentStrings32A(LPSTR);
4824 BOOL32 WINAPI FreeEnvironmentStrings32W(LPWSTR);
4825 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
4826 UINT32 WINAPI GetACP(void);
4827 LPCSTR WINAPI GetCommandLine32A(void);
4828 LPCWSTR WINAPI GetCommandLine32W(void);
4829 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
4830 BOOL32 WINAPI GetCommTimeouts(INT32,LPCOMMTIMEOUTS);
4831 BOOL32 WINAPI GetComputerName32A(LPSTR,LPDWORD);
4832 BOOL32 WINAPI GetComputerName32W(LPWSTR,LPDWORD);
4833 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
4834 UINT32 WINAPI GetConsoleCP(void);
4835 BOOL32 WINAPI GetConsoleMode(HANDLE32,LPDWORD);
4836 UINT32 WINAPI GetConsoleOutputCP(void);
4837 DWORD WINAPI GetConsoleTitle32A(LPSTR,DWORD);
4838 DWORD WINAPI GetConsoleTitle32W(LPWSTR,DWORD);
4839 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
4840 BOOL32 WINAPI GetCPInfo(UINT32,LPCPINFO);
4841 BOOL32 WINAPI GetCommMask(HANDLE32, LPDWORD);
4842 BOOL32 WINAPI GetCommModemStatus(HANDLE32, LPDWORD);
4843 HANDLE32 WINAPI GetCurrentProcess(void);
4844 DWORD WINAPI GetCurrentProcessId(void);
4845 HANDLE32 WINAPI GetCurrentThread(void);
4846 DWORD WINAPI GetCurrentThreadId(void);
4847 INT32 WINAPI GetDateFormat32A(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT32);
4848 INT32 WINAPI GetDateFormat32W(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT32);
4849 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
4850 LPSTR WINAPI GetEnvironmentStrings32A(void);
4851 LPWSTR WINAPI GetEnvironmentStrings32W(void);
4852 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
4853 DWORD WINAPI GetEnvironmentVariable32A(LPCSTR,LPSTR,DWORD);
4854 DWORD WINAPI GetEnvironmentVariable32W(LPCWSTR,LPWSTR,DWORD);
4855 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
4856 BOOL32 WINAPI GetFileAttributesEx32A(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
4857 BOOL32 WINAPI GetFileAttributesEx32W(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
4858 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
4859 DWORD WINAPI GetFileInformationByHandle(HFILE32,BY_HANDLE_FILE_INFORMATION*);
4860 BOOL32 WINAPI GetFileSecurity32A(LPCSTR,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR,DWORD,LPDWORD);
4861 BOOL32 WINAPI GetFileSecurity32W(LPCWSTR,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR,DWORD,LPDWORD);
4862 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
4863 DWORD WINAPI GetFileSize(HFILE32,LPDWORD);
4864 BOOL32 WINAPI GetFileTime(HFILE32,LPFILETIME,LPFILETIME,LPFILETIME);
4865 DWORD WINAPI GetFileType(HFILE32);
4866 DWORD WINAPI GetFullPathName32A(LPCSTR,DWORD,LPSTR,LPSTR*);
4867 DWORD WINAPI GetFullPathName32W(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
4868 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
4869 BOOL32 WINAPI GetHandleInformation(HANDLE32,LPDWORD);
4870 BOOL32 WINAPI GetIconInfo(HICON32,LPICONINFO);
4871 DWORD WINAPI GetLargestConsoleWindowSize(HANDLE32);
4872 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
4873 DWORD WINAPI GetLogicalDrives(void);
4874 DWORD WINAPI GetLongPathName32A(LPCSTR,LPSTR,DWORD);
4875 DWORD WINAPI GetLongPathName32W(LPCWSTR,LPWSTR,DWORD);
4876 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
4877 DWORD WINAPI GetMenuContextHelpId32(HMENU32);
4878 #define GetMenuContextHelpId WINELIB_NAME(GetMenuContextHelpId)
4879 UINT32 WINAPI GetMenuDefaultItem32(HMENU32,UINT32,UINT32);
4880 #define GetMenuDefaultItem WINELIB_NAME(GetMenuDefaultItem)
4881 BOOL32 WINAPI GetMenuItemInfo32A(HMENU32,UINT32,BOOL32,MENUITEMINFO32A*);
4882 BOOL32 WINAPI GetMenuItemInfo32W(HMENU32,UINT32,BOOL32,MENUITEMINFO32W*);
4883 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
4884 INT32 WINAPI GetNumberFormat32A(LCID,DWORD,LPCSTR,const NUMBERFMT32A*,LPSTR,int);
4885 INT32 WINAPI GetNumberFormat32W(LCID,DWORD,LPCWSTR,const NUMBERFMT32W*,LPWSTR,int);
4886 #define GetNumberFormat WINELIB_NAME_AW(GetNumberFormat);
4887 BOOL32 WINAPI GetNumberOfConsoleInputEvents(HANDLE32,LPDWORD);
4888 BOOL32 WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
4889 UINT32 WINAPI GetOEMCP(void);
4890 DWORD WINAPI GetPriorityClass(HANDLE32);
4891 HANDLE32 WINAPI GetProcessHeap(void);
4892 DWORD WINAPI GetProcessVersion(DWORD);
4893 DWORD WINAPI GetShortPathName32A(LPCSTR,LPSTR,DWORD);
4894 DWORD WINAPI GetShortPathName32W(LPCWSTR,LPWSTR,DWORD);
4895 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
4896 HFILE32 WINAPI GetStdHandle(DWORD);
4897 BOOL32 WINAPI GetStringTypeEx32A(LCID,DWORD,LPCSTR,INT32,LPWORD);
4898 BOOL32 WINAPI GetStringTypeEx32W(LCID,DWORD,LPCWSTR,INT32,LPWORD);
4899 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
4900 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
4901 BOOL32 WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
4902 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
4903 INT32 WINAPI GetTimeFormat32A(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT32);
4904 INT32 WINAPI GetTimeFormat32W(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT32);
4905 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
4906 LCID WINAPI GetThreadLocale(void);
4907 INT32 WINAPI GetThreadPriority(HANDLE32);
4908 BOOL32 WINAPI GetThreadSelectorEntry(HANDLE32,DWORD,LPLDT_ENTRY);
4909 BOOL32 WINAPI GetUserName32A(LPSTR,LPDWORD);
4910 BOOL32 WINAPI GetUserName32W(LPWSTR,LPDWORD);
4911 #define GetUserName WINELIB_NAME_AW(GetUserName)
4912 DWORD WINAPI GetWindowContextHelpId(HWND32);
4913 DWORD WINAPI GetWindowThreadProcessId(HWND32,LPDWORD);
4914 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
4915 LPVOID WINAPI HeapAlloc(HANDLE32,DWORD,DWORD);
4916 DWORD WINAPI HeapCompact(HANDLE32,DWORD);
4917 HANDLE32 WINAPI HeapCreate(DWORD,DWORD,DWORD);
4918 BOOL32 WINAPI HeapDestroy(HANDLE32);
4919 BOOL32 WINAPI HeapFree(HANDLE32,DWORD,LPVOID);
4920 BOOL32 WINAPI HeapLock(HANDLE32);
4921 LPVOID WINAPI HeapReAlloc(HANDLE32,DWORD,LPVOID,DWORD);
4922 DWORD WINAPI HeapSize(HANDLE32,DWORD,LPVOID);
4923 BOOL32 WINAPI HeapUnlock(HANDLE32);
4924 BOOL32 WINAPI HeapValidate(HANDLE32,DWORD,LPCVOID);
4925 LONG WINAPI InterlockedDecrement(LPLONG);
4926 LONG WINAPI InterlockedExchange(LPLONG,LONG);
4927 LONG WINAPI InterlockedIncrement(LPLONG);
4928 BOOL32 WINAPI IsDBCSLeadByteEx(UINT32,BYTE);
4929 BOOL32 WINAPI IsProcessorFeaturePresent(DWORD);
4930 BOOL32 WINAPI IsWindowUnicode(HWND32);
4931 BOOL32 WINAPI IsValidLocale(DWORD,DWORD);
4932 HKL32 WINAPI LoadKeyboardLayout32A(LPCSTR,UINT32);
4933 HKL32 WINAPI LoadKeyboardLayout32W(LPCWSTR,UINT32);
4934 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
4935 BOOL32 WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
4936 BOOL32 WINAPI LockFile(HFILE32,DWORD,DWORD,DWORD,DWORD);
4937 BOOL32 WINAPI LookupPrivilegeValue32A(LPCSTR,LPCSTR,LPVOID);
4938 BOOL32 WINAPI LookupPrivilegeValue32W(LPCWSTR,LPCWSTR,LPVOID);
4939 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
4940 HMODULE32 WINAPI MapHModuleSL(HMODULE16);
4941 HMODULE16 WINAPI MapHModuleLS(HMODULE32);
4942 SEGPTR WINAPI MapLS(LPVOID);
4943 LPVOID WINAPI MapSL(SEGPTR);
4944 LPVOID WINAPI MapViewOfFile(HANDLE32,DWORD,DWORD,DWORD,DWORD);
4945 LPVOID WINAPI MapViewOfFileEx(HANDLE32,DWORD,DWORD,DWORD,DWORD,LPVOID);
4946 INT32 WINAPI MessageBoxEx32A(HWND32,LPCSTR,LPCSTR,UINT32,WORD);
4947 INT32 WINAPI MessageBoxEx32W(HWND32,LPCWSTR,LPCWSTR,UINT32,WORD);
4948 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
4949 HMONITOR WINAPI MonitorFromPoint(POINT32,DWORD);
4950 HMONITOR WINAPI MonitorFromRect(LPRECT32,DWORD);
4951 HMONITOR WINAPI MonitorFromWindow(HWND32,DWORD);
4952 BOOL32 WINAPI MoveFile32A(LPCSTR,LPCSTR);
4953 BOOL32 WINAPI MoveFile32W(LPCWSTR,LPCWSTR);
4954 #define MoveFile WINELIB_NAME_AW(MoveFile)
4955 BOOL32 WINAPI MoveFileEx32A(LPCSTR,LPCSTR,DWORD);
4956 BOOL32 WINAPI MoveFileEx32W(LPCWSTR,LPCWSTR,DWORD);
4957 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
4958 DWORD WINAPI MsgWaitForMultipleObjects(DWORD,HANDLE32*,BOOL32,DWORD,DWORD);
4959 INT32 WINAPI MultiByteToWideChar(UINT32,DWORD,LPCSTR,INT32,LPWSTR,INT32);
4960 INT32 WINAPI WideCharToMultiByte(UINT32,DWORD,LPCWSTR,INT32,LPSTR,INT32,LPCSTR,BOOL32*);
4961 HANDLE32 WINAPI OpenEvent32A(DWORD,BOOL32,LPCSTR);
4962 HANDLE32 WINAPI OpenEvent32W(DWORD,BOOL32,LPCWSTR);
4963 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
4964 HANDLE32 WINAPI OpenFileMapping32A(DWORD,BOOL32,LPCSTR);
4965 HANDLE32 WINAPI OpenFileMapping32W(DWORD,BOOL32,LPCWSTR);
4966 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
4967 HANDLE32 WINAPI OpenMutex32A(DWORD,BOOL32,LPCSTR);
4968 HANDLE32 WINAPI OpenMutex32W(DWORD,BOOL32,LPCWSTR);
4969 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
4970 HANDLE32 WINAPI OpenProcess(DWORD,BOOL32,DWORD);
4971 BOOL32 WINAPI OpenProcessToken(HANDLE32,DWORD,HANDLE32*);
4972 HANDLE32 WINAPI OpenSCManager32A(LPCSTR,LPCSTR,DWORD);
4973 HANDLE32 WINAPI OpenSCManager32W(LPCWSTR,LPCWSTR,DWORD);
4974 #define OpenSCManager WINELIB_NAME_AW(OpenSCManager)
4975 HANDLE32 WINAPI OpenSemaphore32A(DWORD,BOOL32,LPCSTR);
4976 HANDLE32 WINAPI OpenSemaphore32W(DWORD,BOOL32,LPCWSTR);
4977 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
4978 HANDLE32 WINAPI OpenService32A(HANDLE32,LPCSTR,DWORD);
4979 HANDLE32 WINAPI OpenService32W(HANDLE32,LPCWSTR,DWORD);
4980 #define OpenService WINELIB_NAME_AW(OpenService)
4981 BOOL32 WINAPI PaintDesktop(HDC32);
4982 BOOL32 WINAPI PostThreadMessage32A(DWORD, UINT32, WPARAM32, LPARAM);
4983 BOOL32 WINAPI PostThreadMessage32W(DWORD, UINT32, WPARAM32, LPARAM);
4984 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
4985 BOOL32 WINAPI PulseEvent(HANDLE32);
4986 BOOL32 WINAPI PurgeComm(HANDLE32,DWORD);
4987 DWORD WINAPI QueryDosDevice32A(LPCSTR,LPSTR,DWORD);
4988 DWORD WINAPI QueryDosDevice32W(LPCWSTR,LPWSTR,DWORD);
4989 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
4990 BOOL32 WINAPI QueryPerformanceCounter(LPLARGE_INTEGER);
4991 BOOL32 WINAPI ReadConsole32A(HANDLE32,LPVOID,DWORD,LPDWORD,LPVOID);
4992 BOOL32 WINAPI ReadConsole32W(HANDLE32,LPVOID,DWORD,LPDWORD,LPVOID);
4993 #define ReadConsole WINELIB_NAME_AW(ReadConsole)
4994 BOOL32 WINAPI ReadConsoleOutputCharacter32A(HANDLE32,LPSTR,DWORD,
4995 COORD,LPDWORD);
4996 #define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
4997 BOOL32 WINAPI ReadFile(HANDLE32,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
4998 LONG WINAPI RegConnectRegistry32A(LPCSTR,HKEY,LPHKEY);
4999 LONG WINAPI RegConnectRegistry32W(LPCWSTR,HKEY,LPHKEY);
5000 #define RegConnectRegistry WINELIB_NAME_AW(RegConnectRegistry)
5001 DWORD WINAPI RegCreateKeyEx32A(HKEY,LPCSTR,DWORD,LPSTR,DWORD,REGSAM,
5002 LPSECURITY_ATTRIBUTES,LPHKEY,LPDWORD);
5003 DWORD WINAPI RegCreateKeyEx32W(HKEY,LPCWSTR,DWORD,LPWSTR,DWORD,REGSAM,
5004 LPSECURITY_ATTRIBUTES,LPHKEY,LPDWORD);
5005 #define RegCreateKeyEx WINELIB_NAME_AW(RegCreateKeyEx)
5006 DWORD WINAPI RegEnumKeyEx32A(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPSTR,
5007 LPDWORD,LPFILETIME);
5008 DWORD WINAPI RegEnumKeyEx32W(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPWSTR,
5009 LPDWORD,LPFILETIME);
5010 #define RegEnumKeyEx WINELIB_NAME_AW(RegEnumKeyEx)
5011 LONG WINAPI RegGetKeySecurity(HKEY,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR,LPDWORD);
5012 HANDLE32 WINAPI RegisterEventSource32A(LPCSTR,LPCSTR);
5013 HANDLE32 WINAPI RegisterEventSource32W(LPCWSTR,LPCWSTR);
5014 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
5015 LONG WINAPI RegLoadKey32A(HKEY,LPCSTR,LPCSTR);
5016 LONG WINAPI RegLoadKey32W(HKEY,LPCWSTR,LPCWSTR);
5017 #define RegLoadKey WINELIB_NAME_AW(RegLoadKey)
5018 LONG WINAPI RegNotifyChangeKeyValue(HKEY,BOOL32,DWORD,HANDLE32,BOOL32);
5019 DWORD WINAPI RegOpenKeyEx32W(HKEY,LPCWSTR,DWORD,REGSAM,LPHKEY);
5020 DWORD WINAPI RegOpenKeyEx32A(HKEY,LPCSTR,DWORD,REGSAM,LPHKEY);
5021 #define RegOpenKeyEx WINELIB_NAME_AW(RegOpenKeyEx)
5022 DWORD WINAPI RegQueryInfoKey32W(HKEY,LPWSTR,LPDWORD,LPDWORD,LPDWORD,
5023 LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,
5024 LPDWORD,LPFILETIME);
5025 DWORD WINAPI RegQueryInfoKey32A(HKEY,LPSTR,LPDWORD,LPDWORD,LPDWORD,
5026 LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,
5027 LPDWORD,LPFILETIME);
5028 #define RegQueryInfoKey WINELIB_NAME_AW(RegQueryInfoKey)
5029 LONG WINAPI RegReplaceKey32A(HKEY,LPCSTR,LPCSTR,LPCSTR);
5030 LONG WINAPI RegReplaceKey32W(HKEY,LPCWSTR,LPCWSTR,LPCWSTR);
5031 #define RegReplaceKey WINELIB_NAME_AW(RegReplaceKey)
5032 LONG WINAPI RegRestoreKey32A(HKEY,LPCSTR,DWORD);
5033 LONG WINAPI RegRestoreKey32W(HKEY,LPCWSTR,DWORD);
5034 #define RegRestoreKey WINELIB_NAME_AW(RegRestoreKey)
5035 LONG WINAPI RegSaveKey32A(HKEY,LPCSTR,LPSECURITY_ATTRIBUTES);
5036 LONG WINAPI RegSaveKey32W(HKEY,LPCWSTR,LPSECURITY_ATTRIBUTES);
5037 #define RegSaveKey WINELIB_NAME_AW(RegSaveKey)
5038 LONG WINAPI RegSetKeySecurity(HKEY,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR);
5039 LONG WINAPI RegUnLoadKey32A(HKEY,LPCSTR);
5040 LONG WINAPI RegUnLoadKey32W(HKEY,LPCWSTR);
5041 #define RegUnLoadKey WINELIB_NAME_AW(RegUnLoadKey)
5042 BOOL32 WINAPI ReleaseSemaphore(HANDLE32,LONG,LPLONG);
5043 BOOL32 WINAPI ResetEvent(HANDLE32);
5044 DWORD WINAPI ResumeThread(HANDLE32);
5045 UINT32 WINAPI ReuseDDElParam(UINT32,UINT32,UINT32,UINT32,UINT32);
5046 VOID WINAPI RtlFillMemory(LPVOID,UINT32,UINT32);
5047 VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT32);
5048 VOID WINAPI RtlZeroMemory(LPVOID,UINT32);
5049 DWORD WINAPI SearchPath32A(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
5050 DWORD WINAPI SearchPath32W(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
5051 #define SearchPath WINELIB_NAME(SearchPath)
5052 BOOL32 WINAPI SendNotifyMessage32A(HWND32,UINT32,WPARAM32,LPARAM);
5053 BOOL32 WINAPI SendNotifyMessage32W(HWND32,UINT32,WPARAM32,LPARAM);
5054 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
5055 BOOL32 WINAPI SetCommMask(INT32,DWORD);
5056 BOOL32 WINAPI SetCommTimeouts(INT32,LPCOMMTIMEOUTS);
5057 BOOL32 WINAPI SetComputerName32A(LPCSTR);
5058 BOOL32 WINAPI SetComputerName32W(LPCWSTR);
5059 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
5060 BOOL32 WINAPI SetConsoleCursorPosition(HANDLE32,COORD);
5061 BOOL32 WINAPI SetConsoleMode(HANDLE32,DWORD);
5062 BOOL32 WINAPI SetConsoleTitle32A(LPCSTR);
5063 BOOL32 WINAPI SetConsoleTitle32W(LPCWSTR);
5064 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
5065 VOID WINAPI SetDebugErrorLevel(DWORD);
5066 BOOL32 WINAPI SetEndOfFile(HFILE32);
5067 BOOL32 WINAPI SetEnvironmentVariable32A(LPCSTR,LPCSTR);
5068 BOOL32 WINAPI SetEnvironmentVariable32W(LPCWSTR,LPCWSTR);
5069 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
5070 BOOL32 WINAPI SetEvent(HANDLE32);
5071 VOID WINAPI SetFileApisToANSI(void);
5072 VOID WINAPI SetFileApisToOEM(void);
5073 DWORD WINAPI SetFilePointer(HFILE32,LONG,LPLONG,DWORD);
5074 BOOL32 WINAPI SetFileSecurity32A(LPCSTR,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR);
5075 BOOL32 WINAPI SetFileSecurity32W(LPCWSTR,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR);
5076 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
5077 BOOL32 WINAPI SetFileTime(HFILE32,const FILETIME*,const FILETIME*,
5078 const FILETIME*);
5079 BOOL32 WINAPI SetHandleInformation(HANDLE32,DWORD,DWORD);
5080 VOID WINAPI SetLastErrorEx(DWORD,DWORD);
5081 BOOL32 WINAPI SetMenuDefaultItem32(HMENU32,UINT32,UINT32);
5082 #define SetMenuDefaultItem WINELIB_NAME(SetMenuDefaultItem)
5083 BOOL32 WINAPI SetMenuItemInfo32A(HMENU32,UINT32,BOOL32,const MENUITEMINFO32A*);
5084 BOOL32 WINAPI SetMenuItemInfo32W(HMENU32,UINT32,BOOL32,const MENUITEMINFO32W*);
5085 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
5086 BOOL32 WINAPI SetPriorityClass(HANDLE32,DWORD);
5087 BOOL32 WINAPI SetStdHandle(DWORD,HANDLE32);
5088 BOOL32 WINAPI SetSystemPowerState(BOOL32,BOOL32);
5089 BOOL32 WINAPI SetSystemTime(const SYSTEMTIME*);
5090 BOOL32 WINAPI SetThreadPriority(HANDLE32,INT32);
5091 BOOL32 WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
5092 BOOL32 WINAPI SetWindowContextHelpId(HWND32,DWORD);
5093 VOID WINAPI Sleep(DWORD);
5094 DWORD WINAPI SleepEx(DWORD,BOOL32);
5095 BOOL32 WINAPI StartService32A(HANDLE32,DWORD,LPCSTR*);
5096 BOOL32 WINAPI StartService32W(HANDLE32,DWORD,LPCWSTR*);
5097 #define StartService WINELIB_NAME_AW(StartService)
5098 DWORD WINAPI SuspendThread(HANDLE32);
5099 BOOL32 WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
5100 WORD WINAPI TileWindows (HWND32, UINT32, const LPRECT32,
5101 UINT32, const HWND32 *);
5102 BOOL32 WINAPI TrackPopupMenuEx(HMENU32,UINT32,INT32,INT32,HWND32,
5103 LPTPMPARAMS);
5104 DWORD WINAPI TlsAlloc(void);
5105 BOOL32 WINAPI TlsFree(DWORD);
5106 LPVOID WINAPI TlsGetValue(DWORD);
5107 BOOL32 WINAPI TlsSetValue(DWORD,LPVOID);
5108 VOID WINAPI UnMapLS(SEGPTR);
5109 BOOL32 WINAPI UnlockFile(HFILE32,DWORD,DWORD,DWORD,DWORD);
5110 BOOL32 WINAPI UnmapViewOfFile(LPVOID);
5111 UINT32 WINAPI UnpackDDElParam(UINT32,UINT32,UINT32*,UINT32*);
5112 LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
5113 BOOL32 WINAPI VirtualFree(LPVOID,DWORD,DWORD);
5114 BOOL32 WINAPI VirtualLock(LPVOID,DWORD);
5115 BOOL32 WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
5116 BOOL32 WINAPI VirtualProtectEx(HANDLE32,LPVOID,DWORD,DWORD,LPDWORD);
5117 DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
5118 DWORD WINAPI VirtualQueryEx(HANDLE32,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
5119 BOOL32 WINAPI VirtualUnlock(LPVOID,DWORD);
5120 BOOL32 WINAPI WaitCommEvent(HANDLE32,LPDWORD,LPOVERLAPPED);
5121 BOOL32 WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
5122 DWORD WINAPI WaitForInputIdle(HANDLE32,DWORD);
5123 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE32*,BOOL32,DWORD);
5124 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE32*,BOOL32,DWORD,BOOL32);
5125 DWORD WINAPI WaitForSingleObject(HANDLE32,DWORD);
5126 DWORD WINAPI WaitForSingleObjectEx(HANDLE32,DWORD,BOOL32);
5127 UINT32 WINAPI WNetAddConnection2_32A(LPNETRESOURCE32A,LPCSTR,LPCSTR,DWORD);
5128 UINT32 WINAPI WNetAddConnection2_32W(LPNETRESOURCE32W,LPCWSTR,LPCWSTR,DWORD);
5129 #define WNetAddConnection2 WINELIB_NAME_AW(WNetAddConnection2_)
5130 UINT32 WINAPI WNetAddConnection3_32A(HWND32,LPNETRESOURCE32A,LPCSTR,LPCSTR,DWORD);
5131 UINT32 WINAPI WNetAddConnection3_32W(HWND32,LPNETRESOURCE32W,LPCWSTR,LPCWSTR,DWORD);
5132 #define WNetAddConnection3 WINELIB_NAME_AW(WNetAddConnection3_)
5133 UINT32 WINAPI WNetConnectionDialog1_32(HWND32,DWORD);
5134 UINT32 WINAPI WNetConnectionDialog1_32A(LPCONNECTDLGSTRUCT32A);
5135 UINT32 WINAPI WNetConnectionDialog1_32W(LPCONNECTDLGSTRUCT32W);
5136 #define WNetConnectionDialog1 WINELIB_NAME_AW(WNetConnectionDialog1_)
5137 UINT32 WINAPI MultinetGetErrorText32A(DWORD,DWORD,DWORD);
5138 UINT32 WINAPI MultinetGetErrorText32W(DWORD,DWORD,DWORD);
5139 #define MultinetGetErrorText WINELIB_NAME_AW(MultinetGetErrorText_)
5140 SEGPTR WINAPI WOWGlobalAllocLock16(DWORD,DWORD,HGLOBAL16*);
5141 DWORD WINAPI WOWCallback16(FARPROC16,DWORD);
5142 BOOL32 WINAPI WOWCallback16Ex(FARPROC16,DWORD,DWORD,LPVOID,LPDWORD);
5143 HANDLE32 WINAPI WOWHandle32(WORD,WOW_HANDLE_TYPE);
5144 WORD WINAPI WOWHandle16(HANDLE32,WOW_HANDLE_TYPE);
5145 BOOL32 WINAPI WriteConsole32A(HANDLE32,LPCVOID,DWORD,LPDWORD,LPVOID);
5146 BOOL32 WINAPI WriteConsole32W(HANDLE32,LPCVOID,DWORD,LPDWORD,LPVOID);
5147 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
5148 BOOL32 WINAPI WriteFile(HANDLE32,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
5149 VOID WINAPI ZeroMemory(LPVOID,UINT32);
5150 #define ZeroMemory RtlZeroMemory
5151 VOID WINAPI keybd_event(BYTE,BYTE,DWORD,DWORD);
5152 VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,DWORD);
5154 /* Declarations for functions that are the same in Win16 and Win32 */
5156 VOID WINAPI CloseSound(VOID);
5157 VOID WINAPI EndMenu(void);
5158 DWORD WINAPI GetDialogBaseUnits(void);
5159 VOID WINAPI GetKeyboardState(LPBYTE);
5160 DWORD WINAPI GetLastError(void);
5161 DWORD WINAPI GetMenuCheckMarkDimensions(void);
5162 LONG WINAPI GetMessageExtraInfo(void);
5163 DWORD WINAPI GetMessagePos(void);
5164 LONG WINAPI GetMessageTime(void);
5165 LANGID WINAPI GetSystemDefaultLangID(void);
5166 LCID WINAPI GetSystemDefaultLCID(void);
5167 DWORD WINAPI GetTickCount(void);
5168 LANGID WINAPI GetUserDefaultLangID(void);
5169 LCID WINAPI GetUserDefaultLCID(void);
5170 ATOM WINAPI GlobalDeleteAtom(ATOM);
5171 VOID WINAPI LZDone(void);
5172 VOID WINAPI ScreenSwitchEnable(WORD);
5173 DWORD WINAPI OemKeyScan(WORD);
5174 DWORD WINAPI RegCloseKey(HKEY);
5175 DWORD WINAPI RegFlushKey(HKEY);
5176 VOID WINAPI ReleaseCapture(void);
5177 VOID WINAPI SetKeyboardState(LPBYTE);
5178 VOID WINAPI SetLastError(DWORD);
5179 VOID WINAPI WaitMessage(VOID);
5182 /* Declarations for functions that change between Win16 and Win32 */
5184 LRESULT WINAPI AboutDlgProc16(HWND16,UINT16,WPARAM16,LPARAM);
5185 LRESULT WINAPI AboutDlgProc32(HWND32,UINT32,WPARAM32,LPARAM);
5186 #define AboutDlgProc WINELIB_NAME(AboutDlgProc)
5187 INT16 WINAPI AccessResource16(HINSTANCE16,HRSRC16);
5188 INT32 WINAPI AccessResource32(HMODULE32,HRSRC32);
5189 #define AccessResource WINELIB_NAME(AccessResource)
5190 ATOM WINAPI AddAtom16(SEGPTR);
5191 ATOM WINAPI AddAtom32A(LPCSTR);
5192 ATOM WINAPI AddAtom32W(LPCWSTR);
5193 #define AddAtom WINELIB_NAME_AW(AddAtom)
5194 BOOL16 WINAPI AdjustWindowRect16(LPRECT16,DWORD,BOOL16);
5195 BOOL32 WINAPI AdjustWindowRect32(LPRECT32,DWORD,BOOL32);
5196 #define AdjustWindowRect WINELIB_NAME(AdjustWindowRect)
5197 BOOL16 WINAPI AdjustWindowRectEx16(LPRECT16,DWORD,BOOL16,DWORD);
5198 BOOL32 WINAPI AdjustWindowRectEx32(LPRECT32,DWORD,BOOL32,DWORD);
5199 #define AdjustWindowRectEx WINELIB_NAME(AdjustWindowRectEx)
5200 SEGPTR WINAPI AnsiLower16(SEGPTR);
5201 #define AnsiLower32A CharLower32A
5202 #define AnsiLower32W CharLower32W
5203 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
5204 UINT16 WINAPI AnsiLowerBuff16(LPSTR,UINT16);
5205 #define AnsiLowerBuff32A CharLowerBuff32A
5206 #define AnsiLowerBuff32W CharLowerBuff32W
5207 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
5208 SEGPTR WINAPI AnsiNext16(SEGPTR);
5209 #define AnsiNext32A CharNext32A
5210 #define AnsiNext32W CharNext32W
5211 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
5212 SEGPTR WINAPI AnsiPrev16(SEGPTR,SEGPTR);
5213 #define AnsiPrev32A CharPrev32A
5214 #define AnsiPrev32W CharPrev32W
5215 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
5216 INT16 WINAPI AnsiToOem16(LPCSTR,LPSTR);
5217 #define AnsiToOem32A CharToOem32A
5218 #define AnsiToOem32W CharToOem32W
5219 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
5220 VOID WINAPI AnsiToOemBuff16(LPCSTR,LPSTR,UINT16);
5221 #define AnsiToOemBuff32A CharToOemBuff32A
5222 #define AnsiToOemBuff32W CharToOemBuff32W
5223 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
5224 SEGPTR WINAPI AnsiUpper16(SEGPTR);
5225 #define AnsiUpper32A CharUpper32A
5226 #define AnsiUpper32W CharUpper32W
5227 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
5228 UINT16 WINAPI AnsiUpperBuff16(LPSTR,UINT16);
5229 #define AnsiUpperBuff32A CharUpperBuff32A
5230 #define AnsiUpperBuff32W CharUpperBuff32W
5231 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
5232 BOOL16 WINAPI AnyPopup16(void);
5233 BOOL32 WINAPI AnyPopup32(void);
5234 #define AnyPopup WINELIB_NAME(AnyPopup)
5235 BOOL16 WINAPI AppendMenu16(HMENU16,UINT16,UINT16,SEGPTR);
5236 BOOL32 WINAPI AppendMenu32A(HMENU32,UINT32,UINT32,LPCSTR);
5237 BOOL32 WINAPI AppendMenu32W(HMENU32,UINT32,UINT32,LPCWSTR);
5238 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
5239 UINT16 WINAPI ArrangeIconicWindows16(HWND16);
5240 UINT32 WINAPI ArrangeIconicWindows32(HWND32);
5241 #define ArrangeIconicWindows WINELIB_NAME(ArrangeIconicWindows)
5242 HDWP16 WINAPI BeginDeferWindowPos16(INT16);
5243 HDWP32 WINAPI BeginDeferWindowPos32(INT32);
5244 #define BeginDeferWindowPos WINELIB_NAME(BeginDeferWindowPos)
5245 BOOL16 WINAPI BringWindowToTop16(HWND16);
5246 BOOL32 WINAPI BringWindowToTop32(HWND32);
5247 #define BringWindowToTop WINELIB_NAME(BringWindowToTop)
5248 BOOL16 WINAPI BuildCommDCB16(LPCSTR,LPDCB16);
5249 BOOL32 WINAPI BuildCommDCB32A(LPCSTR,LPDCB32);
5250 BOOL32 WINAPI BuildCommDCB32W(LPCWSTR,LPDCB32);
5251 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
5252 BOOL32 WINAPI BuildCommDCBAndTimeouts32A(LPCSTR,LPDCB32,LPCOMMTIMEOUTS);
5253 BOOL32 WINAPI BuildCommDCBAndTimeouts32W(LPCWSTR,LPDCB32,LPCOMMTIMEOUTS);
5254 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
5255 BOOL16 WINAPI CallMsgFilter16(SEGPTR,INT16);
5256 BOOL32 WINAPI CallMsgFilter32A(LPMSG32,INT32);
5257 BOOL32 WINAPI CallMsgFilter32W(LPMSG32,INT32);
5258 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
5259 LRESULT WINAPI CallNextHookEx16(HHOOK,INT16,WPARAM16,LPARAM);
5260 LRESULT WINAPI CallNextHookEx32(HHOOK,INT32,WPARAM32,LPARAM);
5261 #define CallNextHookEx WINELIB_NAME(CallNextHookEx)
5262 LRESULT WINAPI CallWindowProc16(WNDPROC16,HWND16,UINT16,WPARAM16,LPARAM);
5263 LRESULT WINAPI CallWindowProc32A(WNDPROC32,HWND32,UINT32,WPARAM32,LPARAM);
5264 LRESULT WINAPI CallWindowProc32W(WNDPROC32,HWND32,UINT32,WPARAM32,LPARAM);
5265 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
5266 BOOL16 WINAPI ChangeClipboardChain16(HWND16,HWND16);
5267 BOOL32 WINAPI ChangeClipboardChain32(HWND32,HWND32);
5268 #define ChangeClipboardChain WINELIB_NAME(ChangeClipboardChain)
5269 BOOL16 WINAPI ChangeMenu16(HMENU16,UINT16,SEGPTR,UINT16,UINT16);
5270 BOOL32 WINAPI ChangeMenu32A(HMENU32,UINT32,LPCSTR,UINT32,UINT32);
5271 BOOL32 WINAPI ChangeMenu32W(HMENU32,UINT32,LPCWSTR,UINT32,UINT32);
5272 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
5273 LPSTR WINAPI CharLower32A(LPSTR);
5274 LPWSTR WINAPI CharLower32W(LPWSTR);
5275 #define CharLower WINELIB_NAME_AW(CharLower)
5276 DWORD WINAPI CharLowerBuff32A(LPSTR,DWORD);
5277 DWORD WINAPI CharLowerBuff32W(LPWSTR,DWORD);
5278 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
5279 LPSTR WINAPI CharNext32A(LPCSTR);
5280 LPWSTR WINAPI CharNext32W(LPCWSTR);
5281 #define CharNext WINELIB_NAME_AW(CharNext)
5282 LPSTR WINAPI CharNextEx32A(WORD,LPCSTR,DWORD);
5283 LPWSTR WINAPI CharNextEx32W(WORD,LPCWSTR,DWORD);
5284 #define CharNextEx WINELIB_NAME_AW(CharNextEx)
5285 LPSTR WINAPI CharPrev32A(LPCSTR,LPCSTR);
5286 LPWSTR WINAPI CharPrev32W(LPCWSTR,LPCWSTR);
5287 #define CharPrev WINELIB_NAME_AW(CharPrev)
5288 LPSTR WINAPI CharPrevEx32A(WORD,LPCSTR,LPCSTR,DWORD);
5289 LPWSTR WINAPI CharPrevEx32W(WORD,LPCWSTR,LPCWSTR,DWORD);
5290 #define CharPrevEx WINELIB_NAME_AW(CharPrevEx)
5291 LPSTR WINAPI CharUpper32A(LPSTR);
5292 LPWSTR WINAPI CharUpper32W(LPWSTR);
5293 #define CharUpper WINELIB_NAME_AW(CharUpper)
5294 DWORD WINAPI CharUpperBuff32A(LPSTR,DWORD);
5295 DWORD WINAPI CharUpperBuff32W(LPWSTR,DWORD);
5296 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
5297 BOOL32 WINAPI CharToOem32A(LPCSTR,LPSTR);
5298 BOOL32 WINAPI CharToOem32W(LPCWSTR,LPSTR);
5299 #define CharToOem WINELIB_NAME_AW(CharToOem)
5300 BOOL32 WINAPI CharToOemBuff32A(LPCSTR,LPSTR,DWORD);
5301 BOOL32 WINAPI CharToOemBuff32W(LPCWSTR,LPSTR,DWORD);
5302 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
5303 BOOL16 WINAPI CheckDlgButton16(HWND16,INT16,UINT16);
5304 BOOL32 WINAPI CheckDlgButton32(HWND32,INT32,UINT32);
5305 #define CheckDlgButton WINELIB_NAME(CheckDlgButton)
5306 BOOL16 WINAPI CheckMenuItem16(HMENU16,UINT16,UINT16);
5307 DWORD WINAPI CheckMenuItem32(HMENU32,UINT32,UINT32);
5308 #define CheckMenuItem WINELIB_NAME(CheckMenuItem)
5309 BOOL16 WINAPI CheckMenuRadioButton16(HMENU16,UINT16,UINT16,UINT16,BOOL16);
5310 BOOL32 WINAPI CheckMenuRadioButton32(HMENU32,UINT32,UINT32,UINT32,BOOL32);
5311 #define CheckMenuRadioButton WINELIB_NAME(CheckMenuRadioButton)
5312 BOOL16 WINAPI CheckMenuRadioItem16(HMENU16,UINT16,UINT16,UINT16,UINT16);
5313 BOOL32 WINAPI CheckMenuRadioItem32(HMENU32,UINT32,UINT32,UINT32,UINT32);
5314 #define CheckMenuRadioItem WINELIB_NAME(CheckMenuRadioItem)
5315 BOOL16 WINAPI CheckRadioButton16(HWND16,UINT16,UINT16,UINT16);
5316 BOOL32 WINAPI CheckRadioButton32(HWND32,UINT32,UINT32,UINT32);
5317 #define CheckRadioButton WINELIB_NAME(CheckRadioButton)
5318 HWND16 WINAPI ChildWindowFromPoint16(HWND16,POINT16);
5319 HWND32 WINAPI ChildWindowFromPoint32(HWND32,POINT32);
5320 #define ChildWindowFromPoint WINELIB_NAME(ChildWindowFromPoint)
5321 HWND16 WINAPI ChildWindowFromPointEx16(HWND16,POINT16,UINT16);
5322 HWND32 WINAPI ChildWindowFromPointEx32(HWND32,POINT32,UINT32);
5323 #define ChildWindowFromPointEx WINELIB_NAME(ChildWindowFromPointEx)
5324 INT16 WINAPI ClearCommBreak16(INT16);
5325 BOOL32 WINAPI ClearCommBreak32(INT32);
5326 #define ClearCommBreak WINELIB_NAME(ClearCommBreak)
5327 VOID WINAPI ClientToScreen16(HWND16,LPPOINT16);
5328 BOOL32 WINAPI ClientToScreen32(HWND32,LPPOINT32);
5329 #define ClientToScreen WINELIB_NAME(ClientToScreen)
5330 BOOL16 WINAPI ClipCursor16(const RECT16*);
5331 BOOL32 WINAPI ClipCursor32(const RECT32*);
5332 #define ClipCursor WINELIB_NAME(ClipCursor)
5333 BOOL16 WINAPI CloseClipboard16(void);
5334 BOOL32 WINAPI CloseClipboard32(void);
5335 #define CloseClipboard WINELIB_NAME(CloseClipboard)
5336 BOOL16 WINAPI CloseWindow16(HWND16);
5337 BOOL32 WINAPI CloseWindow32(HWND32);
5338 #define CloseWindow WINELIB_NAME(CloseWindow)
5339 UINT16 WINAPI CompareString16(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
5340 UINT32 WINAPI CompareString32A(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
5341 UINT32 WINAPI CompareString32W(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
5342 #define CompareString WINELIB_NAME_AW(CompareString)
5343 HCURSOR16 WINAPI CopyCursor16(HINSTANCE16,HCURSOR16);
5344 #define CopyCursor32(cur) ((HCURSOR32)CopyIcon32((HICON32)(cur)))
5345 #define CopyCursor WINELIB_NAME(CopyCursor)
5346 HICON16 WINAPI CopyIcon16(HINSTANCE16,HICON16);
5347 HICON32 WINAPI CopyIcon32(HICON32);
5348 #define CopyIcon WINELIB_NAME(CopyIcon)
5349 HICON16 WINAPI CopyImage16(HANDLE16,UINT16,INT16,INT16,UINT16);
5350 HICON32 WINAPI CopyImage32(HANDLE32,UINT32,INT32,INT32,UINT32);
5351 #define CopyImage WINELIB_NAME(CopyImage)
5352 LONG WINAPI CopyLZFile16(HFILE16,HFILE16);
5353 LONG WINAPI CopyLZFile32(HFILE32,HFILE32);
5354 #define CopyLZFile WINELIB_NAME(CopyLZFile)
5355 BOOL16 WINAPI CopyRect16(RECT16*,const RECT16*);
5356 BOOL32 WINAPI CopyRect32(RECT32*,const RECT32*);
5357 #define CopyRect WINELIB_NAME(CopyRect)
5358 INT16 WINAPI CountClipboardFormats16(void);
5359 INT32 WINAPI CountClipboardFormats32(void);
5360 #define CountClipboardFormats WINELIB_NAME(CountClipboardFormats)
5361 INT16 WINAPI CountVoiceNotes16(INT16);
5362 DWORD WINAPI CountVoiceNotes32(DWORD);
5363 #define CountVoiceNotes WINELIB_NAME(CountVoiceNotes)
5364 VOID WINAPI CreateCaret16(HWND16,HBITMAP16,INT16,INT16);
5365 BOOL32 WINAPI CreateCaret32(HWND32,HBITMAP32,INT32,INT32);
5366 #define CreateCaret WINELIB_NAME(CreateCaret)
5367 HCURSOR16 WINAPI CreateCursor16(HINSTANCE16,INT16,INT16,INT16,INT16,LPCVOID,LPCVOID);
5368 HCURSOR32 WINAPI CreateCursor32(HINSTANCE32,INT32,INT32,INT32,INT32,LPCVOID,LPCVOID);
5369 #define CreateCursor WINELIB_NAME(CreateCursor)
5370 HWND16 WINAPI CreateDialog16(HINSTANCE16,SEGPTR,HWND16,DLGPROC16);
5371 #define CreateDialog32A(inst,ptr,hwnd,dlg) \
5372 CreateDialogParam32A(inst,ptr,hwnd,dlg,0)
5373 #define CreateDialog32W(inst,ptr,hwnd,dlg) \
5374 CreateDialogParam32W(inst,ptr,hwnd,dlg,0)
5375 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
5376 HWND16 WINAPI CreateDialogIndirect16(HINSTANCE16,LPCVOID,HWND16,DLGPROC16);
5377 #define CreateDialogIndirect32A(inst,ptr,hwnd,dlg) \
5378 CreateDialogIndirectParam32A(inst,ptr,hwnd,dlg,0)
5379 #define CreateDialogIndirect32W(inst,ptr,hwnd,dlg) \
5380 CreateDialogIndirectParam32W(inst,ptr,hwnd,dlg,0)
5381 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
5382 HWND16 WINAPI CreateDialogIndirectParam16(HINSTANCE16,LPCVOID,HWND16,
5383 DLGPROC16,LPARAM);
5384 HWND32 WINAPI CreateDialogIndirectParam32A(HINSTANCE32,LPCVOID,HWND32,
5385 DLGPROC32,LPARAM);
5386 HWND32 WINAPI CreateDialogIndirectParam32W(HINSTANCE32,LPCVOID,HWND32,
5387 DLGPROC32,LPARAM);
5388 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
5389 HWND16 WINAPI CreateDialogParam16(HINSTANCE16,SEGPTR,HWND16,DLGPROC16,LPARAM);
5390 HWND32 WINAPI CreateDialogParam32A(HINSTANCE32,LPCSTR,HWND32,DLGPROC32,LPARAM);
5391 HWND32 WINAPI CreateDialogParam32W(HINSTANCE32,LPCWSTR,HWND32,DLGPROC32,LPARAM);
5392 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
5393 BOOL16 WINAPI CreateDirectory16(LPCSTR,LPVOID);
5394 BOOL32 WINAPI CreateDirectory32A(LPCSTR,LPSECURITY_ATTRIBUTES);
5395 BOOL32 WINAPI CreateDirectory32W(LPCWSTR,LPSECURITY_ATTRIBUTES);
5396 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
5397 BOOL32 WINAPI CreateDirectoryEx32A(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
5398 BOOL32 WINAPI CreateDirectoryEx32W(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
5399 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
5400 HICON16 WINAPI CreateIcon16(HINSTANCE16,INT16,INT16,BYTE,BYTE,LPCVOID,LPCVOID);
5401 HICON32 WINAPI CreateIcon32(HINSTANCE32,INT32,INT32,BYTE,BYTE,LPCVOID,LPCVOID);
5402 #define CreateIcon WINELIB_NAME(CreateIcon)
5403 HICON16 WINAPI CreateIconFromResource16(LPBYTE,UINT16,BOOL16,DWORD);
5404 HICON32 WINAPI CreateIconFromResource32(LPBYTE,UINT32,BOOL32,DWORD);
5405 #define CreateIconFromResource WINELIB_NAME(CreateIconFromResource)
5406 HICON16 WINAPI CreateIconFromResourceEx16(LPBYTE,UINT16,BOOL16,DWORD,INT16,INT16,UINT16);
5407 HICON32 WINAPI CreateIconFromResourceEx32(LPBYTE,UINT32,BOOL32,DWORD,INT32,INT32,UINT32);
5408 #define CreateIconFromResourceEx WINELIB_NAME(CreateIconFromResourceEx)
5409 HMENU16 WINAPI CreateMenu16(void);
5410 HMENU32 WINAPI CreateMenu32(void);
5411 #define CreateMenu WINELIB_NAME(CreateMenu)
5412 HMENU16 WINAPI CreatePopupMenu16(void);
5413 HMENU32 WINAPI CreatePopupMenu32(void);
5414 #define CreatePopupMenu WINELIB_NAME(CreatePopupMenu)
5415 HWND16 WINAPI CreateWindow16(LPCSTR,LPCSTR,DWORD,INT16,INT16,INT16,INT16,
5416 HWND16,HMENU16,HINSTANCE16,LPVOID);
5417 #define CreateWindow32A(className,titleName,style,x,y,width,height,\
5418 parent,menu,instance,param) \
5419 CreateWindowEx32A(0,className,titleName,style,x,y,width,height,\
5420 parent,menu,instance,param)
5421 #define CreateWindow32W(className,titleName,style,x,y,width,height,\
5422 parent,menu,instance,param) \
5423 CreateWindowEx32W(0,className,titleName,style,x,y,width,height,\
5424 parent,menu,instance,param)
5425 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
5426 HWND16 WINAPI CreateWindowEx16(DWORD,LPCSTR,LPCSTR,DWORD,INT16,INT16,
5427 INT16,INT16,HWND16,HMENU16,HINSTANCE16,LPVOID);
5428 HWND32 WINAPI CreateWindowEx32A(DWORD,LPCSTR,LPCSTR,DWORD,INT32,INT32,
5429 INT32,INT32,HWND32,HMENU32,HINSTANCE32,LPVOID);
5430 HWND32 WINAPI CreateWindowEx32W(DWORD,LPCWSTR,LPCWSTR,DWORD,INT32,INT32,
5431 INT32,INT32,HWND32,HMENU32,HINSTANCE32,LPVOID);
5432 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
5433 HWND32 WINAPI CreateMDIWindow32A(LPCSTR,LPCSTR,DWORD,INT32,INT32,
5434 INT32,INT32,HWND32,HINSTANCE32,LPARAM);
5435 HWND32 WINAPI CreateMDIWindow32W(LPCWSTR,LPCWSTR,DWORD,INT32,INT32,
5436 INT32,INT32,HWND32,HINSTANCE32,LPARAM);
5437 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
5438 LRESULT WINAPI DefDlgProc16(HWND16,UINT16,WPARAM16,LPARAM);
5439 LRESULT WINAPI DefDlgProc32A(HWND32,UINT32,WPARAM32,LPARAM);
5440 LRESULT WINAPI DefDlgProc32W(HWND32,UINT32,WPARAM32,LPARAM);
5441 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
5442 HDWP16 WINAPI DeferWindowPos16(HDWP16,HWND16,HWND16,INT16,INT16,INT16,INT16,UINT16);
5443 HDWP32 WINAPI DeferWindowPos32(HDWP32,HWND32,HWND32,INT32,INT32,INT32,INT32,UINT32);
5444 #define DeferWindowPos WINELIB_NAME(DeferWindowPos)
5445 LRESULT WINAPI DefFrameProc16(HWND16,HWND16,UINT16,WPARAM16,LPARAM);
5446 LRESULT WINAPI DefFrameProc32A(HWND32,HWND32,UINT32,WPARAM32,LPARAM);
5447 LRESULT WINAPI DefFrameProc32W(HWND32,HWND32,UINT32,WPARAM32,LPARAM);
5448 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
5449 LRESULT WINAPI DefHookProc16(INT16,WPARAM16,LPARAM,HHOOK*);
5450 #define DefHookProc32(code,wparam,lparam,phhook) \
5451 CallNextHookEx32(*(phhook),code,wparam,lparam)
5452 #define DefHookProc WINELIB_NAME(DefHookProc)
5453 LRESULT WINAPI DefMDIChildProc16(HWND16,UINT16,WPARAM16,LPARAM);
5454 LRESULT WINAPI DefMDIChildProc32A(HWND32,UINT32,WPARAM32,LPARAM);
5455 LRESULT WINAPI DefMDIChildProc32W(HWND32,UINT32,WPARAM32,LPARAM);
5456 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
5457 LRESULT WINAPI DefWindowProc16(HWND16,UINT16,WPARAM16,LPARAM);
5458 LRESULT WINAPI DefWindowProc32A(HWND32,UINT32,WPARAM32,LPARAM);
5459 LRESULT WINAPI DefWindowProc32W(HWND32,UINT32,WPARAM32,LPARAM);
5460 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
5461 BOOL16 WINAPI DefineHandleTable16(WORD);
5462 #define DefineHandleTable32(w) ((w),TRUE)
5463 #define DefineHandleTable WINELIB_NAME(DefineHandleTable)
5464 ATOM WINAPI DeleteAtom16(ATOM);
5465 ATOM WINAPI DeleteAtom32(ATOM);
5466 #define DeleteAtom WINELIB_NAME(DeleteAtom)
5467 BOOL16 WINAPI DeleteFile16(LPCSTR);
5468 BOOL32 WINAPI DeleteFile32A(LPCSTR);
5469 BOOL32 WINAPI DeleteFile32W(LPCWSTR);
5470 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
5471 BOOL16 WINAPI DeleteMenu16(HMENU16,UINT16,UINT16);
5472 BOOL32 WINAPI DeleteMenu32(HMENU32,UINT32,UINT32);
5473 #define DeleteMenu WINELIB_NAME(DeleteMenu)
5474 VOID WINAPI DestroyCaret16(void);
5475 BOOL32 WINAPI DestroyCaret32(void);
5476 #define DestroyCaret WINELIB_NAME(DestroyCaret)
5477 BOOL16 WINAPI DestroyCursor16(HCURSOR16);
5478 BOOL32 WINAPI DestroyCursor32(HCURSOR32);
5479 #define DestroyCursor WINELIB_NAME(DestroyCursor)
5480 BOOL16 WINAPI DestroyIcon16(HICON16);
5481 BOOL32 WINAPI DestroyIcon32(HICON32);
5482 #define DestroyIcon WINELIB_NAME(DestroyIcon)
5483 BOOL16 WINAPI DestroyMenu16(HMENU16);
5484 BOOL32 WINAPI DestroyMenu32(HMENU32);
5485 #define DestroyMenu WINELIB_NAME(DestroyMenu)
5486 BOOL16 WINAPI DestroyWindow16(HWND16);
5487 BOOL32 WINAPI DestroyWindow32(HWND32);
5488 #define DestroyWindow WINELIB_NAME(DestroyWindow)
5489 INT16 WINAPI DialogBox16(HINSTANCE16,SEGPTR,HWND16,DLGPROC16);
5490 #define DialogBox32A(inst,template,owner,func) \
5491 DialogBoxParam32A(inst,template,owner,func,0)
5492 #define DialogBox32W(inst,template,owner,func) \
5493 DialogBoxParam32W(inst,template,owner,func,0)
5494 #define DialogBox WINELIB_NAME_AW(DialogBox)
5495 INT16 WINAPI DialogBoxIndirect16(HINSTANCE16,HANDLE16,HWND16,DLGPROC16);
5496 #define DialogBoxIndirect32A(inst,template,owner,func) \
5497 DialogBoxIndirectParam32A(inst,template,owner,func,0)
5498 #define DialogBoxIndirect32W(inst,template,owner,func) \
5499 DialogBoxIndirectParam32W(inst,template,owner,func,0)
5500 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
5501 INT16 WINAPI DialogBoxIndirectParam16(HINSTANCE16,HANDLE16,HWND16,DLGPROC16,LPARAM);
5502 INT32 WINAPI DialogBoxIndirectParam32A(HINSTANCE32,LPCVOID,HWND32,DLGPROC32,LPARAM);
5503 INT32 WINAPI DialogBoxIndirectParam32W(HINSTANCE32,LPCVOID,HWND32,DLGPROC32,LPARAM);
5504 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
5505 INT16 WINAPI DialogBoxParam16(HINSTANCE16,SEGPTR,HWND16,DLGPROC16,LPARAM);
5506 INT32 WINAPI DialogBoxParam32A(HINSTANCE32,LPCSTR,HWND32,DLGPROC32,LPARAM);
5507 INT32 WINAPI DialogBoxParam32W(HINSTANCE32,LPCWSTR,HWND32,DLGPROC32,LPARAM);
5508 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
5509 LONG WINAPI DispatchMessage16(const MSG16*);
5510 LONG WINAPI DispatchMessage32A(const MSG32*);
5511 LONG WINAPI DispatchMessage32W(const MSG32*);
5512 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
5513 INT16 WINAPI DlgDirList16(HWND16,LPSTR,INT16,INT16,UINT16);
5514 INT32 WINAPI DlgDirList32A(HWND32,LPSTR,INT32,INT32,UINT32);
5515 INT32 WINAPI DlgDirList32W(HWND32,LPWSTR,INT32,INT32,UINT32);
5516 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
5517 INT16 WINAPI DlgDirListComboBox16(HWND16,LPSTR,INT16,INT16,UINT16);
5518 INT32 WINAPI DlgDirListComboBox32A(HWND32,LPSTR,INT32,INT32,UINT32);
5519 INT32 WINAPI DlgDirListComboBox32W(HWND32,LPWSTR,INT32,INT32,UINT32);
5520 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
5521 BOOL16 WINAPI DlgDirSelectComboBoxEx16(HWND16,LPSTR,INT16,INT16);
5522 BOOL32 WINAPI DlgDirSelectComboBoxEx32A(HWND32,LPSTR,INT32,INT32);
5523 BOOL32 WINAPI DlgDirSelectComboBoxEx32W(HWND32,LPWSTR,INT32,INT32);
5524 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
5525 BOOL16 WINAPI DlgDirSelectEx16(HWND16,LPSTR,INT16,INT16);
5526 BOOL32 WINAPI DlgDirSelectEx32A(HWND32,LPSTR,INT32,INT32);
5527 BOOL32 WINAPI DlgDirSelectEx32W(HWND32,LPWSTR,INT32,INT32);
5528 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
5529 BOOL16 WINAPI DragDetect16(HWND16,POINT16);
5530 BOOL32 WINAPI DragDetect32(HWND32,POINT32);
5531 #define DragDetect WINELIB_NAME(DragDetect)
5532 DWORD WINAPI DragObject16(HWND16,HWND16,UINT16,HANDLE16,WORD,HCURSOR16);
5533 DWORD WINAPI DragObject32(HWND32,HWND32,UINT32,DWORD,HCURSOR32);
5534 #define DragObject WINELIB_NAME(DragObject)
5535 BOOL32 WINAPI DrawAnimatedRects32(HWND32,int,const RECT32*,const RECT32*);
5536 #define DrawAnimatedRects WINELIB_NAME(DrawAnimatedRects)
5537 BOOL16 WINAPI DrawCaption16(HWND16,HDC16,const RECT16*,UINT16);
5538 BOOL32 WINAPI DrawCaption32(HWND32,HDC32,const RECT32*,UINT32);
5539 #define DrawCaption WINELIB_NAME(DrawCaption)
5540 BOOL16 WINAPI DrawCaptionTemp16(HWND16,HDC16, const RECT16*,HFONT16,HICON16,LPCSTR,UINT16);
5541 BOOL32 WINAPI DrawCaptionTemp32A(HWND32,HDC32,const RECT32*,HFONT32,HICON32,LPCSTR,UINT32);
5542 BOOL32 WINAPI DrawCaptionTemp32W(HWND32,HDC32,const RECT32*,HFONT32,HICON32,LPCWSTR,UINT32);
5543 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
5544 BOOL16 WINAPI DrawEdge16(HDC16,LPRECT16,UINT16,UINT16);
5545 BOOL32 WINAPI DrawEdge32(HDC32,LPRECT32,UINT32,UINT32);
5546 #define DrawEdge WINELIB_NAME(DrawEdge)
5547 void WINAPI DrawFocusRect16(HDC16,const RECT16*);
5548 void WINAPI DrawFocusRect32(HDC32,const RECT32*);
5549 #define DrawFocusRect WINELIB_NAME(DrawFocusRect)
5550 BOOL16 WINAPI DrawFrameControl16(HDC16,LPRECT16,UINT16,UINT16);
5551 BOOL32 WINAPI DrawFrameControl32(HDC32,LPRECT32,UINT32,UINT32);
5552 #define DrawFrameControl WINELIB_NAME(DrawFrameControl)
5553 BOOL16 WINAPI DrawIcon16(HDC16,INT16,INT16,HICON16);
5554 BOOL32 WINAPI DrawIcon32(HDC32,INT32,INT32,HICON32);
5555 #define DrawIcon WINELIB_NAME(DrawIcon)
5556 BOOL16 WINAPI DrawIconEx16(HDC16,INT16,INT16,HICON16,INT16,INT16,
5557 UINT16,HBRUSH16,UINT16);
5558 BOOL32 WINAPI DrawIconEx32(HDC32,INT32,INT32,HICON32,INT32,INT32,
5559 UINT32,HBRUSH32,UINT32);
5560 #define DrawIconEx WINELIB_NAME(DrawIconEx)
5561 VOID WINAPI DrawMenuBar16(HWND16);
5562 BOOL32 WINAPI DrawMenuBar32(HWND32);
5563 #define DrawMenuBar WINELIB_NAME(DrawMenuBar)
5564 BOOL16 WINAPI DrawState16A(HDC16,HBRUSH16,DRAWSTATEPROC16,LPARAM,WPARAM16,INT16,INT16,INT16,INT16,UINT16);
5565 BOOL32 WINAPI DrawState32A(HDC32,HBRUSH32,DRAWSTATEPROC32,LPARAM,WPARAM32,INT32,INT32,INT32,INT32,UINT32);
5566 BOOL32 WINAPI DrawState32W(HDC32,HBRUSH32,DRAWSTATEPROC32,LPARAM,WPARAM32,INT32,INT32,INT32,INT32,UINT32);
5567 #define DrawState WINELIB_NAME_AW(DrawState)
5568 INT16 WINAPI DrawText16(HDC16,LPCSTR,INT16,LPRECT16,UINT16);
5569 INT32 WINAPI DrawText32A(HDC32,LPCSTR,INT32,LPRECT32,UINT32);
5570 INT32 WINAPI DrawText32W(HDC32,LPCWSTR,INT32,LPRECT32,UINT32);
5571 #define DrawText WINELIB_NAME_AW(DrawText)
5572 BOOL16 WINAPI EmptyClipboard16(void);
5573 BOOL32 WINAPI EmptyClipboard32(void);
5574 #define EmptyClipboard WINELIB_NAME(EmptyClipboard)
5575 UINT16 WINAPI EnableMenuItem16(HMENU16,UINT16,UINT16);
5576 UINT32 WINAPI EnableMenuItem32(HMENU32,UINT32,UINT32);
5577 #define EnableMenuItem WINELIB_NAME(EnableMenuItem)
5578 BOOL16 WINAPI EnableScrollBar16(HWND16,INT16,UINT16);
5579 BOOL32 WINAPI EnableScrollBar32(HWND32,INT32,UINT32);
5580 #define EnableScrollBar WINELIB_NAME(EnableScrollBar)
5581 BOOL16 WINAPI EnableWindow16(HWND16,BOOL16);
5582 BOOL32 WINAPI EnableWindow32(HWND32,BOOL32);
5583 #define EnableWindow WINELIB_NAME(EnableWindow)
5584 BOOL16 WINAPI EndDeferWindowPos16(HDWP16);
5585 BOOL32 WINAPI EndDeferWindowPos32(HDWP32);
5586 #define EndDeferWindowPos WINELIB_NAME(EndDeferWindowPos)
5587 BOOL16 WINAPI EndDialog16(HWND16,INT16);
5588 BOOL32 WINAPI EndDialog32(HWND32,INT32);
5589 #define EndDialog WINELIB_NAME(EndDialog)
5590 BOOL16 WINAPI EnumChildWindows16(HWND16,WNDENUMPROC16,LPARAM);
5591 BOOL32 WINAPI EnumChildWindows32(HWND32,WNDENUMPROC32,LPARAM);
5592 #define EnumChildWindows WINELIB_NAME(EnumChildWindows)
5593 UINT16 WINAPI EnumClipboardFormats16(UINT16);
5594 UINT32 WINAPI EnumClipboardFormats32(UINT32);
5595 #define EnumClipboardFormats WINELIB_NAME(EnumClipboardFormats)
5596 INT16 WINAPI EnumProps16(HWND16,PROPENUMPROC16);
5597 INT32 WINAPI EnumProps32A(HWND32,PROPENUMPROC32A);
5598 INT32 WINAPI EnumProps32W(HWND32,PROPENUMPROC32W);
5599 #define EnumProps WINELIB_NAME_AW(EnumProps)
5600 BOOL16 WINAPI EnumTaskWindows16(HTASK16,WNDENUMPROC16,LPARAM);
5601 #define EnumTaskWindows32(handle,proc,lparam) \
5602 EnumThreadWindows(handle,proc,lparam)
5603 #define EnumTaskWindows WINELIB_NAME(EnumTaskWindows)
5604 BOOL16 WINAPI EnumWindows16(WNDENUMPROC16,LPARAM);
5605 BOOL32 WINAPI EnumWindows32(WNDENUMPROC32,LPARAM);
5606 #define EnumWindows WINELIB_NAME(EnumWindows)
5607 BOOL16 WINAPI EqualRect16(const RECT16*,const RECT16*);
5608 BOOL32 WINAPI EqualRect32(const RECT32*,const RECT32*);
5609 #define EqualRect WINELIB_NAME(EqualRect)
5610 LONG WINAPI EscapeCommFunction16(UINT16,UINT16);
5611 BOOL32 WINAPI EscapeCommFunction32(INT32,UINT32);
5612 #define EscapeCommFunction WINELIB_NAME(EscapeCommFunction)
5613 INT16 WINAPI ExcludeUpdateRgn16(HDC16,HWND16);
5614 INT32 WINAPI ExcludeUpdateRgn32(HDC32,HWND32);
5615 #define ExcludeUpdateRgn WINELIB_NAME(ExcludeUpdateRgn)
5616 BOOL16 WINAPI ExitWindows16(DWORD,UINT16);
5617 #define ExitWindows32(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
5618 #define ExitWindows WINELIB_NAME(ExitWindows)
5619 HICON16 WINAPI ExtractIcon16(HINSTANCE16,LPCSTR,UINT16);
5620 HICON32 WINAPI ExtractIcon32A(HINSTANCE32,LPCSTR,UINT32);
5621 HICON32 WINAPI ExtractIcon32W(HINSTANCE32,LPCWSTR,UINT32);
5622 #define ExtractIcon WINELIB_NAME_AW(ExtractIcon)
5623 HICON16 WINAPI ExtractAssociatedIcon16(HINSTANCE16,LPSTR,LPWORD);
5624 HICON32 WINAPI ExtractAssociatedIcon32A(HINSTANCE32,LPSTR,LPWORD);
5625 HICON32 WINAPI ExtractAssociatedIcon32W(HINSTANCE32,LPWSTR,LPWORD);
5626 #define ExtractAssociatedIcon WINELIB_NAME_AW(ExtractAssociatedIcon)
5627 void WINAPI FatalAppExit16(UINT16,LPCSTR);
5628 void WINAPI FatalAppExit32A(UINT32,LPCSTR);
5629 void WINAPI FatalAppExit32W(UINT32,LPCWSTR);
5630 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
5631 INT16 WINAPI FillRect16(HDC16,const RECT16*,HBRUSH16);
5632 INT32 WINAPI FillRect32(HDC32,const RECT32*,HBRUSH32);
5633 #define FillRect WINELIB_NAME(FillRect)
5634 ATOM WINAPI FindAtom16(SEGPTR);
5635 ATOM WINAPI FindAtom32A(LPCSTR);
5636 ATOM WINAPI FindAtom32W(LPCWSTR);
5637 #define FindAtom WINELIB_NAME_AW(FindAtom)
5638 BOOL16 WINAPI FindClose16(HANDLE16);
5639 BOOL32 WINAPI FindClose32(HANDLE32);
5640 #define FindClose WINELIB_NAME(FindClose)
5641 HINSTANCE16 WINAPI FindExecutable16(LPCSTR,LPCSTR,LPSTR);
5642 HINSTANCE32 WINAPI FindExecutable32A(LPCSTR,LPCSTR,LPSTR);
5643 HINSTANCE32 WINAPI FindExecutable32W(LPCWSTR,LPCWSTR,LPWSTR);
5644 #define FindExecutable WINELIB_NAME_AW(FindExecutable)
5645 HANDLE16 WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATA32A);
5646 HANDLE32 WINAPI FindFirstFile32A(LPCSTR,LPWIN32_FIND_DATA32A);
5647 HANDLE32 WINAPI FindFirstFile32W(LPCWSTR,LPWIN32_FIND_DATA32W);
5648 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
5649 BOOL16 WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATA32A);
5650 BOOL32 WINAPI FindNextFile32A(HANDLE32,LPWIN32_FIND_DATA32A);
5651 BOOL32 WINAPI FindNextFile32W(HANDLE32,LPWIN32_FIND_DATA32W);
5652 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
5653 HRSRC16 WINAPI FindResource16(HINSTANCE16,SEGPTR,SEGPTR);
5654 HRSRC32 WINAPI FindResource32A(HMODULE32,LPCSTR,LPCSTR);
5655 HRSRC32 WINAPI FindResource32W(HMODULE32,LPCWSTR,LPCWSTR);
5656 #define FindResource WINELIB_NAME_AW(FindResource)
5657 HWND16 WINAPI FindWindow16(SEGPTR,LPCSTR);
5658 HWND32 WINAPI FindWindow32A(LPCSTR,LPCSTR);
5659 HWND32 WINAPI FindWindow32W(LPCWSTR,LPCWSTR);
5660 #define FindWindow WINELIB_NAME_AW(FindWindow)
5661 HWND16 WINAPI FindWindowEx16(HWND16,HWND16,SEGPTR,LPCSTR);
5662 HWND32 WINAPI FindWindowEx32A(HWND32,HWND32,LPCSTR,LPCSTR);
5663 HWND32 WINAPI FindWindowEx32W(HWND32,HWND32,LPCWSTR,LPCWSTR);
5664 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
5665 BOOL16 WINAPI FlashWindow16(HWND16,BOOL16);
5666 BOOL32 WINAPI FlashWindow32(HWND32,BOOL32);
5667 #define FlashWindow WINELIB_NAME(FlashWindow)
5668 INT16 WINAPI FrameRect16(HDC16,const RECT16*,HBRUSH16);
5669 INT32 WINAPI FrameRect32(HDC32,const RECT32*,HBRUSH32);
5670 #define FrameRect WINELIB_NAME(FrameRect)
5671 VOID WINAPI FreeLibrary16(HINSTANCE16);
5672 BOOL32 WINAPI FreeLibrary32(HMODULE32);
5673 #define FreeLibrary WINELIB_NAME(FreeLibrary)
5674 BOOL16 WINAPI FreeModule16(HMODULE16);
5675 #define FreeModule32(handle) FreeLibrary32(handle)
5676 #define FreeModule WINELIB_NAME(FreeModule)
5677 void WINAPI FreeProcInstance16(FARPROC16);
5678 #define FreeProcInstance32(proc) /*nothing*/
5679 #define FreeProcInstance WINELIB_NAME(FreeProcInstance)
5680 BOOL16 WINAPI FreeResource16(HGLOBAL16);
5681 BOOL32 WINAPI FreeResource32(HGLOBAL32);
5682 #define FreeResource WINELIB_NAME(FreeResource)
5683 HWND16 WINAPI GetActiveWindow16(void);
5684 HWND32 WINAPI GetActiveWindow32(void);
5685 #define GetActiveWindow WINELIB_NAME(GetActiveWindow)
5686 DWORD WINAPI GetAppCompatFlags16(HTASK16);
5687 DWORD WINAPI GetAppCompatFlags32(HTASK32);
5688 #define GetAppCompatFlags WINELIB_NAME(GetAppCompatFlags)
5689 WORD WINAPI GetAsyncKeyState16(INT16);
5690 WORD WINAPI GetAsyncKeyState32(INT32);
5691 #define GetAsyncKeyState WINELIB_NAME(GetAsyncKeyState)
5692 UINT16 WINAPI GetAtomName16(ATOM,LPSTR,INT16);
5693 UINT32 WINAPI GetAtomName32A(ATOM,LPSTR,INT32);
5694 UINT32 WINAPI GetAtomName32W(ATOM,LPWSTR,INT32);
5695 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
5696 HWND16 WINAPI GetCapture16(void);
5697 HWND32 WINAPI GetCapture32(void);
5698 #define GetCapture WINELIB_NAME(GetCapture)
5699 UINT16 WINAPI GetCaretBlinkTime16(void);
5700 UINT32 WINAPI GetCaretBlinkTime32(void);
5701 #define GetCaretBlinkTime WINELIB_NAME(GetCaretBlinkTime)
5702 VOID WINAPI GetCaretPos16(LPPOINT16);
5703 BOOL32 WINAPI GetCaretPos32(LPPOINT32);
5704 #define GetCaretPos WINELIB_NAME(GetCaretPos)
5705 BOOL16 WINAPI GetClassInfo16(HINSTANCE16,SEGPTR,WNDCLASS16 *);
5706 BOOL32 WINAPI GetClassInfo32A(HINSTANCE32,LPCSTR,WNDCLASS32A *);
5707 BOOL32 WINAPI GetClassInfo32W(HINSTANCE32,LPCWSTR,WNDCLASS32W *);
5708 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
5709 BOOL16 WINAPI GetClassInfoEx16(HINSTANCE16,SEGPTR,WNDCLASSEX16 *);
5710 BOOL32 WINAPI GetClassInfoEx32A(HINSTANCE32,LPCSTR,WNDCLASSEX32A *);
5711 BOOL32 WINAPI GetClassInfoEx32W(HINSTANCE32,LPCWSTR,WNDCLASSEX32W *);
5712 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
5713 LONG WINAPI GetClassLong16(HWND16,INT16);
5714 LONG WINAPI GetClassLong32A(HWND32,INT32);
5715 LONG WINAPI GetClassLong32W(HWND32,INT32);
5716 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
5717 INT16 WINAPI GetClassName16(HWND16,LPSTR,INT16);
5718 INT32 WINAPI GetClassName32A(HWND32,LPSTR,INT32);
5719 INT32 WINAPI GetClassName32W(HWND32,LPWSTR,INT32);
5720 #define GetClassName WINELIB_NAME_AW(GetClassName)
5721 WORD WINAPI GetClassWord16(HWND16,INT16);
5722 WORD WINAPI GetClassWord32(HWND32,INT32);
5723 #define GetClassWord WINELIB_NAME(GetClassWord)
5724 void WINAPI GetClientRect16(HWND16,LPRECT16);
5725 void WINAPI GetClientRect32(HWND32,LPRECT32);
5726 #define GetClientRect WINELIB_NAME(GetClientRect)
5727 HANDLE16 WINAPI GetClipboardData16(UINT16);
5728 HANDLE32 WINAPI GetClipboardData32(UINT32);
5729 #define GetClipboardData WINELIB_NAME(GetClipboardData)
5730 INT16 WINAPI GetClipboardFormatName16(UINT16,LPSTR,INT16);
5731 INT32 WINAPI GetClipboardFormatName32A(UINT32,LPSTR,INT32);
5732 INT32 WINAPI GetClipboardFormatName32W(UINT32,LPWSTR,INT32);
5733 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
5734 HWND16 WINAPI GetClipboardOwner16(void);
5735 HWND32 WINAPI GetClipboardOwner32(void);
5736 #define GetClipboardOwner WINELIB_NAME(GetClipboardOwner)
5737 HWND16 WINAPI GetClipboardViewer16(void);
5738 HWND32 WINAPI GetClipboardViewer32(void);
5739 #define GetClipboardViewer WINELIB_NAME(GetClipboardViewer)
5740 void WINAPI GetClipCursor16(LPRECT16);
5741 void WINAPI GetClipCursor32(LPRECT32);
5742 #define GetClipCursor WINELIB_NAME(GetClipCursor)
5743 INT16 WINAPI GetCommState16(INT16,LPDCB16);
5744 BOOL32 WINAPI GetCommState32(INT32,LPDCB32);
5745 #define GetCommState WINELIB_NAME(GetCommState)
5746 UINT16 WINAPI GetCurrentDirectory16(UINT16,LPSTR);
5747 UINT32 WINAPI GetCurrentDirectory32A(UINT32,LPSTR);
5748 UINT32 WINAPI GetCurrentDirectory32W(UINT32,LPWSTR);
5749 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
5750 DWORD WINAPI GetCurrentTime16(void);
5751 #define GetCurrentTime32() GetTickCount()
5752 #define GetCurrentTime WINELIB_NAME(GetCurrentTime)
5753 HCURSOR16 WINAPI GetCursor16(void);
5754 HCURSOR32 WINAPI GetCursor32(void);
5755 #define GetCursor WINELIB_NAME(GetCursor)
5756 void WINAPI GetCursorPos16(LPPOINT16);
5757 void WINAPI GetCursorPos32(LPPOINT32);
5758 #define GetCursorPos WINELIB_NAME(GetCursorPos)
5759 HDC16 WINAPI GetDC16(HWND16);
5760 HDC32 WINAPI GetDC32(HWND32);
5761 #define GetDC WINELIB_NAME(GetDC)
5762 HDC16 WINAPI GetDCEx16(HWND16,HRGN16,DWORD);
5763 HDC32 WINAPI GetDCEx32(HWND32,HRGN32,DWORD);
5764 #define GetDCEx WINELIB_NAME(GetDCEx)
5765 HWND16 WINAPI GetDesktopWindow16(void);
5766 HWND32 WINAPI GetDesktopWindow32(void);
5767 #define GetDesktopWindow WINELIB_NAME(GetDesktopWindow)
5768 BOOL16 WINAPI GetDiskFreeSpace16(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
5769 BOOL32 WINAPI GetDiskFreeSpace32A(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
5770 BOOL32 WINAPI GetDiskFreeSpace32W(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
5771 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
5772 BOOL32 WINAPI GetDiskFreeSpaceEx32A(LPCSTR,LPULARGE_INTEGER,LPULARGE_INTEGER,LPULARGE_INTEGER);
5773 BOOL32 WINAPI GetDiskFreeSpaceEx32W(LPCWSTR,LPULARGE_INTEGER,LPULARGE_INTEGER,LPULARGE_INTEGER);
5774 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
5775 INT16 WINAPI GetDlgCtrlID16(HWND16);
5776 INT32 WINAPI GetDlgCtrlID32(HWND32);
5777 #define GetDlgCtrlID WINELIB_NAME(GetDlgCtrlID)
5778 HWND16 WINAPI GetDlgItem16(HWND16,INT16);
5779 HWND32 WINAPI GetDlgItem32(HWND32,INT32);
5780 #define GetDlgItem WINELIB_NAME(GetDlgItem)
5781 UINT16 WINAPI GetDlgItemInt16(HWND16,INT16,BOOL16*,BOOL16);
5782 UINT32 WINAPI GetDlgItemInt32(HWND32,INT32,BOOL32*,BOOL32);
5783 #define GetDlgItemInt WINELIB_NAME(GetDlgItemInt)
5784 INT16 WINAPI GetDlgItemText16(HWND16,INT16,SEGPTR,UINT16);
5785 INT32 WINAPI GetDlgItemText32A(HWND32,INT32,LPSTR,UINT32);
5786 INT32 WINAPI GetDlgItemText32W(HWND32,INT32,LPWSTR,UINT32);
5787 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
5788 UINT16 WINAPI GetDoubleClickTime16(void);
5789 UINT32 WINAPI GetDoubleClickTime32(void);
5790 #define GetDoubleClickTime WINELIB_NAME(GetDoubleClickTime)
5791 UINT16 WINAPI GetDriveType16(UINT16); /* yes, the arguments differ */
5792 UINT32 WINAPI GetDriveType32A(LPCSTR);
5793 UINT32 WINAPI GetDriveType32W(LPCWSTR);
5794 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
5795 INT16 WINAPI GetExpandedName16(LPCSTR,LPSTR);
5796 INT32 WINAPI GetExpandedName32A(LPCSTR,LPSTR);
5797 INT32 WINAPI GetExpandedName32W(LPCWSTR,LPWSTR);
5798 #define GetExpandedName WINELIB_NAME_AW(GetExpandedName)
5799 DWORD WINAPI GetFileAttributes16(LPCSTR);
5800 DWORD WINAPI GetFileAttributes32A(LPCSTR);
5801 DWORD WINAPI GetFileAttributes32W(LPCWSTR);
5802 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
5803 DWORD WINAPI GetFileVersionInfoSize16(LPCSTR,LPDWORD);
5804 DWORD WINAPI GetFileVersionInfoSize32A(LPCSTR,LPDWORD);
5805 DWORD WINAPI GetFileVersionInfoSize32W(LPCWSTR,LPDWORD);
5806 #define GetFileVersionInfoSize WINELIB_NAME_AW(GetFileVersionInfoSize)
5807 DWORD WINAPI GetFileVersionInfo16(LPCSTR,DWORD,DWORD,LPVOID);
5808 DWORD WINAPI GetFileVersionInfo32A(LPCSTR,DWORD,DWORD,LPVOID);
5809 DWORD WINAPI GetFileVersionInfo32W(LPCWSTR,DWORD,DWORD,LPVOID);
5810 #define GetFileVersionInfo WINELIB_NAME_AW(GetFileVersionInfo)
5811 HWND16 WINAPI GetFocus16(void);
5812 HWND32 WINAPI GetFocus32(void);
5813 #define GetFocus WINELIB_NAME(GetFocus)
5814 HWND16 WINAPI GetForegroundWindow16(void);
5815 HWND32 WINAPI GetForegroundWindow32(void);
5816 #define GetForegroundWindow WINELIB_NAME(GetForegroundWindow)
5817 DWORD WINAPI GetFreeSpace16(UINT16);
5818 #define GetFreeSpace32(w) (0x100000L)
5819 #define GetFreeSpace WINELIB_NAME(GetFreeSpace)
5820 BOOL16 WINAPI GetInputState16(void);
5821 BOOL32 WINAPI GetInputState32(void);
5822 #define GetInputState WINELIB_NAME(GetInputState)
5823 UINT16 WINAPI GetInternalWindowPos16(HWND16,LPRECT16,LPPOINT16);
5824 UINT32 WINAPI GetInternalWindowPos32(HWND32,LPRECT32,LPPOINT32);
5825 #define GetInternalWindowPos WINELIB_NAME(GetInternalWindowPos)
5826 INT16 WINAPI GetKBCodePage16(void);
5827 UINT32 WINAPI GetKBCodePage32(void);
5828 #define GetKBCodePage WINELIB_NAME(GetKBCodePage)
5829 INT16 WINAPI GetKeyboardType16(INT16);
5830 INT32 WINAPI GetKeyboardType32(INT32);
5831 #define GetKeyboardType WINELIB_NAME(GetKeyboardType)
5832 INT16 WINAPI GetKeyNameText16(LONG,LPSTR,INT16);
5833 INT32 WINAPI GetKeyNameText32A(LONG,LPSTR,INT32);
5834 INT32 WINAPI GetKeyNameText32W(LONG,LPWSTR,INT32);
5835 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
5836 INT16 WINAPI GetKeyboardLayoutName16(LPSTR);
5837 INT32 WINAPI GetKeyboardLayoutName32A(LPSTR);
5838 INT32 WINAPI GetKeyboardLayoutName32W(LPWSTR);
5839 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
5840 INT16 WINAPI GetKeyState16(INT16);
5841 INT16 WINAPI GetKeyState32(INT32);
5842 #define GetKeyState WINELIB_NAME(GetKeyState)
5843 HWND16 WINAPI GetLastActivePopup16(HWND16);
5844 HWND32 WINAPI GetLastActivePopup32(HWND32);
5845 #define GetLastActivePopup WINELIB_NAME(GetLastActivePopup)
5846 UINT32 WINAPI GetLogicalDriveStrings32A(UINT32,LPSTR);
5847 UINT32 WINAPI GetLogicalDriveStrings32W(UINT32,LPWSTR);
5848 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
5849 INT16 WINAPI GetLocaleInfo16(LCID,LCTYPE,LPSTR,INT16);
5850 INT32 WINAPI GetLocaleInfo32A(LCID,LCTYPE,LPSTR,INT32);
5851 INT32 WINAPI GetLocaleInfo32W(LCID,LCTYPE,LPWSTR,INT32);
5852 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
5853 HMENU16 WINAPI GetMenu16(HWND16);
5854 HMENU32 WINAPI GetMenu32(HWND32);
5855 #define GetMenu WINELIB_NAME(GetMenu)
5856 INT16 WINAPI GetMenuItemCount16(HMENU16);
5857 INT32 WINAPI GetMenuItemCount32(HMENU32);
5858 #define GetMenuItemCount WINELIB_NAME(GetMenuItemCount)
5859 UINT16 WINAPI GetMenuItemID16(HMENU16,INT16);
5860 UINT32 WINAPI GetMenuItemID32(HMENU32,INT32);
5861 #define GetMenuItemID WINELIB_NAME(GetMenuItemID)
5862 BOOL16 WINAPI GetMenuItemRect16(HWND16,HMENU16,UINT16,LPRECT16);
5863 BOOL32 WINAPI GetMenuItemRect32(HWND32,HMENU32,UINT32,LPRECT32);
5864 #define GetMenuItemRect WINELIB_NAME(GetMenuItemRect)
5865 UINT16 WINAPI GetMenuState16(HMENU16,UINT16,UINT16);
5866 UINT32 WINAPI GetMenuState32(HMENU32,UINT32,UINT32);
5867 #define GetMenuState WINELIB_NAME(GetMenuState)
5868 INT16 WINAPI GetMenuString16(HMENU16,UINT16,LPSTR,INT16,UINT16);
5869 INT32 WINAPI GetMenuString32A(HMENU32,UINT32,LPSTR,INT32,UINT32);
5870 INT32 WINAPI GetMenuString32W(HMENU32,UINT32,LPWSTR,INT32,UINT32);
5871 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
5872 BOOL16 WINAPI GetMessage16(SEGPTR,HWND16,UINT16,UINT16);
5873 BOOL32 WINAPI GetMessage32A(LPMSG32,HWND32,UINT32,UINT32);
5874 BOOL32 WINAPI GetMessage32W(LPMSG32,HWND32,UINT32,UINT32);
5875 #define GetMessage WINELIB_NAME_AW(GetMessage)
5876 INT16 WINAPI GetModuleFileName16(HINSTANCE16,LPSTR,INT16);
5877 DWORD WINAPI GetModuleFileName32A(HMODULE32,LPSTR,DWORD);
5878 DWORD WINAPI GetModuleFileName32W(HMODULE32,LPWSTR,DWORD);
5879 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
5880 HMODULE16 WINAPI GetModuleHandle16(LPCSTR);
5881 HMODULE32 WINAPI GetModuleHandle32A(LPCSTR);
5882 HMODULE32 WINAPI GetModuleHandle32W(LPCWSTR);
5883 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
5884 HWND16 WINAPI GetNextDlgGroupItem16(HWND16,HWND16,BOOL16);
5885 HWND32 WINAPI GetNextDlgGroupItem32(HWND32,HWND32,BOOL32);
5886 #define GetNextDlgGroupItem WINELIB_NAME(GetNextDlgGroupItem)
5887 HWND16 WINAPI GetNextDlgTabItem16(HWND16,HWND16,BOOL16);
5888 HWND32 WINAPI GetNextDlgTabItem32(HWND32,HWND32,BOOL32);
5889 #define GetNextDlgTabItem WINELIB_NAME(GetNextDlgTabItem)
5890 HWND16 WINAPI GetNextWindow16(HWND16,WORD);
5891 #define GetNextWindow32 GetWindow32
5892 #define GetNextWindow WINELIB_NAME(GetNextWindow)
5893 HWND16 WINAPI GetOpenClipboardWindow16(void);
5894 HWND32 WINAPI GetOpenClipboardWindow32(void);
5895 #define GetOpenClipboardWindow WINELIB_NAME(GetOpenClipboardWindow)
5896 HWND16 WINAPI GetParent16(HWND16);
5897 HWND32 WINAPI GetParent32(HWND32);
5898 #define GetParent WINELIB_NAME(GetParent)
5899 INT16 WINAPI GetPriorityClipboardFormat16(UINT16*,INT16);
5900 INT32 WINAPI GetPriorityClipboardFormat32(UINT32*,INT32);
5901 #define GetPriorityClipboardFormat WINELIB_NAME(GetPriorityClipboardFormat)
5902 UINT16 WINAPI GetPrivateProfileInt16(LPCSTR,LPCSTR,INT16,LPCSTR);
5903 UINT32 WINAPI GetPrivateProfileInt32A(LPCSTR,LPCSTR,INT32,LPCSTR);
5904 UINT32 WINAPI GetPrivateProfileInt32W(LPCWSTR,LPCWSTR,INT32,LPCWSTR);
5905 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
5906 INT16 WINAPI GetPrivateProfileSection16(LPCSTR,LPSTR,UINT16,LPCSTR);
5907 INT32 WINAPI GetPrivateProfileSection32A(LPCSTR,LPSTR,DWORD,LPCSTR);
5908 INT32 WINAPI GetPrivateProfileSection32W(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
5909 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
5910 WORD WINAPI GetPrivateProfileSectionNames16(LPSTR,UINT16,LPCSTR);
5911 DWORD WINAPI GetPrivateProfileSectionNames32A(LPSTR,DWORD,LPCSTR);
5912 DWORD WINAPI GetPrivateProfileSectionNames32W(LPWSTR,DWORD,LPCWSTR);
5913 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
5914 INT16 WINAPI GetPrivateProfileString16(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16,LPCSTR);
5915 INT32 WINAPI GetPrivateProfileString32A(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT32,LPCSTR);
5916 INT32 WINAPI GetPrivateProfileString32W(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT32,LPCWSTR);
5917 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
5918 BOOL16 WINAPI GetPrivateProfileStruct16(LPCSTR,LPCSTR,LPVOID,UINT16,LPCSTR);
5919 BOOL32 WINAPI GetPrivateProfileStruct32A(LPCSTR,LPCSTR,LPVOID,UINT32,LPCSTR);
5920 BOOL32 WINAPI GetPrivateProfileStruct32W(LPCWSTR,LPCWSTR,LPVOID,UINT32,LPCWSTR);
5921 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
5922 FARPROC16 WINAPI GetProcAddress16(HMODULE16,SEGPTR);
5923 FARPROC32 WINAPI GetProcAddress32(HMODULE32,LPCSTR);
5924 #define GetProcAddress WINELIB_NAME(GetProcAddress)
5925 UINT16 WINAPI GetProfileInt16(LPCSTR,LPCSTR,INT16);
5926 UINT32 WINAPI GetProfileInt32A(LPCSTR,LPCSTR,INT32);
5927 UINT32 WINAPI GetProfileInt32W(LPCWSTR,LPCWSTR,INT32);
5928 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
5929 INT16 WINAPI GetProfileString16(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16);
5930 INT32 WINAPI GetProfileSection32A(LPCSTR,LPSTR,DWORD);
5931 INT32 WINAPI GetProfileSection32W(LPCWSTR,LPWSTR,DWORD);
5932 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
5933 INT32 WINAPI GetProfileString32A(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT32);
5934 INT32 WINAPI GetProfileString32W(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT32);
5935 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
5936 HANDLE16 WINAPI GetProp16(HWND16,LPCSTR);
5937 HANDLE32 WINAPI GetProp32A(HWND32,LPCSTR);
5938 HANDLE32 WINAPI GetProp32W(HWND32,LPCWSTR);
5939 #define GetProp WINELIB_NAME_AW(GetProp)
5940 DWORD WINAPI GetQueueStatus16(UINT16);
5941 DWORD WINAPI GetQueueStatus32(UINT32);
5942 #define GetQueueStatus WINELIB_NAME(GetQueueStatus)
5943 BOOL16 WINAPI GetScrollInfo16(HWND16,INT16,LPSCROLLINFO);
5944 BOOL32 WINAPI GetScrollInfo32(HWND32,INT32,LPSCROLLINFO);
5945 #define GetScrollInfo WINELIB_NAME(GetScrollInfo)
5946 INT16 WINAPI GetScrollPos16(HWND16,INT16);
5947 INT32 WINAPI GetScrollPos32(HWND32,INT32);
5948 #define GetScrollPos WINELIB_NAME(GetScrollPos)
5949 BOOL16 WINAPI GetScrollRange16(HWND16,INT16,LPINT16,LPINT16);
5950 BOOL32 WINAPI GetScrollRange32(HWND32,INT32,LPINT32,LPINT32);
5951 #define GetScrollRange WINELIB_NAME(GetScrollRange)
5952 HWND16 WINAPI GetShellWindow16(void);
5953 HWND32 WINAPI GetShellWindow32(void);
5954 #define GetShellWindow WINELIB_NAME(GetShellWindow)
5955 BOOL16 WINAPI GetStringType16(LCID,DWORD,LPCSTR,INT16,LPWORD);
5956 BOOL32 WINAPI GetStringType32A(LCID,DWORD,LPCSTR,INT32,LPWORD);
5957 BOOL32 WINAPI GetStringType32W(DWORD,LPCWSTR,INT32,LPWORD);
5958 #define GetStringType WINELIB_NAME_AW(GetStringType)
5959 HMENU16 WINAPI GetSubMenu16(HMENU16,INT16);
5960 HMENU32 WINAPI GetSubMenu32(HMENU32,INT32);
5961 #define GetSubMenu WINELIB_NAME(GetSubMenu)
5962 HBRUSH16 WINAPI GetSysColorBrush16(INT16);
5963 HBRUSH32 WINAPI GetSysColorBrush32(INT32);
5964 #define GetSysColorBrush WINELIB_NAME(GetSysColorBrush)
5965 HWND16 WINAPI GetSysModalWindow16(void);
5966 #define GetSysModalWindow32() ((HWND32)0)
5967 #define GetSysModalWindow WINELIB_NAME(GetSysModalWindow)
5968 UINT16 WINAPI GetSystemDirectory16(LPSTR,UINT16);
5969 UINT32 WINAPI GetSystemDirectory32A(LPSTR,UINT32);
5970 UINT32 WINAPI GetSystemDirectory32W(LPWSTR,UINT32);
5971 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
5972 HMENU16 WINAPI GetSystemMenu16(HWND16,BOOL16);
5973 HMENU32 WINAPI GetSystemMenu32(HWND32,BOOL32);
5974 #define GetSystemMenu WINELIB_NAME(GetSystemMenu)
5975 INT16 WINAPI GetSystemMetrics16(INT16);
5976 INT32 WINAPI GetSystemMetrics32(INT32);
5977 #define GetSystemMetrics WINELIB_NAME(GetSystemMetrics)
5978 DWORD WINAPI GetTabbedTextExtent16(HDC16,LPCSTR,INT16,INT16,const INT16*);
5979 DWORD WINAPI GetTabbedTextExtent32A(HDC32,LPCSTR,INT32,INT32,const INT32*);
5980 DWORD WINAPI GetTabbedTextExtent32W(HDC32,LPCWSTR,INT32,INT32,const INT32*);
5981 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
5982 UINT16 WINAPI GetTempFileName16(BYTE,LPCSTR,UINT16,LPSTR);
5983 UINT32 WINAPI GetTempFileName32A(LPCSTR,LPCSTR,UINT32,LPSTR);
5984 UINT32 WINAPI GetTempFileName32W(LPCWSTR,LPCWSTR,UINT32,LPWSTR);
5985 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
5986 UINT32 WINAPI GetTempPath32A(UINT32,LPSTR);
5987 UINT32 WINAPI GetTempPath32W(UINT32,LPWSTR);
5988 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
5989 LPINT16 WINAPI GetThresholdEvent16(void);
5990 LPDWORD WINAPI GetThresholdEvent32(void);
5991 #define GetThresholdEvent WINELIB_NAME(GetThresholdEvent)
5992 INT16 WINAPI GetThresholdStatus16(void);
5993 DWORD WINAPI GetThresholdStatus32(void);
5994 #define GetThresholdStatus WINELIB_NAME(GetThresholdStatus)
5995 HWND16 WINAPI GetTopWindow16(HWND16);
5996 HWND32 WINAPI GetTopWindow32(HWND32);
5997 #define GetTopWindow WINELIB_NAME(GetTopWindow)
5998 BOOL16 WINAPI GetUpdateRect16(HWND16,LPRECT16,BOOL16);
5999 BOOL32 WINAPI GetUpdateRect32(HWND32,LPRECT32,BOOL32);
6000 #define GetUpdateRect WINELIB_NAME(GetUpdateRect)
6001 INT16 WINAPI GetUpdateRgn16(HWND16,HRGN16,BOOL16);
6002 INT32 WINAPI GetUpdateRgn32(HWND32,HRGN32,BOOL32);
6003 #define GetUpdateRgn WINELIB_NAME(GetUpdateRgn)
6004 LONG WINAPI GetVersion16(void);
6005 LONG WINAPI GetVersion32(void);
6006 #define GetVersion WINELIB_NAME(GetVersion)
6007 BOOL32 WINAPI GetExitCodeProcess(HANDLE32,LPDWORD);
6008 BOOL32 WINAPI GetVolumeInformation32A(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
6009 BOOL32 WINAPI GetVolumeInformation32W(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
6010 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
6011 HWND16 WINAPI GetWindow16(HWND16,WORD);
6012 HWND32 WINAPI GetWindow32(HWND32,WORD);
6013 #define GetWindow WINELIB_NAME(GetWindow)
6014 HDC16 WINAPI GetWindowDC16(HWND16);
6015 HDC32 WINAPI GetWindowDC32(HWND32);
6016 #define GetWindowDC WINELIB_NAME(GetWindowDC)
6017 LONG WINAPI GetWindowLong16(HWND16,INT16);
6018 LONG WINAPI GetWindowLong32A(HWND32,INT32);
6019 LONG WINAPI GetWindowLong32W(HWND32,INT32);
6020 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
6021 BOOL16 WINAPI GetWindowPlacement16(HWND16,LPWINDOWPLACEMENT16);
6022 BOOL32 WINAPI GetWindowPlacement32(HWND32,LPWINDOWPLACEMENT32);
6023 #define GetWindowPlacement WINELIB_NAME(GetWindowPlacement)
6024 void WINAPI GetWindowRect16(HWND16,LPRECT16);
6025 BOOL32 WINAPI GetWindowRect32(HWND32,LPRECT32);
6026 #define GetWindowRect WINELIB_NAME(GetWindowRect)
6027 INT16 WINAPI GetWindowRgn16(HWND16,HRGN16);
6028 INT32 WINAPI GetWindowRgn32(HWND32,HRGN32);
6029 #define GetWindowRgn WINELIB_NAME(GetWindowRgn)
6030 UINT16 WINAPI GetWindowsDirectory16(LPSTR,UINT16);
6031 UINT32 WINAPI GetWindowsDirectory32A(LPSTR,UINT32);
6032 UINT32 WINAPI GetWindowsDirectory32W(LPWSTR,UINT32);
6033 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
6034 HTASK16 WINAPI GetWindowTask16(HWND16);
6035 #define GetWindowTask32(hwnd) ((HTASK32)GetWindowThreadProcessId(hwnd,NULL))
6036 #define GetWindowTask WINELIB_NAME(GetWindowTask)
6037 INT16 WINAPI GetWindowText16(HWND16,SEGPTR,INT16);
6038 INT32 WINAPI GetWindowText32A(HWND32,LPSTR,INT32);
6039 INT32 WINAPI GetWindowText32W(HWND32,LPWSTR,INT32);
6040 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
6041 INT16 WINAPI GetWindowTextLength16(HWND16);
6042 INT32 WINAPI GetWindowTextLength32A(HWND32);
6043 INT32 WINAPI GetWindowTextLength32W(HWND32);
6044 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
6045 WORD WINAPI GetWindowWord16(HWND16,INT16);
6046 WORD WINAPI GetWindowWord32(HWND32,INT32);
6047 #define GetWindowWord WINELIB_NAME(GetWindowWord)
6048 ATOM WINAPI GlobalAddAtom16(SEGPTR);
6049 ATOM WINAPI GlobalAddAtom32A(LPCSTR);
6050 ATOM WINAPI GlobalAddAtom32W(LPCWSTR);
6051 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
6052 HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
6053 HGLOBAL32 WINAPI GlobalAlloc32(UINT32,DWORD);
6054 #define GlobalAlloc WINELIB_NAME(GlobalAlloc)
6055 DWORD WINAPI GlobalCompact16(DWORD);
6056 DWORD WINAPI GlobalCompact32(DWORD);
6057 #define GlobalCompact WINELIB_NAME(GlobalCompact)
6058 UINT16 WINAPI GlobalFlags16(HGLOBAL16);
6059 UINT32 WINAPI GlobalFlags32(HGLOBAL32);
6060 #define GlobalFlags WINELIB_NAME(GlobalFlags)
6061 ATOM WINAPI GlobalFindAtom16(SEGPTR);
6062 ATOM WINAPI GlobalFindAtom32A(LPCSTR);
6063 ATOM WINAPI GlobalFindAtom32W(LPCWSTR);
6064 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
6065 HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
6066 HGLOBAL32 WINAPI GlobalFree32(HGLOBAL32);
6067 #define GlobalFree WINELIB_NAME(GlobalFree)
6068 UINT16 WINAPI GlobalGetAtomName16(ATOM,LPSTR,INT16);
6069 UINT32 WINAPI GlobalGetAtomName32A(ATOM,LPSTR,INT32);
6070 UINT32 WINAPI GlobalGetAtomName32W(ATOM,LPWSTR,INT32);
6071 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
6072 DWORD WINAPI GlobalHandle16(WORD);
6073 HGLOBAL32 WINAPI GlobalHandle32(LPCVOID);
6074 #define GlobalHandle WINELIB_NAME(GlobalHandle)
6075 WORD WINAPI GlobalFix16(HGLOBAL16);
6076 VOID WINAPI GlobalFix32(HGLOBAL32);
6077 #define GlobalFix WINELIB_NAME(GlobalFix)
6078 LPVOID WINAPI GlobalLock16(HGLOBAL16);
6079 LPVOID WINAPI GlobalLock32(HGLOBAL32);
6080 #define GlobalLock WINELIB_NAME(GlobalLock)
6081 HGLOBAL16 WINAPI GlobalReAlloc16(HGLOBAL16,DWORD,UINT16);
6082 HGLOBAL32 WINAPI GlobalReAlloc32(HGLOBAL32,DWORD,UINT32);
6083 #define GlobalReAlloc WINELIB_NAME(GlobalReAlloc)
6084 DWORD WINAPI GlobalSize16(HGLOBAL16);
6085 DWORD WINAPI GlobalSize32(HGLOBAL32);
6086 #define GlobalSize WINELIB_NAME(GlobalSize)
6087 VOID WINAPI GlobalUnfix16(HGLOBAL16);
6088 VOID WINAPI GlobalUnfix32(HGLOBAL32);
6089 #define GlobalUnfix WINELIB_NAME(GlobalUnfix)
6090 BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
6091 BOOL32 WINAPI GlobalUnlock32(HGLOBAL32);
6092 #define GlobalUnlock WINELIB_NAME(GlobalUnlock)
6093 BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
6094 BOOL32 WINAPI GlobalUnWire32(HGLOBAL32);
6095 #define GlobalUnWire WINELIB_NAME(GlobalUnWire)
6096 SEGPTR WINAPI GlobalWire16(HGLOBAL16);
6097 LPVOID WINAPI GlobalWire32(HGLOBAL32);
6098 #define GlobalWire WINELIB_NAME(GlobalWire)
6099 BOOL16 WINAPI GrayString16(HDC16,HBRUSH16,GRAYSTRINGPROC16,LPARAM,
6100 INT16,INT16,INT16,INT16,INT16);
6101 BOOL32 WINAPI GrayString32A(HDC32,HBRUSH32,GRAYSTRINGPROC32,LPARAM,
6102 INT32,INT32,INT32,INT32,INT32);
6103 BOOL32 WINAPI GrayString32W(HDC32,HBRUSH32,GRAYSTRINGPROC32,LPARAM,
6104 INT32,INT32,INT32,INT32,INT32);
6105 #define GrayString WINELIB_NAME_AW(GrayString)
6106 VOID WINAPI HideCaret16(HWND16);
6107 BOOL32 WINAPI HideCaret32(HWND32);
6108 #define HideCaret WINELIB_NAME(HideCaret)
6109 BOOL16 WINAPI HiliteMenuItem16(HWND16,HMENU16,UINT16,UINT16);
6110 BOOL32 WINAPI HiliteMenuItem32(HWND32,HMENU32,UINT32,UINT32);
6111 #define HiliteMenuItem WINELIB_NAME(HiliteMenuItem)
6112 void WINAPI InflateRect16(LPRECT16,INT16,INT16);
6113 void WINAPI InflateRect32(LPRECT32,INT32,INT32);
6114 #define InflateRect WINELIB_NAME(InflateRect)
6115 WORD WINAPI InitAtomTable16(WORD);
6116 BOOL32 WINAPI InitAtomTable32(DWORD);
6117 #define InitAtomTable WINELIB_NAME(InitAtomTable)
6118 BOOL16 WINAPI InSendMessage16(void);
6119 BOOL32 WINAPI InSendMessage32(void);
6120 #define InSendMessage WINELIB_NAME(InSendMessage)
6121 BOOL16 WINAPI InsertMenu16(HMENU16,UINT16,UINT16,UINT16,SEGPTR);
6122 BOOL32 WINAPI InsertMenu32A(HMENU32,UINT32,UINT32,UINT32,LPCSTR);
6123 BOOL32 WINAPI InsertMenu32W(HMENU32,UINT32,UINT32,UINT32,LPCWSTR);
6124 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
6125 BOOL16 WINAPI InsertMenuItem16(HMENU16,UINT16,BOOL16,const MENUITEMINFO16*);
6126 BOOL32 WINAPI InsertMenuItem32A(HMENU32,UINT32,BOOL32,const MENUITEMINFO32A*);
6127 BOOL32 WINAPI InsertMenuItem32W(HMENU32,UINT32,BOOL32,const MENUITEMINFO32W*);
6128 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
6129 BOOL16 WINAPI IntersectRect16(LPRECT16,const RECT16*,const RECT16*);
6130 BOOL32 WINAPI IntersectRect32(LPRECT32,const RECT32*,const RECT32*);
6131 #define IntersectRect WINELIB_NAME(IntersectRect)
6132 void WINAPI InvalidateRect16(HWND16,const RECT16*,BOOL16);
6133 void WINAPI InvalidateRect32(HWND32,const RECT32*,BOOL32);
6134 #define InvalidateRect WINELIB_NAME(InvalidateRect)
6135 void WINAPI InvalidateRgn16(HWND16,HRGN16,BOOL16);
6136 void WINAPI InvalidateRgn32(HWND32,HRGN32,BOOL32);
6137 #define InvalidateRgn WINELIB_NAME(InvalidateRgn)
6138 void WINAPI InvertRect16(HDC16,const RECT16*);
6139 void WINAPI InvertRect32(HDC32,const RECT32*);
6140 #define InvertRect WINELIB_NAME(InvertRect)
6141 BOOL16 WINAPI IsBadCodePtr16(SEGPTR);
6142 BOOL32 WINAPI IsBadCodePtr32(FARPROC32);
6143 #define IsBadCodePtr WINELIB_NAME(IsBadCodePtr)
6144 BOOL16 WINAPI IsBadHugeReadPtr16(SEGPTR,DWORD);
6145 BOOL32 WINAPI IsBadHugeReadPtr32(LPCVOID,UINT32);
6146 #define IsBadHugeReadPtr WINELIB_NAME(IsBadHugeReadPtr)
6147 BOOL16 WINAPI IsBadHugeWritePtr16(SEGPTR,DWORD);
6148 BOOL32 WINAPI IsBadHugeWritePtr32(LPVOID,UINT32);
6149 #define IsBadHugeWritePtr WINELIB_NAME(IsBadHugeWritePtr)
6150 BOOL16 WINAPI IsBadReadPtr16(SEGPTR,UINT16);
6151 BOOL32 WINAPI IsBadReadPtr32(LPCVOID,UINT32);
6152 #define IsBadReadPtr WINELIB_NAME(IsBadReadPtr)
6153 BOOL16 WINAPI IsBadStringPtr16(SEGPTR,UINT16);
6154 BOOL32 WINAPI IsBadStringPtr32A(LPCSTR,UINT32);
6155 BOOL32 WINAPI IsBadStringPtr32W(LPCWSTR,UINT32);
6156 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
6157 BOOL16 WINAPI IsBadWritePtr16(SEGPTR,UINT16);
6158 BOOL32 WINAPI IsBadWritePtr32(LPVOID,UINT32);
6159 #define IsBadWritePtr WINELIB_NAME(IsBadWritePtr)
6160 BOOL16 WINAPI IsCharAlpha16(CHAR);
6161 BOOL32 WINAPI IsCharAlpha32A(CHAR);
6162 BOOL32 WINAPI IsCharAlpha32W(WCHAR);
6163 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
6164 BOOL16 WINAPI IsCharAlphaNumeric16(CHAR);
6165 BOOL32 WINAPI IsCharAlphaNumeric32A(CHAR);
6166 BOOL32 WINAPI IsCharAlphaNumeric32W(WCHAR);
6167 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
6168 BOOL16 WINAPI IsCharLower16(CHAR);
6169 BOOL32 WINAPI IsCharLower32A(CHAR);
6170 BOOL32 WINAPI IsCharLower32W(WCHAR);
6171 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
6172 BOOL16 WINAPI IsCharUpper16(CHAR);
6173 BOOL32 WINAPI IsCharUpper32A(CHAR);
6174 BOOL32 WINAPI IsCharUpper32W(WCHAR);
6175 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
6176 BOOL16 WINAPI IsChild16(HWND16,HWND16);
6177 BOOL32 WINAPI IsChild32(HWND32,HWND32);
6178 #define IsChild WINELIB_NAME(IsChild)
6179 BOOL16 WINAPI IsClipboardFormatAvailable16(UINT16);
6180 BOOL32 WINAPI IsClipboardFormatAvailable32(UINT32);
6181 #define IsClipboardFormatAvailable WINELIB_NAME(IsClipboardFormatAvailable)
6182 BOOL16 WINAPI IsDBCSLeadByte16(BYTE);
6183 BOOL32 WINAPI IsDBCSLeadByte32(BYTE);
6184 #define IsDBCSLeadByte WINELIB_NAME(IsDBCSLeadByte)
6185 BOOL16 WINAPI IsDialogMessage16(HWND16,LPMSG16);
6186 BOOL32 WINAPI IsDialogMessage32A(HWND32,LPMSG32);
6187 BOOL32 WINAPI IsDialogMessage32W(HWND32,LPMSG32);
6188 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
6189 UINT16 WINAPI IsDlgButtonChecked16(HWND16,UINT16);
6190 UINT32 WINAPI IsDlgButtonChecked32(HWND32,UINT32);
6191 #define IsDlgButtonChecked WINELIB_NAME(IsDlgButtonChecked)
6192 BOOL16 WINAPI IsIconic16(HWND16);
6193 BOOL32 WINAPI IsIconic32(HWND32);
6194 #define IsIconic WINELIB_NAME(IsIconic)
6195 BOOL16 WINAPI IsMenu16(HMENU16);
6196 BOOL32 WINAPI IsMenu32(HMENU32);
6197 #define IsMenu WINELIB_NAME(IsMenu)
6198 BOOL16 WINAPI IsRectEmpty16(const RECT16*);
6199 BOOL32 WINAPI IsRectEmpty32(const RECT32*);
6200 #define IsRectEmpty WINELIB_NAME(IsRectEmpty)
6201 BOOL16 WINAPI IsWindow16(HWND16);
6202 BOOL32 WINAPI IsWindow32(HWND32);
6203 #define IsWindow WINELIB_NAME(IsWindow)
6204 BOOL16 WINAPI IsWindowEnabled16(HWND16);
6205 BOOL32 WINAPI IsWindowEnabled32(HWND32);
6206 #define IsWindowEnabled WINELIB_NAME(IsWindowEnabled)
6207 BOOL16 WINAPI IsWindowVisible16(HWND16);
6208 BOOL32 WINAPI IsWindowVisible32(HWND32);
6209 #define IsWindowVisible WINELIB_NAME(IsWindowVisible)
6210 BOOL16 WINAPI IsZoomed16(HWND16);
6211 BOOL32 WINAPI IsZoomed32(HWND32);
6212 #define IsZoomed WINELIB_NAME(IsZoomed)
6213 BOOL16 WINAPI KillSystemTimer16(HWND16,UINT16);
6214 BOOL32 WINAPI KillSystemTimer32(HWND32,UINT32);
6215 #define KillSystemTimer WINELIB_NAME(KillSystemTimer)
6216 BOOL16 WINAPI KillTimer16(HWND16,UINT16);
6217 BOOL32 WINAPI KillTimer32(HWND32,UINT32);
6218 #define KillTimer WINELIB_NAME(KillTimer)
6219 HFILE16 WINAPI LZOpenFile16(LPCSTR,LPOFSTRUCT,UINT16);
6220 HFILE32 WINAPI LZOpenFile32A(LPCSTR,LPOFSTRUCT,UINT32);
6221 HFILE32 WINAPI LZOpenFile32W(LPCWSTR,LPOFSTRUCT,UINT32);
6222 #define LZOpenFile WINELIB_NAME_AW(LZOpenFile)
6223 INT16 WINAPI LZRead16(HFILE16,LPVOID,UINT16);
6224 INT32 WINAPI LZRead32(HFILE32,LPVOID,UINT32);
6225 #define LZRead WINELIB_NAME(LZRead)
6226 INT16 WINAPI LZStart16(void);
6227 INT32 WINAPI LZStart32(void);
6228 #define LZStart WINELIB_NAME(LZStart)
6229 HACCEL16 WINAPI LoadAccelerators16(HINSTANCE16,SEGPTR);
6230 HACCEL32 WINAPI LoadAccelerators32A(HINSTANCE32,LPCSTR);
6231 HACCEL32 WINAPI LoadAccelerators32W(HINSTANCE32,LPCWSTR);
6232 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
6233 HBITMAP16 WINAPI LoadBitmap16(HANDLE16,SEGPTR);
6234 HBITMAP32 WINAPI LoadBitmap32A(HANDLE32,LPCSTR);
6235 HBITMAP32 WINAPI LoadBitmap32W(HANDLE32,LPCWSTR);
6236 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
6237 HCURSOR16 WINAPI LoadCursor16(HINSTANCE16,SEGPTR);
6238 HCURSOR32 WINAPI LoadCursor32A(HINSTANCE32,LPCSTR);
6239 HCURSOR32 WINAPI LoadCursor32W(HINSTANCE32,LPCWSTR);
6240 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
6241 HCURSOR32 WINAPI LoadCursorFromFile32A(LPCSTR);
6242 HCURSOR32 WINAPI LoadCursorFromFile32W(LPCWSTR);
6243 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
6244 HICON16 WINAPI LoadIcon16(HINSTANCE16,SEGPTR);
6245 HICON32 WINAPI LoadIcon32A(HINSTANCE32,LPCSTR);
6246 HICON32 WINAPI LoadIcon32W(HINSTANCE32,LPCWSTR);
6247 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
6248 HANDLE16 WINAPI LoadImage16(HINSTANCE16,LPCSTR,UINT16,INT16,INT16,UINT16);
6249 HANDLE32 WINAPI LoadImage32A(HINSTANCE32,LPCSTR,UINT32,INT32,INT32,UINT32);
6250 HANDLE32 WINAPI LoadImage32W(HINSTANCE32,LPCWSTR,UINT32,INT32,INT32,UINT32);
6251 #define LoadImage WINELIB_NAME_AW(LoadImage)
6252 HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
6253 HMODULE32 WINAPI LoadLibrary32A(LPCSTR);
6254 HMODULE32 WINAPI LoadLibrary32W(LPCWSTR);
6255 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
6256 HMODULE32 WINAPI LoadLibraryEx32A(LPCSTR,HFILE32,DWORD);
6257 HMODULE32 WINAPI LoadLibraryEx32W(LPCWSTR,HFILE32,DWORD);
6258 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
6259 HMENU16 WINAPI LoadMenu16(HINSTANCE16,SEGPTR);
6260 HMENU32 WINAPI LoadMenu32A(HINSTANCE32,LPCSTR);
6261 HMENU32 WINAPI LoadMenu32W(HINSTANCE32,LPCWSTR);
6262 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
6263 HMENU16 WINAPI LoadMenuIndirect16(LPCVOID);
6264 HMENU32 WINAPI LoadMenuIndirect32A(LPCVOID);
6265 HMENU32 WINAPI LoadMenuIndirect32W(LPCVOID);
6266 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
6267 HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
6268 HINSTANCE32 WINAPI LoadModule32(LPCSTR,LPVOID);
6269 #define LoadModule WINELIB_NAME(LoadModule)
6270 HGLOBAL16 WINAPI LoadResource16(HINSTANCE16,HRSRC16);
6271 HGLOBAL32 WINAPI LoadResource32(HMODULE32,HRSRC32);
6272 #define LoadResource WINELIB_NAME(LoadResource)
6273 INT16 WINAPI LoadString16(HINSTANCE16,UINT16,LPSTR,INT16);
6274 INT32 WINAPI LoadString32A(HINSTANCE32,UINT32,LPSTR,INT32);
6275 INT32 WINAPI LoadString32W(HINSTANCE32,UINT32,LPWSTR,INT32);
6276 #define LoadString WINELIB_NAME_AW(LoadString)
6277 HLOCAL16 WINAPI LocalAlloc16(UINT16,WORD);
6278 HLOCAL32 WINAPI LocalAlloc32(UINT32,DWORD);
6279 #define LocalAlloc WINELIB_NAME(LocalAlloc)
6280 UINT16 WINAPI LocalCompact16(UINT16);
6281 UINT32 WINAPI LocalCompact32(UINT32);
6282 #define LocalCompact WINELIB_NAME(LocalCompact)
6283 UINT16 WINAPI LocalFlags16(HLOCAL16);
6284 UINT32 WINAPI LocalFlags32(HLOCAL32);
6285 #define LocalFlags WINELIB_NAME(LocalFlags)
6286 HLOCAL16 WINAPI LocalFree16(HLOCAL16);
6287 HLOCAL32 WINAPI LocalFree32(HLOCAL32);
6288 #define LocalFree WINELIB_NAME(LocalFree)
6289 HLOCAL16 WINAPI LocalHandle16(WORD);
6290 HLOCAL32 WINAPI LocalHandle32(LPCVOID);
6291 #define LocalHandle WINELIB_NAME(LocalHandle)
6292 SEGPTR WINAPI LocalLock16(HLOCAL16);
6293 LPVOID WINAPI LocalLock32(HLOCAL32);
6294 #define LocalLock WINELIB_NAME(LocalLock)
6295 HLOCAL16 WINAPI LocalReAlloc16(HLOCAL16,WORD,UINT16);
6296 HLOCAL32 WINAPI LocalReAlloc32(HLOCAL32,DWORD,UINT32);
6297 #define LocalReAlloc WINELIB_NAME(LocalReAlloc)
6298 UINT16 WINAPI LocalShrink16(HGLOBAL16,UINT16);
6299 UINT32 WINAPI LocalShrink32(HGLOBAL32,UINT32);
6300 #define LocalShrink WINELIB_NAME(LocalShrink)
6301 UINT16 WINAPI LocalSize16(HLOCAL16);
6302 UINT32 WINAPI LocalSize32(HLOCAL32);
6303 #define LocalSize WINELIB_NAME(LocalSize)
6304 BOOL16 WINAPI LocalUnlock16(HLOCAL16);
6305 BOOL32 WINAPI LocalUnlock32(HLOCAL32);
6306 #define LocalUnlock WINELIB_NAME(LocalUnlock)
6307 LPVOID WINAPI LockResource16(HGLOBAL16);
6308 LPVOID WINAPI LockResource32(HGLOBAL32);
6309 #define LockResource WINELIB_NAME(LockResource)
6310 HGLOBAL16 WINAPI LockSegment16(HGLOBAL16);
6311 #define LockSegment32(handle) GlobalFix32((HANDLE32)(handle))
6312 #define LockSegment WINELIB_NAME(LockSegment)
6313 BOOL16 WINAPI LockWindowUpdate16(HWND16);
6314 BOOL32 WINAPI LockWindowUpdate32(HWND32);
6315 #define LockWindowUpdate WINELIB_NAME(LockWindowUpdate)
6316 INT16 WINAPI LookupIconIdFromDirectory16(LPBYTE,BOOL16);
6317 INT32 WINAPI LookupIconIdFromDirectory32(LPBYTE,BOOL32);
6318 #define LookupIconIdFromDirectory WINELIB_NAME(LookupIconIdFromDirectory)
6319 INT16 WINAPI LookupIconIdFromDirectoryEx16(LPBYTE,BOOL16,INT16,INT16,UINT16);
6320 INT32 WINAPI LookupIconIdFromDirectoryEx32(LPBYTE,BOOL32,INT32,INT32,UINT32);
6321 #define LookupIconIdFromDirectoryEx WINELIB_NAME(LookupIconIdFromDirectoryEx)
6322 void WINAPI LZClose16(HFILE16);
6323 void WINAPI LZClose32(HFILE32);
6324 #define LZClose WINELIB_NAME(LZClose)
6325 LONG WINAPI LZCopy16(HFILE16,HFILE16);
6326 LONG WINAPI LZCopy32(HFILE32,HFILE32);
6327 #define LZCopy WINELIB_NAME(LZCopy)
6328 HFILE16 WINAPI LZInit16(HFILE16);
6329 HFILE32 WINAPI LZInit32(HFILE32);
6330 #define LZInit WINELIB_NAME(LZInit)
6331 LONG WINAPI LZSeek16(HFILE16,LONG,INT16);
6332 LONG WINAPI LZSeek32(HFILE32,LONG,INT32);
6333 #define LZSeek WINELIB_NAME(LZSeek)
6334 UINT16 WINAPI MapVirtualKey16(UINT16,UINT16);
6335 UINT32 WINAPI MapVirtualKey32A(UINT32,UINT32);
6336 UINT32 WINAPI MapVirtualKey32W(UINT32,UINT32);
6337 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
6338 FARPROC16 WINAPI MakeProcInstance16(FARPROC16,HANDLE16);
6339 #define MakeProcInstance32(proc,inst) (proc)
6340 #define MakeProcInstance WINELIB_NAME(MakeProcInstance)
6341 void WINAPI MapDialogRect16(HWND16,LPRECT16);
6342 void WINAPI MapDialogRect32(HWND32,LPRECT32);
6343 #define MapDialogRect WINELIB_NAME(MapDialogRect)
6344 void WINAPI MapWindowPoints16(HWND16,HWND16,LPPOINT16,UINT16);
6345 void WINAPI MapWindowPoints32(HWND32,HWND32,LPPOINT32,UINT32);
6346 #define MapWindowPoints WINELIB_NAME(MapWindowPoints)
6347 VOID WINAPI MessageBeep16(UINT16);
6348 BOOL32 WINAPI MessageBeep32(UINT32);
6349 #define MessageBeep WINELIB_NAME(MessageBeep)
6350 INT16 WINAPI MessageBox16(HWND16,LPCSTR,LPCSTR,UINT16);
6351 INT32 WINAPI MessageBox32A(HWND32,LPCSTR,LPCSTR,UINT32);
6352 INT32 WINAPI MessageBox32W(HWND32,LPCWSTR,LPCWSTR,UINT32);
6353 #define MessageBox WINELIB_NAME_AW(MessageBox)
6354 INT16 WINAPI MessageBoxIndirect16(LPMSGBOXPARAMS16);
6355 INT32 WINAPI MessageBoxIndirect32A(LPMSGBOXPARAMS32A);
6356 INT32 WINAPI MessageBoxIndirect32W(LPMSGBOXPARAMS32W);
6357 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
6358 BOOL16 WINAPI ModifyMenu16(HMENU16,UINT16,UINT16,UINT16,SEGPTR);
6359 BOOL32 WINAPI ModifyMenu32A(HMENU32,UINT32,UINT32,UINT32,LPCSTR);
6360 BOOL32 WINAPI ModifyMenu32W(HMENU32,UINT32,UINT32,UINT32,LPCWSTR);
6361 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
6362 BOOL16 WINAPI MoveWindow16(HWND16,INT16,INT16,INT16,INT16,BOOL16);
6363 BOOL32 WINAPI MoveWindow32(HWND32,INT32,INT32,INT32,INT32,BOOL32);
6364 #define MoveWindow WINELIB_NAME(MoveWindow)
6365 INT16 WINAPI OemToAnsi16(LPCSTR,LPSTR);
6366 #define OemToAnsi32A OemToChar32A
6367 #define OemToAnsi32W OemToChar32W
6368 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
6369 VOID WINAPI OemToAnsiBuff16(LPCSTR,LPSTR,UINT16);
6370 #define OemToAnsiBuff32A OemToCharBuff32A
6371 #define OemToAnsiBuff32W OemToCharBuff32W
6372 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
6373 BOOL32 WINAPI OemToChar32A(LPCSTR,LPSTR);
6374 BOOL32 WINAPI OemToChar32W(LPCSTR,LPWSTR);
6375 #define OemToChar WINELIB_NAME_AW(OemToChar)
6376 BOOL32 WINAPI OemToCharBuff32A(LPCSTR,LPSTR,DWORD);
6377 BOOL32 WINAPI OemToCharBuff32W(LPCSTR,LPWSTR,DWORD);
6378 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
6379 INT16 WINAPI WideCharToLocal16(LPSTR,LPWSTR,INT16);
6380 INT32 WINAPI WideCharToLocal32(LPSTR,LPWSTR,INT32);
6381 #define WideCharToLocal WINELIB_NAME(WideCharToLocal)
6382 INT16 WINAPI LocalToWideChar16(LPWSTR,LPSTR,INT16);
6383 INT32 WINAPI LocalToWideChar32(LPWSTR,LPSTR,INT32);
6384 #define LocalToWideChar WINELIB_NAME(LocalToWideChar)
6385 void WINAPI OffsetRect16(LPRECT16,INT16,INT16);
6386 void WINAPI OffsetRect32(LPRECT32,INT32,INT32);
6387 #define OffsetRect WINELIB_NAME(OffsetRect)
6388 BOOL16 WINAPI OpenClipboard16(HWND16);
6389 BOOL32 WINAPI OpenClipboard32(HWND32);
6390 #define OpenClipboard WINELIB_NAME(OpenClipboard)
6391 HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
6392 HFILE32 WINAPI OpenFile32(LPCSTR,OFSTRUCT*,UINT32);
6393 #define OpenFile WINELIB_NAME(OpenFile)
6394 BOOL16 WINAPI OpenIcon16(HWND16);
6395 BOOL32 WINAPI OpenIcon32(HWND32);
6396 #define OpenIcon WINELIB_NAME(OpenIcon)
6397 INT16 WINAPI OpenSound16(void);
6398 VOID WINAPI OpenSound32(void);
6399 #define OpenSound WINELIB_NAME(OpenSound)
6400 VOID WINAPI OutputDebugString16(LPCSTR);
6401 VOID WINAPI OutputDebugString32A(LPCSTR);
6402 VOID WINAPI OutputDebugString32W(LPCWSTR);
6403 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
6404 BOOL16 WINAPI PeekMessage16(LPMSG16,HWND16,UINT16,UINT16,UINT16);
6405 BOOL32 WINAPI PeekMessage32A(LPMSG32,HWND32,UINT32,UINT32,UINT32);
6406 BOOL32 WINAPI PeekMessage32W(LPMSG32,HWND32,UINT32,UINT32,UINT32);
6407 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
6408 BOOL16 WINAPI PostAppMessage16(HTASK16,UINT16,WPARAM16,LPARAM);
6409 #define PostAppMessage32A(thread,msg,wparam,lparam) \
6410 PostThreadMessage32A((DWORD)(thread),msg,wparam,lparam)
6411 #define PostAppMessage32W(thread,msg,wparam,lparam) \
6412 PostThreadMessage32W((DWORD)(thread),msg,wparam,lparam)
6413 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
6414 BOOL16 WINAPI PostMessage16(HWND16,UINT16,WPARAM16,LPARAM);
6415 BOOL32 WINAPI PostMessage32A(HWND32,UINT32,WPARAM32,LPARAM);
6416 BOOL32 WINAPI PostMessage32W(HWND32,UINT32,WPARAM32,LPARAM);
6417 #define PostMessage WINELIB_NAME_AW(PostMessage)
6418 void WINAPI PostQuitMessage16(INT16);
6419 void WINAPI PostQuitMessage32(INT32);
6420 #define PostQuitMessage WINELIB_NAME(PostQuitMessage)
6421 BOOL16 WINAPI PtInRect16(const RECT16*,POINT16);
6422 BOOL32 WINAPI PtInRect32(const RECT32*,POINT32);
6423 #define PtInRect WINELIB_NAME(PtInRect)
6424 BOOL16 WINAPI RedrawWindow16(HWND16,const RECT16*,HRGN16,UINT16);
6425 BOOL32 WINAPI RedrawWindow32(HWND32,const RECT32*,HRGN32,UINT32);
6426 #define RedrawWindow WINELIB_NAME(RedrawWindow)
6427 DWORD WINAPI RegCreateKey16(HKEY,LPCSTR,LPHKEY);
6428 DWORD WINAPI RegCreateKey32A(HKEY,LPCSTR,LPHKEY);
6429 DWORD WINAPI RegCreateKey32W(HKEY,LPCWSTR,LPHKEY);
6430 #define RegCreateKey WINELIB_NAME_AW(RegCreateKey)
6431 DWORD WINAPI RegDeleteKey16(HKEY,LPCSTR);
6432 DWORD WINAPI RegDeleteKey32A(HKEY,LPCSTR);
6433 DWORD WINAPI RegDeleteKey32W(HKEY,LPWSTR);
6434 #define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey)
6435 DWORD WINAPI RegDeleteValue16(HKEY,LPSTR);
6436 DWORD WINAPI RegDeleteValue32A(HKEY,LPSTR);
6437 DWORD WINAPI RegDeleteValue32W(HKEY,LPWSTR);
6438 #define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue)
6439 DWORD WINAPI RegEnumKey16(HKEY,DWORD,LPSTR,DWORD);
6440 DWORD WINAPI RegEnumKey32A(HKEY,DWORD,LPSTR,DWORD);
6441 DWORD WINAPI RegEnumKey32W(HKEY,DWORD,LPWSTR,DWORD);
6442 #define RegEnumKey WINELIB_NAME_AW(RegEnumKey)
6443 DWORD WINAPI RegEnumValue16(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
6444 DWORD WINAPI RegEnumValue32A(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
6445 DWORD WINAPI RegEnumValue32W(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
6446 #define RegEnumValue WINELIB_NAME_AW(RegEnumValue)
6447 ATOM WINAPI RegisterClass16(const WNDCLASS16*);
6448 ATOM WINAPI RegisterClass32A(const WNDCLASS32A *);
6449 ATOM WINAPI RegisterClass32W(const WNDCLASS32W *);
6450 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
6451 ATOM WINAPI RegisterClassEx16(const WNDCLASSEX16*);
6452 ATOM WINAPI RegisterClassEx32A(const WNDCLASSEX32A *);
6453 ATOM WINAPI RegisterClassEx32W(const WNDCLASSEX32W *);
6454 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
6455 UINT16 WINAPI RegisterClipboardFormat16(LPCSTR);
6456 UINT32 WINAPI RegisterClipboardFormat32A(LPCSTR);
6457 UINT32 WINAPI RegisterClipboardFormat32W(LPCWSTR);
6458 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
6459 HRESULT WINAPI RegisterDragDrop16(HWND16,LPVOID);
6460 HRESULT WINAPI RegisterDragDrop32(HWND32,LPVOID);
6461 #define RegisterDragDrop WINELIB_NAME(RegisterDragDrop)
6462 WORD WINAPI RegisterWindowMessage16(SEGPTR);
6463 WORD WINAPI RegisterWindowMessage32A(LPCSTR);
6464 WORD WINAPI RegisterWindowMessage32W(LPCWSTR);
6465 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
6466 DWORD WINAPI RegOpenKey16(HKEY,LPCSTR,LPHKEY);
6467 DWORD WINAPI RegOpenKey32A(HKEY,LPCSTR,LPHKEY);
6468 DWORD WINAPI RegOpenKey32W(HKEY,LPCWSTR,LPHKEY);
6469 #define RegOpenKey WINELIB_NAME_AW(RegOpenKey)
6470 DWORD WINAPI RegQueryValue16(HKEY,LPSTR,LPSTR,LPDWORD);
6471 DWORD WINAPI RegQueryValue32A(HKEY,LPSTR,LPSTR,LPDWORD);
6472 DWORD WINAPI RegQueryValue32W(HKEY,LPWSTR,LPWSTR,LPDWORD);
6473 #define RegQueryValue WINELIB_NAME_AW(RegQueryValue)
6474 DWORD WINAPI RegQueryValueEx16(HKEY,LPSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
6475 DWORD WINAPI RegQueryValueEx32A(HKEY,LPSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
6476 DWORD WINAPI RegQueryValueEx32W(HKEY,LPWSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
6477 #define RegQueryValueEx WINELIB_NAME_AW(RegQueryValueEx)
6478 DWORD WINAPI RegSetValue16(HKEY,LPCSTR,DWORD,LPCSTR,DWORD);
6479 DWORD WINAPI RegSetValue32A(HKEY,LPCSTR,DWORD,LPCSTR,DWORD);
6480 DWORD WINAPI RegSetValue32W(HKEY,LPCWSTR,DWORD,LPCWSTR,DWORD);
6481 #define RegSetValue WINELIB_NAME_AW(RegSetValue)
6482 DWORD WINAPI RegSetValueEx16(HKEY,LPSTR,DWORD,DWORD,LPBYTE,DWORD);
6483 DWORD WINAPI RegSetValueEx32A(HKEY,LPSTR,DWORD,DWORD,LPBYTE,DWORD);
6484 DWORD WINAPI RegSetValueEx32W(HKEY,LPWSTR,DWORD,DWORD,LPBYTE,DWORD);
6485 #define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
6486 INT16 WINAPI ReleaseDC16(HWND16,HDC16);
6487 INT32 WINAPI ReleaseDC32(HWND32,HDC32);
6488 #define ReleaseDC WINELIB_NAME(ReleaseDC)
6489 BOOL16 WINAPI RemoveDirectory16(LPCSTR);
6490 BOOL32 WINAPI RemoveDirectory32A(LPCSTR);
6491 BOOL32 WINAPI RemoveDirectory32W(LPCWSTR);
6492 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
6493 BOOL16 WINAPI RemoveMenu16(HMENU16,UINT16,UINT16);
6494 BOOL32 WINAPI RemoveMenu32(HMENU32,UINT32,UINT32);
6495 #define RemoveMenu WINELIB_NAME(RemoveMenu)
6496 HANDLE16 WINAPI RemoveProp16(HWND16,LPCSTR);
6497 HANDLE32 WINAPI RemoveProp32A(HWND32,LPCSTR);
6498 HANDLE32 WINAPI RemoveProp32W(HWND32,LPCWSTR);
6499 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
6500 VOID WINAPI ReplyMessage16(LRESULT);
6501 BOOL32 WINAPI ReplyMessage32(LRESULT);
6502 #define ReplyMessage WINELIB_NAME(ReplyMessage)
6503 HRESULT WINAPI RevokeDragDrop16(HWND16);
6504 HRESULT WINAPI RevokeDragDrop32(HWND32);
6505 #define RevokeDragDrop WINELIB_NAME(RevokeDragDrop)
6506 void WINAPI ScreenToClient16(HWND16,LPPOINT16);
6507 void WINAPI ScreenToClient32(HWND32,LPPOINT32);
6508 #define ScreenToClient WINELIB_NAME(ScreenToClient)
6509 VOID WINAPI ScrollChildren16(HWND16,UINT16,WPARAM16,LPARAM);
6510 VOID WINAPI ScrollChildren32(HWND32,UINT32,WPARAM32,LPARAM);
6511 #define ScrollChildren WINELIB_NAME(ScrollChildren)
6512 BOOL16 WINAPI ScrollDC16(HDC16,INT16,INT16,const RECT16*,const RECT16*,
6513 HRGN16,LPRECT16);
6514 BOOL32 WINAPI ScrollDC32(HDC32,INT32,INT32,const RECT32*,const RECT32*,
6515 HRGN32,LPRECT32);
6516 #define ScrollDC WINELIB_NAME(ScrollDC)
6517 void WINAPI ScrollWindow16(HWND16,INT16,INT16,const RECT16*,const RECT16*);
6518 BOOL32 WINAPI ScrollWindow32(HWND32,INT32,INT32,const RECT32*,const RECT32*);
6519 #define ScrollWindow WINELIB_NAME(ScrollWindow)
6520 INT16 WINAPI ScrollWindowEx16(HWND16,INT16,INT16,const RECT16*,
6521 const RECT16*,HRGN16,LPRECT16,UINT16);
6522 INT32 WINAPI ScrollWindowEx32(HWND32,INT32,INT32,const RECT32*,
6523 const RECT32*,HRGN32,LPRECT32,UINT32);
6524 #define ScrollWindowEx WINELIB_NAME(ScrollWindowEx)
6525 LRESULT WINAPI SendDlgItemMessage16(HWND16,INT16,UINT16,WPARAM16,LPARAM);
6526 LRESULT WINAPI SendDlgItemMessage32A(HWND32,INT32,UINT32,WPARAM32,LPARAM);
6527 LRESULT WINAPI SendDlgItemMessage32W(HWND32,INT32,UINT32,WPARAM32,LPARAM);
6528 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
6529 LRESULT WINAPI SendMessage16(HWND16,UINT16,WPARAM16,LPARAM);
6530 LRESULT WINAPI SendMessage32A(HWND32,UINT32,WPARAM32,LPARAM);
6531 LRESULT WINAPI SendMessage32W(HWND32,UINT32,WPARAM32,LPARAM);
6532 #define SendMessage WINELIB_NAME_AW(SendMessage)
6533 LRESULT WINAPI SendMessageTimeout16(HWND16,UINT16,WPARAM16,LPARAM,UINT16,
6534 UINT16,LPWORD);
6535 LRESULT WINAPI SendMessageTimeout32A(HWND32,UINT32,WPARAM32,LPARAM,UINT32,
6536 UINT32,LPDWORD);
6537 LRESULT WINAPI SendMessageTimeout32W(HWND32,UINT32,WPARAM32,LPARAM,UINT32,
6538 UINT32,LPDWORD);
6539 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
6540 HWND16 WINAPI SetActiveWindow16(HWND16);
6541 HWND32 WINAPI SetActiveWindow32(HWND32);
6542 #define SetActiveWindow WINELIB_NAME(SetActiveWindow)
6543 HWND16 WINAPI SetCapture16(HWND16);
6544 HWND32 WINAPI SetCapture32(HWND32);
6545 #define SetCapture WINELIB_NAME(SetCapture)
6546 VOID WINAPI SetCaretBlinkTime16(UINT16);
6547 BOOL32 WINAPI SetCaretBlinkTime32(UINT32);
6548 #define SetCaretBlinkTime WINELIB_NAME(SetCaretBlinkTime)
6549 VOID WINAPI SetCaretPos16(INT16,INT16);
6550 BOOL32 WINAPI SetCaretPos32(INT32,INT32);
6551 #define SetCaretPos WINELIB_NAME(SetCaretPos)
6552 LONG WINAPI SetClassLong16(HWND16,INT16,LONG);
6553 LONG WINAPI SetClassLong32A(HWND32,INT32,LONG);
6554 LONG WINAPI SetClassLong32W(HWND32,INT32,LONG);
6555 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
6556 WORD WINAPI SetClassWord16(HWND16,INT16,WORD);
6557 WORD WINAPI SetClassWord32(HWND32,INT32,WORD);
6558 #define SetClassWord WINELIB_NAME(SetClassWord)
6559 HANDLE16 WINAPI SetClipboardData16(UINT16,HANDLE16);
6560 HANDLE32 WINAPI SetClipboardData32(UINT32,HANDLE32);
6561 #define SetClipboardData WINELIB_NAME(SetClipboardData)
6562 HWND16 WINAPI SetClipboardViewer16(HWND16);
6563 HWND32 WINAPI SetClipboardViewer32(HWND32);
6564 #define SetClipboardViewer WINELIB_NAME(SetClipboardViewer)
6565 INT16 WINAPI SetCommBreak16(INT16);
6566 BOOL32 WINAPI SetCommBreak32(INT32);
6567 #define SetCommBreak WINELIB_NAME(SetCommBreak)
6568 INT16 WINAPI SetCommState16(LPDCB16);
6569 BOOL32 WINAPI SetCommState32(INT32,LPDCB32);
6570 #define SetCommState WINELIB_NAME(SetCommState)
6571 BOOL16 WINAPI SetCurrentDirectory16(LPCSTR);
6572 BOOL32 WINAPI SetCurrentDirectory32A(LPCSTR);
6573 BOOL32 WINAPI SetCurrentDirectory32W(LPCWSTR);
6574 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
6575 HCURSOR16 WINAPI SetCursor16(HCURSOR16);
6576 HCURSOR32 WINAPI SetCursor32(HCURSOR32);
6577 #define SetCursor WINELIB_NAME(SetCursor)
6578 void WINAPI SetCursorPos16(INT16,INT16);
6579 BOOL32 WINAPI SetCursorPos32(INT32,INT32);
6580 #define SetCursorPos WINELIB_NAME(SetCursorPos)
6581 BOOL16 WINAPI SetDeskWallPaper16(LPCSTR);
6582 BOOL32 WINAPI SetDeskWallPaper32(LPCSTR);
6583 #define SetDeskWallPaper WINELIB_NAME(SetDeskWallPaper)
6584 void WINAPI SetDlgItemInt16(HWND16,INT16,UINT16,BOOL16);
6585 void WINAPI SetDlgItemInt32(HWND32,INT32,UINT32,BOOL32);
6586 #define SetDlgItemInt WINELIB_NAME(SetDlgItemInt)
6587 void WINAPI SetDlgItemText16(HWND16,INT16,SEGPTR);
6588 BOOL32 WINAPI SetDlgItemText32A(HWND32,INT32,LPCSTR);
6589 BOOL32 WINAPI SetDlgItemText32W(HWND32,INT32,LPCWSTR);
6590 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
6591 VOID WINAPI SetDoubleClickTime16(UINT16);
6592 BOOL32 WINAPI SetDoubleClickTime32(UINT32);
6593 #define SetDoubleClickTime WINELIB_NAME(SetDoubleClickTime)
6594 UINT16 WINAPI SetErrorMode16(UINT16);
6595 UINT32 WINAPI SetErrorMode32(UINT32);
6596 #define SetErrorMode WINELIB_NAME(SetErrorMode)
6597 BOOL16 WINAPI SetFileAttributes16(LPCSTR,DWORD);
6598 BOOL32 WINAPI SetFileAttributes32A(LPCSTR,DWORD);
6599 BOOL32 WINAPI SetFileAttributes32W(LPCWSTR,DWORD);
6600 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
6601 HWND16 WINAPI SetFocus16(HWND16);
6602 HWND32 WINAPI SetFocus32(HWND32);
6603 #define SetFocus WINELIB_NAME(SetFocus)
6604 BOOL16 WINAPI SetForegroundWindow16(HWND16);
6605 BOOL32 WINAPI SetForegroundWindow32(HWND32);
6606 #define SetForegroundWindow WINELIB_NAME(SetForegroundWindow)
6607 UINT16 WINAPI SetHandleCount16(UINT16);
6608 UINT32 WINAPI SetHandleCount32(UINT32);
6609 #define SetHandleCount WINELIB_NAME(SetHandleCount)
6610 void WINAPI SetInternalWindowPos16(HWND16,UINT16,LPRECT16,LPPOINT16);
6611 void WINAPI SetInternalWindowPos32(HWND32,UINT32,LPRECT32,LPPOINT32);
6612 #define SetInternalWindowPos WINELIB_NAME(SetInternalWindowPos)
6613 BOOL16 WINAPI SetMenu16(HWND16,HMENU16);
6614 BOOL32 WINAPI SetMenu32(HWND32,HMENU32);
6615 #define SetMenu WINELIB_NAME(SetMenu)
6616 BOOL16 WINAPI SetMenuContextHelpId16(HMENU16,DWORD);
6617 BOOL32 WINAPI SetMenuContextHelpId32(HMENU32,DWORD);
6618 #define SetMenuContextHelpId WINELIB_NAME(SetMenuContextHelpId)
6619 BOOL16 WINAPI SetMenuItemBitmaps16(HMENU16,UINT16,UINT16,HBITMAP16,HBITMAP16);
6620 BOOL32 WINAPI SetMenuItemBitmaps32(HMENU32,UINT32,UINT32,HBITMAP32,HBITMAP32);
6621 #define SetMenuItemBitmaps WINELIB_NAME(SetMenuItemBitmaps)
6622 BOOL16 WINAPI SetMessageQueue16(INT16);
6623 BOOL32 WINAPI SetMessageQueue32(INT32);
6624 #define SetMessageQueue WINELIB_NAME(SetMessageQueue)
6625 HWND16 WINAPI SetParent16(HWND16,HWND16);
6626 HWND32 WINAPI SetParent32(HWND32,HWND32);
6627 #define SetParent WINELIB_NAME(SetParent)
6628 BOOL16 WINAPI SetProp16(HWND16,LPCSTR,HANDLE16);
6629 BOOL32 WINAPI SetProp32A(HWND32,LPCSTR,HANDLE32);
6630 BOOL32 WINAPI SetProp32W(HWND32,LPCWSTR,HANDLE32);
6631 #define SetProp WINELIB_NAME_AW(SetProp)
6632 void WINAPI SetRect16(LPRECT16,INT16,INT16,INT16,INT16);
6633 void WINAPI SetRect32(LPRECT32,INT32,INT32,INT32,INT32);
6634 #define SetRect WINELIB_NAME(SetRect)
6635 void WINAPI SetRectEmpty16(LPRECT16);
6636 void WINAPI SetRectEmpty32(LPRECT32);
6637 #define SetRectEmpty WINELIB_NAME(SetRectEmpty)
6638 INT16 WINAPI SetScrollInfo16(HWND16,INT16,const SCROLLINFO*,BOOL16);
6639 INT32 WINAPI SetScrollInfo32(HWND32,INT32,const SCROLLINFO*,BOOL32);
6640 #define SetScrollInfo WINELIB_NAME(SetScrollInfo)
6641 INT16 WINAPI SetScrollPos16(HWND16,INT16,INT16,BOOL16);
6642 INT32 WINAPI SetScrollPos32(HWND32,INT32,INT32,BOOL32);
6643 #define SetScrollPos WINELIB_NAME(SetScrollPos)
6644 void WINAPI SetScrollRange16(HWND16,INT16,INT16,INT16,BOOL16);
6645 BOOL32 WINAPI SetScrollRange32(HWND32,INT32,INT32,INT32,BOOL32);
6646 #define SetScrollRange WINELIB_NAME(SetScrollRange)
6647 INT16 WINAPI SetSoundNoise16(INT16,INT16);
6648 DWORD WINAPI SetSoundNoise32(DWORD,DWORD);
6649 #define SetSoundNoise WINELIB_NAME(SetSoundNoise)
6650 LONG WINAPI SetSwapAreaSize16(WORD);
6651 #define SetSwapAreaSize32(w) (w)
6652 #define SetSwapAreaSize WINELIB_NAME(SetSwapAreaSize)
6653 HWND16 WINAPI SetSysModalWindow16(HWND16);
6654 #define SetSysModalWindow32(hwnd) ((HWND32)0)
6655 #define SetSysModalWindow WINELIB_NAME(SetSysModalWindow)
6656 BOOL16 WINAPI SetSystemMenu16(HWND16,HMENU16);
6657 BOOL32 WINAPI SetSystemMenu32(HWND32,HMENU32);
6658 #define SetSystemMenu WINELIB_NAME(SetSystemMenu)
6659 UINT16 WINAPI SetSystemTimer16(HWND16,UINT16,UINT16,TIMERPROC16);
6660 UINT32 WINAPI SetSystemTimer32(HWND32,UINT32,UINT32,TIMERPROC32);
6661 #define SetSystemTimer WINELIB_NAME(SetSystemTimer)
6662 UINT16 WINAPI SetTimer16(HWND16,UINT16,UINT16,TIMERPROC16);
6663 UINT32 WINAPI SetTimer32(HWND32,UINT32,UINT32,TIMERPROC32);
6664 #define SetTimer WINELIB_NAME(SetTimer)
6665 INT16 WINAPI SetVoiceAccent16(INT16,INT16,INT16,INT16,INT16);
6666 DWORD WINAPI SetVoiceAccent32(DWORD,DWORD,DWORD,DWORD,DWORD);
6667 #define SetVoiceAccent WINELIB_NAME(SetVoiceAccent)
6668 INT16 WINAPI SetVoiceEnvelope16(INT16,INT16,INT16);
6669 DWORD WINAPI SetVoiceEnvelope32(DWORD,DWORD,DWORD);
6670 #define SetVoiceEnvelope WINELIB_NAME(SetVoiceEnvelope)
6671 INT16 WINAPI SetVoiceNote16(INT16,INT16,INT16,INT16);
6672 DWORD WINAPI SetVoiceNote32(DWORD,DWORD,DWORD,DWORD);
6673 #define SetVoiceNote WINELIB_NAME(SetVoiceNote)
6674 INT16 WINAPI SetVoiceQueueSize16(INT16,INT16);
6675 DWORD WINAPI SetVoiceQueueSize32(DWORD,DWORD);
6676 #define SetVoiceQueueSize WINELIB_NAME(SetVoiceQueueSize)
6677 INT16 WINAPI SetVoiceSound16(INT16,DWORD,INT16);
6678 DWORD WINAPI SetVoiceSound32(DWORD,DWORD,DWORD);
6679 #define SetVoiceSound WINELIB_NAME(SetVoiceSound)
6680 INT16 WINAPI SetVoiceThreshold16(INT16,INT16);
6681 DWORD WINAPI SetVoiceThreshold32(DWORD,DWORD);
6682 #define SetVoiceThreshold WINELIB_NAME(SetVoiceThreshold)
6683 LONG WINAPI SetWindowLong16(HWND16,INT16,LONG);
6684 LONG WINAPI SetWindowLong32A(HWND32,INT32,LONG);
6685 LONG WINAPI SetWindowLong32W(HWND32,INT32,LONG);
6686 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
6687 BOOL16 WINAPI SetWindowPlacement16(HWND16,const WINDOWPLACEMENT16*);
6688 BOOL32 WINAPI SetWindowPlacement32(HWND32,const WINDOWPLACEMENT32*);
6689 #define SetWindowPlacement WINELIB_NAME(SetWindowPlacement)
6690 FARPROC16 WINAPI SetWindowsHook16(INT16,HOOKPROC16);
6691 HHOOK WINAPI SetWindowsHook32A(INT32,HOOKPROC32);
6692 HHOOK WINAPI SetWindowsHook32W(INT32,HOOKPROC32);
6693 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
6694 HHOOK WINAPI SetWindowsHookEx16(INT16,HOOKPROC16,HINSTANCE16,HTASK16);
6695 HHOOK WINAPI SetWindowsHookEx32A(INT32,HOOKPROC32,HINSTANCE32,DWORD);
6696 HHOOK WINAPI SetWindowsHookEx32W(INT32,HOOKPROC32,HINSTANCE32,DWORD);
6697 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
6698 BOOL16 WINAPI SetWindowPos16(HWND16,HWND16,INT16,INT16,INT16,INT16,WORD);
6699 BOOL32 WINAPI SetWindowPos32(HWND32,HWND32,INT32,INT32,INT32,INT32,WORD);
6700 #define SetWindowPos WINELIB_NAME(SetWindowPos)
6701 INT16 WINAPI SetWindowRgn16(HWND16,HRGN16,BOOL16);
6702 INT32 WINAPI SetWindowRgn32(HWND32,HRGN32,BOOL32);
6703 #define SetWindowRgn WINELIB_NAME(SetWindowRgn)
6704 BOOL16 WINAPI SetWindowText16(HWND16,SEGPTR);
6705 BOOL32 WINAPI SetWindowText32A(HWND32,LPCSTR);
6706 BOOL32 WINAPI SetWindowText32W(HWND32,LPCWSTR);
6707 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
6708 WORD WINAPI SetWindowWord16(HWND16,INT16,WORD);
6709 WORD WINAPI SetWindowWord32(HWND32,INT32,WORD);
6710 #define SetWindowWord WINELIB_NAME(SetWindowWord)
6711 BOOL16 WINAPI ShellAbout16(HWND16,LPCSTR,LPCSTR,HICON16);
6712 BOOL32 WINAPI ShellAbout32A(HWND32,LPCSTR,LPCSTR,HICON32);
6713 BOOL32 WINAPI ShellAbout32W(HWND32,LPCWSTR,LPCWSTR,HICON32);
6714 #define ShellAbout WINELIB_NAME_AW(ShellAbout)
6715 HINSTANCE16 WINAPI ShellExecute16(HWND16,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT16);
6716 HINSTANCE32 WINAPI ShellExecute32A(HWND32,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT32);
6717 HINSTANCE32 WINAPI ShellExecute32W(HWND32,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT32);
6718 #define ShellExecute WINELIB_NAME_AW(ShellExecute)
6719 VOID WINAPI ShowCaret16(HWND16);
6720 BOOL32 WINAPI ShowCaret32(HWND32);
6721 #define ShowCaret WINELIB_NAME(ShowCaret)
6722 INT16 WINAPI ShowCursor16(BOOL16);
6723 INT32 WINAPI ShowCursor32(BOOL32);
6724 #define ShowCursor WINELIB_NAME(ShowCursor)
6725 void WINAPI ShowScrollBar16(HWND16,INT16,BOOL16);
6726 BOOL32 WINAPI ShowScrollBar32(HWND32,INT32,BOOL32);
6727 #define ShowScrollBar WINELIB_NAME(ShowScrollBar)
6728 VOID WINAPI ShowOwnedPopups16(HWND16,BOOL16);
6729 BOOL32 WINAPI ShowOwnedPopups32(HWND32,BOOL32);
6730 #define ShowOwnedPopups WINELIB_NAME(ShowOwnedPopups)
6731 BOOL16 WINAPI ShowWindow16(HWND16,INT16);
6732 BOOL32 WINAPI ShowWindow32(HWND32,INT32);
6733 #define ShowWindow WINELIB_NAME(ShowWindow)
6734 DWORD WINAPI SizeofResource16(HMODULE16,HRSRC16);
6735 DWORD WINAPI SizeofResource32(HMODULE32,HRSRC32);
6736 #define SizeofResource WINELIB_NAME(SizeofResource)
6737 INT16 WINAPI StartSound16(void);
6738 VOID WINAPI StartSound32(void);
6739 #define StartSound WINELIB_NAME(StartSound)
6740 INT16 WINAPI StopSound16(void);
6741 VOID WINAPI StopSound32(void);
6742 #define StopSound WINELIB_NAME(StopSound)
6743 BOOL16 WINAPI SubtractRect16(LPRECT16,const RECT16*,const RECT16*);
6744 BOOL32 WINAPI SubtractRect32(LPRECT32,const RECT32*,const RECT32*);
6745 #define SubtractRect WINELIB_NAME(SubtractRect)
6746 BOOL16 WINAPI SwapMouseButton16(BOOL16);
6747 BOOL32 WINAPI SwapMouseButton32(BOOL32);
6748 #define SwapMouseButton WINELIB_NAME(SwapMouseButton)
6749 VOID WINAPI SwitchToThisWindow16(HWND16,BOOL16);
6750 VOID WINAPI SwitchToThisWindow32(HWND32,BOOL32);
6751 #define SwitchToThisWindow WINELIB_NAME(SwitchToThisWindow)
6752 INT16 WINAPI SyncAllVoices16(void);
6753 DWORD WINAPI SyncAllVoices32(void);
6754 #define SyncAllVoices WINELIB_NAME(SyncAllVoices)
6755 BOOL16 WINAPI SystemParametersInfo16(UINT16,UINT16,LPVOID,UINT16);
6756 BOOL32 WINAPI SystemParametersInfo32A(UINT32,UINT32,LPVOID,UINT32);
6757 BOOL32 WINAPI SystemParametersInfo32W(UINT32,UINT32,LPVOID,UINT32);
6758 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
6759 LONG WINAPI TabbedTextOut16(HDC16,INT16,INT16,LPCSTR,INT16,INT16,const INT16*,INT16);
6760 LONG WINAPI TabbedTextOut32A(HDC32,INT32,INT32,LPCSTR,INT32,INT32,const INT32*,INT32);
6761 LONG WINAPI TabbedTextOut32W(HDC32,INT32,INT32,LPCWSTR,INT32,INT32,const INT32*,INT32);
6762 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
6763 INT16 WINAPI ToAscii16(UINT16,UINT16,LPBYTE,LPVOID,UINT16);
6764 INT32 WINAPI ToAscii32(UINT32,UINT32,LPBYTE,LPWORD,UINT32);
6765 #define ToAscii WINELIB_NAME(ToAscii)
6766 BOOL16 WINAPI TrackPopupMenu16(HMENU16,UINT16,INT16,INT16,INT16,HWND16,const RECT16*);
6767 BOOL32 WINAPI TrackPopupMenu32(HMENU32,UINT32,INT32,INT32,INT32,HWND32,const RECT32*);
6768 #define TrackPopupMenu WINELIB_NAME(TrackPopupMenu)
6769 INT16 WINAPI TranslateAccelerator16(HWND16,HACCEL16,LPMSG16);
6770 INT32 WINAPI TranslateAccelerator32(HWND32,HACCEL32,LPMSG32);
6771 #define TranslateAccelerator WINELIB_NAME(TranslateAccelerator)
6772 BOOL16 WINAPI TranslateMDISysAccel16(HWND16,LPMSG16);
6773 BOOL32 WINAPI TranslateMDISysAccel32(HWND32,LPMSG32);
6774 #define TranslateMDISysAccel WINELIB_NAME(TranslateMDISysAccel)
6775 BOOL16 WINAPI TranslateMessage16(const MSG16*);
6776 BOOL32 WINAPI TranslateMessage32(const MSG32*);
6777 #define TranslateMessage WINELIB_NAME(TranslateMessage)
6778 INT16 WINAPI TransmitCommChar16(INT16,CHAR);
6779 BOOL32 WINAPI TransmitCommChar32(INT32,CHAR);
6780 #define TransmitCommChar WINELIB_NAME(TransmitCommChar)
6781 BOOL16 WINAPI UnhookWindowsHook16(INT16,HOOKPROC16);
6782 BOOL32 WINAPI UnhookWindowsHook32(INT32,HOOKPROC32);
6783 #define UnhookWindowsHook WINELIB_NAME(UnhookWindowsHook)
6784 BOOL16 WINAPI UnhookWindowsHookEx16(HHOOK);
6785 BOOL32 WINAPI UnhookWindowsHookEx32(HHOOK);
6786 #define UnhookWindowsHookEx WINELIB_NAME(UnhookWindowsHookEx)
6787 BOOL16 WINAPI UnionRect16(LPRECT16,const RECT16*,const RECT16*);
6788 BOOL32 WINAPI UnionRect32(LPRECT32,const RECT32*,const RECT32*);
6789 #define UnionRect WINELIB_NAME(UnionRect)
6790 void WINAPI UnlockSegment16(HGLOBAL16);
6791 #define UnlockSegment32(handle) GlobalUnfix((HANDLE32)(handle))
6792 #define UnlockSegment WINELIB_NAME(UnlockSegment)
6793 BOOL16 WINAPI UnregisterClass16(SEGPTR,HINSTANCE16);
6794 BOOL32 WINAPI UnregisterClass32A(LPCSTR,HINSTANCE32);
6795 BOOL32 WINAPI UnregisterClass32W(LPCWSTR,HINSTANCE32);
6796 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
6797 VOID WINAPI UpdateWindow16(HWND16);
6798 VOID WINAPI UpdateWindow32(HWND32);
6799 #define UpdateWindow WINELIB_NAME(UpdateWindow)
6800 VOID WINAPI ValidateRect16(HWND16,const RECT16*);
6801 VOID WINAPI ValidateRect32(HWND32,const RECT32*);
6802 #define ValidateRect WINELIB_NAME(ValidateRect)
6803 VOID WINAPI ValidateRgn16(HWND16,HRGN16);
6804 VOID WINAPI ValidateRgn32(HWND32,HRGN32);
6805 #define ValidateRgn WINELIB_NAME(ValidateRgn)
6806 DWORD WINAPI VerFindFile16(UINT16,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16*,LPSTR,UINT16*);
6807 DWORD WINAPI VerFindFile32A(UINT32,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT32*,LPSTR,UINT32*);
6808 DWORD WINAPI VerFindFile32W(UINT32,LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT32*,LPWSTR,UINT32*);
6809 #define VerFindFile WINELIB_NAME_AW(VerFindFile)
6810 DWORD WINAPI VerInstallFile16(UINT16,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16*);
6811 DWORD WINAPI VerInstallFile32A(UINT32,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT32*);
6812 DWORD WINAPI VerInstallFile32W(UINT32,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT32*);
6813 #define VerInstallFile WINELIB_NAME_AW(VerInstallFile)
6814 DWORD WINAPI VerLanguageName16(UINT16,LPSTR,UINT16);
6815 DWORD WINAPI VerLanguageName32A(UINT32,LPSTR,UINT32);
6816 DWORD WINAPI VerLanguageName32W(UINT32,LPWSTR,UINT32);
6817 #define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
6818 DWORD WINAPI VerQueryValue16(SEGPTR,LPCSTR,SEGPTR*,UINT16*);
6819 DWORD WINAPI VerQueryValue32A(LPVOID,LPCSTR,LPVOID*,UINT32*);
6820 DWORD WINAPI VerQueryValue32W(LPVOID,LPCWSTR,LPVOID*,UINT32*);
6821 #define VerQueryValue WINELIB_NAME_AW(VerQueryValue)
6822 WORD WINAPI VkKeyScan16(CHAR);
6823 WORD WINAPI VkKeyScan32A(CHAR);
6824 WORD WINAPI VkKeyScan32W(WCHAR);
6825 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
6826 INT16 WINAPI WaitSoundState16(INT16);
6827 DWORD WINAPI WaitSoundState32(DWORD);
6828 #define WaitSoundState WINELIB_NAME(WaitSoundState)
6829 HWND16 WINAPI WindowFromDC16(HDC16);
6830 HWND32 WINAPI WindowFromDC32(HDC32);
6831 #define WindowFromDC WINELIB_NAME(WindowFromDC)
6832 HWND16 WINAPI WindowFromPoint16(POINT16);
6833 HWND32 WINAPI WindowFromPoint32(POINT32);
6834 #define WindowFromPoint WINELIB_NAME(WindowFromPoint)
6835 BOOL16 WINAPI WritePrivateProfileSection16(LPCSTR,LPCSTR,LPCSTR);
6836 BOOL32 WINAPI WritePrivateProfileSection32A(LPCSTR,LPCSTR,LPCSTR);
6837 BOOL32 WINAPI WritePrivateProfileSection32W(LPCWSTR,LPCWSTR,LPCWSTR);
6838 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
6839 BOOL16 WINAPI WritePrivateProfileString16(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
6840 BOOL32 WINAPI WritePrivateProfileString32A(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
6841 BOOL32 WINAPI WritePrivateProfileString32W(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
6842 BOOL32 WINAPI WriteProfileSection32A(LPCSTR,LPCSTR);
6843 BOOL32 WINAPI WriteProfileSection32W(LPCWSTR,LPCWSTR);
6844 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
6845 BOOL16 WINAPI WritePrivateProfileStruct16(LPCSTR,LPCSTR,LPVOID,UINT16,LPCSTR);
6846 BOOL32 WINAPI WritePrivateProfileStruct32A(LPCSTR,LPCSTR,LPVOID,UINT32,LPCSTR);
6847 BOOL32 WINAPI WritePrivateProfileStruct32W(LPCWSTR,LPCWSTR,LPVOID,UINT32,LPCWSTR);
6848 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
6849 BOOL16 WINAPI WriteProfileString16(LPCSTR,LPCSTR,LPCSTR);
6850 BOOL32 WINAPI WriteProfileString32A(LPCSTR,LPCSTR,LPCSTR);
6851 BOOL32 WINAPI WriteProfileString32W(LPCWSTR,LPCWSTR,LPCWSTR);
6852 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
6853 VOID WINAPI Yield16(void);
6854 #define Yield32()
6855 #define Yield WINELIB_NAME(Yield)
6856 SEGPTR WINAPI lstrcat16(SEGPTR,LPCSTR);
6857 LPSTR WINAPI lstrcat32A(LPSTR,LPCSTR);
6858 LPWSTR WINAPI lstrcat32W(LPWSTR,LPCWSTR);
6859 #define lstrcat WINELIB_NAME_AW(lstrcat)
6860 SEGPTR WINAPI lstrcatn16(SEGPTR,LPCSTR,INT16);
6861 LPSTR WINAPI lstrcatn32A(LPSTR,LPCSTR,INT32);
6862 LPWSTR WINAPI lstrcatn32W(LPWSTR,LPCWSTR,INT32);
6863 #define lstrcatn WINELIB_NAME_AW(lstrcatn)
6864 INT16 WINAPI lstrcmp16(LPCSTR,LPCSTR);
6865 INT32 WINAPI lstrcmp32A(LPCSTR,LPCSTR);
6866 INT32 WINAPI lstrcmp32W(LPCWSTR,LPCWSTR);
6867 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
6868 INT16 WINAPI lstrcmpi16(LPCSTR,LPCSTR);
6869 INT32 WINAPI lstrcmpi32A(LPCSTR,LPCSTR);
6870 INT32 WINAPI lstrcmpi32W(LPCWSTR,LPCWSTR);
6871 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
6872 SEGPTR WINAPI lstrcpy16(SEGPTR,LPCSTR);
6873 LPSTR WINAPI lstrcpy32A(LPSTR,LPCSTR);
6874 LPWSTR WINAPI lstrcpy32W(LPWSTR,LPCWSTR);
6875 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
6876 SEGPTR WINAPI lstrcpyn16(SEGPTR,LPCSTR,INT16);
6877 LPSTR WINAPI lstrcpyn32A(LPSTR,LPCSTR,INT32);
6878 LPWSTR WINAPI lstrcpyn32W(LPWSTR,LPCWSTR,INT32);
6879 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
6880 INT16 WINAPI lstrlen16(LPCSTR);
6881 INT32 WINAPI lstrlen32A(LPCSTR);
6882 INT32 WINAPI lstrlen32W(LPCWSTR);
6883 #define lstrlen WINELIB_NAME_AW(lstrlen)
6884 HINSTANCE16 WINAPI WinExec16(LPCSTR,UINT16);
6885 HINSTANCE32 WINAPI WinExec32(LPCSTR,UINT32);
6886 #define WinExec WINELIB_NAME(WinExec)
6887 BOOL16 WINAPI WinHelp16(HWND16,LPCSTR,UINT16,DWORD);
6888 BOOL32 WINAPI WinHelp32A(HWND32,LPCSTR,UINT32,DWORD);
6889 BOOL32 WINAPI WinHelp32W(HWND32,LPCWSTR,UINT32,DWORD);
6890 #define WinHelp WINELIB_NAME_AW(WinHelp)
6891 UINT16 WINAPI WNetAddConnection16(LPCSTR,LPCSTR,LPCSTR);
6892 UINT32 WINAPI WNetAddConnection32A(LPCSTR,LPCSTR,LPCSTR);
6893 UINT32 WINAPI WNetAddConnection32W(LPCWSTR,LPCWSTR,LPCWSTR);
6894 #define WNetAddConnection WINELIB_NAME_AW(WNetAddConnection)
6895 INT16 WINAPIV wsnprintf16(LPSTR,UINT16,LPCSTR,...);
6896 INT32 WINAPIV wsnprintf32A(LPSTR,UINT32,LPCSTR,...);
6897 INT32 WINAPIV wsnprintf32W(LPWSTR,UINT32,LPCWSTR,...);
6898 #define wsnprintf WINELIB_NAME_AW(wsnprintf)
6899 INT16 WINAPIV wsprintf16(LPSTR,LPCSTR,...);
6900 INT32 WINAPIV wsprintf32A(LPSTR,LPCSTR,...);
6901 INT32 WINAPIV wsprintf32W(LPWSTR,LPCWSTR,...);
6902 #define wsprintf WINELIB_NAME_AW(wsprintf)
6903 INT16 WINAPI wvsnprintf16(LPSTR,UINT16,LPCSTR,LPCVOID);
6904 INT32 WINAPI wvsnprintf32A(LPSTR,UINT32,LPCSTR,va_list);
6905 INT32 WINAPI wvsnprintf32W(LPWSTR,UINT32,LPCWSTR,va_list);
6906 #define wvsnprintf WINELIB_NAME_AW(wvsnprintf)
6907 INT16 WINAPI wvsprintf16(LPSTR,LPCSTR,LPCVOID);
6908 INT32 WINAPI wvsprintf32A(LPSTR,LPCSTR,va_list);
6909 INT32 WINAPI wvsprintf32W(LPWSTR,LPCWSTR,va_list);
6910 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
6911 LONG WINAPI _hread16(HFILE16,LPVOID,LONG);
6912 LONG WINAPI _hread32(HFILE32,LPVOID,LONG);
6913 #define _hread WINELIB_NAME(_hread)
6914 LONG WINAPI _hwrite16(HFILE16,LPCSTR,LONG);
6915 LONG WINAPI _hwrite32(HFILE32,LPCSTR,LONG);
6916 #define _hwrite WINELIB_NAME(_hwrite)
6917 HFILE16 WINAPI _lcreat16(LPCSTR,INT16);
6918 HFILE32 WINAPI _lcreat32(LPCSTR,INT32);
6919 #define _lcreat WINELIB_NAME(_lcreat)
6920 HFILE16 WINAPI _lclose16(HFILE16);
6921 HFILE32 WINAPI _lclose32(HFILE32);
6922 #define _lclose WINELIB_NAME(_lclose)
6923 LONG WINAPI _llseek16(HFILE16,LONG,INT16);
6924 LONG WINAPI _llseek32(HFILE32,LONG,INT32);
6925 #define _llseek WINELIB_NAME(_llseek)
6926 HFILE16 WINAPI _lopen16(LPCSTR,INT16);
6927 HFILE32 WINAPI _lopen32(LPCSTR,INT32);
6928 #define _lopen WINELIB_NAME(_lopen)
6929 UINT16 WINAPI _lread16(HFILE16,LPVOID,UINT16);
6930 UINT32 WINAPI _lread32(HFILE32,LPVOID,UINT32);
6931 #define _lread WINELIB_NAME(_lread)
6932 UINT16 WINAPI _lwrite16(HFILE16,LPCSTR,UINT16);
6933 UINT32 WINAPI _lwrite32(HFILE32,LPCSTR,UINT32);
6934 #define _lwrite WINELIB_NAME(_lwrite)
6936 /* Extra functions that don't exist in the Windows API */
6938 HPEN16 WINAPI GetSysColorPen16(INT16);
6939 HPEN32 WINAPI GetSysColorPen32(INT32);
6940 INT32 WINAPI LoadMessage32A(HMODULE32,UINT32,WORD,LPSTR,INT32);
6941 INT32 WINAPI LoadMessage32W(HMODULE32,UINT32,WORD,LPWSTR,INT32);
6942 UINT32 WINAPI WIN16_GetTempDrive(BYTE);
6943 SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
6944 SEGPTR WINAPI WIN16_LockResource16(HGLOBAL16);
6945 LONG WINAPI WIN16_hread(HFILE16,SEGPTR,LONG);
6946 UINT16 WINAPI WIN16_lread(HFILE16,SEGPTR,UINT16);
6947 INT32 WINAPI lstrncmp32A(LPCSTR,LPCSTR,INT32);
6948 INT32 WINAPI lstrncmp32W(LPCWSTR,LPCWSTR,INT32);
6949 INT32 WINAPI lstrncmpi32A(LPCSTR,LPCSTR,INT32);
6950 INT32 WINAPI lstrncmpi32W(LPCWSTR,LPCWSTR,INT32);
6951 LPWSTR WINAPI lstrcpyAtoW(LPWSTR,LPCSTR);
6952 LPSTR WINAPI lstrcpyWtoA(LPSTR,LPCWSTR);
6953 LPWSTR WINAPI lstrcpynAtoW(LPWSTR,LPCSTR,INT32);
6954 LPSTR WINAPI lstrcpynWtoA(LPSTR,LPCWSTR,INT32);
6956 #ifdef __cplusplus
6958 #endif
6960 #endif /* __WINE_WINDOWS_H */