Release 961222
[wine/gsoc-2012-control.git] / include / windows.h
blobbe336a8d03b5f43ca75f882e0fedd5663592fb24
1 #ifndef __WINE_WINDOWS_H
2 #define __WINE_WINDOWS_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include "wintypes.h"
9 #include "winuser.h"
11 #pragma pack(1)
13 /* The SIZE structure */
15 typedef struct
17 INT16 cx;
18 INT16 cy;
19 } SIZE16, *LPSIZE16;
21 typedef struct
23 INT32 cx;
24 INT32 cy;
25 } SIZE32, *LPSIZE32;
27 DECL_WINELIB_TYPE(SIZE);
28 DECL_WINELIB_TYPE(LPSIZE);
30 #define CONV_SIZE16TO32(s16,s32) \
31 ((s32)->cx = (INT32)(s16)->cx, (s32)->cy = (INT32)(s16)->cy)
32 #define CONV_SIZE32TO16(s32,s16) \
33 ((s16)->cx = (INT16)(s32)->cx, (s16)->cy = (INT16)(s32)->cy)
35 /* The POINT structure */
37 typedef struct
39 INT16 x;
40 INT16 y;
41 } POINT16, *LPPOINT16;
43 typedef struct
45 INT32 x;
46 INT32 y;
47 } POINT32, *LPPOINT32;
49 DECL_WINELIB_TYPE(POINT);
50 DECL_WINELIB_TYPE(LPPOINT);
52 #define CONV_POINT16TO32(p16,p32) \
53 ((p32)->x = (INT32)(p16)->x, (p32)->y = (INT32)(p16)->y)
54 #define CONV_POINT32TO16(p32,p16) \
55 ((p16)->x = (INT16)(p32)->x, (p16)->y = (INT16)(p32)->y)
57 #define MAKEPOINT16(l) (*((POINT16 *)&(l)))
58 #define MAKEPOINT WINELIB_NAME(MAKEPOINT)
60 /* The RECT structure */
62 typedef struct
64 INT16 left;
65 INT16 top;
66 INT16 right;
67 INT16 bottom;
68 } RECT16, *LPRECT16;
70 typedef struct
72 INT32 left;
73 INT32 top;
74 INT32 right;
75 INT32 bottom;
76 } RECT32, *LPRECT32;
78 DECL_WINELIB_TYPE(RECT);
79 DECL_WINELIB_TYPE(LPRECT);
81 #define CONV_RECT16TO32(r16,r32) \
82 ((r32)->left = (INT32)(r16)->left, (r32)->top = (INT32)(r16)->top, \
83 (r32)->right = (INT32)(r16)->right, (r32)->bottom = (INT32)(r16)->bottom)
84 #define CONV_RECT32TO16(r32,r16) \
85 ((r16)->left = (INT16)(r32)->left, (r16)->top = (INT16)(r32)->top, \
86 (r16)->right = (INT16)(r32)->right, (r16)->bottom = (INT16)(r32)->bottom)
88 typedef struct
90 WORD wFirst;
91 WORD wSecond;
92 INT16 iKernAmount;
93 } KERNINGPAIR16, *LPKERNINGPAIR16;
95 typedef struct
97 WORD wFirst;
98 WORD wSecond;
99 INT32 iKernAmount;
100 } KERNINGPAIR32, *LPKERNINGPAIR32;
102 DECL_WINELIB_TYPE(KERNINGPAIR);
103 DECL_WINELIB_TYPE(LPKERNINGPAIR);
105 typedef struct
107 HDC16 hdc;
108 BOOL16 fErase;
109 RECT16 rcPaint;
110 BOOL16 fRestore;
111 BOOL16 fIncUpdate;
112 BYTE rgbReserved[16];
113 } PAINTSTRUCT16, *LPPAINTSTRUCT16;
115 typedef struct
117 HDC32 hdc;
118 BOOL32 fErase;
119 RECT32 rcPaint;
120 BOOL32 fRestore;
121 BOOL32 fIncUpdate;
122 BYTE rgbReserved[32];
123 } PAINTSTRUCT32, *LPPAINTSTRUCT32;
125 DECL_WINELIB_TYPE(PAINTSTRUCT);
126 DECL_WINELIB_TYPE(LPPAINTSTRUCT);
129 /* Windows */
131 typedef struct
133 LPVOID lpCreateParams;
134 HINSTANCE16 hInstance;
135 HMENU16 hMenu;
136 HWND16 hwndParent;
137 INT16 cy;
138 INT16 cx;
139 INT16 y;
140 INT16 x;
141 LONG style WINE_PACKED;
142 SEGPTR lpszName WINE_PACKED;
143 SEGPTR lpszClass WINE_PACKED;
144 DWORD dwExStyle WINE_PACKED;
145 } CREATESTRUCT16, *LPCREATESTRUCT16;
147 typedef struct
149 LPVOID lpCreateParams;
150 HINSTANCE32 hInstance;
151 HMENU32 hMenu;
152 HWND32 hwndParent;
153 INT32 cy;
154 INT32 cx;
155 INT32 y;
156 INT32 x;
157 LONG style;
158 LPCSTR lpszName;
159 LPCSTR lpszClass;
160 DWORD dwExStyle;
161 } CREATESTRUCT32A, *LPCREATESTRUCT32A;
163 typedef struct
165 LPVOID lpCreateParams;
166 HINSTANCE32 hInstance;
167 HMENU32 hMenu;
168 HWND32 hwndParent;
169 INT32 cy;
170 INT32 cx;
171 INT32 y;
172 INT32 x;
173 LONG style;
174 LPCWSTR lpszName;
175 LPCWSTR lpszClass;
176 DWORD dwExStyle;
177 } CREATESTRUCT32W, *LPCREATESTRUCT32W;
179 DECL_WINELIB_TYPE_AW(CREATESTRUCT);
180 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT);
182 typedef struct
184 HMENU16 hWindowMenu;
185 UINT16 idFirstChild;
186 } CLIENTCREATESTRUCT16, *LPCLIENTCREATESTRUCT16;
188 typedef struct
190 HMENU32 hWindowMenu;
191 UINT32 idFirstChild;
192 } CLIENTCREATESTRUCT32, *LPCLIENTCREATESTRUCT32;
194 DECL_WINELIB_TYPE(CLIENTCREATESTRUCT);
195 DECL_WINELIB_TYPE(LPCLIENTCREATESTRUCT);
197 typedef struct
199 SEGPTR szClass;
200 SEGPTR szTitle;
201 HINSTANCE16 hOwner;
202 INT16 x;
203 INT16 y;
204 INT16 cx;
205 INT16 cy;
206 DWORD style WINE_PACKED;
207 LPARAM lParam WINE_PACKED;
208 } MDICREATESTRUCT16, *LPMDICREATESTRUCT16;
210 typedef struct
212 LPCSTR szClass;
213 LPCSTR szTitle;
214 HINSTANCE32 hOwner;
215 INT32 x;
216 INT32 y;
217 INT32 cx;
218 INT32 cy;
219 DWORD style;
220 LPARAM lParam;
221 } MDICREATESTRUCT32A, *LPMDICREATESTRUCT32A;
223 typedef struct
225 LPCWSTR szClass;
226 LPCWSTR szTitle;
227 HINSTANCE32 hOwner;
228 INT32 x;
229 INT32 y;
230 INT32 cx;
231 INT32 cy;
232 DWORD style;
233 LPARAM lParam;
234 } MDICREATESTRUCT32W, *LPMDICREATESTRUCT32W;
236 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT);
237 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT);
239 #define MDITILE_VERTICAL 0
240 #define MDITILE_HORIZONTAL 1
241 #define MDIS_ALLCHILDSTYLES 0x0001
243 /* Offsets for GetWindowLong() and GetWindowWord() */
244 #define GWL_USERDATA (-21)
245 #define GWL_EXSTYLE (-20)
246 #define GWL_STYLE (-16)
247 #define GWW_ID (-12)
248 #define GWL_ID GWW_ID
249 #define GWW_HWNDPARENT (-8)
250 #define GWL_HWNDPARENT GWW_HWNDPARENT
251 #define GWW_HINSTANCE (-6)
252 #define GWL_HINSTANCE GWW_HINSTANCE
253 #define GWL_WNDPROC (-4)
254 #define DWL_MSGRESULT 0
255 #define DWL_DLGPROC 4
256 #define DWL_USER 8
258 /* GetWindow() constants */
259 #define GW_HWNDFIRST 0
260 #define GW_HWNDLAST 1
261 #define GW_HWNDNEXT 2
262 #define GW_HWNDPREV 3
263 #define GW_OWNER 4
264 #define GW_CHILD 5
266 /* WM_GETMINMAXINFO struct */
267 typedef struct
269 POINT16 ptReserved;
270 POINT16 ptMaxSize;
271 POINT16 ptMaxPosition;
272 POINT16 ptMinTrackSize;
273 POINT16 ptMaxTrackSize;
274 } MINMAXINFO16;
276 typedef struct
278 POINT32 ptReserved;
279 POINT32 ptMaxSize;
280 POINT32 ptMaxPosition;
281 POINT32 ptMinTrackSize;
282 POINT32 ptMaxTrackSize;
283 } MINMAXINFO32;
285 DECL_WINELIB_TYPE(MINMAXINFO);
287 /* RedrawWindow() flags */
288 #define RDW_INVALIDATE 0x0001
289 #define RDW_INTERNALPAINT 0x0002
290 #define RDW_ERASE 0x0004
291 #define RDW_VALIDATE 0x0008
292 #define RDW_NOINTERNALPAINT 0x0010
293 #define RDW_NOERASE 0x0020
294 #define RDW_NOCHILDREN 0x0040
295 #define RDW_ALLCHILDREN 0x0080
296 #define RDW_UPDATENOW 0x0100
297 #define RDW_ERASENOW 0x0200
298 #define RDW_FRAME 0x0400
299 #define RDW_NOFRAME 0x0800
301 /* WM_WINDOWPOSCHANGING/CHANGED struct */
302 typedef struct
304 HWND16 hwnd;
305 HWND16 hwndInsertAfter;
306 INT16 x;
307 INT16 y;
308 INT16 cx;
309 INT16 cy;
310 UINT16 flags;
311 } WINDOWPOS16;
313 typedef struct
315 HWND32 hwnd;
316 HWND32 hwndInsertAfter;
317 INT32 x;
318 INT32 y;
319 INT32 cx;
320 INT32 cy;
321 UINT32 flags;
322 } WINDOWPOS32;
324 DECL_WINELIB_TYPE(WINDOWPOS);
326 /* SetWindowPlacement() struct */
327 typedef struct
329 UINT16 length;
330 UINT16 flags;
331 UINT16 showCmd;
332 POINT16 ptMinPosition WINE_PACKED;
333 POINT16 ptMaxPosition WINE_PACKED;
334 RECT16 rcNormalPosition WINE_PACKED;
335 } WINDOWPLACEMENT16, *LPWINDOWPLACEMENT16;
337 typedef struct
339 UINT32 length;
340 UINT32 flags;
341 UINT32 showCmd;
342 POINT32 ptMinPosition WINE_PACKED;
343 POINT32 ptMaxPosition WINE_PACKED;
344 RECT32 rcNormalPosition WINE_PACKED;
345 } WINDOWPLACEMENT32, *LPWINDOWPLACEMENT32;
347 DECL_WINELIB_TYPE(WINDOWPLACEMENT);
348 DECL_WINELIB_TYPE(LPWINDOWPLACEMENT);
350 /* WINDOWPLACEMENT flags */
351 #define WPF_SETMINPOSITION 0x0001
352 #define WPF_RESTORETOMAXIMIZED 0x0002
354 /* WM_MOUSEACTIVATE return values */
355 #define MA_ACTIVATE 1
356 #define MA_ACTIVATEANDEAT 2
357 #define MA_NOACTIVATE 3
358 #define MA_NOACTIVATEANDEAT 4
360 /* WM_ACTIVATE wParam values */
361 #define WA_INACTIVE 0
362 #define WA_ACTIVE 1
363 #define WA_CLICKACTIVE 2
365 /* WM_NCCALCSIZE parameter structure */
366 typedef struct
368 RECT16 rgrc[3];
369 SEGPTR lppos;
370 } NCCALCSIZE_PARAMS16, *LPNCCALCSIZE_PARAMS16;
372 typedef struct
374 RECT32 rgrc[3];
375 WINDOWPOS32 *lppos;
376 } NCCALCSIZE_PARAMS32, *LPNCCALCSIZE_PARAMS32;
378 DECL_WINELIB_TYPE(NCCALCSIZE_PARAMS);
379 DECL_WINELIB_TYPE(LPNCCALCSIZE_PARAMS);
381 /* WM_NCCALCSIZE return flags */
382 #define WVR_ALIGNTOP 0x0010
383 #define WVR_ALIGNLEFT 0x0020
384 #define WVR_ALIGNBOTTOM 0x0040
385 #define WVR_ALIGNRIGHT 0x0080
386 #define WVR_HREDRAW 0x0100
387 #define WVR_VREDRAW 0x0200
388 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
389 #define WVR_VALIDRECTS 0x0400
391 /* WM_NCHITTEST return codes */
392 #define HTERROR (-2)
393 #define HTTRANSPARENT (-1)
394 #define HTNOWHERE 0
395 #define HTCLIENT 1
396 #define HTCAPTION 2
397 #define HTSYSMENU 3
398 #define HTSIZE 4
399 #define HTMENU 5
400 #define HTHSCROLL 6
401 #define HTVSCROLL 7
402 #define HTMINBUTTON 8
403 #define HTMAXBUTTON 9
404 #define HTLEFT 10
405 #define HTRIGHT 11
406 #define HTTOP 12
407 #define HTTOPLEFT 13
408 #define HTTOPRIGHT 14
409 #define HTBOTTOM 15
410 #define HTBOTTOMLEFT 16
411 #define HTBOTTOMRIGHT 17
412 #define HTBORDER 18
413 #define HTGROWBOX HTSIZE
414 #define HTREDUCE HTMINBUTTON
415 #define HTZOOM HTMAXBUTTON
417 /* WM_SYSCOMMAND parameters */
418 #define SC_SIZE 0xf000
419 #define SC_MOVE 0xf010
420 #define SC_MINIMIZE 0xf020
421 #define SC_MAXIMIZE 0xf030
422 #define SC_NEXTWINDOW 0xf040
423 #define SC_PREVWINDOW 0xf050
424 #define SC_CLOSE 0xf060
425 #define SC_VSCROLL 0xf070
426 #define SC_HSCROLL 0xf080
427 #define SC_MOUSEMENU 0xf090
428 #define SC_KEYMENU 0xf100
429 #define SC_ARRANGE 0xf110
430 #define SC_RESTORE 0xf120
431 #define SC_TASKLIST 0xf130
432 #define SC_SCREENSAVE 0xf140
433 #define SC_HOTKEY 0xf150
435 /***** Window hooks *****/
437 /* Hook values */
438 #define WH_MIN (-1)
439 #define WH_MSGFILTER (-1)
440 #define WH_JOURNALRECORD 0
441 #define WH_JOURNALPLAYBACK 1
442 #define WH_KEYBOARD 2
443 #define WH_GETMESSAGE 3
444 #define WH_CALLWNDPROC 4
445 #define WH_CBT 5
446 #define WH_SYSMSGFILTER 6
447 #define WH_MOUSE 7
448 #define WH_HARDWARE 8
449 #define WH_DEBUG 9
450 #define WH_SHELL 10
451 #define WH_FOREGROUNDIDLE 11
452 #define WH_CALLWNDPROCRET 12
453 #define WH_MAX 12
455 #define WH_MINHOOK WH_MIN
456 #define WH_MAXHOOK WH_MAX
457 #define WH_NB_HOOKS (WH_MAXHOOK-WH_MINHOOK+1)
459 /* Hook action codes */
460 #define HC_ACTION 0
461 #define HC_GETNEXT 1
462 #define HC_SKIP 2
463 #define HC_NOREMOVE 3
464 #define HC_NOREM HC_NOREMOVE
465 #define HC_SYSMODALON 4
466 #define HC_SYSMODALOFF 5
468 /* CallMsgFilter() values */
469 #define MSGF_DIALOGBOX 0
470 #define MSGF_MESSAGEBOX 1
471 #define MSGF_MENU 2
472 #define MSGF_MOVE 3
473 #define MSGF_SIZE 4
474 #define MSGF_SCROLLBAR 5
475 #define MSGF_NEXTWINDOW 6
476 #define MSGF_MAINLOOP 8
477 #define MSGF_USER 4096
479 /* Windows Exit Procedure flag values */
480 #define WEP_FREE_DLL 0
481 #define WEP_SYSTEM_EXIT 1
483 /* Journalling hook structure */
485 typedef struct
487 UINT16 message;
488 UINT16 paramL;
489 UINT16 paramH;
490 DWORD time WINE_PACKED;
491 } EVENTMSG16, *LPEVENTMSG16;
493 typedef struct
495 UINT32 message;
496 UINT32 paramL;
497 UINT32 paramH;
498 DWORD time;
499 HWND32 hwnd;
500 } EVENTMSG32, *LPEVENTMSG32;
502 DECL_WINELIB_TYPE(EVENTMSG);
503 DECL_WINELIB_TYPE(LPEVENTMSG);
505 /* Mouse hook structure */
507 typedef struct
509 POINT16 pt;
510 HWND16 hwnd;
511 UINT16 wHitTestCode;
512 DWORD dwExtraInfo;
513 } MOUSEHOOKSTRUCT16, *LPMOUSEHOOKSTRUCT16;
515 typedef struct
517 POINT32 pt;
518 HWND32 hwnd;
519 UINT32 wHitTestCode;
520 DWORD dwExtraInfo;
521 } MOUSEHOOKSTRUCT32, *LPMOUSEHOOKSTRUCT32;
523 DECL_WINELIB_TYPE(MOUSEHOOKSTRUCT);
524 DECL_WINELIB_TYPE(LPMOUSEHOOKSTRUCT);
526 /* Hardware hook structure */
528 typedef struct
530 HWND16 hWnd;
531 UINT16 wMessage;
532 WPARAM16 wParam;
533 LPARAM lParam WINE_PACKED;
534 } HARDWAREHOOKSTRUCT16, *LPHARDWAREHOOKSTRUCT16;
536 typedef struct
538 HWND32 hWnd;
539 UINT32 wMessage;
540 WPARAM32 wParam;
541 LPARAM lParam;
542 } HARDWAREHOOKSTRUCT32, *LPHARDWAREHOOKSTRUCT32;
544 DECL_WINELIB_TYPE(HARDWAREHOOKSTRUCT);
545 DECL_WINELIB_TYPE(LPHARDWAREHOOKSTRUCT);
547 /* CBT hook values */
548 #define HCBT_MOVESIZE 0
549 #define HCBT_MINMAX 1
550 #define HCBT_QS 2
551 #define HCBT_CREATEWND 3
552 #define HCBT_DESTROYWND 4
553 #define HCBT_ACTIVATE 5
554 #define HCBT_CLICKSKIPPED 6
555 #define HCBT_KEYSKIPPED 7
556 #define HCBT_SYSCOMMAND 8
557 #define HCBT_SETFOCUS 9
559 /* CBT hook structures */
561 typedef struct
563 CREATESTRUCT16 *lpcs;
564 HWND16 hwndInsertAfter;
565 } CBT_CREATEWND16, *LPCBT_CREATEWND16;
567 typedef struct
569 CREATESTRUCT32A *lpcs;
570 HWND32 hwndInsertAfter;
571 } CBT_CREATEWND32A, *LPCBT_CREATEWND32A;
573 typedef struct
575 CREATESTRUCT32W *lpcs;
576 HWND32 hwndInsertAfter;
577 } CBT_CREATEWND32W, *LPCBT_CREATEWND32W;
579 DECL_WINELIB_TYPE_AW(CBT_CREATEWND);
580 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND);
582 typedef struct
584 BOOL16 fMouse;
585 HWND16 hWndActive;
586 } CBTACTIVATESTRUCT16, *LPCBTACTIVATESTRUCT16;
588 typedef struct
590 BOOL32 fMouse;
591 HWND32 hWndActive;
592 } CBTACTIVATESTRUCT32, *LPCBTACTIVATESTRUCT32;
594 DECL_WINELIB_TYPE(CBTACTIVATESTRUCT);
595 DECL_WINELIB_TYPE(LPCBTACTIVATESTRUCT);
597 /* Shell hook values */
598 #define HSHELL_WINDOWCREATED 1
599 #define HSHELL_WINDOWDESTROYED 2
600 #define HSHELL_ACTIVATESHELLWINDOW 3
602 /* Debug hook structure */
604 typedef struct
606 HMODULE16 hModuleHook;
607 LPARAM reserved WINE_PACKED;
608 LPARAM lParam WINE_PACKED;
609 WPARAM16 wParam;
610 INT16 code;
611 } DEBUGHOOKINFO16, *LPDEBUGHOOKINFO16;
613 typedef struct
615 DWORD idThread;
616 DWORD idThreadInstaller;
617 LPARAM lParam;
618 WPARAM32 wParam;
619 INT32 code;
620 } DEBUGHOOKINFO32, *LPDEBUGHOOKINFO32;
622 DECL_WINELIB_TYPE(DEBUGHOOKINFO);
623 DECL_WINELIB_TYPE(LPDEBUGHOOKINFO);
625 /***** Dialogs *****/
627 /* cbWndExtra bytes for dialog class */
628 #define DLGWINDOWEXTRA 30
630 /* Dialog styles */
631 #define DS_ABSALIGN 0x001
632 #define DS_SYSMODAL 0x002
633 #define DS_LOCALEDIT 0x020
634 #define DS_SETFONT 0x040
635 #define DS_MODALFRAME 0x080
636 #define DS_NOIDLEMSG 0x100
638 /* Dialog messages */
639 #define DM_GETDEFID (WM_USER+0)
640 #define DM_SETDEFID (WM_USER+1)
642 #define DC_HASDEFID 0x534b
644 /* WM_GETDLGCODE values */
645 #define DLGC_WANTARROWS 0x0001
646 #define DLGC_WANTTAB 0x0002
647 #define DLGC_WANTALLKEYS 0x0004
648 #define DLGC_WANTMESSAGE 0x0004
649 #define DLGC_HASSETSEL 0x0008
650 #define DLGC_DEFPUSHBUTTON 0x0010
651 #define DLGC_UNDEFPUSHBUTTON 0x0020
652 #define DLGC_RADIOBUTTON 0x0040
653 #define DLGC_WANTCHARS 0x0080
654 #define DLGC_STATIC 0x0100
655 #define DLGC_BUTTON 0x2000
657 /* Standard dialog button IDs */
658 #define IDOK 1
659 #define IDCANCEL 2
660 #define IDABORT 3
661 #define IDRETRY 4
662 #define IDIGNORE 5
663 #define IDYES 6
664 #define IDNO 7
667 typedef struct
669 HWND16 hwnd;
670 UINT16 message;
671 WPARAM16 wParam;
672 LPARAM lParam WINE_PACKED;
673 DWORD time WINE_PACKED;
674 POINT16 pt WINE_PACKED;
675 } MSG16, *LPMSG16;
677 typedef struct
679 HWND32 hwnd;
680 UINT32 message;
681 WPARAM32 wParam;
682 LPARAM lParam;
683 DWORD time;
684 POINT32 pt;
685 } MSG32, *LPMSG32;
687 DECL_WINELIB_TYPE(MSG);
688 DECL_WINELIB_TYPE(LPMSG);
690 /* Raster operations */
692 #define R2_BLACK 1
693 #define R2_NOTMERGEPEN 2
694 #define R2_MASKNOTPEN 3
695 #define R2_NOTCOPYPEN 4
696 #define R2_MASKPENNOT 5
697 #define R2_NOT 6
698 #define R2_XORPEN 7
699 #define R2_NOTMASKPEN 8
700 #define R2_MASKPEN 9
701 #define R2_NOTXORPEN 10
702 #define R2_NOP 11
703 #define R2_MERGENOTPEN 12
704 #define R2_COPYPEN 13
705 #define R2_MERGEPENNOT 14
706 #define R2_MERGEPEN 15
707 #define R2_WHITE 16
709 #define SRCCOPY 0xcc0020
710 #define SRCPAINT 0xee0086
711 #define SRCAND 0x8800c6
712 #define SRCINVERT 0x660046
713 #define SRCERASE 0x440328
714 #define NOTSRCCOPY 0x330008
715 #define NOTSRCERASE 0x1100a6
716 #define MERGECOPY 0xc000ca
717 #define MERGEPAINT 0xbb0226
718 #define PATCOPY 0xf00021
719 #define PATPAINT 0xfb0a09
720 #define PATINVERT 0x5a0049
721 #define DSTINVERT 0x550009
722 #define BLACKNESS 0x000042
723 #define WHITENESS 0xff0062
725 /* StretchBlt() modes */
726 #define BLACKONWHITE 1
727 #define WHITEONBLACK 2
728 #define COLORONCOLOR 3
730 #define STRETCH_ANDSCANS BLACKONWHITE
731 #define STRETCH_ORSCANS WHITEONBLACK
732 #define STRETCH_DELETESCANS COLORONCOLOR
735 /* Colors */
737 typedef DWORD COLORREF;
739 #define RGB(r,g,b) ((COLORREF)((r) | ((g) << 8) | ((b) << 16)))
740 #define PALETTERGB(r,g,b) (0x02000000 | RGB(r,g,b))
741 #define PALETTEINDEX(i) ((COLORREF)(0x01000000 | (WORD)(i)))
743 #define GetRValue(rgb) ((rgb) & 0xff)
744 #define GetGValue(rgb) (((rgb) >> 8) & 0xff)
745 #define GetBValue(rgb) (((rgb) >> 16) & 0xff)
747 #define COLOR_SCROLLBAR 0
748 #define COLOR_BACKGROUND 1
749 #define COLOR_ACTIVECAPTION 2
750 #define COLOR_INACTIVECAPTION 3
751 #define COLOR_MENU 4
752 #define COLOR_WINDOW 5
753 #define COLOR_WINDOWFRAME 6
754 #define COLOR_MENUTEXT 7
755 #define COLOR_WINDOWTEXT 8
756 #define COLOR_CAPTIONTEXT 9
757 #define COLOR_ACTIVEBORDER 10
758 #define COLOR_INACTIVEBORDER 11
759 #define COLOR_APPWORKSPACE 12
760 #define COLOR_HIGHLIGHT 13
761 #define COLOR_HIGHLIGHTTEXT 14
762 #define COLOR_BTNFACE 15
763 #define COLOR_BTNSHADOW 16
764 #define COLOR_GRAYTEXT 17
765 #define COLOR_BTNTEXT 18
766 #define COLOR_INACTIVECAPTIONTEXT 19
767 #define COLOR_BTNHIGHLIGHT 20
769 /* WM_CTLCOLOR values */
770 #define CTLCOLOR_MSGBOX 0
771 #define CTLCOLOR_EDIT 1
772 #define CTLCOLOR_LISTBOX 2
773 #define CTLCOLOR_BTN 3
774 #define CTLCOLOR_DLG 4
775 #define CTLCOLOR_SCROLLBAR 5
776 #define CTLCOLOR_STATIC 6
778 /* Bitmaps */
780 typedef struct
782 INT16 bmType;
783 INT16 bmWidth;
784 INT16 bmHeight;
785 INT16 bmWidthBytes;
786 BYTE bmPlanes;
787 BYTE bmBitsPixel;
788 SEGPTR bmBits WINE_PACKED;
789 } BITMAP16, *LPBITMAP16;
791 typedef struct
793 INT32 bmType;
794 INT32 bmWidth;
795 INT32 bmHeight;
796 INT32 bmWidthBytes;
797 WORD bmPlanes;
798 WORD bmBitsPixel;
799 LPVOID bmBits WINE_PACKED;
800 } BITMAP32, *LPBITMAP32;
802 DECL_WINELIB_TYPE(BITMAP);
803 DECL_WINELIB_TYPE(LPBITMAP);
805 /* Brushes */
807 typedef struct
809 UINT16 lbStyle;
810 COLORREF lbColor WINE_PACKED;
811 INT16 lbHatch;
812 } LOGBRUSH16, *LPLOGBRUSH16;
814 typedef struct
816 UINT32 lbStyle;
817 COLORREF lbColor;
818 INT32 lbHatch;
819 } LOGBRUSH32, *LPLOGBRUSH32;
821 DECL_WINELIB_TYPE(LOGBRUSH);
822 DECL_WINELIB_TYPE(LPLOGBRUSH);
824 /* Brush styles */
825 #define BS_SOLID 0
826 #define BS_NULL 1
827 #define BS_HOLLOW 1
828 #define BS_HATCHED 2
829 #define BS_PATTERN 3
830 #define BS_INDEXED 4
831 #define BS_DIBPATTERN 5
833 /* Hatch styles */
834 #define HS_HORIZONTAL 0
835 #define HS_VERTICAL 1
836 #define HS_FDIAGONAL 2
837 #define HS_BDIAGONAL 3
838 #define HS_CROSS 4
839 #define HS_DIAGCROSS 5
841 /* Fonts */
843 #define LF_FACESIZE 32
844 #define LF_FULLFACESIZE 64
846 typedef struct
848 INT16 lfHeight;
849 INT16 lfWidth;
850 INT16 lfEscapement;
851 INT16 lfOrientation;
852 INT16 lfWeight;
853 BYTE lfItalic;
854 BYTE lfUnderline;
855 BYTE lfStrikeOut;
856 BYTE lfCharSet;
857 BYTE lfOutPrecision;
858 BYTE lfClipPrecision;
859 BYTE lfQuality;
860 BYTE lfPitchAndFamily;
861 CHAR lfFaceName[LF_FACESIZE] WINE_PACKED;
862 } LOGFONT16, *LPLOGFONT16;
864 typedef struct
866 INT32 lfHeight;
867 INT32 lfWidth;
868 INT32 lfEscapement;
869 INT32 lfOrientation;
870 INT32 lfWeight;
871 BYTE lfItalic;
872 BYTE lfUnderline;
873 BYTE lfStrikeOut;
874 BYTE lfCharSet;
875 BYTE lfOutPrecision;
876 BYTE lfClipPrecision;
877 BYTE lfQuality;
878 BYTE lfPitchAndFamily;
879 CHAR lfFaceName[LF_FACESIZE];
880 } LOGFONT32A, *LPLOGFONT32A;
882 typedef struct
884 INT32 lfHeight;
885 INT32 lfWidth;
886 INT32 lfEscapement;
887 INT32 lfOrientation;
888 INT32 lfWeight;
889 BYTE lfItalic;
890 BYTE lfUnderline;
891 BYTE lfStrikeOut;
892 BYTE lfCharSet;
893 BYTE lfOutPrecision;
894 BYTE lfClipPrecision;
895 BYTE lfQuality;
896 BYTE lfPitchAndFamily;
897 WCHAR lfFaceName[LF_FACESIZE];
898 } LOGFONT32W, *LPLOGFONT32W;
900 DECL_WINELIB_TYPE_AW(LOGFONT);
901 DECL_WINELIB_TYPE_AW(LPLOGFONT);
903 typedef struct
905 LOGFONT16 elfLogFont;
906 BYTE elfFullName[LF_FULLFACESIZE] WINE_PACKED;
907 BYTE elfStyle[LF_FACESIZE] WINE_PACKED;
908 } ENUMLOGFONT16, *LPENUMLOGFONT16;
910 typedef struct
912 LOGFONT32A elfLogFont;
913 BYTE elfFullName[LF_FULLFACESIZE] WINE_PACKED;
914 BYTE elfStyle[LF_FACESIZE] WINE_PACKED;
915 } ENUMLOGFONT32A, *LPENUMLOGFONT32A;
917 typedef struct
919 LOGFONT32W elfLogFont;
920 WCHAR elfFullName[LF_FULLFACESIZE] WINE_PACKED;
921 WCHAR elfStyle[LF_FACESIZE] WINE_PACKED;
922 } ENUMLOGFONT32W, *LPENUMLOGFONT32W;
924 typedef struct
926 LOGFONT16 elfLogFont;
927 BYTE elfFullName[LF_FULLFACESIZE] WINE_PACKED;
928 BYTE elfStyle[LF_FACESIZE] WINE_PACKED;
929 BYTE elfScript[LF_FACESIZE] WINE_PACKED;
930 } ENUMLOGFONTEX16, *LPENUMLOGFONTEX16;
932 typedef struct
934 LOGFONT32A elfLogFont;
935 BYTE elfFullName[LF_FULLFACESIZE] WINE_PACKED;
936 BYTE elfStyle[LF_FACESIZE] WINE_PACKED;
937 BYTE elfScript[LF_FACESIZE] WINE_PACKED;
938 } ENUMLOGFONTEX32A,*LPENUMLOGFONTEX32A;
940 typedef struct
942 LOGFONT32W elfLogFont;
943 WCHAR elfFullName[LF_FULLFACESIZE] WINE_PACKED;
944 WCHAR elfStyle[LF_FACESIZE] WINE_PACKED;
945 WCHAR elfScript[LF_FACESIZE] WINE_PACKED;
946 } ENUMLOGFONTEX32W,*LPENUMLOGFONTEX32W;
948 DECL_WINELIB_TYPE_AW(ENUMLOGFONT);
949 DECL_WINELIB_TYPE_AW(LPENUMLOGFONT);
950 DECL_WINELIB_TYPE_AW(LPENUMLOGFONTEX);
952 typedef struct
954 DWORD fsUsb[4];
955 DWORD fsCsb[2];
956 } FONTSIGNATURE,*LPFONTSIGNATURE;
959 /* lfWeight values */
960 #define FW_DONTCARE 0
961 #define FW_THIN 100
962 #define FW_EXTRALIGHT 200
963 #define FW_ULTRALIGHT 200
964 #define FW_LIGHT 300
965 #define FW_NORMAL 400
966 #define FW_REGULAR 400
967 #define FW_MEDIUM 500
968 #define FW_SEMIBOLD 600
969 #define FW_DEMIBOLD 600
970 #define FW_BOLD 700
971 #define FW_EXTRABOLD 800
972 #define FW_ULTRABOLD 800
973 #define FW_HEAVY 900
974 #define FW_BLACK 900
976 /* lfCharSet values */
977 #define ANSI_CHARSET 0
978 #define DEFAULT_CHARSET 1
979 #define SYMBOL_CHARSET 2
980 #define SHIFTJIS_CHARSET 128
981 #define HANGEUL_CHARSET 129
982 #define CHINESEBIG5_CHARSET 136
983 #define OEM_CHARSET 255
985 /* lfOutPrecision values */
986 #define OUT_DEFAULT_PRECIS 0
987 #define OUT_STRING_PRECIS 1
988 #define OUT_CHARACTER_PRECIS 2
989 #define OUT_STROKE_PRECIS 3
990 #define OUT_TT_PRECIS 4
991 #define OUT_DEVICE_PRECIS 5
992 #define OUT_RASTER_PRECIS 6
993 #define OUT_TT_ONLY_PRECIS 7
995 /* lfClipPrecision values */
996 #define CLIP_DEFAULT_PRECIS 0x00
997 #define CLIP_CHARACTER_PRECIS 0x01
998 #define CLIP_STROKE_PRECIS 0x02
999 #define CLIP_MASK 0x0F
1000 #define CLIP_LH_ANGLES 0x10
1001 #define CLIP_TT_ALWAYS 0x20
1002 #define CLIP_EMBEDDED 0x80
1004 /* lfQuality values */
1005 #define DEFAULT_QUALITY 0
1006 #define DRAFT_QUALITY 1
1007 #define PROOF_QUALITY 2
1009 /* lfPitchAndFamily pitch values */
1010 #define DEFAULT_PITCH 0x00
1011 #define FIXED_PITCH 0x01
1012 #define VARIABLE_PITCH 0x02
1013 #define FF_DONTCARE 0x00
1014 #define FF_ROMAN 0x10
1015 #define FF_SWISS 0x20
1016 #define FF_MODERN 0x30
1017 #define FF_SCRIPT 0x40
1018 #define FF_DECORATIVE 0x50
1020 typedef struct
1022 INT16 tmHeight;
1023 INT16 tmAscent;
1024 INT16 tmDescent;
1025 INT16 tmInternalLeading;
1026 INT16 tmExternalLeading;
1027 INT16 tmAveCharWidth;
1028 INT16 tmMaxCharWidth;
1029 INT16 tmWeight;
1030 BYTE tmItalic;
1031 BYTE tmUnderlined;
1032 BYTE tmStruckOut;
1033 BYTE tmFirstChar;
1034 BYTE tmLastChar;
1035 BYTE tmDefaultChar;
1036 BYTE tmBreakChar;
1037 BYTE tmPitchAndFamily;
1038 BYTE tmCharSet;
1039 INT16 tmOverhang WINE_PACKED;
1040 INT16 tmDigitizedAspectX WINE_PACKED;
1041 INT16 tmDigitizedAspectY WINE_PACKED;
1042 } TEXTMETRIC16, *LPTEXTMETRIC16;
1044 typedef struct
1046 INT32 tmHeight;
1047 INT32 tmAscent;
1048 INT32 tmDescent;
1049 INT32 tmInternalLeading;
1050 INT32 tmExternalLeading;
1051 INT32 tmAveCharWidth;
1052 INT32 tmMaxCharWidth;
1053 INT32 tmWeight;
1054 INT32 tmOverhang;
1055 INT32 tmDigitizedAspectX;
1056 INT32 tmDigitizedAspectY;
1057 BYTE tmFirstChar;
1058 BYTE tmLastChar;
1059 BYTE tmDefaultChar;
1060 BYTE tmBreakChar;
1061 BYTE tmItalic;
1062 BYTE tmUnderlined;
1063 BYTE tmStruckOut;
1064 BYTE tmPitchAndFamily;
1065 BYTE tmCharSet;
1066 } TEXTMETRIC32A, *LPTEXTMETRIC32A;
1068 typedef struct
1070 INT32 tmHeight;
1071 INT32 tmAscent;
1072 INT32 tmDescent;
1073 INT32 tmInternalLeading;
1074 INT32 tmExternalLeading;
1075 INT32 tmAveCharWidth;
1076 INT32 tmMaxCharWidth;
1077 INT32 tmWeight;
1078 INT32 tmOverhang;
1079 INT32 tmDigitizedAspectX;
1080 INT32 tmDigitizedAspectY;
1081 WCHAR tmFirstChar;
1082 WCHAR tmLastChar;
1083 WCHAR tmDefaultChar;
1084 WCHAR tmBreakChar;
1085 BYTE tmItalic;
1086 BYTE tmUnderlined;
1087 BYTE tmStruckOut;
1088 BYTE tmPitchAndFamily;
1089 BYTE tmCharSet;
1090 } TEXTMETRIC32W, *LPTEXTMETRIC32W;
1092 DECL_WINELIB_TYPE_AW(TEXTMETRIC);
1093 DECL_WINELIB_TYPE_AW(LPTEXTMETRIC);
1095 /* ntmFlags field flags */
1096 #define NTM_REGULAR 0x00000040L
1097 #define NTM_BOLD 0x00000020L
1098 #define NTM_ITALIC 0x00000001L
1100 typedef struct
1102 INT16 tmHeight;
1103 INT16 tmAscent;
1104 INT16 tmDescent;
1105 INT16 tmInternalLeading;
1106 INT16 tmExternalLeading;
1107 INT16 tmAveCharWidth;
1108 INT16 tmMaxCharWidth;
1109 INT16 tmWeight;
1110 BYTE tmItalic;
1111 BYTE tmUnderlined;
1112 BYTE tmStruckOut;
1113 BYTE tmFirstChar;
1114 BYTE tmLastChar;
1115 BYTE tmDefaultChar;
1116 BYTE tmBreakChar;
1117 BYTE tmPitchAndFamily;
1118 BYTE tmCharSet;
1119 INT16 tmOverhang WINE_PACKED;
1120 INT16 tmDigitizedAspectX WINE_PACKED;
1121 INT16 tmDigitizedAspectY WINE_PACKED;
1122 DWORD ntmFlags;
1123 UINT16 ntmSizeEM;
1124 UINT16 ntmCellHeight;
1125 UINT16 ntmAvgWidth;
1126 } NEWTEXTMETRIC16,*LPNEWTEXTMETRIC16;
1128 typedef struct
1130 INT32 tmHeight;
1131 INT32 tmAscent;
1132 INT32 tmDescent;
1133 INT32 tmInternalLeading;
1134 INT32 tmExternalLeading;
1135 INT32 tmAveCharWidth;
1136 INT32 tmMaxCharWidth;
1137 INT32 tmWeight;
1138 INT32 tmOverhang;
1139 INT32 tmDigitizedAspectX;
1140 INT32 tmDigitizedAspectY;
1141 BYTE tmFirstChar;
1142 BYTE tmLastChar;
1143 BYTE tmDefaultChar;
1144 BYTE tmBreakChar;
1145 BYTE tmItalic;
1146 BYTE tmUnderlined;
1147 BYTE tmStruckOut;
1148 BYTE tmPitchAndFamily;
1149 BYTE tmCharSet;
1150 DWORD ntmFlags;
1151 UINT32 ntmSizeEM;
1152 UINT32 ntmCellHeight;
1153 UINT32 ntmAvgWidth;
1154 } NEWTEXTMETRIC32A, *LPNEWTEXTMETRIC32A;
1156 typedef struct
1158 INT32 tmHeight;
1159 INT32 tmAscent;
1160 INT32 tmDescent;
1161 INT32 tmInternalLeading;
1162 INT32 tmExternalLeading;
1163 INT32 tmAveCharWidth;
1164 INT32 tmMaxCharWidth;
1165 INT32 tmWeight;
1166 INT32 tmOverhang;
1167 INT32 tmDigitizedAspectX;
1168 INT32 tmDigitizedAspectY;
1169 WCHAR tmFirstChar;
1170 WCHAR tmLastChar;
1171 WCHAR tmDefaultChar;
1172 WCHAR tmBreakChar;
1173 BYTE tmItalic;
1174 BYTE tmUnderlined;
1175 BYTE tmStruckOut;
1176 BYTE tmPitchAndFamily;
1177 BYTE tmCharSet;
1178 DWORD ntmFlags;
1179 UINT32 ntmSizeEM;
1180 UINT32 ntmCellHeight;
1181 UINT32 ntmAvgWidth;
1182 } NEWTEXTMETRIC32W, *LPNEWTEXTMETRIC32W;
1184 DECL_WINELIB_TYPE_AW(NEWTEXTMETRIC);
1185 DECL_WINELIB_TYPE_AW(LPNEWTEXTMETRIC);
1187 typedef struct
1189 NEWTEXTMETRIC16 ntmetm;
1190 FONTSIGNATURE ntmeFontSignature;
1191 } NEWTEXTMETRICEX16,*LPNEWTEXTMETRICEX16;
1193 typedef struct
1195 NEWTEXTMETRIC32A ntmetm;
1196 FONTSIGNATURE ntmeFontSignature;
1197 } NEWTEXTMETRICEX32A,*LPNEWTEXTMETRICEX32A;
1199 typedef struct
1201 NEWTEXTMETRIC32W ntmetm;
1202 FONTSIGNATURE ntmeFontSignature;
1203 } NEWTEXTMETRICEX32W,*LPNEWTEXTMETRICEX32W;
1205 DECL_WINELIB_TYPE_AW(NEWTEXTMETRICEX);
1206 DECL_WINELIB_TYPE_AW(LPNEWTEXTMETRICEX);
1209 typedef INT16 (*FONTENUMPROC16)(SEGPTR,SEGPTR,UINT16,LPARAM);
1210 typedef INT32 (*FONTENUMPROC32A)(LPENUMLOGFONT32A,LPNEWTEXTMETRIC32A,UINT32,LPARAM);
1211 typedef INT32 (*FONTENUMPROC32W)(LPENUMLOGFONT32W,LPNEWTEXTMETRIC32W,UINT32,LPARAM);
1212 DECL_WINELIB_TYPE_AW(FONTENUMPROC);
1214 typedef INT16 (*FONTENUMPROCEX16)(SEGPTR,SEGPTR,UINT16,LPARAM);
1215 typedef INT32 (*FONTENUMPROCEX32A)(LPENUMLOGFONTEX32A,LPNEWTEXTMETRICEX32A,UINT32,LPARAM);
1216 typedef INT32 (*FONTENUMPROCEX32W)(LPENUMLOGFONTEX32W,LPNEWTEXTMETRICEX32W,UINT32,LPARAM);
1217 DECL_WINELIB_TYPE_AW(FONTENUMPROCEX);
1219 /* tmPitchAndFamily values */
1220 #define TMPF_FIXED_PITCH 1
1221 #define TMPF_VECTOR 2
1222 #define TMPF_TRUETYPE 4
1223 #define TMPF_DEVICE 8
1225 /* Text alignment */
1226 #define TA_NOUPDATECP 0x00
1227 #define TA_UPDATECP 0x01
1228 #define TA_LEFT 0x00
1229 #define TA_RIGHT 0x02
1230 #define TA_CENTER 0x06
1231 #define TA_TOP 0x00
1232 #define TA_BOTTOM 0x08
1233 #define TA_BASELINE 0x18
1235 /* ExtTextOut() parameters */
1236 #define ETO_GRAYED 0x01
1237 #define ETO_OPAQUE 0x02
1238 #define ETO_CLIPPED 0x04
1240 /* for GetCharABCWidths() */
1241 typedef struct
1243 INT16 abcA;
1244 UINT16 abcB;
1245 INT16 abcC;
1246 } ABC16, *LPABC16;
1248 typedef struct
1250 INT32 abcA;
1251 UINT32 abcB;
1252 INT32 abcC;
1253 } ABC32, *LPABC32;
1255 DECL_WINELIB_TYPE(ABC);
1256 DECL_WINELIB_TYPE(LPABC);
1258 /* Rasterizer status */
1259 typedef struct
1261 WORD nSize;
1262 WORD wFlags;
1263 WORD nLanguageID;
1264 } RASTERIZER_STATUS, *LPRASTERIZER_STATUS;
1266 #define TT_AVAILABLE 0x0001
1267 #define TT_ENABLED 0x0002
1269 /* Get/SetSystemPaletteUse() values */
1270 #define SYSPAL_STATIC 1
1271 #define SYSPAL_NOSTATIC 2
1273 typedef struct tagPALETTEENTRY
1275 BYTE peRed, peGreen, peBlue, peFlags;
1276 } PALETTEENTRY, *LPPALETTEENTRY;
1278 /* Logical palette entry flags */
1279 #define PC_RESERVED 0x01
1280 #define PC_EXPLICIT 0x02
1281 #define PC_NOCOLLAPSE 0x04
1283 typedef struct
1285 WORD palVersion;
1286 WORD palNumEntries;
1287 PALETTEENTRY palPalEntry[1] WINE_PACKED;
1288 } LOGPALETTE, *LPLOGPALETTE;
1290 /* Pens */
1292 typedef struct
1294 UINT16 lopnStyle;
1295 POINT16 lopnWidth WINE_PACKED;
1296 COLORREF lopnColor WINE_PACKED;
1297 } LOGPEN16, *LPLOGPEN16;
1299 typedef struct
1301 UINT32 lopnStyle;
1302 POINT32 lopnWidth WINE_PACKED;
1303 COLORREF lopnColor WINE_PACKED;
1304 } LOGPEN32, *LPLOGPEN32;
1306 DECL_WINELIB_TYPE(LOGPEN);
1307 DECL_WINELIB_TYPE(LPLOGPEN);
1309 #define PS_SOLID 0
1310 #define PS_DASH 1
1311 #define PS_DOT 2
1312 #define PS_DASHDOT 3
1313 #define PS_DASHDOTDOT 4
1314 #define PS_NULL 5
1315 #define PS_INSIDEFRAME 6
1317 /* Regions */
1319 #define ERROR 0
1320 #define NULLREGION 1
1321 #define SIMPLEREGION 2
1322 #define COMPLEXREGION 3
1324 #define RGN_AND 1
1325 #define RGN_OR 2
1326 #define RGN_XOR 3
1327 #define RGN_DIFF 4
1328 #define RGN_COPY 5
1330 /* Device contexts */
1332 /* GetDCEx flags */
1333 #define DCX_WINDOW 0x00000001
1334 #define DCX_CACHE 0x00000002
1335 #define DCX_CLIPCHILDREN 0x00000008
1336 #define DCX_CLIPSIBLINGS 0x00000010
1337 #define DCX_PARENTCLIP 0x00000020
1338 #define DCX_EXCLUDERGN 0x00000040
1339 #define DCX_INTERSECTRGN 0x00000080
1340 #define DCX_LOCKWINDOWUPDATE 0x00000400
1341 #define DCX_USESTYLE 0x00010000
1343 /* Polygon modes */
1344 #define ALTERNATE 1
1345 #define WINDING 2
1347 /* Background modes */
1348 #ifdef TRANSPARENT /*Apparently some broken svr4 includes define TRANSPARENT*/
1349 #undef TRANSPARENT
1350 #endif
1351 #define TRANSPARENT 1
1352 #define OPAQUE 2
1354 /* Map modes */
1355 #define MM_TEXT 1
1356 #define MM_LOMETRIC 2
1357 #define MM_HIMETRIC 3
1358 #define MM_LOENGLISH 4
1359 #define MM_HIENGLISH 5
1360 #define MM_TWIPS 6
1361 #define MM_ISOTROPIC 7
1362 #define MM_ANISOTROPIC 8
1364 /* Coordinate modes */
1365 #define ABSOLUTE 1
1366 #define RELATIVE 2
1368 /* Flood fill modes */
1369 #define FLOODFILLBORDER 0
1370 #define FLOODFILLSURFACE 1
1372 /* Device parameters for GetDeviceCaps() */
1373 #define DRIVERVERSION 0
1374 #define TECHNOLOGY 2
1375 #define HORZSIZE 4
1376 #define VERTSIZE 6
1377 #define HORZRES 8
1378 #define VERTRES 10
1379 #define BITSPIXEL 12
1380 #define PLANES 14
1381 #define NUMBRUSHES 16
1382 #define NUMPENS 18
1383 #define NUMMARKERS 20
1384 #define NUMFONTS 22
1385 #define NUMCOLORS 24
1386 #define PDEVICESIZE 26
1387 #define CURVECAPS 28
1388 #define LINECAPS 30
1389 #define POLYGONALCAPS 32
1390 #define TEXTCAPS 34
1391 #define CLIPCAPS 36
1392 #define RASTERCAPS 38
1393 #define ASPECTX 40
1394 #define ASPECTY 42
1395 #define ASPECTXY 44
1396 #define LOGPIXELSX 88
1397 #define LOGPIXELSY 90
1398 #define SIZEPALETTE 104
1399 #define NUMRESERVED 106
1400 #define COLORRES 108
1402 /* TECHNOLOGY */
1403 #define DT_PLOTTER 0
1404 #define DT_RASDISPLAY 1
1405 #define DT_RASPRINTER 2
1406 #define DT_RASCAMERA 3
1407 #define DT_CHARSTREAM 4
1408 #define DT_METAFILE 5
1409 #define DT_DISPFILE 6
1411 /* CURVECAPS */
1412 #define CC_NONE 0x0000
1413 #define CC_CIRCLES 0x0001
1414 #define CC_PIE 0x0002
1415 #define CC_CHORD 0x0004
1416 #define CC_ELLIPSES 0x0008
1417 #define CC_WIDE 0x0010
1418 #define CC_STYLED 0x0020
1419 #define CC_WIDESTYLED 0x0040
1420 #define CC_INTERIORS 0x0080
1421 #define CC_ROUNDRECT 0x0100
1423 /* LINECAPS */
1424 #define LC_NONE 0x0000
1425 #define LC_POLYLINE 0x0002
1426 #define LC_MARKER 0x0004
1427 #define LC_POLYMARKER 0x0008
1428 #define LC_WIDE 0x0010
1429 #define LC_STYLED 0x0020
1430 #define LC_WIDESTYLED 0x0040
1431 #define LC_INTERIORS 0x0080
1433 /* POLYGONALCAPS */
1434 #define PC_NONE 0x0000
1435 #define PC_POLYGON 0x0001
1436 #define PC_RECTANGLE 0x0002
1437 #define PC_WINDPOLYGON 0x0004
1438 #define PC_SCANLINE 0x0008
1439 #define PC_WIDE 0x0010
1440 #define PC_STYLED 0x0020
1441 #define PC_WIDESTYLED 0x0040
1442 #define PC_INTERIORS 0x0080
1444 /* TEXTCAPS */
1445 #define TC_OP_CHARACTER 0x0001
1446 #define TC_OP_STROKE 0x0002
1447 #define TC_CP_STROKE 0x0004
1448 #define TC_CR_90 0x0008
1449 #define TC_CR_ANY 0x0010
1450 #define TC_SF_X_YINDEP 0x0020
1451 #define TC_SA_DOUBLE 0x0040
1452 #define TC_SA_INTEGER 0x0080
1453 #define TC_SA_CONTIN 0x0100
1454 #define TC_EA_DOUBLE 0x0200
1455 #define TC_IA_ABLE 0x0400
1456 #define TC_UA_ABLE 0x0800
1457 #define TC_SO_ABLE 0x1000
1458 #define TC_RA_ABLE 0x2000
1459 #define TC_VA_ABLE 0x4000
1460 #define TC_RESERVED 0x8000
1462 /* CLIPCAPS */
1463 #define CP_NONE 0x0000
1464 #define CP_RECTANGLE 0x0001
1465 #define CP_REGION 0x0002
1467 /* RASTERCAPS */
1468 #define RC_NONE 0x0000
1469 #define RC_BITBLT 0x0001
1470 #define RC_BANDING 0x0002
1471 #define RC_SCALING 0x0004
1472 #define RC_BITMAP64 0x0008
1473 #define RC_GDI20_OUTPUT 0x0010
1474 #define RC_GDI20_STATE 0x0020
1475 #define RC_SAVEBITMAP 0x0040
1476 #define RC_DI_BITMAP 0x0080
1477 #define RC_PALETTE 0x0100
1478 #define RC_DIBTODEV 0x0200
1479 #define RC_BIGFONT 0x0400
1480 #define RC_STRETCHBLT 0x0800
1481 #define RC_FLOODFILL 0x1000
1482 #define RC_STRETCHDIB 0x2000
1483 #define RC_OP_DX_OUTPUT 0x4000
1484 #define RC_DEVBITS 0x8000
1486 /* GetSystemMetrics() codes */
1487 #define SM_CXSCREEN 0
1488 #define SM_CYSCREEN 1
1489 #define SM_CXVSCROLL 2
1490 #define SM_CYHSCROLL 3
1491 #define SM_CYCAPTION 4
1492 #define SM_CXBORDER 5
1493 #define SM_CYBORDER 6
1494 #define SM_CXDLGFRAME 7
1495 #define SM_CYDLGFRAME 8
1496 #define SM_CYVTHUMB 9
1497 #define SM_CXHTHUMB 10
1498 #define SM_CXICON 11
1499 #define SM_CYICON 12
1500 #define SM_CXCURSOR 13
1501 #define SM_CYCURSOR 14
1502 #define SM_CYMENU 15
1503 #define SM_CXFULLSCREEN 16
1504 #define SM_CYFULLSCREEN 17
1505 #define SM_CYKANJIWINDOW 18
1506 #define SM_MOUSEPRESENT 19
1507 #define SM_CYVSCROLL 20
1508 #define SM_CXHSCROLL 21
1509 #define SM_DEBUG 22
1510 #define SM_SWAPBUTTON 23
1511 #define SM_RESERVED1 24
1512 #define SM_RESERVED2 25
1513 #define SM_RESERVED3 26
1514 #define SM_RESERVED4 27
1515 #define SM_CXMIN 28
1516 #define SM_CYMIN 29
1517 #define SM_CXSIZE 30
1518 #define SM_CYSIZE 31
1519 #define SM_CXFRAME 32
1520 #define SM_CYFRAME 33
1521 #define SM_CXMINTRACK 34
1522 #define SM_CYMINTRACK 35
1523 #define SM_CXDOUBLECLK 36
1524 #define SM_CYDOUBLECLK 37
1525 #define SM_CXICONSPACING 38
1526 #define SM_CYICONSPACING 39
1527 #define SM_MENUDROPALIGNMENT 40
1528 #define SM_PENWINDOWS 41
1529 #define SM_DBCSENABLED 42
1531 #define SM_CMETRICS 43
1533 /* Device-independent bitmaps */
1535 typedef struct { BYTE rgbBlue, rgbGreen, rgbRed, rgbReserved; } RGBQUAD;
1536 typedef struct { BYTE rgbtBlue, rgbtGreen, rgbtRed; } RGBTRIPLE;
1538 typedef struct
1540 UINT16 bfType;
1541 DWORD bfSize WINE_PACKED;
1542 UINT16 bfReserved1 WINE_PACKED;
1543 UINT16 bfReserved2 WINE_PACKED;
1544 DWORD bfOffBits WINE_PACKED;
1545 } BITMAPFILEHEADER;
1547 typedef struct
1549 DWORD biSize;
1550 LONG biWidth;
1551 LONG biHeight;
1552 WORD biPlanes;
1553 WORD biBitCount;
1554 DWORD biCompression;
1555 DWORD biSizeImage;
1556 LONG biXPelsPerMeter;
1557 LONG biYPelsPerMeter;
1558 DWORD biClrUsed;
1559 DWORD biClrImportant;
1560 } BITMAPINFOHEADER, *LPBITMAPINFOHEADER;
1562 /* biCompression */
1563 #define BI_RGB 0
1564 #define BI_RLE8 1
1565 #define BI_RLE4 2
1567 typedef struct {
1568 BITMAPINFOHEADER bmiHeader;
1569 RGBQUAD bmiColors[1];
1570 } BITMAPINFO;
1571 typedef BITMAPINFO *LPBITMAPINFO;
1572 typedef BITMAPINFO *NPBITMAPINFO;
1573 typedef BITMAPINFO *PBITMAPINFO;
1575 typedef struct
1577 DWORD bcSize;
1578 UINT16 bcWidth;
1579 UINT16 bcHeight;
1580 UINT16 bcPlanes;
1581 UINT16 bcBitCount;
1582 } BITMAPCOREHEADER;
1584 typedef struct
1586 BITMAPCOREHEADER bmciHeader;
1587 RGBTRIPLE bmciColors[1];
1588 } BITMAPCOREINFO, *LPBITMAPCOREINFO;
1590 #define DIB_RGB_COLORS 0
1591 #define DIB_PAL_COLORS 1
1592 #define CBM_INIT 4
1595 /* Cursors / Icons */
1597 typedef struct
1599 POINT16 ptHotSpot;
1600 WORD nWidth;
1601 WORD nHeight;
1602 WORD nWidthBytes;
1603 BYTE bPlanes;
1604 BYTE bBitsPerPixel;
1605 } CURSORICONINFO;
1609 typedef struct {
1610 BYTE i; /* much more .... */
1611 } KANJISTRUCT;
1612 typedef KANJISTRUCT *LPKANJISTRUCT;
1613 typedef KANJISTRUCT *NPKANJISTRUCT;
1614 typedef KANJISTRUCT *PKANJISTRUCT;
1616 #define OFS_MAXPATHNAME 128
1617 typedef struct
1619 BYTE cBytes;
1620 BYTE fFixedDisk;
1621 WORD nErrCode;
1622 BYTE reserved[4];
1623 BYTE szPathName[OFS_MAXPATHNAME];
1624 } OFSTRUCT, *LPOFSTRUCT;
1626 #define OF_READ 0x0000
1627 #define OF_WRITE 0x0001
1628 #define OF_READWRITE 0x0002
1629 #define OF_SHARE_COMPAT 0x0000
1630 #define OF_SHARE_EXCLUSIVE 0x0010
1631 #define OF_SHARE_DENY_WRITE 0x0020
1632 #define OF_SHARE_DENY_READ 0x0030
1633 #define OF_SHARE_DENY_NONE 0x0040
1634 #define OF_PARSE 0x0100
1635 #define OF_DELETE 0x0200
1636 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
1637 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
1638 #define OF_CANCEL 0x0800
1639 #define OF_CREATE 0x1000
1640 #define OF_PROMPT 0x2000
1641 #define OF_EXIST 0x4000
1642 #define OF_REOPEN 0x8000
1644 /* GetTempFileName() Flags */
1645 #define TF_FORCEDRIVE 0x80
1647 #define DRIVE_CANNOTDETERMINE 0
1648 #define DRIVE_DOESNOTEXIST 1
1649 #define DRIVE_REMOVABLE 2
1650 #define DRIVE_FIXED 3
1651 #define DRIVE_REMOTE 4
1652 /* Win32 additions */
1653 #define DRIVE_CDROM 5
1654 #define DRIVE_RAMDISK 6
1656 #define HFILE_ERROR -1
1658 #define DDL_READWRITE 0x0000
1659 #define DDL_READONLY 0x0001
1660 #define DDL_HIDDEN 0x0002
1661 #define DDL_SYSTEM 0x0004
1662 #define DDL_DIRECTORY 0x0010
1663 #define DDL_ARCHIVE 0x0020
1665 #define DDL_POSTMSGS 0x2000
1666 #define DDL_DRIVES 0x4000
1667 #define DDL_EXCLUSIVE 0x8000
1669 /* The security attributes structure
1671 typedef struct
1673 DWORD nLength;
1674 LPVOID lpSecurityDescriptor;
1675 BOOL32 bInheritHandle;
1676 } SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
1678 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
1679 /* FIXME: currently dwLowDateTime is equivalent to the UNIX time(),
1680 * and dwHighDateTime 0
1682 typedef struct
1684 INT32 dwLowDateTime;
1685 INT32 dwHighDateTime;
1686 } FILETIME, *LPFILETIME;
1688 /* Find* structures */
1689 typedef struct
1691 DWORD dwFileAttributes;
1692 FILETIME ftCreationTime;
1693 FILETIME ftLastAccessTime;
1694 FILETIME ftLastWriteTime;
1695 DWORD nFileSizeHigh;
1696 DWORD nFileSizeLow;
1697 DWORD dwReserved0;
1698 DWORD dwReserved1;
1699 CHAR cFileName[260];
1700 CHAR cAlternateFileName[14];
1701 } WIN32_FIND_DATA32A, *LPWIN32_FIND_DATA32A;
1703 typedef struct
1705 DWORD dwFileAttributes;
1706 FILETIME ftCreationTime;
1707 FILETIME ftLastAccessTime;
1708 FILETIME ftLastWriteTime;
1709 DWORD nFileSizeHigh;
1710 DWORD nFileSizeLow;
1711 DWORD dwReserved0;
1712 DWORD dwReserved1;
1713 WCHAR cFileName[260];
1714 WCHAR cAlternateFileName[14];
1715 } WIN32_FIND_DATA32W, *LPWIN32_FIND_DATA32W;
1717 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA);
1718 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA);
1720 /* comm */
1722 #define CBR_110 0xFF10
1723 #define CBR_300 0xFF11
1724 #define CBR_600 0xFF12
1725 #define CBR_1200 0xFF13
1726 #define CBR_2400 0xFF14
1727 #define CBR_4800 0xFF15
1728 #define CBR_9600 0xFF16
1729 #define CBR_14400 0xFF17
1730 #define CBR_19200 0xFF18
1731 #define CBR_38400 0xFF1B
1732 #define CBR_56000 0xFF1F
1733 #define CBR_128000 0xFF23
1734 #define CBR_256000 0xFF27
1736 #define NOPARITY 0
1737 #define ODDPARITY 1
1738 #define EVENPARITY 2
1739 #define MARKPARITY 3
1740 #define SPACEPARITY 4
1741 #define ONESTOPBIT 0
1742 #define ONE5STOPBITS 1
1743 #define TWOSTOPBITS 2
1745 #define IGNORE 0
1746 #define INFINITE16 0xFFFF
1747 #define INFINITE32 0xFFFFFFFF
1748 #define INFINITE WINELIB_NAME(INFINITE)
1750 #define CE_RXOVER 0x0001
1751 #define CE_OVERRUN 0x0002
1752 #define CE_RXPARITY 0x0004
1753 #define CE_FRAME 0x0008
1754 #define CE_BREAK 0x0010
1755 #define CE_CTSTO 0x0020
1756 #define CE_DSRTO 0x0040
1757 #define CE_RLSDTO 0x0080
1758 #define CE_TXFULL 0x0100
1759 #define CE_PTO 0x0200
1760 #define CE_IOE 0x0400
1761 #define CE_DNS 0x0800
1762 #define CE_OOP 0x1000
1763 #define CE_MODE 0x8000
1765 #define IE_BADID -1
1766 #define IE_OPEN -2
1767 #define IE_NOPEN -3
1768 #define IE_MEMORY -4
1769 #define IE_DEFAULT -5
1770 #define IE_HARDWARE -10
1771 #define IE_BYTESIZE -11
1772 #define IE_BAUDRATE -12
1774 #define EV_RXCHAR 0x0001
1775 #define EV_RXFLAG 0x0002
1776 #define EV_TXEMPTY 0x0004
1777 #define EV_CTS 0x0008
1778 #define EV_DSR 0x0010
1779 #define EV_RLSD 0x0020
1780 #define EV_BREAK 0x0040
1781 #define EV_ERR 0x0080
1782 #define EV_RING 0x0100
1783 #define EV_PERR 0x0200
1784 #define EV_CTSS 0x0400
1785 #define EV_DSRS 0x0800
1786 #define EV_RLSDS 0x1000
1787 #define EV_RINGTE 0x2000
1788 #define EV_RingTe EV_RINGTE
1790 #define SETXOFF 1
1791 #define SETXON 2
1792 #define SETRTS 3
1793 #define CLRRTS 4
1794 #define SETDTR 5
1795 #define CLRDTR 6
1796 #define RESETDEV 7
1797 /* win16 only */
1798 #define GETMAXLPT 8
1799 #define GETMAXCOM 9
1800 /* win32 only */
1801 #define SETBREAK 8
1802 #define CLRBREAK 9
1804 #define GETBASEIRQ 10
1806 #define CN_RECEIVE 0x0001
1807 #define CN_TRANSMIT 0x0002
1808 #define CN_EVENT 0x0004
1810 typedef struct tagDCB16
1812 BYTE Id;
1813 UINT16 BaudRate WINE_PACKED;
1814 BYTE ByteSize;
1815 BYTE Parity;
1816 BYTE StopBits;
1817 UINT16 RlsTimeout;
1818 UINT16 CtsTimeout;
1819 UINT16 DsrTimeout;
1821 UINT16 fBinary :1;
1822 UINT16 fRtsDisable :1;
1823 UINT16 fParity :1;
1824 UINT16 fOutxCtsFlow :1;
1825 UINT16 fOutxDsrFlow :1;
1826 UINT16 fDummy :2;
1827 UINT16 fDtrDisable :1;
1829 UINT16 fOutX :1;
1830 UINT16 fInX :1;
1831 UINT16 fPeChar :1;
1832 UINT16 fNull :1;
1833 UINT16 fChEvt :1;
1834 UINT16 fDtrflow :1;
1835 UINT16 fRtsflow :1;
1836 UINT16 fDummy2 :1;
1838 CHAR XonChar;
1839 CHAR XoffChar;
1840 UINT16 XonLim;
1841 UINT16 XoffLim;
1842 CHAR PeChar;
1843 CHAR EofChar;
1844 CHAR EvtChar;
1845 UINT16 TxDelay WINE_PACKED;
1846 } DCB16, *LPDCB16;
1848 typedef struct tagDCB32
1850 DWORD DCBlength;
1851 DWORD BaudRate;
1852 DWORD fBinary :1;
1853 DWORD fParity :1;
1854 DWORD fOutxCtsFlow :1;
1855 DWORD fOutxDsrFlow :1;
1856 DWORD fDtrControl :2;
1857 DWORD fDsrSensitivity :1;
1858 DWORD fTXContinueOnXoff :1;
1859 DWORD fOutX :1;
1860 DWORD fInX :1;
1861 DWORD fErrorChar :1;
1862 DWORD fNull :1;
1863 DWORD fRtsControl :2;
1864 DWORD fAbortOnError :1;
1865 DWORD fDummy2 :17;
1866 WORD wReserved;
1867 WORD XonLim;
1868 WORD XoffLim;
1869 BYTE ByteSize;
1870 BYTE Parity;
1871 BYTE StopBits;
1872 char XonChar;
1873 char XoffChar;
1874 char ErrorChar;
1875 char EofChar;
1876 char EvtChar;
1877 } DCB32, *LPDCB32;
1879 DECL_WINELIB_TYPE(DCB);
1880 DECL_WINELIB_TYPE(LPDCB);
1882 #define RTS_CONTROL_DISABLE 0
1883 #define RTS_CONTROL_ENABLE 1
1884 #define RTS_CONTROL_HANDSHAKE 2
1885 #define RTS_CONTROL_TOGGLE 3
1887 #define DTR_CONTROL_DISABLE 0
1888 #define DTR_CONTROL_ENABLE 1
1889 #define DTR_CONTROL_HANDSHAKE 2
1891 typedef struct tagCOMMTIMEOUTS {
1892 DWORD ReadIntervalTimeout;
1893 DWORD ReadTotalTimeoutMultiplier;
1894 DWORD ReadTotalTimeoutConstant;
1895 DWORD WriteTotalTimeoutMultiplier;
1896 DWORD WriteTotalTimeoutConstant;
1897 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1899 typedef struct tagCOMSTAT
1901 BYTE status;
1902 UINT16 cbInQue WINE_PACKED;
1903 UINT16 cbOutQue WINE_PACKED;
1904 } COMSTAT,*LPCOMSTAT;
1906 #define CSTF_CTSHOLD 0x01
1907 #define CSTF_DSRHOLD 0x02
1908 #define CSTF_RLSDHOLD 0x04
1909 #define CSTF_XOFFHOLD 0x08
1910 #define CSTF_XOFFSENT 0x10
1911 #define CSTF_EOF 0x20
1912 #define CSTF_TXIM 0x40
1914 /* SystemParametersInfo */
1916 #define SPI_GETBEEP 1
1917 #define SPI_SETBEEP 2
1918 #define SPI_GETMOUSE 3
1919 #define SPI_SETMOUSE 4
1920 #define SPI_GETBORDER 5
1921 #define SPI_SETBORDER 6
1922 #define SPI_GETKEYBOARDSPEED 10
1923 #define SPI_SETKEYBOARDSPEED 11
1924 #define SPI_LANGDRIVER 12
1925 #define SPI_ICONHORIZONTALSPACING 13
1926 #define SPI_GETSCREENSAVETIMEOUT 14
1927 #define SPI_SETSCREENSAVETIMEOUT 15
1928 #define SPI_GETSCREENSAVEACTIVE 16
1929 #define SPI_SETSCREENSAVEACTIVE 17
1930 #define SPI_GETGRIDGRANULARITY 18
1931 #define SPI_SETGRIDGRANULARITY 19
1932 #define SPI_SETDESKWALLPAPER 20
1933 #define SPI_SETDESKPATTERN 21
1934 #define SPI_GETKEYBOARDDELAY 22
1935 #define SPI_SETKEYBOARDDELAY 23
1936 #define SPI_ICONVERTICALSPACING 24
1937 #define SPI_GETICONTITLEWRAP 25
1938 #define SPI_SETICONTITLEWRAP 26
1939 #define SPI_GETMENUDROPALIGNMENT 27
1940 #define SPI_SETMENUDROPALIGNMENT 28
1941 #define SPI_SETDOUBLECLKWIDTH 29
1942 #define SPI_SETDOUBLECLKHEIGHT 30
1943 #define SPI_GETICONTITLELOGFONT 31
1944 #define SPI_SETDOUBLECLICKTIME 32
1945 #define SPI_SETMOUSEBUTTONSWAP 33
1946 #define SPI_SETICONTITLELOGFONT 34
1947 #define SPI_GETFASTTASKSWITCH 35
1948 #define SPI_SETFASTTASKSWITCH 36
1949 #define SPI_SETDRAGFULLWINDOWS 37
1950 #define SPI_GETDRAGFULLWINDOWS 38
1951 #define SPI_GETNONCLIENTMETRICS 41
1952 #define SPI_SETNONCLIENTMETRICS 42
1953 #define SPI_GETMINIMIZEDMETRICS 43
1954 #define SPI_SETMINIMIZEDMETRICS 44
1955 #define SPI_GETICONMETRICS 45
1956 #define SPI_SETICONMETRICS 46
1957 #define SPI_SETWORKAREA 47
1958 #define SPI_GETWORKAREA 48
1959 #define SPI_SETPENWINDOWS 49
1960 #define SPI_GETFILTERKEYS 50
1961 #define SPI_SETFILTERKEYS 51
1962 #define SPI_GETTOGGLEKEYS 52
1963 #define SPI_SETTOGGLEKEYS 53
1964 #define SPI_GETMOUSEKEYS 54
1965 #define SPI_SETMOUSEKEYS 55
1966 #define SPI_GETSHOWSOUNDS 56
1967 #define SPI_SETSHOWSOUNDS 57
1968 #define SPI_GETSTICKYKEYS 58
1969 #define SPI_SETSTICKYKEYS 59
1970 #define SPI_GETACCESSTIMEOUT 60
1971 #define SPI_SETACCESSTIMEOUT 61
1972 #define SPI_GETSERIALKEYS 62
1973 #define SPI_SETSERIALKEYS 63
1974 #define SPI_GETSOUNDSENTRY 64
1975 #define SPI_SETSOUNDSENTRY 65
1976 #define SPI_GETHIGHCONTRAST 66
1977 #define SPI_SETHIGHCONTRAST 67
1978 #define SPI_GETKEYBOARDPREF 68
1979 #define SPI_SETKEYBOARDPREF 69
1980 #define SPI_GETSCREENREADER 70
1981 #define SPI_SETSCREENREADER 71
1982 #define SPI_GETANIMATION 72
1983 #define SPI_SETANIMATION 73
1984 #define SPI_GETFONTSMOOTHING 74
1985 #define SPI_SETFONTSMOOTHING 75
1986 #define SPI_SETDRAGWIDTH 76
1987 #define SPI_SETDRAGHEIGHT 77
1988 #define SPI_SETHANDHELD 78
1989 #define SPI_GETLOWPOWERTIMEOUT 79
1990 #define SPI_GETPOWEROFFTIMEOUT 80
1991 #define SPI_SETLOWPOWERTIMEOUT 81
1992 #define SPI_SETPOWEROFFTIMEOUT 82
1993 #define SPI_GETLOWPOWERACTIVE 83
1994 #define SPI_GETPOWEROFFACTIVE 84
1995 #define SPI_SETLOWPOWERACTIVE 85
1996 #define SPI_SETPOWEROFFACTIVE 86
1997 #define SPI_SETCURSORS 87
1998 #define SPI_SETICONS 88
1999 #define SPI_GETDEFAULTINPUTLANG 89
2000 #define SPI_SETDEFAULTINPUTLANG 90
2001 #define SPI_SETLANGTOGGLE 91
2002 #define SPI_GETWINDOWSEXTENSION 92
2003 #define SPI_SETMOUSETRAILS 93
2004 #define SPI_GETMOUSETRAILS 94
2005 #define SPI_SCREENSAVERRUNNING 97
2007 /* SystemParametersInfo flags */
2009 #define SPIF_UPDATEINIFILE 1
2010 #define SPIF_SENDWININICHANGE 2
2012 /* GetFreeSystemResources() parameters */
2014 #define GFSR_SYSTEMRESOURCES 0x0000
2015 #define GFSR_GDIRESOURCES 0x0001
2016 #define GFSR_USERRESOURCES 0x0002
2018 /* GetWinFlags */
2020 #define WF_PMODE 0x0001
2021 #define WF_CPU286 0x0002
2022 #define WF_CPU386 0x0004
2023 #define WF_CPU486 0x0008
2024 #define WF_STANDARD 0x0010
2025 #define WF_WIN286 0x0010
2026 #define WF_ENHANCED 0x0020
2027 #define WF_WIN386 0x0020
2028 #define WF_CPU086 0x0040
2029 #define WF_CPU186 0x0080
2030 #define WF_LARGEFRAME 0x0100
2031 #define WF_SMALLFRAME 0x0200
2032 #define WF_80x87 0x0400
2033 #define WF_PAGING 0x0800
2034 #define WF_WLO 0x8000
2036 #define MAKEINTRESOURCE(i) (SEGPTR)((DWORD)((WORD)(i)))
2038 /* Predefined resource types */
2039 #define RT_CURSOR MAKEINTRESOURCE(1)
2040 #define RT_BITMAP MAKEINTRESOURCE(2)
2041 #define RT_ICON MAKEINTRESOURCE(3)
2042 #define RT_MENU MAKEINTRESOURCE(4)
2043 #define RT_DIALOG MAKEINTRESOURCE(5)
2044 #define RT_STRING MAKEINTRESOURCE(6)
2045 #define RT_FONTDIR MAKEINTRESOURCE(7)
2046 #define RT_FONT MAKEINTRESOURCE(8)
2047 #define RT_ACCELERATOR MAKEINTRESOURCE(9)
2048 #define RT_RCDATA MAKEINTRESOURCE(10)
2049 #define RT_MESSAGELIST MAKEINTRESOURCE(11)
2050 #define RT_GROUP_CURSOR MAKEINTRESOURCE(12)
2051 #define RT_GROUP_ICON MAKEINTRESOURCE(14)
2053 /* Predefined resources */
2054 #define IDI_APPLICATION MAKEINTRESOURCE(32512)
2055 #define IDI_HAND MAKEINTRESOURCE(32513)
2056 #define IDI_QUESTION MAKEINTRESOURCE(32514)
2057 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
2058 #define IDI_ASTERISK MAKEINTRESOURCE(32516)
2060 #define IDC_BUMMER MAKEINTRESOURCE(100)
2061 #define IDC_ARROW MAKEINTRESOURCE(32512)
2062 #define IDC_IBEAM MAKEINTRESOURCE(32513)
2063 #define IDC_WAIT MAKEINTRESOURCE(32514)
2064 #define IDC_CROSS MAKEINTRESOURCE(32515)
2065 #define IDC_UPARROW MAKEINTRESOURCE(32516)
2066 #define IDC_SIZE MAKEINTRESOURCE(32640)
2067 #define IDC_ICON MAKEINTRESOURCE(32641)
2068 #define IDC_SIZENWSE MAKEINTRESOURCE(32642)
2069 #define IDC_SIZENESW MAKEINTRESOURCE(32643)
2070 #define IDC_SIZEWE MAKEINTRESOURCE(32644)
2071 #define IDC_SIZENS MAKEINTRESOURCE(32645)
2073 /* OEM Resource Ordinal Numbers */
2074 #define OBM_CLOSE 32754
2075 #define OBM_UPARROW 32753
2076 #define OBM_DNARROW 32752
2077 #define OBM_RGARROW 32751
2078 #define OBM_LFARROW 32750
2079 #define OBM_REDUCE 32749
2080 #define OBM_ZOOM 32748
2081 #define OBM_RESTORE 32747
2082 #define OBM_REDUCED 32746
2083 #define OBM_ZOOMD 32745
2084 #define OBM_RESTORED 32744
2085 #define OBM_UPARROWD 32743
2086 #define OBM_DNARROWD 32742
2087 #define OBM_RGARROWD 32741
2088 #define OBM_LFARROWD 32740
2089 #define OBM_MNARROW 32739
2090 #define OBM_COMBO 32738
2091 #define OBM_UPARROWI 32737
2092 #define OBM_DNARROWI 32736
2093 #define OBM_RGARROWI 32735
2094 #define OBM_LFARROWI 32734
2096 #define OBM_FOLDER 32733
2097 #define OBM_FOLDER2 32732
2098 #define OBM_FLOPPY 32731
2099 #define OBM_HDISK 32730
2100 #define OBM_CDROM 32729
2101 #define OBM_TRTYPE 32728
2103 #define OBM_OLD_CLOSE 32767
2104 #define OBM_SIZE 32766
2105 #define OBM_OLD_UPARROW 32765
2106 #define OBM_OLD_DNARROW 32764
2107 #define OBM_OLD_RGARROW 32763
2108 #define OBM_OLD_LFARROW 32762
2109 #define OBM_BTSIZE 32761
2110 #define OBM_CHECK 32760
2111 #define OBM_CHECKBOXES 32759
2112 #define OBM_BTNCORNERS 32758
2113 #define OBM_OLD_REDUCE 32757
2114 #define OBM_OLD_ZOOM 32756
2115 #define OBM_OLD_RESTORE 32755
2117 #define OCR_BUMMER 100
2118 #define OCR_DRAGOBJECT 101
2120 #define OCR_NORMAL 32512
2121 #define OCR_IBEAM 32513
2122 #define OCR_WAIT 32514
2123 #define OCR_CROSS 32515
2124 #define OCR_UP 32516
2125 #define OCR_SIZE 32640
2126 #define OCR_ICON 32641
2127 #define OCR_SIZENWSE 32642
2128 #define OCR_SIZENESW 32643
2129 #define OCR_SIZEWE 32644
2130 #define OCR_SIZENS 32645
2131 #define OCR_SIZEALL 32646
2132 #define OCR_ICOCUR 32647
2134 #define OIC_SAMPLE 32512
2135 #define OIC_HAND 32513
2136 #define OIC_QUES 32514
2137 #define OIC_BANG 32515
2138 #define OIC_NOTE 32516
2139 #define OIC_PORTRAIT 32517
2140 #define OIC_LANDSCAPE 32518
2141 #define OIC_WINEICON 32519
2143 /* Stock GDI objects for GetStockObject() */
2145 #define WHITE_BRUSH 0
2146 #define LTGRAY_BRUSH 1
2147 #define GRAY_BRUSH 2
2148 #define DKGRAY_BRUSH 3
2149 #define BLACK_BRUSH 4
2150 #define NULL_BRUSH 5
2151 #define HOLLOW_BRUSH 5
2152 #define WHITE_PEN 6
2153 #define BLACK_PEN 7
2154 #define NULL_PEN 8
2155 #define OEM_FIXED_FONT 10
2156 #define ANSI_FIXED_FONT 11
2157 #define ANSI_VAR_FONT 12
2158 #define SYSTEM_FONT 13
2159 #define DEVICE_DEFAULT_FONT 14
2160 #define DEFAULT_PALETTE 15
2161 #define SYSTEM_FIXED_FONT 16
2163 /* DragObject stuff */
2165 typedef struct
2167 HWND16 hWnd;
2168 HANDLE16 hScope;
2169 WORD wFlags;
2170 HANDLE16 hList;
2171 HANDLE16 hOfStruct;
2172 POINT16 pt WINE_PACKED;
2173 LONG l WINE_PACKED;
2174 } DRAGINFO, *LPDRAGINFO;
2176 #define DRAGOBJ_PROGRAM 0x0001
2177 #define DRAGOBJ_DATA 0x0002
2178 #define DRAGOBJ_DIRECTORY 0x0004
2179 #define DRAGOBJ_MULTIPLE 0x0008
2180 #define DRAGOBJ_EXTERNAL 0x8000
2182 #define DRAG_PRINT 0x544E5250
2183 #define DRAG_FILE 0x454C4946
2185 /* Messages */
2187 #define WM_NULL 0x0000
2188 #define WM_CREATE 0x0001
2189 #define WM_DESTROY 0x0002
2190 #define WM_MOVE 0x0003
2191 #define WM_SIZEWAIT 0x0004
2192 #define WM_SIZE 0x0005
2193 #define WM_ACTIVATE 0x0006
2194 #define WM_SETFOCUS 0x0007
2195 #define WM_KILLFOCUS 0x0008
2196 #define WM_SETVISIBLE 0x0009
2197 #define WM_ENABLE 0x000a
2198 #define WM_SETREDRAW 0x000b
2199 #define WM_SETTEXT 0x000c
2200 #define WM_GETTEXT 0x000d
2201 #define WM_GETTEXTLENGTH 0x000e
2202 #define WM_PAINT 0x000f
2203 #define WM_CLOSE 0x0010
2204 #define WM_QUERYENDSESSION 0x0011
2205 #define WM_QUIT 0x0012
2206 #define WM_QUERYOPEN 0x0013
2207 #define WM_ERASEBKGND 0x0014
2208 #define WM_SYSCOLORCHANGE 0x0015
2209 #define WM_ENDSESSION 0x0016
2210 #define WM_SYSTEMERROR 0x0017
2211 #define WM_SHOWWINDOW 0x0018
2212 #define WM_CTLCOLOR 0x0019
2213 #define WM_WININICHANGE 0x001a
2214 #define WM_DEVMODECHANGE 0x001b
2215 #define WM_ACTIVATEAPP 0x001c
2216 #define WM_FONTCHANGE 0x001d
2217 #define WM_TIMECHANGE 0x001e
2218 #define WM_CANCELMODE 0x001f
2219 #define WM_SETCURSOR 0x0020
2220 #define WM_MOUSEACTIVATE 0x0021
2221 #define WM_CHILDACTIVATE 0x0022
2222 #define WM_QUEUESYNC 0x0023
2223 #define WM_GETMINMAXINFO 0x0024
2225 #define WM_PAINTICON 0x0026
2226 #define WM_ICONERASEBKGND 0x0027
2227 #define WM_NEXTDLGCTL 0x0028
2228 #define WM_ALTTABACTIVE 0x0029
2229 #define WM_SPOOLERSTATUS 0x002a
2230 #define WM_DRAWITEM 0x002b
2231 #define WM_MEASUREITEM 0x002c
2232 #define WM_DELETEITEM 0x002d
2233 #define WM_VKEYTOITEM 0x002e
2234 #define WM_CHARTOITEM 0x002f
2235 #define WM_SETFONT 0x0030
2236 #define WM_GETFONT 0x0031
2237 #define WM_SETHOTKEY 0x0032
2238 #define WM_GETHOTKEY 0x0033
2239 #define WM_FILESYSCHANGE 0x0034
2240 #define WM_ISACTIVEICON 0x0035
2241 #define WM_QUERYPARKICON 0x0036
2242 #define WM_QUERYDRAGICON 0x0037
2243 #define WM_QUERYSAVESTATE 0x0038
2244 #define WM_COMPAREITEM 0x0039
2245 #define WM_TESTING 0x003a
2247 #define WM_OTHERWINDOWCREATED 0x003c
2248 #define WM_OTHERWINDOWDESTROYED 0x003d
2249 #define WM_ACTIVATESHELLWINDOW 0x003e
2251 #define WM_COMPACTING 0x0041
2253 #define WM_COMMNOTIFY 0x0044
2254 #define WM_WINDOWPOSCHANGING 0x0046
2255 #define WM_WINDOWPOSCHANGED 0x0047
2256 #define WM_POWER 0x0048
2258 #define WM_NCCREATE 0x0081
2259 #define WM_NCDESTROY 0x0082
2260 #define WM_NCCALCSIZE 0x0083
2261 #define WM_NCHITTEST 0x0084
2262 #define WM_NCPAINT 0x0085
2263 #define WM_NCACTIVATE 0x0086
2265 #define WM_GETDLGCODE 0x0087
2266 #define WM_SYNCPAINT 0x0088
2267 #define WM_SYNCTASK 0x0089
2269 /* Non-client mouse messages */
2270 #define WM_NCMOUSEMOVE 0x00a0
2271 #define WM_NCLBUTTONDOWN 0x00a1
2272 #define WM_NCLBUTTONUP 0x00a2
2273 #define WM_NCLBUTTONDBLCLK 0x00a3
2274 #define WM_NCRBUTTONDOWN 0x00a4
2275 #define WM_NCRBUTTONUP 0x00a5
2276 #define WM_NCRBUTTONDBLCLK 0x00a6
2277 #define WM_NCMBUTTONDOWN 0x00a7
2278 #define WM_NCMBUTTONUP 0x00a8
2279 #define WM_NCMBUTTONDBLCLK 0x00a9
2281 /* Keyboard messages */
2282 #define WM_KEYDOWN 0x0100
2283 #define WM_KEYUP 0x0101
2284 #define WM_CHAR 0x0102
2285 #define WM_DEADCHAR 0x0103
2286 #define WM_SYSKEYDOWN 0x0104
2287 #define WM_SYSKEYUP 0x0105
2288 #define WM_SYSCHAR 0x0106
2289 #define WM_SYSDEADCHAR 0x0107
2290 #define WM_KEYFIRST WM_KEYDOWN
2291 #define WM_KEYLAST 0x0108
2293 #define WM_INITDIALOG 0x0110
2294 #define WM_COMMAND 0x0111
2295 #define WM_SYSCOMMAND 0x0112
2296 #define WM_TIMER 0x0113
2297 #define WM_SYSTIMER 0x0118
2299 /* scroll messages */
2300 #define WM_HSCROLL 0x0114
2301 #define WM_VSCROLL 0x0115
2303 /* Menu messages */
2304 #define WM_INITMENU 0x0116
2305 #define WM_INITMENUPOPUP 0x0117
2307 #define WM_MENUSELECT 0x011F
2308 #define WM_MENUCHAR 0x0120
2309 #define WM_ENTERIDLE 0x0121
2311 #define WM_LBTRACKPOINT 0x0131
2313 /* Win32 CTLCOLOR messages */
2314 #define WM_CTLCOLORMSGBOX 0x0132
2315 #define WM_CTLCOLOREDIT 0x0133
2316 #define WM_CTLCOLORLISTBOX 0x0134
2317 #define WM_CTLCOLORBTN 0x0135
2318 #define WM_CTLCOLORDLG 0x0136
2319 #define WM_CTLCOLORSCROLLBAR 0x0137
2320 #define WM_CTLCOLORSTATIC 0x0138
2322 /* Mouse messages */
2323 #define WM_MOUSEMOVE 0x0200
2324 #define WM_LBUTTONDOWN 0x0201
2325 #define WM_LBUTTONUP 0x0202
2326 #define WM_LBUTTONDBLCLK 0x0203
2327 #define WM_RBUTTONDOWN 0x0204
2328 #define WM_RBUTTONUP 0x0205
2329 #define WM_RBUTTONDBLCLK 0x0206
2330 #define WM_MBUTTONDOWN 0x0207
2331 #define WM_MBUTTONUP 0x0208
2332 #define WM_MBUTTONDBLCLK 0x0209
2333 #define WM_MOUSEFIRST WM_MOUSEMOVE
2334 #define WM_MOUSELAST WM_MBUTTONDBLCLK
2336 #define WM_PARENTNOTIFY 0x0210
2337 #define WM_ENTERMENULOOP 0x0211
2338 #define WM_EXITMENULOOP 0x0212
2339 #define WM_NEXTMENU 0x0213
2341 #define WM_MDICREATE 0x0220
2342 #define WM_MDIDESTROY 0x0221
2343 #define WM_MDIACTIVATE 0x0222
2344 #define WM_MDIRESTORE 0x0223
2345 #define WM_MDINEXT 0x0224
2346 #define WM_MDIMAXIMIZE 0x0225
2347 #define WM_MDITILE 0x0226
2348 #define WM_MDICASCADE 0x0227
2349 #define WM_MDIICONARRANGE 0x0228
2350 #define WM_MDIGETACTIVE 0x0229
2351 #define WM_DROPOBJECT 0x022A
2352 #define WM_QUERYDROPOBJECT 0x022B
2353 #define WM_BEGINDRAG 0x022C
2354 #define WM_DRAGLOOP 0x022D
2355 #define WM_DRAGSELECT 0x022E
2356 #define WM_DRAGMOVE 0x022F
2357 #define WM_MDISETMENU 0x0230
2359 #define WM_ENTERSIZEMOVE 0x0231
2360 #define WM_EXITSIZEMOVE 0x0232
2361 #define WM_DROPFILES 0x0233
2363 #define WM_CUT 0x0300
2364 #define WM_COPY 0x0301
2365 #define WM_PASTE 0x0302
2366 #define WM_CLEAR 0x0303
2367 #define WM_UNDO 0x0304
2368 #define WM_RENDERFORMAT 0x0305
2369 #define WM_RENDERALLFORMATS 0x0306
2370 #define WM_DESTROYCLIPBOARD 0x0307
2371 #define WM_DRAWCLIPBOARD 0x0308
2372 #define WM_PAINTCLIPBOARD 0x0309
2373 #define WM_VSCROLLCLIPBOARD 0x030A
2374 #define WM_SIZECLIPBOARD 0x030B
2375 #define WM_ASKCBFORMATNAME 0x030C
2376 #define WM_CHANGECBCHAIN 0x030D
2377 #define WM_HSCROLLCLIPBOARD 0x030E
2378 #define WM_QUERYNEWPALETTE 0x030F
2379 #define WM_PALETTEISCHANGING 0x0310
2380 #define WM_PALETTECHANGED 0x0311
2382 #define WM_COALESCE_FIRST 0x0390
2383 #define WM_COALESCE_LAST 0x039F
2385 /* misc messages */
2386 #define WM_NULL 0x0000
2387 #define WM_USER 0x0400
2388 #define WM_CPL_LAUNCH (WM_USER + 1000)
2389 #define WM_CPL_LAUNCHED (WM_USER + 1001)
2391 /* Key status flags for mouse events */
2392 #define MK_LBUTTON 0x0001
2393 #define MK_RBUTTON 0x0002
2394 #define MK_SHIFT 0x0004
2395 #define MK_CONTROL 0x0008
2396 #define MK_MBUTTON 0x0010
2398 /* Mouse_Event flags */
2399 #define ME_MOVE 0x01
2400 #define ME_LDOWN 0x02
2401 #define ME_LUP 0x04
2402 #define ME_RDOWN 0x08
2403 #define ME_RUP 0x10
2405 /* Queue status flags */
2406 #define QS_KEY 0x0001
2407 #define QS_MOUSEMOVE 0x0002
2408 #define QS_MOUSEBUTTON 0x0004
2409 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
2410 #define QS_POSTMESSAGE 0x0008
2411 #define QS_TIMER 0x0010
2412 #define QS_PAINT 0x0020
2413 #define QS_SENDMESSAGE 0x0040
2414 #define QS_ALLINPUT 0x007f
2416 /* PeekMessage() options */
2417 #define PM_NOREMOVE 0x0000
2418 #define PM_REMOVE 0x0001
2419 #define PM_NOYIELD 0x0002
2421 #define WM_SHOWWINDOW 0x0018
2423 /* WM_SHOWWINDOW wParam codes */
2424 #define SW_PARENTCLOSING 1
2425 #define SW_OTHERMAXIMIZED 2
2426 #define SW_PARENTOPENING 3
2427 #define SW_OTHERRESTORED 4
2429 /* ShowWindow() codes */
2430 #define SW_HIDE 0
2431 #define SW_SHOWNORMAL 1
2432 #define SW_NORMAL 1
2433 #define SW_SHOWMINIMIZED 2
2434 #define SW_SHOWMAXIMIZED 3
2435 #define SW_MAXIMIZE 3
2436 #define SW_SHOWNOACTIVATE 4
2437 #define SW_SHOW 5
2438 #define SW_MINIMIZE 6
2439 #define SW_SHOWMINNOACTIVE 7
2440 #define SW_SHOWNA 8
2441 #define SW_RESTORE 9
2442 #define SW_SHOWDEFAULT 10
2443 #define SW_MAX 10
2444 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
2446 /* WM_SIZE message wParam values */
2447 #define SIZE_RESTORED 0
2448 #define SIZE_MINIMIZED 1
2449 #define SIZE_MAXIMIZED 2
2450 #define SIZE_MAXSHOW 3
2451 #define SIZE_MAXHIDE 4
2452 #define SIZENORMAL SIZE_RESTORED
2453 #define SIZEICONIC SIZE_MINIMIZED
2454 #define SIZEFULLSCREEN SIZE_MAXIMIZED
2455 #define SIZEZOOMSHOW SIZE_MAXSHOW
2456 #define SIZEZOOMHIDE SIZE_MAXHIDE
2458 /* SetWindowPos() and WINDOWPOS flags */
2459 #define SWP_NOSIZE 0x0001
2460 #define SWP_NOMOVE 0x0002
2461 #define SWP_NOZORDER 0x0004
2462 #define SWP_NOREDRAW 0x0008
2463 #define SWP_NOACTIVATE 0x0010
2464 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2465 #define SWP_SHOWWINDOW 0x0040
2466 #define SWP_HIDEWINDOW 0x0080
2467 #define SWP_NOCOPYBITS 0x0100
2468 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2470 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2471 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2473 #define SWP_NOSENDCHANGING 0x0400
2474 #define SWP_DEFERERASE 0x2000
2476 #define HWND_BROADCAST ((HWND)0xffff)
2478 /* SetWindowPos() hwndInsertAfter field values */
2479 #define HWND_TOP ((HWND)0)
2480 #define HWND_BOTTOM ((HWND)1)
2481 #define HWND_TOPMOST ((HWND)-1)
2482 #define HWND_NOTOPMOST ((HWND)-2)
2484 /* Flags for TrackPopupMenu */
2485 #define TPM_LEFTBUTTON 0x0000
2486 #define TPM_RIGHTBUTTON 0x0002
2487 #define TPM_LEFTALIGN 0x0000
2488 #define TPM_CENTERALIGN 0x0004
2489 #define TPM_RIGHTALIGN 0x0008
2491 #define MF_INSERT 0x0000
2492 #define MF_CHANGE 0x0080
2493 #define MF_APPEND 0x0100
2494 #define MF_DELETE 0x0200
2495 #define MF_REMOVE 0x1000
2496 #define MF_END 0x0080
2498 #define MF_ENABLED 0x0000
2499 #define MF_GRAYED 0x0001
2500 #define MF_DISABLED 0x0002
2501 #define MF_STRING 0x0000
2502 #define MF_BITMAP 0x0004
2503 #define MF_UNCHECKED 0x0000
2504 #define MF_CHECKED 0x0008
2505 #define MF_POPUP 0x0010
2506 #define MF_MENUBARBREAK 0x0020
2507 #define MF_MENUBREAK 0x0040
2508 #define MF_UNHILITE 0x0000
2509 #define MF_HILITE 0x0080
2510 #define MF_OWNERDRAW 0x0100
2511 #define MF_USECHECKBITMAPS 0x0200
2512 #define MF_BYCOMMAND 0x0000
2513 #define MF_BYPOSITION 0x0400
2514 #define MF_SEPARATOR 0x0800
2515 #define MF_SYSMENU 0x2000
2516 #define MF_HELP 0x4000
2517 #define MF_MOUSESELECT 0x8000
2519 #ifndef NOWINOFFSETS
2520 #define GCW_HBRBACKGROUND (-10)
2521 #endif
2523 #define MB_OK 0x0000
2524 #define MB_OKCANCEL 0x0001
2525 #define MB_ABORTRETRYIGNORE 0x0002
2526 #define MB_YESNOCANCEL 0x0003
2527 #define MB_YESNO 0x0004
2528 #define MB_RETRYCANCEL 0x0005
2529 #define MB_TYPEMASK 0x000F
2531 #define MB_ICONHAND 0x0010
2532 #define MB_ICONQUESTION 0x0020
2533 #define MB_ICONEXCLAMATION 0x0030
2534 #define MB_ICONASTERISK 0x0040
2535 #define MB_ICONMASK 0x00F0
2537 #define MB_ICONINFORMATION MB_ICONASTERISK
2538 #define MB_ICONSTOP MB_ICONHAND
2540 #define MB_DEFBUTTON1 0x0000
2541 #define MB_DEFBUTTON2 0x0100
2542 #define MB_DEFBUTTON3 0x0200
2543 #define MB_DEFMASK 0x0F00
2545 #define MB_APPLMODAL 0x0000
2546 #define MB_SYSTEMMODAL 0x1000
2547 #define MB_TASKMODAL 0x2000
2549 #define MB_NOFOCUS 0x8000
2552 #define DT_TOP 0
2553 #define DT_LEFT 0
2554 #define DT_CENTER 1
2555 #define DT_RIGHT 2
2556 #define DT_VCENTER 4
2557 #define DT_BOTTOM 8
2558 #define DT_WORDBREAK 16
2559 #define DT_SINGLELINE 32
2560 #define DT_EXPANDTABS 64
2561 #define DT_TABSTOP 128
2562 #define DT_NOCLIP 256
2563 #define DT_EXTERNALLEADING 512
2564 #define DT_CALCRECT 1024
2565 #define DT_NOPREFIX 2048
2566 #define DT_INTERNAL 4096
2568 /* DrawEdge() flags */
2569 #define BDR_RAISEDOUTER 0x0001
2570 #define BDR_SUNKENOUTER 0x0002
2571 #define BDR_RAISEDINNER 0x0004
2572 #define BDR_SUNKENINNER 0x0008
2574 #define BDR_OUTER 0x0003
2575 #define BDR_INNER 0x000c
2576 #define BDR_RAISED 0x0005
2577 #define BDR_SUNKEN 0x000a
2579 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
2580 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
2581 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
2582 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
2584 /* border flags */
2585 #define BF_LEFT 0x0001
2586 #define BF_TOP 0x0002
2587 #define BF_RIGHT 0x0004
2588 #define BF_BOTTOM 0x0008
2589 #define BF_DIAGONAL 0x0010
2590 #define BF_MIDDLE 0x0800 /* Fill in the middle */
2591 #define BF_SOFT 0x1000 /* For softer buttons */
2592 #define BF_ADJUST 0x2000 /* Calculate the space left over */
2593 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
2594 #define BF_MONO 0x8000 /* For monochrome borders */
2595 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
2596 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
2597 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
2598 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
2599 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
2600 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
2601 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
2602 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
2603 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
2605 /* Window Styles */
2606 #define WS_OVERLAPPED 0x00000000L
2607 #define WS_POPUP 0x80000000L
2608 #define WS_CHILD 0x40000000L
2609 #define WS_MINIMIZE 0x20000000L
2610 #define WS_VISIBLE 0x10000000L
2611 #define WS_DISABLED 0x08000000L
2612 #define WS_CLIPSIBLINGS 0x04000000L
2613 #define WS_CLIPCHILDREN 0x02000000L
2614 #define WS_MAXIMIZE 0x01000000L
2615 #define WS_CAPTION 0x00C00000L
2616 #define WS_BORDER 0x00800000L
2617 #define WS_DLGFRAME 0x00400000L
2618 #define WS_VSCROLL 0x00200000L
2619 #define WS_HSCROLL 0x00100000L
2620 #define WS_SYSMENU 0x00080000L
2621 #define WS_THICKFRAME 0x00040000L
2622 #define WS_GROUP 0x00020000L
2623 #define WS_TABSTOP 0x00010000L
2624 #define WS_MINIMIZEBOX 0x00020000L
2625 #define WS_MAXIMIZEBOX 0x00010000L
2626 #define WS_TILED WS_OVERLAPPED
2627 #define WS_ICONIC WS_MINIMIZE
2628 #define WS_SIZEBOX WS_THICKFRAME
2629 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2630 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2631 #define WS_CHILDWINDOW (WS_CHILD)
2632 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2634 /* Window extended styles */
2635 #define WS_EX_DLGMODALFRAME 0x00000001L
2636 #define WS_EX_DRAGDETECT 0x00000002L
2637 #define WS_EX_NOPARENTNOTIFY 0x00000004L
2638 #define WS_EX_TOPMOST 0x00000008L
2639 #define WS_EX_ACCEPTFILES 0x00000010L
2640 #define WS_EX_TRANSPARENT 0x00000020L
2642 /* Window scrolling */
2643 #define SW_SCROLLCHILDREN 0x0001
2644 #define SW_INVALIDATE 0x0002
2645 #define SW_ERASE 0x0004
2647 /* CreateWindow() coordinates */
2648 #define CW_USEDEFAULT16 ((INT16)0x8000)
2649 #define CW_USEDEFAULT32 ((INT32)0x80000000)
2650 #define CW_USEDEFAULT WINELIB_NAME(CW_USEDEFAULT)
2652 /* Button control styles */
2653 #define BS_PUSHBUTTON 0x00000000L
2654 #define BS_DEFPUSHBUTTON 0x00000001L
2655 #define BS_CHECKBOX 0x00000002L
2656 #define BS_AUTOCHECKBOX 0x00000003L
2657 #define BS_RADIOBUTTON 0x00000004L
2658 #define BS_3STATE 0x00000005L
2659 #define BS_AUTO3STATE 0x00000006L
2660 #define BS_GROUPBOX 0x00000007L
2661 #define BS_USERBUTTON 0x00000008L
2662 #define BS_AUTORADIOBUTTON 0x00000009L
2663 #define BS_OWNERDRAW 0x0000000BL
2664 #define BS_LEFTTEXT 0x00000020L
2666 /* Win16 button control messages */
2667 #define BM_GETCHECK16 (WM_USER+0)
2668 #define BM_SETCHECK16 (WM_USER+1)
2669 #define BM_GETSTATE16 (WM_USER+2)
2670 #define BM_SETSTATE16 (WM_USER+3)
2671 #define BM_SETSTYLE16 (WM_USER+4)
2672 #define BM_CLICK16 WM_NULL /* Does not exist in Win16 */
2673 #define BM_GETIMAGE16 WM_NULL /* Does not exist in Win16 */
2674 #define BM_SETIMAGE16 WM_NULL /* Does not exist in Win16 */
2675 /* Win32 button control messages */
2676 #define BM_GETCHECK32 0x00f0
2677 #define BM_SETCHECK32 0x00f1
2678 #define BM_GETSTATE32 0x00f2
2679 #define BM_SETSTATE32 0x00f3
2680 #define BM_SETSTYLE32 0x00f4
2681 #define BM_CLICK32 0x00f5
2682 #define BM_GETIMAGE32 0x00f6
2683 #define BM_SETIMAGE32 0x00f7
2684 /* Winelib button control messages */
2685 #define BM_GETCHECK WINELIB_NAME(BM_GETCHECK)
2686 #define BM_SETCHECK WINELIB_NAME(BM_SETCHECK)
2687 #define BM_GETSTATE WINELIB_NAME(BM_GETSTATE)
2688 #define BM_SETSTATE WINELIB_NAME(BM_SETSTATE)
2689 #define BM_SETSTYLE WINELIB_NAME(BM_SETSTYLE)
2690 #define BM_CLICK WINELIB_NAME(BM_CLICK)
2691 #define BM_GETIMAGE WINELIB_NAME(BM_GETIMAGE)
2692 #define BM_SETIMAGE WINELIB_NAME(BM_SETIMAGE)
2694 /* Button notification codes */
2695 #define BN_CLICKED 0
2696 #define BN_PAINT 1
2697 #define BN_HILITE 2
2698 #define BN_UNHILITE 3
2699 #define BN_DISABLE 4
2700 #define BN_DOUBLECLICKED 5
2702 /* Static Control Styles */
2703 #define SS_LEFT 0x00000000L
2704 #define SS_CENTER 0x00000001L
2705 #define SS_RIGHT 0x00000002L
2706 #define SS_ICON 0x00000003L
2707 #define SS_BLACKRECT 0x00000004L
2708 #define SS_GRAYRECT 0x00000005L
2709 #define SS_WHITERECT 0x00000006L
2710 #define SS_BLACKFRAME 0x00000007L
2711 #define SS_GRAYFRAME 0x00000008L
2712 #define SS_WHITEFRAME 0x00000009L
2713 #define SS_SIMPLE 0x0000000BL
2714 #define SS_LEFTNOWORDWRAP 0x0000000CL
2715 #define SS_NOPREFIX 0x00000080L
2717 /* Static Control Messages */
2718 #define STM_SETICON (WM_USER+0)
2719 #define STM_GETICON (WM_USER+1)
2721 /* WM_H/VSCROLL commands */
2722 #define SB_LINEUP 0
2723 #define SB_LINELEFT 0
2724 #define SB_LINEDOWN 1
2725 #define SB_LINERIGHT 1
2726 #define SB_PAGEUP 2
2727 #define SB_PAGELEFT 2
2728 #define SB_PAGEDOWN 3
2729 #define SB_PAGERIGHT 3
2730 #define SB_THUMBPOSITION 4
2731 #define SB_THUMBTRACK 5
2732 #define SB_TOP 6
2733 #define SB_LEFT 6
2734 #define SB_BOTTOM 7
2735 #define SB_RIGHT 7
2736 #define SB_ENDSCROLL 8
2738 /* Scroll bar selection constants */
2739 #define SB_HORZ 0
2740 #define SB_VERT 1
2741 #define SB_CTL 2
2742 #define SB_BOTH 3
2744 /* Scrollbar styles */
2745 #define SBS_HORZ 0x0000L
2746 #define SBS_VERT 0x0001L
2747 #define SBS_TOPALIGN 0x0002L
2748 #define SBS_LEFTALIGN 0x0002L
2749 #define SBS_BOTTOMALIGN 0x0004L
2750 #define SBS_RIGHTALIGN 0x0004L
2751 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
2752 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
2753 #define SBS_SIZEBOX 0x0008L
2755 /* EnableScrollBar() flags */
2756 #define ESB_ENABLE_BOTH 0x0000
2757 #define ESB_DISABLE_BOTH 0x0003
2759 #define ESB_DISABLE_LEFT 0x0001
2760 #define ESB_DISABLE_RIGHT 0x0002
2762 #define ESB_DISABLE_UP 0x0001
2763 #define ESB_DISABLE_DOWN 0x0002
2765 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
2766 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
2768 /* Scrollbar messages */
2769 #define SBM_SETPOS16 (WM_USER+0)
2770 #define SBM_SETPOS32 0x00e0
2771 #define SBM_SETPOS WINELIB_NAME(SBM_SETPOS)
2772 #define SBM_GETPOS16 (WM_USER+1)
2773 #define SBM_GETPOS32 0x00e1
2774 #define SBM_GETPOS WINELIB_NAME(SBM_GETPOS)
2775 #define SBM_SETRANGE16 (WM_USER+2)
2776 #define SBM_SETRANGE32 0x00e2
2777 #define SBM_SETRANGE WINELIB_NAME(SBM_SETRANGE)
2778 #define SBM_GETRANGE16 (WM_USER+3)
2779 #define SBM_GETRANGE32 0x00e3
2780 #define SBM_GETRANGE WINELIB_NAME(SBM_GETRANGE)
2781 #define SBM_ENABLE_ARROWS16 (WM_USER+4)
2782 #define SBM_ENABLE_ARROWS32 0x00e4
2783 #define SBM_ENABLE_ARROWS WINELIB_NAME(SBM_ENABLE_ARROWS)
2784 #define SBM_SETRANGEREDRAW16 WM_NULL /* Not in Win16 */
2785 #define SBM_SETRANGEREDRAW32 0x00e6
2786 #define SBM_SETRANGEREDRAW WINELIB_NAME(SBM_SETRANGEREDRAW)
2787 #define SBM_SETSCROLLINFO16 WM_NULL /* Not in Win16 */
2788 #define SBM_SETSCROLLINFO32 0x00e9
2789 #define SBM_SETSCROLLINFO WINELIB_NAME(SBM_SETSCROLLINFO)
2790 #define SBM_GETSCROLLINFO16 WM_NULL /* Not in Win16 */
2791 #define SBM_GETSCROLLINFO32 0x00ea
2792 #define SBM_GETSCROLLINFO WINELIB_NAME(SBM_GETSCROLLINFO)
2794 /* Scrollbar info */
2795 typedef struct
2797 UINT32 cbSize;
2798 UINT32 fMask;
2799 INT32 nMin;
2800 INT32 nMax;
2801 UINT32 nPage;
2802 INT32 nPos;
2803 INT32 nTrackPos;
2804 } SCROLLINFO, *LPSCROLLINFO;
2806 /* GetScrollInfo() flags */
2807 #define SIF_RANGE 0x0001
2808 #define SIF_PAGE 0x0002
2809 #define SIF_POS 0x0004
2810 #define SIF_DISABLENOSCROLL 0x0008
2811 #define SIF_TRACKPOS 0x0010
2812 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
2814 /* Listbox styles */
2815 #define LBS_NOTIFY 0x0001
2816 #define LBS_SORT 0x0002
2817 #define LBS_NOREDRAW 0x0004
2818 #define LBS_MULTIPLESEL 0x0008
2819 #define LBS_OWNERDRAWFIXED 0x0010
2820 #define LBS_OWNERDRAWVARIABLE 0x0020
2821 #define LBS_HASSTRINGS 0x0040
2822 #define LBS_USETABSTOPS 0x0080
2823 #define LBS_NOINTEGRALHEIGHT 0x0100
2824 #define LBS_MULTICOLUMN 0x0200
2825 #define LBS_WANTKEYBOARDINPUT 0x0400
2826 #define LBS_EXTENDEDSEL 0x0800
2827 #define LBS_DISABLENOSCROLL 0x1000
2828 #define LBS_NODATA 0x2000
2829 #define LBS_NOSEL 0x4000
2830 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
2832 /* Listbox messages */
2833 #define LB_ADDSTRING16 (WM_USER+1)
2834 #define LB_ADDSTRING32 0x0180
2835 #define LB_ADDSTRING WINELIB_NAME(LB_ADDSTRING)
2836 #define LB_INSERTSTRING16 (WM_USER+2)
2837 #define LB_INSERTSTRING32 0x0181
2838 #define LB_INSERTSTRING WINELIB_NAME(LB_INSERTSTRING)
2839 #define LB_DELETESTRING16 (WM_USER+3)
2840 #define LB_DELETESTRING32 0x0182
2841 #define LB_DELETESTRING WINELIB_NAME(LB_DELETESTRING)
2842 #define LB_SELITEMRANGEEX16 (WM_USER+4)
2843 #define LB_SELITEMRANGEEX32 0x0183
2844 #define LB_SELITEMRANGEEX WINELIB_NAME(LB_SELITEMRANGEEX)
2845 #define LB_RESETCONTENT16 (WM_USER+5)
2846 #define LB_RESETCONTENT32 0x0184
2847 #define LB_RESETCONTENT WINELIB_NAME(LB_RESETCONTENT)
2848 #define LB_SETSEL16 (WM_USER+6)
2849 #define LB_SETSEL32 0x0185
2850 #define LB_SETSEL WINELIB_NAME(LB_SETSEL)
2851 #define LB_SETCURSEL16 (WM_USER+7)
2852 #define LB_SETCURSEL32 0x0186
2853 #define LB_SETCURSEL WINELIB_NAME(LB_SETCURSEL)
2854 #define LB_GETSEL16 (WM_USER+8)
2855 #define LB_GETSEL32 0x0187
2856 #define LB_GETSEL WINELIB_NAME(LB_GETSEL)
2857 #define LB_GETCURSEL16 (WM_USER+9)
2858 #define LB_GETCURSEL32 0x0188
2859 #define LB_GETCURSEL WINELIB_NAME(LB_GETCURSEL)
2860 #define LB_GETTEXT16 (WM_USER+10)
2861 #define LB_GETTEXT32 0x0189
2862 #define LB_GETTEXT WINELIB_NAME(LB_GETTEXT)
2863 #define LB_GETTEXTLEN16 (WM_USER+11)
2864 #define LB_GETTEXTLEN32 0x018a
2865 #define LB_GETTEXTLEN WINELIB_NAME(LB_GETTEXTLEN)
2866 #define LB_GETCOUNT16 (WM_USER+12)
2867 #define LB_GETCOUNT32 0x018b
2868 #define LB_GETCOUNT WINELIB_NAME(LB_GETCOUNT)
2869 #define LB_SELECTSTRING16 (WM_USER+13)
2870 #define LB_SELECTSTRING32 0x018c
2871 #define LB_SELECTSTRING WINELIB_NAME(LB_SELECTSTRING)
2872 #define LB_DIR16 (WM_USER+14)
2873 #define LB_DIR32 0x018d
2874 #define LB_DIR WINELIB_NAME(LB_DIR)
2875 #define LB_GETTOPINDEX16 (WM_USER+15)
2876 #define LB_GETTOPINDEX32 0x018e
2877 #define LB_GETTOPINDEX WINELIB_NAME(LB_GETTOPINDEX)
2878 #define LB_FINDSTRING16 (WM_USER+16)
2879 #define LB_FINDSTRING32 0x018f
2880 #define LB_FINDSTRING WINELIB_NAME(LB_FINDSTRING)
2881 #define LB_GETSELCOUNT16 (WM_USER+17)
2882 #define LB_GETSELCOUNT32 0x0190
2883 #define LB_GETSELCOUNT WINELIB_NAME(LB_GETSELCOUNT)
2884 #define LB_GETSELITEMS16 (WM_USER+18)
2885 #define LB_GETSELITEMS32 0x0191
2886 #define LB_GETSELITEMS WINELIB_NAME(LB_GETSELITEMS)
2887 #define LB_SETTABSTOPS16 (WM_USER+19)
2888 #define LB_SETTABSTOPS32 0x0192
2889 #define LB_SETTABSTOPS WINELIB_NAME(LB_SETTABSTOPS)
2890 #define LB_GETHORIZONTALEXTENT16 (WM_USER+20)
2891 #define LB_GETHORIZONTALEXTENT32 0x0193
2892 #define LB_GETHORIZONTALEXTENT WINELIB_NAME(LB_GETHORIZONTALEXTENT)
2893 #define LB_SETHORIZONTALEXTENT16 (WM_USER+21)
2894 #define LB_SETHORIZONTALEXTENT32 0x0194
2895 #define LB_SETHORIZONTALEXTENT WINELIB_NAME(LB_SETHORIZONTALEXTENT)
2896 #define LB_SETCOLUMNWIDTH16 (WM_USER+22)
2897 #define LB_SETCOLUMNWIDTH32 0x0195
2898 #define LB_SETCOLUMNWIDTH WINELIB_NAME(LB_SETCOLUMNWIDTH)
2899 #define LB_ADDFILE16 (WM_USER+23)
2900 #define LB_ADDFILE32 0x0196
2901 #define LB_ADDFILE WINELIB_NAME(LB_ADDFILE)
2902 #define LB_SETTOPINDEX16 (WM_USER+24)
2903 #define LB_SETTOPINDEX32 0x0197
2904 #define LB_SETTOPINDEX WINELIB_NAME(LB_SETTOPINDEX)
2905 #define LB_GETITEMRECT16 (WM_USER+25)
2906 #define LB_GETITEMRECT32 0x0198
2907 #define LB_GETITEMRECT WINELIB_NAME(LB_GETITEMRECT)
2908 #define LB_GETITEMDATA16 (WM_USER+26)
2909 #define LB_GETITEMDATA32 0x0199
2910 #define LB_GETITEMDATA WINELIB_NAME(LB_GETITEMDATA)
2911 #define LB_SETITEMDATA16 (WM_USER+27)
2912 #define LB_SETITEMDATA32 0x019a
2913 #define LB_SETITEMDATA WINELIB_NAME(LB_SETITEMDATA)
2914 #define LB_SELITEMRANGE16 (WM_USER+28)
2915 #define LB_SELITEMRANGE32 0x019b
2916 #define LB_SELITEMRANGE WINELIB_NAME(LB_SELITEMRANGE)
2917 #define LB_SETANCHORINDEX16 (WM_USER+29)
2918 #define LB_SETANCHORINDEX32 0x019c
2919 #define LB_SETANCHORINDEX WINELIB_NAME(LB_SETANCHORINDEX)
2920 #define LB_GETANCHORINDEX16 (WM_USER+30)
2921 #define LB_GETANCHORINDEX32 0x019d
2922 #define LB_GETANCHORINDEX WINELIB_NAME(LB_GETANCHORINDEX)
2923 #define LB_SETCARETINDEX16 (WM_USER+31)
2924 #define LB_SETCARETINDEX32 0x019e
2925 #define LB_SETCARETINDEX WINELIB_NAME(LB_SETCARETINDEX)
2926 #define LB_GETCARETINDEX16 (WM_USER+32)
2927 #define LB_GETCARETINDEX32 0x019f
2928 #define LB_GETCARETINDEX WINELIB_NAME(LB_GETCARETINDEX)
2929 #define LB_SETITEMHEIGHT16 (WM_USER+33)
2930 #define LB_SETITEMHEIGHT32 0x01a0
2931 #define LB_SETITEMHEIGHT WINELIB_NAME(LB_SETITEMHEIGHT)
2932 #define LB_GETITEMHEIGHT16 (WM_USER+34)
2933 #define LB_GETITEMHEIGHT32 0x01a1
2934 #define LB_GETITEMHEIGHT WINELIB_NAME(LB_GETITEMHEIGHT)
2935 #define LB_FINDSTRINGEXACT16 (WM_USER+35)
2936 #define LB_FINDSTRINGEXACT32 0x01a2
2937 #define LB_FINDSTRINGEXACT WINELIB_NAME(LB_FINDSTRINGEXACT)
2938 #define LB_CARETON16 (WM_USER+36)
2939 #define LB_CARETON32 0x01a3
2940 #define LB_CARETON WINELIB_NAME(LB_CARETON)
2941 #define LB_CARETOFF16 (WM_USER+37)
2942 #define LB_CARETOFF32 0x01a4
2943 #define LB_CARETOFF WINELIB_NAME(LB_CARETOFF)
2944 #define LB_SETLOCALE16 WM_NULL /* Not in Win16 */
2945 #define LB_SETLOCALE32 0x01a5
2946 #define LB_SETLOCALE WINELIB_NAME(LB_SETLOCALE)
2947 #define LB_GETLOCALE16 WM_NULL /* Not in Win16 */
2948 #define LB_GETLOCALE32 0x01a6
2949 #define LB_GETLOCALE WINELIB_NAME(LB_GETLOCALE)
2950 #define LB_SETCOUNT16 WM_NULL /* Not in Win16 */
2951 #define LB_SETCOUNT32 0x01a7
2952 #define LB_SETCOUNT WINELIB_NAME(LB_SETCOUNT)
2953 #define LB_INITSTORAGE16 WM_NULL /* Not in Win16 */
2954 #define LB_INITSTORAGE32 0x01a8
2955 #define LB_INITSTORAGE WINELIB_NAME(LB_INITSTORAGE)
2956 #define LB_ITEMFROMPOINT16 WM_NULL /* Not in Win16 */
2957 #define LB_ITEMFROMPOINT32 0x01a9
2958 #define LB_ITEMFROMPOINT WINELIB_NAME(LB_ITEMFROMPOINT)
2960 /* Listbox notification codes */
2961 #define LBN_ERRSPACE (-2)
2962 #define LBN_SELCHANGE 1
2963 #define LBN_DBLCLK 2
2964 #define LBN_SELCANCEL 3
2965 #define LBN_SETFOCUS 4
2966 #define LBN_KILLFOCUS 5
2968 /* Listbox message return values */
2969 #define LB_OKAY 0
2970 #define LB_ERR (-1)
2971 #define LB_ERRSPACE (-2)
2973 #define LB_CTLCODE 0L
2975 /* Combo box styles */
2976 #define CBS_SIMPLE 0x0001L
2977 #define CBS_DROPDOWN 0x0002L
2978 #define CBS_DROPDOWNLIST 0x0003L
2979 #define CBS_OWNERDRAWFIXED 0x0010L
2980 #define CBS_OWNERDRAWVARIABLE 0x0020L
2981 #define CBS_AUTOHSCROLL 0x0040L
2982 #define CBS_OEMCONVERT 0x0080L
2983 #define CBS_SORT 0x0100L
2984 #define CBS_HASSTRINGS 0x0200L
2985 #define CBS_NOINTEGRALHEIGHT 0x0400L
2986 #define CBS_DISABLENOSCROLL 0x0800L
2988 /* Combo box messages */
2989 #define CB_GETEDITSEL16 (WM_USER+0)
2990 #define CB_GETEDITSEL32 0x0140
2991 #define CB_GETEDITSEL WINELIB_NAME(CB_GETEDITSEL)
2992 #define CB_LIMITTEXT16 (WM_USER+1)
2993 #define CB_LIMITTEXT32 0x0141
2994 #define CB_LIMITTEXT WINELIB_NAME(CB_LIMITTEXT)
2995 #define CB_SETEDITSEL16 (WM_USER+2)
2996 #define CB_SETEDITSEL32 0x0142
2997 #define CB_SETEDITSEL WINELIB_NAME(CB_SETEDITSEL)
2998 #define CB_ADDSTRING16 (WM_USER+3)
2999 #define CB_ADDSTRING32 0x0143
3000 #define CB_ADDSTRING WINELIB_NAME(CB_ADDSTRING)
3001 #define CB_DELETESTRING16 (WM_USER+4)
3002 #define CB_DELETESTRING32 0x0144
3003 #define CB_DELETESTRING WINELIB_NAME(CB_DELETESTRING)
3004 #define CB_DIR16 (WM_USER+5)
3005 #define CB_DIR32 0x0145
3006 #define CB_DIR WINELIB_NAME(CB_DIR)
3007 #define CB_GETCOUNT16 (WM_USER+6)
3008 #define CB_GETCOUNT32 0x0146
3009 #define CB_GETCOUNT WINELIB_NAME(CB_GETCOUNT)
3010 #define CB_GETCURSEL16 (WM_USER+7)
3011 #define CB_GETCURSEL32 0x0147
3012 #define CB_GETCURSEL WINELIB_NAME(CB_GETCURSEL)
3013 #define CB_GETLBTEXT16 (WM_USER+8)
3014 #define CB_GETLBTEXT32 0x0148
3015 #define CB_GETLBTEXT WINELIB_NAME(CB_GETLBTEXT)
3016 #define CB_GETLBTEXTLEN16 (WM_USER+9)
3017 #define CB_GETLBTEXTLEN32 0x0149
3018 #define CB_GETLBTEXTLEN WINELIB_NAME(CB_GETLBTEXTLEN)
3019 #define CB_INSERTSTRING16 (WM_USER+10)
3020 #define CB_INSERTSTRING32 0x014a
3021 #define CB_INSERTSTRING WINELIB_NAME(CB_INSERTSTRING)
3022 #define CB_RESETCONTENT16 (WM_USER+11)
3023 #define CB_RESETCONTENT32 0x014b
3024 #define CB_RESETCONTENT WINELIB_NAME(CB_RESETCONTENT)
3025 #define CB_FINDSTRING16 (WM_USER+12)
3026 #define CB_FINDSTRING32 0x014c
3027 #define CB_FINDSTRING WINELIB_NAME(CB_FINDSTRING)
3028 #define CB_SELECTSTRING16 (WM_USER+13)
3029 #define CB_SELECTSTRING32 0x014d
3030 #define CB_SELECTSTRING WINELIB_NAME(CB_SELECTSTRING)
3031 #define CB_SETCURSEL16 (WM_USER+14)
3032 #define CB_SETCURSEL32 0x014e
3033 #define CB_SETCURSEL WINELIB_NAME(CB_SETCURSEL)
3034 #define CB_SHOWDROPDOWN16 (WM_USER+15)
3035 #define CB_SHOWDROPDOWN32 0x014f
3036 #define CB_SHOWDROPDOWN WINELIB_NAME(CB_SHOWDROPDOWN)
3037 #define CB_GETITEMDATA16 (WM_USER+16)
3038 #define CB_GETITEMDATA32 0x0150
3039 #define CB_GETITEMDATA WINELIB_NAME(CB_GETITEMDATA)
3040 #define CB_SETITEMDATA16 (WM_USER+17)
3041 #define CB_SETITEMDATA32 0x0151
3042 #define CB_SETITEMDATA WINELIB_NAME(CB_SETITEMDATA)
3043 #define CB_GETDROPPEDCONTROLRECT16 (WM_USER+18)
3044 #define CB_GETDROPPEDCONTROLRECT32 0x0152
3045 #define CB_GETDROPPEDCONTROLRECT WINELIB_NAME(CB_GETDROPPEDCONTROLRECT)
3046 #define CB_SETITEMHEIGHT16 (WM_USER+19)
3047 #define CB_SETITEMHEIGHT32 0x0153
3048 #define CB_SETITEMHEIGHT WINELIB_NAME(CB_SETITEMHEIGHT)
3049 #define CB_GETITEMHEIGHT16 (WM_USER+20)
3050 #define CB_GETITEMHEIGHT32 0x0154
3051 #define CB_GETITEMHEIGHT WINELIB_NAME(CB_GETITEMHEIGHT)
3052 #define CB_SETEXTENDEDUI16 (WM_USER+21)
3053 #define CB_SETEXTENDEDUI32 0x0155
3054 #define CB_SETEXTENDEDUI WINELIB_NAME(CB_SETEXTENDEDUI)
3055 #define CB_GETEXTENDEDUI16 (WM_USER+22)
3056 #define CB_GETEXTENDEDUI32 0x0156
3057 #define CB_GETEXTENDEDUI WINELIB_NAME(CB_GETEXTENDEDUI)
3058 #define CB_GETDROPPEDSTATE16 (WM_USER+23)
3059 #define CB_GETDROPPEDSTATE32 0x0157
3060 #define CB_GETDROPPEDSTATE WINELIB_NAME(CB_GETDROPPEDSTATE)
3061 #define CB_FINDSTRINGEXACT16 (WM_USER+24)
3062 #define CB_FINDSTRINGEXACT32 0x0158
3063 #define CB_FINDSTRINGEXACT WINELIB_NAME(CB_FINDSTRINGEXACT)
3064 #define CB_SETLOCALE16 WM_NULL /* Not in Win16 */
3065 #define CB_SETLOCALE32 0x0159
3066 #define CB_SETLOCALE WINELIB_NAME(CB_SETLOCALE)
3067 #define CB_GETLOCALE16 WM_NULL /* Not in Win16 */
3068 #define CB_GETLOCALE32 0x015a
3069 #define CB_GETLOCALE WINELIB_NAME(CB_GETLOCALE)
3070 #define CB_GETTOPINDEX16 WM_NULL /* Not in Win16 */
3071 #define CB_GETTOPINDEX32 0x015b
3072 #define CB_GETTOPINDEX WINELIB_NAME(CB_GETTOPINDEX)
3073 #define CB_SETTOPINDEX16 WM_NULL /* Not in Win16 */
3074 #define CB_SETTOPINDEX32 0x015c
3075 #define CB_SETTOPINDEX WINELIB_NAME(CB_SETTOPINDEX)
3076 #define CB_GETHORIZONTALEXTENT16 WM_NULL /* Not in Win16 */
3077 #define CB_GETHORIZONTALEXTENT32 0x015d
3078 #define CB_GETHORIZONTALEXTENT WINELIB_NAME(CB_GETHORIZONTALEXTENT)
3079 #define CB_SETHORIZONTALEXTENT16 WM_NULL /* Not in Win16 */
3080 #define CB_SETHORIZONTALEXTENT32 0x015e
3081 #define CB_SETHORIZONTALEXTENT WINELIB_NAME(CB_SETHORIZONTALEXTENT)
3082 #define CB_GETDROPPEDWIDTH16 WM_NULL /* Not in Win16 */
3083 #define CB_GETDROPPEDWIDTH32 0x015f
3084 #define CB_GETDROPPEDWIDTH WINELIB_NAME(CB_GETDROPPEDWIDTH)
3085 #define CB_SETDROPPEDWIDTH16 WM_NULL /* Not in Win16 */
3086 #define CB_SETDROPPEDWIDTH32 0x0160
3087 #define CB_SETDROPPEDWIDTH WINELIB_NAME(CB_SETDROPPEDWIDTH)
3088 #define CB_INITSTORAGE16 WM_NULL /* Not in Win16 */
3089 #define CB_INITSTORAGE32 0x0161
3090 #define CB_INITSTORAGE WINELIB_NAME(CB_INITSTORAGE)
3092 /* Combo box notification codes */
3093 #define CBN_ERRSPACE (-1)
3094 #define CBN_SELCHANGE 1
3095 #define CBN_DBLCLK 2
3096 #define CBN_SETFOCUS 3
3097 #define CBN_KILLFOCUS 4
3098 #define CBN_EDITCHANGE 5
3099 #define CBN_EDITUPDATE 6
3100 #define CBN_DROPDOWN 7
3101 #define CBN_CLOSEUP 8
3102 #define CBN_SELENDOK 9
3103 #define CBN_SELENDCANCEL 10
3105 /* Combo box message return values */
3106 #define CB_OKAY 0
3107 #define CB_ERR (-1)
3108 #define CB_ERRSPACE (-2)
3111 /* Owner draw control types */
3112 #define ODT_MENU 1
3113 #define ODT_LISTBOX 2
3114 #define ODT_COMBOBOX 3
3115 #define ODT_BUTTON 4
3117 /* Owner draw actions */
3118 #define ODA_DRAWENTIRE 0x0001
3119 #define ODA_SELECT 0x0002
3120 #define ODA_FOCUS 0x0004
3122 /* Owner draw state */
3123 #define ODS_SELECTED 0x0001
3124 #define ODS_GRAYED 0x0002
3125 #define ODS_DISABLED 0x0004
3126 #define ODS_CHECKED 0x0008
3127 #define ODS_FOCUS 0x0010
3129 /* Edit control styles */
3130 #define ES_LEFT 0x00000000L
3131 #define ES_CENTER 0x00000001L
3132 #define ES_RIGHT 0x00000002L
3133 #define ES_MULTILINE 0x00000004L
3134 #define ES_UPPERCASE 0x00000008L
3135 #define ES_LOWERCASE 0x00000010L
3136 #define ES_PASSWORD 0x00000020L
3137 #define ES_AUTOVSCROLL 0x00000040L
3138 #define ES_AUTOHSCROLL 0x00000080L
3139 #define ES_NOHIDESEL 0x00000100L
3140 #define ES_OEMCONVERT 0x00000400L
3141 #define ES_READONLY 0x00000800L
3142 #define ES_WANTRETURN 0x00001000L
3144 /* Edit control messages */
3145 #define EM_GETSEL (WM_USER+0)
3146 #define EM_SETSEL (WM_USER+1)
3147 #define EM_GETRECT (WM_USER+2)
3148 #define EM_SETRECT (WM_USER+3)
3149 #define EM_SETRECTNP (WM_USER+4)
3150 #define EM_LINESCROLL (WM_USER+6)
3151 #define EM_GETMODIFY (WM_USER+8)
3152 #define EM_SETMODIFY (WM_USER+9)
3153 #define EM_GETLINECOUNT (WM_USER+10)
3154 #define EM_LINEINDEX (WM_USER+11)
3155 #define EM_SETHANDLE (WM_USER+12)
3156 #define EM_GETHANDLE (WM_USER+13)
3157 #define EM_LINELENGTH (WM_USER+17)
3158 #define EM_REPLACESEL (WM_USER+18)
3159 #define EM_GETLINE (WM_USER+20)
3160 #define EM_LIMITTEXT (WM_USER+21)
3161 #define EM_CANUNDO (WM_USER+22)
3162 #define EM_UNDO (WM_USER+23)
3163 #define EM_FMTLINES (WM_USER+24)
3164 #define EM_LINEFROMCHAR (WM_USER+25)
3165 #define EM_SETTABSTOPS (WM_USER+27)
3166 #define EM_SETPASSWORDCHAR (WM_USER+28)
3167 #define EM_EMPTYUNDOBUFFER (WM_USER+29)
3168 #define EM_GETFIRSTVISIBLELINE (WM_USER+30)
3169 #define EM_SETREADONLY (WM_USER+31)
3170 #define EM_SETWORDBREAKPROC (WM_USER+32)
3171 #define EM_GETWORDBREAKPROC (WM_USER+33)
3172 #define EM_GETPASSWORDCHAR (WM_USER+34)
3173 /* Edit control undocumented messages */
3174 #define EM_SCROLL (WM_USER+5)
3175 #define EM_GETTHUMB (WM_USER+14)
3177 /* EDITWORDBREAKPROC code values */
3178 #define WB_LEFT 0
3179 #define WB_RIGHT 1
3180 #define WB_ISDELIMITER 2
3182 /* Edit control notification codes */
3183 #define EN_SETFOCUS 0x0100
3184 #define EN_KILLFOCUS 0x0200
3185 #define EN_CHANGE 0x0300
3186 #define EN_UPDATE 0x0400
3187 #define EN_ERRSPACE 0x0500
3188 #define EN_MAXTEXT 0x0501
3189 #define EN_HSCROLL 0x0601
3190 #define EN_VSCROLL 0x0602
3193 typedef struct
3195 UINT16 CtlType;
3196 UINT16 CtlID;
3197 UINT16 itemID;
3198 UINT16 itemAction;
3199 UINT16 itemState;
3200 HWND16 hwndItem;
3201 HDC16 hDC;
3202 RECT16 rcItem WINE_PACKED;
3203 DWORD itemData WINE_PACKED;
3204 } DRAWITEMSTRUCT16, *PDRAWITEMSTRUCT16, *LPDRAWITEMSTRUCT16;
3206 typedef struct
3208 UINT32 CtlType;
3209 UINT32 CtlID;
3210 UINT32 itemID;
3211 UINT32 itemAction;
3212 UINT32 itemState;
3213 HWND32 hwndItem;
3214 HDC32 hDC;
3215 RECT32 rcItem WINE_PACKED;
3216 DWORD itemData WINE_PACKED;
3217 } DRAWITEMSTRUCT32, *PDRAWITEMSTRUCT32, *LPDRAWITEMSTRUCT32;
3219 DECL_WINELIB_TYPE(DRAWITEMSTRUCT);
3220 DECL_WINELIB_TYPE(PDRAWITEMSTRUCT);
3221 DECL_WINELIB_TYPE(LPDRAWITEMSTRUCT);
3223 typedef struct
3225 UINT16 CtlType;
3226 UINT16 CtlID;
3227 UINT16 itemID;
3228 UINT16 itemWidth;
3229 UINT16 itemHeight;
3230 DWORD itemData WINE_PACKED;
3231 } MEASUREITEMSTRUCT16, *PMEASUREITEMSTRUCT16, *LPMEASUREITEMSTRUCT16;
3233 typedef struct
3235 UINT32 CtlType;
3236 UINT32 CtlID;
3237 UINT32 itemID;
3238 UINT32 itemWidth;
3239 UINT32 itemHeight;
3240 DWORD itemData;
3241 } MEASUREITEMSTRUCT32, *PMEASUREITEMSTRUCT32, *LPMEASUREITEMSTRUCT32;
3243 DECL_WINELIB_TYPE(MEASUREITEMSTRUCT);
3244 DECL_WINELIB_TYPE(PMEASUREITEMSTRUCT);
3245 DECL_WINELIB_TYPE(LPMEASUREITEMSTRUCT);
3247 typedef struct
3249 UINT16 CtlType;
3250 UINT16 CtlID;
3251 UINT16 itemID;
3252 HWND16 hwndItem;
3253 DWORD itemData;
3254 } DELETEITEMSTRUCT16, *LPDELETEITEMSTRUCT16;
3256 typedef struct
3258 UINT32 CtlType;
3259 UINT32 CtlID;
3260 UINT32 itemID;
3261 HWND32 hwndItem;
3262 DWORD itemData;
3263 } DELETEITEMSTRUCT32, *LPDELETEITEMSTRUCT32;
3265 DECL_WINELIB_TYPE(DELETEITEMSTRUCT);
3266 DECL_WINELIB_TYPE(LPDELETEITEMSTRUCT);
3268 typedef struct
3270 UINT16 CtlType;
3271 UINT16 CtlID;
3272 HWND16 hwndItem;
3273 UINT16 itemID1;
3274 DWORD itemData1;
3275 UINT16 itemID2;
3276 DWORD itemData2 WINE_PACKED;
3277 } COMPAREITEMSTRUCT16, *LPCOMPAREITEMSTRUCT16;
3279 typedef struct
3281 UINT32 CtlType;
3282 UINT32 CtlID;
3283 HWND32 hwndItem;
3284 UINT32 itemID1;
3285 DWORD itemData1;
3286 UINT32 itemID2;
3287 DWORD itemData2;
3288 DWORD dwLocaleId;
3289 } COMPAREITEMSTRUCT32, *LPCOMPAREITEMSTRUCT32;
3291 DECL_WINELIB_TYPE(COMPAREITEMSTRUCT);
3292 DECL_WINELIB_TYPE(LPCOMPAREITEMSTRUCT);
3294 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
3295 #define KF_EXTENDED 0x0100
3296 #define KF_DLGMODE 0x0800
3297 #define KF_MENUMODE 0x1000
3298 #define KF_ALTDOWN 0x2000
3299 #define KF_REPEAT 0x4000
3300 #define KF_UP 0x8000
3302 /* Virtual key codes */
3303 #define VK_LBUTTON 0x01
3304 #define VK_RBUTTON 0x02
3305 #define VK_CANCEL 0x03
3306 #define VK_MBUTTON 0x04
3307 /* 0x05-0x07 Undefined */
3308 #define VK_BACK 0x08
3309 #define VK_TAB 0x09
3310 /* 0x0A-0x0B Undefined */
3311 #define VK_CLEAR 0x0C
3312 #define VK_RETURN 0x0D
3313 /* 0x0E-0x0F Undefined */
3314 #define VK_SHIFT 0x10
3315 #define VK_CONTROL 0x11
3316 #define VK_MENU 0x12
3317 #define VK_PAUSE 0x13
3318 #define VK_CAPITAL 0x14
3319 /* 0x15-0x19 Reserved for Kanji systems */
3320 /* 0x1A Undefined */
3321 #define VK_ESCAPE 0x1B
3322 /* 0x1C-0x1F Reserved for Kanji systems */
3323 #define VK_SPACE 0x20
3324 #define VK_PRIOR 0x21
3325 #define VK_NEXT 0x22
3326 #define VK_END 0x23
3327 #define VK_HOME 0x24
3328 #define VK_LEFT 0x25
3329 #define VK_UP 0x26
3330 #define VK_RIGHT 0x27
3331 #define VK_DOWN 0x28
3332 #define VK_SELECT 0x29
3333 #define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */
3334 #define VK_EXECUTE 0x2B
3335 #define VK_SNAPSHOT 0x2C
3336 #define VK_INSERT 0x2D
3337 #define VK_DELETE 0x2E
3338 #define VK_HELP 0x2F
3339 #define VK_0 0x30
3340 #define VK_1 0x31
3341 #define VK_2 0x32
3342 #define VK_3 0x33
3343 #define VK_4 0x34
3344 #define VK_5 0x35
3345 #define VK_6 0x36
3346 #define VK_7 0x37
3347 #define VK_8 0x38
3348 #define VK_9 0x39
3349 /* 0x3A-0x40 Undefined */
3350 #define VK_A 0x41
3351 #define VK_B 0x42
3352 #define VK_C 0x43
3353 #define VK_D 0x44
3354 #define VK_E 0x45
3355 #define VK_F 0x46
3356 #define VK_G 0x47
3357 #define VK_H 0x48
3358 #define VK_I 0x49
3359 #define VK_J 0x4A
3360 #define VK_K 0x4B
3361 #define VK_L 0x4C
3362 #define VK_M 0x4D
3363 #define VK_N 0x4E
3364 #define VK_O 0x4F
3365 #define VK_P 0x50
3366 #define VK_Q 0x51
3367 #define VK_R 0x52
3368 #define VK_S 0x53
3369 #define VK_T 0x54
3370 #define VK_U 0x55
3371 #define VK_V 0x56
3372 #define VK_W 0x57
3373 #define VK_X 0x58
3374 #define VK_Y 0x59
3375 #define VK_Z 0x5A
3376 /* 0x5B-0x5F Undefined */
3377 #define VK_NUMPAD0 0x60
3378 #define VK_NUMPAD1 0x61
3379 #define VK_NUMPAD2 0x62
3380 #define VK_NUMPAD3 0x63
3381 #define VK_NUMPAD4 0x64
3382 #define VK_NUMPAD5 0x65
3383 #define VK_NUMPAD6 0x66
3384 #define VK_NUMPAD7 0x67
3385 #define VK_NUMPAD8 0x68
3386 #define VK_NUMPAD9 0x69
3387 #define VK_MULTIPLY 0x6A
3388 #define VK_ADD 0x6B
3389 #define VK_SEPARATOR 0x6C
3390 #define VK_SUBTRACT 0x6D
3391 #define VK_DECIMAL 0x6E
3392 #define VK_DIVIDE 0x6F
3393 #define VK_F1 0x70
3394 #define VK_F2 0x71
3395 #define VK_F3 0x72
3396 #define VK_F4 0x73
3397 #define VK_F5 0x74
3398 #define VK_F6 0x75
3399 #define VK_F7 0x76
3400 #define VK_F8 0x77
3401 #define VK_F9 0x78
3402 #define VK_F10 0x79
3403 #define VK_F11 0x7A
3404 #define VK_F12 0x7B
3405 #define VK_F13 0x7C
3406 #define VK_F14 0x7D
3407 #define VK_F15 0x7E
3408 #define VK_F16 0x7F
3409 #define VK_F17 0x80
3410 #define VK_F18 0x81
3411 #define VK_F19 0x82
3412 #define VK_F20 0x83
3413 #define VK_F21 0x84
3414 #define VK_F22 0x85
3415 #define VK_F23 0x86
3416 #define VK_F24 0x87
3417 /* 0x88-0x8F Unassigned */
3418 #define VK_NUMLOCK 0x90
3419 #define VK_SCROLL 0x91
3420 /* 0x92-0xB9 Unassigned */
3421 /* 0xBA-0xC0 OEM specific */
3422 /* 0xC1-0xDA Unassigned */
3423 /* 0xDB-0xE4 OEM specific */
3424 /* 0xE5 Unassigned */
3425 /* 0xE6 OEM specific */
3426 /* 0xE7-0xE8 Unassigned */
3427 /* 0xE9-0xF5 OEM specific */
3428 /* 0xF6-0xFE Unassigned */
3431 #define LMEM_FIXED 0
3432 #define LMEM_MOVEABLE 0x0002
3433 #define LMEM_NOCOMPACT 0x0010
3434 #define LMEM_NODISCARD 0x0020
3435 #define LMEM_ZEROINIT 0x0040
3436 #define LMEM_MODIFY 0x0080
3437 #define LMEM_DISCARDABLE 0x0F00
3438 #define LMEM_DISCARDED 0x4000
3439 #define LMEM_LOCKCOUNT 0x00FF
3441 #define GMEM_FIXED 0x0000
3442 #define GMEM_MOVEABLE 0x0002
3443 #define GMEM_NOCOMPACT 0x0010
3444 #define GMEM_NODISCARD 0x0020
3445 #define GMEM_ZEROINIT 0x0040
3446 #define GMEM_MODIFY 0x0080
3447 #define GMEM_DISCARDABLE 0x0100
3448 #define GMEM_NOT_BANKED 0x1000
3449 #define GMEM_SHARE 0x2000
3450 #define GMEM_DDESHARE 0x2000
3451 #define GMEM_NOTIFY 0x4000
3452 #define GMEM_LOWER GMEM_NOT_BANKED
3453 #define GMEM_DISCARDED 0x4000
3454 #define GMEM_LOCKCOUNT 0x00ff
3455 #define GMEM_INVALID_HANDLE 0x8000
3457 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
3458 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
3461 typedef struct tagMEMORYSTATUS
3463 DWORD dwLength;
3464 DWORD dwMemoryLoad;
3465 DWORD dwTotalPhys;
3466 DWORD dwAvailPhys;
3467 DWORD dwTotalPageFile;
3468 DWORD dwAvailPageFile;
3469 DWORD dwTotalVirtual;
3470 DWORD dwAvailVirtual;
3471 } MEMORYSTATUS, *LPMEMORYSTATUS;
3473 /* Predefined Clipboard Formats */
3474 #define CF_TEXT 1
3475 #define CF_BITMAP 2
3476 #define CF_METAFILEPICT 3
3477 #define CF_SYLK 4
3478 #define CF_DIF 5
3479 #define CF_TIFF 6
3480 #define CF_OEMTEXT 7
3481 #define CF_DIB 8
3482 #define CF_PALETTE 9
3483 #define CF_PENDATA 10
3484 #define CF_RIFF 11
3485 #define CF_WAVE 12
3487 #define CF_OWNERDISPLAY 0x0080
3488 #define CF_DSPTEXT 0x0081
3489 #define CF_DSPBITMAP 0x0082
3490 #define CF_DSPMETAFILEPICT 0x0083
3492 /* "Private" formats don't get GlobalFree()'d */
3493 #define CF_PRIVATEFIRST 0x0200
3494 #define CF_PRIVATELAST 0x02FF
3496 /* "GDIOBJ" formats do get DeleteObject()'d */
3497 #define CF_GDIOBJFIRST 0x0300
3498 #define CF_GDIOBJLAST 0x03FF
3500 /* Clipboard command messages */
3501 #define WM_CUT 0x0300
3502 #define WM_COPY 0x0301
3503 #define WM_PASTE 0x0302
3504 #define WM_CLEAR 0x0303
3505 #define WM_UNDO 0x0304
3507 /* Clipboard owner messages */
3508 #define WM_RENDERFORMAT 0x0305
3509 #define WM_RENDERALLFORMATS 0x0306
3510 #define WM_DESTROYCLIPBOARD 0x0307
3512 /* Clipboard viewer messages */
3513 #define WM_DRAWCLIPBOARD 0x0308
3514 #define WM_PAINTCLIPBOARD 0x0309
3515 #define WM_SIZECLIPBOARD 0x030B
3516 #define WM_VSCROLLCLIPBOARD 0x030A
3517 #define WM_HSCROLLCLIPBOARD 0x030E
3518 #define WM_ASKCBFORMATNAME 0x030C
3519 #define WM_CHANGECBCHAIN 0x030D
3521 /* Metafile header structure */
3522 typedef struct
3524 WORD mtType;
3525 WORD mtHeaderSize;
3526 WORD mtVersion;
3527 DWORD mtSize WINE_PACKED;
3528 WORD mtNoObjects;
3529 DWORD mtMaxRecord WINE_PACKED;
3530 WORD mtNoParameters;
3531 } METAHEADER;
3533 /* Metafile typical record structure */
3534 typedef struct
3536 DWORD rdSize;
3537 WORD rdFunction;
3538 WORD rdParam[1];
3539 } METARECORD;
3540 typedef METARECORD *PMETARECORD;
3541 typedef METARECORD *LPMETARECORD;
3543 /* Handle table structure */
3545 typedef struct
3547 HGDIOBJ16 objectHandle[1];
3548 } HANDLETABLE16, *LPHANDLETABLE16;
3550 typedef struct
3552 HGDIOBJ32 objectHandle[1];
3553 } HANDLETABLE32, *LPHANDLETABLE32;
3555 DECL_WINELIB_TYPE(HANDLETABLE);
3556 DECL_WINELIB_TYPE(LPHANDLETABLE);
3558 /* Clipboard metafile picture structure */
3559 typedef struct
3561 INT16 mm;
3562 INT16 xExt;
3563 INT16 yExt;
3564 HMETAFILE16 hMF;
3565 } METAFILEPICT16, *LPMETAFILEPICT16;
3567 typedef struct
3569 INT32 mm;
3570 INT32 xExt;
3571 INT32 yExt;
3572 HMETAFILE32 hMF;
3573 } METAFILEPICT32, *LPMETAFILEPICT32;
3575 DECL_WINELIB_TYPE(METAFILEPICT);
3576 DECL_WINELIB_TYPE(LPMETAFILEPICT);
3578 /* Metafile functions */
3579 #define META_SETBKCOLOR 0x0201
3580 #define META_SETBKMODE 0x0102
3581 #define META_SETMAPMODE 0x0103
3582 #define META_SETROP2 0x0104
3583 #define META_SETRELABS 0x0105
3584 #define META_SETPOLYFILLMODE 0x0106
3585 #define META_SETSTRETCHBLTMODE 0x0107
3586 #define META_SETTEXTCHAREXTRA 0x0108
3587 #define META_SETTEXTCOLOR 0x0209
3588 #define META_SETTEXTJUSTIFICATION 0x020A
3589 #define META_SETWINDOWORG 0x020B
3590 #define META_SETWINDOWEXT 0x020C
3591 #define META_SETVIEWPORTORG 0x020D
3592 #define META_SETVIEWPORTEXT 0x020E
3593 #define META_OFFSETWINDOWORG 0x020F
3594 #define META_SCALEWINDOWEXT 0x0410
3595 #define META_OFFSETVIEWPORTORG 0x0211
3596 #define META_SCALEVIEWPORTEXT 0x0412
3597 #define META_LINETO 0x0213
3598 #define META_MOVETO 0x0214
3599 #define META_EXCLUDECLIPRECT 0x0415
3600 #define META_INTERSECTCLIPRECT 0x0416
3601 #define META_ARC 0x0817
3602 #define META_ELLIPSE 0x0418
3603 #define META_FLOODFILL 0x0419
3604 #define META_PIE 0x081A
3605 #define META_RECTANGLE 0x041B
3606 #define META_ROUNDRECT 0x061C
3607 #define META_PATBLT 0x061D
3608 #define META_SAVEDC 0x001E
3609 #define META_SETPIXEL 0x041F
3610 #define META_OFFSETCLIPRGN 0x0220
3611 #define META_TEXTOUT 0x0521
3612 #define META_BITBLT 0x0922
3613 #define META_STRETCHBLT 0x0B23
3614 #define META_POLYGON 0x0324
3615 #define META_POLYLINE 0x0325
3616 #define META_ESCAPE 0x0626
3617 #define META_RESTOREDC 0x0127
3618 #define META_FILLREGION 0x0228
3619 #define META_FRAMEREGION 0x0429
3620 #define META_INVERTREGION 0x012A
3621 #define META_PAINTREGION 0x012B
3622 #define META_SELECTCLIPREGION 0x012C
3623 #define META_SELECTOBJECT 0x012D
3624 #define META_SETTEXTALIGN 0x012E
3625 #define META_DRAWTEXT 0x062F
3626 #define META_CHORD 0x0830
3627 #define META_SETMAPPERFLAGS 0x0231
3628 #define META_EXTTEXTOUT 0x0A32
3629 #define META_SETDIBTODEV 0x0D33
3630 #define META_SELECTPALETTE 0x0234
3631 #define META_REALIZEPALETTE 0x0035
3632 #define META_ANIMATEPALETTE 0x0436
3633 #define META_SETPALENTRIES 0x0037
3634 #define META_POLYPOLYGON 0x0538
3635 #define META_RESIZEPALETTE 0x0139
3636 #define META_DIBBITBLT 0x0940
3637 #define META_DIBSTRETCHBLT 0x0B41
3638 #define META_DIBCREATEPATTERNBRUSH 0x0142
3639 #define META_STRETCHDIB 0x0F43
3640 #define META_EXTFLOODFILL 0x0548
3641 #define META_RESETDC 0x014C
3642 #define META_STARTDOC 0x014D
3643 #define META_STARTPAGE 0x004F
3644 #define META_ENDPAGE 0x0050
3645 #define META_ABORTDOC 0x0052
3646 #define META_ENDDOC 0x005E
3647 #define META_DELETEOBJECT 0x01F0
3648 #define META_CREATEPALETTE 0x00F7
3649 #define META_CREATEBRUSH 0x00F8
3650 #define META_CREATEPATTERNBRUSH 0x01F9
3651 #define META_CREATEPENINDIRECT 0x02FA
3652 #define META_CREATEFONTINDIRECT 0x02FB
3653 #define META_CREATEBRUSHINDIRECT 0x02FC
3654 #define META_CREATEBITMAPINDIRECT 0x02FD
3655 #define META_CREATEBITMAP 0x06FE
3656 #define META_CREATEREGION 0x06FF
3658 typedef INT16 (*MFENUMPROC16)(HDC16,HANDLETABLE16*,METARECORD*,INT16,LPARAM);
3659 typedef INT32 (*MFENUMPROC32)(HDC32,HANDLETABLE32*,METARECORD*,INT32,LPARAM);
3660 DECL_WINELIB_TYPE(MFENUMPROC);
3662 /* Debugging support (DEBUG SYSTEM ONLY) */
3663 typedef struct
3665 UINT16 flags;
3666 DWORD dwOptions WINE_PACKED;
3667 DWORD dwFilter WINE_PACKED;
3668 CHAR achAllocModule[8] WINE_PACKED;
3669 DWORD dwAllocBreak WINE_PACKED;
3670 DWORD dwAllocCount WINE_PACKED;
3671 } WINDEBUGINFO, *LPWINDEBUGINFO;
3673 /* WINDEBUGINFO flags values */
3674 #define WDI_OPTIONS 0x0001
3675 #define WDI_FILTER 0x0002
3676 #define WDI_ALLOCBREAK 0x0004
3678 /* dwOptions values */
3679 #define DBO_CHECKHEAP 0x0001
3680 #define DBO_BUFFERFILL 0x0004
3681 #define DBO_DISABLEGPTRAPPING 0x0010
3682 #define DBO_CHECKFREE 0x0020
3684 #define DBO_SILENT 0x8000
3686 #define DBO_TRACEBREAK 0x2000
3687 #define DBO_WARNINGBREAK 0x1000
3688 #define DBO_NOERRORBREAK 0x0800
3689 #define DBO_NOFATALBREAK 0x0400
3690 #define DBO_INT3BREAK 0x0100
3692 /* DebugOutput flags values */
3693 #define DBF_TRACE 0x0000
3694 #define DBF_WARNING 0x4000
3695 #define DBF_ERROR 0x8000
3696 #define DBF_FATAL 0xc000
3698 /* dwFilter values */
3699 #define DBF_KERNEL 0x1000
3700 #define DBF_KRN_MEMMAN 0x0001
3701 #define DBF_KRN_LOADMODULE 0x0002
3702 #define DBF_KRN_SEGMENTLOAD 0x0004
3703 #define DBF_USER 0x0800
3704 #define DBF_GDI 0x0400
3705 #define DBF_MMSYSTEM 0x0040
3706 #define DBF_PENWIN 0x0020
3707 #define DBF_APPLICATION 0x0008
3708 #define DBF_DRIVER 0x0010
3710 /* Win32-specific structures */
3712 typedef struct {
3713 WORD wYear;
3714 WORD wMonth;
3715 WORD wDayOfWeek;
3716 WORD wDay;
3717 WORD wHour;
3718 WORD wMinute;
3719 WORD wSecond;
3720 WORD wMilliseconds;
3721 } SYSTEMTIME, *LPSYSTEMTIME;
3724 /* Code page information.
3726 typedef struct {
3727 DWORD MaxCharSize;
3728 BYTE DefaultChar[2];
3729 BYTE LeadBytes[5];
3730 } CPINFO, *LPCPINFO;
3732 /* The 'overlapped' data structure used by async I/O functions.
3734 typedef struct {
3735 DWORD Internal;
3736 DWORD InternalHigh;
3737 DWORD Offset;
3738 DWORD OffsetHigh;
3739 HANDLE32 hEvent;
3740 } OVERLAPPED, *LPOVERLAPPED;
3742 /* Process startup information.
3744 typedef struct {
3745 DWORD cb;
3746 LPSTR lpReserved;
3747 LPSTR lpDesktop;
3748 LPSTR lpTitle;
3749 DWORD dwX;
3750 DWORD dwY;
3751 DWORD dwXSize;
3752 DWORD dwYSize;
3753 DWORD dwXCountChars;
3754 DWORD dwYCountChars;
3755 DWORD dwFillAttribute;
3756 DWORD dwFlags;
3757 WORD wShowWindow;
3758 WORD cbReserved2;
3759 BYTE *lpReserved2;
3760 HANDLE32 hStdInput;
3761 HANDLE32 hStdOutput;
3762 HANDLE32 hStdError;
3763 } STARTUPINFO32A, *LPSTARTUPINFO32A;
3765 typedef struct {
3766 DWORD cb;
3767 LPWSTR lpReserved;
3768 LPWSTR lpDesktop;
3769 LPWSTR lpTitle;
3770 DWORD dwX;
3771 DWORD dwY;
3772 DWORD dwXSize;
3773 DWORD dwYSize;
3774 DWORD dwXCountChars;
3775 DWORD dwYCountChars;
3776 DWORD dwFillAttribute;
3777 DWORD dwFlags;
3778 WORD wShowWindow;
3779 WORD cbReserved2;
3780 BYTE *lpReserved2;
3781 HANDLE32 hStdInput;
3782 HANDLE32 hStdOutput;
3783 HANDLE32 hStdError;
3784 } STARTUPINFO32W, *LPSTARTUPINFO32W;
3786 DECL_WINELIB_TYPE_AW(STARTUPINFO);
3787 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO);
3789 typedef struct {
3790 HANDLE32 hProcess;
3791 HANDLE32 hThread;
3792 DWORD dwProcessId;
3793 DWORD dwThreadId;
3794 } PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
3796 typedef struct {
3797 LONG Bias;
3798 WCHAR StandardName[32];
3799 SYSTEMTIME StandardDate;
3800 LONG StandardBias;
3801 WCHAR DaylightName[32];
3802 SYSTEMTIME DaylightDate;
3803 LONG DaylightBias;
3804 } TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
3806 #define TIME_ZONE_ID_UNKNOWN 0
3807 #define TIME_ZONE_ID_STANDARD 1
3808 #define TIME_ZONE_ID_DAYLIGHT 2
3811 /* File object type definitions
3813 #define FILE_TYPE_UNKNOWN 0
3814 #define FILE_TYPE_DISK 1
3815 #define FILE_TYPE_CHAR 2
3816 #define FILE_TYPE_PIPE 3
3817 #define FILE_TYPE_REMOTE 32768
3819 /* File creation flags
3821 #define GENERIC_READ 0x80000000L
3822 #define GENERIC_WRITE 0x40000000L
3823 #define CREATE_NEW 1
3824 #define CREATE_ALWAYS 2
3825 #define OPEN_EXISTING 3
3826 #define OPEN_ALWAYS 4
3827 #define TRUNCATE_EXISTING 5
3829 /* Standard handle identifiers
3831 #define STD_INPUT_HANDLE ((DWORD) -10)
3832 #define STD_OUTPUT_HANDLE ((DWORD) -11)
3833 #define STD_ERROR_HANDLE ((DWORD) -12)
3835 typedef struct
3837 int dwFileAttributes;
3838 FILETIME ftCreationTime;
3839 FILETIME ftLastAccessTime;
3840 FILETIME ftLastWriteTime;
3841 int dwVolumeSerialNumber;
3842 int nFileSizeHigh;
3843 int nFileSizeLow;
3844 int nNumberOfLinks;
3845 int nFileIndexHigh;
3846 int nFileIndexLow;
3847 } BY_HANDLE_FILE_INFORMATION ;
3849 /* File attribute flags
3851 #define FILE_ATTRIBUTE_ARCHIVE 0x0020
3852 #define FILE_ATTRIBUTE_COMPRESSED 0x0800
3853 #define FILE_ATTRIBUTE_DIRECTORY 0x0010
3854 #define FILE_ATTRIBUTE_HIDDEN 0x0002
3855 #define FILE_ATTRIBUTE_NORMAL 0x0080
3856 #define FILE_ATTRIBUTE_READONLY 0x0001
3857 #define FILE_ATTRIBUTE_SYSTEM 0x0004
3858 #define FILE_ATTRIBUTE_TEMPORARY 0x0100
3859 #define FILE_ATTRIBUTE_ATOMIC_WRITE 0x0200
3860 #define FILE_ATTRIBUTE_XACTION_WRITE 0x0400
3863 /* WinHelp internal structure */
3864 typedef struct {
3865 WORD size;
3866 WORD command;
3867 LONG data;
3868 LONG reserved;
3869 WORD ofsFilename;
3870 WORD ofsData;
3871 } WINHELP,*LPWINHELP;
3873 typedef struct
3875 UINT16 mkSize;
3876 BYTE mkKeyList;
3877 BYTE szKeyPhrase[1];
3878 } MULTIKEYHELP, *LPMULTIKEYHELP;
3880 typedef struct {
3881 WORD wStructSize;
3882 WORD x;
3883 WORD y;
3884 WORD dx;
3885 WORD dy;
3886 WORD wMax;
3887 char rgchMember[2];
3888 } HELPWININFO, *LPHELPWININFO;
3890 #define HELP_CONTEXT 0x0001
3891 #define HELP_QUIT 0x0002
3892 #define HELP_INDEX 0x0003
3893 #define HELP_CONTENTS 0x0003
3894 #define HELP_HELPONHELP 0x0004
3895 #define HELP_SETINDEX 0x0005
3896 #define HELP_SETCONTENTS 0x0005
3897 #define HELP_CONTEXTPOPUP 0x0008
3898 #define HELP_FORCEFILE 0x0009
3899 #define HELP_KEY 0x0101
3900 #define HELP_COMMAND 0x0102
3901 #define HELP_PARTIALKEY 0x0105
3902 #define HELP_MULTIKEY 0x0201
3903 #define HELP_SETWINPOS 0x0203
3905 #define CCHDEVICENAME 32
3906 #define CCHFORMNAME 32
3908 typedef struct
3910 BYTE dmDeviceName[CCHDEVICENAME];
3911 WORD dmSpecVersion;
3912 WORD dmDriverVersion;
3913 WORD dmSize;
3914 WORD dmDriverExtra;
3915 DWORD dmFields;
3916 INT16 dmOrientation;
3917 INT16 dmPaperSize;
3918 INT16 dmPaperLength;
3919 INT16 dmPaperWidth;
3920 INT16 dmScale;
3921 INT16 dmCopies;
3922 INT16 dmDefaultSource;
3923 INT16 dmPrintQuality;
3924 INT16 dmColor;
3925 INT16 dmDuplex;
3926 INT16 dmYResolution;
3927 INT16 dmTTOption;
3928 INT16 dmCollate;
3929 BYTE dmFormName[CCHFORMNAME];
3930 WORD dmUnusedPadding;
3931 WORD dmBitsPerPel;
3932 DWORD dmPelsWidth;
3933 DWORD dmPelsHeight;
3934 DWORD dmDisplayFlags;
3935 DWORD dmDisplayFrequency;
3936 } DEVMODE16, *LPDEVMODE16;
3938 typedef struct
3940 BYTE dmDeviceName[CCHDEVICENAME];
3941 WORD dmSpecVersion;
3942 WORD dmDriverVersion;
3943 WORD dmSize;
3944 WORD dmDriverExtra;
3945 DWORD dmFields;
3946 INT16 dmOrientation;
3947 INT16 dmPaperSize;
3948 INT16 dmPaperLength;
3949 INT16 dmPaperWidth;
3950 INT16 dmScale;
3951 INT16 dmCopies;
3952 INT16 dmDefaultSource;
3953 INT16 dmPrintQuality;
3954 INT16 dmColor;
3955 INT16 dmDuplex;
3956 INT16 dmYResolution;
3957 INT16 dmTTOption;
3958 INT16 dmCollate;
3959 BYTE dmFormName[CCHFORMNAME];
3960 WORD dmLogPixels;
3961 DWORD dmBitsPerPel;
3962 DWORD dmPelsWidth;
3963 DWORD dmPelsHeight;
3964 DWORD dmDisplayFlags;
3965 DWORD dmDisplayFrequency;
3966 DWORD dmICMMethod;
3967 DWORD dmICMIntent;
3968 DWORD dmMediaType;
3969 DWORD dmDitherType;
3970 DWORD dmReserved1;
3971 DWORD dmReserved2;
3972 } DEVMODE32A, *LPDEVMODE32A;
3974 typedef struct
3976 WCHAR dmDeviceName[CCHDEVICENAME];
3977 WORD dmSpecVersion;
3978 WORD dmDriverVersion;
3979 WORD dmSize;
3980 WORD dmDriverExtra;
3981 DWORD dmFields;
3982 INT16 dmOrientation;
3983 INT16 dmPaperSize;
3984 INT16 dmPaperLength;
3985 INT16 dmPaperWidth;
3986 INT16 dmScale;
3987 INT16 dmCopies;
3988 INT16 dmDefaultSource;
3989 INT16 dmPrintQuality;
3990 INT16 dmColor;
3991 INT16 dmDuplex;
3992 INT16 dmYResolution;
3993 INT16 dmTTOption;
3994 INT16 dmCollate;
3995 WCHAR dmFormName[CCHFORMNAME];
3996 WORD dmLogPixels;
3997 DWORD dmBitsPerPel;
3998 DWORD dmPelsWidth;
3999 DWORD dmPelsHeight;
4000 DWORD dmDisplayFlags;
4001 DWORD dmDisplayFrequency;
4002 DWORD dmICMMethod;
4003 DWORD dmICMIntent;
4004 DWORD dmMediaType;
4005 DWORD dmDitherType;
4006 DWORD dmReserved1;
4007 DWORD dmReserved2;
4008 } DEVMODE32W, *LPDEVMODE32W;
4010 DECL_WINELIB_TYPE_AW(DEVMODE);
4011 DECL_WINELIB_TYPE_AW(LPDEVMODE);
4013 typedef struct _SYSTEM_POWER_STATUS
4015 BOOL16 ACLineStatus;
4016 BYTE BatteryFlag;
4017 BYTE BatteryLifePercent;
4018 BYTE reserved;
4019 DWORD BatteryLifeTime;
4020 DWORD BatteryFullLifeTime;
4021 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
4023 /* flags to FormatMessage */
4024 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
4025 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
4026 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
4027 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
4028 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
4029 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
4030 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
4032 /* types of LoadImage */
4033 #define IMAGE_BITMAP 0
4034 #define IMAGE_ICON 1
4035 #define IMAGE_CURSOR 2
4036 #define IMAGE_ENHMETA 3
4038 /* loadflags to LoadImage */
4039 #define LR_DEFAULTCOLOR 0x0000
4040 #define LR_MONOCHROME 0x0001
4041 #define LR_COPYRETURNONORG 0x0002
4042 #define LR_COPYDELETEORC 0x0004
4043 #define LR_COPYFROMRESOURCE 0x0008
4044 #define LR_LOADFROMFILE 0x0010
4045 #define LR_LOADREALSIZE 0x0020
4046 #define LR_LOADMAP3DCOLORS 0x1000
4048 typedef struct _LARGE_INTEGER
4050 DWORD LowPart;
4051 LONG HighPart;
4052 } LARGE_INTEGER,*LPLARGE_INTEGER;
4054 typedef struct _ULARGE_INTEGER
4056 DWORD LowPart;
4057 DWORD HighPart;
4058 } ULARGE_INTEGER,*LPULARGE_INTEGER;
4060 /* SetLastErrorEx types */
4061 #define SLE_ERROR 0x00000001
4062 #define SLE_MINORERROR 0x00000002
4063 #define SLE_WARNING 0x00000003
4065 /* Argument 1 passed to the DllEntryProc. */
4066 #define DLL_PROCESS_DETACH 0 /* detach process (unload library) */
4067 #define DLL_PROCESS_ATTACH 1 /* attach process (load library) */
4068 #define DLL_THREAD_ATTACH 2 /* attach new thread */
4069 #define DLL_THREAD_DETACH 3 /* detach thread */
4071 typedef struct _MEMORY_BASIC_INFORMATION
4073 LPVOID BaseAddress;
4074 LPVOID AllocationBase;
4075 DWORD AllocationProtect;
4076 DWORD RegionSize;
4077 DWORD State;
4078 DWORD Protect;
4079 DWORD Type;
4080 } MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION;
4082 typedef DWORD (*LPTHREAD_START_ROUTINE)(LPVOID);
4084 typedef BOOL32 (*CODEPAGE_ENUMPROC32A)(LPSTR);
4085 typedef BOOL32 (*CODEPAGE_ENUMPROC32W)(LPWSTR);
4086 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC);
4088 typedef BOOL32 (*LOCALE_ENUMPROC32A)(LPSTR);
4089 typedef BOOL32 (*LOCALE_ENUMPROC32W)(LPWSTR);
4090 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC);
4092 typedef struct tagSYSTEM_INFO
4094 union {
4095 DWORD dwOemId;
4096 struct {
4097 WORD wProcessorArchitecture;
4098 WORD wReserved;
4099 } x;
4100 } u;
4101 DWORD dwPageSize;
4102 LPVOID lpMinimumApplicationAddress;
4103 LPVOID lpMaximumApplicationAddress;
4104 DWORD dwActiveProcessorMask;
4105 DWORD dwNumberOfProcessors;
4106 DWORD dwProcessorType;
4107 DWORD dwAllocationGranularity;
4108 WORD wProcessorLevel;
4109 WORD wProcessorRevision;
4110 } SYSTEM_INFO, *LPSYSTEM_INFO;
4112 /* u.x.wProcessorArchitecture (NT) */
4113 #define PROCESSOR_ARCHITECTURE_INTEL 0
4114 #define PROCESSOR_ARCHITECTURE_MIPS 1
4115 #define PROCESSOR_ARCHITECTURE_ALPHA 2
4116 #define PROCESSOR_ARCHITECTURE_PPC 3
4117 #define PROCESSOR_ARCHITECTURE_UNKNOWN 0xFFFF
4119 /* dwProcessorType */
4120 #define PROCESSOR_INTEL_386 386
4121 #define PROCESSOR_INTEL_486 486
4122 #define PROCESSOR_INTEL_PENTIUM 586
4123 #define PROCESSOR_MIPS_R4000 4000
4124 #define PROCESSOR_ALPHA_21064 21064
4126 /* service main function prototype */
4127 typedef VOID (*LPSERVICE_MAIN_FUNCTION32A)(DWORD,LPSTR);
4128 typedef VOID (*LPSERVICE_MAIN_FUNCTION32W)(DWORD,LPWSTR);
4129 DECL_WINELIB_TYPE_AW(LPSERVICE_MAIN_FUNCTION);
4131 /* service start table */
4132 typedef struct
4134 LPSTR lpServiceName;
4135 LPSERVICE_MAIN_FUNCTION32A lpServiceProc;
4136 } *LPSERVICE_TABLE_ENTRY32A, SERVICE_TABLE_ENTRY32A;
4138 typedef struct
4140 LPWSTR lpServiceName;
4141 LPSERVICE_MAIN_FUNCTION32W lpServiceProc;
4142 } *LPSERVICE_TABLE_ENTRY32W, SERVICE_TABLE_ENTRY32W;
4144 DECL_WINELIB_TYPE_AW(SERVICE_TABLE_ENTRY);
4145 DECL_WINELIB_TYPE_AW(LPSERVICE_TABLE_ENTRY);
4147 /* Security Ids of NT */
4149 typedef struct {
4150 BYTE Value[6];
4151 } SID_IDENTIFIER_AUTHORITY,*LPSID_IDENTIFIER_AUTHORITY;
4153 typedef struct _SID {
4154 BYTE Revision;
4155 BYTE SubAuthorityCount;
4156 SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
4157 DWORD SubAuthority[1]; /* more than one */
4158 } SID,*LPSID;
4160 #define SID_REVISION (1) /* Current revision */
4161 #define SID_MAX_SUB_AUTHORITIES (15) /* current max subauths */
4162 #define SID_RECOMMENDED_SUB_AUTHORITIES (1) /* recommended subauths */
4164 /* NT lowlevel Strings (handled by Rtl* functions in NTDLL)
4165 * If they are zero terminated, Length does not include the terminating 0.
4168 typedef struct _STRING {
4169 UINT16 Length;
4170 UINT16 MaximumLength;
4171 LPSTR Buffer;
4172 } STRING,*LPSTRING,ANSI_STRING,*LPANSI_STRING;
4174 typedef struct _CSTRING {
4175 UINT16 Length;
4176 UINT16 MaximumLength;
4177 LPCSTR Buffer;
4178 } CSTRING,*LPCSTRING;
4180 typedef struct _UNICODE_STRING {
4181 UINT16 Length; /* bytes ? */
4182 UINT16 MaximumLength; /* bytes ? */
4183 LPWSTR Buffer;
4184 } UNICODE_STRING,*LPUNICODE_STRING;
4186 #pragma pack(4)
4188 /* Declarations for functions that exist only in Win16 */
4190 WORD AllocCStoDSAlias(WORD);
4191 WORD AllocDStoCSAlias(WORD);
4192 WORD AllocSelector(WORD);
4193 WORD AllocSelectorArray(WORD);
4194 LPSTR AnsiLower(LPSTR);
4195 LPSTR AnsiUpper(LPSTR);
4196 INT16 Catch(LPCATCHBUF);
4197 WORD ChangeSelector(WORD,WORD);
4198 INT16 CloseComm(INT16);
4199 BOOL16 DCHook(HDC16,WORD,DWORD,LPARAM);
4200 VOID DirectedYield(HTASK16);
4201 HGLOBAL16 DirectResAlloc(HINSTANCE16,WORD,UINT16);
4202 BOOL16 DlgDirSelect(HWND16,LPSTR,INT16);
4203 BOOL16 DlgDirSelectComboBox(HWND16,LPSTR,INT16);
4204 BOOL16 EnableHardwareInput(BOOL16);
4205 INT16 ExcludeVisRect(HDC16,INT16,INT16,INT16,INT16);
4206 HANDLE16 FarGetOwner(HGLOBAL16);
4207 VOID FarSetOwner(HGLOBAL16,HANDLE16);
4208 BOOL16 FastWindowFrame(HDC16,const RECT16*,INT16,INT16,DWORD);
4209 VOID FillWindow(HWND16,HWND16,HDC16,HBRUSH16);
4210 INT16 FlushComm(INT16,INT16);
4211 WORD FreeSelector(WORD);
4212 HANDLE16 GetAtomHandle(ATOM);
4213 DWORD GetBitmapDimension(HBITMAP16);
4214 DWORD GetBrushOrg(HDC16);
4215 HANDLE16 GetCodeHandle(FARPROC16);
4216 INT16 GetCommError(INT16,LPCOMSTAT);
4217 UINT16 GetCommEventMask(INT16,UINT16);
4218 VOID GetCodeInfo(FARPROC16,LPVOID);
4219 HANDLE16 GetCurrentPDB(void);
4220 DWORD GetCurrentPosition(HDC16);
4221 HTASK16 GetCurrentTask(void);
4222 DWORD GetDCHook(HDC16,FARPROC16*);
4223 DWORD GetDCOrg(HDC16);
4224 HDC16 GetDCState(HDC16);
4225 HWND16 GetDesktopHwnd(void);
4226 HMODULE16 GetExePtr(HANDLE16);
4227 WORD GetExeVersion(void);
4228 INT16 GetInstanceData(HINSTANCE16,WORD,INT16);
4229 BOOL16 GetModuleName(HINSTANCE16,LPSTR,INT16);
4230 FARPROC16 GetMouseEventProc(void);
4231 UINT16 GetNumTasks(void);
4232 DWORD GetSelectorBase(WORD);
4233 DWORD GetSelectorLimit(WORD);
4234 HINSTANCE16 GetTaskDS(void);
4235 HQUEUE16 GetTaskQueue(HTASK16);
4236 DWORD GetTextExtent(HDC16,LPCSTR,INT16);
4237 DWORD GetViewportExt(HDC16);
4238 DWORD GetViewportOrg(HDC16);
4239 DWORD GetWindowExt(HDC16);
4240 DWORD GetWindowOrg(HDC16);
4241 DWORD GlobalDOSAlloc(DWORD);
4242 WORD GlobalDOSFree(WORD);
4243 void GlobalFreeAll(HGLOBAL16);
4244 HGLOBAL16 GlobalLRUNewest(HGLOBAL16);
4245 HGLOBAL16 GlobalLRUOldest(HGLOBAL16);
4246 VOID GlobalNotify(FARPROC16);
4247 WORD GlobalPageLock(HGLOBAL16);
4248 WORD GlobalPageUnlock(HGLOBAL16);
4249 INT16 InitApp(HINSTANCE16);
4250 HRGN16 InquireVisRgn(HDC16);
4251 INT16 IntersectVisRect(HDC16,INT16,INT16,INT16,INT16);
4252 BOOL16 IsGDIObject(HGDIOBJ16);
4253 BOOL16 IsSharedSelector(HANDLE16);
4254 BOOL16 IsTask(HTASK16);
4255 HTASK16 IsTaskLocked(void);
4256 BOOL16 LocalInit(HANDLE16,WORD,WORD);
4257 HTASK16 LockCurrentTask(BOOL16);
4258 DWORD MoveTo(HDC16,INT16,INT16);
4259 DWORD OffsetViewportOrg(HDC16,INT16,INT16);
4260 INT16 OffsetVisRgn(HDC16,INT16,INT16);
4261 DWORD OffsetWindowOrg(HDC16,INT16,INT16);
4262 VOID OldYield(void);
4263 INT16 OpenComm(LPCSTR,UINT16,UINT16);
4264 VOID PaintRect(HWND16,HWND16,HDC16,HBRUSH16,const RECT16*);
4265 VOID PostEvent(HTASK16);
4266 WORD PrestoChangoSelector(WORD,WORD);
4267 INT16 ReadComm(INT16,LPSTR,INT16);
4268 INT16 RestoreVisRgn(HDC16);
4269 HRGN16 SaveVisRgn(HDC16);
4270 DWORD ScaleViewportExt(HDC16,INT16,INT16,INT16,INT16);
4271 DWORD ScaleWindowExt(HDC16,INT16,INT16,INT16,INT16);
4272 WORD SelectorAccessRights(WORD,WORD,WORD);
4273 INT16 SelectVisRgn(HDC16,HRGN16);
4274 DWORD SetBitmapDimension(HBITMAP16,INT16,INT16);
4275 DWORD SetBrushOrg(HDC16,INT16,INT16);
4276 UINT16* SetCommEventMask(INT16,UINT16);
4277 BOOL16 SetDCHook(HDC16,FARPROC16,DWORD);
4278 DWORD SetDCOrg(HDC16,INT16,INT16);
4279 VOID SetDCState(HDC16,HDC16);
4280 BOOL16 SetDeskPattern(void);
4281 VOID SetPriority(HTASK16,INT16);
4282 WORD SetSelectorBase(WORD,DWORD);
4283 WORD SetSelectorLimit(WORD,DWORD);
4284 HQUEUE16 SetTaskQueue(HTASK16,HQUEUE16);
4285 FARPROC16 SetTaskSignalProc(HTASK16,FARPROC16);
4286 DWORD SetViewportExt(HDC16,INT16,INT16);
4287 DWORD SetViewportOrg(HDC16,INT16,INT16);
4288 DWORD SetWindowExt(HDC16,INT16,INT16);
4289 DWORD SetWindowOrg(HDC16,INT16,INT16);
4290 VOID SwitchStackBack(void);
4291 VOID SwitchStackTo(WORD,WORD,WORD);
4292 INT16 Throw(LPCATCHBUF,INT16);
4293 INT16 UngetCommChar(INT16,CHAR);
4294 VOID UserYield(void);
4295 BOOL16 WaitEvent(HTASK16);
4296 INT16 WriteComm(INT16,LPSTR,INT16);
4297 VOID WriteOutProfiles(VOID);
4298 VOID hmemcpy(LPVOID,LPCVOID,LONG);
4299 VOID Yield(void);
4301 /* Declarations for functions that exist only in Win32 */
4303 BOOL32 Beep(DWORD,DWORD);
4304 BOOL32 ClearCommError(INT32,LPDWORD,LPCOMSTAT);
4305 HFILE CreateFile32A(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE32);
4306 HFILE CreateFile32W(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE32);
4307 #define CreateFile WINELIB_NAME_AW(CreateFile)
4308 HANDLE32 CreateFileMapping32A(HANDLE32,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCSTR);
4309 HANDLE32 CreateFileMapping32W(HANDLE32,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCWSTR);
4310 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
4311 BOOL32 DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
4312 INT32 EnumPropsEx32A(HWND32,PROPENUMPROCEX32A,LPARAM);
4313 INT32 EnumPropsEx32W(HWND32,PROPENUMPROCEX32W,LPARAM);
4314 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
4315 BOOL32 EnumSystemCodePages32A(CODEPAGE_ENUMPROC32A,DWORD);
4316 BOOL32 EnumSystemCodePages32W(CODEPAGE_ENUMPROC32W,DWORD);
4317 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
4318 BOOL32 EnumSystemLocales32A(LOCALE_ENUMPROC32A,DWORD);
4319 BOOL32 EnumSystemLocales32W(LOCALE_ENUMPROC32W,DWORD);
4320 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
4321 BOOL32 EnumThreadWindows(DWORD,WNDENUMPROC32,LPARAM);
4322 void ExitProcess(DWORD);
4323 BOOL32 FileTimeToDosDateTime(LPFILETIME,LPWORD,LPWORD);
4324 BOOL32 FileTimeToLocalFileTime(LPFILETIME,LPFILETIME);
4325 BOOL32 FileTimeToSystemTime(LPFILETIME,LPSYSTEMTIME);
4326 HRSRC32 FindResourceEx32A(HINSTANCE32,LPCSTR,LPCSTR,WORD);
4327 HRSRC32 FindResourceEx32W(HINSTANCE32,LPCWSTR,LPCWSTR,WORD);
4328 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
4329 BOOL32 FlushFileBuffers(HFILE);
4330 UINT32 GetACP(void);
4331 LPCSTR GetCommandLine32A();
4332 LPCWSTR GetCommandLine32W();
4333 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
4334 BOOL32 GetCommTimeouts(INT32,LPCOMMTIMEOUTS);
4335 DWORD GetCurrentThreadId(void);
4336 HANDLE32 GetCurrentThread(void);
4337 BOOL32 GetDCOrgEx(HDC32,LPPOINT32);
4338 DWORD GetFileInformationByHandle(HFILE,BY_HANDLE_FILE_INFORMATION*);
4339 DWORD GetFileSize(HFILE,LPDWORD);
4340 DWORD GetFileType(HFILE);
4341 VOID GetLocalTime(LPSYSTEMTIME);
4342 DWORD GetLogicalDrives(void);
4343 UINT32 GetOEMCP(void);
4344 HANDLE32 GetProcessHeap(void);
4345 DWORD GetShortPathName32A(LPCSTR,LPSTR,DWORD);
4346 DWORD GetShortPathName32W(LPCWSTR,LPWSTR,DWORD);
4347 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
4348 HFILE GetStdHandle(DWORD);
4349 VOID GetSystemInfo(LPSYSTEM_INFO);
4350 BOOL32 GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
4351 VOID GetSystemTime(LPSYSTEMTIME);
4352 VOID GlobalMemoryStatus(LPMEMORYSTATUS);
4353 LPVOID HeapAlloc(HANDLE32,DWORD,DWORD);
4354 DWORD HeapCompact(HANDLE32,DWORD);
4355 HANDLE32 HeapCreate(DWORD,DWORD,DWORD);
4356 BOOL32 HeapDestroy(HANDLE32);
4357 BOOL32 HeapFree(HANDLE32,DWORD,LPVOID);
4358 BOOL32 HeapLock(HANDLE32);
4359 LPVOID HeapReAlloc(HANDLE32,DWORD,LPVOID,DWORD);
4360 DWORD HeapSize(HANDLE32,DWORD,LPVOID);
4361 BOOL32 HeapUnlock(HANDLE32);
4362 BOOL32 HeapValidate(HANDLE32,DWORD,LPVOID);
4363 BOOL32 IsWindowUnicode(HWND32);
4364 BOOL32 IsValidLocale(DWORD,DWORD);
4365 BOOL32 LocalFileTimeToFileTime(LPFILETIME,LPFILETIME);
4366 LPVOID MapViewOfFileEx(HANDLE32,DWORD,DWORD,DWORD,DWORD,DWORD);
4367 BOOL32 MoveFile32A(LPCSTR,LPCSTR);
4368 BOOL32 MoveFile32W(LPCWSTR,LPCWSTR);
4369 #define MoveFile WINELIB_NAME_AW(MoveFile)
4370 BOOL32 QueryPerformanceCounter(LPLARGE_INTEGER);
4371 BOOL32 ReadConsole32A(HANDLE32,LPVOID,DWORD,LPDWORD,LPVOID);
4372 BOOL32 ReadConsole32W(HANDLE32,LPVOID,DWORD,LPDWORD,LPVOID);
4373 #define ReadConsole WINELIB_NAME_AW(ReadConsole)
4374 BOOL32 ReadFile(HFILE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
4375 DWORD RegCreateKeyEx32A(HKEY,LPCSTR,DWORD,LPSTR,DWORD,REGSAM,
4376 LPSECURITY_ATTRIBUTES,LPHKEY,LPDWORD);
4377 DWORD RegCreateKeyEx32W(HKEY,LPCWSTR,DWORD,LPWSTR,DWORD,REGSAM,
4378 LPSECURITY_ATTRIBUTES,LPHKEY,LPDWORD);
4379 #define RegCreateKeyEx WINELIB_NAME_AW(RegCreateKeyEx)
4380 DWORD RegEnumKeyEx32A(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPSTR,LPDWORD,LPFILETIME);
4381 DWORD RegEnumKeyEx32W(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPWSTR,LPDWORD,LPFILETIME);
4382 #define RegEnumKeyEx WINELIB_NAME_AW(RegEnumKeyEx)
4383 DWORD RegOpenKeyEx32W(HKEY,LPCWSTR,DWORD,REGSAM,LPHKEY);
4384 DWORD RegOpenKeyEx32A(HKEY,LPCSTR,DWORD,REGSAM,LPHKEY);
4385 #define RegOpenKeyEx WINELIB_NAME_AW(RegOpenKeyEx)
4386 DWORD RegQueryInfoKey32W(HKEY,LPWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD,
4387 LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPFILETIME);
4388 DWORD RegQueryInfoKey32A(HKEY,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD,
4389 LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPFILETIME);
4390 #define RegQueryInfoKey WINELIB_NAME_AW(RegQueryInfoKey)
4391 VOID RtlFillMemory(LPVOID,UINT32,UINT32);
4392 VOID RtlMoveMemory(LPVOID,LPCVOID,UINT32);
4393 VOID RtlZeroMemory(LPVOID,UINT32);
4394 DWORD SearchPath32A(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
4395 DWORD SearchPath32W(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
4396 #define SearchPath WINELIB_NAME(SearchPath)
4397 BOOL32 SetBrushOrgEx(HDC32,INT32,INT32,LPPOINT32);
4398 BOOL32 SetCommMask(INT32,DWORD);
4399 BOOL32 SetCommTimeouts(INT32,LPCOMMTIMEOUTS);
4400 BOOL32 SetConsoleTitle32A(LPCSTR);
4401 BOOL32 SetConsoleTitle32W(LPCWSTR);
4402 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
4403 BOOL32 SetEndOfFile(HFILE);
4404 DWORD SetFilePointer(HFILE,LONG,LPLONG,DWORD);
4405 BOOL32 SetFileTime(HFILE,LPFILETIME,LPFILETIME,LPFILETIME);
4406 BOOL32 SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
4407 BOOL32 SetSystemPowerState(BOOL32,BOOL32);
4408 BOOL32 SetSystemTime(const SYSTEMTIME*);
4409 VOID Sleep(DWORD);
4410 BOOL32 SystemTimeToFileTime(LPSYSTEMTIME,LPFILETIME);
4411 LPVOID VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
4412 BOOL32 VirtualFree(LPVOID,DWORD,DWORD);
4413 BOOL32 WriteConsole32A(HANDLE32,LPVOID,DWORD,LPDWORD,LPVOID);
4414 BOOL32 WriteConsole32W(HANDLE32,LPVOID,DWORD,LPDWORD,LPVOID);
4415 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
4416 BOOL32 WriteFile(HFILE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
4419 /* Declarations for functions that are the same in Win16 and Win32 */
4421 BOOL16 CheckDlgButton(HWND32,INT32,UINT32);
4422 BOOL16 CheckRadioButton(HWND32,UINT32,UINT32,UINT32);
4423 LONG CopyLZFile(HFILE,HFILE);
4424 HBITMAP16 CreateBitmap(INT32,INT32,UINT32,UINT32,LPCVOID);
4425 BOOL16 CreateCaret(HWND32,HBITMAP32,INT32,INT32);
4426 HBITMAP16 CreateCompatibleBitmap(HDC32,INT32,INT32);
4427 HBITMAP16 CreateDiscardableBitmap(HDC32,INT32,INT32);
4428 BOOL16 DestroyCaret(void);
4429 BOOL16 EndDialog(HWND32,INT32);
4430 INT16 ExcludeUpdateRgn(HDC32,HWND32);
4431 DWORD GetAppCompatFlags(HTASK32);
4432 LONG GetBitmapBits(HBITMAP32,LONG,LPVOID);
4433 WORD GetClassWord(HWND32,INT32);
4434 INT16 GetDlgCtrlID(HWND32);
4435 DWORD GetLastError(void);
4436 COLORREF GetSysColor(INT32);
4437 DWORD GetTickCount(void);
4438 INT16 GetUpdateRgn(HWND32,HRGN32,BOOL32);
4439 WORD GetWindowWord(HWND32,INT32);
4440 BOOL16 HideCaret(HWND32);
4441 BOOL16 IsWindow(HWND32);
4442 void LZClose(HFILE);
4443 LONG LZCopy(HFILE,HFILE);
4444 void LZDone(void);
4445 HFILE LZInit(HFILE);
4446 LONG LZSeek(HFILE,LONG,INT32);
4447 INT16 LZStart(void);
4448 HFILE OpenFile(LPCSTR,OFSTRUCT*,UINT32);
4449 UINT16 RealizePalette(HDC32);
4450 DWORD RegCloseKey(HKEY);
4451 DWORD RegFlushKey(HKEY);
4452 VOID ReleaseCapture(void);
4453 LONG SetBitmapBits(HBITMAP32,LONG,LPCVOID);
4454 COLORREF SetBkColor(HDC32,COLORREF);
4455 BOOL16 SetCaretBlinkTime(UINT32);
4456 BOOL16 SetCaretPos(INT32,INT32);
4457 WORD SetClassWord(HWND32,INT32,WORD);
4458 VOID SetLastError(DWORD);
4459 VOID SetLastErrorEx(DWORD,DWORD);
4460 VOID SetRectRgn(HRGN32,INT32,INT32,INT32,INT32);
4461 COLORREF SetTextColor(HDC32,COLORREF);
4462 WORD SetWindowWord(HWND32,INT32,WORD);
4463 BOOL16 ShowCaret(HWND32);
4464 VOID UpdateWindow(HWND32);
4465 LONG _hread(HFILE,LPVOID,LONG);
4466 HFILE _lclose(HFILE);
4467 HFILE _lcreat(LPCSTR,INT32);
4468 LONG _llseek(HFILE,LONG,INT32);
4469 HFILE _lopen(LPCSTR,INT32);
4470 LONG _hwrite(HFILE,LPCSTR,LONG);
4472 /* Declarations for functions that change between Win16 and Win32 */
4474 INT16 AccessResource16(HINSTANCE16,HRSRC16);
4475 INT32 AccessResource32(HINSTANCE32,HRSRC32);
4476 #define AccessResource WINELIB_NAME(AccessResource)
4477 BOOL16 AdjustWindowRect16(LPRECT16,DWORD,BOOL16);
4478 BOOL32 AdjustWindowRect32(LPRECT32,DWORD,BOOL32);
4479 #define AdjustWindowRect WINELIB_NAME(AdjustWindowRect)
4480 BOOL16 AdjustWindowRectEx16(LPRECT16,DWORD,BOOL16,DWORD);
4481 BOOL32 AdjustWindowRectEx32(LPRECT32,DWORD,BOOL32,DWORD);
4482 #define AdjustWindowRectEx WINELIB_NAME(AdjustWindowRectEx)
4483 HGLOBAL16 AllocResource16(HINSTANCE16,HRSRC16,DWORD);
4484 HGLOBAL32 AllocResource32(HINSTANCE32,HRSRC32,DWORD);
4485 #define AllocResource WINELIB_NAME(AllocResource)
4486 INT16 AnsiToOem16(LPCSTR,LPSTR);
4487 #define AnsiToOem32A CharToOem32A
4488 #define AnsiToOem32W CharToOem32W
4489 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
4490 VOID AnsiToOemBuff16(LPCSTR,LPSTR,UINT16);
4491 #define AnsiToOemBuff32A CharToOemBuff32A
4492 #define AnsiToOemBuff32W CharToOemBuff32W
4493 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
4494 BOOL16 AppendMenu16(HMENU16,UINT16,UINT16,SEGPTR);
4495 BOOL32 AppendMenu32A(HMENU32,UINT32,UINT32,LPCSTR);
4496 BOOL32 AppendMenu32W(HMENU32,UINT32,UINT32,LPCWSTR);
4497 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
4498 BOOL16 Arc16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16,INT16,INT16);
4499 BOOL32 Arc32(HDC32,INT32,INT32,INT32,INT32,INT32,INT32,INT32,INT32);
4500 #define Arc WINELIB_NAME(Arc)
4501 HDC16 BeginPaint16(HWND16,LPPAINTSTRUCT16);
4502 HDC32 BeginPaint32(HWND32,LPPAINTSTRUCT32);
4503 #define BeginPaint WINELIB_NAME(BeginPaint)
4504 BOOL16 BitBlt16(HDC16,INT16,INT16,INT16,INT16,HDC16,INT16,INT16,DWORD);
4505 BOOL32 BitBlt32(HDC32,INT32,INT32,INT32,INT32,HDC32,INT32,INT32,DWORD);
4506 #define BitBlt WINELIB_NAME(BitBlt)
4507 BOOL16 BuildCommDCB16(LPCSTR,LPDCB16);
4508 BOOL32 BuildCommDCB32A(LPCSTR,LPDCB32);
4509 BOOL32 BuildCommDCB32W(LPCWSTR,LPDCB32);
4510 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
4511 BOOL32 BuildCommDCBAndTimeouts32A(LPCSTR,LPDCB32,LPCOMMTIMEOUTS);
4512 BOOL32 BuildCommDCBAndTimeouts32W(LPCWSTR,LPDCB32,LPCOMMTIMEOUTS);
4513 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
4514 LRESULT CallNextHookEx16(HHOOK,INT16,WPARAM16,LPARAM);
4515 LRESULT CallNextHookEx32(HHOOK,INT32,WPARAM32,LPARAM);
4516 #define CallNextHookEx WINELIB_NAME(CallNextHookEx)
4517 LRESULT CallWindowProc16(WNDPROC16,HWND16,UINT16,WPARAM16,LPARAM);
4518 LRESULT CallWindowProc32A(WNDPROC32,HWND32,UINT32,WPARAM32,LPARAM);
4519 LRESULT CallWindowProc32W(WNDPROC32,HWND32,UINT32,WPARAM32,LPARAM);
4520 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
4521 BOOL16 ChangeMenu16(HMENU16,UINT16,SEGPTR,UINT16,UINT16);
4522 BOOL32 ChangeMenu32A(HMENU32,UINT32,LPCSTR,UINT32,UINT32);
4523 BOOL32 ChangeMenu32W(HMENU32,UINT32,LPCWSTR,UINT32,UINT32);
4524 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
4525 LPSTR CharLower32A(LPSTR);
4526 LPWSTR CharLower32W(LPWSTR);
4527 #define CharLower WINELIB_NAME_AW(CharLower)
4528 DWORD CharLowerBuff32A(LPSTR,DWORD);
4529 DWORD CharLowerBuff32W(LPWSTR,DWORD);
4530 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
4531 LPSTR CharNext32A(LPCSTR);
4532 LPWSTR CharNext32W(LPCWSTR);
4533 #define CharNext WINELIB_NAME_AW(CharNext)
4534 LPSTR CharNextEx32A(WORD,LPCSTR,DWORD);
4535 LPWSTR CharNextEx32W(WORD,LPCWSTR,DWORD);
4536 #define CharNextEx WINELIB_NAME_AW(CharNextEx)
4537 LPSTR CharPrev32A(LPCSTR,LPCSTR);
4538 LPWSTR CharPrev32W(LPCWSTR,LPCWSTR);
4539 #define CharPrev WINELIB_NAME_AW(CharPrev)
4540 LPSTR CharPrevEx32A(WORD,LPCSTR,LPCSTR,DWORD);
4541 LPWSTR CharPrevEx32W(WORD,LPCWSTR,LPCWSTR,DWORD);
4542 #define CharPrevEx WINELIB_NAME_AW(CharPrevEx)
4543 LPSTR CharUpper32A(LPSTR);
4544 LPWSTR CharUpper32W(LPWSTR);
4545 #define CharUpper WINELIB_NAME_AW(CharUpper)
4546 DWORD CharUpperBuff32A(LPSTR,DWORD);
4547 DWORD CharUpperBuff32W(LPWSTR,DWORD);
4548 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
4549 BOOL32 CharToOem32A(LPCSTR,LPSTR);
4550 BOOL32 CharToOem32W(LPCWSTR,LPSTR);
4551 #define CharToOem WINELIB_NAME_AW(CharToOem)
4552 BOOL32 CharToOemBuff32A(LPCSTR,LPSTR,DWORD);
4553 BOOL32 CharToOemBuff32W(LPCWSTR,LPSTR,DWORD);
4554 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
4555 HWND16 ChildWindowFromPoint16(HWND16,POINT16);
4556 HWND32 ChildWindowFromPoint32(HWND32,POINT32);
4557 #define ChildWindowFromPoint WINELIB_NAME(ChildWindowFromPoint)
4558 BOOL16 Chord16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16,INT16,INT16);
4559 BOOL32 Chord32(HDC32,INT32,INT32,INT32,INT32,INT32,INT32,INT32,INT32);
4560 #define Chord WINELIB_NAME(Chord)
4561 INT16 ClearCommBreak16(INT16);
4562 BOOL32 ClearCommBreak32(INT32);
4563 #define ClearCommBreak WINELIB_NAME(ClearCommBreak)
4564 BOOL16 ClientToScreen16(HWND16,LPPOINT16);
4565 BOOL32 ClientToScreen32(HWND32,LPPOINT32);
4566 #define ClientToScreen WINELIB_NAME(ClientToScreen)
4567 BOOL16 ClipCursor16(const RECT16*);
4568 BOOL32 ClipCursor32(const RECT32*);
4569 #define ClipCursor WINELIB_NAME(ClipCursor)
4570 HMETAFILE16 CloseMetaFile16(HDC16);
4571 HMETAFILE32 CloseMetaFile32(HDC32);
4572 #define CloseMetaFile WINELIB_NAME(CloseMetaFile)
4573 INT16 CombineRgn16(HRGN16,HRGN16,HRGN16,INT16);
4574 INT32 CombineRgn32(HRGN32,HRGN32,HRGN32,INT32);
4575 #define CombineRgn WINELIB_NAME(CombineRgn)
4576 UINT16 CompareString16(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
4577 UINT32 CompareString32A(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
4578 UINT32 CompareString32W(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
4579 #define CompareString WINELIB_NAME_AW(CompareString)
4580 HCURSOR16 CopyCursor16(HINSTANCE16,HCURSOR16);
4581 #define CopyCursor32(cur) ((HCURSOR32)CopyIcon32((HICON32)(cur)))
4582 #define CopyCursor WINELIB_NAME(CopyCursor)
4583 HICON16 CopyIcon16(HINSTANCE16,HICON16);
4584 HICON32 CopyIcon32(HICON32);
4585 #define CopyIcon WINELIB_NAME(CopyIcon)
4586 BOOL16 CopyRect16(RECT16*,const RECT16*);
4587 BOOL32 CopyRect32(RECT32*,const RECT32*);
4588 #define CopyRect WINELIB_NAME(CopyRect)
4589 HBITMAP16 CreateBitmapIndirect16(const BITMAP16*);
4590 HBITMAP32 CreateBitmapIndirect32(const BITMAP32*);
4591 #define CreateBitmapIndirect WINELIB_NAME(CreateBitmapIndirect)
4592 HBRUSH16 CreateBrushIndirect16(const LOGBRUSH16*);
4593 HBRUSH32 CreateBrushIndirect32(const LOGBRUSH32*);
4594 #define CreateBrushIndirect WINELIB_NAME(CreateBrushIndirect)
4595 HDC16 CreateCompatibleDC16(HDC16);
4596 HDC32 CreateCompatibleDC32(HDC32);
4597 #define CreateCompatibleDC WINELIB_NAME(CreateCompatibleDC)
4598 HDC16 CreateDC16(LPCSTR,LPCSTR,LPCSTR,const DEVMODE16*);
4599 HDC32 CreateDC32A(LPCSTR,LPCSTR,LPCSTR,const DEVMODE32A*);
4600 HDC32 CreateDC32W(LPCWSTR,LPCWSTR,LPCWSTR,const DEVMODE32W*);
4601 #define CreateDC WINELIB_NAME_AW(CreateDC)
4602 HWND16 CreateDialog16(HINSTANCE16,SEGPTR,HWND16,DLGPROC16);
4603 #define CreateDialog32A(inst,ptr,hwnd,dlg) \
4604 CreateDialogParam32A(inst,ptr,hwnd,dlg,0)
4605 #define CreateDialog32W(inst,ptr,hwnd,dlg) \
4606 CreateDialogParam32W(inst,ptr,hwnd,dlg,0)
4607 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
4608 HWND16 CreateDialogIndirect16(HINSTANCE16,LPCVOID,HWND16,DLGPROC16);
4609 #define CreateDialogIndirect32A(inst,ptr,hwnd,dlg) \
4610 CreateDialogIndirectParam32A(inst,ptr,hwnd,dlg,0)
4611 #define CreateDialogIndirect32W(inst,ptr,hwnd,dlg) \
4612 CreateDialogIndirectParam32W(inst,ptr,hwnd,dlg,0)
4613 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
4614 HWND16 CreateDialogIndirectParam16(HINSTANCE16,LPCVOID,HWND16,DLGPROC16,LPARAM);
4615 HWND32 CreateDialogIndirectParam32A(HINSTANCE32,LPCVOID,HWND32,DLGPROC32,LPARAM);
4616 HWND32 CreateDialogIndirectParam32W(HINSTANCE32,LPCVOID,HWND32,DLGPROC32,LPARAM);
4617 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
4618 HWND16 CreateDialogParam16(HINSTANCE16,SEGPTR,HWND16,DLGPROC16,LPARAM);
4619 HWND32 CreateDialogParam32A(HINSTANCE32,LPCSTR,HWND32,DLGPROC32,LPARAM);
4620 HWND32 CreateDialogParam32W(HINSTANCE32,LPCWSTR,HWND32,DLGPROC32,LPARAM);
4621 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
4622 HBITMAP16 CreateDIBitmap16(HDC16,const BITMAPINFOHEADER*,DWORD,LPCVOID,
4623 const BITMAPINFO*,UINT16);
4624 HBITMAP32 CreateDIBitmap32(HDC32,const BITMAPINFOHEADER*,DWORD,LPCVOID,
4625 const BITMAPINFO*,UINT32);
4626 #define CreateDIBitmap WINELIB_NAME(CreateDIBitmap)
4627 HBRUSH16 CreateDIBPatternBrush16(HGLOBAL16,UINT16);
4628 HBRUSH32 CreateDIBPatternBrush32(HGLOBAL32,UINT32);
4629 #define CreateDIBPatternBrush WINELIB_NAME(CreateDIBPatternBrush)
4630 BOOL16 CreateDirectory16(LPCSTR,LPVOID);
4631 BOOL32 CreateDirectory32A(LPCSTR,LPSECURITY_ATTRIBUTES);
4632 BOOL32 CreateDirectory32W(LPCWSTR,LPSECURITY_ATTRIBUTES);
4633 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
4634 BOOL32 CreateDirectoryEx32A(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
4635 BOOL32 CreateDirectoryEx32W(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
4636 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
4637 HRGN16 CreateEllipticRgn16(INT16,INT16,INT16,INT16);
4638 HRGN32 CreateEllipticRgn32(INT32,INT32,INT32,INT32);
4639 #define CreateEllipticRgn WINELIB_NAME(CreateEllipticRgn)
4640 HRGN16 CreateEllipticRgnIndirect16(const RECT16 *);
4641 HRGN32 CreateEllipticRgnIndirect32(const RECT32 *);
4642 #define CreateEllipticRgnIndirect WINELIB_NAME(CreateEllipticRgnIndirect)
4643 HFONT16 CreateFont16(INT16,INT16,INT16,INT16,INT16,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,BYTE,LPCSTR);
4644 HFONT32 CreateFont32A(INT32,INT32,INT32,INT32,INT32,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPCSTR);
4645 HFONT32 CreateFont32W(INT32,INT32,INT32,INT32,INT32,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPCWSTR);
4646 #define CreateFont WINELIB_NAME_AW(CreateFont)
4647 HFONT16 CreateFontIndirect16(const LOGFONT16*);
4648 HFONT32 CreateFontIndirect32A(const LOGFONT32A*);
4649 HFONT32 CreateFontIndirect32W(const LOGFONT32W*);
4650 #define CreateFontIndirect WINELIB_NAME_AW(CreateFontIndirect)
4651 HBRUSH16 CreateHatchBrush16(INT16,COLORREF);
4652 HBRUSH32 CreateHatchBrush32(INT32,COLORREF);
4653 #define CreateHatchBrush WINELIB_NAME(CreateHatchBrush)
4654 HDC16 CreateIC16(LPCSTR,LPCSTR,LPCSTR,const DEVMODE16*);
4655 HDC32 CreateIC32A(LPCSTR,LPCSTR,LPCSTR,const DEVMODE32A*);
4656 HDC32 CreateIC32W(LPCWSTR,LPCWSTR,LPCWSTR,const DEVMODE32W*);
4657 #define CreateIC WINELIB_NAME_AW(CreateIC)
4658 HDC16 CreateMetaFile16(LPCSTR);
4659 HDC32 CreateMetaFile32A(LPCSTR);
4660 HDC32 CreateMetaFile32W(LPCWSTR);
4661 #define CreateMetaFile WINELIB_NAME_AW(CreateMetaFile)
4662 HBRUSH16 CreatePatternBrush16(HBITMAP16);
4663 HBRUSH32 CreatePatternBrush32(HBITMAP32);
4664 #define CreatePatternBrush WINELIB_NAME(CreatePatternBrush)
4665 HPEN16 CreatePen16(INT16,INT16,COLORREF);
4666 HPEN32 CreatePen32(INT32,INT32,COLORREF);
4667 #define CreatePen WINELIB_NAME(CreatePen)
4668 HPEN16 CreatePenIndirect16(const LOGPEN16*);
4669 HPEN32 CreatePenIndirect32(const LOGPEN32*);
4670 #define CreatePenIndirect WINELIB_NAME(CreatePenIndirect)
4671 HRGN16 CreatePolyPolygonRgn16(const POINT16*,const INT16*,INT16,INT16);
4672 HRGN32 CreatePolyPolygonRgn32(const POINT32*,const INT32*,INT32,INT32);
4673 #define CreatePolyPolygonRgn WINELIB_NAME(CreatePolyPolygonRgn)
4674 HRGN16 CreatePolygonRgn16(const POINT16*,INT16,INT16);
4675 HRGN32 CreatePolygonRgn32(const POINT32*,INT32,INT32);
4676 #define CreatePolygonRgn WINELIB_NAME(CreatePolygonRgn)
4677 HRGN16 CreateRectRgn16(INT16,INT16,INT16,INT16);
4678 HRGN32 CreateRectRgn32(INT32,INT32,INT32,INT32);
4679 #define CreateRectRgn WINELIB_NAME(CreateRectRgn)
4680 HRGN16 CreateRectRgnIndirect16(const RECT16*);
4681 HRGN32 CreateRectRgnIndirect32(const RECT32*);
4682 #define CreateRectRgnIndirect WINELIB_NAME(CreateRectRgnIndirect)
4683 HRGN16 CreateRoundRectRgn16(INT16,INT16,INT16,INT16,INT16,INT16);
4684 HRGN32 CreateRoundRectRgn32(INT32,INT32,INT32,INT32,INT32,INT32);
4685 #define CreateRoundRectRgn WINELIB_NAME(CreateRoundRectRgn)
4686 HBRUSH16 CreateSolidBrush16(COLORREF);
4687 HBRUSH32 CreateSolidBrush32(COLORREF);
4688 #define CreateSolidBrush WINELIB_NAME(CreateSolidBrush)
4689 HWND16 CreateWindow16(LPCSTR,LPCSTR,DWORD,INT16,INT16,INT16,INT16,HWND16,HMENU16,HINSTANCE16,LPVOID);
4690 #define CreateWindow32A(className,titleName,style,x,y,width,height,\
4691 parent,menu,instance,param) \
4692 CreateWindowEx32A(0,className,titleName,style,x,y,width,height,\
4693 parent,menu,instance,param)
4694 #define CreateWindow32W(className,titleName,style,x,y,width,height,\
4695 parent,menu,instance,param) \
4696 CreateWindowEx32W(0,className,titleName,style,x,y,width,height,\
4697 parent,menu,instance,param)
4698 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
4699 HWND16 CreateWindowEx16(DWORD,LPCSTR,LPCSTR,DWORD,INT16,INT16,INT16,INT16,HWND16,HMENU16,HINSTANCE16,LPVOID);
4700 HWND32 CreateWindowEx32A(DWORD,LPCSTR,LPCSTR,DWORD,INT32,INT32,INT32,INT32,HWND32,HMENU32,HINSTANCE32,LPVOID);
4701 HWND32 CreateWindowEx32W(DWORD,LPCWSTR,LPCWSTR,DWORD,INT32,INT32,INT32,INT32,HWND32,HMENU32,HINSTANCE32,LPVOID);
4702 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
4703 LRESULT DefDlgProc16(HWND16,UINT16,WPARAM16,LPARAM);
4704 LRESULT DefDlgProc32A(HWND32,UINT32,WPARAM32,LPARAM);
4705 LRESULT DefDlgProc32W(HWND32,UINT32,WPARAM32,LPARAM);
4706 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
4707 LRESULT DefFrameProc16(HWND16,HWND16,UINT16,WPARAM16,LPARAM);
4708 LRESULT DefFrameProc32A(HWND32,HWND32,UINT32,WPARAM32,LPARAM);
4709 LRESULT DefFrameProc32W(HWND32,HWND32,UINT32,WPARAM32,LPARAM);
4710 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
4711 LRESULT DefHookProc16(INT16,WPARAM16,LPARAM,HHOOK*);
4712 #define DefHookProc32(code,wparam,lparam,phhook) \
4713 CallNextHookEx32(*(phhook),code,wparam,lparam)
4714 #define DefHookProc WINELIB_NAME(DefHookProc)
4715 LRESULT DefMDIChildProc16(HWND16,UINT16,WPARAM16,LPARAM);
4716 LRESULT DefMDIChildProc32A(HWND32,UINT32,WPARAM32,LPARAM);
4717 LRESULT DefMDIChildProc32W(HWND32,UINT32,WPARAM32,LPARAM);
4718 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
4719 LRESULT DefWindowProc16(HWND16,UINT16,WPARAM16,LPARAM);
4720 LRESULT DefWindowProc32A(HWND32,UINT32,WPARAM32,LPARAM);
4721 LRESULT DefWindowProc32W(HWND32,UINT32,WPARAM32,LPARAM);
4722 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
4723 BOOL16 DeleteDC16(HDC16);
4724 BOOL32 DeleteDC32(HDC32);
4725 #define DeleteDC WINELIB_NAME(DeleteDC)
4726 BOOL16 DeleteFile16(LPCSTR);
4727 BOOL32 DeleteFile32A(LPCSTR);
4728 BOOL32 DeleteFile32W(LPCWSTR);
4729 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
4730 BOOL16 DeleteMetaFile16(HMETAFILE16);
4731 BOOL32 DeleteMetaFile32(HMETAFILE32);
4732 #define DeleteMetaFile WINELIB_NAME(DeleteMetaFile)
4733 BOOL16 DeleteObject16(HGDIOBJ16);
4734 BOOL32 DeleteObject32(HGDIOBJ32);
4735 #define DeleteObject WINELIB_NAME(DeleteObject)
4736 INT16 DialogBox16(HINSTANCE16,SEGPTR,HWND16,DLGPROC16);
4737 #define DialogBox32A(inst,template,owner,func) \
4738 DialogBoxParam32A(inst,template,owner,func,0)
4739 #define DialogBox32W(inst,template,owner,func) \
4740 DialogBoxParam32W(inst,template,owner,func,0)
4741 #define DialogBox WINELIB_NAME_AW(DialogBox)
4742 INT16 DialogBoxIndirect16(HINSTANCE16,HANDLE16,HWND16,DLGPROC16);
4743 #define DialogBoxIndirect32A(inst,template,owner,func) \
4744 DialogBoxIndirectParam32A(inst,template,owner,func,0)
4745 #define DialogBoxIndirect32W(inst,template,owner,func) \
4746 DialogBoxIndirectParam32W(inst,template,owner,func,0)
4747 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
4748 INT16 DialogBoxIndirectParam16(HINSTANCE16,HANDLE16,HWND16,DLGPROC16,LPARAM);
4749 INT32 DialogBoxIndirectParam32A(HINSTANCE32,LPCVOID,HWND32,DLGPROC32,LPARAM);
4750 INT32 DialogBoxIndirectParam32W(HINSTANCE32,LPCVOID,HWND32,DLGPROC32,LPARAM);
4751 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
4752 INT16 DialogBoxParam16(HINSTANCE16,SEGPTR,HWND16,DLGPROC16,LPARAM);
4753 INT32 DialogBoxParam32A(HINSTANCE32,LPCSTR,HWND32,DLGPROC32,LPARAM);
4754 INT32 DialogBoxParam32W(HINSTANCE32,LPCWSTR,HWND32,DLGPROC32,LPARAM);
4755 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
4756 INT16 DlgDirList16(HWND16,LPCSTR,INT16,INT16,UINT16);
4757 INT32 DlgDirList32A(HWND32,LPCSTR,INT32,INT32,UINT32);
4758 INT32 DlgDirList32W(HWND32,LPCWSTR,INT32,INT32,UINT32);
4759 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
4760 INT16 DlgDirListComboBox16(HWND16,LPCSTR,INT16,INT16,UINT16);
4761 INT32 DlgDirListComboBox32A(HWND32,LPCSTR,INT32,INT32,UINT32);
4762 INT32 DlgDirListComboBox32W(HWND32,LPCWSTR,INT32,INT32,UINT32);
4763 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
4764 BOOL16 DlgDirSelectComboBoxEx16(HWND16,LPSTR,INT16,INT16);
4765 BOOL32 DlgDirSelectComboBoxEx32A(HWND32,LPSTR,INT32,INT32);
4766 BOOL32 DlgDirSelectComboBoxEx32W(HWND32,LPWSTR,INT32,INT32);
4767 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
4768 BOOL16 DlgDirSelectEx16(HWND16,LPSTR,INT16,INT16);
4769 BOOL32 DlgDirSelectEx32A(HWND32,LPSTR,INT32,INT32);
4770 BOOL32 DlgDirSelectEx32W(HWND32,LPWSTR,INT32,INT32);
4771 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
4772 BOOL16 DPtoLP16(HDC16,LPPOINT16,INT16);
4773 BOOL32 DPtoLP32(HDC32,LPPOINT32,INT32);
4774 #define DPtoLP WINELIB_NAME(DPtoLP)
4775 BOOL16 DrawEdge16(HDC16,LPRECT16,UINT16,UINT16);
4776 BOOL32 DrawEdge32(HDC32,LPRECT32,UINT32,UINT32);
4777 #define DrawEdge WINELIB_NAME(DrawEdge)
4778 void DrawFocusRect16(HDC16,const RECT16*);
4779 void DrawFocusRect32(HDC32,const RECT32*);
4780 #define DrawFocusRect WINELIB_NAME(DrawFocusRect)
4781 BOOL16 DrawFrameControl16(HDC16,LPRECT16,UINT16,UINT16);
4782 BOOL32 DrawFrameControl32(HDC32,LPRECT32,UINT32,UINT32);
4783 #define DrawFrameControl WINELIB_NAME(DrawFrameControl)
4784 INT16 DrawText16(HDC16,LPCSTR,INT16,LPRECT16,UINT16);
4785 INT32 DrawText32A(HDC32,LPCSTR,INT32,LPRECT32,UINT32);
4786 INT32 DrawText32W(HDC32,LPCWSTR,INT32,LPRECT32,UINT32);
4787 #define DrawText WINELIB_NAME_AW(DrawText)
4788 BOOL16 Ellipse16(HDC16,INT16,INT16,INT16,INT16);
4789 BOOL32 Ellipse32(HDC32,INT32,INT32,INT32,INT32);
4790 #define Ellipse WINELIB_NAME(Ellipse)
4791 BOOL16 EnableScrollBar16(HWND16,INT16,UINT16);
4792 BOOL32 EnableScrollBar32(HWND32,INT32,UINT32);
4793 #define EnableScrollBar WINELIB_NAME(EnableScrollBar)
4794 BOOL16 EndPaint16(HWND16,const PAINTSTRUCT16*);
4795 BOOL32 EndPaint32(HWND32,const PAINTSTRUCT32*);
4796 #define EndPaint WINELIB_NAME(EndPaint)
4797 BOOL16 EnumChildWindows16(HWND16,WNDENUMPROC16,LPARAM);
4798 BOOL32 EnumChildWindows32(HWND32,WNDENUMPROC32,LPARAM);
4799 #define EnumChildWindows WINELIB_NAME(EnumChildWindows)
4800 INT16 EnumFontFamilies16(HDC16,LPCSTR,FONTENUMPROC16,LPARAM);
4801 INT32 EnumFontFamilies32A(HDC32,LPCSTR,FONTENUMPROC32A,LPARAM);
4802 INT32 EnumFontFamilies32W(HDC32,LPCWSTR,FONTENUMPROC32W,LPARAM);
4803 #define EnumFontFamilies WINELIB_NAME_AW(EnumFontFamilies)
4804 INT16 EnumFontFamiliesEx16(HDC16,LPLOGFONT16,FONTENUMPROCEX16,LPARAM,DWORD);
4805 INT32 EnumFontFamiliesEx32A(HDC32,LPLOGFONT32A,FONTENUMPROCEX32A,LPARAM,DWORD);
4806 INT32 EnumFontFamiliesEx32W(HDC32,LPLOGFONT32W,FONTENUMPROCEX32W,LPARAM,DWORD);
4807 #define EnumFontFamiliesEx WINELIB_NAME_AW(EnumFontFamiliesEx)
4808 INT16 EnumFonts16(HDC16,LPCSTR,FONTENUMPROC16,LPARAM);
4809 INT32 EnumFonts32A(HDC32,LPCSTR,FONTENUMPROC32A,LPARAM);
4810 INT32 EnumFonts32W(HDC32,LPCWSTR,FONTENUMPROC32W,LPARAM);
4811 #define EnumFonts WINELIB_NAME_AW(EnumFonts)
4812 INT16 EnumObjects16(HDC16,INT16,GOBJENUMPROC16,LPARAM);
4813 INT32 EnumObjects32(HDC32,INT32,GOBJENUMPROC32,LPARAM);
4814 #define EnumObjects WINELIB_NAME(EnumObjects)
4815 INT16 EnumProps16(HWND16,PROPENUMPROC16);
4816 INT32 EnumProps32A(HWND32,PROPENUMPROC32A);
4817 INT32 EnumProps32W(HWND32,PROPENUMPROC32W);
4818 #define EnumProps WINELIB_NAME_AW(EnumProps)
4819 BOOL16 EnumTaskWindows16(HTASK16,WNDENUMPROC16,LPARAM);
4820 #define EnumTaskWindows32(handle,proc,lparam) \
4821 EnumThreadWindows(handle,proc,lparam)
4822 #define EnumTaskWindows WINELIB_NAME(EnumTaskWindows)
4823 BOOL16 EnumWindows16(WNDENUMPROC16,LPARAM);
4824 BOOL32 EnumWindows32(WNDENUMPROC32,LPARAM);
4825 #define EnumWindows WINELIB_NAME(EnumWindows)
4826 BOOL16 EqualRect16(const RECT16*,const RECT16*);
4827 BOOL32 EqualRect32(const RECT32*,const RECT32*);
4828 #define EqualRect WINELIB_NAME(EqualRect)
4829 BOOL16 EqualRgn16(HRGN16,HRGN16);
4830 BOOL32 EqualRgn32(HRGN32,HRGN32);
4831 #define EqualRgn WINELIB_NAME(EqualRgn)
4832 LONG EscapeCommFunction16(UINT16,UINT16);
4833 BOOL32 EscapeCommFunction32(INT32,UINT32);
4834 #define EscapeCommFunction WINELIB_NAME(EscapeCommFunction)
4835 INT16 ExcludeClipRect16(HDC16,INT16,INT16,INT16,INT16);
4836 INT32 ExcludeClipRect32(HDC32,INT32,INT32,INT32,INT32);
4837 #define ExcludeClipRect WINELIB_NAME(ExcludeClipRect)
4838 BOOL16 ExtFloodFill16(HDC16,INT16,INT16,COLORREF,UINT16);
4839 BOOL32 ExtFloodFill32(HDC32,INT32,INT32,COLORREF,UINT32);
4840 #define ExtFloodFill WINELIB_NAME(ExtFloodFill)
4841 BOOL16 ExtTextOut16(HDC16,INT16,INT16,UINT16,const RECT16*,LPCSTR,UINT16,const INT16*);
4842 BOOL32 ExtTextOut32A(HDC32,INT32,INT32,UINT32,const RECT32*,LPCSTR,UINT32,const INT32*);
4843 BOOL32 ExtTextOut32W(HDC32,INT32,INT32,UINT32,const RECT32*,LPCWSTR,UINT32,const INT32*);
4844 #define ExtTextOut WINELIB_NAME_AW(ExtTextOut)
4845 INT16 FillRect16(HDC16,const RECT16*,HBRUSH16);
4846 INT32 FillRect32(HDC32,const RECT32*,HBRUSH32);
4847 #define FillRect WINELIB_NAME(FillRect)
4848 BOOL16 FillRgn16(HDC16,HRGN16,HBRUSH16);
4849 BOOL32 FillRgn32(HDC32,HRGN32,HBRUSH32);
4850 #define FillRgn WINELIB_NAME(FillRgn)
4851 BOOL16 FindClose16(HANDLE16);
4852 BOOL32 FindClose32(HANDLE32);
4853 #define FindClose WINELIB_NAME(FindClose)
4854 HANDLE16 FindFirstFile16(LPCSTR,LPVOID);
4855 HANDLE32 FindFirstFile32A(LPCSTR,LPWIN32_FIND_DATA32A);
4856 HANDLE32 FindFirstFile32W(LPCWSTR,LPWIN32_FIND_DATA32W);
4857 #define FindFirst WINELIB_NAME_AW(FindFirst)
4858 BOOL16 FindNextFile16(HANDLE16,LPVOID);
4859 BOOL32 FindNextFile32A(HANDLE32,LPWIN32_FIND_DATA32A);
4860 BOOL32 FindNextFile32W(HANDLE32,LPWIN32_FIND_DATA32W);
4861 #define FindNext WINELIB_NAME_AW(FindNext)
4862 HRSRC16 FindResource16(HINSTANCE16,SEGPTR,SEGPTR);
4863 HRSRC32 FindResource32A(HINSTANCE32,LPCSTR,LPCSTR);
4864 HRSRC32 FindResource32W(HINSTANCE32,LPCWSTR,LPCWSTR);
4865 #define FindResource WINELIB_NAME_AW(FindResource)
4866 HWND16 FindWindow16(SEGPTR,LPCSTR);
4867 HWND32 FindWindow32A(LPCSTR,LPCSTR);
4868 HWND32 FindWindow32W(LPCWSTR,LPCWSTR);
4869 #define FindWindow WINELIB_NAME_AW(FindWindow)
4870 HWND16 FindWindowEx16(HWND16,HWND16,SEGPTR,LPCSTR);
4871 HWND32 FindWindowEx32A(HWND32,HWND32,LPCSTR,LPCSTR);
4872 HWND32 FindWindowEx32W(HWND32,HWND32,LPCWSTR,LPCWSTR);
4873 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
4874 BOOL16 FloodFill16(HDC16,INT16,INT16,COLORREF);
4875 BOOL32 FloodFill32(HDC32,INT32,INT32,COLORREF);
4876 #define FloodFill WINELIB_NAME(FloodFill)
4877 INT16 FrameRect16(HDC16,const RECT16*,HBRUSH16);
4878 INT32 FrameRect32(HDC32,const RECT32*,HBRUSH32);
4879 #define FrameRect WINELIB_NAME(FrameRect)
4880 BOOL16 FrameRgn16(HDC16,HRGN16,HBRUSH16,INT16,INT16);
4881 BOOL32 FrameRgn32(HDC32,HRGN32,HBRUSH32,INT32,INT32);
4882 #define FrameRgn WINELIB_NAME(FrameRgn)
4883 BOOL16 FreeModule16(HMODULE16);
4884 #define FreeModule32(handle) FreeLibrary32(handle)
4885 #define FreeModule WINELIB_NAME(FreeModule)
4886 void FreeProcInstance16(FARPROC16);
4887 #define FreeProcInstance32(proc) /*nothing*/
4888 #define FreeProcInstance WINELIB_NAME(FreeProcInstance)
4889 BOOL16 FreeResource16(HGLOBAL16);
4890 BOOL32 FreeResource32(HGLOBAL32);
4891 #define FreeResource WINELIB_NAME(FreeResource)
4892 BOOL16 GetBitmapDimensionEx16(HBITMAP16,LPSIZE16);
4893 BOOL32 GetBitmapDimensionEx32(HBITMAP32,LPSIZE32);
4894 #define GetBitmapDimensionEx WINELIB_NAME(GetBitmapDimensionEx)
4895 BOOL16 GetBrushOrgEx16(HDC16,LPPOINT16);
4896 BOOL32 GetBrushOrgEx32(HDC32,LPPOINT32);
4897 #define GetBrushOrgEx WINELIB_NAME(GetBrushOrgEx)
4898 COLORREF GetBkColor16(HDC16);
4899 COLORREF GetBkColor32(HDC32);
4900 #define GetBkColor WINELIB_NAME(GetBkColor)
4901 INT16 GetBkMode16(HDC16);
4902 INT32 GetBkMode32(HDC32);
4903 #define GetBkMode WINELIB_NAME(GetBkMode)
4904 HWND16 GetCapture16(void);
4905 HWND32 GetCapture32(void);
4906 #define GetCapture WINELIB_NAME(GetCapture)
4907 UINT16 GetCaretBlinkTime16(void);
4908 UINT32 GetCaretBlinkTime32(void);
4909 #define GetCaretBlinkTime WINELIB_NAME(GetCaretBlinkTime)
4910 VOID GetCaretPos16(LPPOINT16);
4911 BOOL32 GetCaretPos32(LPPOINT32);
4912 #define GetCaretPos WINELIB_NAME(GetCaretPos)
4913 BOOL16 GetCharABCWidths16(HDC16,UINT16,UINT16,LPABC16);
4914 BOOL32 GetCharABCWidths32A(HDC32,UINT32,UINT32,LPABC32);
4915 BOOL32 GetCharABCWidths32W(HDC32,UINT32,UINT32,LPABC32);
4916 #define GetCharABCWidths WINELIB_NAME_AW(GetCharABCWidths)
4917 BOOL16 GetCharWidth16(HDC16,UINT16,UINT16,LPINT16);
4918 BOOL32 GetCharWidth32A(HDC32,UINT32,UINT32,LPINT32);
4919 BOOL32 GetCharWidth32W(HDC32,UINT32,UINT32,LPINT32);
4920 #define GetCharWidth WINELIB_NAME_AW(GetCharWidth)
4921 BOOL16 GetClassInfo16(HINSTANCE16,SEGPTR,WNDCLASS16 *);
4922 BOOL32 GetClassInfo32A(HINSTANCE32,LPCSTR,WNDCLASS32A *);
4923 BOOL32 GetClassInfo32W(HINSTANCE32,LPCWSTR,WNDCLASS32W *);
4924 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
4925 BOOL16 GetClassInfoEx16(HINSTANCE16,SEGPTR,WNDCLASSEX16 *);
4926 BOOL32 GetClassInfoEx32A(HINSTANCE32,LPCSTR,WNDCLASSEX32A *);
4927 BOOL32 GetClassInfoEx32W(HINSTANCE32,LPCWSTR,WNDCLASSEX32W *);
4928 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
4929 LONG GetClassLong16(HWND16,INT16);
4930 LONG GetClassLong32A(HWND32,INT32);
4931 LONG GetClassLong32W(HWND32,INT32);
4932 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
4933 INT16 GetClassName16(HWND16,LPSTR,INT16);
4934 INT32 GetClassName32A(HWND32,LPSTR,INT32);
4935 INT32 GetClassName32W(HWND32,LPWSTR,INT32);
4936 #define GetClassName WINELIB_NAME_AW(GetClassName)
4937 void GetClientRect16(HWND16,LPRECT16);
4938 void GetClientRect32(HWND32,LPRECT32);
4939 #define GetClientRect WINELIB_NAME(GetClientRect)
4940 INT16 GetClipBox16(HDC16,LPRECT16);
4941 INT32 GetClipBox32(HDC32,LPRECT32);
4942 #define GetClipBox WINELIB_NAME(GetClipBox)
4943 void GetClipCursor16(LPRECT16);
4944 void GetClipCursor32(LPRECT32);
4945 #define GetClipCursor WINELIB_NAME(GetClipCursor)
4946 HRGN16 GetClipRgn16(HDC16);
4947 INT32 GetClipRgn32(HDC32,HRGN32);
4948 #define GetClipRgn WINELIB_NAME(GetClipRgn)
4949 INT16 GetCommState16(INT16,LPDCB16);
4950 BOOL32 GetCommState32(INT32,LPDCB32);
4951 #define GetCommState WINELIB_NAME(GetCommState)
4952 UINT16 GetCurrentDirectory16(UINT16,LPSTR);
4953 UINT32 GetCurrentDirectory32A(UINT32,LPSTR);
4954 UINT32 GetCurrentDirectory32W(UINT32,LPWSTR);
4955 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
4956 BOOL16 GetCurrentPositionEx16(HDC16,LPPOINT16);
4957 BOOL32 GetCurrentPositionEx32(HDC32,LPPOINT32);
4958 #define GetCurrentPositionEx WINELIB_NAME(GetCurrentPositionEx)
4959 void GetCursorPos16(LPPOINT16);
4960 void GetCursorPos32(LPPOINT32);
4961 #define GetCursorPos WINELIB_NAME(GetCursorPos)
4962 HDC16 GetDC16(HWND16);
4963 HDC32 GetDC32(HWND32);
4964 #define GetDC WINELIB_NAME(GetDC)
4965 HDC16 GetDCEx16(HWND16,HRGN16,DWORD);
4966 HDC32 GetDCEx32(HWND32,HRGN32,DWORD);
4967 #define GetDCEx WINELIB_NAME(GetDCEx)
4968 HWND16 GetDesktopWindow16(void);
4969 HWND32 GetDesktopWindow32(void);
4970 #define GetDesktopWindow WINELIB_NAME(GetDesktopWindow)
4971 INT16 GetDIBits16(HDC16,HBITMAP16,UINT16,UINT16,LPSTR,LPBITMAPINFO,UINT16);
4972 INT32 GetDIBits32(HDC32,HBITMAP32,UINT32,UINT32,LPSTR,LPBITMAPINFO,UINT32);
4973 #define GetDIBits WINELIB_NAME(GetDIBits)
4974 BOOL16 GetDiskFreeSpace16(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
4975 BOOL32 GetDiskFreeSpace32A(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
4976 BOOL32 GetDiskFreeSpace32W(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
4977 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
4978 INT16 GetDlgItemText16(HWND16,INT16,SEGPTR,UINT16);
4979 INT32 GetDlgItemText32A(HWND32,INT32,LPSTR,UINT32);
4980 INT32 GetDlgItemText32W(HWND32,INT32,LPWSTR,UINT32);
4981 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
4982 UINT16 GetDriveType16(UINT16); /* yes, the arguments differ */
4983 UINT32 GetDriveType32A(LPCSTR);
4984 UINT32 GetDriveType32W(LPCWSTR);
4985 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
4986 INT16 GetExpandedName16(LPCSTR,LPSTR);
4987 INT32 GetExpandedName32A(LPCSTR,LPSTR);
4988 INT32 GetExpandedName32W(LPCWSTR,LPWSTR);
4989 #define GetExpandedName WINELIB_NAME_AW(GetExpandedName)
4990 DWORD GetFileAttributes16(LPCSTR);
4991 DWORD GetFileAttributes32A(LPCSTR);
4992 DWORD GetFileAttributes32W(LPCWSTR);
4993 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
4994 DWORD GetFileVersionInfoSize16(LPCSTR,LPDWORD);
4995 DWORD GetFileVersionInfoSize32A(LPCSTR,LPDWORD);
4996 DWORD GetFileVersionInfoSize32W(LPCWSTR,LPDWORD);
4997 #define GetFileVersionInfoSize WINELIB_NAME_AW(GetFileVersionInfoSize)
4998 DWORD GetFileVersionInfo16(LPCSTR,DWORD,DWORD,LPVOID);
4999 DWORD GetFileVersionInfo32A(LPCSTR,DWORD,DWORD,LPVOID);
5000 DWORD GetFileVersionInfo32W(LPCWSTR,DWORD,DWORD,LPVOID);
5001 #define GetFileVersionInfo WINELIB_NAME_AW(GetFileVersionInfo)
5002 HWND16 GetFocus16(void);
5003 HWND32 GetFocus32(void);
5004 #define GetFocus WINELIB_NAME(GetFocus)
5005 UINT16 GetInternalWindowPos16(HWND16,LPRECT16,LPPOINT16);
5006 UINT32 GetInternalWindowPos32(HWND32,LPRECT32,LPPOINT32);
5007 #define GetInternalWindowPos WINELIB_NAME(GetInternalWindowPos)
5008 INT16 GetKeyNameText16(LONG,LPSTR,INT16);
5009 INT32 GetKeyNameText32A(LONG,LPSTR,INT32);
5010 INT32 GetKeyNameText32W(LONG,LPWSTR,INT32);
5011 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
5012 UINT32 GetLogicalDriveStrings32A(UINT32,LPSTR);
5013 UINT32 GetLogicalDriveStrings32W(UINT32,LPWSTR);
5014 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
5015 INT16 GetMapMode16(HDC16);
5016 INT32 GetMapMode32(HDC32);
5017 #define GetMapMode WINELIB_NAME(GetMapMode)
5018 INT16 GetModuleFileName16(HINSTANCE16,LPSTR,INT16);
5019 DWORD GetModuleFileName32A(HMODULE32,LPSTR,DWORD);
5020 DWORD GetModuleFileName32W(HMODULE32,LPWSTR,DWORD);
5021 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
5022 HWND16 GetNextDlgGroupItem16(HWND16,HWND16,BOOL16);
5023 HWND32 GetNextDlgGroupItem32(HWND32,HWND32,BOOL32);
5024 #define GetNextDlgGroupItem WINELIB_NAME(GetNextDlgGroupItem)
5025 HWND16 GetNextDlgTabItem16(HWND16,HWND16,BOOL16);
5026 HWND32 GetNextDlgTabItem32(HWND32,HWND32,BOOL32);
5027 #define GetNextDlgTabItem WINELIB_NAME(GetNextDlgTabItem)
5028 INT16 GetObject16(HANDLE16,INT16,LPVOID);
5029 INT32 GetObject32A(HANDLE32,INT32,LPVOID);
5030 INT32 GetObject32W(HANDLE32,INT32,LPVOID);
5031 #define GetObject WINELIB_NAME_AW(GetObject)
5032 HWND16 GetParent16(HWND16);
5033 HWND32 GetParent32(HWND32);
5034 #define GetParent WINELIB_NAME(GetParent)
5035 COLORREF GetPixel16(HDC16,INT16,INT16);
5036 COLORREF GetPixel32(HDC32,INT32,INT32);
5037 #define GetPixel WINELIB_NAME(GetPixel)
5038 INT16 GetPolyFillMode16(HDC16);
5039 INT32 GetPolyFillMode32(HDC32);
5040 #define GetPolyFillMode WINELIB_NAME(GetPolyFillMode)
5041 UINT16 GetPrivateProfileInt16(LPCSTR,LPCSTR,INT16,LPCSTR);
5042 UINT32 GetPrivateProfileInt32A(LPCSTR,LPCSTR,INT32,LPCSTR);
5043 UINT32 GetPrivateProfileInt32W(LPCWSTR,LPCWSTR,INT32,LPCWSTR);
5044 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
5045 INT16 GetPrivateProfileString16(LPCSTR,LPCSTR,LPCSTR,LPSTR,INT16,LPCSTR);
5046 INT32 GetPrivateProfileString32A(LPCSTR,LPCSTR,LPCSTR,LPSTR,INT32,LPCSTR);
5047 INT32 GetPrivateProfileString32W(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,INT32,LPCWSTR);
5048 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
5049 FARPROC16 GetProcAddress16(HMODULE16,SEGPTR);
5050 FARPROC32 GetProcAddress32(HMODULE32,LPCSTR);
5051 #define GetProcAddress WINELIB_NAME(GetProcAddress)
5052 UINT16 GetProfileInt16(LPCSTR,LPCSTR,INT16);
5053 UINT32 GetProfileInt32A(LPCSTR,LPCSTR,INT32);
5054 UINT32 GetProfileInt32W(LPCWSTR,LPCWSTR,INT32);
5055 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
5056 INT16 GetProfileString16(LPCSTR,LPCSTR,LPCSTR,LPSTR,INT16);
5057 INT32 GetProfileString32A(LPCSTR,LPCSTR,LPCSTR,LPSTR,INT32);
5058 INT32 GetProfileString32W(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,INT32);
5059 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
5060 HANDLE16 GetProp16(HWND16,LPCSTR);
5061 HANDLE32 GetProp32A(HWND32,LPCSTR);
5062 HANDLE32 GetProp32W(HWND32,LPCWSTR);
5063 #define GetProp WINELIB_NAME_AW(GetProp)
5064 INT16 GetRelAbs16(HDC16);
5065 INT32 GetRelAbs32(HDC32);
5066 #define GetRelAbs WINELIB_NAME(GetRelAbs)
5067 INT16 GetRgnBox16(HRGN16,LPRECT16);
5068 INT32 GetRgnBox32(HRGN32,LPRECT32);
5069 #define GetRgnBox WINELIB_NAME(GetRgnBox)
5070 INT16 GetROP216(HDC16);
5071 INT32 GetROP232(HDC32);
5072 #define GetROP2 WINELIB_NAME(GetROP2)
5073 BOOL16 GetScrollInfo16(HWND16,INT16,LPSCROLLINFO);
5074 BOOL32 GetScrollInfo32(HWND32,INT32,LPSCROLLINFO);
5075 #define GetScrollInfo WINELIB_NAME(GetScrollInfo)
5076 INT16 GetScrollPos16(HWND16,INT16);
5077 INT32 GetScrollPos32(HWND32,INT32);
5078 #define GetScrollPos WINELIB_NAME(GetScrollPos)
5079 BOOL16 GetScrollRange16(HWND16,INT16,LPINT16,LPINT16);
5080 BOOL32 GetScrollRange32(HWND32,INT32,LPINT32,LPINT32);
5081 #define GetScrollRange WINELIB_NAME(GetScrollRange)
5082 HGDIOBJ16 GetStockObject16(INT16);
5083 HGDIOBJ32 GetStockObject32(INT32);
5084 #define GetStockObject WINELIB_NAME(GetStockObject)
5085 INT16 GetStretchBltMode16(HDC16);
5086 INT32 GetStretchBltMode32(HDC32);
5087 #define GetStretchBltMode WINELIB_NAME(GetStretchBltMode)
5088 HBRUSH16 GetSysColorBrush16(INT16);
5089 HBRUSH32 GetSysColorBrush32(INT32);
5090 #define GetSysColorBrush WINELIB_NAME(GetSysColorBrush)
5091 HWND16 GetSysModalWindow16(void);
5092 #define GetSysModalWindow32() ((HWND32)0)
5093 #define GetSysModalWindow WINELIB_NAME(GetSysModalWindow)
5094 UINT16 GetSystemDirectory16(LPSTR,UINT16);
5095 UINT32 GetSystemDirectory32A(LPSTR,UINT32);
5096 UINT32 GetSystemDirectory32W(LPWSTR,UINT32);
5097 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
5098 UINT16 GetTempFileName16(BYTE,LPCSTR,UINT16,LPSTR);
5099 UINT32 GetTempFileName32A(LPCSTR,LPCSTR,UINT32,LPSTR);
5100 UINT32 GetTempFileName32W(LPCWSTR,LPCWSTR,UINT32,LPWSTR);
5101 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
5102 UINT32 GetTempPath32A(UINT32,LPSTR);
5103 UINT32 GetTempPath32W(UINT32,LPWSTR);
5104 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
5105 UINT16 GetTextAlign16(HDC16);
5106 UINT32 GetTextAlign32(HDC32);
5107 #define GetTextAlign WINELIB_NAME(GetTextAlign)
5108 INT16 GetTextCharacterExtra16(HDC16);
5109 INT32 GetTextCharacterExtra32(HDC32);
5110 #define GetTextCharacterExtra WINELIB_NAME(GetTextCharacterExtra)
5111 COLORREF GetTextColor16(HDC16);
5112 COLORREF GetTextColor32(HDC32);
5113 #define GetTextColor WINELIB_NAME(GetTextColor)
5114 BOOL16 GetTextExtentPoint16(HDC16,LPCSTR,INT16,LPSIZE16);
5115 BOOL32 GetTextExtentPoint32A(HDC32,LPCSTR,INT32,LPSIZE32);
5116 BOOL32 GetTextExtentPoint32W(HDC32,LPCWSTR,INT32,LPSIZE32);
5117 #define GetTextExtentPoint WINELIB_NAME_AW(GetTextExtentPoint)
5118 INT16 GetTextFace16(HDC16,INT16,LPSTR);
5119 INT32 GetTextFace32A(HDC32,INT32,LPSTR);
5120 INT32 GetTextFace32W(HDC32,INT32,LPWSTR);
5121 #define GetTextFace WINELIB_NAME_AW(GetTextFace)
5122 BOOL16 GetTextMetrics16(HDC16,LPTEXTMETRIC16);
5123 BOOL32 GetTextMetrics32A(HDC32,LPTEXTMETRIC32A);
5124 BOOL32 GetTextMetrics32W(HDC32,LPTEXTMETRIC32W);
5125 #define GetTextMetrics WINELIB_NAME_AW(GetTextMetrics)
5126 BOOL16 GetUpdateRect16(HWND16,LPRECT16,BOOL16);
5127 BOOL32 GetUpdateRect32(HWND32,LPRECT32,BOOL32);
5128 #define GetUpdateRect WINELIB_NAME(GetUpdateRect)
5129 LONG GetVersion16(void);
5130 LONG GetVersion32(void);
5131 #define GetVersion WINELIB_NAME(GetVersion)
5132 BOOL16 GetViewportExtEx16(HDC16,LPPOINT16);
5133 BOOL32 GetViewportExtEx32(HDC32,LPPOINT32);
5134 #define GetViewportExtEx WINELIB_NAME(GetViewportExtEx)
5135 BOOL16 GetViewportOrgEx16(HDC16,LPPOINT16);
5136 BOOL32 GetViewportOrgEx32(HDC32,LPPOINT32);
5137 #define GetViewportOrgEx WINELIB_NAME(GetViewportOrgEx)
5138 BOOL32 GetVolumeInformation32A(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
5139 BOOL32 GetVolumeInformation32W(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
5140 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
5141 HDC16 GetWindowDC16(HWND16);
5142 HDC32 GetWindowDC32(HWND32);
5143 #define GetWindowDC WINELIB_NAME(GetWindowDC)
5144 BOOL16 GetWindowExtEx16(HDC16,LPPOINT16);
5145 BOOL32 GetWindowExtEx32(HDC32,LPPOINT32);
5146 #define GetWindowExtEx WINELIB_NAME(GetWindowExtEx)
5147 LONG GetWindowLong16(HWND16,INT16);
5148 LONG GetWindowLong32A(HWND32,INT32);
5149 LONG GetWindowLong32W(HWND32,INT32);
5150 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
5151 BOOL16 GetWindowOrgEx16(HDC16,LPPOINT16);
5152 BOOL32 GetWindowOrgEx32(HDC32,LPPOINT32);
5153 #define GetWindowOrgEx WINELIB_NAME(GetWindowOrgEx)
5154 BOOL16 GetWindowPlacement16(HWND16,LPWINDOWPLACEMENT16);
5155 BOOL32 GetWindowPlacement32(HWND32,LPWINDOWPLACEMENT32);
5156 #define GetWindowPlacement WINELIB_NAME(GetWindowPlacement)
5157 void GetWindowRect16(HWND16,LPRECT16);
5158 void GetWindowRect32(HWND32,LPRECT32);
5159 #define GetWindowRect WINELIB_NAME(GetWindowRect)
5160 UINT16 GetWindowsDirectory16(LPSTR,UINT16);
5161 UINT32 GetWindowsDirectory32A(LPSTR,UINT32);
5162 UINT32 GetWindowsDirectory32W(LPWSTR,UINT32);
5163 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
5164 HTASK16 GetWindowTask16(HWND16);
5165 #define GetWindowTask32(hwnd) ((HTASK32)GetWindowThreadProcessId(hwnd,NULL))
5166 #define GetWindowTask WINELIB_NAME(GetWindowTask)
5167 INT16 GetWindowText16(HWND16,SEGPTR,INT16);
5168 INT32 GetWindowText32A(HWND32,LPSTR,INT32);
5169 INT32 GetWindowText32W(HWND32,LPWSTR,INT32);
5170 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
5171 INT16 GetWindowTextLength16(HWND16);
5172 INT32 GetWindowTextLength32A(HWND32);
5173 INT32 GetWindowTextLength32W(HWND32);
5174 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
5175 ATOM GlobalAddAtom16(SEGPTR);
5176 ATOM GlobalAddAtom32A(LPCSTR);
5177 ATOM GlobalAddAtom32W(LPCWSTR);
5178 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
5179 HGLOBAL16 GlobalAlloc16(UINT16,DWORD);
5180 HGLOBAL32 GlobalAlloc32(UINT32,DWORD);
5181 #define GlobalAlloc WINELIB_NAME(GlobalAlloc)
5182 DWORD GlobalCompact16(DWORD);
5183 DWORD GlobalCompact32(DWORD);
5184 #define GlobalCompact WINELIB_NAME(GlobalCompact)
5185 UINT16 GlobalFlags16(HGLOBAL16);
5186 UINT32 GlobalFlags32(HGLOBAL32);
5187 #define GlobalFlags WINELIB_NAME(GlobalFlags)
5188 ATOM GlobalFindAtom16(SEGPTR);
5189 ATOM GlobalFindAtom32A(LPCSTR);
5190 ATOM GlobalFindAtom32W(LPCWSTR);
5191 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
5192 HGLOBAL16 GlobalFree16(HGLOBAL16);
5193 HGLOBAL32 GlobalFree32(HGLOBAL32);
5194 #define GlobalFree WINELIB_NAME(GlobalFree)
5195 UINT16 GlobalGetAtomName16(ATOM,LPSTR,INT16);
5196 UINT32 GlobalGetAtomName32A(ATOM,LPSTR,INT32);
5197 UINT32 GlobalGetAtomName32W(ATOM,LPWSTR,INT32);
5198 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
5199 DWORD GlobalHandle16(WORD);
5200 HGLOBAL32 GlobalHandle32(LPCVOID);
5201 #define GlobalHandle WINELIB_NAME(GlobalHandle)
5202 LPVOID GlobalLock16(HGLOBAL16);
5203 LPVOID GlobalLock32(HGLOBAL32);
5204 #define GlobalLock WINELIB_NAME(GlobalLock)
5205 HGLOBAL16 GlobalReAlloc16(HGLOBAL16,DWORD,UINT16);
5206 HGLOBAL32 GlobalReAlloc32(HGLOBAL32,DWORD,UINT32);
5207 #define GlobalReAlloc WINELIB_NAME(GlobalReAlloc)
5208 DWORD GlobalSize16(HGLOBAL16);
5209 DWORD GlobalSize32(HGLOBAL32);
5210 #define GlobalSize WINELIB_NAME(GlobalSize)
5211 BOOL16 GlobalUnlock16(HGLOBAL16);
5212 BOOL32 GlobalUnlock32(HGLOBAL32);
5213 #define GlobalUnlock WINELIB_NAME(GlobalUnlock)
5214 void InflateRect16(LPRECT16,INT16,INT16);
5215 void InflateRect32(LPRECT32,INT32,INT32);
5216 #define InflateRect WINELIB_NAME(InflateRect)
5217 BOOL16 InsertMenu16(HMENU16,UINT16,UINT16,UINT16,SEGPTR);
5218 BOOL32 InsertMenu32A(HMENU32,UINT32,UINT32,UINT32,LPCSTR);
5219 BOOL32 InsertMenu32W(HMENU32,UINT32,UINT32,UINT32,LPCWSTR);
5220 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
5221 INT16 IntersectClipRect16(HDC16,INT16,INT16,INT16,INT16);
5222 INT32 IntersectClipRect32(HDC32,INT32,INT32,INT32,INT32);
5223 #define IntersectClipRect WINELIB_NAME(IntersectClipRect)
5224 BOOL16 IntersectRect16(LPRECT16,const RECT16*,const RECT16*);
5225 BOOL32 IntersectRect32(LPRECT32,const RECT32*,const RECT32*);
5226 #define IntersectRect WINELIB_NAME(IntersectRect)
5227 void InvalidateRect16(HWND16,const RECT16*,BOOL16);
5228 void InvalidateRect32(HWND32,const RECT32*,BOOL32);
5229 #define InvalidateRect WINELIB_NAME(InvalidateRect)
5230 void InvertRect16(HDC16,const RECT16*);
5231 void InvertRect32(HDC32,const RECT32*);
5232 #define InvertRect WINELIB_NAME(InvertRect)
5233 BOOL16 InvertRgn16(HDC16,HRGN16);
5234 BOOL32 InvertRgn32(HDC32,HRGN32);
5235 #define InvertRgn WINELIB_NAME(InvertRgn)
5236 BOOL16 IsBadCodePtr16(SEGPTR);
5237 BOOL32 IsBadCodePtr32(FARPROC32);
5238 #define IsBadCodePtr WINELIB_NAME(IsBadCodePtr)
5239 BOOL16 IsBadHugeReadPtr16(SEGPTR,DWORD);
5240 BOOL32 IsBadHugeReadPtr32(LPCVOID,UINT32);
5241 #define IsBadHugeReadPtr WINELIB_NAME(IsBadHugeReadPtr)
5242 BOOL16 IsBadHugeWritePtr16(SEGPTR,DWORD);
5243 BOOL32 IsBadHugeWritePtr32(LPCVOID,UINT32);
5244 #define IsBadHugeWritePtr WINELIB_NAME(IsBadHugeWritePtr)
5245 BOOL16 IsBadReadPtr16(SEGPTR,UINT16);
5246 BOOL32 IsBadReadPtr32(LPCVOID,UINT32);
5247 #define IsBadReadPtr WINELIB_NAME(IsBadReadPtr)
5248 BOOL16 IsBadStringPtr16(SEGPTR,UINT16);
5249 BOOL32 IsBadStringPtr32A(LPCSTR,UINT32);
5250 BOOL32 IsBadStringPtr32W(LPCWSTR,UINT32);
5251 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
5252 BOOL16 IsBadWritePtr16(SEGPTR,UINT16);
5253 BOOL32 IsBadWritePtr32(LPVOID,UINT32);
5254 #define IsBadWritePtr WINELIB_NAME(IsBadWritePtr)
5255 BOOL16 IsCharAlpha16(CHAR);
5256 BOOL32 IsCharAlpha32A(CHAR);
5257 BOOL32 IsCharAlpha32W(WCHAR);
5258 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
5259 BOOL16 IsCharAlphaNumeric16(CHAR);
5260 BOOL32 IsCharAlphaNumeric32A(CHAR);
5261 BOOL32 IsCharAlphaNumeric32W(WCHAR);
5262 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
5263 BOOL16 IsCharLower16(CHAR);
5264 BOOL32 IsCharLower32A(CHAR);
5265 BOOL32 IsCharLower32W(WCHAR);
5266 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
5267 BOOL16 IsCharUpper16(CHAR);
5268 BOOL32 IsCharUpper32A(CHAR);
5269 BOOL32 IsCharUpper32W(WCHAR);
5270 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
5271 BOOL16 IsRectEmpty16(const RECT16*);
5272 BOOL32 IsRectEmpty32(const RECT32*);
5273 #define IsRectEmpty WINELIB_NAME(IsRectEmpty)
5274 BOOL16 KillSystemTimer16(HWND16,UINT16);
5275 BOOL32 KillSystemTimer32(HWND32,UINT32);
5276 #define KillSystemTimer WINELIB_NAME(KillSystemTimer)
5277 BOOL16 KillTimer16(HWND16,UINT16);
5278 BOOL32 KillTimer32(HWND32,UINT32);
5279 #define KillTimer WINELIB_NAME(KillTimer)
5280 HFILE LZOpenFile16(LPCSTR,LPOFSTRUCT,UINT16);
5281 HFILE LZOpenFile32A(LPCSTR,LPOFSTRUCT,UINT32);
5282 HFILE LZOpenFile32W(LPCWSTR,LPOFSTRUCT,UINT32);
5283 #define LZOpenFile WINELIB_NAME_AW(LZOpenFile)
5284 INT16 LZRead16(HFILE,SEGPTR,UINT16);
5285 INT32 LZRead32(HFILE,LPVOID,UINT32);
5286 #define LZRead WINELIB_NAME(LZRead)
5287 VOID LineDDA16(INT16,INT16,INT16,INT16,LINEDDAPROC16,LPARAM);
5288 BOOL32 LineDDA32(INT32,INT32,INT32,INT32,LINEDDAPROC32,LPARAM);
5289 #define LineDDA WINELIB_NAME(LineDDA)
5290 BOOL16 LineTo16(HDC16,INT16,INT16);
5291 BOOL32 LineTo32(HDC32,INT32,INT32);
5292 #define LineTo WINELIB_NAME(LineTo)
5293 HACCEL16 LoadAccelerators16(HINSTANCE16,SEGPTR);
5294 HACCEL32 LoadAccelerators32A(HINSTANCE32,LPCSTR);
5295 HACCEL32 LoadAccelerators32W(HINSTANCE32,LPCWSTR);
5296 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
5297 HBITMAP16 LoadBitmap16(HANDLE16,SEGPTR);
5298 HBITMAP32 LoadBitmap32A(HANDLE32,LPCSTR);
5299 HBITMAP32 LoadBitmap32W(HANDLE32,LPCWSTR);
5300 #define LoadBitmap WINELIB_NAME(LoadBitmap)
5301 HCURSOR16 LoadCursor16(HINSTANCE16,SEGPTR);
5302 HCURSOR32 LoadCursor32A(HINSTANCE32,LPCSTR);
5303 HCURSOR32 LoadCursor32W(HINSTANCE32,LPCWSTR);
5304 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
5305 HICON16 LoadIcon16(HINSTANCE16,SEGPTR);
5306 HICON32 LoadIcon32A(HINSTANCE32,LPCSTR);
5307 HICON32 LoadIcon32W(HINSTANCE32,LPCWSTR);
5308 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
5309 HINSTANCE16 LoadLibrary16(LPCSTR);
5310 HINSTANCE32 LoadLibrary32A(LPCSTR);
5311 HINSTANCE32 LoadLibrary32W(LPCWSTR);
5312 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
5313 HMENU16 LoadMenu16(HINSTANCE16,SEGPTR);
5314 HMENU32 LoadMenu32A(HINSTANCE32,LPCSTR);
5315 HMENU32 LoadMenu32W(HINSTANCE32,LPCWSTR);
5316 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
5317 HMENU16 LoadMenuIndirect16(LPCVOID);
5318 HMENU32 LoadMenuIndirect32A(LPCVOID);
5319 HMENU32 LoadMenuIndirect32W(LPCVOID);
5320 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
5321 HGLOBAL16 LoadResource16(HINSTANCE16,HRSRC16);
5322 HGLOBAL32 LoadResource32(HINSTANCE32,HRSRC32);
5323 #define LoadResource WINELIB_NAME(LoadResource)
5324 INT16 LoadString16(HINSTANCE16,UINT16,LPSTR,INT16);
5325 INT32 LoadString32A(HINSTANCE32,UINT32,LPSTR,INT32);
5326 INT32 LoadString32W(HINSTANCE32,UINT32,LPWSTR,INT32);
5327 #define LoadString WINELIB_NAME_AW(LoadString)
5328 HLOCAL16 LocalAlloc16(UINT16,WORD);
5329 HLOCAL32 LocalAlloc32(UINT32,DWORD);
5330 #define LocalAlloc WINELIB_NAME(LocalAlloc)
5331 UINT16 LocalCompact16(UINT16);
5332 UINT32 LocalCompact32(UINT32);
5333 #define LocalCompact WINELIB_NAME(LocalCompact)
5334 UINT16 LocalFlags16(HLOCAL16);
5335 UINT32 LocalFlags32(HLOCAL32);
5336 #define LocalFlags WINELIB_NAME(LocalFlags)
5337 HLOCAL16 LocalFree16(HLOCAL16);
5338 HLOCAL32 LocalFree32(HLOCAL32);
5339 #define LocalFree WINELIB_NAME(LocalFree)
5340 HLOCAL16 LocalHandle16(WORD);
5341 HLOCAL32 LocalHandle32(LPCVOID);
5342 #define LocalHandle WINELIB_NAME(LocalHandle)
5343 SEGPTR LocalLock16(HLOCAL16);
5344 LPVOID LocalLock32(HLOCAL32);
5345 #define LocalLock WINELIB_NAME(LocalLock)
5346 HLOCAL16 LocalReAlloc16(HLOCAL16,WORD,UINT16);
5347 HLOCAL32 LocalReAlloc32(HLOCAL32,DWORD,UINT32);
5348 #define LocalReAlloc WINELIB_NAME(LocalReAlloc)
5349 UINT16 LocalShrink16(HGLOBAL16,UINT16);
5350 UINT32 LocalShrink32(HGLOBAL32,UINT32);
5351 #define LocalShrink WINELIB_NAME(LocalShrink)
5352 UINT16 LocalSize16(HLOCAL16);
5353 UINT32 LocalSize32(HLOCAL32);
5354 #define LocalSize WINELIB_NAME(LocalSize)
5355 BOOL16 LocalUnlock16(HLOCAL16);
5356 BOOL32 LocalUnlock32(HLOCAL32);
5357 #define LocalUnlock WINELIB_NAME(LocalUnlock)
5358 LPVOID LockResource16(HGLOBAL16);
5359 LPVOID LockResource32(HGLOBAL32);
5360 #define LockResource WINELIB_NAME(LockResource)
5361 HGLOBAL16 LockSegment16(HGLOBAL16);
5362 #define LockSegment32(handle) GlobalFix((HANDLE32)(handle))
5363 #define LockSegment WINELIB_NAME(LockSegment)
5364 BOOL16 LPtoDP16(HDC16,LPPOINT16,INT16);
5365 BOOL32 LPtoDP32(HDC32,LPPOINT32,INT32);
5366 #define LPtoDP WINELIB_NAME(LPtoDP)
5367 FARPROC16 MakeProcInstance16(FARPROC16,HANDLE16);
5368 #define MakeProcInstance32(proc,inst) (proc)
5369 #define MakeProcInstance WINELIB_NAME(MakeProcInstance)
5370 void MapDialogRect16(HWND16,LPRECT16);
5371 void MapDialogRect32(HWND32,LPRECT32);
5372 #define MapDialogRect WINELIB_NAME(MapDialogRect)
5373 void MapWindowPoints16(HWND16,HWND16,LPPOINT16,UINT16);
5374 void MapWindowPoints32(HWND32,HWND32,LPPOINT32,UINT32);
5375 #define MapWindowPoints WINELIB_NAME(MapWindowPoints)
5376 INT16 MessageBox16(HWND16,LPCSTR,LPCSTR,UINT16);
5377 INT32 MessageBox32A(HWND32,LPCSTR,LPCSTR,UINT32);
5378 INT32 MessageBox32W(HWND32,LPCWSTR,LPCWSTR,UINT32);
5379 #define MessageBox WINELIB_NAME_AW(MessageBox)
5380 BOOL16 ModifyMenu16(HMENU16,UINT16,UINT16,UINT16,SEGPTR);
5381 BOOL32 ModifyMenu32A(HMENU32,UINT32,UINT32,UINT32,LPCSTR);
5382 BOOL32 ModifyMenu32W(HMENU32,UINT32,UINT32,UINT32,LPCWSTR);
5383 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
5384 BOOL16 MoveToEx16(HDC16,INT16,INT16,LPPOINT16);
5385 BOOL32 MoveToEx32(HDC32,INT32,INT32,LPPOINT32);
5386 #define MoveToEx WINELIB_NAME(MoveToEx)
5387 INT16 MulDiv16(INT16,INT16,INT16);
5388 INT32 MulDiv32(INT32,INT32,INT32);
5389 #define MulDiv WINELIB_NAME(MulDiv)
5390 INT16 OemToAnsi16(LPCSTR,LPSTR);
5391 #define OemToAnsi32A OemToChar32A
5392 #define OemToAnsi32W OemToChar32W
5393 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
5394 VOID OemToAnsiBuff16(LPCSTR,LPSTR,UINT16);
5395 #define OemToAnsiBuff32A OemToCharBuff32A
5396 #define OemToAnsiBuff32W OemToCharBuff32W
5397 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
5398 BOOL32 OemToChar32A(LPCSTR,LPSTR);
5399 BOOL32 OemToChar32W(LPCSTR,LPWSTR);
5400 #define OemToChar WINELIB_NAME_AW(OemToChar)
5401 BOOL32 OemToCharBuff32A(LPCSTR,LPSTR,DWORD);
5402 BOOL32 OemToCharBuff32W(LPCSTR,LPWSTR,DWORD);
5403 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
5404 INT16 OffsetClipRgn16(HDC16,INT16,INT16);
5405 INT32 OffsetClipRgn32(HDC32,INT32,INT32);
5406 #define OffsetClipRgn WINELIB_NAME(OffsetClipRgn)
5407 void OffsetRect16(LPRECT16,INT16,INT16);
5408 void OffsetRect32(LPRECT32,INT32,INT32);
5409 #define OffsetRect WINELIB_NAME(OffsetRect)
5410 INT16 OffsetRgn16(HRGN16,INT16,INT16);
5411 INT32 OffsetRgn32(HRGN32,INT32,INT32);
5412 #define OffsetRgn WINELIB_NAME(OffsetRgn)
5413 BOOL16 OffsetViewportOrgEx16(HDC16,INT16,INT16,LPPOINT16);
5414 BOOL32 OffsetViewportOrgEx32(HDC32,INT32,INT32,LPPOINT32);
5415 #define OffsetViewportOrgEx WINELIB_NAME(OffsetViewportOrgEx)
5416 BOOL16 OffsetWindowOrgEx16(HDC16,INT16,INT16,LPPOINT16);
5417 BOOL32 OffsetWindowOrgEx32(HDC32,INT32,INT32,LPPOINT32);
5418 #define OffsetWindowOrgEx WINELIB_NAME(OffsetWindowOrgEx)
5419 BOOL16 PaintRgn16(HDC16,HRGN16);
5420 BOOL32 PaintRgn32(HDC32,HRGN32);
5421 #define PaintRgn WINELIB_NAME(PaintRgn)
5422 BOOL16 PatBlt16(HDC16,INT16,INT16,INT16,INT16,DWORD);
5423 BOOL32 PatBlt32(HDC32,INT32,INT32,INT32,INT32,DWORD);
5424 #define PatBlt WINELIB_NAME(PatBlt)
5425 BOOL16 PeekMessage16(LPMSG16,HWND16,UINT16,UINT16,UINT16);
5426 BOOL32 PeekMessage32A(LPMSG32,HWND32,UINT32,UINT32,UINT32);
5427 BOOL32 PeekMessage32W(LPMSG32,HWND32,UINT32,UINT32,UINT32);
5428 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
5429 BOOL16 Pie16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16,INT16,INT16);
5430 BOOL32 Pie32(HDC32,INT32,INT32,INT32,INT32,INT32,INT32,INT32,INT32);
5431 #define Pie WINELIB_NAME(Pie)
5432 BOOL16 PolyPolygon16(HDC16,LPPOINT16,LPINT16,UINT16);
5433 BOOL32 PolyPolygon32(HDC32,LPPOINT32,LPINT32,UINT32);
5434 #define PolyPolygon WINELIB_NAME(PolyPolygon)
5435 BOOL16 Polygon16(HDC16,LPPOINT16,INT16);
5436 BOOL32 Polygon32(HDC32,LPPOINT32,INT32);
5437 #define Polygon WINELIB_NAME(Polygon)
5438 BOOL16 Polyline16(HDC16,LPPOINT16,INT16);
5439 BOOL32 Polyline32(HDC32,LPPOINT32,INT32);
5440 #define Polyline WINELIB_NAME(Polyline)
5441 BOOL16 PostAppMessage16(HTASK16,UINT16,WPARAM16,LPARAM);
5442 #define PostAppMessage32A(thread,msg,wparam,lparam) \
5443 PostThreadMessage32A((DWORD)(thread),msg,wparam,lparam)
5444 #define PostAppMessage32W(thread,msg,wparam,lparam) \
5445 PostThreadMessage32W((DWORD)(thread),msg,wparam,lparam)
5446 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
5447 BOOL16 PtInRect16(const RECT16*,POINT16);
5448 BOOL32 PtInRect32(const RECT32*,POINT32);
5449 #define PtInRect WINELIB_NAME(PtInRect)
5450 BOOL16 PtInRegion16(HRGN16,INT16,INT16);
5451 BOOL32 PtInRegion32(HRGN32,INT32,INT32);
5452 #define PtInRegion WINELIB_NAME(PtInRegion)
5453 BOOL16 PtVisible16(HDC16,INT16,INT16);
5454 BOOL32 PtVisible32(HDC32,INT32,INT32);
5455 #define PtVisible WINELIB_NAME(PtVisible)
5456 BOOL16 Rectangle16(HDC16,INT16,INT16,INT16,INT16);
5457 BOOL32 Rectangle32(HDC32,INT32,INT32,INT32,INT32);
5458 #define Rectangle WINELIB_NAME(Rectangle)
5459 BOOL16 RectInRegion16(HRGN16,const RECT16 *);
5460 BOOL32 RectInRegion32(HRGN32,const RECT32 *);
5461 #define RectInRegion WINELIB_NAME(RectInRegion)
5462 BOOL16 RectVisible16(HDC16,LPRECT16);
5463 BOOL32 RectVisible32(HDC32,LPRECT32);
5464 #define RectVisible WINELIB_NAME(RectVisible)
5465 BOOL16 RedrawWindow16(HWND16,const RECT16*,HRGN16,UINT16);
5466 BOOL32 RedrawWindow32(HWND32,const RECT32*,HRGN32,UINT32);
5467 #define RedrawWindow WINELIB_NAME(RedrawWindow)
5468 DWORD RegCreateKey16(HKEY,LPCSTR,LPHKEY);
5469 DWORD RegCreateKey32A(HKEY,LPCSTR,LPHKEY);
5470 DWORD RegCreateKey32W(HKEY,LPCWSTR,LPHKEY);
5471 #define RegCreateKey WINELIB_NAME_AW(RegCreateKey)
5472 DWORD RegDeleteKey16(HKEY,LPCSTR);
5473 DWORD RegDeleteKey32A(HKEY,LPCSTR);
5474 DWORD RegDeleteKey32W(HKEY,LPWSTR);
5475 #define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey)
5476 DWORD RegDeleteValue16(HKEY,LPSTR);
5477 DWORD RegDeleteValue32A(HKEY,LPSTR);
5478 DWORD RegDeleteValue32W(HKEY,LPWSTR);
5479 #define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue)
5480 DWORD RegEnumKey16(HKEY,DWORD,LPSTR,DWORD);
5481 DWORD RegEnumKey32A(HKEY,DWORD,LPSTR,DWORD);
5482 DWORD RegEnumKey32W(HKEY,DWORD,LPWSTR,DWORD);
5483 #define RegEnumKey WINELIB_NAME_AW(RegEnumKey)
5484 DWORD RegEnumValue16(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
5485 DWORD RegEnumValue32A(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
5486 DWORD RegEnumValue32W(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
5487 #define RegEnumValue WINELIB_NAME_AW(RegEnumValue)
5488 ATOM RegisterClass16(const WNDCLASS16*);
5489 ATOM RegisterClass32A(const WNDCLASS32A *);
5490 ATOM RegisterClass32W(const WNDCLASS32W *);
5491 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
5492 ATOM RegisterClassEx16(const WNDCLASSEX16*);
5493 ATOM RegisterClassEx32A(const WNDCLASSEX32A *);
5494 ATOM RegisterClassEx32W(const WNDCLASSEX32W *);
5495 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
5496 UINT16 RegisterClipboardFormat16(LPCSTR);
5497 UINT32 RegisterClipboardFormat32A(LPCSTR);
5498 UINT32 RegisterClipboardFormat32W(LPCWSTR);
5499 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
5500 WORD RegisterWindowMessage16(SEGPTR);
5501 WORD RegisterWindowMessage32A(LPCSTR);
5502 WORD RegisterWindowMessage32W(LPCWSTR);
5503 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
5504 DWORD RegOpenKey16(HKEY,LPCSTR,LPHKEY);
5505 DWORD RegOpenKey32A(HKEY,LPCSTR,LPHKEY);
5506 DWORD RegOpenKey32W(HKEY,LPCWSTR,LPHKEY);
5507 #define RegOpenKey WINELIB_NAME_AW(RegOpenKey)
5508 DWORD RegQueryValue16(HKEY,LPSTR,LPSTR,LPDWORD);
5509 DWORD RegQueryValue32A(HKEY,LPSTR,LPSTR,LPDWORD);
5510 DWORD RegQueryValue32W(HKEY,LPWSTR,LPWSTR,LPDWORD);
5511 #define RegQueryValue WINELIB_NAME_AW(RegQueryValue)
5512 DWORD RegQueryValueEx16(HKEY,LPSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
5513 DWORD RegQueryValueEx32A(HKEY,LPSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
5514 DWORD RegQueryValueEx32W(HKEY,LPWSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
5515 #define RegQueryValueEx WINELIB_NAME_AW(RegQueryValueEx)
5516 DWORD RegSetValue16(HKEY,LPCSTR,DWORD,LPCSTR,DWORD);
5517 DWORD RegSetValue32A(HKEY,LPCSTR,DWORD,LPCSTR,DWORD);
5518 DWORD RegSetValue32W(HKEY,LPCWSTR,DWORD,LPCWSTR,DWORD);
5519 #define RegSetValue WINELIB_NAME_AW(RegSetValue)
5520 DWORD RegSetValueEx16(HKEY,LPSTR,DWORD,DWORD,LPBYTE,DWORD);
5521 DWORD RegSetValueEx32A(HKEY,LPSTR,DWORD,DWORD,LPBYTE,DWORD);
5522 DWORD RegSetValueEx32W(HKEY,LPWSTR,DWORD,DWORD,LPBYTE,DWORD);
5523 #define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
5524 INT16 ReleaseDC16(HWND16,HDC16);
5525 INT32 ReleaseDC32(HWND32,HDC32);
5526 #define ReleaseDC WINELIB_NAME(ReleaseDC)
5527 HANDLE16 RemoveProp16(HWND16,LPCSTR);
5528 HANDLE32 RemoveProp32A(HWND32,LPCSTR);
5529 HANDLE32 RemoveProp32W(HWND32,LPCWSTR);
5530 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
5531 BOOL16 RemoveDirectory16(LPCSTR);
5532 BOOL32 RemoveDirectory32A(LPCSTR);
5533 BOOL32 RemoveDirectory32W(LPCWSTR);
5534 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
5535 HDC16 ResetDC16(HDC16,const DEVMODE16 *);
5536 HDC32 ResetDC32A(HDC32,const DEVMODE32A *);
5537 HDC32 ResetDC32W(HDC32,const DEVMODE32W *);
5538 #define ResetDC WINELIB_NAME_AW(ResetDC)
5539 BOOL16 RestoreDC16(HDC16,INT16);
5540 BOOL32 RestoreDC32(HDC32,INT32);
5541 #define RestoreDC WINELIB_NAME(RestoreDC)
5542 BOOL16 RoundRect16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16);
5543 BOOL32 RoundRect32(HDC32,INT32,INT32,INT32,INT32,INT32,INT32);
5544 #define RoundRect WINELIB_NAME(RoundRect)
5545 INT16 SaveDC16(HDC16);
5546 INT32 SaveDC32(HDC32);
5547 #define SaveDC WINELIB_NAME(SaveDC)
5548 BOOL16 ScaleViewportExtEx16(HDC16,INT16,INT16,INT16,INT16,LPSIZE16);
5549 BOOL32 ScaleViewportExtEx32(HDC32,INT32,INT32,INT32,INT32,LPSIZE32);
5550 #define ScaleViewportExtEx WINELIB_NAME(ScaleViewportExtEx)
5551 BOOL16 ScaleWindowExtEx16(HDC16,INT16,INT16,INT16,INT16,LPSIZE16);
5552 BOOL32 ScaleWindowExtEx32(HDC32,INT32,INT32,INT32,INT32,LPSIZE32);
5553 #define ScaleWindowExtEx WINELIB_NAME(ScaleWindowExtEx)
5554 void ScreenToClient16(HWND16,LPPOINT16);
5555 void ScreenToClient32(HWND32,LPPOINT32);
5556 #define ScreenToClient WINELIB_NAME(ScreenToClient)
5557 BOOL16 ScrollDC16(HDC16,INT16,INT16,const RECT16*,const RECT16*,
5558 HRGN16,LPRECT16);
5559 BOOL32 ScrollDC32(HDC32,INT32,INT32,const RECT32*,const RECT32*,
5560 HRGN32,LPRECT32);
5561 #define ScrollDC WINELIB_NAME(ScrollDC)
5562 void ScrollWindow16(HWND16,INT16,INT16,const RECT16*,const RECT16*);
5563 BOOL32 ScrollWindow32(HWND32,INT32,INT32,const RECT32*,const RECT32*);
5564 #define ScrollWindow WINELIB_NAME(ScrollWindow)
5565 INT16 ScrollWindowEx16(HWND16,INT16,INT16,const RECT16*,const RECT16*,
5566 HRGN16,LPRECT16,UINT16);
5567 INT32 ScrollWindowEx32(HWND32,INT32,INT32,const RECT32*,const RECT32*,
5568 HRGN32,LPRECT32,UINT32);
5569 #define ScrollWindowEx WINELIB_NAME(ScrollWindowEx)
5570 INT16 SelectClipRgn16(HDC16,HRGN16);
5571 INT32 SelectClipRgn32(HDC32,HRGN32);
5572 #define SelectClipRgn WINELIB_NAME(SelectClipRgn)
5573 HGDIOBJ16 SelectObject16(HDC16,HGDIOBJ16);
5574 HGDIOBJ32 SelectObject32(HDC32,HGDIOBJ32);
5575 #define SelectObject WINELIB_NAME(SelectObject)
5576 LRESULT SendDlgItemMessage16(HWND16,INT16,UINT16,WPARAM16,LPARAM);
5577 LRESULT SendDlgItemMessage32A(HWND32,INT32,UINT32,WPARAM32,LPARAM);
5578 LRESULT SendDlgItemMessage32W(HWND32,INT32,UINT32,WPARAM32,LPARAM);
5579 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
5580 LRESULT SendMessage16(HWND16,UINT16,WPARAM16,LPARAM);
5581 LRESULT SendMessage32A(HWND32,UINT32,WPARAM32,LPARAM);
5582 LRESULT SendMessage32W(HWND32,UINT32,WPARAM32,LPARAM);
5583 #define SendMessage WINELIB_NAME_AW(SendMessage)
5584 BOOL16 SetBitmapDimensionEx16(HBITMAP16,INT16,INT16,LPSIZE16);
5585 BOOL32 SetBitmapDimensionEx32(HBITMAP32,INT32,INT32,LPSIZE32);
5586 #define SetBitmapDimensionEx WINELIB_NAME(SetBitmapDimensionEx)
5587 INT16 SetBkMode16(HDC16,INT16);
5588 INT32 SetBkMode32(HDC32,INT32);
5589 #define SetBkMode WINELIB_NAME(SetBkMode)
5590 HWND16 SetCapture16(HWND16);
5591 HWND32 SetCapture32(HWND32);
5592 #define SetCapture WINELIB_NAME(SetCapture)
5593 LONG SetClassLong16(HWND16,INT16,LONG);
5594 LONG SetClassLong32A(HWND32,INT32,LONG);
5595 LONG SetClassLong32W(HWND32,INT32,LONG);
5596 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
5597 INT16 SetCommBreak16(INT16);
5598 BOOL32 SetCommBreak32(INT32);
5599 #define SetCommBreak WINELIB_NAME(SetCommBreak)
5600 INT16 SetCommState16(LPDCB16);
5601 BOOL32 SetCommState32(INT32,LPDCB32);
5602 #define SetCommState WINELIB_NAME(SetCommState)
5603 BOOL16 SetDeskWallPaper16(LPCSTR);
5604 BOOL32 SetDeskWallPaper32(LPCSTR);
5605 #define SetDeskWallPaper WINELIB_NAME(SetDeskWallPaper)
5606 INT16 SetDIBits16(HDC16,HBITMAP16,UINT16,UINT16,LPCVOID,const BITMAPINFO*,UINT16);
5607 INT32 SetDIBits32(HDC32,HBITMAP32,UINT32,UINT32,LPCVOID,const BITMAPINFO*,UINT32);
5608 #define SetDIBits WINELIB_NAME(SetDIBits)
5609 INT16 SetDIBitsToDevice16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16,
5610 UINT16,UINT16,LPCVOID,const BITMAPINFO*,UINT16);
5611 INT32 SetDIBitsToDevice32(HDC32,INT32,INT32,DWORD,DWORD,INT32,INT32,
5612 UINT32,UINT32,LPCVOID,const BITMAPINFO*,UINT32);
5613 #define SetDIBitsToDevice WINELIB_NAME(SetDIBitsToDevice)
5614 void SetDlgItemInt16(HWND16,INT16,UINT16,BOOL16);
5615 void SetDlgItemInt32(HWND32,INT32,UINT32,BOOL32);
5616 #define SetDlgItemInt WINELIB_NAME(SetDlgItemInt)
5617 void SetDlgItemText16(HWND16,INT16,SEGPTR);
5618 void SetDlgItemText32A(HWND32,INT32,LPCSTR);
5619 void SetDlgItemText32W(HWND32,INT32,LPCWSTR);
5620 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
5621 BOOL32 SetEnvironmentVariable32A(LPCSTR,LPCSTR);
5622 BOOL32 SetEnvironmentVariable32W(LPCWSTR,LPCWSTR);
5623 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
5624 BOOL16 SetFileAttributes16(LPCSTR,DWORD);
5625 BOOL32 SetFileAttributes32A(LPCSTR,DWORD);
5626 BOOL32 SetFileAttributes32W(LPCWSTR,DWORD);
5627 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
5628 HWND16 SetFocus16(HWND16);
5629 HWND32 SetFocus32(HWND32);
5630 #define SetFocus WINELIB_NAME(SetFocus)
5631 UINT16 SetHandleCount16(UINT16);
5632 UINT32 SetHandleCount32(UINT32);
5633 #define SetHandleCount WINELIB_NAME(SetHandleCount)
5634 void SetInternalWindowPos16(HWND16,UINT16,LPRECT16,LPPOINT16);
5635 void SetInternalWindowPos32(HWND32,UINT32,LPRECT32,LPPOINT32);
5636 #define SetInternalWindowPos WINELIB_NAME(SetInternalWindowPos)
5637 INT16 SetMapMode16(HDC16,INT16);
5638 INT32 SetMapMode32(HDC32,INT32);
5639 #define SetMapMode WINELIB_NAME(SetMapMode)
5640 COLORREF SetPixel16(HDC16,INT16,INT16,COLORREF);
5641 COLORREF SetPixel32(HDC32,INT32,INT32,COLORREF);
5642 #define SetPixel WINELIB_NAME(SetPixel)
5643 INT16 SetPolyFillMode16(HDC16,INT16);
5644 INT32 SetPolyFillMode32(HDC32,INT32);
5645 #define SetPolyFillMode WINELIB_NAME(SetPolyFillMode)
5646 BOOL16 SetProp16(HWND16,LPCSTR,HANDLE16);
5647 BOOL32 SetProp32A(HWND32,LPCSTR,HANDLE32);
5648 BOOL32 SetProp32W(HWND32,LPCWSTR,HANDLE32);
5649 #define SetProp WINELIB_NAME_AW(SetProp)
5650 void SetRect16(LPRECT16,INT16,INT16,INT16,INT16);
5651 void SetRect32(LPRECT32,INT32,INT32,INT32,INT32);
5652 #define SetRect WINELIB_NAME(SetRect)
5653 void SetRectEmpty16(LPRECT16);
5654 void SetRectEmpty32(LPRECT32);
5655 #define SetRectEmpty WINELIB_NAME(SetRectEmpty)
5656 INT16 SetRelAbs16(HDC16,INT16);
5657 INT32 SetRelAbs32(HDC32,INT32);
5658 #define SetRelAbs WINELIB_NAME(SetRelAbs)
5659 INT16 SetROP216(HDC16,INT16);
5660 INT32 SetROP232(HDC32,INT32);
5661 #define SetROP2 WINELIB_NAME(SetROP2)
5662 INT16 SetScrollInfo16(HWND16,INT16,const SCROLLINFO*,BOOL16);
5663 INT32 SetScrollInfo32(HWND32,INT32,const SCROLLINFO*,BOOL32);
5664 #define SetScrollInfo WINELIB_NAME(SetScrollInfo)
5665 INT16 SetScrollPos16(HWND16,INT16,INT16,BOOL16);
5666 INT32 SetScrollPos32(HWND32,INT32,INT32,BOOL32);
5667 #define SetScrollPos WINELIB_NAME(SetScrollPos)
5668 void SetScrollRange16(HWND16,INT16,INT16,INT16,BOOL16);
5669 BOOL32 SetScrollRange32(HWND32,INT32,INT32,INT32,BOOL32);
5670 #define SetScrollRange WINELIB_NAME(SetScrollRange)
5671 INT16 SetStretchBltMode16(HDC16,INT16);
5672 INT32 SetStretchBltMode32(HDC32,INT32);
5673 #define SetStretchBltMode WINELIB_NAME(SetStretchBltMode)
5674 HWND16 SetSysModalWindow16(HWND16);
5675 #define SetSysModalWindow32(hwnd) ((HWND32)0)
5676 #define SetSysModalWindow WINELIB_NAME(SetSysModalWindow)
5677 UINT16 SetSystemTimer16(HWND16,UINT16,UINT16,TIMERPROC16);
5678 UINT32 SetSystemTimer32(HWND32,UINT32,UINT32,TIMERPROC32);
5679 #define SetSystemTimer WINELIB_NAME(SetSystemTimer)
5680 UINT16 SetTextAlign16(HDC16,UINT16);
5681 UINT32 SetTextAlign32(HDC32,UINT32);
5682 #define SetTextAlign WINELIB_NAME(SetTextAlign)
5683 INT16 SetTextCharacterExtra16(HDC16,INT16);
5684 INT32 SetTextCharacterExtra32(HDC32,INT32);
5685 #define SetTextCharacterExtra WINELIB_NAME(SetTextCharacterExtra)
5686 INT16 SetTextJustification16(HDC16,INT16,INT16);
5687 BOOL32 SetTextJustification32(HDC32,INT32,INT32);
5688 #define SetTextJustification WINELIB_NAME(SetTextJustification)
5689 UINT16 SetTimer16(HWND16,UINT16,UINT16,TIMERPROC16);
5690 UINT32 SetTimer32(HWND32,UINT32,UINT32,TIMERPROC32);
5691 #define SetTimer WINELIB_NAME(SetTimer)
5692 BOOL16 SetViewportExtEx16(HDC16,INT16,INT16,LPSIZE16);
5693 BOOL32 SetViewportExtEx32(HDC32,INT32,INT32,LPSIZE32);
5694 #define SetViewportExtEx WINELIB_NAME(SetViewportExtEx)
5695 BOOL16 SetViewportOrgEx16(HDC16,INT16,INT16,LPPOINT16);
5696 BOOL32 SetViewportOrgEx32(HDC32,INT32,INT32,LPPOINT32);
5697 #define SetViewportOrgEx WINELIB_NAME(SetViewportOrgEx)
5698 BOOL16 SetWindowExtEx16(HDC16,INT16,INT16,LPSIZE16);
5699 BOOL32 SetWindowExtEx32(HDC32,INT32,INT32,LPSIZE32);
5700 #define SetWindowExtEx WINELIB_NAME(SetWindowExtEx)
5701 LONG SetWindowLong16(HWND16,INT16,LONG);
5702 LONG SetWindowLong32A(HWND32,INT32,LONG);
5703 LONG SetWindowLong32W(HWND32,INT32,LONG);
5704 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
5705 BOOL16 SetWindowOrgEx16(HDC16,INT16,INT16,LPPOINT16);
5706 BOOL32 SetWindowOrgEx32(HDC32,INT32,INT32,LPPOINT32);
5707 #define SetWindowOrgEx WINELIB_NAME(SetWindowOrgEx)
5708 BOOL16 SetWindowPlacement16(HWND16,const WINDOWPLACEMENT16*);
5709 BOOL32 SetWindowPlacement32(HWND32,const WINDOWPLACEMENT32*);
5710 #define SetWindowPlacement WINELIB_NAME(SetWindowPlacement)
5711 FARPROC16 SetWindowsHook16(INT16,HOOKPROC16);
5712 HHOOK SetWindowsHook32A(INT32,HOOKPROC32);
5713 HHOOK SetWindowsHook32W(INT32,HOOKPROC32);
5714 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
5715 HHOOK SetWindowsHookEx16(INT16,HOOKPROC16,HINSTANCE16,HTASK16);
5716 HHOOK SetWindowsHookEx32A(INT32,HOOKPROC32,HINSTANCE32,DWORD);
5717 HHOOK SetWindowsHookEx32W(INT32,HOOKPROC32,HINSTANCE32,DWORD);
5718 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
5719 void SetWindowText16(HWND16,SEGPTR);
5720 void SetWindowText32A(HWND32,LPCSTR);
5721 void SetWindowText32W(HWND32,LPCWSTR);
5722 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
5723 void ShowScrollBar16(HWND16,INT16,BOOL16);
5724 BOOL32 ShowScrollBar32(HWND32,INT32,BOOL32);
5725 #define ShowScrollBar WINELIB_NAME(ShowScrollBar)
5726 BOOL16 StretchBlt16(HDC16,INT16,INT16,INT16,INT16,HDC16,INT16,INT16,
5727 INT16,INT16,DWORD);
5728 BOOL32 StretchBlt32(HDC32,INT32,INT32,INT32,INT32,HDC32,INT32,INT32,
5729 INT32,INT32,DWORD);
5730 #define StretchBlt WINELIB_NAME(StretchBlt)
5731 INT16 StretchDIBits16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16,INT16,INT16,const VOID*,const BITMAPINFO*,UINT16,DWORD);
5732 INT32 StretchDIBits32(HDC32,INT32,INT32,INT32,INT32,INT32,INT32,INT32,INT32,const VOID*,const BITMAPINFO*,UINT32,DWORD);
5733 #define StretchDIBits WINELIB_NAME(StretchDIBits)
5734 BOOL16 SubtractRect16(LPRECT16,const RECT16*,const RECT16*);
5735 BOOL32 SubtractRect32(LPRECT32,const RECT32*,const RECT32*);
5736 #define SubtractRect WINELIB_NAME(SubtractRect)
5737 BOOL16 SystemParametersInfo16(UINT16,UINT16,LPVOID,UINT16);
5738 BOOL32 SystemParametersInfo32A(UINT32,UINT32,LPVOID,UINT32);
5739 BOOL32 SystemParametersInfo32W(UINT32,UINT32,LPVOID,UINT32);
5740 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
5741 BOOL16 TextOut16(HDC16,INT16,INT16,LPCSTR,INT16);
5742 BOOL32 TextOut32A(HDC32,INT32,INT32,LPCSTR,INT32);
5743 BOOL32 TextOut32W(HDC32,INT32,INT32,LPCWSTR,INT32);
5744 #define TextOut WINELIB_NAME_AW(TextOut)
5745 BOOL16 TrackPopupMenu16(HMENU16,UINT16,INT16,INT16,INT16,HWND16,const RECT16*);
5746 BOOL32 TrackPopupMenu32(HMENU32,UINT32,INT32,INT32,INT32,HWND32,const RECT32*);
5747 #define TrackPopupMenu WINELIB_NAME(TrackPopupMenu)
5748 INT16 TransmitCommChar16(INT16,CHAR);
5749 BOOL32 TransmitCommChar32(INT32,CHAR);
5750 #define TransmitCommChar WINELIB_NAME(TransmitCommChar)
5751 BOOL16 UnhookWindowsHook16(INT16,HOOKPROC16);
5752 BOOL32 UnhookWindowsHook32(INT32,HOOKPROC32);
5753 #define UnhookWindowsHook WINELIB_NAME(UnhookWindowsHook)
5754 BOOL16 UnhookWindowsHookEx16(HHOOK);
5755 BOOL32 UnhookWindowsHookEx32(HHOOK);
5756 #define UnhookWindowsHookEx WINELIB_NAME(UnhookWindowsHookEx)
5757 BOOL16 UnionRect16(LPRECT16,const RECT16*,const RECT16*);
5758 BOOL32 UnionRect32(LPRECT32,const RECT32*,const RECT32*);
5759 #define UnionRect WINELIB_NAME(UnionRect)
5760 void UnlockSegment16(HGLOBAL16);
5761 #define UnlockSegment32(handle) GlobalUnfix((HANDLE32)(handle))
5762 #define UnlockSegment WINELIB_NAME(UnlockSegment)
5763 BOOL16 UnrealizeObject16(HGDIOBJ16);
5764 BOOL32 UnrealizeObject32(HGDIOBJ32);
5765 #define UnrealizeObject WINELIB_NAME(UnrealizeObject)
5766 BOOL16 UnregisterClass16(SEGPTR,HINSTANCE16);
5767 BOOL32 UnregisterClass32A(LPCSTR,HINSTANCE32);
5768 BOOL32 UnregisterClass32W(LPCWSTR,HINSTANCE32);
5769 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
5770 void ValidateRect16(HWND16,const RECT16*);
5771 void ValidateRect32(HWND32,const RECT32*);
5772 #define ValidateRect WINELIB_NAME(ValidateRect)
5773 DWORD VerFindFile16(UINT16,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16*,LPSTR,UINT16*);
5774 DWORD VerFindFile32A(UINT32,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT32*,LPSTR,UINT32*);
5775 DWORD VerFindFile32W(UINT32,LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT32*,LPWSTR,UINT32*);
5776 #define VerFindFile WINELIB_NAME_AW(VerFindFile)
5777 DWORD VerInstallFile16(UINT16,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16*);
5778 DWORD VerInstallFile32A(UINT32,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT32*);
5779 DWORD VerInstallFile32W(UINT32,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT32*);
5780 #define VerInstallFile WINELIB_NAME_AW(VerInstallFile)
5781 DWORD VerLanguageName16(UINT16,LPSTR,UINT16);
5782 DWORD VerLanguageName32A(UINT32,LPSTR,UINT32);
5783 DWORD VerLanguageName32W(UINT32,LPWSTR,UINT32);
5784 #define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
5785 DWORD VerQueryValue16(SEGPTR,LPCSTR,SEGPTR*,UINT16*);
5786 DWORD VerQueryValue32A(LPVOID,LPCSTR,LPVOID*,UINT32*);
5787 DWORD VerQueryValue32W(LPVOID,LPCWSTR,LPVOID*,UINT32*);
5788 #define VerQueryValue WINELIB_NAME_AW(VerQueryValue)
5789 HWND16 WindowFromDC16(HDC16);
5790 HWND32 WindowFromDC32(HDC32);
5791 #define WindowFromDC WINELIB_NAME(WindowFromDC)
5792 HWND16 WindowFromPoint16(POINT16);
5793 HWND32 WindowFromPoint32(POINT32);
5794 #define WindowFromPoint WINELIB_NAME(WindowFromPoint)
5795 BOOL16 WritePrivateProfileString16(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
5796 BOOL32 WritePrivateProfileString32A(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
5797 BOOL32 WritePrivateProfileString32W(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
5798 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
5799 BOOL16 WriteProfileString16(LPCSTR,LPCSTR,LPCSTR);
5800 BOOL32 WriteProfileString32A(LPCSTR,LPCSTR,LPCSTR);
5801 BOOL32 WriteProfileString32W(LPCWSTR,LPCWSTR,LPCWSTR);
5802 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
5803 SEGPTR lstrcat16(SEGPTR,SEGPTR);
5804 LPSTR lstrcat32A(LPSTR,LPCSTR);
5805 LPWSTR lstrcat32W(LPWSTR,LPCWSTR);
5806 #define lstrcat WINELIB_NAME_AW(lstrcat)
5807 SEGPTR lstrcatn16(SEGPTR,SEGPTR,INT16);
5808 LPSTR lstrcatn32A(LPSTR,LPCSTR,INT32);
5809 LPWSTR lstrcatn32W(LPWSTR,LPCWSTR,INT32);
5810 #define lstrcatn WINELIB_NAME_AW(lstrcatn)
5811 INT16 lstrcmp16(LPCSTR,LPCSTR);
5812 INT32 lstrcmp32A(LPCSTR,LPCSTR);
5813 INT32 lstrcmp32W(LPCWSTR,LPCWSTR);
5814 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
5815 INT16 lstrcmpi16(LPCSTR,LPCSTR);
5816 INT32 lstrcmpi32A(LPCSTR,LPCSTR);
5817 INT32 lstrcmpi32W(LPCWSTR,LPCWSTR);
5818 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
5819 SEGPTR lstrcpy16(SEGPTR,SEGPTR);
5820 LPSTR lstrcpy32A(LPSTR,LPCSTR);
5821 LPWSTR lstrcpy32W(LPWSTR,LPCWSTR);
5822 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
5823 SEGPTR lstrcpyn16(SEGPTR,SEGPTR,INT16);
5824 LPSTR lstrcpyn32A(LPSTR,LPCSTR,INT32);
5825 LPWSTR lstrcpyn32W(LPWSTR,LPCWSTR,INT32);
5826 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
5827 INT16 lstrlen16(LPCSTR);
5828 INT32 lstrlen32A(LPCSTR);
5829 INT32 lstrlen32W(LPCWSTR);
5830 #define lstrlen WINELIB_NAME_AW(lstrlen)
5831 INT16 wsnprintf16(LPSTR,UINT16,LPCSTR,...);
5832 INT32 wsnprintf32A(LPSTR,UINT32,LPCSTR,...);
5833 INT32 wsnprintf32W(LPWSTR,UINT32,LPCWSTR,...);
5834 #define wsnprintf WINELIB_NAME_AW(wsnprintf)
5835 INT16 wsprintf16(LPSTR,LPCSTR,...);
5836 INT32 wsprintf32A(LPSTR,LPCSTR,...);
5837 INT32 wsprintf32W(LPWSTR,LPCWSTR,...);
5838 #define wsprintf WINELIB_NAME_AW(wsprintf)
5839 INT16 wvsnprintf16(LPSTR,UINT16,LPCSTR,LPCVOID);
5840 INT32 wvsnprintf32A(LPSTR,UINT32,LPCSTR,LPCVOID);
5841 INT32 wvsnprintf32W(LPWSTR,UINT32,LPCWSTR,LPCVOID);
5842 #define wvsnprintf WINELIB_NAME_AW(wvsnprintf)
5843 INT16 wvsprintf16(LPSTR,LPCSTR,LPCVOID);
5844 INT32 wvsprintf32A(LPSTR,LPCSTR,LPCVOID);
5845 INT32 wvsprintf32W(LPWSTR,LPCWSTR,LPCVOID);
5846 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
5847 UINT16 _lread16(HFILE,LPVOID,UINT16);
5848 UINT32 _lread32(HFILE,LPVOID,UINT32);
5849 #define _lread WINELIB_NAME(_lread)
5850 UINT16 _lwrite16(HFILE,LPCSTR,UINT16);
5851 UINT32 _lwrite32(HFILE,LPCSTR,UINT32);
5852 #define _lwrite WINELIB_NAME(_lwrite)
5854 /* Extra functions that don't exist in the Windows API */
5856 INT32 LoadMessage32A(HINSTANCE32,UINT32,WORD,LPSTR,INT32);
5857 INT32 LoadMessage32W(HINSTANCE32,UINT32,WORD,LPWSTR,INT32);
5858 SEGPTR WIN16_GlobalLock16(HGLOBAL16);
5859 INT32 lstrncmp32A(LPCSTR,LPCSTR,INT32);
5860 INT32 lstrncmp32W(LPCWSTR,LPCWSTR,INT32);
5861 INT32 lstrncmpi32A(LPCSTR,LPCSTR,INT32);
5862 INT32 lstrncmpi32W(LPCWSTR,LPCWSTR,INT32);
5863 LPWSTR lstrcpyAtoW(LPWSTR,LPCSTR);
5864 LPSTR lstrcpyWtoA(LPSTR,LPCWSTR);
5865 LPWSTR lstrcpynAtoW(LPWSTR,LPCSTR,INT32);
5866 LPSTR lstrcpynWtoA(LPSTR,LPCWSTR,INT32);
5868 /* Library data types defined as a transition aid for the emulator. */
5869 /* These should _not_ be used in the emulator and will be removed someday. */
5871 #ifndef NO_TRANSITION_TYPES
5873 #ifdef __WINE__
5874 # ifdef WINELIB32
5875 typedef INT32 INT;
5876 typedef UINT32 UINT;
5877 typedef BOOL32 BOOL;
5878 typedef HANDLE32 HWND;
5879 # else /* WINELIB32 */
5880 typedef INT16 INT;
5881 typedef UINT16 UINT;
5882 typedef BOOL16 BOOL;
5883 typedef HANDLE16 HWND;
5884 # endif /* WINELIB32 */
5885 #endif /* __WINE__ */
5887 /* Callback function pointers types. */
5889 #ifdef WINELIB
5890 typedef LONG (*DRIVERPROC)(DWORD, HDRVR16, UINT, LPARAM, LPARAM);
5891 typedef int (*EDITWORDBREAKPROC)(LPSTR lpch, int ichCurrent, int cch,int code);
5892 #else
5893 typedef SEGPTR DRIVERPROC;
5894 typedef SEGPTR EDITWORDBREAKPROC;
5895 #endif
5897 ATOM AddAtom(SEGPTR);
5898 INT AddFontResource(LPCSTR);
5899 BOOL AnimatePalette(HPALETTE16,UINT,UINT,LPPALETTEENTRY);
5900 UINT AnsiLowerBuff(LPSTR,UINT);
5901 SEGPTR AnsiNext(SEGPTR);
5902 SEGPTR AnsiPrev(SEGPTR,SEGPTR);
5903 UINT AnsiUpperBuff(LPSTR,UINT);
5904 BOOL AnyPopup(void);
5905 UINT ArrangeIconicWindows(HWND);
5906 HDWP16 BeginDeferWindowPos(INT);
5907 BOOL BringWindowToTop(HWND);
5908 void CalcChildScroll(HWND,WORD);
5909 BOOL CallMsgFilter(SEGPTR,INT);
5910 BOOL ChangeClipboardChain(HWND,HWND);
5911 INT CheckMenuItem(HMENU16,UINT,UINT);
5912 BOOL CloseClipboard(void);
5913 void CloseSound(void);
5914 BOOL CloseWindow(HWND);
5915 int ConvertRequest(HWND,LPKANJISTRUCT);
5916 HMETAFILE16 CopyMetaFile(HMETAFILE16,LPCSTR);
5917 INT CountClipboardFormats(void);
5918 INT CountVoiceNotes(INT);
5919 HCURSOR16 CreateCursor(HINSTANCE16,INT,INT,INT,INT,const BYTE*,const BYTE*);
5920 HGLOBAL16 CreateCursorIconIndirect(HINSTANCE16,CURSORICONINFO*,const BYTE*,const BYTE*);
5921 HICON16 CreateIcon(HINSTANCE16,INT,INT,BYTE,BYTE,const BYTE*,const BYTE*);
5922 HMENU16 CreateMenu(void);
5923 HPALETTE16 CreatePalette(const LOGPALETTE*);
5924 HMENU16 CreatePopupMenu(void);
5925 HDWP16 DeferWindowPos(HDWP16,HWND,HWND,INT,INT,INT,INT,UINT);
5926 ATOM DeleteAtom(ATOM);
5927 BOOL DeleteMenu(HMENU16,UINT,UINT);
5928 BOOL DestroyCursor(HCURSOR16);
5929 BOOL DestroyIcon(HICON16);
5930 BOOL DestroyMenu(HMENU16);
5931 BOOL DestroyWindow(HWND);
5932 LONG DispatchMessage(const MSG16*);
5933 BOOL16 DragDetect(HWND16,POINT16);
5934 DWORD DragObject(HWND, HWND, WORD, HANDLE16, WORD, HCURSOR16);
5935 BOOL DrawIcon(HDC16,INT,INT,HICON16);
5936 void DrawMenuBar(HWND);
5937 DWORD DumpIcon(SEGPTR,WORD*,SEGPTR*,SEGPTR*);
5938 BOOL EmptyClipboard(void);
5939 BOOL EnableMenuItem(HMENU16,UINT,UINT);
5940 BOOL EnableWindow(HWND,BOOL);
5941 BOOL EndDeferWindowPos(HDWP16);
5942 UINT16 EnumClipboardFormats(UINT16);
5943 BOOL EnumMetaFile(HDC16,HMETAFILE16,MFENUMPROC16,LPARAM);
5944 INT Escape(HDC16,INT,INT,SEGPTR,SEGPTR);
5945 BOOL ExitWindows(DWORD,WORD);
5946 HICON16 ExtractIcon(HINSTANCE16,LPCSTR,WORD);
5947 void FatalAppExit(UINT,LPCSTR);
5948 void FatalExit(int);
5949 ATOM FindAtom(SEGPTR);
5950 HINSTANCE16 FindExecutable(LPCSTR,LPCSTR,LPSTR);
5951 BOOL FlashWindow(HWND,BOOL);
5952 void FreeLibrary(HINSTANCE16);
5953 UINT GDIRealizePalette(HDC16);
5954 HPALETTE16 GDISelectPalette(HDC16,HPALETTE16,WORD);
5955 HWND GetActiveWindow(void);
5956 DWORD GetAspectRatioFilter(HDC16);
5957 int GetAsyncKeyState(int);
5958 WORD GetAtomName(ATOM,LPSTR,short);
5959 HANDLE16 GetClipboardData(WORD);
5960 int GetClipboardFormatName(WORD,LPSTR,short);
5961 HWND GetClipboardOwner(void);
5962 HWND GetClipboardViewer(void);
5963 HBRUSH16 GetControlBrush(HWND,HDC16,WORD);
5964 DWORD GetCurrentTime(void);
5965 HCURSOR16 GetCursor(void);
5966 SEGPTR GetDOSEnvironment(void);
5967 int GetDeviceCaps(HDC16,WORD);
5968 DWORD GetDialogBaseUnits(void);
5969 HWND GetDlgItem(HWND,WORD);
5970 WORD GetDlgItemInt(HWND,WORD,BOOL*,BOOL);
5971 WORD GetDoubleClickTime(void);
5972 int GetEnvironment(LPSTR,LPSTR,WORD);
5973 DWORD GetFreeSpace(UINT16);
5974 DWORD GetHeapSpaces(HMODULE16);
5975 BOOL GetInputState(void);
5976 int GetKBCodePage(void);
5977 int GetKerningPairs(HDC16,int,LPKERNINGPAIR16);
5978 INT GetKeyState(INT);
5979 void GetKeyboardState(BYTE*);
5980 int GetKeyboardType(int);
5981 HWND GetLastActivePopup(HWND);
5982 HMENU16 GetMenu(HWND);
5983 DWORD GetMenuCheckMarkDimensions(void);
5984 INT GetMenuItemCount(HMENU16);
5985 UINT GetMenuItemID(HMENU16,int);
5986 UINT GetMenuState(HMENU16,UINT,UINT);
5987 int GetMenuString(HMENU16,UINT,LPSTR,short,UINT);
5988 BOOL GetMessage(SEGPTR,HWND,UINT,UINT);
5989 LONG GetMessageExtraInfo(void);
5990 DWORD GetMessagePos(void);
5991 LONG GetMessageTime(void);
5992 HMETAFILE16 GetMetaFile(LPSTR);
5993 HGLOBAL16 GetMetaFileBits(HMETAFILE16);
5994 HMODULE16 GetModuleHandle(LPCSTR);
5995 INT16 GetModuleUsage(HINSTANCE16);
5996 DWORD GetNearestColor(HDC16,DWORD);
5997 WORD GetNearestPaletteIndex(HPALETTE16,DWORD);
5998 HWND GetNextWindow(HWND,WORD);
5999 HWND GetOpenClipboardWindow(void);
6000 WORD GetPaletteEntries(HPALETTE16,WORD,WORD,LPPALETTEENTRY);
6001 int GetPriorityClipboardFormat(WORD*,short);
6002 DWORD GetQueueStatus(UINT);
6003 BOOL GetRasterizerCaps(LPRASTERIZER_STATUS,UINT);
6004 HMENU16 GetSubMenu(HMENU16,short);
6005 HMENU16 GetSystemMenu(HWND,BOOL);
6006 int GetSystemMetrics(WORD);
6007 WORD GetSystemPaletteEntries(HDC16,WORD,WORD,LPPALETTEENTRY);
6008 WORD GetSystemPaletteUse(HDC16);
6009 DWORD GetTabbedTextExtent(HDC16,LPSTR,int,int,LPINT16);
6010 BYTE GetTempDrive(BYTE);
6011 LPINT16 GetThresholdEvent(void);
6012 int GetThresholdStatus(void);
6013 HWND GetTopWindow(HWND);
6014 BOOL GetWinDebugInfo(LPWINDEBUGINFO,UINT);
6015 LONG GetWinFlags(void);
6016 HWND GetWindow(HWND,WORD);
6017 ATOM GlobalDeleteAtom(ATOM);
6018 void GlobalFix(HGLOBAL16);
6019 BOOL16 GlobalUnWire(HGLOBAL16);
6020 void GlobalUnfix(HGLOBAL16);
6021 SEGPTR GlobalWire(HGLOBAL16);
6022 BOOL GrayString(HDC16,HBRUSH16,GRAYSTRINGPROC16,LPARAM,INT,INT,INT,INT,INT);
6023 BOOL HiliteMenuItem(HWND,HMENU16,UINT,UINT);
6024 BOOL InSendMessage(void);
6025 WORD InitAtomTable(WORD);
6026 void InvalidateRgn(HWND32,HRGN32,BOOL32);
6027 BOOL IsChild(HWND,HWND);
6028 BOOL IsClipboardFormatAvailable(WORD);
6029 BOOL IsDialogMessage(HWND,LPMSG16);
6030 WORD IsDlgButtonChecked(HWND,WORD);
6031 BOOL IsIconic(HWND);
6032 BOOL IsMenu(HMENU16);
6033 BOOL IsValidMetaFile(HMETAFILE16);
6034 BOOL IsWindowEnabled(HWND);
6035 BOOL IsWindowVisible(HWND);
6036 BOOL IsZoomed(HWND);
6037 HINSTANCE16 LoadModule(LPCSTR,LPVOID);
6038 FARPROC16 LocalNotify(FARPROC16);
6039 HMENU16 LookupMenuHandle(HMENU16,INT);
6040 WORD MapVirtualKey(WORD,WORD);
6041 void MessageBeep(WORD);
6042 BOOL MoveWindow(HWND,short,short,short,short,BOOL);
6043 DWORD OemKeyScan(WORD);
6044 BOOL OpenClipboard(HWND);
6045 BOOL OpenIcon(HWND);
6046 int OpenSound(void);
6047 void OutputDebugString(LPCSTR);
6048 BOOL PlayMetaFile(HDC16,HMETAFILE16);
6049 void PlayMetaFileRecord(HDC16,LPHANDLETABLE16,LPMETARECORD,WORD);
6050 BOOL PostMessage(HWND,WORD,WORD,LONG);
6051 void PostQuitMessage(INT);
6052 void ProfClear(void);
6053 void ProfFinish(void);
6054 void ProfFlush(void);
6055 int ProfInsChk(void);
6056 void ProfSampRate(int,int);
6057 void ProfSetup(int,int);
6058 void ProfStart(void);
6059 void ProfStop(void);
6060 WORD RealizeDefaultPalette(HDC16);
6061 BOOL RemoveFontResource(LPSTR);
6062 BOOL RemoveMenu(HMENU16,UINT,UINT);
6063 void ReplyMessage(LRESULT);
6064 BOOL ResizePalette(HPALETTE16,UINT);
6065 void ScrollChildren(HWND,UINT,WPARAM16,LPARAM);
6066 HPALETTE16 SelectPalette(HDC16,HPALETTE16,BOOL);
6067 HWND SetActiveWindow(HWND);
6068 HANDLE16 SetClipboardData(WORD,HANDLE16);
6069 HWND SetClipboardViewer(HWND);
6070 void SetConvertHook(BOOL);
6071 BOOL SetConvertParams(int,int);
6072 BOOL32 SetCurrentDirectory(LPCSTR);
6073 HCURSOR16 SetCursor(HCURSOR16);
6074 void SetCursorPos(short,short);
6075 void SetDoubleClickTime(WORD);
6076 int SetEnvironment(LPCSTR,LPCSTR,WORD);
6077 UINT SetErrorMode(UINT);
6078 WORD SetHookFlags(HDC16,WORD);
6079 void SetKeyboardState(BYTE*);
6080 DWORD SetMapperFlags(HDC16,DWORD);
6081 BOOL SetMenu(HWND,HMENU16);
6082 BOOL SetMenuItemBitmaps(HMENU16,UINT,UINT,HBITMAP16,HBITMAP16);
6083 BOOL SetMessageQueue(int);
6084 HMETAFILE16 SetMetaFileBits(HGLOBAL16);
6085 WORD SetPaletteEntries(HPALETTE16,WORD,WORD,LPPALETTEENTRY);
6086 HWND SetParent(HWND,HWND);
6087 FARPROC16 SetResourceHandler(HINSTANCE16,LPSTR,FARPROC16);
6088 int SetSoundNoise(int,int);
6089 LONG SetSwapAreaSize(WORD);
6090 void SetSysColors(int,LPINT16,COLORREF*);
6091 WORD SetSystemPaletteUse(HDC16,WORD);
6092 int SetVoiceAccent(int,int,int,int,int);
6093 int SetVoiceEnvelope(int,int,int);
6094 int SetVoiceNote(int,int,int,int);
6095 int SetVoiceQueueSize(int,int);
6096 int SetVoiceSound(int,LONG,int);
6097 int SetVoiceThreshold(int,int);
6098 BOOL SetWinDebugInfo(LPWINDEBUGINFO);
6099 BOOL SetWindowPos(HWND,HWND,INT,INT,INT,INT,WORD);
6100 HINSTANCE16 ShellExecute(HWND,LPCSTR,LPCSTR,LPSTR,LPCSTR,INT);
6101 int ShowCursor(BOOL);
6102 void ShowOwnedPopups(HWND,BOOL);
6103 BOOL ShowWindow(HWND,int);
6104 DWORD SizeofResource(HMODULE16,HRSRC16);
6105 int StartSound(void);
6106 int StopSound(void);
6107 BOOL SwapMouseButton(BOOL);
6108 void SwapRecording(WORD);
6109 int SyncAllVoices(void);
6110 LONG TabbedTextOut(HDC16,short,short,LPSTR,short,short,LPINT16,short);
6111 int ToAscii(WORD,WORD,LPSTR,LPVOID,WORD);
6112 INT16 TranslateAccelerator(HWND,HACCEL16,LPMSG16);
6113 BOOL TranslateMDISysAccel(HWND,LPMSG16);
6114 BOOL TranslateMessage(LPMSG16);
6115 int UpdateColors(HDC16);
6116 void ValidateCodeSegments(void);
6117 LPSTR ValidateFreeSpaces(void);
6118 void ValidateRgn(HWND32,HRGN32);
6119 WORD VkKeyScan(WORD);
6120 SEGPTR WIN16_LockResource(HGLOBAL16);
6121 void WaitMessage(void);
6122 int WaitSoundState(int);
6123 HINSTANCE16 WinExec(LPSTR,WORD);
6124 BOOL WinHelp(HWND,LPSTR,WORD,DWORD);
6126 #endif /* NO_TRANSITION_TYPES */
6128 #define WINELIB_UNIMP(x) fprintf (stderr, "WineLib: Unimplemented %s\n", x)
6130 #ifdef __cplusplus
6132 #endif
6134 #endif /* __WINE_WINDOWS_H */