2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 /* Define a bunch of callback types */
32 #if defined(STRICT) || defined(__WINE__)
33 typedef BOOL (CALLBACK
*DLGPROC
)(HWND
,UINT
,WPARAM
,LPARAM
);
34 typedef BOOL (CALLBACK
*DRAWSTATEPROC
)(HDC
,LPARAM
,WPARAM
,int,int);
35 typedef INT (CALLBACK
*EDITWORDBREAKPROCA
)(LPSTR
,INT
,INT
,INT
);
36 typedef INT (CALLBACK
*EDITWORDBREAKPROCW
)(LPWSTR
,INT
,INT
,INT
);
37 typedef BOOL (CALLBACK
*GRAYSTRINGPROC
)(HDC
,LPARAM
,INT
);
38 typedef LRESULT (CALLBACK
*HOOKPROC
)(INT
,WPARAM
,LPARAM
);
39 typedef BOOL (CALLBACK
*NAMEENUMPROCA
)(LPSTR
,LPARAM
);
40 typedef BOOL (CALLBACK
*NAMEENUMPROCW
)(LPWSTR
,LPARAM
);
41 typedef BOOL (CALLBACK
*PROPENUMPROCA
)(HWND
,LPCSTR
,HANDLE
);
42 typedef BOOL (CALLBACK
*PROPENUMPROCW
)(HWND
,LPCWSTR
,HANDLE
);
43 typedef BOOL (CALLBACK
*PROPENUMPROCEXA
)(HWND
,LPCSTR
,HANDLE
,ULONG_PTR
);
44 typedef BOOL (CALLBACK
*PROPENUMPROCEXW
)(HWND
,LPCWSTR
,HANDLE
,ULONG_PTR
);
45 typedef VOID (CALLBACK
*SENDASYNCPROC
)(HWND
,UINT
,ULONG_PTR
,LRESULT
);
46 typedef VOID (CALLBACK
*TIMERPROC
)(HWND
,UINT
,UINT
,DWORD
);
47 typedef BOOL (CALLBACK
*WNDENUMPROC
)(HWND
,LPARAM
);
49 typedef FARPROC DLGPROC
;
50 typedef FARPROC DRAWSTATEPROC
;
51 typedef FARPROC EDITWORDBREAKPROCA
;
52 typedef FARPROC EDITWORDBREAKPROCW
;
53 typedef FARPROC GRAYSTRINGPROC
;
54 typedef FARPROC HOOKPROC
;
55 typedef FARPROC NAMEENUMPROCA
;
56 typedef FARPROC NAMEENUMPROCW
;
57 typedef FARPROC PROPENUMPROCA
;
58 typedef FARPROC PROPENUMPROCW
;
59 typedef FARPROC PROPENUMPROCEXA
;
60 typedef FARPROC PROPENUMPROCEXW
;
61 typedef FARPROC SENDASYNCPROC
;
62 typedef FARPROC TIMERPROC
;
63 typedef FARPROC WNDENUMPROC
;
64 #endif /* STRICT || __WINE__ */
66 typedef NAMEENUMPROCA WINSTAENUMPROCA
;
67 typedef NAMEENUMPROCA DESKTOPENUMPROCA
;
68 typedef NAMEENUMPROCW WINSTAENUMPROCW
;
69 typedef NAMEENUMPROCW DESKTOPENUMPROCW
;
71 typedef LRESULT (CALLBACK
*WNDPROC
)(HWND
,UINT
,WPARAM
,LPARAM
);
73 DECL_WINELIB_TYPE_AW(DESKTOPENUMPROC
)
74 DECL_WINELIB_TYPE_AW(EDITWORDBREAKPROC
)
75 DECL_WINELIB_TYPE_AW(NAMEENUMPROC
)
76 DECL_WINELIB_TYPE_AW(PROPENUMPROC
)
77 DECL_WINELIB_TYPE_AW(PROPENUMPROCEX
)
78 DECL_WINELIB_TYPE_AW(WINSTAENUMPROC
)
83 /* flags for FILTERKEYS dwFlags field */
84 #define FKF_AVAILABLE 0x00000002
85 #define FKF_CLICKON 0x00000040
86 #define FKF_FILTERKEYSON 0x00000001
87 #define FKF_HOTKEYACTIVE 0x00000004
88 #define FKF_HOTKEYSOUND 0x00000010
89 #define FKF_CONFIRMHOTKEY 0x00000008
90 #define FKF_INDICATOR 0x00000020
92 typedef struct tagFILTERKEYS
100 } FILTERKEYS
, *PFILTERKEYS
, *LPFILTERKEYS
;
102 /* flags for TOGGLEKEYS dwFlags field */
103 #define TKF_AVAILABLE 0x00000002
104 #define TKF_CONFIRMHOTKEY 0x00000008
105 #define TKF_HOTKEYACTIVE 0x00000004
106 #define TKF_HOTKEYSOUND 0x00000010
107 #define TKF_TOGGLEKEYSON 0x00000001
109 typedef struct tagTOGGLEKEYS
113 } TOGGLEKEYS
, *PTOGGLEKEYS
, *LPTOGGLEKEYS
;
115 /* flags for MOUSEKEYS dwFlags field */
116 #define MKF_AVAILABLE 0x00000002
117 #define MKF_CONFIRMHOTKEY 0x00000008
118 #define MKF_HOTKEYACTIVE 0x00000004
119 #define MKF_HOTKEYSOUND 0x00000010
120 #define MKF_INDICATOR 0x00000020
121 #define MKF_MOUSEKEYSON 0x00000001
122 #define MKF_MODIFIERS 0x00000040
123 #define MKF_REPLACENUMBERS 0x00000080
125 typedef struct tagMOUSEKEYS
130 DWORD iTimeToMaxSpeed
;
134 } MOUSEKEYS
, *PMOUSEKEYS
, *LPMOUSEKEYS
;
136 /* flags for STICKYKEYS dwFlags field */
137 #define SKF_AUDIBLEFEEDBACK 0x00000040
138 #define SKF_AVAILABLE 0x00000002
139 #define SKF_CONFIRMHOTKEY 0x00000008
140 #define SKF_HOTKEYACTIVE 0x00000004
141 #define SKF_HOTKEYSOUND 0x00000010
142 #define SKF_INDICATOR 0x00000020
143 #define SKF_STICKYKEYSON 0x00000001
144 #define SKF_TRISTATE 0x00000080
145 #define SKF_TWOKEYSOFF 0x00000100
147 typedef struct tagSTICKYKEYS
151 } STICKYKEYS
, *PSTICKYKEYS
, *LPSTICKYKEYS
;
153 /* flags for ACCESSTIMEOUT dwFlags field */
154 #define ATF_ONOFFFEEDBACK 0x00000002
155 #define ATF_AVAILABLE 0x00000004
156 #define ATF_TIMEOUTON 0x00000001
158 typedef struct tagACCESSTIMEOUT
163 } ACCESSTIMEOUT
, *PACCESSTIMEOUT
, *LPACCESSTIMEOUT
;
165 /* flags for SERIALKEYS dwFlags field */
166 #define SERKF_ACTIVE 0x00000008
167 #define SERKF_AVAILABLE 0x00000002
168 #define SERKF_INDICATOR 0x00000004
169 #define SERKF_SERIALKEYSON 0x00000001
171 typedef struct tagSERIALKEYSA
175 LPSTR lpszActivePort
;
180 } SERIALKEYSA
, *LPSERIALKEYSA
;
182 typedef struct tagSERIALKEYSW
{
185 LPWSTR lpszActivePort
;
190 } SERIALKEYSW
,*LPSERIALKEYSW
;
192 DECL_WINELIB_TYPE_AW(SERIALKEYS
)
193 DECL_WINELIB_TYPE_AW(LPSERIALKEYS
)
195 /* flags for SOUNDSENTRY dwFlags field */
196 #define SSF_AVAILABLE 0x00000002
197 #define SSF_SOUNDSENTRYON 0x00000001
199 #define SSTF_BORDER 0x00000002
200 #define SSTF_CHARS 0x00000001
201 #define SSTF_DISPLAY 0x00000003
202 #define SSTF_NONE 0x00000000
204 #define SSGF_DISPLAY 0x00000003
205 #define SSGF_NONE 0x00000000
207 #define SSWF_DISPLAY 0x00000003
208 #define SSWF_NONE 0x00000000
209 #define SSWF_TITLE 0x00000001
210 #define SSWF_WINDOW 0x00000002
212 typedef struct tagSOUNDSENTRYA
217 DWORD iFSTextEffectMSec
;
218 DWORD iFSTextEffectColorBits
;
220 DWORD iFSGrafEffectMSec
;
221 DWORD iFSGrafEffectColor
;
222 DWORD iWindowsEffect
;
223 DWORD iWindowsEffectMSec
;
224 LPSTR lpszWindowsEffectDLL
;
225 DWORD iWindowsEffectOrdinal
;
226 } SOUNDSENTRYA
, *LPSOUNDSENTRYA
;
228 typedef struct tagSOUNDSENTRYW
233 DWORD iFSTextEffectMSec
;
234 DWORD iFSTextEffectColorBits
;
236 DWORD iFSGrafEffectMSec
;
237 DWORD iFSGrafEffectColor
;
238 DWORD iWindowsEffect
;
239 DWORD iWindowsEffectMSec
;
240 LPWSTR lpszWindowsEffectDLL
;
241 DWORD iWindowsEffectOrdinal
;
242 } SOUNDSENTRYW
, *LPSOUNDSENTRYW
;
244 DECL_WINELIB_TYPE_AW(SOUNDSENTRY
)
245 DECL_WINELIB_TYPE_AW(LPSOUNDSENTRY
)
247 /* flags for HIGHCONTRAST dwFlags field */
248 #define HCF_HIGHCONTRASTON 0x00000001
249 #define HCF_AVAILABLE 0x00000002
250 #define HCF_HOTKEYACTIVE 0x00000004
251 #define HCF_CONFIRMHOTKEY 0x00000008
252 #define HCF_HOTKEYSOUND 0x00000010
253 #define HCF_INDICATOR 0x00000020
254 #define HCF_HOTKEYAVAILABLE 0x00000040
256 typedef struct tagHIGHCONTRASTA
260 LPSTR lpszDefaultScheme
;
261 } HIGHCONTRASTA
, *LPHIGHCONTRASTA
;
263 typedef struct tagHIGHCONTRASTW
267 LPWSTR lpszDefaultScheme
;
268 } HIGHCONTRASTW
, *LPHIGHCONTRASTW
;
270 DECL_WINELIB_TYPE_AW(HIGHCONTRAST
)
271 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST
)
280 } EVENTMSG
, *PEVENTMSG
, *LPEVENTMSG
;
282 /* WH_KEYBOARD_LL structure */
283 typedef struct tagKBDLLHOOKSTRUCT
289 ULONG_PTR dwExtraInfo
;
290 } KBDLLHOOKSTRUCT
, *LPKBDLLHOOKSTRUCT
, *PKBDLLHOOKSTRUCT
;
292 #define LLKHF_EXTENDED (KF_EXTENDED >> 8)
293 #define LLKHF_INJECTED 0x00000010
294 #define LLKHF_ALTDOWN (KF_ALTDOWN >> 8)
295 #define LLKHF_UP (KF_UP >> 8)
297 /* WH_MOUSE_LL structure */
298 typedef struct tagMSLLHOOKSTRUCT
304 ULONG_PTR dwExtraInfo
;
305 } MSLLHOOKSTRUCT
, *LPMSLLHOOKSTRUCT
, *PMSLLHOOKSTRUCT
;
307 #define LLMHF_INJECTED 0x00000001
309 /* Mouse hook structure */
317 } MOUSEHOOKSTRUCT
, *PMOUSEHOOKSTRUCT
, *LPMOUSEHOOKSTRUCT
;
320 /* Hardware hook structure */
328 } HARDWAREHOOKSTRUCT
, *PHARDWAREHOOKSTRUCT
, *LPHARDWAREHOOKSTRUCT
;
331 /* Debug hook structure */
336 DWORD idThreadInstaller
;
340 } DEBUGHOOKINFO
, *PDEBUGHOOKINFO
, *LPDEBUGHOOKINFO
;
345 #define KLF_ACTIVATE 0x00000001
346 #define KLF_SUBSTITUTE_OK 0x00000002
347 #define KLF_UNLOADPREVIOUS 0x00000004
348 #define KLF_REORDER 0x00000008
349 #define KLF_REPLACELANG 0x00000010
350 #define KLF_NOTELLSHELL 0x00000080
352 #define KL_NAMELENGTH 9
354 typedef struct tagMOUSEINPUT
361 ULONG_PTR dwExtraInfo
;
362 } MOUSEINPUT
, *PMOUSEINPUT
, *LPMOUSEINPUT
;
364 typedef struct tagKEYBDINPUT
370 ULONG_PTR dwExtraInfo
;
371 } KEYBDINPUT
, *PKEYBDINPUT
, *LPKEYBDINPUT
;
373 typedef struct tagHARDWAREINPUT
378 } HARDWAREINPUT
, *PHARDWAREINPUT
, *LPHARDWAREINPUT
;
380 #define INPUT_MOUSE 0
381 #define INPUT_KEYBOARD 1
382 #define INPUT_HARDWARE 2
384 typedef struct tagINPUT
393 } INPUT
, *PINPUT
, *LPINPUT
;
396 /***** Dialogs *****/
398 /* Gcc on Solaris has a version of this that we don't care about */
401 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
402 #define FNOINVERT 0x02
404 #define FCONTROL 0x08
408 typedef struct tagANIMATIONINFO
412 } ANIMATIONINFO
, *LPANIMATIONINFO
;
414 typedef struct tagNMHDR
428 } DRAWTEXTPARAMS
,*LPDRAWTEXTPARAMS
;
430 #define WM_USER 0x0400
432 #define DT_EDITCONTROL 0x00002000
433 #define DT_PATH_ELLIPSIS 0x00004000
434 #define DT_END_ELLIPSIS 0x00008000
435 #define DT_MODIFYSTRING 0x00010000
436 #define DT_RTLREADING 0x00020000
437 #define DT_WORD_ELLIPSIS 0x00040000
445 } CWPSTRUCT
, *PCWPSTRUCT
, *LPCWPSTRUCT
;
454 } CWPRETSTRUCT
, *PCWPRETSTRUCT
, *LPCWPRETSTRUCT
;
461 POINT ptMinPosition WINE_PACKED
;
462 POINT ptMaxPosition WINE_PACKED
;
463 RECT rcNormalPosition WINE_PACKED
;
464 } WINDOWPLACEMENT
, *PWINDOWPLACEMENT
, *LPWINDOWPLACEMENT
;
467 /* WINDOWPLACEMENT flags */
468 #define WPF_SETMINPOSITION 0x0001
469 #define WPF_RESTORETOMAXIMIZED 0x0002
471 /***** Dialogs *****/
473 #define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
474 #define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
475 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
477 /* Predefined resource types */
478 #define RT_CURSORA MAKEINTRESOURCEA(1)
479 #define RT_CURSORW MAKEINTRESOURCEW(1)
480 #define RT_CURSOR WINELIB_NAME_AW(RT_CURSOR)
481 #define RT_BITMAPA MAKEINTRESOURCEA(2)
482 #define RT_BITMAPW MAKEINTRESOURCEW(2)
483 #define RT_BITMAP WINELIB_NAME_AW(RT_BITMAP)
484 #define RT_ICONA MAKEINTRESOURCEA(3)
485 #define RT_ICONW MAKEINTRESOURCEW(3)
486 #define RT_ICON WINELIB_NAME_AW(RT_ICON)
487 #define RT_MENUA MAKEINTRESOURCEA(4)
488 #define RT_MENUW MAKEINTRESOURCEW(4)
489 #define RT_MENU WINELIB_NAME_AW(RT_MENU)
490 #define RT_DIALOGA MAKEINTRESOURCEA(5)
491 #define RT_DIALOGW MAKEINTRESOURCEW(5)
492 #define RT_DIALOG WINELIB_NAME_AW(RT_DIALOG)
493 #define RT_STRINGA MAKEINTRESOURCEA(6)
494 #define RT_STRINGW MAKEINTRESOURCEW(6)
495 #define RT_STRING WINELIB_NAME_AW(RT_STRING)
496 #define RT_FONTDIRA MAKEINTRESOURCEA(7)
497 #define RT_FONTDIRW MAKEINTRESOURCEW(7)
498 #define RT_FONTDIR WINELIB_NAME_AW(RT_FONTDIR)
499 #define RT_FONTA MAKEINTRESOURCEA(8)
500 #define RT_FONTW MAKEINTRESOURCEW(8)
501 #define RT_FONT WINELIB_NAME_AW(RT_FONT)
502 #define RT_ACCELERATORA MAKEINTRESOURCEA(9)
503 #define RT_ACCELERATORW MAKEINTRESOURCEW(9)
504 #define RT_ACCELERATOR WINELIB_NAME_AW(RT_ACCELERATOR)
505 #define RT_RCDATAA MAKEINTRESOURCEA(10)
506 #define RT_RCDATAW MAKEINTRESOURCEW(10)
507 #define RT_RCDATA WINELIB_NAME_AW(RT_RCDATA)
508 #define RT_MESSAGETABLEA MAKEINTRESOURCEA(11)
509 #define RT_MESSAGETABLEW MAKEINTRESOURCEW(11)
510 #define RT_MESSAGETABLE WINELIB_NAME_AW(RT_MESSAGETABLE)
511 #define RT_GROUP_CURSORA MAKEINTRESOURCEA(12)
512 #define RT_GROUP_CURSORW MAKEINTRESOURCEW(12)
513 #define RT_GROUP_CURSOR WINELIB_NAME_AW(RT_GROUP_CURSOR)
514 #define RT_GROUP_ICONA MAKEINTRESOURCEA(14)
515 #define RT_GROUP_ICONW MAKEINTRESOURCEW(14)
516 #define RT_GROUP_ICON WINELIB_NAME_AW(RT_GROUP_ICON)
517 #define RT_VERSIONA MAKEINTRESOURCEA(16)
518 #define RT_VERSIONW MAKEINTRESOURCEW(16)
519 #define RT_VERSION WINELIB_NAME_AW(RT_VERSION)
520 #define RT_DLGINCLUDEA MAKEINTRESOURCEA(17)
521 #define RT_DLGINCLUDEW MAKEINTRESOURCEW(17)
522 #define RT_DLGINCLUDE WINELIB_NAME_AW(RT_DLGINCLUDE)
523 #define RT_PLUGPLAYA MAKEINTRESOURCEA(19)
524 #define RT_PLUGPLAYW MAKEINTRESOURCEW(19)
525 #define RT_PLUGPLAY WINELIB_NAME_AW(RT_PLUGPLAY)
526 #define RT_VXDA MAKEINTRESOURCEA(20)
527 #define RT_VXDW MAKEINTRESOURCEW(20)
528 #define RT_VXD WINELIB_NAME_AW(RT_VXD)
529 #define RT_ANICURSORA MAKEINTRESOURCEA(21)
530 #define RT_ANICURSORW MAKEINTRESOURCEW(21)
531 #define RT_ANICURSOR WINELIB_NAME_AW(RT_ANICURSOR)
532 #define RT_ANIICONA MAKEINTRESOURCEA(22)
533 #define RT_ANIICONW MAKEINTRESOURCEW(22)
534 #define RT_ANIICON WINELIB_NAME_AW(RT_ANIICON)
535 #define RT_HTMLA MAKEINTRESOURCEA(23)
536 #define RT_HTMLW MAKEINTRESOURCEW(23)
537 #define RT_HTML WINELIB_NAME_AW(RT_HTML)
540 /* cbWndExtra bytes for dialog class */
541 #define DLGWINDOWEXTRA 30
543 /* Button control styles */
544 #define BS_PUSHBUTTON 0x00000000L
545 #define BS_DEFPUSHBUTTON 0x00000001L
546 #define BS_CHECKBOX 0x00000002L
547 #define BS_AUTOCHECKBOX 0x00000003L
548 #define BS_RADIOBUTTON 0x00000004L
549 #define BS_3STATE 0x00000005L
550 #define BS_AUTO3STATE 0x00000006L
551 #define BS_GROUPBOX 0x00000007L
552 #define BS_USERBUTTON 0x00000008L
553 #define BS_AUTORADIOBUTTON 0x00000009L
554 #define BS_OWNERDRAW 0x0000000BL
555 #define BS_LEFTTEXT 0x00000020L
556 #define BS_RIGHTBUTTON BS_LEFTTEXT
558 #define BS_TEXT 0x00000000L
559 #define BS_ICON 0x00000040L
560 #define BS_BITMAP 0x00000080L
561 #define BS_LEFT 0x00000100L
562 #define BS_RIGHT 0x00000200L
563 #define BS_CENTER 0x00000300L
564 #define BS_TOP 0x00000400L
565 #define BS_BOTTOM 0x00000800L
566 #define BS_VCENTER 0x00000C00L
567 #define BS_PUSHLIKE 0x00001000L
568 #define BS_MULTILINE 0x00002000L
569 #define BS_NOTIFY 0x00004000L
570 #define BS_FLAT 0x00008000L
573 #define DS_ABSALIGN 0x0001
574 #define DS_SYSMODAL 0x0002
575 #define DS_3DLOOK 0x0004 /* win95 */
576 #define DS_FIXEDSYS 0x0008 /* win95 */
577 #define DS_NOFAILCREATE 0x0010 /* win95 */
578 #define DS_LOCALEDIT 0x0020
579 #define DS_SETFONT 0x0040
580 #define DS_MODALFRAME 0x0080
581 #define DS_NOIDLEMSG 0x0100
582 #define DS_SETFOREGROUND 0x0200 /* win95 */
583 #define DS_CONTROL 0x0400 /* win95 */
584 #define DS_CENTER 0x0800 /* win95 */
585 #define DS_CENTERMOUSE 0x1000 /* win95 */
586 #define DS_CONTEXTHELP 0x2000 /* win95 */
589 /* Dialog messages */
590 #define DM_GETDEFID (WM_USER+0)
591 #define DM_SETDEFID (WM_USER+1)
592 #define DM_REPOSITION (WM_USER+2)
594 #define DC_HASDEFID 0x534b
596 /* Owner draw control types */
598 #define ODT_LISTBOX 2
599 #define ODT_COMBOBOX 3
603 /* Owner draw actions */
604 #define ODA_DRAWENTIRE 0x0001
605 #define ODA_SELECT 0x0002
606 #define ODA_FOCUS 0x0004
608 /* Owner draw state */
609 #define ODS_SELECTED 0x0001
610 #define ODS_GRAYED 0x0002
611 #define ODS_DISABLED 0x0004
612 #define ODS_CHECKED 0x0008
613 #define ODS_FOCUS 0x0010
614 #define ODS_COMBOBOXEDIT 0x1000
615 #define ODS_HOTLIGHT 0x0040
616 #define ODS_INACTIVE 0x0080
618 /* Edit control styles */
619 #define ES_LEFT 0x00000000
620 #define ES_CENTER 0x00000001
621 #define ES_RIGHT 0x00000002
622 #define ES_MULTILINE 0x00000004
623 #define ES_UPPERCASE 0x00000008
624 #define ES_LOWERCASE 0x00000010
625 #define ES_PASSWORD 0x00000020
626 #define ES_AUTOVSCROLL 0x00000040
627 #define ES_AUTOHSCROLL 0x00000080
628 #define ES_NOHIDESEL 0x00000100
629 #define ES_COMBO 0x00000200 /* Undocumented. Parent is a combobox */
630 #define ES_OEMCONVERT 0x00000400
631 #define ES_READONLY 0x00000800
632 #define ES_WANTRETURN 0x00001000
633 #define ES_NUMBER 0x00002000
635 /* OEM Resource Ordinal Numbers */
636 #define OBM_TRTYPE 32732
637 #define OBM_LFARROWI 32734
638 #define OBM_RGARROWI 32735
639 #define OBM_DNARROWI 32736
640 #define OBM_UPARROWI 32737
641 #define OBM_COMBO 32738
642 #define OBM_MNARROW 32739
643 #define OBM_LFARROWD 32740
644 #define OBM_RGARROWD 32741
645 #define OBM_DNARROWD 32742
646 #define OBM_UPARROWD 32743
647 #define OBM_RESTORED 32744
648 #define OBM_ZOOMD 32745
649 #define OBM_REDUCED 32746
650 #define OBM_RESTORE 32747
651 #define OBM_ZOOM 32748
652 #define OBM_REDUCE 32749
653 #define OBM_LFARROW 32750
654 #define OBM_RGARROW 32751
655 #define OBM_DNARROW 32752
656 #define OBM_UPARROW 32753
657 #define OBM_CLOSE 32754
658 #define OBM_OLD_RESTORE 32755
659 #define OBM_OLD_ZOOM 32756
660 #define OBM_OLD_REDUCE 32757
661 #define OBM_BTNCORNERS 32758
662 #define OBM_CHECKBOXES 32759
663 #define OBM_CHECK 32760
664 #define OBM_BTSIZE 32761
665 #define OBM_OLD_LFARROW 32762
666 #define OBM_OLD_RGARROW 32763
667 #define OBM_OLD_DNARROW 32764
668 #define OBM_OLD_UPARROW 32765
669 #define OBM_SIZE 32766
670 #define OBM_OLD_CLOSE 32767
672 #define OCR_NORMAL 32512
673 #define OCR_IBEAM 32513
674 #define OCR_WAIT 32514
675 #define OCR_CROSS 32515
677 #define OCR_SIZE 32640
678 #define OCR_ICON 32641
679 #define OCR_SIZENWSE 32642
680 #define OCR_SIZENESW 32643
681 #define OCR_SIZEWE 32644
682 #define OCR_SIZENS 32645
683 #define OCR_SIZEALL 32646
684 #define OCR_ICOCUR 32647
686 #define OCR_HAND 32649
687 #define OCR_APPSTARTING 32650
688 #define OCR_HELP 32651
690 /* only defined in wine (FIXME) */
691 #define OCR_DRAGOBJECT 32653
693 #define OIC_SAMPLE 32512
694 #define OIC_HAND 32513
695 #define OIC_QUES 32514
696 #define OIC_BANG 32515
697 #define OIC_NOTE 32516
698 #define OIC_WINLOGO 32517
699 #define OIC_WARNING OIC_BANG
700 #define OIC_ERROR OIC_HAND
701 #define OIC_INFORMATION OIC_NOTE
705 #define COLOR_SCROLLBAR 0
706 #define COLOR_BACKGROUND 1
707 #define COLOR_ACTIVECAPTION 2
708 #define COLOR_INACTIVECAPTION 3
710 #define COLOR_WINDOW 5
711 #define COLOR_WINDOWFRAME 6
712 #define COLOR_MENUTEXT 7
713 #define COLOR_WINDOWTEXT 8
714 #define COLOR_CAPTIONTEXT 9
715 #define COLOR_ACTIVEBORDER 10
716 #define COLOR_INACTIVEBORDER 11
717 #define COLOR_APPWORKSPACE 12
718 #define COLOR_HIGHLIGHT 13
719 #define COLOR_HIGHLIGHTTEXT 14
720 #define COLOR_BTNFACE 15
721 #define COLOR_BTNSHADOW 16
722 #define COLOR_GRAYTEXT 17
723 #define COLOR_BTNTEXT 18
724 #define COLOR_INACTIVECAPTIONTEXT 19
725 #define COLOR_BTNHIGHLIGHT 20
727 #define COLOR_3DDKSHADOW 21
728 #define COLOR_3DLIGHT 22
729 #define COLOR_INFOTEXT 23
730 #define COLOR_INFOBK 24
731 #define COLOR_DESKTOP COLOR_BACKGROUND
732 #define COLOR_3DFACE COLOR_BTNFACE
733 #define COLOR_3DSHADOW COLOR_BTNSHADOW
734 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
735 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
736 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
738 #define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant's name unknown */
739 #define COLOR_HOTLIGHT 26
740 #define COLOR_GRADIENTACTIVECAPTION 27
741 #define COLOR_GRADIENTINACTIVECAPTION 28
743 /* WM_CTLCOLOR values */
744 #define CTLCOLOR_MSGBOX 0
745 #define CTLCOLOR_EDIT 1
746 #define CTLCOLOR_LISTBOX 2
747 #define CTLCOLOR_BTN 3
748 #define CTLCOLOR_DLG 4
749 #define CTLCOLOR_SCROLLBAR 5
750 #define CTLCOLOR_STATIC 6
752 COLORREF WINAPI
GetSysColor(INT
);
753 BOOL WINAPI
SetSysColors(INT
,const INT
*,const COLORREF
*);
757 /* Edit control messages */
758 #define EM_GETSEL 0x00b0
759 #define EM_SETSEL 0x00b1
760 #define EM_GETRECT 0x00b2
761 #define EM_SETRECT 0x00b3
762 #define EM_SETRECTNP 0x00b4
763 #define EM_SCROLL 0x00b5
764 #define EM_LINESCROLL 0x00b6
765 #define EM_SCROLLCARET 0x00b7
766 #define EM_GETMODIFY 0x00b8
767 #define EM_SETMODIFY 0x00b9
768 #define EM_GETLINECOUNT 0x00ba
769 #define EM_LINEINDEX 0x00bb
770 #define EM_SETHANDLE 0x00bc
771 #define EM_GETHANDLE 0x00bd
772 #define EM_GETTHUMB 0x00be
773 /* FIXME : missing from specs 0x00bf and 0x00c0 */
774 #define EM_LINELENGTH 0x00c1
775 #define EM_REPLACESEL 0x00c2
776 /* FIXME : missing from specs 0x00c3 */
777 #define EM_GETLINE 0x00c4
778 #define EM_LIMITTEXT 0x00c5
779 #define EM_CANUNDO 0x00c6
780 #define EM_UNDO 0x00c7
781 #define EM_FMTLINES 0x00c8
782 #define EM_LINEFROMCHAR 0x00c9
783 /* FIXME : missing from specs 0x00ca */
784 #define EM_SETTABSTOPS 0x00cb
785 #define EM_SETPASSWORDCHAR 0x00cc
786 #define EM_EMPTYUNDOBUFFER 0x00cd
787 #define EM_GETFIRSTVISIBLELINE 0x00ce
788 #define EM_SETREADONLY 0x00cf
789 #define EM_SETWORDBREAKPROC 0x00d0
790 #define EM_GETWORDBREAKPROC 0x00d1
791 #define EM_GETPASSWORDCHAR 0x00d2
792 #define EM_SETMARGINS 0x00d3
793 #define EM_GETMARGINS 0x00d4
794 #define EM_GETLIMITTEXT 0x00d5
795 #define EM_POSFROMCHAR 0x00d6
796 #define EM_CHARFROMPOS 0x00d7
797 /* a name change since win95 */
798 #define EM_SETLIMITTEXT EM_LIMITTEXT
800 /* EDITWORDBREAKPROC code values */
803 #define WB_ISDELIMITER 2
805 /* Edit control notification codes */
806 #define EN_SETFOCUS 0x0100
807 #define EN_KILLFOCUS 0x0200
808 #define EN_CHANGE 0x0300
809 #define EN_UPDATE 0x0400
810 #define EN_ERRSPACE 0x0500
811 #define EN_MAXTEXT 0x0501
812 #define EN_HSCROLL 0x0601
813 #define EN_VSCROLL 0x0602
815 /* New since win95 : EM_SETMARGIN parameters */
816 #define EC_LEFTMARGIN 0x0001
817 #define EC_RIGHTMARGIN 0x0002
818 #define EC_USEFONTINFO 0xffff
821 /* GetSystemMetrics() codes */
822 #define SM_CXSCREEN 0
823 #define SM_CYSCREEN 1
824 #define SM_CXVSCROLL 2
825 #define SM_CYHSCROLL 3
826 #define SM_CYCAPTION 4
827 #define SM_CXBORDER 5
828 #define SM_CYBORDER 6
829 #define SM_CXDLGFRAME 7
830 #define SM_CYDLGFRAME 8
831 #define SM_CYVTHUMB 9
832 #define SM_CXHTHUMB 10
835 #define SM_CXCURSOR 13
836 #define SM_CYCURSOR 14
838 #define SM_CXFULLSCREEN 16
839 #define SM_CYFULLSCREEN 17
840 #define SM_CYKANJIWINDOW 18
841 #define SM_MOUSEPRESENT 19
842 #define SM_CYVSCROLL 20
843 #define SM_CXHSCROLL 21
845 #define SM_SWAPBUTTON 23
846 #define SM_RESERVED1 24
847 #define SM_RESERVED2 25
848 #define SM_RESERVED3 26
849 #define SM_RESERVED4 27
854 #define SM_CXFRAME 32
855 #define SM_CYFRAME 33
856 #define SM_CXMINTRACK 34
857 #define SM_CYMINTRACK 35
858 #define SM_CXDOUBLECLK 36
859 #define SM_CYDOUBLECLK 37
860 #define SM_CXICONSPACING 38
861 #define SM_CYICONSPACING 39
862 #define SM_MENUDROPALIGNMENT 40
863 #define SM_PENWINDOWS 41
864 #define SM_DBCSENABLED 42
865 #define SM_CMOUSEBUTTONS 43
866 #define SM_CXFIXEDFRAME SM_CXDLGFRAME
867 #define SM_CYFIXEDFRAME SM_CYDLGFRAME
868 #define SM_CXSIZEFRAME SM_CXFRAME
869 #define SM_CYSIZEFRAME SM_CYFRAME
873 #define SM_CXMINSPACING 47
874 #define SM_CYMINSPACING 48
875 #define SM_CXSMICON 49
876 #define SM_CYSMICON 50
877 #define SM_CYSMCAPTION 51
878 #define SM_CXSMSIZE 52
879 #define SM_CYSMSIZE 53
880 #define SM_CXMENUSIZE 54
881 #define SM_CYMENUSIZE 55
882 #define SM_ARRANGE 56
883 #define SM_CXMINIMIZED 57
884 #define SM_CYMINIMIZED 58
885 #define SM_CXMAXTRACK 59
886 #define SM_CYMAXTRACK 60
887 #define SM_CXMAXIMIZED 61
888 #define SM_CYMAXIMIZED 62
889 #define SM_NETWORK 63
890 #define SM_CLEANBOOT 67
893 #define SM_SHOWSOUNDS 70
894 #define SM_CXMENUCHECK 71
895 #define SM_CYMENUCHECK 72
896 #define SM_SLOWMACHINE 73
897 #define SM_MIDEASTENABLED 74
898 #define SM_MOUSEWHEELPRESENT 75
899 #define SM_XVIRTUALSCREEN 76
900 #define SM_YVIRTUALSCREEN 77
901 #define SM_CXVIRTUALSCREEN 78
902 #define SM_CYVIRTUALSCREEN 79
903 #define SM_CMONITORS 80
904 #define SM_SAMEDISPLAYFORMAT 81
905 #define SM_CMETRICS 83
910 /* WM_GETDLGCODE values */
913 #define WM_NULL 0x0000
914 #define WM_CREATE 0x0001
915 #define WM_DESTROY 0x0002
916 #define WM_MOVE 0x0003
917 #define WM_SIZEWAIT 0x0004
918 #define WM_SIZE 0x0005
919 #define WM_ACTIVATE 0x0006
920 #define WM_SETFOCUS 0x0007
921 #define WM_KILLFOCUS 0x0008
922 #define WM_SETVISIBLE 0x0009
923 #define WM_ENABLE 0x000a
924 #define WM_SETREDRAW 0x000b
925 #define WM_SETTEXT 0x000c
926 #define WM_GETTEXT 0x000d
927 #define WM_GETTEXTLENGTH 0x000e
928 #define WM_PAINT 0x000f
929 #define WM_CLOSE 0x0010
930 #define WM_QUERYENDSESSION 0x0011
931 #define WM_QUIT 0x0012
932 #define WM_QUERYOPEN 0x0013
933 #define WM_ERASEBKGND 0x0014
934 #define WM_SYSCOLORCHANGE 0x0015
935 #define WM_ENDSESSION 0x0016
936 #define WM_SYSTEMERROR 0x0017
937 #define WM_SHOWWINDOW 0x0018
938 #define WM_CTLCOLOR 0x0019
939 #define WM_WININICHANGE 0x001a
940 #define WM_SETTINGCHANGE WM_WININICHANGE
941 #define WM_DEVMODECHANGE 0x001b
942 #define WM_ACTIVATEAPP 0x001c
943 #define WM_FONTCHANGE 0x001d
944 #define WM_TIMECHANGE 0x001e
945 #define WM_CANCELMODE 0x001f
946 #define WM_SETCURSOR 0x0020
947 #define WM_MOUSEACTIVATE 0x0021
948 #define WM_CHILDACTIVATE 0x0022
949 #define WM_QUEUESYNC 0x0023
950 #define WM_GETMINMAXINFO 0x0024
952 #define WM_PAINTICON 0x0026
953 #define WM_ICONERASEBKGND 0x0027
954 #define WM_NEXTDLGCTL 0x0028
955 #define WM_ALTTABACTIVE 0x0029
956 #define WM_SPOOLERSTATUS 0x002a
957 #define WM_DRAWITEM 0x002b
958 #define WM_MEASUREITEM 0x002c
959 #define WM_DELETEITEM 0x002d
960 #define WM_VKEYTOITEM 0x002e
961 #define WM_CHARTOITEM 0x002f
962 #define WM_SETFONT 0x0030
963 #define WM_GETFONT 0x0031
964 #define WM_SETHOTKEY 0x0032
965 #define WM_GETHOTKEY 0x0033
966 #define WM_FILESYSCHANGE 0x0034
967 #define WM_ISACTIVEICON 0x0035
968 #define WM_QUERYPARKICON 0x0036
969 #define WM_QUERYDRAGICON 0x0037
970 #define WM_QUERYSAVESTATE 0x0038
971 #define WM_COMPAREITEM 0x0039
972 #define WM_TESTING 0x003a
974 #define WM_OTHERWINDOWCREATED 0x003c
975 #define WM_OTHERWINDOWDESTROYED 0x003d
976 #define WM_ACTIVATESHELLWINDOW 0x003e
978 #define WM_COMPACTING 0x0041
980 #define WM_COMMNOTIFY 0x0044
981 #define WM_WINDOWPOSCHANGING 0x0046
982 #define WM_WINDOWPOSCHANGED 0x0047
983 #define WM_POWER 0x0048
985 /* Win32 4.0 messages */
986 #define WM_COPYDATA 0x004a
987 #define WM_CANCELJOURNAL 0x004b
988 #define WM_NOTIFY 0x004e
989 #define WM_INPUTLANGCHANGEREQUEST 0x0050
990 #define WM_INPUTLANGCHANGE 0x0051
991 #define WM_TCARD 0x0052
992 #define WM_HELP 0x0053
993 #define WM_USERCHANGED 0x0054
994 #define WM_NOTIFYFORMAT 0x0055
996 #define WM_CONTEXTMENU 0x007b
997 #define WM_STYLECHANGING 0x007c
998 #define WM_STYLECHANGED 0x007d
999 #define WM_DISPLAYCHANGE 0x007e
1000 #define WM_GETICON 0x007f
1001 #define WM_SETICON 0x0080
1003 /* Non-client system messages */
1004 #define WM_NCCREATE 0x0081
1005 #define WM_NCDESTROY 0x0082
1006 #define WM_NCCALCSIZE 0x0083
1007 #define WM_NCHITTEST 0x0084
1008 #define WM_NCPAINT 0x0085
1009 #define WM_NCACTIVATE 0x0086
1011 #define WM_GETDLGCODE 0x0087
1012 #define WM_SYNCPAINT 0x0088
1013 #define WM_SYNCTASK 0x0089
1015 /* Non-client mouse messages */
1016 #define WM_NCMOUSEMOVE 0x00a0
1017 #define WM_NCLBUTTONDOWN 0x00a1
1018 #define WM_NCLBUTTONUP 0x00a2
1019 #define WM_NCLBUTTONDBLCLK 0x00a3
1020 #define WM_NCRBUTTONDOWN 0x00a4
1021 #define WM_NCRBUTTONUP 0x00a5
1022 #define WM_NCRBUTTONDBLCLK 0x00a6
1023 #define WM_NCMBUTTONDOWN 0x00a7
1024 #define WM_NCMBUTTONUP 0x00a8
1025 #define WM_NCMBUTTONDBLCLK 0x00a9
1027 #define WM_NCXBUTTONDOWN 0x00ab
1028 #define WM_NCXBUTTONUP 0x00ac
1029 #define WM_NCXBUTTONDBLCLK 0x00ad
1031 /* Keyboard messages */
1032 #define WM_KEYDOWN 0x0100
1033 #define WM_KEYUP 0x0101
1034 #define WM_CHAR 0x0102
1035 #define WM_DEADCHAR 0x0103
1036 #define WM_SYSKEYDOWN 0x0104
1037 #define WM_SYSKEYUP 0x0105
1038 #define WM_SYSCHAR 0x0106
1039 #define WM_SYSDEADCHAR 0x0107
1040 #define WM_KEYFIRST WM_KEYDOWN
1041 #define WM_KEYLAST 0x0108
1043 /* Win32 4.0 messages for IME */
1044 #define WM_IME_STARTCOMPOSITION 0x010d
1045 #define WM_IME_ENDCOMPOSITION 0x010e
1046 #define WM_IME_COMPOSITION 0x010f
1047 #define WM_IME_KEYLAST 0x010f
1049 #define WM_INITDIALOG 0x0110
1050 #define WM_COMMAND 0x0111
1051 #define WM_SYSCOMMAND 0x0112
1052 #define WM_TIMER 0x0113
1053 #define WM_SYSTIMER 0x0118
1055 /* scroll messages */
1056 #define WM_HSCROLL 0x0114
1057 #define WM_VSCROLL 0x0115
1060 #define WM_INITMENU 0x0116
1061 #define WM_INITMENUPOPUP 0x0117
1063 #define WM_MENUSELECT 0x011F
1064 #define WM_MENUCHAR 0x0120
1065 #define WM_ENTERIDLE 0x0121
1067 #define WM_MENURBUTTONUP 0x0122
1068 #define WM_MENUDRAG 0x0123
1069 #define WM_MENUGETOBJECT 0x0124
1070 #define WM_UNINITMENUPOPUP 0x0125
1071 #define WM_MENUCOMMAND 0x0126
1073 #define WM_CHANGEUISTATE 0x0127
1074 #define WM_UPDATEUISTATE 0x0128
1075 #define WM_QUERYUISTATE 0x0129
1077 #define WM_LBTRACKPOINT 0x0131
1079 /* Win32 CTLCOLOR messages */
1080 #define WM_CTLCOLORMSGBOX 0x0132
1081 #define WM_CTLCOLOREDIT 0x0133
1082 #define WM_CTLCOLORLISTBOX 0x0134
1083 #define WM_CTLCOLORBTN 0x0135
1084 #define WM_CTLCOLORDLG 0x0136
1085 #define WM_CTLCOLORSCROLLBAR 0x0137
1086 #define WM_CTLCOLORSTATIC 0x0138
1088 /* Mouse messages */
1089 #define WM_MOUSEMOVE 0x0200
1090 #define WM_LBUTTONDOWN 0x0201
1091 #define WM_LBUTTONUP 0x0202
1092 #define WM_LBUTTONDBLCLK 0x0203
1093 #define WM_RBUTTONDOWN 0x0204
1094 #define WM_RBUTTONUP 0x0205
1095 #define WM_RBUTTONDBLCLK 0x0206
1096 #define WM_MBUTTONDOWN 0x0207
1097 #define WM_MBUTTONUP 0x0208
1098 #define WM_MBUTTONDBLCLK 0x0209
1099 #define WM_MOUSEWHEEL 0x020A
1100 #define WM_XBUTTONDOWN 0x020B
1101 #define WM_XBUTTONUP 0x020C
1102 #define WM_XBUTTONDBLCLK 0x020D
1104 #define WM_MOUSEFIRST 0x0200
1105 #define WM_MOUSELAST 0x020D
1107 #define WHEEL_DELTA 120
1108 #define WHEEL_PAGESCROLL (UINT_MAX)
1109 #define WM_PARENTNOTIFY 0x0210
1110 #define WM_ENTERMENULOOP 0x0211
1111 #define WM_EXITMENULOOP 0x0212
1112 #define WM_NEXTMENU 0x0213
1114 /* Win32 4.0 messages */
1115 #define WM_SIZING 0x0214
1116 #define WM_CAPTURECHANGED 0x0215
1117 #define WM_MOVING 0x0216
1118 #define WM_POWERBROADCAST 0x0218
1119 #define WM_DEVICECHANGE 0x0219
1121 /* wParam for WM_SIZING message */
1123 #define WMSZ_RIGHT 2
1125 #define WMSZ_TOPLEFT 4
1126 #define WMSZ_TOPRIGHT 5
1127 #define WMSZ_BOTTOM 6
1128 #define WMSZ_BOTTOMLEFT 7
1129 #define WMSZ_BOTTOMRIGHT 8
1132 #define WM_MDICREATE 0x0220
1133 #define WM_MDIDESTROY 0x0221
1134 #define WM_MDIACTIVATE 0x0222
1135 #define WM_MDIRESTORE 0x0223
1136 #define WM_MDINEXT 0x0224
1137 #define WM_MDIMAXIMIZE 0x0225
1138 #define WM_MDITILE 0x0226
1139 #define WM_MDICASCADE 0x0227
1140 #define WM_MDIICONARRANGE 0x0228
1141 #define WM_MDIGETACTIVE 0x0229
1142 #define WM_MDIREFRESHMENU 0x0234
1145 #define WM_DROPOBJECT 0x022A
1146 #define WM_QUERYDROPOBJECT 0x022B
1147 #define WM_BEGINDRAG 0x022C
1148 #define WM_DRAGLOOP 0x022D
1149 #define WM_DRAGSELECT 0x022E
1150 #define WM_DRAGMOVE 0x022F
1151 #define WM_MDISETMENU 0x0230
1153 #define WM_ENTERSIZEMOVE 0x0231
1154 #define WM_EXITSIZEMOVE 0x0232
1155 #define WM_DROPFILES 0x0233
1158 /* Win32 4.0 messages for IME */
1159 #define WM_IME_SETCONTEXT 0x0281
1160 #define WM_IME_NOTIFY 0x0282
1161 #define WM_IME_CONTROL 0x0283
1162 #define WM_IME_COMPOSITIONFULL 0x0284
1163 #define WM_IME_SELECT 0x0285
1164 #define WM_IME_CHAR 0x0286
1165 /* Win32 5.0 messages for IME */
1166 #define WM_IME_REQUEST 0x0288
1168 /* Win32 4.0 messages for IME */
1169 #define WM_IME_KEYDOWN 0x0290
1170 #define WM_IME_KEYUP 0x0291
1172 /* Clipboard command messages */
1173 #define WM_CUT 0x0300
1174 #define WM_COPY 0x0301
1175 #define WM_PASTE 0x0302
1176 #define WM_CLEAR 0x0303
1177 #define WM_UNDO 0x0304
1179 /* Clipboard owner messages */
1180 #define WM_RENDERFORMAT 0x0305
1181 #define WM_RENDERALLFORMATS 0x0306
1182 #define WM_DESTROYCLIPBOARD 0x0307
1184 /* Clipboard viewer messages */
1185 #define WM_DRAWCLIPBOARD 0x0308
1186 #define WM_PAINTCLIPBOARD 0x0309
1187 #define WM_VSCROLLCLIPBOARD 0x030A
1188 #define WM_SIZECLIPBOARD 0x030B
1189 #define WM_ASKCBFORMATNAME 0x030C
1190 #define WM_CHANGECBCHAIN 0x030D
1191 #define WM_HSCROLLCLIPBOARD 0x030E
1193 #define WM_QUERYNEWPALETTE 0x030F
1194 #define WM_PALETTEISCHANGING 0x0310
1195 #define WM_PALETTECHANGED 0x0311
1196 #define WM_HOTKEY 0x0312
1198 #define WM_PRINT 0x0317
1199 #define WM_PRINTCLIENT 0x0318
1201 #define WM_PENWINFIRST 0x0380
1202 #define WM_PENWINLAST 0x038F
1205 #define WM_APP 0x8000
1207 /* MsgWaitForMultipleObjectsEx flags */
1208 #define MWMO_WAITALL 0x0001
1209 #define MWMO_ALERTABLE 0x0002
1210 #define MWMO_INPUTAVAILABLE 0x0004
1212 #define DLGC_WANTARROWS 0x0001
1213 #define DLGC_WANTTAB 0x0002
1214 #define DLGC_WANTALLKEYS 0x0004
1215 #define DLGC_WANTMESSAGE 0x0004
1216 #define DLGC_HASSETSEL 0x0008
1217 #define DLGC_DEFPUSHBUTTON 0x0010
1218 #define DLGC_UNDEFPUSHBUTTON 0x0020
1219 #define DLGC_RADIOBUTTON 0x0040
1220 #define DLGC_WANTCHARS 0x0080
1221 #define DLGC_STATIC 0x0100
1222 #define DLGC_BUTTON 0x2000
1224 /* Standard dialog button IDs */
1235 /****** Window classes ******/
1237 typedef struct tagCREATESTRUCTA
1239 LPVOID lpCreateParams
;
1240 HINSTANCE hInstance
;
1251 } CREATESTRUCTA
, *LPCREATESTRUCTA
;
1255 LPVOID lpCreateParams
;
1256 HINSTANCE hInstance
;
1267 } CREATESTRUCTW
, *LPCREATESTRUCTW
;
1269 DECL_WINELIB_TYPE_AW(CREATESTRUCT
)
1270 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT
)
1279 BYTE rgbReserved
[32];
1280 } PAINTSTRUCT
, *PPAINTSTRUCT
, *LPPAINTSTRUCT
;
1286 } CLIENTCREATESTRUCT
, *LPCLIENTCREATESTRUCT
;
1300 } MDICREATESTRUCTA
, *LPMDICREATESTRUCTA
;
1313 } MDICREATESTRUCTW
, *LPMDICREATESTRUCTW
;
1315 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT
)
1316 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT
)
1318 #define MDITILE_VERTICAL 0x0000
1319 #define MDITILE_HORIZONTAL 0x0001
1320 #define MDITILE_SKIPDISABLED 0x0002
1322 #define MDIS_ALLCHILDSTYLES 0x0001
1327 } STYLESTRUCT
, *LPSTYLESTRUCT
;
1329 #define WC_DIALOGA MAKEINTATOMA(0x8002)
1330 #define WC_DIALOGW MAKEINTATOMW(0x8002)
1331 #define WC_DIALOG WINELIB_NAME_AW(WC_DIALOG)
1333 /* Offsets for GetWindowLong() and GetWindowWord() */
1334 #define GWL_USERDATA (-21)
1335 #define GWL_EXSTYLE (-20)
1336 #define GWL_STYLE (-16)
1337 #define GWL_ID (-12)
1338 #define GWL_HWNDPARENT (-8)
1339 #define GWL_HINSTANCE (-6)
1340 #define GWL_WNDPROC (-4)
1341 #define DWL_MSGRESULT 0
1342 #define DWL_DLGPROC 4
1345 /* GetWindow() constants */
1346 #define GW_HWNDFIRST 0
1347 #define GW_HWNDLAST 1
1348 #define GW_HWNDNEXT 2
1349 #define GW_HWNDPREV 3
1353 /* GetAncestor() constants */
1356 #define GA_ROOTOWNER 3
1358 /* WM_GETMINMAXINFO struct */
1363 POINT ptMaxPosition
;
1364 POINT ptMinTrackSize
;
1365 POINT ptMaxTrackSize
;
1366 } MINMAXINFO
, *PMINMAXINFO
, *LPMINMAXINFO
;
1369 /* RedrawWindow() flags */
1370 #define RDW_INVALIDATE 0x0001
1371 #define RDW_INTERNALPAINT 0x0002
1372 #define RDW_ERASE 0x0004
1373 #define RDW_VALIDATE 0x0008
1374 #define RDW_NOINTERNALPAINT 0x0010
1375 #define RDW_NOERASE 0x0020
1376 #define RDW_NOCHILDREN 0x0040
1377 #define RDW_ALLCHILDREN 0x0080
1378 #define RDW_UPDATENOW 0x0100
1379 #define RDW_ERASENOW 0x0200
1380 #define RDW_FRAME 0x0400
1381 #define RDW_NOFRAME 0x0800
1384 #define DBGFILL_ALLOC 0xfd
1385 #define DBGFILL_FREE 0xfb
1386 #define DBGFILL_BUFFER 0xf9
1387 #define DBGFILL_STACK 0xf7
1389 /* WM_WINDOWPOSCHANGING/CHANGED struct */
1390 typedef struct tagWINDOWPOS
1393 HWND hwndInsertAfter
;
1399 } WINDOWPOS
, *PWINDOWPOS
, *LPWINDOWPOS
;
1402 /* WM_MOUSEACTIVATE return values */
1403 #define MA_ACTIVATE 1
1404 #define MA_ACTIVATEANDEAT 2
1405 #define MA_NOACTIVATE 3
1406 #define MA_NOACTIVATEANDEAT 4
1408 /* WM_ACTIVATE wParam values */
1409 #define WA_INACTIVE 0
1411 #define WA_CLICKACTIVE 2
1413 /* WM_GETICON/WM_SETICON params values */
1414 #define ICON_SMALL 0
1417 /* WM_NCCALCSIZE parameter structure */
1422 } NCCALCSIZE_PARAMS
, *LPNCCALCSIZE_PARAMS
;
1425 /* WM_NCCALCSIZE return flags */
1426 #define WVR_ALIGNTOP 0x0010
1427 #define WVR_ALIGNLEFT 0x0020
1428 #define WVR_ALIGNBOTTOM 0x0040
1429 #define WVR_ALIGNRIGHT 0x0080
1430 #define WVR_HREDRAW 0x0100
1431 #define WVR_VREDRAW 0x0200
1432 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
1433 #define WVR_VALIDRECTS 0x0400
1435 /* WM_NCHITTEST return codes */
1436 #define HTERROR (-2)
1437 #define HTTRANSPARENT (-1)
1446 #define HTMINBUTTON 8
1447 #define HTMAXBUTTON 9
1451 #define HTTOPLEFT 13
1452 #define HTTOPRIGHT 14
1454 #define HTBOTTOMLEFT 16
1455 #define HTBOTTOMRIGHT 17
1457 #define HTGROWBOX HTSIZE
1458 #define HTREDUCE HTMINBUTTON
1459 #define HTZOOM HTMAXBUTTON
1463 #define HTSIZEFIRST HTLEFT
1464 #define HTSIZELAST HTBOTTOMRIGHT
1466 /* SendMessageTimeout flags */
1467 #define SMTO_NORMAL 0x0000
1468 #define SMTO_BLOCK 0x0001
1469 #define SMTO_ABORTIFHUNG 0x0002
1470 #define SMTO_NOTIMEOUTIFNOTHUNG 0x0008
1472 /* WM_SYSCOMMAND parameters */
1473 #ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */
1476 #define SC_SIZE 0xf000
1477 #define SC_MOVE 0xf010
1478 #define SC_MINIMIZE 0xf020
1479 #define SC_MAXIMIZE 0xf030
1480 #define SC_NEXTWINDOW 0xf040
1481 #define SC_PREVWINDOW 0xf050
1482 #define SC_CLOSE 0xf060
1483 #define SC_VSCROLL 0xf070
1484 #define SC_HSCROLL 0xf080
1485 #define SC_MOUSEMENU 0xf090
1486 #define SC_KEYMENU 0xf100
1487 #define SC_ARRANGE 0xf110
1488 #define SC_RESTORE 0xf120
1489 #define SC_TASKLIST 0xf130
1490 #define SC_SCREENSAVE 0xf140
1491 #define SC_HOTKEY 0xf150
1493 #define SC_DEFAULT 0xf160
1494 #define SC_MONITORPOWER 0xf170
1495 #define SC_CONTEXTHELP 0xf180
1496 #define SC_SEPARATOR 0xf00f
1498 /* obsolete names(SC_ICON and SC_ZOOM) */
1499 #define SC_ICON SC_MINIMIZE
1500 #define SC_ZOOM SC_MAXIMIZE
1503 #define CS_VREDRAW 0x0001
1504 #define CS_HREDRAW 0x0002
1505 #define CS_KEYCVTWINDOW 0x0004
1506 #define CS_DBLCLKS 0x0008
1507 #define CS_OWNDC 0x0020
1508 #define CS_CLASSDC 0x0040
1509 #define CS_PARENTDC 0x0080
1510 #define CS_NOKEYCVT 0x0100
1511 #define CS_NOCLOSE 0x0200
1512 #define CS_SAVEBITS 0x0800
1513 #define CS_BYTEALIGNCLIENT 0x1000
1514 #define CS_BYTEALIGNWINDOW 0x2000
1515 #define CS_GLOBALCLASS 0x4000
1516 #define CS_IME 0x00010000
1518 #define PRF_CHECKVISIBLE 0x00000001L
1519 #define PRF_NONCLIENT 0x00000002L
1520 #define PRF_CLIENT 0x00000004L
1521 #define PRF_ERASEBKGND 0x00000008L
1522 #define PRF_CHILDREN 0x00000010L
1523 #define PRF_OWNED 0x00000020L
1525 /* Offsets for GetClassLong() and GetClassWord() */
1526 #define GCL_MENUNAME (-8)
1527 #define GCL_HBRBACKGROUND (-10)
1528 #define GCL_HCURSOR (-12)
1529 #define GCL_HICON (-14)
1530 #define GCL_HMODULE (-16)
1531 #define GCL_CBWNDEXTRA (-18)
1532 #define GCL_CBCLSEXTRA (-20)
1533 #define GCL_WNDPROC (-24)
1534 #define GCL_STYLE (-26)
1535 #define GCW_ATOM (-32)
1536 #define GCL_HICONSM (-34)
1539 /***** Window hooks *****/
1543 #define WH_MSGFILTER (-1)
1544 #define WH_JOURNALRECORD 0
1545 #define WH_JOURNALPLAYBACK 1
1546 #define WH_KEYBOARD 2
1547 #define WH_GETMESSAGE 3
1548 #define WH_CALLWNDPROC 4
1550 #define WH_SYSMSGFILTER 6
1552 #define WH_HARDWARE 8
1555 #define WH_FOREGROUNDIDLE 11
1556 #define WH_CALLWNDPROCRET 12
1557 #define WH_KEYBOARD_LL 13
1558 #define WH_MOUSE_LL 14
1561 #define WH_MINHOOK WH_MIN
1562 #define WH_MAXHOOK WH_MAX
1564 /* Hook action codes */
1566 #define HC_GETNEXT 1
1568 #define HC_NOREMOVE 3
1569 #define HC_NOREM HC_NOREMOVE
1570 #define HC_SYSMODALON 4
1571 #define HC_SYSMODALOFF 5
1573 /* CallMsgFilter() values */
1574 #define MSGF_DIALOGBOX 0
1575 #define MSGF_MESSAGEBOX 1
1579 #define MSGF_SCROLLBAR 5
1580 #define MSGF_NEXTWINDOW 6
1582 #define MSGF_USER 0x1000
1583 #define MSGF_DDEMGR 0x8001
1588 WNDPROC lpfnWndProc
;
1591 HINSTANCE hInstance
;
1594 HBRUSH hbrBackground
;
1595 LPCSTR lpszMenuName
;
1596 LPCSTR lpszClassName
;
1597 } WNDCLASSA
, *PWNDCLASSA
, *LPWNDCLASSA
;
1602 WNDPROC lpfnWndProc
;
1605 HINSTANCE hInstance
;
1608 HBRUSH hbrBackground
;
1609 LPCWSTR lpszMenuName
;
1610 LPCWSTR lpszClassName
;
1611 } WNDCLASSW
, *PWNDCLASSW
, *LPWNDCLASSW
;
1613 DECL_WINELIB_TYPE_AW(WNDCLASS
)
1614 DECL_WINELIB_TYPE_AW(PWNDCLASS
)
1615 DECL_WINELIB_TYPE_AW(LPWNDCLASS
)
1621 } COPYDATASTRUCT
, *PCOPYDATASTRUCT
;
1627 } MDINEXTMENU
, *PMDINEXTMENU
, *LPMDINEXTMENU
;
1633 CHAR szKeyphrase
[1];
1634 } MULTIKEYHELPA
, *PMULTIKEYHELPA
, *LPMULTIKEYHELPA
;
1640 WCHAR szKeyphrase
[1];
1641 } MULTIKEYHELPW
, *PMULTIKEYHELPW
, *LPMULTIKEYHELPW
;
1643 DECL_WINELIB_TYPE_AW(MULTIKEYHELP
)
1644 DECL_WINELIB_TYPE_AW(PMULTIKEYHELP
)
1645 DECL_WINELIB_TYPE_AW(LPMULTIKEYHELP
)
1655 } HELPWININFOA
, *PHELPWININFOA
, *LPHELPWININFOA
;
1664 WCHAR rgchMember
[2];
1665 } HELPWININFOW
, *PHELPWININFOW
, *LPHELPWININFOW
;
1667 DECL_WINELIB_TYPE_AW(HELPWININFO
)
1668 DECL_WINELIB_TYPE_AW(PHELPWININFO
)
1669 DECL_WINELIB_TYPE_AW(LPHELPWININFO
)
1671 #define HELP_CONTEXT 0x0001
1672 #define HELP_QUIT 0x0002
1673 #define HELP_INDEX 0x0003
1674 #define HELP_CONTENTS 0x0003
1675 #define HELP_HELPONHELP 0x0004
1676 #define HELP_SETINDEX 0x0005
1677 #define HELP_SETCONTENTS 0x0005
1678 #define HELP_CONTEXTPOPUP 0x0008
1679 #define HELP_FORCEFILE 0x0009
1680 #define HELP_KEY 0x0101
1681 #define HELP_COMMAND 0x0102
1682 #define HELP_PARTIALKEY 0x0105
1683 #define HELP_MULTIKEY 0x0201
1684 #define HELP_SETWINPOS 0x0203
1685 #define HELP_CONTEXTMENU 0x000a
1686 #define HELP_FINDER 0x000b
1687 #define HELP_WM_HELP 0x000c
1688 #define HELP_SETPOPUP_POS 0x000d
1690 #define HELP_TCARD 0x8000
1691 #define HELP_TCARD_DATA 0x0010
1692 #define HELP_TCARD_OTHER_CALLER 0x0011
1695 /* ChangeDisplaySettings return codes */
1697 #define DISP_CHANGE_SUCCESSFUL 0
1698 #define DISP_CHANGE_RESTART 1
1699 #define DISP_CHANGE_FAILED (-1)
1700 #define DISP_CHANGE_BADMODE (-2)
1701 #define DISP_CHANGE_NOTUPDATED (-3)
1702 #define DISP_CHANGE_BADFLAGS (-4)
1703 #define DISP_CHANGE_BADPARAM (-5)
1705 /* ChangeDisplaySettings.dwFlags */
1706 #define CDS_UPDATEREGISTRY 0x00000001
1707 #define CDS_TEST 0x00000002
1708 #define CDS_FULLSCREEN 0x00000004
1709 #define CDS_GLOBAL 0x00000008
1710 #define CDS_SET_PRIMARY 0x00000010
1711 #define CDS_RESET 0x40000000
1712 #define CDS_SETRECT 0x20000000
1713 #define CDS_NORESET 0x10000000
1719 WNDPROC lpfnWndProc
;
1722 HINSTANCE hInstance
;
1725 HBRUSH hbrBackground
;
1726 LPCSTR lpszMenuName
;
1727 LPCSTR lpszClassName
;
1729 } WNDCLASSEXA
, *PWNDCLASSEXA
, *LPWNDCLASSEXA
;
1735 WNDPROC lpfnWndProc
;
1738 HINSTANCE hInstance
;
1741 HBRUSH hbrBackground
;
1742 LPCWSTR lpszMenuName
;
1743 LPCWSTR lpszClassName
;
1745 } WNDCLASSEXW
, *PWNDCLASSEXW
, *LPWNDCLASSEXW
;
1747 DECL_WINELIB_TYPE_AW(WNDCLASSEX
)
1748 DECL_WINELIB_TYPE_AW(PWNDCLASSEX
)
1749 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX
)
1751 typedef struct tagMSG
1759 } MSG
, *PMSG
, *LPMSG
;
1761 #define POINTSTOPOINT(pt, pts) \
1762 { (pt).x = (LONG)(SHORT)LOWORD(*(LONG*)&pts); \
1763 (pt).y = (LONG)(SHORT)HIWORD(*(LONG*)&pts); }
1765 #define POINTTOPOINTS(pt) (MAKELONG((short)((pt).x), (short)((pt).y)))
1768 /* Cursors / Icons */
1776 } ICONINFO
, *PICONINFO
;
1779 /* this is the 6 byte accel struct used in Win32 when presented to the user */
1789 /* Flags for TrackPopupMenu */
1790 #define TPM_LEFTBUTTON 0x0000
1791 #define TPM_RIGHTBUTTON 0x0002
1792 #define TPM_LEFTALIGN 0x0000
1793 #define TPM_CENTERALIGN 0x0004
1794 #define TPM_RIGHTALIGN 0x0008
1795 #define TPM_TOPALIGN 0x0000
1796 #define TPM_VCENTERALIGN 0x0010
1797 #define TPM_BOTTOMALIGN 0x0020
1798 #define TPM_HORIZONTAL 0x0000
1799 #define TPM_VERTICAL 0x0040
1800 #define TPM_NONOTIFY 0x0080
1801 #define TPM_RETURNCMD 0x0100
1807 } TPMPARAMS
, *LPTPMPARAMS
;
1809 /* FIXME: not sure this one is correct */
1817 HBITMAP hbmpChecked
;
1818 HBITMAP hbmpUnchecked
;
1823 } MENUITEMINFOA
, *LPMENUITEMINFOA
;
1832 HBITMAP hbmpChecked
;
1833 HBITMAP hbmpUnchecked
;
1838 } MENUITEMINFOW
, *LPMENUITEMINFOW
;
1840 DECL_WINELIB_TYPE_AW(MENUITEMINFO
)
1841 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO
)
1842 typedef const MENUITEMINFOA
*LPCMENUITEMINFOA
;
1843 typedef const MENUITEMINFOW
*LPCMENUITEMINFOW
;
1844 DECL_WINELIB_TYPE_AW(LPCMENUITEMINFO
)
1852 DWORD dwContextHelpID
;
1854 } MENUINFO
, *LPMENUINFO
;
1856 typedef const MENUINFO
*LPCMENUINFO
;
1858 #define MIM_MAXHEIGHT 0x00000001
1859 #define MIM_BACKGROUND 0x00000002
1860 #define MIM_HELPID 0x00000004
1861 #define MIM_MENUDATA 0x00000008
1862 #define MIM_STYLE 0x00000010
1863 #define MIM_APPLYTOSUBMENUS 0x80000000
1868 } MENUITEMTEMPLATEHEADER
, *PMENUITEMTEMPLATEHEADER
;
1875 } MENUITEMTEMPLATE
, *PMENUITEMTEMPLATE
;
1878 typedef VOID MENUTEMPLATE
;
1879 typedef PVOID
*LPMENUTEMPLATE
;
1881 /* Field specifiers for MENUITEMINFO[AW] type. */
1882 #define MIIM_STATE 0x00000001
1883 #define MIIM_ID 0x00000002
1884 #define MIIM_SUBMENU 0x00000004
1885 #define MIIM_CHECKMARKS 0x00000008
1886 #define MIIM_TYPE 0x00000010
1887 #define MIIM_DATA 0x00000020
1888 #define MIIM_STRING 0x00000040
1889 #define MIIM_BITMAP 0x00000080
1890 #define MIIM_FTYPE 0x00000100
1892 #define HBMMENU_CALLBACK ((HBITMAP) -1)
1893 #define HBMMENU_SYSTEM ((HBITMAP) 1)
1894 #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
1895 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
1896 #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
1897 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
1898 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
1899 #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
1900 #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
1901 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
1902 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
1904 /* WM_H/VSCROLL commands */
1906 #define SB_LINELEFT 0
1907 #define SB_LINEDOWN 1
1908 #define SB_LINERIGHT 1
1910 #define SB_PAGELEFT 2
1911 #define SB_PAGEDOWN 3
1912 #define SB_PAGERIGHT 3
1913 #define SB_THUMBPOSITION 4
1914 #define SB_THUMBTRACK 5
1919 #define SB_ENDSCROLL 8
1921 /* Scroll bar selection constants */
1927 /* Scrollbar styles */
1928 #define SBS_HORZ 0x0000L
1929 #define SBS_VERT 0x0001L
1930 #define SBS_TOPALIGN 0x0002L
1931 #define SBS_LEFTALIGN 0x0002L
1932 #define SBS_BOTTOMALIGN 0x0004L
1933 #define SBS_RIGHTALIGN 0x0004L
1934 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
1935 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
1936 #define SBS_SIZEBOX 0x0008L
1937 #define SBS_SIZEGRIP 0x0010L
1939 /* EnableScrollBar() flags */
1940 #define ESB_ENABLE_BOTH 0x0000
1941 #define ESB_DISABLE_BOTH 0x0003
1943 #define ESB_DISABLE_LEFT 0x0001
1944 #define ESB_DISABLE_RIGHT 0x0002
1946 #define ESB_DISABLE_UP 0x0001
1947 #define ESB_DISABLE_DOWN 0x0002
1949 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
1950 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
1952 /* Win32 button control messages */
1953 #define BM_GETCHECK 0x00f0
1954 #define BM_SETCHECK 0x00f1
1955 #define BM_GETSTATE 0x00f2
1956 #define BM_SETSTATE 0x00f3
1957 #define BM_SETSTYLE 0x00f4
1958 #define BM_CLICK 0x00f5
1959 #define BM_GETIMAGE 0x00f6
1960 #define BM_SETIMAGE 0x00f7
1961 /* Winelib button control messages */
1963 /* Button notification codes */
1964 #define BN_CLICKED 0
1967 #define BN_UNHILITE 3
1968 #define BN_DISABLE 4
1969 #define BN_DOUBLECLICKED 5
1970 #define BN_DBLCLK BN_DOUBLECLICKED
1973 #define BST_UNCHECKED 0x0000
1974 #define BST_CHECKED 0x0001
1975 #define BST_INDETERMINATE 0x0002
1976 #define BST_PUSHED 0x0004
1977 #define BST_FOCUS 0x0008
1979 /* Static Control Styles */
1980 #define SS_LEFT 0x00000000L
1981 #define SS_CENTER 0x00000001L
1982 #define SS_RIGHT 0x00000002L
1983 #define SS_ICON 0x00000003L
1984 #define SS_BLACKRECT 0x00000004L
1985 #define SS_GRAYRECT 0x00000005L
1986 #define SS_WHITERECT 0x00000006L
1987 #define SS_BLACKFRAME 0x00000007L
1988 #define SS_GRAYFRAME 0x00000008L
1989 #define SS_WHITEFRAME 0x00000009L
1991 #define SS_SIMPLE 0x0000000BL
1992 #define SS_LEFTNOWORDWRAP 0x0000000CL
1994 #define SS_OWNERDRAW 0x0000000DL
1995 #define SS_BITMAP 0x0000000EL
1996 #define SS_ENHMETAFILE 0x0000000FL
1998 #define SS_ETCHEDHORZ 0x00000010L
1999 #define SS_ETCHEDVERT 0x00000011L
2000 #define SS_ETCHEDFRAME 0x00000012L
2001 #define SS_TYPEMASK 0x0000001FL
2003 #define SS_NOPREFIX 0x00000080L
2004 #define SS_NOTIFY 0x00000100L
2005 #define SS_CENTERIMAGE 0x00000200L
2006 #define SS_RIGHTJUST 0x00000400L
2007 #define SS_REALSIZEIMAGE 0x00000800L
2008 #define SS_SUNKEN 0x00001000L
2010 /* Static Control Messages */
2011 #define STM_SETICON 0x0170
2012 #define STM_GETICON 0x0171
2013 #define STM_SETIMAGE 0x0172
2014 #define STM_GETIMAGE 0x0173
2015 #define STM_MSGMAX 0x0174
2017 #define STN_CLICKED 0
2018 #define STN_DBLCLK 1
2019 #define STN_ENABLE 2
2020 #define STN_DISABLE 3
2022 /* Scrollbar messages */
2023 #define SBM_SETPOS 0x00e0
2024 #define SBM_GETPOS 0x00e1
2025 #define SBM_SETRANGE 0x00e2
2026 #define SBM_GETRANGE 0x00e3
2027 #define SBM_ENABLE_ARROWS 0x00e4
2028 #define SBM_SETRANGEREDRAW 0x00e6
2029 #define SBM_SETSCROLLINFO 0x00e9
2030 #define SBM_GETSCROLLINFO 0x00ea
2032 /* Scrollbar info */
2042 } SCROLLINFO
, *LPSCROLLINFO
;
2044 typedef const SCROLLINFO
*LPCSCROLLINFO
;
2046 /* GetScrollInfo() flags */
2047 #define SIF_RANGE 0x0001
2048 #define SIF_PAGE 0x0002
2049 #define SIF_POS 0x0004
2050 #define SIF_DISABLENOSCROLL 0x0008
2051 #define SIF_TRACKPOS 0x0010
2052 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
2054 /* Listbox styles */
2055 #define LBS_NOTIFY 0x0001
2056 #define LBS_SORT 0x0002
2057 #define LBS_NOREDRAW 0x0004
2058 #define LBS_MULTIPLESEL 0x0008
2059 #define LBS_OWNERDRAWFIXED 0x0010
2060 #define LBS_OWNERDRAWVARIABLE 0x0020
2061 #define LBS_HASSTRINGS 0x0040
2062 #define LBS_USETABSTOPS 0x0080
2063 #define LBS_NOINTEGRALHEIGHT 0x0100
2064 #define LBS_MULTICOLUMN 0x0200
2065 #define LBS_WANTKEYBOARDINPUT 0x0400
2066 #define LBS_EXTENDEDSEL 0x0800
2067 #define LBS_DISABLENOSCROLL 0x1000
2068 #define LBS_NODATA 0x2000
2069 #define LBS_NOSEL 0x4000
2070 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
2072 /* Listbox messages */
2073 #define LB_ADDSTRING 0x0180
2074 #define LB_INSERTSTRING 0x0181
2075 #define LB_DELETESTRING 0x0182
2076 #define LB_SELITEMRANGEEX 0x0183
2077 #define LB_RESETCONTENT 0x0184
2078 #define LB_SETSEL 0x0185
2079 #define LB_SETCURSEL 0x0186
2080 #define LB_GETSEL 0x0187
2081 #define LB_GETCURSEL 0x0188
2082 #define LB_GETTEXT 0x0189
2083 #define LB_GETTEXTLEN 0x018a
2084 #define LB_GETCOUNT 0x018b
2085 #define LB_SELECTSTRING 0x018c
2086 #define LB_DIR 0x018d
2087 #define LB_GETTOPINDEX 0x018e
2088 #define LB_FINDSTRING 0x018f
2089 #define LB_GETSELCOUNT 0x0190
2090 #define LB_GETSELITEMS 0x0191
2091 #define LB_SETTABSTOPS 0x0192
2092 #define LB_GETHORIZONTALEXTENT 0x0193
2093 #define LB_SETHORIZONTALEXTENT 0x0194
2094 #define LB_SETCOLUMNWIDTH 0x0195
2095 #define LB_ADDFILE 0x0196
2096 #define LB_SETTOPINDEX 0x0197
2097 #define LB_GETITEMRECT 0x0198
2098 #define LB_GETITEMDATA 0x0199
2099 #define LB_SETITEMDATA 0x019a
2100 #define LB_SELITEMRANGE 0x019b
2101 #define LB_SETANCHORINDEX 0x019c
2102 #define LB_GETANCHORINDEX 0x019d
2103 #define LB_SETCARETINDEX 0x019e
2104 #define LB_GETCARETINDEX 0x019f
2105 #define LB_SETITEMHEIGHT 0x01a0
2106 #define LB_GETITEMHEIGHT 0x01a1
2107 #define LB_FINDSTRINGEXACT 0x01a2
2108 #define LB_CARETON 0x01a3
2109 #define LB_CARETOFF 0x01a4
2110 #define LB_SETLOCALE 0x01a5
2111 #define LB_GETLOCALE 0x01a6
2112 #define LB_SETCOUNT 0x01a7
2113 #define LB_INITSTORAGE 0x01a8
2114 #define LB_ITEMFROMPOINT 0x01a9
2116 /* Listbox notification codes */
2117 #define LBN_ERRSPACE (-2)
2118 #define LBN_SELCHANGE 1
2119 #define LBN_DBLCLK 2
2120 #define LBN_SELCANCEL 3
2121 #define LBN_SETFOCUS 4
2122 #define LBN_KILLFOCUS 5
2124 /* Listbox message return values */
2127 #define LB_ERRSPACE (-2)
2129 #define LB_CTLCODE 0L
2131 /* Combo box styles */
2132 #define CBS_SIMPLE 0x0001L
2133 #define CBS_DROPDOWN 0x0002L
2134 #define CBS_DROPDOWNLIST 0x0003L
2135 #define CBS_OWNERDRAWFIXED 0x0010L
2136 #define CBS_OWNERDRAWVARIABLE 0x0020L
2137 #define CBS_AUTOHSCROLL 0x0040L
2138 #define CBS_OEMCONVERT 0x0080L
2139 #define CBS_SORT 0x0100L
2140 #define CBS_HASSTRINGS 0x0200L
2141 #define CBS_NOINTEGRALHEIGHT 0x0400L
2142 #define CBS_DISABLENOSCROLL 0x0800L
2144 #define CBS_UPPERCASE 0x2000L
2145 #define CBS_LOWERCASE 0x4000L
2148 /* Combo box messages */
2149 #define CB_GETEDITSEL 0x0140
2150 #define CB_LIMITTEXT 0x0141
2151 #define CB_SETEDITSEL 0x0142
2152 #define CB_ADDSTRING 0x0143
2153 #define CB_DELETESTRING 0x0144
2154 #define CB_DIR 0x0145
2155 #define CB_GETCOUNT 0x0146
2156 #define CB_GETCURSEL 0x0147
2157 #define CB_GETLBTEXT 0x0148
2158 #define CB_GETLBTEXTLEN 0x0149
2159 #define CB_INSERTSTRING 0x014a
2160 #define CB_RESETCONTENT 0x014b
2161 #define CB_FINDSTRING 0x014c
2162 #define CB_SELECTSTRING 0x014d
2163 #define CB_SETCURSEL 0x014e
2164 #define CB_SHOWDROPDOWN 0x014f
2165 #define CB_GETITEMDATA 0x0150
2166 #define CB_SETITEMDATA 0x0151
2167 #define CB_GETDROPPEDCONTROLRECT 0x0152
2168 #define CB_SETITEMHEIGHT 0x0153
2169 #define CB_GETITEMHEIGHT 0x0154
2170 #define CB_SETEXTENDEDUI 0x0155
2171 #define CB_GETEXTENDEDUI 0x0156
2172 #define CB_GETDROPPEDSTATE 0x0157
2173 #define CB_FINDSTRINGEXACT 0x0158
2174 #define CB_SETLOCALE 0x0159
2175 #define CB_GETLOCALE 0x015a
2176 #define CB_GETTOPINDEX 0x015b
2177 #define CB_SETTOPINDEX 0x015c
2178 #define CB_GETHORIZONTALEXTENT 0x015d
2179 #define CB_SETHORIZONTALEXTENT 0x015e
2180 #define CB_GETDROPPEDWIDTH 0x015f
2181 #define CB_SETDROPPEDWIDTH 0x0160
2182 #define CB_INITSTORAGE 0x0161
2184 /* Combo box notification codes */
2185 #define CBN_ERRSPACE (-1)
2186 #define CBN_SELCHANGE 1
2187 #define CBN_DBLCLK 2
2188 #define CBN_SETFOCUS 3
2189 #define CBN_KILLFOCUS 4
2190 #define CBN_EDITCHANGE 5
2191 #define CBN_EDITUPDATE 6
2192 #define CBN_DROPDOWN 7
2193 #define CBN_CLOSEUP 8
2194 #define CBN_SELENDOK 9
2195 #define CBN_SELENDCANCEL 10
2197 /* Combo box message return values */
2200 #define CB_ERRSPACE (-2)
2202 #define MB_OK 0x00000000
2203 #define MB_OKCANCEL 0x00000001
2204 #define MB_ABORTRETRYIGNORE 0x00000002
2205 #define MB_YESNOCANCEL 0x00000003
2206 #define MB_YESNO 0x00000004
2207 #define MB_RETRYCANCEL 0x00000005
2208 #define MB_TYPEMASK 0x0000000F
2210 #define MB_ICONHAND 0x00000010
2211 #define MB_ICONQUESTION 0x00000020
2212 #define MB_ICONEXCLAMATION 0x00000030
2213 #define MB_ICONASTERISK 0x00000040
2214 #define MB_USERICON 0x00000080
2215 #define MB_ICONMASK 0x000000F0
2217 #define MB_ICONINFORMATION MB_ICONASTERISK
2218 #define MB_ICONSTOP MB_ICONHAND
2219 #define MB_ICONWARNING MB_ICONEXCLAMATION
2220 #define MB_ICONERROR MB_ICONHAND
2222 #define MB_DEFBUTTON1 0x00000000
2223 #define MB_DEFBUTTON2 0x00000100
2224 #define MB_DEFBUTTON3 0x00000200
2225 #define MB_DEFBUTTON4 0x00000300
2226 #define MB_DEFMASK 0x00000F00
2228 #define MB_APPLMODAL 0x00000000
2229 #define MB_SYSTEMMODAL 0x00001000
2230 #define MB_TASKMODAL 0x00002000
2231 #define MB_MODEMASK 0x00003000
2233 #define MB_HELP 0x00004000
2234 #define MB_NOFOCUS 0x00008000
2235 #define MB_MISCMASK 0x0000C000
2237 #define MB_SETFOREGROUND 0x00010000
2238 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
2239 #define MB_SERVICE_NOTIFICATION 0x00040000
2240 #define MB_TOPMOST 0x00040000
2241 #define MB_RIGHT 0x00080000
2242 #define MB_RTLREADING 0x00100000
2244 #define HELPINFO_WINDOW 0x0001
2245 #define HELPINFO_MENUITEM 0x0002
2247 /* Structure pointed to by lParam of WM_HELP */
2250 UINT cbSize
; /* Size in bytes of this struct */
2251 INT iContextType
; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
2252 INT iCtrlId
; /* Control Id or a Menu item Id. */
2253 HANDLE hItemHandle
; /* hWnd of control or hMenu. */
2254 DWORD dwContextId
; /* Context Id associated with this item */
2255 POINT MousePos
; /* Mouse Position in screen co-ordinates */
2256 } HELPINFO
,*LPHELPINFO
;
2258 typedef void (CALLBACK
*MSGBOXCALLBACK
)(LPHELPINFO lpHelpInfo
);
2264 HINSTANCE hInstance
;
2269 DWORD dwContextHelpId
;
2270 MSGBOXCALLBACK lpfnMsgBoxCallback
;
2272 } MSGBOXPARAMSA
, *PMSGBOXPARAMSA
, *LPMSGBOXPARAMSA
;
2278 HINSTANCE hInstance
;
2280 LPCWSTR lpszCaption
;
2283 DWORD dwContextHelpId
;
2284 MSGBOXCALLBACK lpfnMsgBoxCallback
;
2286 } MSGBOXPARAMSW
, *PMSGBOXPARAMSW
, *LPMSGBOXPARAMSW
;
2288 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS
)
2289 DECL_WINELIB_TYPE_AW(PMSGBOXPARAMS
)
2290 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS
)
2292 #define MONITOR_DEFAULTTONULL 0x00000000
2293 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
2294 #define MONITOR_DEFAULTTONEAREST 0x00000002
2296 #define MONITORINFOF_PRIMARY 0x00000001
2298 #ifndef CCHDEVICENAME
2299 #define CCHDEVICENAME 32
2302 typedef struct tagMONITORINFO
2308 } MONITORINFO
, *LPMONITORINFO
;
2310 typedef struct tagMONITORINFOEXA
2313 CHAR szDevice
[CCHDEVICENAME
];
2314 } MONITORINFOEXA
, *LPMONITORINFOEXA
;
2316 typedef struct tagMONITORINFOEXW
2319 WCHAR szDevice
[CCHDEVICENAME
];
2320 } MONITORINFOEXW
, *LPMONITORINFOEXW
;
2322 DECL_WINELIB_TYPE_AW(MONITORINFOEX
)
2323 DECL_WINELIB_TYPE_AW(LPMONITORINFOEX
)
2325 typedef BOOL (CALLBACK
*MONITORENUMPROC
)(HMONITOR
,HDC
,LPRECT
,LPARAM
);
2327 #include "pshpack2.h"
2329 /* FIXME: use this instead of LPCVOID for CreateDialogIndirectParam
2330 and DialogBoxIndirectParam */
2331 typedef struct tagDLGTEMPLATE
2334 DWORD dwExtendedStyle
;
2342 typedef DLGTEMPLATE
*LPDLGTEMPLATEA
;
2343 typedef DLGTEMPLATE
*LPDLGTEMPLATEW
;
2344 DECL_WINELIB_TYPE_AW(LPDLGTEMPLATE
)
2345 typedef const DLGTEMPLATE
*LPCDLGTEMPLATEA
;
2346 typedef const DLGTEMPLATE
*LPCDLGTEMPLATEW
;
2347 DECL_WINELIB_TYPE_AW(LPCDLGTEMPLATE
)
2349 typedef struct tagDLGITEMTEMPLATE
2352 DWORD dwExtendedStyle
;
2360 typedef DLGITEMTEMPLATE
*PDLGITEMTEMPLATEA
;
2361 typedef DLGITEMTEMPLATE
*PDLGITEMTEMPLATEW
;
2362 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE
)
2363 typedef DLGITEMTEMPLATE
*LPDLGITEMTEMPLATEA
;
2364 typedef DLGITEMTEMPLATE
*LPDLGITEMTEMPLATEW
;
2365 DECL_WINELIB_TYPE_AW(LPDLGITEMTEMPLATE
)
2367 #include "poppack.h"
2369 /* CBT hook values */
2370 #define HCBT_MOVESIZE 0
2371 #define HCBT_MINMAX 1
2373 #define HCBT_CREATEWND 3
2374 #define HCBT_DESTROYWND 4
2375 #define HCBT_ACTIVATE 5
2376 #define HCBT_CLICKSKIPPED 6
2377 #define HCBT_KEYSKIPPED 7
2378 #define HCBT_SYSCOMMAND 8
2379 #define HCBT_SETFOCUS 9
2381 /* CBT hook structures */
2385 CREATESTRUCTA
*lpcs
;
2386 HWND hwndInsertAfter
;
2387 } CBT_CREATEWNDA
, *LPCBT_CREATEWNDA
;
2391 CREATESTRUCTW
*lpcs
;
2392 HWND hwndInsertAfter
;
2393 } CBT_CREATEWNDW
, *LPCBT_CREATEWNDW
;
2395 DECL_WINELIB_TYPE_AW(CBT_CREATEWND
)
2396 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND
)
2402 } CBTACTIVATESTRUCT
, *LPCBTACTIVATESTRUCT
;
2405 /* modifiers for RegisterHotKey */
2406 #define MOD_ALT 0x0001
2407 #define MOD_CONTROL 0x0002
2408 #define MOD_SHIFT 0x0004
2409 #define MOD_WIN 0x0008
2411 /* ids for RegisterHotKey */
2412 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
2413 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
2415 /* keybd_event flags */
2416 #define KEYEVENTF_EXTENDEDKEY 0x0001
2417 #define KEYEVENTF_KEYUP 0x0002
2419 /* mouse_event flags */
2420 #define MOUSEEVENTF_MOVE 0x0001
2421 #define MOUSEEVENTF_LEFTDOWN 0x0002
2422 #define MOUSEEVENTF_LEFTUP 0x0004
2423 #define MOUSEEVENTF_RIGHTDOWN 0x0008
2424 #define MOUSEEVENTF_RIGHTUP 0x0010
2425 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
2426 #define MOUSEEVENTF_MIDDLEUP 0x0040
2427 #define MOUSEEVENTF_WHEEL 0x0800
2428 #define MOUSEEVENTF_ABSOLUTE 0x8000
2430 /* ExitWindows() flags */
2431 #define EW_RESTARTWINDOWS 0x0042
2432 #define EW_REBOOTSYSTEM 0x0043
2433 #define EW_EXITANDEXECAPP 0x0044
2435 /* ExitWindowsEx() flags */
2436 #define EWX_LOGOFF 0
2437 #define EWX_SHUTDOWN 1
2438 #define EWX_REBOOT 2
2440 #define EWX_POWEROFF 8
2442 /* SetLastErrorEx types */
2443 #define SLE_ERROR 0x00000001
2444 #define SLE_MINORERROR 0x00000002
2445 #define SLE_WARNING 0x00000003
2447 /* Predefined resources */
2448 #define IDI_APPLICATIONA MAKEINTRESOURCEA(32512)
2449 #define IDI_APPLICATIONW MAKEINTRESOURCEW(32512)
2450 #define IDI_APPLICATION WINELIB_NAME_AW(IDI_APPLICATION)
2451 #define IDI_HANDA MAKEINTRESOURCEA(32513)
2452 #define IDI_HANDW MAKEINTRESOURCEW(32513)
2453 #define IDI_HAND WINELIB_NAME_AW(IDI_HAND)
2454 #define IDI_QUESTIONA MAKEINTRESOURCEA(32514)
2455 #define IDI_QUESTIONW MAKEINTRESOURCEW(32514)
2456 #define IDI_QUESTION WINELIB_NAME_AW(IDI_QUESTION)
2457 #define IDI_EXCLAMATIONA MAKEINTRESOURCEA(32515)
2458 #define IDI_EXCLAMATIONW MAKEINTRESOURCEW(32515)
2459 #define IDI_EXCLAMATION WINELIB_NAME_AW(IDI_EXCLAMATION)
2460 #define IDI_ASTERISKA MAKEINTRESOURCEA(32516)
2461 #define IDI_ASTERISKW MAKEINTRESOURCEW(32516)
2462 #define IDI_ASTERISK WINELIB_NAME_AW(IDI_ASTERISK)
2463 #define IDI_WINLOGOA MAKEINTRESOURCEA(32517)
2464 #define IDI_WINLOGOW MAKEINTRESOURCEW(32517)
2465 #define IDI_WINLOGO WINELIB_NAME_AW(IDI_WINLOGO)
2467 #define IDI_WARNING IDI_EXCLAMATION
2468 #define IDI_ERROR IDI_HAND
2469 #define IDI_INFORMATION IDI_ASTERISK
2471 #define IDC_ARROWA MAKEINTRESOURCEA(32512)
2472 #define IDC_ARROWW MAKEINTRESOURCEW(32512)
2473 #define IDC_ARROW WINELIB_NAME_AW(IDC_ARROW)
2474 #define IDC_IBEAMA MAKEINTRESOURCEA(32513)
2475 #define IDC_IBEAMW MAKEINTRESOURCEW(32513)
2476 #define IDC_IBEAM WINELIB_NAME_AW(IDC_IBEAM)
2477 #define IDC_WAITA MAKEINTRESOURCEA(32514)
2478 #define IDC_WAITW MAKEINTRESOURCEW(32514)
2479 #define IDC_WAIT WINELIB_NAME_AW(IDC_WAIT)
2480 #define IDC_CROSSA MAKEINTRESOURCEA(32515)
2481 #define IDC_CROSSW MAKEINTRESOURCEW(32515)
2482 #define IDC_CROSS WINELIB_NAME_AW(IDC_CROSS)
2483 #define IDC_UPARROWA MAKEINTRESOURCEA(32516)
2484 #define IDC_UPARROWW MAKEINTRESOURCEW(32516)
2485 #define IDC_UPARROW WINELIB_NAME_AW(IDC_UPARROW)
2486 #define IDC_SIZEA MAKEINTRESOURCEA(32640)
2487 #define IDC_SIZEW MAKEINTRESOURCEW(32640)
2488 #define IDC_SIZE WINELIB_NAME_AW(IDC_SIZE)
2489 #define IDC_ICONA MAKEINTRESOURCEA(32641)
2490 #define IDC_ICONW MAKEINTRESOURCEW(32641)
2491 #define IDC_ICON WINELIB_NAME_AW(IDC_ICON)
2492 #define IDC_SIZENWSEA MAKEINTRESOURCEA(32642)
2493 #define IDC_SIZENWSEW MAKEINTRESOURCEW(32642)
2494 #define IDC_SIZENWSE WINELIB_NAME_AW(IDC_SIZENWSE)
2495 #define IDC_SIZENESWA MAKEINTRESOURCEA(32643)
2496 #define IDC_SIZENESWW MAKEINTRESOURCEW(32643)
2497 #define IDC_SIZENESW WINELIB_NAME_AW(IDC_SIZENESW)
2498 #define IDC_SIZEWEA MAKEINTRESOURCEA(32644)
2499 #define IDC_SIZEWEW MAKEINTRESOURCEW(32644)
2500 #define IDC_SIZEWE WINELIB_NAME_AW(IDC_SIZEWE)
2501 #define IDC_SIZENSA MAKEINTRESOURCEA(32645)
2502 #define IDC_SIZENSW MAKEINTRESOURCEW(32645)
2503 #define IDC_SIZENS WINELIB_NAME_AW(IDC_SIZENS)
2504 #define IDC_SIZEALLA MAKEINTRESOURCEA(32646)
2505 #define IDC_SIZEALLW MAKEINTRESOURCEW(32646)
2506 #define IDC_SIZEALL WINELIB_NAME_AW(IDC_SIZEALL)
2507 #define IDC_NOA MAKEINTRESOURCEA(32648)
2508 #define IDC_NOW MAKEINTRESOURCEW(32648)
2509 #define IDC_NO WINELIB_NAME_AW(IDC_NO)
2510 #define IDC_HANDA MAKEINTRESOURCEA(32649)
2511 #define IDC_HANDW MAKEINTRESOURCEW(32649)
2512 #define IDC_HAND WINELIB_NAME_AW(IDC_HAND)
2513 #define IDC_APPSTARTINGA MAKEINTRESOURCEA(32650)
2514 #define IDC_APPSTARTINGW MAKEINTRESOURCEW(32650)
2515 #define IDC_APPSTARTING WINELIB_NAME_AW(IDC_APPSTARTING)
2516 #define IDC_HELPA MAKEINTRESOURCEA(32651)
2517 #define IDC_HELPW MAKEINTRESOURCEW(32651)
2518 #define IDC_HELP WINELIB_NAME_AW(IDC_HELP)
2520 #define MNC_IGNORE 0
2522 #define MNC_EXECUTE 2
2523 #define MNC_SELECT 3
2525 /* SystemParametersInfo */
2526 /* defines below are for all win versions */
2527 #define SPI_GETBEEP 1
2528 #define SPI_SETBEEP 2
2529 #define SPI_GETMOUSE 3
2530 #define SPI_SETMOUSE 4
2531 #define SPI_GETBORDER 5
2532 #define SPI_SETBORDER 6
2533 #define SPI_GETKEYBOARDSPEED 10
2534 #define SPI_SETKEYBOARDSPEED 11
2535 #define SPI_LANGDRIVER 12
2536 #define SPI_ICONHORIZONTALSPACING 13
2537 #define SPI_GETSCREENSAVETIMEOUT 14
2538 #define SPI_SETSCREENSAVETIMEOUT 15
2539 #define SPI_GETSCREENSAVEACTIVE 16
2540 #define SPI_SETSCREENSAVEACTIVE 17
2541 #define SPI_GETGRIDGRANULARITY 18
2542 #define SPI_SETGRIDGRANULARITY 19
2543 #define SPI_SETDESKWALLPAPER 20
2544 #define SPI_SETDESKPATTERN 21
2545 #define SPI_GETKEYBOARDDELAY 22
2546 #define SPI_SETKEYBOARDDELAY 23
2547 #define SPI_ICONVERTICALSPACING 24
2548 #define SPI_GETICONTITLEWRAP 25
2549 #define SPI_SETICONTITLEWRAP 26
2550 #define SPI_GETMENUDROPALIGNMENT 27
2551 #define SPI_SETMENUDROPALIGNMENT 28
2552 #define SPI_SETDOUBLECLKWIDTH 29
2553 #define SPI_SETDOUBLECLKHEIGHT 30
2554 #define SPI_GETICONTITLELOGFONT 31
2555 #define SPI_SETDOUBLECLICKTIME 32
2556 #define SPI_SETMOUSEBUTTONSWAP 33
2557 #define SPI_SETICONTITLELOGFONT 34
2558 #define SPI_GETFASTTASKSWITCH 35
2559 #define SPI_SETFASTTASKSWITCH 36
2560 #define SPI_SETDRAGFULLWINDOWS 37
2561 #define SPI_GETDRAGFULLWINDOWS 38
2563 #define SPI_GETFILTERKEYS 50
2564 #define SPI_SETFILTERKEYS 51
2565 #define SPI_GETTOGGLEKEYS 52
2566 #define SPI_SETTOGGLEKEYS 53
2567 #define SPI_GETMOUSEKEYS 54
2568 #define SPI_SETMOUSEKEYS 55
2569 #define SPI_GETSHOWSOUNDS 56
2570 #define SPI_SETSHOWSOUNDS 57
2571 #define SPI_GETSTICKYKEYS 58
2572 #define SPI_SETSTICKYKEYS 59
2573 #define SPI_GETACCESSTIMEOUT 60
2574 #define SPI_SETACCESSTIMEOUT 61
2576 #define SPI_GETSOUNDSENTRY 64
2577 #define SPI_SETSOUNDSENTRY 65
2579 /* defines below are for all win versions WINVER >= 0x0400 */
2580 #define SPI_SETDRAGFULLWINDOWS 37
2581 #define SPI_GETDRAGFULLWINDOWS 38
2582 #define SPI_GETNONCLIENTMETRICS 41
2583 #define SPI_SETNONCLIENTMETRICS 42
2584 #define SPI_GETMINIMIZEDMETRICS 43
2585 #define SPI_SETMINIMIZEDMETRICS 44
2586 #define SPI_GETICONMETRICS 45
2587 #define SPI_SETICONMETRICS 46
2588 #define SPI_SETWORKAREA 47
2589 #define SPI_GETWORKAREA 48
2590 #define SPI_SETPENWINDOWS 49
2592 #define SPI_GETSERIALKEYS 62
2593 #define SPI_SETSERIALKEYS 63
2594 #define SPI_GETHIGHCONTRAST 66
2595 #define SPI_SETHIGHCONTRAST 67
2596 #define SPI_GETKEYBOARDPREF 68
2597 #define SPI_SETKEYBOARDPREF 69
2598 #define SPI_GETSCREENREADER 70
2599 #define SPI_SETSCREENREADER 71
2600 #define SPI_GETANIMATION 72
2601 #define SPI_SETANIMATION 73
2602 #define SPI_GETFONTSMOOTHING 74
2603 #define SPI_SETFONTSMOOTHING 75
2604 #define SPI_SETDRAGWIDTH 76
2605 #define SPI_SETDRAGHEIGHT 77
2606 #define SPI_SETHANDHELD 78
2607 #define SPI_GETLOWPOWERTIMEOUT 79
2608 #define SPI_GETPOWEROFFTIMEOUT 80
2609 #define SPI_SETLOWPOWERTIMEOUT 81
2610 #define SPI_SETPOWEROFFTIMEOUT 82
2611 #define SPI_GETLOWPOWERACTIVE 83
2612 #define SPI_GETPOWEROFFACTIVE 84
2613 #define SPI_SETLOWPOWERACTIVE 85
2614 #define SPI_SETPOWEROFFACTIVE 86
2615 #define SPI_SETCURSORS 87
2616 #define SPI_SETICONS 88
2617 #define SPI_GETDEFAULTINPUTLANG 89
2618 #define SPI_SETDEFAULTINPUTLANG 90
2619 #define SPI_SETLANGTOGGLE 91
2620 #define SPI_GETWINDOWSEXTENSION 92
2621 #define SPI_SETMOUSETRAILS 93
2622 #define SPI_GETMOUSETRAILS 94
2623 #define SPI_SETSCREENSAVERRUNNING 97
2624 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
2626 /* defines below are for all win versions (_WIN32_WINNT >= 0x0400) ||
2627 * (_WIN32_WINDOWS > 0x0400) */
2628 #define SPI_GETMOUSEHOVERWIDTH 98
2629 #define SPI_SETMOUSEHOVERWIDTH 99
2630 #define SPI_GETMOUSEHOVERHEIGHT 100
2631 #define SPI_SETMOUSEHOVERHEIGHT 101
2632 #define SPI_GETMOUSEHOVERTIME 102
2633 #define SPI_SETMOUSEHOVERTIME 103
2634 #define SPI_GETWHEELSCROLLLINES 104
2635 #define SPI_SETWHEELSCROLLLINES 105
2636 #define SPI_GETMENUSHOWDELAY 106
2637 #define SPI_SETMENUSHOWDELAY 107
2639 #define SPI_GETSHOWIMEUI 110
2640 #define SPI_SETSHOWIMEUI 111
2642 /* defines below are for all win versions WINVER >= 0x0500 */
2643 #define SPI_GETMOUSESPEED 112
2644 #define SPI_SETMOUSESPEED 113
2645 #define SPI_GETSCREENSAVERRUNNING 114
2646 #define SPI_GETDESKWALLPAPER 115
2648 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
2649 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
2650 #define SPI_GETMENUANIMATION 0x1002
2651 #define SPI_SETMENUANIMATION 0x1003
2652 #define SPI_GETCOMBOBOXANIMATION 0x1004
2653 #define SPI_SETCOMBOBOXANIMATION 0x1005
2654 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2655 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2656 #define SPI_GETGRADIENTCAPTIONS 0x1008
2657 #define SPI_SETGRADIENTCAPTIONS 0x1009
2658 #define SPI_GETMENUUNDERLINES 0x100A
2659 #define SPI_SETMENUUNDERLINES 0x100B
2660 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
2661 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
2662 #define SPI_GETHOTTRACKING 0x100E
2663 #define SPI_SETHOTTRACKING 0x100F
2664 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2665 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2666 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2667 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2668 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2669 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2671 /* SystemParametersInfo flags */
2673 #define SPIF_UPDATEINIFILE 1
2674 #define SPIF_SENDWININICHANGE 2
2675 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2677 #if defined(_WINGDI_) && !defined(NOGDI)
2685 LOGFONTA lfCaptionFont
;
2686 INT iSmCaptionWidth
;
2687 INT iSmCaptionHeight
;
2688 LOGFONTA lfSmCaptionFont
;
2691 LOGFONTA lfMenuFont
;
2692 LOGFONTA lfStatusFont
;
2693 LOGFONTA lfMessageFont
;
2694 } NONCLIENTMETRICSA
, *PNONCLIENTMETRICSA
, *LPNONCLIENTMETRICSA
;
2703 LOGFONTW lfCaptionFont
;
2704 INT iSmCaptionWidth
;
2705 INT iSmCaptionHeight
;
2706 LOGFONTW lfSmCaptionFont
;
2709 LOGFONTW lfMenuFont
;
2710 LOGFONTW lfStatusFont
;
2711 LOGFONTW lfMessageFont
;
2712 } NONCLIENTMETRICSW
, *PNONCLIENTMETRICSW
, *LPNONCLIENTMETRICSW
;
2714 DECL_WINELIB_TYPE_AW(NONCLIENTMETRICS
)
2715 DECL_WINELIB_TYPE_AW(PNONCLIENTMETRICS
)
2716 DECL_WINELIB_TYPE_AW(LPNONCLIENTMETRICS
)
2718 typedef struct tagICONMETRICSA
{
2724 } ICONMETRICSA
, *PICONMETRICSA
, *LPICONMETRICSA
;
2726 typedef struct tagICONMETRICSW
{
2732 } ICONMETRICSW
, *PICONMETRICSW
, *LPICONMETRICSW
;
2734 DECL_WINELIB_TYPE_AW(ICONMETRICS
)
2735 DECL_WINELIB_TYPE_AW(PICONMETRICS
)
2736 DECL_WINELIB_TYPE_AW(LPICONMETRICS
)
2737 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
2739 #define ARW_BOTTOMLEFT 0x0000L
2740 #define ARW_BOTTOMRIGHT 0x0001L
2741 #define ARW_TOPLEFT 0x0002L
2742 #define ARW_TOPRIGHT 0x0003L
2743 #define ARW_STARTMASK 0x0003L
2744 #define ARW_STARTRIGHT 0x0001L
2745 #define ARW_STARTTOP 0x0002L
2747 #define ARW_LEFT 0x0000L
2748 #define ARW_RIGHT 0x0000L
2749 #define ARW_UP 0x0004L
2750 #define ARW_DOWN 0x0004L
2751 #define ARW_HIDE 0x0008L
2753 typedef struct tagMINIMIZEDMETRICS
{
2759 } MINIMIZEDMETRICS
, *PMINIMIZEDMETRICS
, *LPMINIMIZEDMETRICS
;
2762 #define WS_OVERLAPPED 0x00000000L
2763 #define WS_POPUP 0x80000000L
2764 #define WS_CHILD 0x40000000L
2765 #define WS_MINIMIZE 0x20000000L
2766 #define WS_VISIBLE 0x10000000L
2767 #define WS_DISABLED 0x08000000L
2768 #define WS_CLIPSIBLINGS 0x04000000L
2769 #define WS_CLIPCHILDREN 0x02000000L
2770 #define WS_MAXIMIZE 0x01000000L
2771 #define WS_CAPTION 0x00C00000L
2772 #define WS_BORDER 0x00800000L
2773 #define WS_DLGFRAME 0x00400000L
2774 #define WS_VSCROLL 0x00200000L
2775 #define WS_HSCROLL 0x00100000L
2776 #define WS_SYSMENU 0x00080000L
2777 #define WS_THICKFRAME 0x00040000L
2778 #define WS_GROUP 0x00020000L
2779 #define WS_TABSTOP 0x00010000L
2780 #define WS_MINIMIZEBOX 0x00020000L
2781 #define WS_MAXIMIZEBOX 0x00010000L
2782 #define WS_TILED WS_OVERLAPPED
2783 #define WS_ICONIC WS_MINIMIZE
2784 #define WS_SIZEBOX WS_THICKFRAME
2785 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2786 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2787 #define WS_CHILDWINDOW (WS_CHILD)
2788 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2790 /* Window extended styles */
2791 #define WS_EX_DLGMODALFRAME 0x00000001L
2792 #define WS_EX_DRAGDETECT 0x00000002L
2793 #define WS_EX_NOPARENTNOTIFY 0x00000004L
2794 #define WS_EX_TOPMOST 0x00000008L
2795 #define WS_EX_ACCEPTFILES 0x00000010L
2796 #define WS_EX_TRANSPARENT 0x00000020L
2798 /* New Win95/WinNT4 styles */
2799 #define WS_EX_MDICHILD 0x00000040L
2800 #define WS_EX_TOOLWINDOW 0x00000080L
2801 #define WS_EX_WINDOWEDGE 0x00000100L
2802 #define WS_EX_CLIENTEDGE 0x00000200L
2803 #define WS_EX_CONTEXTHELP 0x00000400L
2804 #define WS_EX_RIGHT 0x00001000L
2805 #define WS_EX_LEFT 0x00000000L
2806 #define WS_EX_RTLREADING 0x00002000L
2807 #define WS_EX_LTRREADING 0x00000000L
2808 #define WS_EX_LEFTSCROLLBAR 0x00004000L
2809 #define WS_EX_RIGHTSCROLLBAR 0x00000000L
2810 #define WS_EX_CONTROLPARENT 0x00010000L
2811 #define WS_EX_STATICEDGE 0x00020000L
2812 #define WS_EX_APPWINDOW 0x00040000L
2814 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
2815 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
2817 /* New Win2000 styles */
2818 #define WS_EX_LAYERED 0x00080000L
2820 /* WINE internal... */
2821 #define WS_EX_TRAYWINDOW 0x80000000L
2822 #define WS_EX_MANAGED 0x40000000L /* Window managed by the window system */
2824 /* Window scrolling */
2825 #define SW_SCROLLCHILDREN 0x0001
2826 #define SW_INVALIDATE 0x0002
2827 #define SW_ERASE 0x0004
2829 /* CreateWindow() coordinates */
2830 #define CW_USEDEFAULT ((INT)0x80000000)
2832 /* ChildWindowFromPointEx Flags */
2833 #define CWP_ALL 0x0000
2834 #define CWP_SKIPINVISIBLE 0x0001
2835 #define CWP_SKIPDISABLED 0x0002
2836 #define CWP_SKIPTRANSPARENT 0x0004
2838 /* PeekMessage() options */
2839 #define PM_NOREMOVE 0x0000
2840 #define PM_REMOVE 0x0001
2841 #define PM_NOYIELD 0x0002
2843 /* AnimateWindow() flags */
2844 #define AW_SLIDE 0x00040000
2845 #define AW_ACTIVATE 0x00020000
2846 #define AW_BLEND 0x00080000
2847 #define AW_HIDE 0x00010000
2848 #define AW_CENTER 0x00000010
2849 #define AW_HOR_POSITIVE 0x00000001
2850 #define AW_HOR_NEGATIVE 0x00000002
2851 #define AW_VER_POSITIVE 0x00000004
2852 #define AW_VER_NEGATIVE 0x00000008
2854 /* WM_SHOWWINDOW wParam codes */
2855 #define SW_PARENTCLOSING 1
2856 #define SW_OTHERMAXIMIZED 2
2857 #define SW_PARENTOPENING 3
2858 #define SW_OTHERRESTORED 4
2860 /* ShowWindow() codes */
2862 #define SW_SHOWNORMAL 1
2864 #define SW_SHOWMINIMIZED 2
2865 #define SW_SHOWMAXIMIZED 3
2866 #define SW_MAXIMIZE 3
2867 #define SW_SHOWNOACTIVATE 4
2869 #define SW_MINIMIZE 6
2870 #define SW_SHOWMINNOACTIVE 7
2872 #define SW_RESTORE 9
2873 #define SW_SHOWDEFAULT 10
2874 #define SW_FORCEMINIMIZE 11
2876 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
2878 /* WM_SIZE message wParam values */
2879 #define SIZE_RESTORED 0
2880 #define SIZE_MINIMIZED 1
2881 #define SIZE_MAXIMIZED 2
2882 #define SIZE_MAXSHOW 3
2883 #define SIZE_MAXHIDE 4
2884 #define SIZENORMAL SIZE_RESTORED
2885 #define SIZEICONIC SIZE_MINIMIZED
2886 #define SIZEFULLSCREEN SIZE_MAXIMIZED
2887 #define SIZEZOOMSHOW SIZE_MAXSHOW
2888 #define SIZEZOOMHIDE SIZE_MAXHIDE
2890 /* SetWindowPos() and WINDOWPOS flags */
2891 #define SWP_NOSIZE 0x0001
2892 #define SWP_NOMOVE 0x0002
2893 #define SWP_NOZORDER 0x0004
2894 #define SWP_NOREDRAW 0x0008
2895 #define SWP_NOACTIVATE 0x0010
2896 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2897 #define SWP_SHOWWINDOW 0x0040
2898 #define SWP_HIDEWINDOW 0x0080
2899 #define SWP_NOCOPYBITS 0x0100
2900 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2902 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2903 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2905 #define SWP_NOSENDCHANGING 0x0400
2906 #define SWP_DEFERERASE 0x2000
2907 #define SWP_ASYNCWINDOWPOS 0x4000
2909 #define HWND_DESKTOP ((HWND)0)
2910 #define HWND_BROADCAST ((HWND)0xffff)
2912 /* SetWindowPos() hwndInsertAfter field values */
2913 #define HWND_TOP ((HWND)0)
2914 #define HWND_BOTTOM ((HWND)1)
2915 #define HWND_TOPMOST ((HWND)-1)
2916 #define HWND_NOTOPMOST ((HWND)-2)
2917 #define HWND_MESSAGE ((HWND)-3)
2920 #define DCX_WINDOW 0x00000001
2921 #define DCX_CACHE 0x00000002
2922 #define DCX_NORESETATTRS 0x00000004
2923 #define DCX_CLIPCHILDREN 0x00000008
2924 #define DCX_CLIPSIBLINGS 0x00000010
2925 #define DCX_PARENTCLIP 0x00000020
2926 #define DCX_EXCLUDERGN 0x00000040
2927 #define DCX_INTERSECTRGN 0x00000080
2928 #define DCX_EXCLUDEUPDATE 0x00000100
2929 #define DCX_INTERSECTUPDATE 0x00000200
2930 #define DCX_LOCKWINDOWUPDATE 0x00000400
2931 #define DCX_USESTYLE 0x00010000
2932 #define DCX_NORECOMPUTE 0x00100000
2933 #define DCX_VALIDATE 0x00200000
2935 #define MF_INSERT 0x0000
2936 #define MF_CHANGE 0x0080
2937 #define MF_APPEND 0x0100
2938 #define MF_DELETE 0x0200
2939 #define MF_REMOVE 0x1000
2940 #define MF_END 0x0080
2942 #define MF_ENABLED 0x0000
2943 #define MF_GRAYED 0x0001
2944 #define MF_DISABLED 0x0002
2945 #define MF_STRING 0x0000
2946 #define MF_BITMAP 0x0004
2947 #define MF_UNCHECKED 0x0000
2948 #define MF_CHECKED 0x0008
2949 #define MF_POPUP 0x0010
2950 #define MF_MENUBARBREAK 0x0020
2951 #define MF_MENUBREAK 0x0040
2952 #define MF_UNHILITE 0x0000
2953 #define MF_HILITE 0x0080
2954 #define MF_OWNERDRAW 0x0100
2955 #define MF_USECHECKBITMAPS 0x0200
2956 #define MF_BYCOMMAND 0x0000
2957 #define MF_BYPOSITION 0x0400
2958 #define MF_SEPARATOR 0x0800
2959 #define MF_DEFAULT 0x1000
2960 #define MF_SYSMENU 0x2000
2961 #define MF_HELP 0x4000
2962 #define MF_RIGHTJUSTIFY 0x4000
2963 #define MF_MOUSESELECT 0x8000
2965 /* Flags for extended menu item types. */
2966 #define MFT_STRING MF_STRING
2967 #define MFT_BITMAP MF_BITMAP
2968 #define MFT_MENUBARBREAK MF_MENUBARBREAK
2969 #define MFT_MENUBREAK MF_MENUBREAK
2970 #define MFT_OWNERDRAW MF_OWNERDRAW
2971 #define MFT_RADIOCHECK 0x00000200L
2972 #define MFT_SEPARATOR MF_SEPARATOR
2973 #define MFT_RIGHTORDER 0x00002000L
2974 #define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
2976 /* Flags for extended menu item states. */
2977 #define MFS_GRAYED 0x00000003L
2978 #define MFS_DISABLED MFS_GRAYED
2979 #define MFS_CHECKED MF_CHECKED
2980 #define MFS_HILITE MF_HILITE
2981 #define MFS_ENABLED MF_ENABLED
2982 #define MFS_UNCHECKED MF_UNCHECKED
2983 #define MFS_UNHILITE MF_UNHILITE
2984 #define MFS_DEFAULT MF_DEFAULT
2985 #define MFS_MASK 0x0000108BL
2986 #define MFS_HOTTRACKDRAWN 0x10000000L
2987 #define MFS_CACHEDBMP 0x20000000L
2988 #define MFS_BOTTOMGAPDROP 0x40000000L
2989 #define MFS_TOPGAPDROP 0x80000000L
2990 #define MFS_GAPDROP 0xC0000000L
2992 /* for GetMenuDefaultItem */
2993 #define GMDI_USEDISABLED 0x0001L
2994 #define GMDI_GOINTOPOPUPS 0x0002L
3000 #define DT_VCENTER 4
3002 #define DT_WORDBREAK 16
3003 #define DT_SINGLELINE 32
3004 #define DT_EXPANDTABS 64
3005 #define DT_TABSTOP 128
3006 #define DT_NOCLIP 256
3007 #define DT_EXTERNALLEADING 512
3008 #define DT_CALCRECT 1024
3009 #define DT_NOPREFIX 2048
3010 #define DT_INTERNAL 4096
3012 /* DrawCaption()/DrawCaptionTemp() flags */
3013 #define DC_ACTIVE 0x0001
3014 #define DC_SMALLCAP 0x0002
3015 #define DC_ICON 0x0004
3016 #define DC_TEXT 0x0008
3017 #define DC_INBUTTON 0x0010
3019 /* DrawEdge() flags */
3020 #define BDR_RAISEDOUTER 0x0001
3021 #define BDR_SUNKENOUTER 0x0002
3022 #define BDR_RAISEDINNER 0x0004
3023 #define BDR_SUNKENINNER 0x0008
3025 #define BDR_OUTER 0x0003
3026 #define BDR_INNER 0x000c
3027 #define BDR_RAISED 0x0005
3028 #define BDR_SUNKEN 0x000a
3030 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
3031 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
3032 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
3033 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
3036 #define BF_LEFT 0x0001
3037 #define BF_TOP 0x0002
3038 #define BF_RIGHT 0x0004
3039 #define BF_BOTTOM 0x0008
3040 #define BF_DIAGONAL 0x0010
3041 #define BF_MIDDLE 0x0800 /* Fill in the middle */
3042 #define BF_SOFT 0x1000 /* For softer buttons */
3043 #define BF_ADJUST 0x2000 /* Calculate the space left over */
3044 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
3045 #define BF_MONO 0x8000 /* For monochrome borders */
3046 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
3047 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
3048 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
3049 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
3050 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
3051 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
3052 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
3053 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
3054 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
3056 /* DrawFrameControl() uType's */
3058 #define DFC_CAPTION 1
3060 #define DFC_SCROLL 3
3061 #define DFC_BUTTON 4
3065 #define DFCS_CAPTIONCLOSE 0x0000
3066 #define DFCS_CAPTIONMIN 0x0001
3067 #define DFCS_CAPTIONMAX 0x0002
3068 #define DFCS_CAPTIONRESTORE 0x0003
3069 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
3071 #define DFCS_MENUARROW 0x0000
3072 #define DFCS_MENUCHECK 0x0001
3073 #define DFCS_MENUBULLET 0x0002
3074 #define DFCS_MENUARROWRIGHT 0x0004
3076 #define DFCS_SCROLLUP 0x0000
3077 #define DFCS_SCROLLDOWN 0x0001
3078 #define DFCS_SCROLLLEFT 0x0002
3079 #define DFCS_SCROLLRIGHT 0x0003
3080 #define DFCS_SCROLLCOMBOBOX 0x0005
3081 #define DFCS_SCROLLSIZEGRIP 0x0008
3082 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
3084 #define DFCS_BUTTONCHECK 0x0000
3085 #define DFCS_BUTTONRADIOIMAGE 0x0001
3086 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
3087 #define DFCS_BUTTONRADIO 0x0004
3088 #define DFCS_BUTTON3STATE 0x0008
3089 #define DFCS_BUTTONPUSH 0x0010
3091 /* additional state of the control */
3093 #define DFCS_INACTIVE 0x0100
3094 #define DFCS_PUSHED 0x0200
3095 #define DFCS_CHECKED 0x0400
3096 #define DFCS_TRANSPARENT 0x0800
3097 #define DFCS_HOT 0x1000
3098 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
3099 #define DFCS_FLAT 0x4000
3100 #define DFCS_MONO 0x8000
3104 #define DST_COMPLEX 0x0000
3105 #define DST_TEXT 0x0001
3106 #define DST_PREFIXTEXT 0x0002
3107 #define DST_ICON 0x0003
3108 #define DST_BITMAP 0x0004
3111 #define DSS_NORMAL 0x0000
3112 #define DSS_UNION 0x0010 /* Gray string appearance */
3113 #define DSS_DISABLED 0x0020
3114 #define DSS_DEFAULT 0x0040 /* Make it bold */
3115 #define DSS_MONO 0x0080
3116 #define DSS_RIGHT 0x8000
3127 RECT rcItem WINE_PACKED
;
3128 DWORD itemData WINE_PACKED
;
3129 } DRAWITEMSTRUCT
, *PDRAWITEMSTRUCT
, *LPDRAWITEMSTRUCT
;
3140 } MEASUREITEMSTRUCT
, *PMEASUREITEMSTRUCT
, *LPMEASUREITEMSTRUCT
;
3150 } DELETEITEMSTRUCT
, *PDELETEITEMSTRUCT
, *LPDELETEITEMSTRUCT
;
3163 } COMPAREITEMSTRUCT
, *PCOMPAREITEMSTRUCT
, *LPCOMPAREITEMSTRUCT
;
3166 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
3167 #define KF_EXTENDED 0x0100
3168 #define KF_DLGMODE 0x0800
3169 #define KF_MENUMODE 0x1000
3170 #define KF_ALTDOWN 0x2000
3171 #define KF_REPEAT 0x4000
3172 #define KF_UP 0x8000
3174 /* Virtual key codes */
3175 #define VK_LBUTTON 0x01
3176 #define VK_RBUTTON 0x02
3177 #define VK_CANCEL 0x03
3178 #define VK_MBUTTON 0x04
3179 #define VK_XBUTTON1 0x05
3180 #define VK_XBUTTON2 0x06
3181 /* 0x07 Undefined */
3182 #define VK_BACK 0x08
3184 /* 0x0A-0x0B Undefined */
3185 #define VK_CLEAR 0x0C
3186 #define VK_RETURN 0x0D
3187 /* 0x0E-0x0F Undefined */
3188 #define VK_SHIFT 0x10
3189 #define VK_CONTROL 0x11
3190 #define VK_MENU 0x12
3191 #define VK_PAUSE 0x13
3192 #define VK_CAPITAL 0x14
3193 /* 0x15-0x19 Reserved for Kanji systems */
3194 /* 0x1A Undefined */
3195 #define VK_ESCAPE 0x1B
3196 /* 0x1C-0x1F Reserved for Kanji systems */
3197 #define VK_SPACE 0x20
3198 #define VK_PRIOR 0x21
3199 #define VK_NEXT 0x22
3201 #define VK_HOME 0x24
3202 #define VK_LEFT 0x25
3204 #define VK_RIGHT 0x27
3205 #define VK_DOWN 0x28
3206 #define VK_SELECT 0x29
3207 #define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */
3208 #define VK_EXECUTE 0x2B
3209 #define VK_SNAPSHOT 0x2C
3210 #define VK_INSERT 0x2D
3211 #define VK_DELETE 0x2E
3212 #define VK_HELP 0x2F
3223 /* 0x3A-0x40 Undefined */
3251 #define VK_LWIN 0x5B
3252 #define VK_RWIN 0x5C
3253 #define VK_APPS 0x5D
3254 /* 0x5E-0x5F Unassigned */
3255 #define VK_NUMPAD0 0x60
3256 #define VK_NUMPAD1 0x61
3257 #define VK_NUMPAD2 0x62
3258 #define VK_NUMPAD3 0x63
3259 #define VK_NUMPAD4 0x64
3260 #define VK_NUMPAD5 0x65
3261 #define VK_NUMPAD6 0x66
3262 #define VK_NUMPAD7 0x67
3263 #define VK_NUMPAD8 0x68
3264 #define VK_NUMPAD9 0x69
3265 #define VK_MULTIPLY 0x6A
3267 #define VK_SEPARATOR 0x6C
3268 #define VK_SUBTRACT 0x6D
3269 #define VK_DECIMAL 0x6E
3270 #define VK_DIVIDE 0x6F
3295 /* 0x88-0x8F Unassigned */
3296 #define VK_NUMLOCK 0x90
3297 #define VK_SCROLL 0x91
3298 /* 0x92-0x9F Unassigned */
3300 * differencing between right and left shift/control/alt key.
3301 * Used only by GetAsyncKeyState() and GetKeyState().
3303 #define VK_LSHIFT 0xA0
3304 #define VK_RSHIFT 0xA1
3305 #define VK_LCONTROL 0xA2
3306 #define VK_RCONTROL 0xA3
3307 #define VK_LMENU 0xA4
3308 #define VK_RMENU 0xA5
3309 /* 0xA6-0xB9 Unassigned */
3310 #define VK_OEM_1 0xBA
3311 #define VK_OEM_PLUS 0xBB
3312 #define VK_OEM_COMMA 0xBC
3313 #define VK_OEM_MINUS 0xBD
3314 #define VK_OEM_PERIOD 0xBE
3315 #define VK_OEM_2 0xBF
3316 #define VK_OEM_3 0xC0
3317 /* 0xC1-0xDA Unassigned */
3318 #define VK_OEM_4 0xDB
3319 #define VK_OEM_5 0xDC
3320 #define VK_OEM_6 0xDD
3321 #define VK_OEM_7 0xDE
3322 #define VK_OEM_8 0xDF
3323 /* 0xE0 OEM specific */
3324 #define VK_OEM_AX 0xE1 /* "AX" key on Japanese AX keyboard */
3325 #define VK_OEM_102 0xE2 /* "<>" or "\|" on RT 102-key keyboard */
3326 #define VK_ICO_HELP 0xE3 /* Help key on ICO */
3327 #define VK_ICO_00 0xE4 /* 00 key on ICO */
3328 #define VK_PROCESSKEY 0xE5
3330 /* 0xE6 OEM specific */
3331 /* 0xE7-0xE8 Unassigned */
3332 /* 0xE9-0xF5 OEM specific */
3334 #define VK_ATTN 0xF6
3335 #define VK_CRSEL 0xF7
3336 #define VK_EXSEL 0xF8
3337 #define VK_EREOF 0xF9
3338 #define VK_PLAY 0xFA
3339 #define VK_ZOOM 0xFB
3340 #define VK_NONAME 0xFC
3342 #define VK_OEM_CLEAR 0xFE
3344 /* Key status flags for mouse events */
3345 #define MK_LBUTTON 0x0001
3346 #define MK_RBUTTON 0x0002
3347 #define MK_SHIFT 0x0004
3348 #define MK_CONTROL 0x0008
3349 #define MK_MBUTTON 0x0010
3350 #define MK_XBUTTON1 0x0020
3351 #define MK_XBUTTON2 0x0040
3354 #define WM_MOUSEHOVER 0x02A1
3355 #define WM_MOUSELEAVE 0x02A3
3357 #define TME_HOVER 0x00000001
3358 #define TME_LEAVE 0x00000002
3359 #define TME_QUERY 0x40000000
3360 #define TME_CANCEL 0x80000000
3362 #define HOVER_DEFAULT 0xFFFFFFFF
3364 typedef struct tagTRACKMOUSEEVENT
{
3369 } TRACKMOUSEEVENT
, *LPTRACKMOUSEEVENT
;
3371 /* Queue status flags */
3372 #define QS_KEY 0x0001
3373 #define QS_MOUSEMOVE 0x0002
3374 #define QS_MOUSEBUTTON 0x0004
3375 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
3376 #define QS_POSTMESSAGE 0x0008
3377 #define QS_TIMER 0x0010
3378 #define QS_PAINT 0x0020
3379 #define QS_SENDMESSAGE 0x0040
3380 #define QS_HOTKEY 0x0080
3381 #define QS_INPUT (QS_MOUSE | QS_KEY)
3382 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
3383 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE)
3385 /* Extra (undocumented) queue wake bits - see "Undoc. Windows" */
3386 #define QS_SMRESULT 0x8000
3388 /* InSendMessageEx flags */
3389 #define ISMEX_NOSEND 0x00000000
3390 #define ISMEX_SEND 0x00000001
3391 #define ISMEX_NOTIFY 0x00000002
3392 #define ISMEX_CALLBACK 0x00000004
3393 #define ISMEX_REPLIED 0x00000008
3395 #define DDL_READWRITE 0x0000
3396 #define DDL_READONLY 0x0001
3397 #define DDL_HIDDEN 0x0002
3398 #define DDL_SYSTEM 0x0004
3399 #define DDL_DIRECTORY 0x0010
3400 #define DDL_ARCHIVE 0x0020
3402 #define DDL_POSTMSGS 0x2000
3403 #define DDL_DRIVES 0x4000
3404 #define DDL_EXCLUSIVE 0x8000
3406 /* Shell hook values */
3407 #define HSHELL_WINDOWCREATED 1
3408 #define HSHELL_WINDOWDESTROYED 2
3409 #define HSHELL_ACTIVATESHELLWINDOW 3
3411 /* Predefined Clipboard Formats */
3414 #define CF_METAFILEPICT 3
3418 #define CF_OEMTEXT 7
3420 #define CF_PALETTE 9
3421 #define CF_PENDATA 10
3424 #define CF_UNICODETEXT 13
3425 #define CF_ENHMETAFILE 14
3427 #define CF_LOCALE 16
3431 #define CF_OWNERDISPLAY 0x0080
3432 #define CF_DSPTEXT 0x0081
3433 #define CF_DSPBITMAP 0x0082
3434 #define CF_DSPMETAFILEPICT 0x0083
3435 #define CF_DSPENHMETAFILE 0x008E
3437 /* "Private" formats don't get GlobalFree()'d */
3438 #define CF_PRIVATEFIRST 0x0200
3439 #define CF_PRIVATELAST 0x02FF
3441 /* "GDIOBJ" formats do get DeleteObject()'d */
3442 #define CF_GDIOBJFIRST 0x0300
3443 #define CF_GDIOBJLAST 0x03FF
3446 /* types of LoadImage */
3447 #define IMAGE_BITMAP 0
3448 #define IMAGE_ICON 1
3449 #define IMAGE_CURSOR 2
3450 #define IMAGE_ENHMETAFILE 3
3452 /* loadflags to LoadImage */
3453 #define LR_DEFAULTCOLOR 0x0000
3454 #define LR_MONOCHROME 0x0001
3455 #define LR_COLOR 0x0002
3456 #define LR_COPYRETURNORG 0x0004
3457 #define LR_COPYDELETEORG 0x0008
3458 #define LR_LOADFROMFILE 0x0010
3459 #define LR_LOADTRANSPARENT 0x0020
3460 #define LR_DEFAULTSIZE 0x0040
3461 #define LR_VGA_COLOR 0x0080
3462 #define LR_LOADMAP3DCOLORS 0x1000
3463 #define LR_CREATEDIBSECTION 0x2000
3464 #define LR_COPYFROMRESOURCE 0x4000
3465 #define LR_SHARED 0x8000
3467 /* Flags for DrawIconEx. */
3470 #define DI_NORMAL (DI_MASK | DI_IMAGE)
3472 #define DI_DEFAULTSIZE 8
3474 /* WM_NOTIFYFORMAT commands and return values */
3476 #define NFR_UNICODE 2
3478 #define NF_REQUERY 4
3480 /* RegisterDeviceNotification stuff */
3481 typedef PVOID HDEVNOTIFY
;
3482 typedef HDEVNOTIFY
*PHDEVNOTIFY
;
3484 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
3486 /* used for GetWindowInfo() */
3488 #define WS_ACTIVECAPTION 0x0001
3490 typedef struct tagWINDOWINFO
{
3496 DWORD dwWindowStatus
;
3497 UINT cxWindowBorders
;
3498 UINT cyWindowBorders
;
3499 ATOM atomWindowType
;
3500 WORD wCreatorVersion
;
3501 } WINDOWINFO
, *PWINDOWINFO
, *LPWINDOWINFO
;
3503 #define EnumTaskWindows(handle,proc,lparam) \
3504 EnumThreadWindows(handle,proc,lparam)
3505 #define OemToAnsiA OemToCharA
3506 #define OemToAnsiW OemToCharW
3507 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
3508 #define OemToAnsiBuffA OemToCharBuffA
3509 #define OemToAnsiBuffW OemToCharBuffW
3510 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
3511 #define AnsiToOemA CharToOemA
3512 #define AnsiToOemW CharToOemW
3513 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
3514 #define AnsiToOemBuffA CharToOemBuffA
3515 #define AnsiToOemBuffW CharToOemBuffW
3516 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
3518 #if defined(_WINGDI_) && !defined(NOGDI)
3519 LONG WINAPI
ChangeDisplaySettingsA(LPDEVMODEA
,DWORD
);
3520 LONG WINAPI
ChangeDisplaySettingsW(LPDEVMODEW
,DWORD
);
3521 #define ChangeDisplaySettings WINELIB_NAME_AW(ChangeDisplaySettings)
3522 LONG WINAPI
ChangeDisplaySettingsExA(LPCSTR
,LPDEVMODEA
,HWND
,DWORD
,LPARAM
);
3523 LONG WINAPI
ChangeDisplaySettingsExW(LPCWSTR
,LPDEVMODEW
,HWND
,DWORD
,LPARAM
);
3524 #define ChangeDisplaySettingsEx WINELIB_NAME_AW(ChangeDisplaySettingsEx)
3525 BOOL WINAPI
EnumDisplayDevicesA(LPVOID
,DWORD
,LPDISPLAY_DEVICEA
,DWORD
);
3526 BOOL WINAPI
EnumDisplayDevicesW(LPVOID
,DWORD
,LPDISPLAY_DEVICEW
,DWORD
);
3527 #define EnumDisplayDevices WINELIB_NAME_AW(EnumDisplayDevices)
3528 BOOL WINAPI
EnumDisplaySettingsA(LPCSTR
,DWORD
,LPDEVMODEA
);
3529 BOOL WINAPI
EnumDisplaySettingsW(LPCWSTR
,DWORD
,LPDEVMODEW
);
3530 #define EnumDisplaySettings WINELIB_NAME_AW(EnumDisplaySettings)
3531 #endif /* defined(_WINGDI_) && !defined(NOGDI) */
3533 HKL WINAPI
ActivateKeyboardLayout(HKL
,UINT
);
3534 LONG WINAPI
BroadcastSystemMessage(DWORD
,LPDWORD
,UINT
,WPARAM
,LPARAM
);
3535 WORD WINAPI
CascadeWindows(HWND
, UINT
, const LPRECT
, UINT
, const HWND
*);
3536 INT WINAPI
CopyAcceleratorTableA(HACCEL
,LPACCEL
,INT
);
3537 INT WINAPI
CopyAcceleratorTableW(HACCEL
,LPACCEL
,INT
);
3538 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
3539 HACCEL WINAPI
CreateAcceleratorTableA(LPACCEL
,INT
);
3540 HACCEL WINAPI
CreateAcceleratorTableW(LPACCEL
,INT
);
3541 #define CreateAcceleratorTable WINELIB_NAME_AW(CreateAcceleratorTable)
3542 HICON WINAPI
CreateIconIndirect(PICONINFO
);
3543 BOOL WINAPI
DestroyAcceleratorTable(HACCEL
);
3544 BOOL WINAPI
EnumDesktopsA(HWINSTA
,DESKTOPENUMPROCA
,LPARAM
);
3545 BOOL WINAPI
EnumDesktopsW(HWINSTA
,DESKTOPENUMPROCW
,LPARAM
);
3546 #define EnumDesktops WINELIB_NAME_AW(EnumDesktops)
3547 BOOL WINAPI
EnumDisplayMonitors(HDC
,LPRECT
,MONITORENUMPROC
,LPARAM
);
3548 INT WINAPI
EnumPropsExA(HWND
,PROPENUMPROCEXA
,LPARAM
);
3549 INT WINAPI
EnumPropsExW(HWND
,PROPENUMPROCEXW
,LPARAM
);
3550 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
3551 BOOL WINAPI
EnumThreadWindows(DWORD
,WNDENUMPROC
,LPARAM
);
3552 BOOL WINAPI
ExitWindowsEx(UINT
,DWORD
);
3553 BOOL WINAPI
GetIconInfo(HICON
,PICONINFO
);
3554 HKL WINAPI
GetKeyboardLayout(DWORD
);
3555 INT WINAPI
GetKeyboardLayoutList(INT
,HKL
*);
3556 DWORD WINAPI
GetMenuContextHelpId(HMENU
);
3557 UINT WINAPI
GetMenuDefaultItem(HMENU
,UINT
,UINT
);
3558 BOOL WINAPI
GetMenuInfo(HMENU
,LPMENUINFO
);
3559 BOOL WINAPI
GetMenuItemInfoA(HMENU
,UINT
,BOOL
,MENUITEMINFOA
*);
3560 BOOL WINAPI
GetMenuItemInfoW(HMENU
,UINT
,BOOL
,MENUITEMINFOW
*);
3561 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
3562 BOOL WINAPI
GetMonitorInfoA(HMONITOR
,LPMONITORINFO
);
3563 BOOL WINAPI
GetMonitorInfoW(HMONITOR
,LPMONITORINFO
);
3564 #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
3565 DWORD WINAPI
GetWindowContextHelpId(HWND
);
3566 DWORD WINAPI
GetWindowThreadProcessId(HWND
,LPDWORD
);
3567 BOOL WINAPI
IsWindowUnicode(HWND
);
3568 HKL WINAPI
LoadKeyboardLayoutA(LPCSTR
,UINT
);
3569 HKL WINAPI
LoadKeyboardLayoutW(LPCWSTR
,UINT
);
3570 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
3571 INT WINAPI
MessageBoxExA(HWND
,LPCSTR
,LPCSTR
,UINT
,WORD
);
3572 INT WINAPI
MessageBoxExW(HWND
,LPCWSTR
,LPCWSTR
,UINT
,WORD
);
3573 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
3574 HMONITOR WINAPI
MonitorFromPoint(POINT
,DWORD
);
3575 HMONITOR WINAPI
MonitorFromRect(LPRECT
,DWORD
);
3576 HMONITOR WINAPI
MonitorFromWindow(HWND
,DWORD
);
3577 DWORD WINAPI
MsgWaitForMultipleObjects(DWORD
,CONST HANDLE
*,BOOL
,DWORD
,DWORD
);
3578 DWORD WINAPI
MsgWaitForMultipleObjectsEx(DWORD
,CONST HANDLE
*,DWORD
,DWORD
,DWORD
);
3579 BOOL WINAPI
PaintDesktop(HDC
);
3580 BOOL WINAPI
PostThreadMessageA(DWORD
,UINT
,WPARAM
,LPARAM
);
3581 BOOL WINAPI
PostThreadMessageW(DWORD
,UINT
,WPARAM
,LPARAM
);
3582 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
3583 BOOL WINAPI
RegisterHotKey(HWND
,INT
,UINT
,UINT
);
3584 HDEVNOTIFY WINAPI
RegisterDeviceNotificationA(HANDLE
,LPVOID
,DWORD
);
3585 HDEVNOTIFY WINAPI
RegisterDeviceNotificationW(HANDLE
,LPVOID
,DWORD
);
3586 #define RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification)
3587 BOOL WINAPI
SendMessageCallbackA(HWND
,UINT
,WPARAM
,LPARAM
,SENDASYNCPROC
,ULONG_PTR
);
3588 BOOL WINAPI
SendMessageCallbackW(HWND
,UINT
,WPARAM
,LPARAM
,SENDASYNCPROC
,ULONG_PTR
);
3589 #define SendMessageCallback WINELIB_NAME_AW(SendMessageCallback)
3590 BOOL WINAPI
SendNotifyMessageA(HWND
,UINT
,WPARAM
,LPARAM
);
3591 BOOL WINAPI
SendNotifyMessageW(HWND
,UINT
,WPARAM
,LPARAM
);
3592 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
3593 VOID WINAPI
SetDebugErrorLevel(DWORD
);
3594 VOID WINAPI
SetLastErrorEx(DWORD
,DWORD
);
3595 BOOL WINAPI
SetMenuDefaultItem(HMENU
,UINT
,UINT
);
3596 BOOL WINAPI
SetMenuInfo(HMENU
,LPCMENUINFO
);
3597 BOOL WINAPI
SetMenuItemInfoA(HMENU
,UINT
,BOOL
,const MENUITEMINFOA
*);
3598 BOOL WINAPI
SetMenuItemInfoW(HMENU
,UINT
,BOOL
,const MENUITEMINFOW
*);
3599 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
3600 BOOL WINAPI
SetWindowContextHelpId(HWND
,DWORD
);
3601 WORD WINAPI
TileWindows (HWND
, UINT
, const LPRECT
,
3602 UINT
, const HWND
*);
3603 INT WINAPI
ToUnicode(UINT
,UINT
,PBYTE
,LPWSTR
,int,UINT
);
3604 BOOL WINAPI
TrackPopupMenuEx(HMENU
,UINT
,INT
,INT
,HWND
,
3606 BOOL WINAPI
UnregisterDeviceNotification(HDEVNOTIFY
);
3607 BOOL WINAPI
UnregisterHotKey(HWND
,INT
);
3608 DWORD WINAPI
WaitForInputIdle(HANDLE
,DWORD
);
3609 VOID WINAPI
keybd_event(BYTE
,BYTE
,DWORD
,DWORD
);
3610 VOID WINAPI
mouse_event(DWORD
,DWORD
,DWORD
,DWORD
,DWORD
);
3612 /* Declarations for functions that are the same in Win16 and Win32 */
3613 VOID WINAPI
EndMenu(void);
3614 DWORD WINAPI
GetDialogBaseUnits(void);
3615 BOOL WINAPI
GetKeyboardState(LPBYTE
);
3616 DWORD WINAPI
GetMenuCheckMarkDimensions(void);
3617 LONG WINAPI
GetMessageExtraInfo(void);
3618 DWORD WINAPI
GetMessagePos(void);
3619 LONG WINAPI
GetMessageTime(void);
3620 DWORD WINAPI
OemKeyScan(WORD
);
3621 BOOL WINAPI
ReleaseCapture(void);
3622 BOOL WINAPI
SetKeyboardState(LPBYTE
);
3624 /* Declarations for functions that change between Win16 and Win32 */
3626 BOOL WINAPI
AdjustWindowRect(LPRECT
,DWORD
,BOOL
);
3627 BOOL WINAPI
AdjustWindowRectEx(LPRECT
,DWORD
,BOOL
,DWORD
);
3628 BOOL WINAPI
AnimateWindow(HWND
,DWORD
,DWORD
);
3629 #define AnsiLowerA CharLowerA
3630 #define AnsiLowerW CharLowerW
3631 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
3632 #define AnsiLowerBuffA CharLowerBuffA
3633 #define AnsiLowerBuffW CharLowerBuffW
3634 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
3635 #define AnsiNextA CharNextA
3636 #define AnsiNextW CharNextW
3637 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
3638 #define AnsiPrevA CharPrevA
3639 #define AnsiPrevW CharPrevW
3640 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
3641 #define AnsiUpperA CharUpperA
3642 #define AnsiUpperW CharUpperW
3643 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
3644 #define AnsiUpperBuffA CharUpperBuffA
3645 #define AnsiUpperBuffW CharUpperBuffW
3646 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
3647 BOOL WINAPI
AnyPopup(void);
3648 BOOL WINAPI
AppendMenuA(HMENU
,UINT
,UINT
,LPCSTR
);
3649 BOOL WINAPI
AppendMenuW(HMENU
,UINT
,UINT
,LPCWSTR
);
3650 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
3651 UINT WINAPI
ArrangeIconicWindows(HWND
);
3652 HDWP WINAPI
BeginDeferWindowPos(INT
);
3653 HDC WINAPI
BeginPaint(HWND
,LPPAINTSTRUCT
);
3654 BOOL WINAPI
BringWindowToTop(HWND
);
3655 void WINAPI
CalcChildScroll(HWND
, INT
);
3656 BOOL WINAPI
CallMsgFilterA(LPMSG
,INT
);
3657 BOOL WINAPI
CallMsgFilterW(LPMSG
,INT
);
3658 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
3659 LRESULT WINAPI
CallNextHookEx(HHOOK
,INT
,WPARAM
,LPARAM
);
3660 LRESULT WINAPI
CallWindowProcA(WNDPROC
,HWND
,UINT
,WPARAM
,LPARAM
);
3661 LRESULT WINAPI
CallWindowProcW(WNDPROC
,HWND
,UINT
,WPARAM
,LPARAM
);
3662 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
3663 BOOL WINAPI
ChangeClipboardChain(HWND
,HWND
);
3664 BOOL WINAPI
ChangeMenuA(HMENU
,UINT
,LPCSTR
,UINT
,UINT
);
3665 BOOL WINAPI
ChangeMenuW(HMENU
,UINT
,LPCWSTR
,UINT
,UINT
);
3666 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
3667 LPSTR WINAPI
CharLowerA(LPSTR
);
3668 LPWSTR WINAPI
CharLowerW(LPWSTR
);
3669 #define CharLower WINELIB_NAME_AW(CharLower)
3670 DWORD WINAPI
CharLowerBuffA(LPSTR
,DWORD
);
3671 DWORD WINAPI
CharLowerBuffW(LPWSTR
,DWORD
);
3672 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
3673 LPSTR WINAPI
CharNextA(LPCSTR
);
3674 LPWSTR WINAPI
CharNextW(LPCWSTR
);
3675 #define CharNext WINELIB_NAME_AW(CharNext)
3676 LPSTR WINAPI
CharNextExA(WORD
,LPCSTR
,DWORD
);
3677 /* no CharNextExW (doesn't make sense) */
3678 LPSTR WINAPI
CharPrevA(LPCSTR
,LPCSTR
);
3679 LPWSTR WINAPI
CharPrevW(LPCWSTR
,LPCWSTR
);
3680 #define CharPrev WINELIB_NAME_AW(CharPrev)
3681 LPSTR WINAPI
CharPrevExA(WORD
,LPCSTR
,LPCSTR
,DWORD
);
3682 /* no CharPrevExW (doesn't make sense) */
3683 LPSTR WINAPI
CharUpperA(LPSTR
);
3684 LPWSTR WINAPI
CharUpperW(LPWSTR
);
3685 #define CharUpper WINELIB_NAME_AW(CharUpper)
3686 DWORD WINAPI
CharUpperBuffA(LPSTR
,DWORD
);
3687 DWORD WINAPI
CharUpperBuffW(LPWSTR
,DWORD
);
3688 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
3689 BOOL WINAPI
CharToOemA(LPCSTR
,LPSTR
);
3690 BOOL WINAPI
CharToOemW(LPCWSTR
,LPSTR
);
3691 #define CharToOem WINELIB_NAME_AW(CharToOem)
3692 BOOL WINAPI
CharToOemBuffA(LPCSTR
,LPSTR
,DWORD
);
3693 BOOL WINAPI
CharToOemBuffW(LPCWSTR
,LPSTR
,DWORD
);
3694 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
3695 BOOL WINAPI
CheckDlgButton(HWND
,INT
,UINT
);
3696 DWORD WINAPI
CheckMenuItem(HMENU
,UINT
,UINT
);
3697 BOOL WINAPI
CheckMenuRadioItem(HMENU
,UINT
,UINT
,UINT
,UINT
);
3698 BOOL WINAPI
CheckRadioButton(HWND
,UINT
,UINT
,UINT
);
3699 HWND WINAPI
ChildWindowFromPoint(HWND
,POINT
);
3700 HWND WINAPI
ChildWindowFromPointEx(HWND
,POINT
,UINT
);
3701 BOOL WINAPI
ClientToScreen(HWND
,LPPOINT
);
3702 BOOL WINAPI
ClipCursor(const RECT
*);
3703 BOOL WINAPI
CloseClipboard(void);
3704 BOOL WINAPI
CloseDesktop(HDESK
);
3705 BOOL WINAPI
CloseWindow(HWND
);
3706 BOOL WINAPI
CloseWindowStation(HWINSTA
);
3707 #define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
3708 HICON WINAPI
CopyIcon(HICON
);
3709 HICON WINAPI
CopyImage(HANDLE
,UINT
,INT
,INT
,UINT
);
3710 BOOL WINAPI
CopyRect(RECT
*,const RECT
*);
3711 INT WINAPI
CountClipboardFormats(void);
3712 BOOL WINAPI
CreateCaret(HWND
,HBITMAP
,INT
,INT
);
3713 HCURSOR WINAPI
CreateCursor(HINSTANCE
,INT
,INT
,INT
,INT
,LPCVOID
,LPCVOID
);
3714 #define CreateDialogA(inst,ptr,hwnd,dlg) \
3715 CreateDialogParamA(inst,ptr,hwnd,dlg,0)
3716 #define CreateDialogW(inst,ptr,hwnd,dlg) \
3717 CreateDialogParamW(inst,ptr,hwnd,dlg,0)
3718 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
3719 #define CreateDialogIndirectA(inst,ptr,hwnd,dlg) \
3720 CreateDialogIndirectParamA(inst,ptr,hwnd,dlg,0)
3721 #define CreateDialogIndirectW(inst,ptr,hwnd,dlg) \
3722 CreateDialogIndirectParamW(inst,ptr,hwnd,dlg,0)
3723 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
3724 HWND WINAPI
CreateDialogIndirectParamA(HINSTANCE
,LPCVOID
,HWND
,
3726 HWND WINAPI
CreateDialogIndirectParamW(HINSTANCE
,LPCVOID
,HWND
,
3728 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
3729 HWND WINAPI
CreateDialogParamA(HINSTANCE
,LPCSTR
,HWND
,DLGPROC
,LPARAM
);
3730 HWND WINAPI
CreateDialogParamW(HINSTANCE
,LPCWSTR
,HWND
,DLGPROC
,LPARAM
);
3731 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
3732 HICON WINAPI
CreateIcon(HINSTANCE
,INT
,INT
,BYTE
,BYTE
,LPCVOID
,LPCVOID
);
3733 HICON WINAPI
CreateIconFromResource(LPBYTE
,UINT
,BOOL
,DWORD
);
3734 HICON WINAPI
CreateIconFromResourceEx(LPBYTE
,UINT
,BOOL
,DWORD
,INT
,INT
,UINT
);
3735 HMENU WINAPI
CreateMenu(void);
3736 HMENU WINAPI
CreatePopupMenu(void);
3737 #define CreateWindowA(className,titleName,style,x,y,width,height,\
3738 parent,menu,instance,param) \
3739 CreateWindowExA(0,className,titleName,style,x,y,width,height,\
3740 parent,menu,instance,param)
3741 #define CreateWindowW(className,titleName,style,x,y,width,height,\
3742 parent,menu,instance,param) \
3743 CreateWindowExW(0,className,titleName,style,x,y,width,height,\
3744 parent,menu,instance,param)
3745 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
3746 HWND WINAPI
CreateWindowExA(DWORD
,LPCSTR
,LPCSTR
,DWORD
,INT
,INT
,
3747 INT
,INT
,HWND
,HMENU
,HINSTANCE
,LPVOID
);
3748 HWND WINAPI
CreateWindowExW(DWORD
,LPCWSTR
,LPCWSTR
,DWORD
,INT
,INT
,
3749 INT
,INT
,HWND
,HMENU
,HINSTANCE
,LPVOID
);
3750 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
3751 HWINSTA WINAPI
CreateWindowStationA(LPSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
3752 HWINSTA WINAPI
CreateWindowStationW(LPWSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
3753 #define CreateWindowStation WINELIB_NAME_AW(CreateWindowStation)
3754 HWND WINAPI
CreateMDIWindowA(LPCSTR
,LPCSTR
,DWORD
,INT
,INT
,
3755 INT
,INT
,HWND
,HINSTANCE
,LPARAM
);
3756 HWND WINAPI
CreateMDIWindowW(LPCWSTR
,LPCWSTR
,DWORD
,INT
,INT
,
3757 INT
,INT
,HWND
,HINSTANCE
,LPARAM
);
3758 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
3759 LRESULT WINAPI
DefDlgProcA(HWND
,UINT
,WPARAM
,LPARAM
);
3760 LRESULT WINAPI
DefDlgProcW(HWND
,UINT
,WPARAM
,LPARAM
);
3761 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
3762 HDWP WINAPI
DeferWindowPos(HDWP
,HWND
,HWND
,INT
,INT
,INT
,INT
,UINT
);
3763 LRESULT WINAPI
DefFrameProcA(HWND
,HWND
,UINT
,WPARAM
,LPARAM
);
3764 LRESULT WINAPI
DefFrameProcW(HWND
,HWND
,UINT
,WPARAM
,LPARAM
);
3765 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
3766 #define DefHookProc(code,wparam,lparam,phhook) \
3767 CallNextHookEx(*(phhook),code,wparam,lparam)
3768 LRESULT WINAPI
DefMDIChildProcA(HWND
,UINT
,WPARAM
,LPARAM
);
3769 LRESULT WINAPI
DefMDIChildProcW(HWND
,UINT
,WPARAM
,LPARAM
);
3770 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
3771 LRESULT WINAPI
DefWindowProcA(HWND
,UINT
,WPARAM
,LPARAM
);
3772 LRESULT WINAPI
DefWindowProcW(HWND
,UINT
,WPARAM
,LPARAM
);
3773 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
3774 BOOL WINAPI
DeleteMenu(HMENU
,UINT
,UINT
);
3775 BOOL WINAPI
DestroyCaret(void);
3776 BOOL WINAPI
DestroyCursor(HCURSOR
);
3777 BOOL WINAPI
DestroyIcon(HICON
);
3778 BOOL WINAPI
DestroyMenu(HMENU
);
3779 BOOL WINAPI
DestroyWindow(HWND
);
3780 #define DialogBoxA(inst,template,owner,func) \
3781 DialogBoxParamA(inst,template,owner,func,0)
3782 #define DialogBoxW(inst,template,owner,func) \
3783 DialogBoxParamW(inst,template,owner,func,0)
3784 #define DialogBox WINELIB_NAME_AW(DialogBox)
3785 #define DialogBoxIndirectA(inst,template,owner,func) \
3786 DialogBoxIndirectParamA(inst,template,owner,func,0)
3787 #define DialogBoxIndirectW(inst,template,owner,func) \
3788 DialogBoxIndirectParamW(inst,template,owner,func,0)
3789 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
3790 INT WINAPI
DialogBoxIndirectParamA(HINSTANCE
,LPCVOID
,HWND
,DLGPROC
,LPARAM
);
3791 INT WINAPI
DialogBoxIndirectParamW(HINSTANCE
,LPCVOID
,HWND
,DLGPROC
,LPARAM
);
3792 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
3793 INT WINAPI
DialogBoxParamA(HINSTANCE
,LPCSTR
,HWND
,DLGPROC
,LPARAM
);
3794 INT WINAPI
DialogBoxParamW(HINSTANCE
,LPCWSTR
,HWND
,DLGPROC
,LPARAM
);
3795 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
3796 LONG WINAPI
DispatchMessageA(const MSG
*);
3797 LONG WINAPI
DispatchMessageW(const MSG
*);
3798 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
3799 INT WINAPI
DlgDirListA(HWND
,LPSTR
,INT
,INT
,UINT
);
3800 INT WINAPI
DlgDirListW(HWND
,LPWSTR
,INT
,INT
,UINT
);
3801 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
3802 INT WINAPI
DlgDirListComboBoxA(HWND
,LPSTR
,INT
,INT
,UINT
);
3803 INT WINAPI
DlgDirListComboBoxW(HWND
,LPWSTR
,INT
,INT
,UINT
);
3804 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
3805 BOOL WINAPI
DlgDirSelectComboBoxExA(HWND
,LPSTR
,INT
,INT
);
3806 BOOL WINAPI
DlgDirSelectComboBoxExW(HWND
,LPWSTR
,INT
,INT
);
3807 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
3808 BOOL WINAPI
DlgDirSelectExA(HWND
,LPSTR
,INT
,INT
);
3809 BOOL WINAPI
DlgDirSelectExW(HWND
,LPWSTR
,INT
,INT
);
3810 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
3811 BOOL WINAPI
DragDetect(HWND
,POINT
);
3812 DWORD WINAPI
DragObject(HWND
,HWND
,UINT
,DWORD
,HCURSOR
);
3813 BOOL WINAPI
DrawAnimatedRects(HWND
,int,const RECT
*,const RECT
*);
3814 BOOL WINAPI
DrawCaption(HWND
,HDC
,const RECT
*,UINT
);
3815 BOOL WINAPI
DrawCaptionTempA(HWND
,HDC
,const RECT
*,HFONT
,HICON
,LPCSTR
,UINT
);
3816 BOOL WINAPI
DrawCaptionTempW(HWND
,HDC
,const RECT
*,HFONT
,HICON
,LPCWSTR
,UINT
);
3817 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
3818 BOOL WINAPI
DrawEdge(HDC
,LPRECT
,UINT
,UINT
);
3819 BOOL WINAPI
DrawFocusRect(HDC
,const RECT
*);
3820 BOOL WINAPI
DrawFrameControl(HDC
,LPRECT
,UINT
,UINT
);
3821 BOOL WINAPI
DrawIcon(HDC
,INT
,INT
,HICON
);
3822 BOOL WINAPI
DrawIconEx(HDC
,INT
,INT
,HICON
,INT
,INT
,UINT
,HBRUSH
,UINT
);
3823 BOOL WINAPI
DrawMenuBar(HWND
);
3824 BOOL WINAPI
DrawStateA(HDC
,HBRUSH
,DRAWSTATEPROC
,LPARAM
,WPARAM
,INT
,INT
,INT
,INT
,UINT
);
3825 BOOL WINAPI
DrawStateW(HDC
,HBRUSH
,DRAWSTATEPROC
,LPARAM
,WPARAM
,INT
,INT
,INT
,INT
,UINT
);
3826 #define DrawState WINELIB_NAME_AW(DrawState)
3827 INT WINAPI
DrawTextA(HDC
,LPCSTR
,INT
,LPRECT
,UINT
);
3828 INT WINAPI
DrawTextW(HDC
,LPCWSTR
,INT
,LPRECT
,UINT
);
3829 #define DrawText WINELIB_NAME_AW(DrawText)
3830 INT WINAPI
DrawTextExA(HDC
,LPSTR
,INT
,LPRECT
,UINT
,LPDRAWTEXTPARAMS
);
3831 INT WINAPI
DrawTextExW(HDC
,LPWSTR
,INT
,LPRECT
,UINT
,LPDRAWTEXTPARAMS
);
3832 #define DrawTextEx WINELIB_NAME_AW(DrawTextEx)
3833 BOOL WINAPI
EmptyClipboard(void);
3834 UINT WINAPI
EnableMenuItem(HMENU
,UINT
,UINT
);
3835 BOOL WINAPI
EnableScrollBar(HWND
,INT
,UINT
);
3836 BOOL WINAPI
EnableWindow(HWND
,BOOL
);
3837 BOOL WINAPI
EndDeferWindowPos(HDWP
);
3838 BOOL WINAPI
EndDialog(HWND
,INT
);
3839 BOOL WINAPI
EndPaint(HWND
,const PAINTSTRUCT
*);
3840 BOOL WINAPI
EnumChildWindows(HWND
,WNDENUMPROC
,LPARAM
);
3841 UINT WINAPI
EnumClipboardFormats(UINT
);
3842 INT WINAPI
EnumPropsA(HWND
,PROPENUMPROCA
);
3843 INT WINAPI
EnumPropsW(HWND
,PROPENUMPROCW
);
3844 #define EnumProps WINELIB_NAME_AW(EnumProps)
3845 BOOL WINAPI
EnumWindows(WNDENUMPROC
,LPARAM
);
3846 BOOL WINAPI
EnumWindowStationsA(WINSTAENUMPROCA
,LPARAM
);
3847 BOOL WINAPI
EnumWindowStationsW(WINSTAENUMPROCW
,LPARAM
);
3848 #define EnumWindowStations WINELIB_NAME_AW(EnumWindowStations)
3849 BOOL WINAPI
EqualRect(const RECT
*,const RECT
*);
3850 INT WINAPI
ExcludeUpdateRgn(HDC
,HWND
);
3851 #define ExitWindows(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
3852 INT WINAPI
FillRect(HDC
,const RECT
*,HBRUSH
);
3853 HWND WINAPI
FindWindowA(LPCSTR
,LPCSTR
);
3854 HWND WINAPI
FindWindowW(LPCWSTR
,LPCWSTR
);
3855 #define FindWindow WINELIB_NAME_AW(FindWindow)
3856 HWND WINAPI
FindWindowExA(HWND
,HWND
,LPCSTR
,LPCSTR
);
3857 HWND WINAPI
FindWindowExW(HWND
,HWND
,LPCWSTR
,LPCWSTR
);
3858 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
3859 BOOL WINAPI
FlashWindow(HWND
,BOOL
);
3860 INT WINAPI
FrameRect(HDC
,const RECT
*,HBRUSH
);
3861 HWND WINAPI
GetActiveWindow(void);
3862 HWND WINAPI
GetAncestor(HWND
,UINT
);
3863 DWORD WINAPI
GetAppCompatFlags(HTASK
);
3864 SHORT WINAPI
GetAsyncKeyState(INT
);
3865 HWND WINAPI
GetCapture(void);
3866 UINT WINAPI
GetCaretBlinkTime(void);
3867 BOOL WINAPI
GetCaretPos(LPPOINT
);
3868 BOOL WINAPI
GetClassInfoA(HINSTANCE
,LPCSTR
,WNDCLASSA
*);
3869 BOOL WINAPI
GetClassInfoW(HINSTANCE
,LPCWSTR
,WNDCLASSW
*);
3870 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
3871 BOOL WINAPI
GetClassInfoExA(HINSTANCE
,LPCSTR
,WNDCLASSEXA
*);
3872 BOOL WINAPI
GetClassInfoExW(HINSTANCE
,LPCWSTR
,WNDCLASSEXW
*);
3873 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
3874 LONG WINAPI
GetClassLongA(HWND
,INT
);
3875 LONG WINAPI
GetClassLongW(HWND
,INT
);
3876 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
3877 INT WINAPI
GetClassNameA(HWND
,LPSTR
,INT
);
3878 INT WINAPI
GetClassNameW(HWND
,LPWSTR
,INT
);
3879 #define GetClassName WINELIB_NAME_AW(GetClassName)
3880 WORD WINAPI
GetClassWord(HWND
,INT
);
3881 BOOL WINAPI
GetClientRect(HWND
,LPRECT
);
3882 HANDLE WINAPI
GetClipboardData(UINT
);
3883 INT WINAPI
GetClipboardFormatNameA(UINT
,LPSTR
,INT
);
3884 INT WINAPI
GetClipboardFormatNameW(UINT
,LPWSTR
,INT
);
3885 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
3886 HWND WINAPI
GetClipboardOwner(void);
3887 HWND WINAPI
GetClipboardViewer(void);
3888 BOOL WINAPI
GetClipCursor(LPRECT
);
3889 HCURSOR WINAPI
GetCursor(void);
3890 BOOL WINAPI
GetCursorPos(LPPOINT
);
3891 HDC WINAPI
GetDC(HWND
);
3892 HDC WINAPI
GetDCEx(HWND
,HRGN
,DWORD
);
3893 HWND WINAPI
GetDesktopWindow(void);
3894 INT WINAPI
GetDlgCtrlID(HWND
);
3895 HWND WINAPI
GetDlgItem(HWND
,INT
);
3896 UINT WINAPI
GetDlgItemInt(HWND
,INT
,BOOL
*,BOOL
);
3897 INT WINAPI
GetDlgItemTextA(HWND
,INT
,LPSTR
,UINT
);
3898 INT WINAPI
GetDlgItemTextW(HWND
,INT
,LPWSTR
,UINT
);
3899 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
3900 UINT WINAPI
GetDoubleClickTime(void);
3901 HWND WINAPI
GetFocus(void);
3902 HWND WINAPI
GetForegroundWindow(void);
3903 BOOL WINAPI
GetInputState(void);
3904 UINT WINAPI
GetInternalWindowPos(HWND
,LPRECT
,LPPOINT
);
3905 UINT WINAPI
GetKBCodePage(void);
3906 INT WINAPI
GetKeyboardType(INT
);
3907 INT WINAPI
GetKeyNameTextA(LONG
,LPSTR
,INT
);
3908 INT WINAPI
GetKeyNameTextW(LONG
,LPWSTR
,INT
);
3909 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
3910 INT WINAPI
GetKeyboardLayoutNameA(LPSTR
);
3911 INT WINAPI
GetKeyboardLayoutNameW(LPWSTR
);
3912 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
3913 SHORT WINAPI
GetKeyState(INT
);
3914 HWND WINAPI
GetLastActivePopup(HWND
);
3915 HMENU WINAPI
GetMenu(HWND
);
3916 INT WINAPI
GetMenuItemCount(HMENU
);
3917 UINT WINAPI
GetMenuItemID(HMENU
,INT
);
3918 BOOL WINAPI
GetMenuItemRect(HWND
,HMENU
,UINT
,LPRECT
);
3919 UINT WINAPI
GetMenuState(HMENU
,UINT
,UINT
);
3920 INT WINAPI
GetMenuStringA(HMENU
,UINT
,LPSTR
,INT
,UINT
);
3921 INT WINAPI
GetMenuStringW(HMENU
,UINT
,LPWSTR
,INT
,UINT
);
3922 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
3923 BOOL WINAPI
GetMessageA(LPMSG
,HWND
,UINT
,UINT
);
3924 BOOL WINAPI
GetMessageW(LPMSG
,HWND
,UINT
,UINT
);
3925 #define GetMessage WINELIB_NAME_AW(GetMessage)
3926 HWND WINAPI
GetNextDlgGroupItem(HWND
,HWND
,BOOL
);
3927 HWND WINAPI
GetNextDlgTabItem(HWND
,HWND
,BOOL
);
3928 #define GetNextWindow GetWindow
3929 HWND WINAPI
GetOpenClipboardWindow(void);
3930 HWND WINAPI
GetParent(HWND
);
3931 INT WINAPI
GetPriorityClipboardFormat(UINT
*,INT
);
3932 BOOL WINAPI
GetProcessDefaultLayout(DWORD
*);
3933 HANDLE WINAPI
GetPropA(HWND
,LPCSTR
);
3934 HANDLE WINAPI
GetPropW(HWND
,LPCWSTR
);
3935 #define GetProp WINELIB_NAME_AW(GetProp)
3936 DWORD WINAPI
GetQueueStatus(UINT
);
3937 BOOL WINAPI
GetScrollInfo(HWND
,INT
,LPSCROLLINFO
);
3938 INT WINAPI
GetScrollPos(HWND
,INT
);
3939 BOOL WINAPI
GetScrollRange(HWND
,INT
,LPINT
,LPINT
);
3940 HWND WINAPI
GetShellWindow(void);
3941 HMENU WINAPI
GetSubMenu(HMENU
,INT
);
3942 HBRUSH WINAPI
GetSysColorBrush(INT
);
3943 #define GetSysModalWindow() ((HWND)0)
3944 HMENU WINAPI
GetSystemMenu(HWND
,BOOL
);
3945 INT WINAPI
GetSystemMetrics(INT
);
3946 DWORD WINAPI
GetTabbedTextExtentA(HDC
,LPCSTR
,INT
,INT
,const INT
*);
3947 DWORD WINAPI
GetTabbedTextExtentW(HDC
,LPCWSTR
,INT
,INT
,const INT
*);
3948 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
3949 HWND WINAPI
GetTopWindow(HWND
);
3950 BOOL WINAPI
GetUpdateRect(HWND
,LPRECT
,BOOL
);
3951 INT WINAPI
GetUpdateRgn(HWND
,HRGN
,BOOL
);
3952 BOOL WINAPI
GetUserObjectInformationA(HANDLE
,INT
,LPVOID
,DWORD
,LPDWORD
);
3953 BOOL WINAPI
GetUserObjectInformationW(HANDLE
,INT
,LPVOID
,DWORD
,LPDWORD
);
3954 #define GetUserObjectInformation WINELIB_NAME_AW(GetUserObjectInformation)
3955 HWND WINAPI
GetWindow(HWND
,UINT
);
3956 HDC WINAPI
GetWindowDC(HWND
);
3957 BOOL WINAPI
GetWindowInfo(HWND
, PWINDOWINFO
);
3958 LONG WINAPI
GetWindowLongA(HWND
,INT
);
3959 LONG WINAPI
GetWindowLongW(HWND
,INT
);
3960 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
3961 BOOL WINAPI
GetWindowPlacement(HWND
,LPWINDOWPLACEMENT
);
3962 BOOL WINAPI
GetWindowRect(HWND
,LPRECT
);
3963 INT WINAPI
GetWindowRgn(HWND
,HRGN
);
3964 HWINSTA WINAPI
GetProcessWindowStation(void);
3965 #define GetWindowTask(hwnd) ((HTASK)GetWindowThreadProcessId(hwnd,NULL))
3966 INT WINAPI
GetWindowTextA(HWND
,LPSTR
,INT
);
3967 INT WINAPI
GetWindowTextW(HWND
,LPWSTR
,INT
);
3968 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
3969 INT WINAPI
GetWindowTextLengthA(HWND
);
3970 INT WINAPI
GetWindowTextLengthW(HWND
);
3971 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
3972 WORD WINAPI
GetWindowWord(HWND
,INT
);
3973 BOOL WINAPI
GrayStringA(HDC
,HBRUSH
,GRAYSTRINGPROC
,LPARAM
,INT
,INT
,INT
,INT
,INT
);
3974 BOOL WINAPI
GrayStringW(HDC
,HBRUSH
,GRAYSTRINGPROC
,LPARAM
,INT
,INT
,INT
,INT
,INT
);
3975 #define GrayString WINELIB_NAME_AW(GrayString)
3976 BOOL WINAPI
HideCaret(HWND
);
3977 BOOL WINAPI
HiliteMenuItem(HWND
,HMENU
,UINT
,UINT
);
3978 BOOL WINAPI
InflateRect(LPRECT
,INT
,INT
);
3979 BOOL WINAPI
InSendMessage(void);
3980 DWORD WINAPI
InSendMessageEx(LPVOID
);
3981 BOOL WINAPI
InsertMenuA(HMENU
,UINT
,UINT
,UINT
,LPCSTR
);
3982 BOOL WINAPI
InsertMenuW(HMENU
,UINT
,UINT
,UINT
,LPCWSTR
);
3983 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
3984 BOOL WINAPI
InsertMenuItemA(HMENU
,UINT
,BOOL
,const MENUITEMINFOA
*);
3985 BOOL WINAPI
InsertMenuItemW(HMENU
,UINT
,BOOL
,const MENUITEMINFOW
*);
3986 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
3987 INT WINAPI
InternalGetWindowText(HWND
,LPWSTR
,INT
);
3988 BOOL WINAPI
IntersectRect(LPRECT
,const RECT
*,const RECT
*);
3989 BOOL WINAPI
InvalidateRect(HWND
,const RECT
*,BOOL
);
3990 BOOL WINAPI
InvalidateRgn(HWND
,HRGN
,BOOL
);
3991 BOOL WINAPI
InvertRect(HDC
,const RECT
*);
3992 BOOL WINAPI
IsCharAlphaA(CHAR
);
3993 BOOL WINAPI
IsCharAlphaW(WCHAR
);
3994 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
3995 BOOL WINAPI
IsCharAlphaNumericA(CHAR
);
3996 BOOL WINAPI
IsCharAlphaNumericW(WCHAR
);
3997 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
3998 BOOL WINAPI
IsCharLowerA(CHAR
);
3999 BOOL WINAPI
IsCharLowerW(WCHAR
);
4000 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
4001 BOOL WINAPI
IsCharUpperA(CHAR
);
4002 BOOL WINAPI
IsCharUpperW(WCHAR
);
4003 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
4004 BOOL WINAPI
IsChild(HWND
,HWND
);
4005 BOOL WINAPI
IsClipboardFormatAvailable(UINT
);
4006 BOOL WINAPI
IsDialogMessageA(HWND
,LPMSG
);
4007 BOOL WINAPI
IsDialogMessageW(HWND
,LPMSG
);
4008 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
4009 UINT WINAPI
IsDlgButtonChecked(HWND
,UINT
);
4010 BOOL WINAPI
IsIconic(HWND
);
4011 BOOL WINAPI
IsMenu(HMENU
);
4012 BOOL WINAPI
IsRectEmpty(const RECT
*);
4013 BOOL WINAPI
IsWindow(HWND
);
4014 BOOL WINAPI
IsWindowEnabled(HWND
);
4015 BOOL WINAPI
IsWindowVisible(HWND
);
4016 BOOL WINAPI
IsZoomed(HWND
);
4017 BOOL WINAPI
KillSystemTimer(HWND
,UINT
);
4018 BOOL WINAPI
KillTimer(HWND
,UINT
);
4019 HACCEL WINAPI
LoadAcceleratorsA(HINSTANCE
,LPCSTR
);
4020 HACCEL WINAPI
LoadAcceleratorsW(HINSTANCE
,LPCWSTR
);
4021 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
4022 HBITMAP WINAPI
LoadBitmapA(HINSTANCE
,LPCSTR
);
4023 HBITMAP WINAPI
LoadBitmapW(HINSTANCE
,LPCWSTR
);
4024 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
4025 HCURSOR WINAPI
LoadCursorA(HINSTANCE
,LPCSTR
);
4026 HCURSOR WINAPI
LoadCursorW(HINSTANCE
,LPCWSTR
);
4027 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
4028 HCURSOR WINAPI
LoadCursorFromFileA(LPCSTR
);
4029 HCURSOR WINAPI
LoadCursorFromFileW(LPCWSTR
);
4030 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
4031 HICON WINAPI
LoadIconA(HINSTANCE
,LPCSTR
);
4032 HICON WINAPI
LoadIconW(HINSTANCE
,LPCWSTR
);
4033 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
4034 HANDLE WINAPI
LoadImageA(HINSTANCE
,LPCSTR
,UINT
,INT
,INT
,UINT
);
4035 HANDLE WINAPI
LoadImageW(HINSTANCE
,LPCWSTR
,UINT
,INT
,INT
,UINT
);
4036 #define LoadImage WINELIB_NAME_AW(LoadImage)
4037 HMENU WINAPI
LoadMenuA(HINSTANCE
,LPCSTR
);
4038 HMENU WINAPI
LoadMenuW(HINSTANCE
,LPCWSTR
);
4039 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
4040 HMENU WINAPI
LoadMenuIndirectA(LPCVOID
);
4041 HMENU WINAPI
LoadMenuIndirectW(LPCVOID
);
4042 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
4043 INT WINAPI
LoadStringA(HINSTANCE
,UINT
,LPSTR
,INT
);
4044 INT WINAPI
LoadStringW(HINSTANCE
,UINT
,LPWSTR
,INT
);
4045 #define LoadString WINELIB_NAME_AW(LoadString)
4046 BOOL WINAPI
LockWindowUpdate(HWND
);
4047 INT WINAPI
LookupIconIdFromDirectory(LPBYTE
,BOOL
);
4048 INT WINAPI
LookupIconIdFromDirectoryEx(LPBYTE
,BOOL
,INT
,INT
,UINT
);
4049 UINT WINAPI
MapVirtualKeyA(UINT
,UINT
);
4050 UINT WINAPI
MapVirtualKeyW(UINT
,UINT
);
4051 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
4052 UINT WINAPI
MapVirtualKeyExA(UINT
,UINT
,HKL
);
4053 UINT WINAPI
MapVirtualKeyExW(UINT
,UINT
,HKL
);
4054 #define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
4055 BOOL WINAPI
MapDialogRect(HWND
,LPRECT
);
4056 INT WINAPI
MapWindowPoints(HWND
,HWND
,LPPOINT
,UINT
);
4057 UINT WINAPI
MenuItemFromPoint(HWND
,HMENU
,POINT
);
4058 BOOL WINAPI
MessageBeep(UINT
);
4059 INT WINAPI
MessageBoxA(HWND
,LPCSTR
,LPCSTR
,UINT
);
4060 INT WINAPI
MessageBoxW(HWND
,LPCWSTR
,LPCWSTR
,UINT
);
4061 #define MessageBox WINELIB_NAME_AW(MessageBox)
4062 INT WINAPI
MessageBoxIndirectA(LPMSGBOXPARAMSA
);
4063 INT WINAPI
MessageBoxIndirectW(LPMSGBOXPARAMSW
);
4064 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
4065 BOOL WINAPI
ModifyMenuA(HMENU
,UINT
,UINT
,UINT
,LPCSTR
);
4066 BOOL WINAPI
ModifyMenuW(HMENU
,UINT
,UINT
,UINT
,LPCWSTR
);
4067 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
4068 BOOL WINAPI
MoveWindow(HWND
,INT
,INT
,INT
,INT
,BOOL
);
4069 BOOL WINAPI
OemToCharA(LPCSTR
,LPSTR
);
4070 BOOL WINAPI
OemToCharW(LPCSTR
,LPWSTR
);
4071 #define OemToChar WINELIB_NAME_AW(OemToChar)
4072 BOOL WINAPI
OemToCharBuffA(LPCSTR
,LPSTR
,DWORD
);
4073 BOOL WINAPI
OemToCharBuffW(LPCSTR
,LPWSTR
,DWORD
);
4074 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
4075 BOOL WINAPI
OffsetRect(LPRECT
,INT
,INT
);
4076 BOOL WINAPI
OpenClipboard(HWND
);
4077 BOOL WINAPI
OpenIcon(HWND
);
4078 HWINSTA WINAPI
OpenWindowStationA(LPSTR
,BOOL
,ACCESS_MASK
);
4079 HWINSTA WINAPI
OpenWindowStationW(LPWSTR
,BOOL
,ACCESS_MASK
);
4080 #define OpenWindowStation WINELIB_NAME_AW(OpenWindowStation)
4081 BOOL WINAPI
PeekMessageA(LPMSG
,HWND
,UINT
,UINT
,UINT
);
4082 BOOL WINAPI
PeekMessageW(LPMSG
,HWND
,UINT
,UINT
,UINT
);
4083 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
4084 #define PostAppMessageA(thread,msg,wparam,lparam) \
4085 PostThreadMessageA((DWORD)(thread),msg,wparam,lparam)
4086 #define PostAppMessageW(thread,msg,wparam,lparam) \
4087 PostThreadMessageW((DWORD)(thread),msg,wparam,lparam)
4088 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
4089 BOOL WINAPI
PostMessageA(HWND
,UINT
,WPARAM
,LPARAM
);
4090 BOOL WINAPI
PostMessageW(HWND
,UINT
,WPARAM
,LPARAM
);
4091 #define PostMessage WINELIB_NAME_AW(PostMessage)
4092 void WINAPI
PostQuitMessage(INT
);
4093 BOOL WINAPI
PtInRect(const RECT
*,POINT
);
4094 BOOL WINAPI
RedrawWindow(HWND
,const RECT
*,HRGN
,UINT
);
4095 ATOM WINAPI
RegisterClassA(const WNDCLASSA
*);
4096 ATOM WINAPI
RegisterClassW(const WNDCLASSW
*);
4097 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
4098 ATOM WINAPI
RegisterClassExA(const WNDCLASSEXA
*);
4099 ATOM WINAPI
RegisterClassExW(const WNDCLASSEXW
*);
4100 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
4101 UINT WINAPI
RegisterClipboardFormatA(LPCSTR
);
4102 UINT WINAPI
RegisterClipboardFormatW(LPCWSTR
);
4103 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
4104 WORD WINAPI
RegisterWindowMessageA(LPCSTR
);
4105 WORD WINAPI
RegisterWindowMessageW(LPCWSTR
);
4106 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
4107 INT WINAPI
ReleaseDC(HWND
,HDC
);
4108 BOOL WINAPI
RemoveMenu(HMENU
,UINT
,UINT
);
4109 HANDLE WINAPI
RemovePropA(HWND
,LPCSTR
);
4110 HANDLE WINAPI
RemovePropW(HWND
,LPCWSTR
);
4111 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
4112 BOOL WINAPI
ReplyMessage(LRESULT
);
4113 BOOL WINAPI
ScreenToClient(HWND
,LPPOINT
);
4114 VOID WINAPI
ScrollChildren(HWND
,UINT
,WPARAM
,LPARAM
);
4115 BOOL WINAPI
ScrollDC(HDC
,INT
,INT
,const RECT
*,const RECT
*,HRGN
,LPRECT
);
4116 BOOL WINAPI
ScrollWindow(HWND
,INT
,INT
,const RECT
*,const RECT
*);
4117 INT WINAPI
ScrollWindowEx(HWND
,INT
,INT
,const RECT
*,const RECT
*,HRGN
,LPRECT
,UINT
);
4118 LRESULT WINAPI
SendDlgItemMessageA(HWND
,INT
,UINT
,WPARAM
,LPARAM
);
4119 LRESULT WINAPI
SendDlgItemMessageW(HWND
,INT
,UINT
,WPARAM
,LPARAM
);
4120 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
4121 UINT WINAPI
SendInput(UINT
,LPINPUT
,int);
4122 LRESULT WINAPI
SendMessageA(HWND
,UINT
,WPARAM
,LPARAM
);
4123 LRESULT WINAPI
SendMessageW(HWND
,UINT
,WPARAM
,LPARAM
);
4124 #define SendMessage WINELIB_NAME_AW(SendMessage)
4125 LRESULT WINAPI
SendMessageTimeoutA(HWND
,UINT
,WPARAM
,LPARAM
,UINT
,UINT
,LPDWORD
);
4126 LRESULT WINAPI
SendMessageTimeoutW(HWND
,UINT
,WPARAM
,LPARAM
,UINT
,UINT
,LPDWORD
);
4127 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
4128 HWND WINAPI
SetActiveWindow(HWND
);
4129 HWND WINAPI
SetCapture(HWND
);
4130 BOOL WINAPI
SetCaretBlinkTime(UINT
);
4131 BOOL WINAPI
SetCaretPos(INT
,INT
);
4132 LONG WINAPI
SetClassLongA(HWND
,INT
,LONG
);
4133 LONG WINAPI
SetClassLongW(HWND
,INT
,LONG
);
4134 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
4135 WORD WINAPI
SetClassWord(HWND
,INT
,WORD
);
4136 HANDLE WINAPI
SetClipboardData(UINT
,HANDLE
);
4137 HWND WINAPI
SetClipboardViewer(HWND
);
4138 HCURSOR WINAPI
SetCursor(HCURSOR
);
4139 BOOL WINAPI
SetCursorPos(INT
,INT
);
4140 BOOL WINAPI
SetDeskWallPaper(LPCSTR
);
4141 BOOL WINAPI
SetDlgItemInt(HWND
,INT
,UINT
,BOOL
);
4142 BOOL WINAPI
SetDlgItemTextA(HWND
,INT
,LPCSTR
);
4143 BOOL WINAPI
SetDlgItemTextW(HWND
,INT
,LPCWSTR
);
4144 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
4145 BOOL WINAPI
SetDoubleClickTime(UINT
);
4146 HWND WINAPI
SetFocus(HWND
);
4147 BOOL WINAPI
SetForegroundWindow(HWND
);
4148 void WINAPI
SetInternalWindowPos(HWND
,UINT
,LPRECT
,LPPOINT
);
4149 BOOL WINAPI
SetMenu(HWND
,HMENU
);
4150 BOOL WINAPI
SetMenuContextHelpId(HMENU
,DWORD
);
4151 BOOL WINAPI
SetMenuItemBitmaps(HMENU
,UINT
,UINT
,HBITMAP
,HBITMAP
);
4152 BOOL WINAPI
SetMessageQueue(INT
);
4153 BOOL WINAPI
SetProcessDefaultLayout(DWORD
);
4154 BOOL WINAPI
SetProcessWindowStation(HWINSTA
);
4155 HWND WINAPI
SetParent(HWND
,HWND
);
4156 BOOL WINAPI
SetPropA(HWND
,LPCSTR
,HANDLE
);
4157 BOOL WINAPI
SetPropW(HWND
,LPCWSTR
,HANDLE
);
4158 #define SetProp WINELIB_NAME_AW(SetProp)
4159 BOOL WINAPI
SetRect(LPRECT
,INT
,INT
,INT
,INT
);
4160 BOOL WINAPI
SetRectEmpty(LPRECT
);
4161 INT WINAPI
SetScrollInfo(HWND
,INT
,const SCROLLINFO
*,BOOL
);
4162 INT WINAPI
SetScrollPos(HWND
,INT
,INT
,BOOL
);
4163 BOOL WINAPI
SetScrollRange(HWND
,INT
,INT
,INT
,BOOL
);
4164 #define SetSysModalWindow(hwnd) ((HWND)0)
4165 BOOL WINAPI
SetSystemCursor(HCURSOR
,DWORD
);
4166 BOOL WINAPI
SetSystemMenu(HWND
,HMENU
);
4167 UINT WINAPI
SetSystemTimer(HWND
,UINT
,UINT
,TIMERPROC
);
4168 UINT WINAPI
SetTimer(HWND
,UINT
,UINT
,TIMERPROC
);
4169 BOOL WINAPI
SetUserObjectSecurity(HANDLE
,PSECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
4170 LONG WINAPI
SetWindowLongA(HWND
,INT
,LONG
);
4171 LONG WINAPI
SetWindowLongW(HWND
,INT
,LONG
);
4172 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
4173 BOOL WINAPI
SetWindowPlacement(HWND
,const WINDOWPLACEMENT
*);
4174 HHOOK WINAPI
SetWindowsHookA(INT
,HOOKPROC
);
4175 HHOOK WINAPI
SetWindowsHookW(INT
,HOOKPROC
);
4176 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
4177 HHOOK WINAPI
SetWindowsHookExA(INT
,HOOKPROC
,HINSTANCE
,DWORD
);
4178 HHOOK WINAPI
SetWindowsHookExW(INT
,HOOKPROC
,HINSTANCE
,DWORD
);
4179 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
4180 BOOL WINAPI
SetWindowPos(HWND
,HWND
,INT
,INT
,INT
,INT
,UINT
);
4181 INT WINAPI
SetWindowRgn(HWND
,HRGN
,BOOL
);
4182 BOOL WINAPI
SetWindowTextA(HWND
,LPCSTR
);
4183 BOOL WINAPI
SetWindowTextW(HWND
,LPCWSTR
);
4184 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
4185 WORD WINAPI
SetWindowWord(HWND
,INT
,WORD
);
4186 BOOL WINAPI
ShowCaret(HWND
);
4187 INT WINAPI
ShowCursor(BOOL
);
4188 BOOL WINAPI
ShowScrollBar(HWND
,INT
,BOOL
);
4189 BOOL WINAPI
ShowOwnedPopups(HWND
,BOOL
);
4190 BOOL WINAPI
ShowWindow(HWND
,INT
);
4191 BOOL WINAPI
SubtractRect(LPRECT
,const RECT
*,const RECT
*);
4192 BOOL WINAPI
SwapMouseButton(BOOL
);
4193 VOID WINAPI
SwitchToThisWindow(HWND
,BOOL
);
4194 BOOL WINAPI
SystemParametersInfoA(UINT
,UINT
,LPVOID
,UINT
);
4195 BOOL WINAPI
SystemParametersInfoW(UINT
,UINT
,LPVOID
,UINT
);
4196 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
4197 LONG WINAPI
TabbedTextOutA(HDC
,INT
,INT
,LPCSTR
,INT
,INT
,const INT
*,INT
);
4198 LONG WINAPI
TabbedTextOutW(HDC
,INT
,INT
,LPCWSTR
,INT
,INT
,const INT
*,INT
);
4199 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
4200 INT WINAPI
ToAscii(UINT
,UINT
,LPBYTE
,LPWORD
,UINT
);
4201 INT WINAPI
ToAsciiEx(UINT
,UINT
,LPBYTE
,LPWORD
,UINT
,HKL
);
4202 BOOL WINAPI
TrackMouseEvent(LPTRACKMOUSEEVENT
);
4203 BOOL WINAPI
TrackPopupMenu(HMENU
,UINT
,INT
,INT
,INT
,HWND
,const RECT
*);
4204 INT WINAPI
TranslateAccelerator(HWND
,HACCEL
,LPMSG
);
4205 BOOL WINAPI
TranslateMDISysAccel(HWND
,LPMSG
);
4206 BOOL WINAPI
TranslateMessage(const MSG
*);
4207 BOOL WINAPI
UnhookWindowsHook(INT
,HOOKPROC
);
4208 BOOL WINAPI
UnhookWindowsHookEx(HHOOK
);
4209 BOOL WINAPI
UnionRect(LPRECT
,const RECT
*,const RECT
*);
4210 BOOL WINAPI
UnregisterClassA(LPCSTR
,HINSTANCE
);
4211 BOOL WINAPI
UnregisterClassW(LPCWSTR
,HINSTANCE
);
4212 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
4213 VOID WINAPI
UpdateWindow(HWND
);
4214 UINT WINAPI
UserRealizePalette(HDC
);
4215 VOID WINAPI
ValidateRect(HWND
,const RECT
*);
4216 VOID WINAPI
ValidateRgn(HWND
,HRGN
);
4217 WORD WINAPI
VkKeyScanA(CHAR
);
4218 WORD WINAPI
VkKeyScanW(WCHAR
);
4219 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
4220 WORD WINAPI
VkKeyScanExA(CHAR
, HKL
);
4221 WORD WINAPI
VkKeyScanExW(WCHAR
, HKL
);
4222 #define VkKeyScanEx WINELIB_NAME_AW(VkKeyScanEx)
4223 BOOL WINAPI
WaitMessage(void);
4224 HWND WINAPI
WindowFromDC(HDC
);
4225 HWND WINAPI
WindowFromPoint(POINT
);
4226 BOOL WINAPI
WinHelpA(HWND
,LPCSTR
,UINT
,DWORD
);
4227 BOOL WINAPI
WinHelpW(HWND
,LPCWSTR
,UINT
,DWORD
);
4228 #define WinHelp WINELIB_NAME_AW(WinHelp)
4229 INT WINAPIV
wsprintfA(LPSTR
,LPCSTR
,...);
4230 INT WINAPIV
wsprintfW(LPWSTR
,LPCWSTR
,...);
4231 #define wsprintf WINELIB_NAME_AW(wsprintf)
4232 INT WINAPI
wvsprintfA(LPSTR
,LPCSTR
,va_list);
4233 INT WINAPI
wvsprintfW(LPWSTR
,LPCWSTR
,va_list);
4234 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
4236 /* Undocumented functions */
4238 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
4239 WORD WINAPI
SYSTEM_KillSystemTimer( WORD
);
4241 HRESULT WINAPI
PrivateExtractIconsA(LPCSTR
,INT
,DWORD
,DWORD
,HICON
*,DWORD
,UINT
,DWORD
);
4242 HRESULT WINAPI
PrivateExtractIconsW(LPCWSTR
,INT
,DWORD
,DWORD
,HICON
*,DWORD
,UINT
,DWORD
);
4248 #endif /* _WINUSER_ */