Small enhancement.
[wine/hacks.git] / include / winuser.h
blob36bf840c8dc236f8a7112d376cbbc9a37312b3cc
1 #ifndef __INCLUDE_WINUSER_H
2 #define __INCLUDE_WINUSER_H
4 #ifndef RC_INVOKED
5 #include <stdarg.h>
6 #endif
7 #include "windef.h"
8 #include "wingdi.h"
9 #include "wine/winestring.h"
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
15 #pragma pack(1)
17 /* flags for HIGHCONTRAST dwFlags field */
18 #define HCF_HIGHCONTRASTON 0x00000001
19 #define HCF_AVAILABLE 0x00000002
20 #define HCF_HOTKEYACTIVE 0x00000004
21 #define HCF_CONFIRMHOTKEY 0x00000008
22 #define HCF_HOTKEYSOUND 0x00000010
23 #define HCF_INDICATOR 0x00000020
24 #define HCF_HOTKEYAVAILABLE 0x00000040
26 typedef struct tagHIGHCONTRASTA
28 UINT cbSize;
29 DWORD dwFlags;
30 LPSTR lpszDefaultScheme;
31 } HIGHCONTRASTA, *LPHIGHCONTRASTA;
33 typedef struct tagHIGHCONTRASTW
35 UINT cbSize;
36 DWORD dwFlags;
37 LPWSTR lpszDefaultScheme;
38 } HIGHCONTRASTW, *LPHIGHCONTRASTW;
40 DECL_WINELIB_TYPE_AW(HIGHCONTRAST)
41 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST)
43 typedef struct
45 UINT message;
46 UINT paramL;
47 UINT paramH;
48 DWORD time;
49 HWND hwnd;
50 } EVENTMSG, *LPEVENTMSG;
53 /* Mouse hook structure */
55 typedef struct
57 POINT pt;
58 HWND hwnd;
59 UINT wHitTestCode;
60 DWORD dwExtraInfo;
61 } MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT;
64 /* Hardware hook structure */
66 typedef struct
68 HWND hWnd;
69 UINT wMessage;
70 WPARAM wParam;
71 LPARAM lParam;
72 } HARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT;
75 /* Debug hook structure */
77 typedef struct
79 DWORD idThread;
80 DWORD idThreadInstaller;
81 LPARAM lParam;
82 WPARAM wParam;
83 INT code;
84 } DEBUGHOOKINFO, *LPDEBUGHOOKINFO;
86 #define HKL_PREV 0
87 #define HKL_NEXT 1
89 #define KLF_ACTIVATE 0x00000001
90 #define KLF_SUBSTITUTE_OK 0x00000002
91 #define KLF_UNLOADPREVIOUS 0x00000004
92 #define KLF_REORDER 0x00000008
93 #define KLF_REPLACELANG 0x00000010
94 #define KLF_NOTELLSHELL 0x00000080
96 #define KL_NAMELENGTH 9
98 /***** Dialogs *****/
99 #ifdef FSHIFT
100 /* Gcc on Solaris has a version of this that we don't care about. */
101 #undef FSHIFT
102 #endif
104 #define FVIRTKEY TRUE /* Assumed to be == TRUE */
105 #define FNOINVERT 0x02
106 #define FSHIFT 0x04
107 #define FCONTROL 0x08
108 #define FALT 0x10
111 typedef struct tagANIMATIONINFO
113 UINT cbSize;
114 INT iMinAnimate;
115 } ANIMATIONINFO, *LPANIMATIONINFO;
117 typedef struct tagNMHDR
119 HWND hwndFrom;
120 UINT idFrom;
121 UINT code;
122 } NMHDR, *LPNMHDR;
124 typedef struct
126 UINT cbSize;
127 INT iTabLength;
128 INT iLeftMargin;
129 INT iRightMargin;
130 UINT uiLengthDrawn;
131 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS;
133 #define WM_USER 0x0400
135 #define DT_EDITCONTROL 0x00002000
136 #define DT_PATH_ELLIPSIS 0x00004000
137 #define DT_END_ELLIPSIS 0x00008000
138 #define DT_MODIFYSTRING 0x00010000
139 #define DT_RTLREADING 0x00020000
140 #define DT_WORD_ELLIPSIS 0x00040000
142 typedef struct
144 LPARAM lParam;
145 WPARAM16 wParam;
146 UINT16 message;
147 HWND16 hwnd;
148 } CWPSTRUCT16, *LPCWPSTRUCT16;
150 typedef struct
152 LPARAM lParam;
153 WPARAM wParam;
154 UINT message;
155 HWND hwnd;
156 } CWPSTRUCT, *LPCWPSTRUCT;
160 typedef struct
162 LRESULT lResult;
163 LPARAM lParam;
164 WPARAM16 wParam;
165 DWORD message;
166 HWND16 hwnd;
167 } CWPRETSTRUCT16, *LPCWPRETSTRUCT16;
169 typedef struct
171 LRESULT lResult;
172 LPARAM lParam;
173 WPARAM wParam;
174 DWORD message;
175 HWND hwnd;
176 } CWPRETSTRUCT, *LPCWPRETSTRUCT;
178 typedef struct
180 UINT length;
181 UINT flags;
182 UINT showCmd;
183 POINT ptMinPosition WINE_PACKED;
184 POINT ptMaxPosition WINE_PACKED;
185 RECT rcNormalPosition WINE_PACKED;
186 } WINDOWPLACEMENT, *LPWINDOWPLACEMENT;
189 /* WINDOWPLACEMENT flags */
190 #define WPF_SETMINPOSITION 0x0001
191 #define WPF_RESTORETOMAXIMIZED 0x0002
193 /***** Dialogs *****/
195 /* cbWndExtra bytes for dialog class */
196 #define DLGWINDOWEXTRA 30
198 /* Button control styles */
199 #define BS_PUSHBUTTON 0x00000000L
200 #define BS_DEFPUSHBUTTON 0x00000001L
201 #define BS_CHECKBOX 0x00000002L
202 #define BS_AUTOCHECKBOX 0x00000003L
203 #define BS_RADIOBUTTON 0x00000004L
204 #define BS_3STATE 0x00000005L
205 #define BS_AUTO3STATE 0x00000006L
206 #define BS_GROUPBOX 0x00000007L
207 #define BS_USERBUTTON 0x00000008L
208 #define BS_AUTORADIOBUTTON 0x00000009L
209 #define BS_OWNERDRAW 0x0000000BL
210 #define BS_LEFTTEXT 0x00000020L
212 #define BS_LEFT 0x00000100L
213 #define BS_PUSHLIKE 0x00001000L
214 #define BS_MULTILINE 0x00002000L
215 #define BS_NOTIFY 0x00004000L
216 #define BS_FLAT 0x00008000L
218 /* Button control messages */
220 #define BST_UNCHECKED 0x0000
221 #define BST_CHECKED 0x0001
222 #define BST_INDETERMINATE 0x0002
223 #define BST_PUSHED 0x0004
224 #define BST_FOCUS 0x0008
226 /* Dialog styles */
227 #define DS_ABSALIGN 0x0001
228 #define DS_SYSMODAL 0x0002
229 #define DS_3DLOOK 0x0004 /* win95 */
230 #define DS_FIXEDSYS 0x0008 /* win95 */
231 #define DS_NOFAILCREATE 0x0010 /* win95 */
232 #define DS_LOCALEDIT 0x0020
233 #define DS_SETFONT 0x0040
234 #define DS_MODALFRAME 0x0080
235 #define DS_NOIDLEMSG 0x0100
236 #define DS_SETFOREGROUND 0x0200 /* win95 */
237 #define DS_CONTROL 0x0400 /* win95 */
238 #define DS_CENTER 0x0800 /* win95 */
239 #define DS_CENTERMOUSE 0x1000 /* win95 */
240 #define DS_CONTEXTHELP 0x2000 /* win95 */
243 /* Dialog messages */
244 #define DM_GETDEFID (WM_USER+0)
245 #define DM_SETDEFID (WM_USER+1)
247 #define DC_HASDEFID 0x534b
249 /* Owner draw control types */
250 #define ODT_MENU 1
251 #define ODT_LISTBOX 2
252 #define ODT_COMBOBOX 3
253 #define ODT_BUTTON 4
255 /* Owner draw actions */
256 #define ODA_DRAWENTIRE 0x0001
257 #define ODA_SELECT 0x0002
258 #define ODA_FOCUS 0x0004
260 /* Owner draw state */
261 #define ODS_SELECTED 0x0001
262 #define ODS_GRAYED 0x0002
263 #define ODS_DISABLED 0x0004
264 #define ODS_CHECKED 0x0008
265 #define ODS_FOCUS 0x0010
267 /* Edit control styles */
268 #define ES_LEFT 0x00000000
269 #define ES_CENTER 0x00000001
270 #define ES_RIGHT 0x00000002
271 #define ES_MULTILINE 0x00000004
272 #define ES_UPPERCASE 0x00000008
273 #define ES_LOWERCASE 0x00000010
274 #define ES_PASSWORD 0x00000020
275 #define ES_AUTOVSCROLL 0x00000040
276 #define ES_AUTOHSCROLL 0x00000080
277 #define ES_NOHIDESEL 0x00000100
278 #define ES_OEMCONVERT 0x00000400
279 #define ES_READONLY 0x00000800
280 #define ES_WANTRETURN 0x00001000
281 #define ES_NUMBER 0x00002000
283 /* OEM Resource Ordinal Numbers */
284 #define OBM_CLOSED 32731
285 #define OBM_RADIOCHECK 32732
286 #define OBM_TRTYPE 32733
287 #define OBM_LFARROWI 32734
288 #define OBM_RGARROWI 32735
289 #define OBM_DNARROWI 32736
290 #define OBM_UPARROWI 32737
291 #define OBM_COMBO 32738
292 #define OBM_MNARROW 32739
293 #define OBM_LFARROWD 32740
294 #define OBM_RGARROWD 32741
295 #define OBM_DNARROWD 32742
296 #define OBM_UPARROWD 32743
297 #define OBM_RESTORED 32744
298 #define OBM_ZOOMD 32745
299 #define OBM_REDUCED 32746
300 #define OBM_RESTORE 32747
301 #define OBM_ZOOM 32748
302 #define OBM_REDUCE 32749
303 #define OBM_LFARROW 32750
304 #define OBM_RGARROW 32751
305 #define OBM_DNARROW 32752
306 #define OBM_UPARROW 32753
307 #define OBM_CLOSE 32754
308 #define OBM_OLD_RESTORE 32755
309 #define OBM_OLD_ZOOM 32756
310 #define OBM_OLD_REDUCE 32757
311 #define OBM_BTNCORNERS 32758
312 #define OBM_CHECKBOXES 32759
313 #define OBM_CHECK 32760
314 #define OBM_BTSIZE 32761
315 #define OBM_OLD_LFARROW 32762
316 #define OBM_OLD_RGARROW 32763
317 #define OBM_OLD_DNARROW 32764
318 #define OBM_OLD_UPARROW 32765
319 #define OBM_SIZE 32766
320 #define OBM_OLD_CLOSE 32767
322 #define OCR_BUMMER 100
323 #define OCR_DRAGOBJECT 101
325 #define OCR_NORMAL 32512
326 #define OCR_IBEAM 32513
327 #define OCR_WAIT 32514
328 #define OCR_CROSS 32515
329 #define OCR_UP 32516
330 #define OCR_SIZE 32640
331 #define OCR_ICON 32641
332 #define OCR_SIZENWSE 32642
333 #define OCR_SIZENESW 32643
334 #define OCR_SIZEWE 32644
335 #define OCR_SIZENS 32645
336 #define OCR_SIZEALL 32646
337 #define OCR_ICOCUR 32647
338 #define OCR_NO 32648
339 #define OCR_APPSTARTING 32650
340 #define OCR_HELP 32651 /* only defined in wine */
342 #define OIC_SAMPLE 32512
343 #define OIC_HAND 32513
344 #define OIC_QUES 32514
345 #define OIC_BANG 32515
346 #define OIC_NOTE 32516
347 #define OIC_PORTRAIT 32517
348 #define OIC_LANDSCAPE 32518
349 #define OIC_WINEICON 32519
350 #define OIC_FOLDER 32520
351 #define OIC_FOLDER2 32521
352 #define OIC_FLOPPY 32522
353 #define OIC_CDROM 32523
354 #define OIC_HDISK 32524
355 #define OIC_NETWORK 32525
357 /* Edit control messages */
358 #define EM_GETSEL 0x00b0
359 #define EM_SETSEL 0x00b1
360 #define EM_GETRECT 0x00b2
361 #define EM_SETRECT 0x00b3
362 #define EM_SETRECTNP 0x00b4
363 #define EM_SCROLL 0x00b5
364 #define EM_LINESCROLL 0x00b6
365 #define EM_SCROLLCARET 0x00b7
366 #define EM_GETMODIFY 0x00b8
367 #define EM_SETMODIFY 0x00b9
368 #define EM_GETLINECOUNT 0x00ba
369 #define EM_LINEINDEX 0x00bb
370 #define EM_SETHANDLE 0x00bc
371 #define EM_GETHANDLE 0x00bd
372 #define EM_GETTHUMB 0x00be
373 /* FIXME : missing from specs 0x00bf and 0x00c0 */
374 #define EM_LINELENGTH 0x00c1
375 #define EM_REPLACESEL 0x00c2
376 /* FIXME : missing from specs 0x00c3 */
377 #define EM_GETLINE 0x00c4
378 #define EM_LIMITTEXT 0x00c5
379 #define EM_CANUNDO 0x00c6
380 #define EM_UNDO 0x00c7
381 #define EM_FMTLINES 0x00c8
382 #define EM_LINEFROMCHAR 0x00c9
383 /* FIXME : missing from specs 0x00ca */
384 #define EM_SETTABSTOPS 0x00cb
385 #define EM_SETPASSWORDCHAR 0x00cc
386 #define EM_EMPTYUNDOBUFFER 0x00cd
387 #define EM_GETFIRSTVISIBLELINE 0x00ce
388 #define EM_SETREADONLY 0x00cf
389 #define EM_SETWORDBREAKPROC 0x00d0
390 #define EM_GETWORDBREAKPROC 0x00d1
391 #define EM_GETPASSWORDCHAR 0x00d2
392 #define EM_SETMARGINS 0x00d3
393 #define EM_GETMARGINS 0x00d4
394 #define EM_GETLIMITTEXT 0x00d5
395 #define EM_POSFROMCHAR 0x00d6
396 #define EM_CHARFROMPOS 0x00d7
397 /* a name change since win95 */
398 #define EM_SETLIMITTEXT EM_LIMITTEXT
400 /* EDITWORDBREAKPROC code values */
401 #define WB_LEFT 0
402 #define WB_RIGHT 1
403 #define WB_ISDELIMITER 2
405 /* Edit control notification codes */
406 #define EN_SETFOCUS 0x0100
407 #define EN_KILLFOCUS 0x0200
408 #define EN_CHANGE 0x0300
409 #define EN_UPDATE 0x0400
410 #define EN_ERRSPACE 0x0500
411 #define EN_MAXTEXT 0x0501
412 #define EN_HSCROLL 0x0601
413 #define EN_VSCROLL 0x0602
415 /* New since win95 : EM_SETMARGIN parameters */
416 #define EC_LEFTMARGIN 0x0001
417 #define EC_RIGHTMARGIN 0x0002
418 #define EC_USEFONTINFO 0xffff
421 /* Messages */
423 /* WM_GETDLGCODE values */
426 #define WM_NULL 0x0000
427 #define WM_CREATE 0x0001
428 #define WM_DESTROY 0x0002
429 #define WM_MOVE 0x0003
430 #define WM_SIZEWAIT 0x0004
431 #define WM_SIZE 0x0005
432 #define WM_ACTIVATE 0x0006
433 #define WM_SETFOCUS 0x0007
434 #define WM_KILLFOCUS 0x0008
435 #define WM_SETVISIBLE 0x0009
436 #define WM_ENABLE 0x000a
437 #define WM_SETREDRAW 0x000b
438 #define WM_SETTEXT 0x000c
439 #define WM_GETTEXT 0x000d
440 #define WM_GETTEXTLENGTH 0x000e
441 #define WM_PAINT 0x000f
442 #define WM_CLOSE 0x0010
443 #define WM_QUERYENDSESSION 0x0011
444 #define WM_QUIT 0x0012
445 #define WM_QUERYOPEN 0x0013
446 #define WM_ERASEBKGND 0x0014
447 #define WM_SYSCOLORCHANGE 0x0015
448 #define WM_ENDSESSION 0x0016
449 #define WM_SYSTEMERROR 0x0017
450 #define WM_SHOWWINDOW 0x0018
451 #define WM_CTLCOLOR 0x0019
452 #define WM_WININICHANGE 0x001a
453 #define WM_SETTINGCHANGE WM_WININICHANGE
454 #define WM_DEVMODECHANGE 0x001b
455 #define WM_ACTIVATEAPP 0x001c
456 #define WM_FONTCHANGE 0x001d
457 #define WM_TIMECHANGE 0x001e
458 #define WM_CANCELMODE 0x001f
459 #define WM_SETCURSOR 0x0020
460 #define WM_MOUSEACTIVATE 0x0021
461 #define WM_CHILDACTIVATE 0x0022
462 #define WM_QUEUESYNC 0x0023
463 #define WM_GETMINMAXINFO 0x0024
465 #define WM_PAINTICON 0x0026
466 #define WM_ICONERASEBKGND 0x0027
467 #define WM_NEXTDLGCTL 0x0028
468 #define WM_ALTTABACTIVE 0x0029
469 #define WM_SPOOLERSTATUS 0x002a
470 #define WM_DRAWITEM 0x002b
471 #define WM_MEASUREITEM 0x002c
472 #define WM_DELETEITEM 0x002d
473 #define WM_VKEYTOITEM 0x002e
474 #define WM_CHARTOITEM 0x002f
475 #define WM_SETFONT 0x0030
476 #define WM_GETFONT 0x0031
477 #define WM_SETHOTKEY 0x0032
478 #define WM_GETHOTKEY 0x0033
479 #define WM_FILESYSCHANGE 0x0034
480 #define WM_ISACTIVEICON 0x0035
481 #define WM_QUERYPARKICON 0x0036
482 #define WM_QUERYDRAGICON 0x0037
483 #define WM_QUERYSAVESTATE 0x0038
484 #define WM_COMPAREITEM 0x0039
485 #define WM_TESTING 0x003a
487 #define WM_OTHERWINDOWCREATED 0x003c
488 #define WM_OTHERWINDOWDESTROYED 0x003d
489 #define WM_ACTIVATESHELLWINDOW 0x003e
491 #define WM_COMPACTING 0x0041
493 #define WM_COMMNOTIFY 0x0044
494 #define WM_WINDOWPOSCHANGING 0x0046
495 #define WM_WINDOWPOSCHANGED 0x0047
496 #define WM_POWER 0x0048
498 /* Win32 4.0 messages */
499 #define WM_COPYDATA 0x004a
500 #define WM_CANCELJOURNAL 0x004b
501 #define WM_NOTIFY 0x004e
502 #define WM_HELP 0x0053
503 #define WM_NOTIFYFORMAT 0x0055
505 #define WM_CONTEXTMENU 0x007b
506 #define WM_STYLECHANGING 0x007c
507 #define WM_STYLECHANGED 0x007d
508 #define WM_DISPLAYCHANGE 0x007e
509 #define WM_GETICON 0x007f
510 #define WM_SETICON 0x0080
512 /* Non-client system messages */
513 #define WM_NCCREATE 0x0081
514 #define WM_NCDESTROY 0x0082
515 #define WM_NCCALCSIZE 0x0083
516 #define WM_NCHITTEST 0x0084
517 #define WM_NCPAINT 0x0085
518 #define WM_NCACTIVATE 0x0086
520 #define WM_GETDLGCODE 0x0087
521 #define WM_SYNCPAINT 0x0088
522 #define WM_SYNCTASK 0x0089
524 /* Non-client mouse messages */
525 #define WM_NCMOUSEMOVE 0x00a0
526 #define WM_NCLBUTTONDOWN 0x00a1
527 #define WM_NCLBUTTONUP 0x00a2
528 #define WM_NCLBUTTONDBLCLK 0x00a3
529 #define WM_NCRBUTTONDOWN 0x00a4
530 #define WM_NCRBUTTONUP 0x00a5
531 #define WM_NCRBUTTONDBLCLK 0x00a6
532 #define WM_NCMBUTTONDOWN 0x00a7
533 #define WM_NCMBUTTONUP 0x00a8
534 #define WM_NCMBUTTONDBLCLK 0x00a9
536 /* Keyboard messages */
537 #define WM_KEYDOWN 0x0100
538 #define WM_KEYUP 0x0101
539 #define WM_CHAR 0x0102
540 #define WM_DEADCHAR 0x0103
541 #define WM_SYSKEYDOWN 0x0104
542 #define WM_SYSKEYUP 0x0105
543 #define WM_SYSCHAR 0x0106
544 #define WM_SYSDEADCHAR 0x0107
545 #define WM_KEYFIRST WM_KEYDOWN
546 #define WM_KEYLAST 0x0108
548 #define WM_INITDIALOG 0x0110
549 #define WM_COMMAND 0x0111
550 #define WM_SYSCOMMAND 0x0112
551 #define WM_TIMER 0x0113
552 #define WM_SYSTIMER 0x0118
554 /* scroll messages */
555 #define WM_HSCROLL 0x0114
556 #define WM_VSCROLL 0x0115
558 /* Menu messages */
559 #define WM_INITMENU 0x0116
560 #define WM_INITMENUPOPUP 0x0117
562 #define WM_MENUSELECT 0x011F
563 #define WM_MENUCHAR 0x0120
564 #define WM_ENTERIDLE 0x0121
566 #define WM_LBTRACKPOINT 0x0131
568 /* Win32 CTLCOLOR messages */
569 #define WM_CTLCOLORMSGBOX 0x0132
570 #define WM_CTLCOLOREDIT 0x0133
571 #define WM_CTLCOLORLISTBOX 0x0134
572 #define WM_CTLCOLORBTN 0x0135
573 #define WM_CTLCOLORDLG 0x0136
574 #define WM_CTLCOLORSCROLLBAR 0x0137
575 #define WM_CTLCOLORSTATIC 0x0138
577 /* Mouse messages */
578 #define WM_MOUSEMOVE 0x0200
579 #define WM_LBUTTONDOWN 0x0201
580 #define WM_LBUTTONUP 0x0202
581 #define WM_LBUTTONDBLCLK 0x0203
582 #define WM_RBUTTONDOWN 0x0204
583 #define WM_RBUTTONUP 0x0205
584 #define WM_RBUTTONDBLCLK 0x0206
585 #define WM_MBUTTONDOWN 0x0207
586 #define WM_MBUTTONUP 0x0208
587 #define WM_MBUTTONDBLCLK 0x0209
588 #define WM_MOUSEFIRST WM_MOUSEMOVE
589 #define WM_MOUSELAST WM_MBUTTONDBLCLK
591 #define WM_PARENTNOTIFY 0x0210
592 #define WM_ENTERMENULOOP 0x0211
593 #define WM_EXITMENULOOP 0x0212
594 #define WM_NEXTMENU 0x0213
596 /* Win32 4.0 messages */
597 #define WM_SIZING 0x0214
598 #define WM_CAPTURECHANGED 0x0215
599 #define WM_MOVING 0x0216
601 /* MDI messages */
602 #define WM_MDICREATE 0x0220
603 #define WM_MDIDESTROY 0x0221
604 #define WM_MDIACTIVATE 0x0222
605 #define WM_MDIRESTORE 0x0223
606 #define WM_MDINEXT 0x0224
607 #define WM_MDIMAXIMIZE 0x0225
608 #define WM_MDITILE 0x0226
609 #define WM_MDICASCADE 0x0227
610 #define WM_MDIICONARRANGE 0x0228
611 #define WM_MDIGETACTIVE 0x0229
612 #define WM_MDIREFRESHMENU 0x0234
614 /* D&D messages */
615 #define WM_DROPOBJECT 0x022A
616 #define WM_QUERYDROPOBJECT 0x022B
617 #define WM_BEGINDRAG 0x022C
618 #define WM_DRAGLOOP 0x022D
619 #define WM_DRAGSELECT 0x022E
620 #define WM_DRAGMOVE 0x022F
621 #define WM_MDISETMENU 0x0230
623 #define WM_ENTERSIZEMOVE 0x0231
624 #define WM_EXITSIZEMOVE 0x0232
625 #define WM_DROPFILES 0x0233
627 #define WM_CUT 0x0300
628 #define WM_COPY 0x0301
629 #define WM_PASTE 0x0302
630 #define WM_CLEAR 0x0303
631 #define WM_UNDO 0x0304
632 #define WM_RENDERFORMAT 0x0305
633 #define WM_RENDERALLFORMATS 0x0306
634 #define WM_DESTROYCLIPBOARD 0x0307
635 #define WM_DRAWCLIPBOARD 0x0308
636 #define WM_PAINTCLIPBOARD 0x0309
637 #define WM_VSCROLLCLIPBOARD 0x030A
638 #define WM_SIZECLIPBOARD 0x030B
639 #define WM_ASKCBFORMATNAME 0x030C
640 #define WM_CHANGECBCHAIN 0x030D
641 #define WM_HSCROLLCLIPBOARD 0x030E
642 #define WM_QUERYNEWPALETTE 0x030F
643 #define WM_PALETTEISCHANGING 0x0310
644 #define WM_PALETTECHANGED 0x0311
645 #define WM_HOTKEY 0x0312
647 #define WM_PRINT 0x0317
648 #define WM_PRINTCLIENT 0x0318
650 /* FIXME: This does not belong to any libwine interface header */
651 /* MFC messages [360-38f] */
653 #define WM_QUERYAFXWNDPROC 0x0360
654 #define WM_SIZEPARENT 0x0361
655 #define WM_SETMESSAGESTRING 0x0362
656 #define WM_IDLEUPDATECMDUI 0x0363
657 #define WM_INITIALUPDATE 0x0364
658 #define WM_COMMANDHELP 0x0365
659 #define WM_HELPHITTEST 0x0366
660 #define WM_EXITHELPMODE 0x0367
661 #define WM_RECALCPARENT 0x0368
662 #define WM_SIZECHILD 0x0369
663 #define WM_KICKIDLE 0x036A
664 #define WM_QUERYCENTERWND 0x036B
665 #define WM_DISABLEMODAL 0x036C
666 #define WM_FLOATSTATUS 0x036D
667 #define WM_ACTIVATETOPLEVEL 0x036E
668 #define WM_QUERY3DCONTROLS 0x036F
669 #define WM_SOCKET_NOTIFY 0x0373
670 #define WM_SOCKET_DEAD 0x0374
671 #define WM_POPMESSAGESTRING 0x0375
672 #define WM_OCC_LOADFROMSTREAM 0x0376
673 #define WM_OCC_LOADFROMSTORAGE 0x0377
674 #define WM_OCC_INITNEW 0x0378
675 #define WM_OCC_LOADFROMSTREAM_EX 0x037A
676 #define WM_OCC_LOADFROMSTORAGE_EX 0x037B
677 #define WM_QUEUE_SENTINEL 0x0379
679 #define WM_PENWINFIRST 0x0380
680 #define WM_PENWINLAST 0x038F
682 /* end of MFC messages */
684 /* FIXME: This does not belong to any libwine interface header */
685 #define WM_COALESCE_FIRST 0x0390
686 #define WM_COALESCE_LAST 0x039F
690 #define DLGC_WANTARROWS 0x0001
691 #define DLGC_WANTTAB 0x0002
692 #define DLGC_WANTALLKEYS 0x0004
693 #define DLGC_WANTMESSAGE 0x0004
694 #define DLGC_HASSETSEL 0x0008
695 #define DLGC_DEFPUSHBUTTON 0x0010
696 #define DLGC_UNDEFPUSHBUTTON 0x0020
697 #define DLGC_RADIOBUTTON 0x0040
698 #define DLGC_WANTCHARS 0x0080
699 #define DLGC_STATIC 0x0100
700 #define DLGC_BUTTON 0x2000
702 /* Standard dialog button IDs */
703 #define IDOK 1
704 #define IDCANCEL 2
705 #define IDABORT 3
706 #define IDRETRY 4
707 #define IDIGNORE 5
708 #define IDYES 6
709 #define IDNO 7
710 #define IDCLOSE 8
711 #define IDHELP 9
713 /****** Window classes ******/
715 typedef struct tagCREATESTRUCTA
717 LPVOID lpCreateParams;
718 HINSTANCE hInstance;
719 HMENU hMenu;
720 HWND hwndParent;
721 INT cy;
722 INT cx;
723 INT y;
724 INT x;
725 LONG style;
726 LPCSTR lpszName;
727 LPCSTR lpszClass;
728 DWORD dwExStyle;
729 } CREATESTRUCTA, *LPCREATESTRUCTA;
731 typedef struct
733 LPVOID lpCreateParams;
734 HINSTANCE hInstance;
735 HMENU hMenu;
736 HWND hwndParent;
737 INT cy;
738 INT cx;
739 INT y;
740 INT x;
741 LONG style;
742 LPCWSTR lpszName;
743 LPCWSTR lpszClass;
744 DWORD dwExStyle;
745 } CREATESTRUCTW, *LPCREATESTRUCTW;
747 DECL_WINELIB_TYPE_AW(CREATESTRUCT)
748 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT)
750 typedef struct
752 HMENU hWindowMenu;
753 UINT idFirstChild;
754 } CLIENTCREATESTRUCT, *LPCLIENTCREATESTRUCT;
757 typedef struct
759 LPCSTR szClass;
760 LPCSTR szTitle;
761 HINSTANCE hOwner;
762 INT x;
763 INT y;
764 INT cx;
765 INT cy;
766 DWORD style;
767 LPARAM lParam;
768 } MDICREATESTRUCTA, *LPMDICREATESTRUCTA;
770 typedef struct
772 LPCWSTR szClass;
773 LPCWSTR szTitle;
774 HINSTANCE hOwner;
775 INT x;
776 INT y;
777 INT cx;
778 INT cy;
779 DWORD style;
780 LPARAM lParam;
781 } MDICREATESTRUCTW, *LPMDICREATESTRUCTW;
783 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT)
784 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT)
786 #define MDITILE_VERTICAL 0x0000
787 #define MDITILE_HORIZONTAL 0x0001
788 #define MDITILE_SKIPDISABLED 0x0002
790 #define MDIS_ALLCHILDSTYLES 0x0001
792 typedef struct {
793 DWORD styleOld;
794 DWORD styleNew;
795 } STYLESTRUCT, *LPSTYLESTRUCT;
797 /* Offsets for GetWindowLong() and GetWindowWord() */
798 #define GWL_USERDATA (-21)
799 #define GWL_EXSTYLE (-20)
800 #define GWL_STYLE (-16)
801 #define GWW_ID (-12)
802 #define GWL_ID GWW_ID
803 #define GWW_HWNDPARENT (-8)
804 #define GWL_HWNDPARENT GWW_HWNDPARENT
805 #define GWW_HINSTANCE (-6)
806 #define GWL_HINSTANCE GWW_HINSTANCE
807 #define GWL_WNDPROC (-4)
808 #define DWL_MSGRESULT 0
809 #define DWL_DLGPROC 4
810 #define DWL_USER 8
812 /* GetWindow() constants */
813 #define GW_HWNDFIRST 0
814 #define GW_HWNDLAST 1
815 #define GW_HWNDNEXT 2
816 #define GW_HWNDPREV 3
817 #define GW_OWNER 4
818 #define GW_CHILD 5
820 /* WM_GETMINMAXINFO struct */
821 typedef struct
823 POINT ptReserved;
824 POINT ptMaxSize;
825 POINT ptMaxPosition;
826 POINT ptMinTrackSize;
827 POINT ptMaxTrackSize;
828 } MINMAXINFO, *PMINMAXINFO, *LPMINMAXINFO;
831 /* RedrawWindow() flags */
832 #define RDW_INVALIDATE 0x0001
833 #define RDW_INTERNALPAINT 0x0002
834 #define RDW_ERASE 0x0004
835 #define RDW_VALIDATE 0x0008
836 #define RDW_NOINTERNALPAINT 0x0010
837 #define RDW_NOERASE 0x0020
838 #define RDW_NOCHILDREN 0x0040
839 #define RDW_ALLCHILDREN 0x0080
840 #define RDW_UPDATENOW 0x0100
841 #define RDW_ERASENOW 0x0200
842 #define RDW_FRAME 0x0400
843 #define RDW_NOFRAME 0x0800
845 /* debug flags */
846 #define DBGFILL_ALLOC 0xfd
847 #define DBGFILL_FREE 0xfb
848 #define DBGFILL_BUFFER 0xf9
849 #define DBGFILL_STACK 0xf7
851 /* WM_WINDOWPOSCHANGING/CHANGED struct */
852 typedef struct tagWINDOWPOS
854 HWND hwnd;
855 HWND hwndInsertAfter;
856 INT x;
857 INT y;
858 INT cx;
859 INT cy;
860 UINT flags;
861 } WINDOWPOS, *PWINDOWPOS, *LPWINDOWPOS;
864 /* WM_MOUSEACTIVATE return values */
865 #define MA_ACTIVATE 1
866 #define MA_ACTIVATEANDEAT 2
867 #define MA_NOACTIVATE 3
868 #define MA_NOACTIVATEANDEAT 4
870 /* WM_ACTIVATE wParam values */
871 #define WA_INACTIVE 0
872 #define WA_ACTIVE 1
873 #define WA_CLICKACTIVE 2
875 /* WM_NCCALCSIZE parameter structure */
876 typedef struct
878 RECT rgrc[3];
879 WINDOWPOS *lppos;
880 } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
883 /* WM_NCCALCSIZE return flags */
884 #define WVR_ALIGNTOP 0x0010
885 #define WVR_ALIGNLEFT 0x0020
886 #define WVR_ALIGNBOTTOM 0x0040
887 #define WVR_ALIGNRIGHT 0x0080
888 #define WVR_HREDRAW 0x0100
889 #define WVR_VREDRAW 0x0200
890 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW)
891 #define WVR_VALIDRECTS 0x0400
893 /* WM_NCHITTEST return codes */
894 #define HTERROR (-2)
895 #define HTTRANSPARENT (-1)
896 #define HTNOWHERE 0
897 #define HTCLIENT 1
898 #define HTCAPTION 2
899 #define HTSYSMENU 3
900 #define HTSIZE 4
901 #define HTMENU 5
902 #define HTHSCROLL 6
903 #define HTVSCROLL 7
904 #define HTMINBUTTON 8
905 #define HTMAXBUTTON 9
906 #define HTLEFT 10
907 #define HTRIGHT 11
908 #define HTTOP 12
909 #define HTTOPLEFT 13
910 #define HTTOPRIGHT 14
911 #define HTBOTTOM 15
912 #define HTBOTTOMLEFT 16
913 #define HTBOTTOMRIGHT 17
914 #define HTBORDER 18
915 #define HTGROWBOX HTSIZE
916 #define HTREDUCE HTMINBUTTON
917 #define HTZOOM HTMAXBUTTON
918 #define HTOBJECT 19
919 #define HTCLOSE 20
920 #define HTHELP 21
921 #define HTSIZEFIRST HTLEFT
922 #define HTSIZELAST HTBOTTOMRIGHT
924 /* WM_SYSCOMMAND parameters */
925 #ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */
926 #undef SC_SIZE
927 #endif
928 #define SC_SIZE 0xf000
929 #define SC_MOVE 0xf010
930 #define SC_MINIMIZE 0xf020
931 #define SC_MAXIMIZE 0xf030
932 #define SC_NEXTWINDOW 0xf040
933 #define SC_PREVWINDOW 0xf050
934 #define SC_CLOSE 0xf060
935 #define SC_VSCROLL 0xf070
936 #define SC_HSCROLL 0xf080
937 #define SC_MOUSEMENU 0xf090
938 #define SC_KEYMENU 0xf100
939 #define SC_ARRANGE 0xf110
940 #define SC_RESTORE 0xf120
941 #define SC_TASKLIST 0xf130
942 #define SC_SCREENSAVE 0xf140
943 #define SC_HOTKEY 0xf150
945 #define CS_VREDRAW 0x0001
946 #define CS_HREDRAW 0x0002
947 #define CS_KEYCVTWINDOW 0x0004
948 #define CS_DBLCLKS 0x0008
949 #define CS_OWNDC 0x0020
950 #define CS_CLASSDC 0x0040
951 #define CS_PARENTDC 0x0080
952 #define CS_NOKEYCVT 0x0100
953 #define CS_NOCLOSE 0x0200
954 #define CS_SAVEBITS 0x0800
955 #define CS_BYTEALIGNCLIENT 0x1000
956 #define CS_BYTEALIGNWINDOW 0x2000
957 #define CS_GLOBALCLASS 0x4000
959 #define PRF_CHECKVISIBLE 0x00000001L
960 #define PRF_NONCLIENT 0x00000002L
961 #define PRF_CLIENT 0x00000004L
962 #define PRF_ERASEBKGND 0x00000008L
963 #define PRF_CHILDREN 0x00000010L
964 #define PRF_OWNED 0x00000020L
966 /* Offsets for GetClassLong() and GetClassWord() */
967 #define GCL_MENUNAME (-8)
968 #define GCW_HBRBACKGROUND (-10)
969 #define GCL_HBRBACKGROUND GCW_HBRBACKGROUND
970 #define GCW_HCURSOR (-12)
971 #define GCL_HCURSOR GCW_HCURSOR
972 #define GCW_HICON (-14)
973 #define GCL_HICON GCW_HICON
974 #define GCW_HMODULE (-16)
975 #define GCL_HMODULE GCW_HMODULE
976 #define GCW_CBWNDEXTRA (-18)
977 #define GCL_CBWNDEXTRA GCW_CBWNDEXTRA
978 #define GCW_CBCLSEXTRA (-20)
979 #define GCL_CBCLSEXTRA GCW_CBCLSEXTRA
980 #define GCL_WNDPROC (-24)
981 #define GCW_STYLE (-26)
982 #define GCL_STYLE GCW_STYLE
983 #define GCW_ATOM (-32)
984 #define GCW_HICONSM (-34)
985 #define GCL_HICONSM GCW_HICONSM
987 #ifndef NOWINOFFSETS
988 #define GCW_HBRBACKGROUND (-10)
989 #endif
992 /***** Window hooks *****/
994 /* Hook values */
995 #define WH_MIN (-1)
996 #define WH_MSGFILTER (-1)
997 #define WH_JOURNALRECORD 0
998 #define WH_JOURNALPLAYBACK 1
999 #define WH_KEYBOARD 2
1000 #define WH_GETMESSAGE 3
1001 #define WH_CALLWNDPROC 4
1002 #define WH_CBT 5
1003 #define WH_SYSMSGFILTER 6
1004 #define WH_MOUSE 7
1005 #define WH_HARDWARE 8
1006 #define WH_DEBUG 9
1007 #define WH_SHELL 10
1008 #define WH_FOREGROUNDIDLE 11
1009 #define WH_CALLWNDPROCRET 12
1010 #define WH_MAX 12
1012 #define WH_MINHOOK WH_MIN
1013 #define WH_MAXHOOK WH_MAX
1014 #define WH_NB_HOOKS (WH_MAXHOOK-WH_MINHOOK+1)
1016 /* Hook action codes */
1017 #define HC_ACTION 0
1018 #define HC_GETNEXT 1
1019 #define HC_SKIP 2
1020 #define HC_NOREMOVE 3
1021 #define HC_NOREM HC_NOREMOVE
1022 #define HC_SYSMODALON 4
1023 #define HC_SYSMODALOFF 5
1025 /* CallMsgFilter() values */
1026 #define MSGF_DIALOGBOX 0
1027 #define MSGF_MESSAGEBOX 1
1028 #define MSGF_MENU 2
1029 #define MSGF_MOVE 3
1030 #define MSGF_SIZE 4
1031 #define MSGF_SCROLLBAR 5
1032 #define MSGF_NEXTWINDOW 6
1033 #define MSGF_MAINLOOP 8
1034 #define MSGF_USER 4096
1036 typedef struct
1038 UINT style;
1039 WNDPROC lpfnWndProc;
1040 INT cbClsExtra;
1041 INT cbWndExtra;
1042 HINSTANCE hInstance;
1043 HICON hIcon;
1044 HCURSOR hCursor;
1045 HBRUSH hbrBackground;
1046 LPCSTR lpszMenuName;
1047 LPCSTR lpszClassName;
1048 } WNDCLASSA, *LPWNDCLASSA;
1050 typedef struct
1052 UINT style;
1053 WNDPROC lpfnWndProc;
1054 INT cbClsExtra;
1055 INT cbWndExtra;
1056 HINSTANCE hInstance;
1057 HICON hIcon;
1058 HCURSOR hCursor;
1059 HBRUSH hbrBackground;
1060 LPCWSTR lpszMenuName;
1061 LPCWSTR lpszClassName;
1062 } WNDCLASSW, *LPWNDCLASSW;
1064 DECL_WINELIB_TYPE_AW(WNDCLASS)
1065 DECL_WINELIB_TYPE_AW(LPWNDCLASS)
1067 typedef struct {
1068 DWORD dwData;
1069 DWORD cbData;
1070 LPVOID lpData;
1071 } COPYDATASTRUCT, *PCOPYDATASTRUCT, *LPCOPYDATASTRUCT;
1073 typedef struct {
1074 HMENU hmenuIn;
1075 HMENU hmenuNext;
1076 HWND hwndNext;
1077 } MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU;
1079 /* WinHelp internal structure */
1080 typedef struct {
1081 WORD size;
1082 WORD command;
1083 LONG data;
1084 LONG reserved;
1085 WORD ofsFilename;
1086 WORD ofsData;
1087 } WINHELP,*LPWINHELP;
1089 typedef struct
1091 UINT16 mkSize;
1092 BYTE mkKeyList;
1093 BYTE szKeyPhrase[1];
1094 } MULTIKEYHELP, *LPMULTIKEYHELP;
1096 typedef struct {
1097 WORD wStructSize;
1098 WORD x;
1099 WORD y;
1100 WORD dx;
1101 WORD dy;
1102 WORD wMax;
1103 char rgchMember[2];
1104 } HELPWININFO, *LPHELPWININFO;
1106 #define HELP_CONTEXT 0x0001
1107 #define HELP_QUIT 0x0002
1108 #define HELP_INDEX 0x0003
1109 #define HELP_CONTENTS 0x0003
1110 #define HELP_HELPONHELP 0x0004
1111 #define HELP_SETINDEX 0x0005
1112 #define HELP_SETCONTENTS 0x0005
1113 #define HELP_CONTEXTPOPUP 0x0008
1114 #define HELP_FORCEFILE 0x0009
1115 #define HELP_KEY 0x0101
1116 #define HELP_COMMAND 0x0102
1117 #define HELP_PARTIALKEY 0x0105
1118 #define HELP_MULTIKEY 0x0201
1119 #define HELP_SETWINPOS 0x0203
1120 #define HELP_CONTEXTMENU 0x000a
1121 #define HELP_FINDER 0x000b
1122 #define HELP_WM_HELP 0x000c
1123 #define HELP_SETPOPUP_POS 0x000d
1125 #define HELP_TCARD 0x8000
1126 #define HELP_TCARD_DATA 0x0010
1127 #define HELP_TCARD_OTHER_CALLER 0x0011
1130 /* ChangeDisplaySettings return codes */
1132 #define DISP_CHANGE_SUCCESSFUL 0
1133 #define DISP_CHANGE_RESTART 1
1134 #define DISP_CHANGE_FAILED (-1)
1135 #define DISP_CHANGE_BADMODE (-2)
1136 #define DISP_CHANGE_NOTUPDATED (-3)
1137 #define DISP_CHANGE_BADFLAGS (-4)
1139 /* flags to FormatMessage */
1140 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
1141 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
1142 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
1143 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
1144 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
1145 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
1146 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
1148 typedef struct
1150 UINT cbSize;
1151 UINT style;
1152 WNDPROC lpfnWndProc;
1153 INT cbClsExtra;
1154 INT cbWndExtra;
1155 HINSTANCE hInstance;
1156 HICON hIcon;
1157 HCURSOR hCursor;
1158 HBRUSH hbrBackground;
1159 LPCSTR lpszMenuName;
1160 LPCSTR lpszClassName;
1161 HICON hIconSm;
1162 } WNDCLASSEXA, *LPWNDCLASSEXA;
1164 typedef struct
1166 UINT cbSize;
1167 UINT style;
1168 WNDPROC lpfnWndProc;
1169 INT cbClsExtra;
1170 INT cbWndExtra;
1171 HINSTANCE hInstance;
1172 HICON hIcon;
1173 HCURSOR hCursor;
1174 HBRUSH hbrBackground;
1175 LPCWSTR lpszMenuName;
1176 LPCWSTR lpszClassName;
1177 HICON hIconSm;
1178 } WNDCLASSEXW, *LPWNDCLASSEXW;
1180 DECL_WINELIB_TYPE_AW(WNDCLASSEX)
1181 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX)
1183 typedef struct
1185 HWND hwnd;
1186 UINT message;
1187 WPARAM wParam;
1188 LPARAM lParam;
1189 DWORD time;
1190 POINT pt;
1191 } MSG, *LPMSG;
1194 /* Cursors / Icons */
1196 typedef struct {
1197 BOOL fIcon;
1198 DWORD xHotspot;
1199 DWORD yHotspot;
1200 HBITMAP hbmMask;
1201 HBITMAP hbmColor;
1202 } ICONINFO,*LPICONINFO;
1205 /* this is the 6 byte accel struct used in Win32 when presented to the user */
1206 typedef struct
1208 BYTE fVirt;
1209 BYTE pad0;
1210 WORD key;
1211 WORD cmd;
1212 } ACCEL, *LPACCEL;
1214 /* this is the 8 byte accel struct used in Win32 resources (internal only) */
1215 typedef struct
1217 BYTE fVirt;
1218 BYTE pad0;
1219 WORD key;
1220 WORD cmd;
1221 WORD pad1;
1222 } PE_ACCEL, *LPPE_ACCEL;
1225 /* Flags for TrackPopupMenu */
1226 #define TPM_LEFTBUTTON 0x0000
1227 #define TPM_RIGHTBUTTON 0x0002
1228 #define TPM_LEFTALIGN 0x0000
1229 #define TPM_CENTERALIGN 0x0004
1230 #define TPM_RIGHTALIGN 0x0008
1231 #define TPM_TOPALIGN 0x0000
1232 #define TPM_VCENTERALIGN 0x0010
1233 #define TPM_BOTTOMALIGN 0x0020
1234 #define TPM_HORIZONTAL 0x0000
1235 #define TPM_VERTICAL 0x0040
1236 #define TPM_NONOTIFY 0x0080
1237 #define TPM_RETURNCMD 0x0100
1239 typedef struct
1241 UINT cbSize;
1242 RECT rcExclude;
1243 } TPMPARAMS, *LPTPMPARAMS;
1245 /* FIXME: not sure this one is correct */
1246 typedef struct {
1247 UINT cbSize;
1248 UINT fMask;
1249 UINT fType;
1250 UINT fState;
1251 UINT wID;
1252 HMENU hSubMenu;
1253 HBITMAP hbmpChecked;
1254 HBITMAP hbmpUnchecked;
1255 DWORD dwItemData;
1256 LPSTR dwTypeData;
1257 UINT cch;
1258 } MENUITEMINFOA, *LPMENUITEMINFOA;
1260 typedef struct {
1261 UINT cbSize;
1262 UINT fMask;
1263 UINT fType;
1264 UINT fState;
1265 UINT wID;
1266 HMENU hSubMenu;
1267 HBITMAP hbmpChecked;
1268 HBITMAP hbmpUnchecked;
1269 DWORD dwItemData;
1270 LPWSTR dwTypeData;
1271 UINT cch;
1272 } MENUITEMINFOW, *LPMENUITEMINFOW;
1274 DECL_WINELIB_TYPE_AW(MENUITEMINFO)
1275 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)
1277 typedef struct {
1278 WORD versionNumber;
1279 WORD offset;
1280 } MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER;
1283 typedef struct {
1284 WORD mtOption;
1285 WORD mtID;
1286 WCHAR mtString[1];
1287 } MENUITEMTEMPLATE, *PMENUITEMTEMPLATE;
1290 typedef VOID MENUTEMPLATE;
1291 typedef PVOID *LPMENUTEMPLATE;
1293 /* Field specifiers for MENUITEMINFO[AW] type. */
1294 #define MIIM_STATE 0x00000001
1295 #define MIIM_ID 0x00000002
1296 #define MIIM_SUBMENU 0x00000004
1297 #define MIIM_CHECKMARKS 0x00000008
1298 #define MIIM_TYPE 0x00000010
1299 #define MIIM_DATA 0x00000020
1301 /* DrawState defines ... */
1302 typedef BOOL (CALLBACK *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,INT,INT);
1304 /* WM_H/VSCROLL commands */
1305 #define SB_LINEUP 0
1306 #define SB_LINELEFT 0
1307 #define SB_LINEDOWN 1
1308 #define SB_LINERIGHT 1
1309 #define SB_PAGEUP 2
1310 #define SB_PAGELEFT 2
1311 #define SB_PAGEDOWN 3
1312 #define SB_PAGERIGHT 3
1313 #define SB_THUMBPOSITION 4
1314 #define SB_THUMBTRACK 5
1315 #define SB_TOP 6
1316 #define SB_LEFT 6
1317 #define SB_BOTTOM 7
1318 #define SB_RIGHT 7
1319 #define SB_ENDSCROLL 8
1321 /* Scroll bar selection constants */
1322 #define SB_HORZ 0
1323 #define SB_VERT 1
1324 #define SB_CTL 2
1325 #define SB_BOTH 3
1327 /* Scrollbar styles */
1328 #define SBS_HORZ 0x0000L
1329 #define SBS_VERT 0x0001L
1330 #define SBS_TOPALIGN 0x0002L
1331 #define SBS_LEFTALIGN 0x0002L
1332 #define SBS_BOTTOMALIGN 0x0004L
1333 #define SBS_RIGHTALIGN 0x0004L
1334 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
1335 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
1336 #define SBS_SIZEBOX 0x0008L
1337 #define SBS_SIZEGRIP 0x0010L
1339 /* EnableScrollBar() flags */
1340 #define ESB_ENABLE_BOTH 0x0000
1341 #define ESB_DISABLE_BOTH 0x0003
1343 #define ESB_DISABLE_LEFT 0x0001
1344 #define ESB_DISABLE_RIGHT 0x0002
1346 #define ESB_DISABLE_UP 0x0001
1347 #define ESB_DISABLE_DOWN 0x0002
1349 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
1350 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
1352 /* Win32 button control messages */
1353 #define BM_GETCHECK 0x00f0
1354 #define BM_SETCHECK 0x00f1
1355 #define BM_GETSTATE 0x00f2
1356 #define BM_SETSTATE 0x00f3
1357 #define BM_SETSTYLE 0x00f4
1358 #define BM_CLICK 0x00f5
1359 #define BM_GETIMAGE 0x00f6
1360 #define BM_SETIMAGE 0x00f7
1361 /* Winelib button control messages */
1363 /* Button notification codes */
1364 #define BN_CLICKED 0
1365 #define BN_PAINT 1
1366 #define BN_HILITE 2
1367 #define BN_UNHILITE 3
1368 #define BN_DISABLE 4
1369 #define BN_DOUBLECLICKED 5
1371 /* Button states */
1372 #define BST_UNCHECKED 0x0000
1373 #define BST_CHECKED 0x0001
1374 #define BST_INDETERMINATE 0x0002
1375 #define BST_PUSHED 0x0004
1376 #define BST_FOCUS 0x0008
1378 /* Static Control Styles */
1379 #define SS_LEFT 0x00000000L
1380 #define SS_CENTER 0x00000001L
1381 #define SS_RIGHT 0x00000002L
1382 #define SS_ICON 0x00000003L
1383 #define SS_BLACKRECT 0x00000004L
1384 #define SS_GRAYRECT 0x00000005L
1385 #define SS_WHITERECT 0x00000006L
1386 #define SS_BLACKFRAME 0x00000007L
1387 #define SS_GRAYFRAME 0x00000008L
1388 #define SS_WHITEFRAME 0x00000009L
1390 #define SS_SIMPLE 0x0000000BL
1391 #define SS_LEFTNOWORDWRAP 0x0000000CL
1393 #define SS_OWNERDRAW 0x0000000DL
1394 #define SS_BITMAP 0x0000000EL
1395 #define SS_ENHMETAFILE 0x0000000FL
1397 #define SS_ETCHEDHORZ 0x00000010L
1398 #define SS_ETCHEDVERT 0x00000011L
1399 #define SS_ETCHEDFRAME 0x00000012L
1400 #define SS_TYPEMASK 0x0000001FL
1402 #define SS_NOPREFIX 0x00000080L
1403 #define SS_NOTIFY 0x00000100L
1404 #define SS_CENTERIMAGE 0x00000200L
1405 #define SS_RIGHTJUST 0x00000400L
1406 #define SS_REALSIZEIMAGE 0x00000800L
1407 #define SS_SUNKEN 0x00001000L
1409 /* Static Control Messages */
1410 #define STM_SETICON 0x0170
1411 #define STM_GETICON 0x0171
1412 #define STM_SETIMAGE 0x0172
1413 #define STM_GETIMAGE 0x0173
1415 /* Scrollbar messages */
1416 #define SBM_SETPOS 0x00e0
1417 #define SBM_GETPOS 0x00e1
1418 #define SBM_SETRANGE 0x00e2
1419 #define SBM_GETRANGE 0x00e3
1420 #define SBM_ENABLE_ARROWS 0x00e4
1421 #define SBM_SETRANGEREDRAW 0x00e6
1422 #define SBM_SETSCROLLINFO 0x00e9
1423 #define SBM_GETSCROLLINFO 0x00ea
1425 /* Scrollbar info */
1426 typedef struct
1428 UINT cbSize;
1429 UINT fMask;
1430 INT nMin;
1431 INT nMax;
1432 UINT nPage;
1433 INT nPos;
1434 INT nTrackPos;
1435 } SCROLLINFO, *LPSCROLLINFO;
1437 /* GetScrollInfo() flags */
1438 #define SIF_RANGE 0x0001
1439 #define SIF_PAGE 0x0002
1440 #define SIF_POS 0x0004
1441 #define SIF_DISABLENOSCROLL 0x0008
1442 #define SIF_TRACKPOS 0x0010
1443 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
1445 /* Listbox styles */
1446 #define LBS_NOTIFY 0x0001
1447 #define LBS_SORT 0x0002
1448 #define LBS_NOREDRAW 0x0004
1449 #define LBS_MULTIPLESEL 0x0008
1450 #define LBS_OWNERDRAWFIXED 0x0010
1451 #define LBS_OWNERDRAWVARIABLE 0x0020
1452 #define LBS_HASSTRINGS 0x0040
1453 #define LBS_USETABSTOPS 0x0080
1454 #define LBS_NOINTEGRALHEIGHT 0x0100
1455 #define LBS_MULTICOLUMN 0x0200
1456 #define LBS_WANTKEYBOARDINPUT 0x0400
1457 #define LBS_EXTENDEDSEL 0x0800
1458 #define LBS_DISABLENOSCROLL 0x1000
1459 #define LBS_NODATA 0x2000
1460 #define LBS_NOSEL 0x4000
1461 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
1463 /* Listbox messages */
1464 #define LB_ADDSTRING 0x0180
1465 #define LB_INSERTSTRING 0x0181
1466 #define LB_DELETESTRING 0x0182
1467 #define LB_SELITEMRANGEEX 0x0183
1468 #define LB_RESETCONTENT 0x0184
1469 #define LB_SETSEL 0x0185
1470 #define LB_SETCURSEL 0x0186
1471 #define LB_GETSEL 0x0187
1472 #define LB_GETCURSEL 0x0188
1473 #define LB_GETTEXT 0x0189
1474 #define LB_GETTEXTLEN 0x018a
1475 #define LB_GETCOUNT 0x018b
1476 #define LB_SELECTSTRING 0x018c
1477 #define LB_DIR 0x018d
1478 #define LB_GETTOPINDEX 0x018e
1479 #define LB_FINDSTRING 0x018f
1480 #define LB_GETSELCOUNT 0x0190
1481 #define LB_GETSELITEMS 0x0191
1482 #define LB_SETTABSTOPS 0x0192
1483 #define LB_GETHORIZONTALEXTENT 0x0193
1484 #define LB_SETHORIZONTALEXTENT 0x0194
1485 #define LB_SETCOLUMNWIDTH 0x0195
1486 #define LB_ADDFILE 0x0196
1487 #define LB_SETTOPINDEX 0x0197
1488 #define LB_GETITEMRECT 0x0198
1489 #define LB_GETITEMDATA 0x0199
1490 #define LB_SETITEMDATA 0x019a
1491 #define LB_SELITEMRANGE 0x019b
1492 #define LB_SETANCHORINDEX 0x019c
1493 #define LB_GETANCHORINDEX 0x019d
1494 #define LB_SETCARETINDEX 0x019e
1495 #define LB_GETCARETINDEX 0x019f
1496 #define LB_SETITEMHEIGHT 0x01a0
1497 #define LB_GETITEMHEIGHT 0x01a1
1498 #define LB_FINDSTRINGEXACT 0x01a2
1499 #define LB_CARETON 0x01a3
1500 #define LB_CARETOFF 0x01a4
1501 #define LB_SETLOCALE 0x01a5
1502 #define LB_GETLOCALE 0x01a6
1503 #define LB_SETCOUNT 0x01a7
1504 #define LB_INITSTORAGE 0x01a8
1505 #define LB_ITEMFROMPOINT 0x01a9
1507 /* Listbox notification codes */
1508 #define LBN_ERRSPACE (-2)
1509 #define LBN_SELCHANGE 1
1510 #define LBN_DBLCLK 2
1511 #define LBN_SELCANCEL 3
1512 #define LBN_SETFOCUS 4
1513 #define LBN_KILLFOCUS 5
1515 /* Listbox message return values */
1516 #define LB_OKAY 0
1517 #define LB_ERR (-1)
1518 #define LB_ERRSPACE (-2)
1520 #define LB_CTLCODE 0L
1522 /* Combo box styles */
1523 #define CBS_SIMPLE 0x0001L
1524 #define CBS_DROPDOWN 0x0002L
1525 #define CBS_DROPDOWNLIST 0x0003L
1526 #define CBS_OWNERDRAWFIXED 0x0010L
1527 #define CBS_OWNERDRAWVARIABLE 0x0020L
1528 #define CBS_AUTOHSCROLL 0x0040L
1529 #define CBS_OEMCONVERT 0x0080L
1530 #define CBS_SORT 0x0100L
1531 #define CBS_HASSTRINGS 0x0200L
1532 #define CBS_NOINTEGRALHEIGHT 0x0400L
1533 #define CBS_DISABLENOSCROLL 0x0800L
1535 #define CBS_UPPERCASE 0x2000L
1536 #define CBS_LOWERCASE 0x4000L
1539 /* Combo box messages */
1540 #define CB_GETEDITSEL 0x0140
1541 #define CB_LIMITTEXT 0x0141
1542 #define CB_SETEDITSEL 0x0142
1543 #define CB_ADDSTRING 0x0143
1544 #define CB_DELETESTRING 0x0144
1545 #define CB_DIR 0x0145
1546 #define CB_GETCOUNT 0x0146
1547 #define CB_GETCURSEL 0x0147
1548 #define CB_GETLBTEXT 0x0148
1549 #define CB_GETLBTEXTLEN 0x0149
1550 #define CB_INSERTSTRING 0x014a
1551 #define CB_RESETCONTENT 0x014b
1552 #define CB_FINDSTRING 0x014c
1553 #define CB_SELECTSTRING 0x014d
1554 #define CB_SETCURSEL 0x014e
1555 #define CB_SHOWDROPDOWN 0x014f
1556 #define CB_GETITEMDATA 0x0150
1557 #define CB_SETITEMDATA 0x0151
1558 #define CB_GETDROPPEDCONTROLRECT 0x0152
1559 #define CB_SETITEMHEIGHT 0x0153
1560 #define CB_GETITEMHEIGHT 0x0154
1561 #define CB_SETEXTENDEDUI 0x0155
1562 #define CB_GETEXTENDEDUI 0x0156
1563 #define CB_GETDROPPEDSTATE 0x0157
1564 #define CB_FINDSTRINGEXACT 0x0158
1565 #define CB_SETLOCALE 0x0159
1566 #define CB_GETLOCALE 0x015a
1567 #define CB_GETTOPINDEX 0x015b
1568 #define CB_SETTOPINDEX 0x015c
1569 #define CB_GETHORIZONTALEXTENT 0x015d
1570 #define CB_SETHORIZONTALEXTENT 0x015e
1571 #define CB_GETDROPPEDWIDTH 0x015f
1572 #define CB_SETDROPPEDWIDTH 0x0160
1573 #define CB_INITSTORAGE 0x0161
1575 /* Combo box notification codes */
1576 #define CBN_ERRSPACE (-1)
1577 #define CBN_SELCHANGE 1
1578 #define CBN_DBLCLK 2
1579 #define CBN_SETFOCUS 3
1580 #define CBN_KILLFOCUS 4
1581 #define CBN_EDITCHANGE 5
1582 #define CBN_EDITUPDATE 6
1583 #define CBN_DROPDOWN 7
1584 #define CBN_CLOSEUP 8
1585 #define CBN_SELENDOK 9
1586 #define CBN_SELENDCANCEL 10
1588 /* Combo box message return values */
1589 #define CB_OKAY 0
1590 #define CB_ERR (-1)
1591 #define CB_ERRSPACE (-2)
1593 #define MB_OK 0x00000000
1594 #define MB_OKCANCEL 0x00000001
1595 #define MB_ABORTRETRYIGNORE 0x00000002
1596 #define MB_YESNOCANCEL 0x00000003
1597 #define MB_YESNO 0x00000004
1598 #define MB_RETRYCANCEL 0x00000005
1599 #define MB_TYPEMASK 0x0000000F
1601 #define MB_ICONHAND 0x00000010
1602 #define MB_ICONQUESTION 0x00000020
1603 #define MB_ICONEXCLAMATION 0x00000030
1604 #define MB_ICONASTERISK 0x00000040
1605 #define MB_USERICON 0x00000080
1606 #define MB_ICONMASK 0x000000F0
1608 #define MB_ICONINFORMATION MB_ICONASTERISK
1609 #define MB_ICONSTOP MB_ICONHAND
1610 #define MB_ICONWARNING MB_ICONEXCLAMATION
1611 #define MB_ICONERROR MB_ICONHAND
1613 #define MB_DEFBUTTON1 0x00000000
1614 #define MB_DEFBUTTON2 0x00000100
1615 #define MB_DEFBUTTON3 0x00000200
1616 #define MB_DEFBUTTON4 0x00000300
1617 #define MB_DEFMASK 0x00000F00
1619 #define MB_APPLMODAL 0x00000000
1620 #define MB_SYSTEMMODAL 0x00001000
1621 #define MB_TASKMODAL 0x00002000
1622 #define MB_MODEMASK 0x00003000
1624 #define MB_HELP 0x00004000
1625 #define MB_NOFOCUS 0x00008000
1626 #define MB_MISCMASK 0x0000C000
1628 #define MB_SETFOREGROUND 0x00010000
1629 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000
1630 #define MB_SERVICE_NOTIFICATION 0x00040000
1631 #define MB_TOPMOST 0x00040000
1632 #define MB_RIGHT 0x00080000
1633 #define MB_RTLREADING 0x00100000
1635 #define HELPINFO_WINDOW 0x0001
1636 #define HELPINFO_MENUITEM 0x0002
1638 /* Structure pointed to by lParam of WM_HELP */
1639 typedef struct
1641 UINT cbSize; /* Size in bytes of this struct */
1642 INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
1643 INT iCtrlId; /* Control Id or a Menu item Id. */
1644 HANDLE hItemHandle; /* hWnd of control or hMenu. */
1645 DWORD dwContextId; /* Context Id associated with this item */
1646 POINT MousePos; /* Mouse Position in screen co-ordinates */
1647 } HELPINFO,*LPHELPINFO;
1649 typedef void (CALLBACK *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);
1651 typedef struct
1653 UINT cbSize;
1654 HWND hwndOwner;
1655 HINSTANCE hInstance;
1656 LPCSTR lpszText;
1657 LPCSTR lpszCaption;
1658 DWORD dwStyle;
1659 LPCSTR lpszIcon;
1660 DWORD dwContextHelpId;
1661 MSGBOXCALLBACK lpfnMsgBoxCallback;
1662 DWORD dwLanguageId;
1663 } MSGBOXPARAMSA,*LPMSGBOXPARAMSA;
1665 typedef struct
1667 UINT cbSize;
1668 HWND hwndOwner;
1669 HINSTANCE hInstance;
1670 LPCWSTR lpszText;
1671 LPCWSTR lpszCaption;
1672 DWORD dwStyle;
1673 LPCWSTR lpszIcon;
1674 DWORD dwContextHelpId;
1675 MSGBOXCALLBACK lpfnMsgBoxCallback;
1676 DWORD dwLanguageId;
1677 } MSGBOXPARAMSW,*LPMSGBOXPARAMSW;
1679 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS)
1680 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS)
1682 typedef struct _numberfmt32a {
1683 UINT NumDigits;
1684 UINT LeadingZero;
1685 UINT Grouping;
1686 LPCSTR lpDecimalSep;
1687 LPCSTR lpThousandSep;
1688 UINT NegativeOrder;
1689 } NUMBERFMTA;
1691 typedef struct _numberfmt32w {
1692 UINT NumDigits;
1693 UINT LeadingZero;
1694 UINT Grouping;
1695 LPCWSTR lpDecimalSep;
1696 LPCWSTR lpThousandSep;
1697 UINT NegativeOrder;
1698 } NUMBERFMTW;
1700 #define MONITOR_DEFAULTTONULL 0x00000000
1701 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
1702 #define MONITOR_DEFAULTTONEAREST 0x00000002
1704 #define MONITORINFOF_PRIMARY 0x00000001
1706 typedef struct tagMONITORINFO
1708 DWORD cbSize;
1709 RECT rcMonitor;
1710 RECT rcWork;
1711 DWORD dwFlags;
1712 } MONITORINFO, *LPMONITORINFO;
1714 typedef struct tagMONITORINFOEXA
1716 MONITORINFO dummy;
1717 CHAR szDevice[CCHDEVICENAME];
1718 } MONITORINFOEXA, *LPMONITORINFOEXA;
1720 typedef struct tagMONITORINFOEXW
1722 MONITORINFO dummy;
1723 WCHAR szDevice[CCHDEVICENAME];
1724 } MONITORINFOEXW, *LPMONITORINFOEXW;
1726 DECL_WINELIB_TYPE_AW(MONITORINFOEX)
1727 DECL_WINELIB_TYPE_AW(LPMONITORINFOEX)
1729 typedef BOOL (CALLBACK *MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
1731 /* FIXME: use this instead of LPCVOID for CreateDialogIndirectParam
1732 and DialogBoxIndirectParam */
1733 typedef struct tagDLGTEMPLATE
1735 DWORD style;
1736 DWORD dwExtendedStyle;
1737 WORD cdit;
1738 short x;
1739 short y;
1740 short cx;
1741 short cy;
1742 } DLGTEMPLATE;
1744 typedef DLGTEMPLATE *LPDLGTEMPLATEA;
1745 typedef DLGTEMPLATE *LPDLGTEMPLATEW;
1746 #define LPDLGTEMPLATE WINELIB_NAME_AW(LPDLGTEMPLATE)
1747 typedef const DLGTEMPLATE *LPCDLGTEMPLATEA;
1748 typedef const DLGTEMPLATE *LPCDLGTEMPLATEW;
1749 #define LPCDLGTEMPLATE WINELIB_NAME_AW(LPCDLGTEMPLATE)
1751 typedef struct tagDLGITEMTEMPLATE
1753 DWORD style;
1754 DWORD dwExtendedStyle;
1755 short x;
1756 short y;
1757 short cx;
1758 short cy;
1759 WORD id;
1760 } DLGITEMTEMPLATE;
1762 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA;
1763 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW;
1764 #define LPDLGITEMTEMPLATE WINELIB_NAME_AW(LPDLGITEMTEMPLATE)
1765 typedef const DLGITEMTEMPLATE *LPCDLGITEMTEMPLATEA;
1766 typedef const DLGITEMTEMPLATE *LPCDLGITEMTEMPLATEW;
1767 #define LPCDLGITEMTEMPLATE WINELIB_NAME_AW(LPCDLGITEMTEMPLATE)
1770 /* CBT hook values */
1771 #define HCBT_MOVESIZE 0
1772 #define HCBT_MINMAX 1
1773 #define HCBT_QS 2
1774 #define HCBT_CREATEWND 3
1775 #define HCBT_DESTROYWND 4
1776 #define HCBT_ACTIVATE 5
1777 #define HCBT_CLICKSKIPPED 6
1778 #define HCBT_KEYSKIPPED 7
1779 #define HCBT_SYSCOMMAND 8
1780 #define HCBT_SETFOCUS 9
1782 /* CBT hook structures */
1784 typedef struct
1786 CREATESTRUCTA *lpcs;
1787 HWND hwndInsertAfter;
1788 } CBT_CREATEWNDA, *LPCBT_CREATEWNDA;
1790 typedef struct
1792 CREATESTRUCTW *lpcs;
1793 HWND hwndInsertAfter;
1794 } CBT_CREATEWNDW, *LPCBT_CREATEWNDW;
1796 DECL_WINELIB_TYPE_AW(CBT_CREATEWND)
1797 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND)
1799 typedef struct
1801 BOOL fMouse;
1802 HWND hWndActive;
1803 } CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT;
1806 /* modifiers for RegisterHotKey */
1807 #define MOD_ALT 0x0001
1808 #define MOD_CONTROL 0x0002
1809 #define MOD_SHIFT 0x0004
1810 #define MOD_WIN 0x0008
1812 /* ids for RegisterHotKey */
1813 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */
1814 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */
1816 /* keybd_event flags */
1817 #define KEYEVENTF_EXTENDEDKEY 0x0001
1818 #define KEYEVENTF_KEYUP 0x0002
1819 #define KEYEVENTF_WINE_FORCEEXTENDED 0x8000
1821 /* mouse_event flags */
1822 #define MOUSEEVENTF_MOVE 0x0001
1823 #define MOUSEEVENTF_LEFTDOWN 0x0002
1824 #define MOUSEEVENTF_LEFTUP 0x0004
1825 #define MOUSEEVENTF_RIGHTDOWN 0x0008
1826 #define MOUSEEVENTF_RIGHTUP 0x0010
1827 #define MOUSEEVENTF_MIDDLEDOWN 0x0020
1828 #define MOUSEEVENTF_MIDDLEUP 0x0040
1829 #define MOUSEEVENTF_ABSOLUTE 0x8000
1831 /* ExitWindows() flags */
1832 #define EW_RESTARTWINDOWS 0x0042
1833 #define EW_REBOOTSYSTEM 0x0043
1834 #define EW_EXITANDEXECAPP 0x0044
1836 /* ExitWindowsEx() flags */
1837 #define EWX_LOGOFF 0
1838 #define EWX_SHUTDOWN 1
1839 #define EWX_REBOOT 2
1840 #define EWX_FORCE 4
1841 #define EWX_POWEROFF 8
1843 /* SetLastErrorEx types */
1844 #define SLE_ERROR 0x00000001
1845 #define SLE_MINORERROR 0x00000002
1846 #define SLE_WARNING 0x00000003
1848 /* Predefined resources */
1849 #define IDI_APPLICATIONA MAKEINTRESOURCEA(32512)
1850 #define IDI_APPLICATIONW MAKEINTRESOURCEW(32512)
1851 #define IDI_APPLICATION WINELIB_NAME_AW(IDI_APPLICATION)
1852 #define IDI_HANDA MAKEINTRESOURCEA(32513)
1853 #define IDI_HANDW MAKEINTRESOURCEW(32513)
1854 #define IDI_HAND WINELIB_NAME_AW(IDI_HAND)
1855 #define IDI_QUESTIONA MAKEINTRESOURCEA(32514)
1856 #define IDI_QUESTIONW MAKEINTRESOURCEW(32514)
1857 #define IDI_QUESTION WINELIB_NAME_AW(IDI_QUESTION)
1858 #define IDI_EXCLAMATIONA MAKEINTRESOURCEA(32515)
1859 #define IDI_EXCLAMATIONW MAKEINTRESOURCEW(32515)
1860 #define IDI_EXCLAMATION WINELIB_NAME_AW(IDI_EXCLAMATION)
1861 #define IDI_ASTERISKA MAKEINTRESOURCEA(32516)
1862 #define IDI_ASTERISKW MAKEINTRESOURCEW(32516)
1863 #define IDI_ASTERISK WINELIB_NAME_AW(IDI_ASTERISK)
1865 #define IDC_BUMMERA MAKEINTRESOURCEA(100)
1866 #define IDC_BUMMERW MAKEINTRESOURCEW(100)
1867 #define IDC_BUMMER WINELIB_NAME_AW(IDC_BUMMER)
1868 #define IDC_ARROWA MAKEINTRESOURCEA(32512)
1869 #define IDC_ARROWW MAKEINTRESOURCEW(32512)
1870 #define IDC_ARROW WINELIB_NAME_AW(IDC_ARROW)
1871 #define IDC_IBEAMA MAKEINTRESOURCEA(32513)
1872 #define IDC_IBEAMW MAKEINTRESOURCEW(32513)
1873 #define IDC_IBEAM WINELIB_NAME_AW(IDC_IBEAM)
1874 #define IDC_WAITA MAKEINTRESOURCEA(32514)
1875 #define IDC_WAITW MAKEINTRESOURCEW(32514)
1876 #define IDC_WAIT WINELIB_NAME_AW(IDC_WAIT)
1877 #define IDC_CROSSA MAKEINTRESOURCEA(32515)
1878 #define IDC_CROSSW MAKEINTRESOURCEW(32515)
1879 #define IDC_CROSS WINELIB_NAME_AW(IDC_CROSS)
1880 #define IDC_UPARROWA MAKEINTRESOURCEA(32516)
1881 #define IDC_UPARROWW MAKEINTRESOURCEW(32516)
1882 #define IDC_UPARROW WINELIB_NAME_AW(IDC_UPARROW)
1883 #define IDC_SIZEA MAKEINTRESOURCEA(32640)
1884 #define IDC_SIZEW MAKEINTRESOURCEW(32640)
1885 #define IDC_SIZE WINELIB_NAME_AW(IDC_SIZE)
1886 #define IDC_ICONA MAKEINTRESOURCEA(32641)
1887 #define IDC_ICONW MAKEINTRESOURCEW(32641)
1888 #define IDC_ICON WINELIB_NAME_AW(IDC_ICON)
1889 #define IDC_SIZENWSEA MAKEINTRESOURCEA(32642)
1890 #define IDC_SIZENWSEW MAKEINTRESOURCEW(32642)
1891 #define IDC_SIZENWSE WINELIB_NAME_AW(IDC_SIZENWSE)
1892 #define IDC_SIZENESWA MAKEINTRESOURCEA(32643)
1893 #define IDC_SIZENESWW MAKEINTRESOURCEW(32643)
1894 #define IDC_SIZENESW WINELIB_NAME_AW(IDC_SIZENESW)
1895 #define IDC_SIZEWEA MAKEINTRESOURCEA(32644)
1896 #define IDC_SIZEWEW MAKEINTRESOURCEW(32644)
1897 #define IDC_SIZEWE WINELIB_NAME_AW(IDC_SIZEWE)
1898 #define IDC_SIZENSA MAKEINTRESOURCEA(32645)
1899 #define IDC_SIZENSW MAKEINTRESOURCEW(32645)
1900 #define IDC_SIZENS WINELIB_NAME_AW(IDC_SIZENS)
1901 #define IDC_SIZEALLA MAKEINTRESOURCEA(32646)
1902 #define IDC_SIZEALLW MAKEINTRESOURCEW(32646)
1903 #define IDC_SIZEALL WINELIB_NAME_AW(IDC_SIZEALL)
1904 #define IDC_NOA MAKEINTRESOURCEA(32648)
1905 #define IDC_NOW MAKEINTRESOURCEW(32648)
1906 #define IDC_NO WINELIB_NAME_AW(IDC_NO)
1907 #define IDC_APPSTARTINGA MAKEINTRESOURCEA(32650)
1908 #define IDC_APPSTARTINGW MAKEINTRESOURCEW(32650)
1909 #define IDC_APPSTARTING WINELIB_NAME_AW(IDC_APPSTARTING)
1910 #define IDC_HELPA MAKEINTRESOURCEA(32651)
1911 #define IDC_HELPW MAKEINTRESOURCEW(32651)
1912 #define IDC_HELP WINELIB_NAME_AW(IDC_HELP)
1914 /* SystemParametersInfo */
1915 /* defines below are for all win versions */
1916 #define SPI_GETBEEP 1
1917 #define SPI_SETBEEP 2
1918 #define SPI_GETMOUSE 3
1919 #define SPI_SETMOUSE 4
1920 #define SPI_GETBORDER 5
1921 #define SPI_SETBORDER 6
1922 #define SPI_GETKEYBOARDSPEED 10
1923 #define SPI_SETKEYBOARDSPEED 11
1924 #define SPI_LANGDRIVER 12
1925 #define SPI_ICONHORIZONTALSPACING 13
1926 #define SPI_GETSCREENSAVETIMEOUT 14
1927 #define SPI_SETSCREENSAVETIMEOUT 15
1928 #define SPI_GETSCREENSAVEACTIVE 16
1929 #define SPI_SETSCREENSAVEACTIVE 17
1930 #define SPI_GETGRIDGRANULARITY 18
1931 #define SPI_SETGRIDGRANULARITY 19
1932 #define SPI_SETDESKWALLPAPER 20
1933 #define SPI_SETDESKPATTERN 21
1934 #define SPI_GETKEYBOARDDELAY 22
1935 #define SPI_SETKEYBOARDDELAY 23
1936 #define SPI_ICONVERTICALSPACING 24
1937 #define SPI_GETICONTITLEWRAP 25
1938 #define SPI_SETICONTITLEWRAP 26
1939 #define SPI_GETMENUDROPALIGNMENT 27
1940 #define SPI_SETMENUDROPALIGNMENT 28
1941 #define SPI_SETDOUBLECLKWIDTH 29
1942 #define SPI_SETDOUBLECLKHEIGHT 30
1943 #define SPI_GETICONTITLELOGFONT 31
1944 #define SPI_SETDOUBLECLICKTIME 32
1945 #define SPI_SETMOUSEBUTTONSWAP 33
1946 #define SPI_SETICONTITLELOGFONT 34
1947 #define SPI_GETFASTTASKSWITCH 35
1948 #define SPI_SETFASTTASKSWITCH 36
1949 #define SPI_SETDRAGFULLWINDOWS 37
1950 #define SPI_GETDRAGFULLWINDOWS 38
1952 #define SPI_GETFILTERKEYS 50
1953 #define SPI_SETFILTERKEYS 51
1954 #define SPI_GETTOGGLEKEYS 52
1955 #define SPI_SETTOGGLEKEYS 53
1956 #define SPI_GETMOUSEKEYS 54
1957 #define SPI_SETMOUSEKEYS 55
1958 #define SPI_GETSHOWSOUNDS 56
1959 #define SPI_SETSHOWSOUNDS 57
1960 #define SPI_GETSTICKYKEYS 58
1961 #define SPI_SETSTICKYKEYS 59
1962 #define SPI_GETACCESSTIMEOUT 60
1963 #define SPI_SETACCESSTIMEOUT 61
1965 #define SPI_GETSOUNDSENTRY 64
1966 #define SPI_SETSOUNDSENTRY 65
1968 /* defines below are for all win versions WINVER >= 0x0400 */
1969 #define SPI_SETDRAGFULLWINDOWS 37
1970 #define SPI_GETDRAGFULLWINDOWS 38
1971 #define SPI_GETNONCLIENTMETRICS 41
1972 #define SPI_SETNONCLIENTMETRICS 42
1973 #define SPI_GETMINIMIZEDMETRICS 43
1974 #define SPI_SETMINIMIZEDMETRICS 44
1975 #define SPI_GETICONMETRICS 45
1976 #define SPI_SETICONMETRICS 46
1977 #define SPI_SETWORKAREA 47
1978 #define SPI_GETWORKAREA 48
1979 #define SPI_SETPENWINDOWS 49
1981 #define SPI_GETSERIALKEYS 62
1982 #define SPI_SETSERIALKEYS 63
1983 #define SPI_GETHIGHCONTRAST 66
1984 #define SPI_SETHIGHCONTRAST 67
1985 #define SPI_GETKEYBOARDPREF 68
1986 #define SPI_SETKEYBOARDPREF 69
1987 #define SPI_GETSCREENREADER 70
1988 #define SPI_SETSCREENREADER 71
1989 #define SPI_GETANIMATION 72
1990 #define SPI_SETANIMATION 73
1991 #define SPI_GETFONTSMOOTHING 74
1992 #define SPI_SETFONTSMOOTHING 75
1993 #define SPI_SETDRAGWIDTH 76
1994 #define SPI_SETDRAGHEIGHT 77
1995 #define SPI_SETHANDHELD 78
1996 #define SPI_GETLOWPOWERTIMEOUT 79
1997 #define SPI_GETPOWEROFFTIMEOUT 80
1998 #define SPI_SETLOWPOWERTIMEOUT 81
1999 #define SPI_SETPOWEROFFTIMEOUT 82
2000 #define SPI_GETLOWPOWERACTIVE 83
2001 #define SPI_GETPOWEROFFACTIVE 84
2002 #define SPI_SETLOWPOWERACTIVE 85
2003 #define SPI_SETPOWEROFFACTIVE 86
2004 #define SPI_SETCURSORS 87
2005 #define SPI_SETICONS 88
2006 #define SPI_GETDEFAULTINPUTLANG 89
2007 #define SPI_SETDEFAULTINPUTLANG 90
2008 #define SPI_SETLANGTOGGLE 91
2009 #define SPI_GETWINDOWSEXTENSION 92
2010 #define SPI_SETMOUSETRAILS 93
2011 #define SPI_GETMOUSETRAILS 94
2012 #define SPI_SETSCREENSAVERRUNNING 97
2013 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
2015 /* defines below are for all win versions (_WIN32_WINNT >= 0x0400) ||
2016 * (_WIN32_WINDOWS > 0x0400) */
2017 #define SPI_GETMOUSEHOVERWIDTH 98
2018 #define SPI_SETMOUSEHOVERWIDTH 99
2019 #define SPI_GETMOUSEHOVERHEIGHT 100
2020 #define SPI_SETMOUSEHOVERHEIGHT 101
2021 #define SPI_GETMOUSEHOVERTIME 102
2022 #define SPI_SETMOUSEHOVERTIME 103
2023 #define SPI_GETWHEELSCROLLLINES 104
2024 #define SPI_SETWHEELSCROLLLINES 105
2026 #define SPI_GETSHOWIMEUI 110
2027 #define SPI_SETSHOWIMEUI 111
2029 /* defines below are for all win versions WINVER >= 0x0500 */
2030 #define SPI_GETMOUSESPEED 112
2031 #define SPI_SETMOUSESPEED 113
2032 #define SPI_GETSCREENSAVERRUNNING 114
2034 #define SPI_GETACTIVEWINDOWTRACKING 0x1000
2035 #define SPI_SETACTIVEWINDOWTRACKING 0x1001
2036 #define SPI_GETMENUANIMATION 0x1002
2037 #define SPI_SETMENUANIMATION 0x1003
2038 #define SPI_GETCOMBOBOXANIMATION 0x1004
2039 #define SPI_SETCOMBOBOXANIMATION 0x1005
2040 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
2041 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
2042 #define SPI_GETGRADIENTCAPTIONS 0x1008
2043 #define SPI_SETGRADIENTCAPTIONS 0x1009
2044 #define SPI_GETMENUUNDERLINES 0x100A
2045 #define SPI_SETMENUUNDERLINES 0x100B
2046 #define SPI_GETACTIVEWNDTRKZORDER 0x100C
2047 #define SPI_SETACTIVEWNDTRKZORDER 0x100D
2048 #define SPI_GETHOTTRACKING 0x100E
2049 #define SPI_SETHOTTRACKING 0x100F
2050 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
2051 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
2052 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
2053 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
2054 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
2055 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
2057 /* SystemParametersInfo flags */
2059 #define SPIF_UPDATEINIFILE 1
2060 #define SPIF_SENDWININICHANGE 2
2061 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE
2063 /* Window Styles */
2064 #define WS_OVERLAPPED 0x00000000L
2065 #define WS_POPUP 0x80000000L
2066 #define WS_CHILD 0x40000000L
2067 #define WS_MINIMIZE 0x20000000L
2068 #define WS_VISIBLE 0x10000000L
2069 #define WS_DISABLED 0x08000000L
2070 #define WS_CLIPSIBLINGS 0x04000000L
2071 #define WS_CLIPCHILDREN 0x02000000L
2072 #define WS_MAXIMIZE 0x01000000L
2073 #define WS_CAPTION 0x00C00000L
2074 #define WS_BORDER 0x00800000L
2075 #define WS_DLGFRAME 0x00400000L
2076 #define WS_VSCROLL 0x00200000L
2077 #define WS_HSCROLL 0x00100000L
2078 #define WS_SYSMENU 0x00080000L
2079 #define WS_THICKFRAME 0x00040000L
2080 #define WS_GROUP 0x00020000L
2081 #define WS_TABSTOP 0x00010000L
2082 #define WS_MINIMIZEBOX 0x00020000L
2083 #define WS_MAXIMIZEBOX 0x00010000L
2084 #define WS_TILED WS_OVERLAPPED
2085 #define WS_ICONIC WS_MINIMIZE
2086 #define WS_SIZEBOX WS_THICKFRAME
2087 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
2088 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
2089 #define WS_CHILDWINDOW (WS_CHILD)
2090 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
2092 /* Window extended styles */
2093 #define WS_EX_DLGMODALFRAME 0x00000001L
2094 #define WS_EX_DRAGDETECT 0x00000002L
2095 #define WS_EX_NOPARENTNOTIFY 0x00000004L
2096 #define WS_EX_TOPMOST 0x00000008L
2097 #define WS_EX_ACCEPTFILES 0x00000010L
2098 #define WS_EX_TRANSPARENT 0x00000020L
2100 /* New Win95/WinNT4 styles */
2101 #define WS_EX_MDICHILD 0x00000040L
2102 #define WS_EX_TOOLWINDOW 0x00000080L
2103 #define WS_EX_WINDOWEDGE 0x00000100L
2104 #define WS_EX_CLIENTEDGE 0x00000200L
2105 #define WS_EX_CONTEXTHELP 0x00000400L
2106 #define WS_EX_RIGHT 0x00001000L
2107 #define WS_EX_LEFT 0x00000000L
2108 #define WS_EX_RTLREADING 0x00002000L
2109 #define WS_EX_LTRREADING 0x00000000L
2110 #define WS_EX_LEFTSCROLLBAR 0x00004000L
2111 #define WS_EX_RIGHTSCROLLBAR 0x00000000L
2112 #define WS_EX_CONTROLPARENT 0x00010000L
2113 #define WS_EX_STATICEDGE 0x00020000L
2114 #define WS_EX_APPWINDOW 0x00040000L
2116 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
2117 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
2119 /* Window scrolling */
2120 #define SW_SCROLLCHILDREN 0x0001
2121 #define SW_INVALIDATE 0x0002
2122 #define SW_ERASE 0x0004
2124 /* CreateWindow() coordinates */
2125 #define CW_USEDEFAULT ((INT)0x80000000)
2127 /* ChildWindowFromPointEx Flags */
2128 #define CWP_ALL 0x0000
2129 #define CWP_SKIPINVISIBLE 0x0001
2130 #define CWP_SKIPDISABLED 0x0002
2131 #define CWP_SKIPTRANSPARENT 0x0004
2133 /* PeekMessage() options */
2134 #define PM_NOREMOVE 0x0000
2135 #define PM_REMOVE 0x0001
2136 #define PM_NOYIELD 0x0002
2138 #define WM_SHOWWINDOW 0x0018
2140 /* WM_SHOWWINDOW wParam codes */
2141 #define SW_PARENTCLOSING 1
2142 #define SW_OTHERMAXIMIZED 2
2143 #define SW_PARENTOPENING 3
2144 #define SW_OTHERRESTORED 4
2146 /* ShowWindow() codes */
2147 #define SW_HIDE 0
2148 #define SW_SHOWNORMAL 1
2149 #define SW_NORMAL 1
2150 #define SW_SHOWMINIMIZED 2
2151 #define SW_SHOWMAXIMIZED 3
2152 #define SW_MAXIMIZE 3
2153 #define SW_SHOWNOACTIVATE 4
2154 #define SW_SHOW 5
2155 #define SW_MINIMIZE 6
2156 #define SW_SHOWMINNOACTIVE 7
2157 #define SW_SHOWNA 8
2158 #define SW_RESTORE 9
2159 #define SW_SHOWDEFAULT 10
2160 #define SW_MAX 10
2161 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */
2163 /* WM_SIZE message wParam values */
2164 #define SIZE_RESTORED 0
2165 #define SIZE_MINIMIZED 1
2166 #define SIZE_MAXIMIZED 2
2167 #define SIZE_MAXSHOW 3
2168 #define SIZE_MAXHIDE 4
2169 #define SIZENORMAL SIZE_RESTORED
2170 #define SIZEICONIC SIZE_MINIMIZED
2171 #define SIZEFULLSCREEN SIZE_MAXIMIZED
2172 #define SIZEZOOMSHOW SIZE_MAXSHOW
2173 #define SIZEZOOMHIDE SIZE_MAXHIDE
2175 /* SetWindowPos() and WINDOWPOS flags */
2176 #define SWP_NOSIZE 0x0001
2177 #define SWP_NOMOVE 0x0002
2178 #define SWP_NOZORDER 0x0004
2179 #define SWP_NOREDRAW 0x0008
2180 #define SWP_NOACTIVATE 0x0010
2181 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */
2182 #define SWP_SHOWWINDOW 0x0040
2183 #define SWP_HIDEWINDOW 0x0080
2184 #define SWP_NOCOPYBITS 0x0100
2185 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */
2187 #define SWP_DRAWFRAME SWP_FRAMECHANGED
2188 #define SWP_NOREPOSITION SWP_NOOWNERZORDER
2190 #define SWP_NOSENDCHANGING 0x0400
2191 #define SWP_DEFERERASE 0x2000
2193 #define HWND_DESKTOP ((HWND)0)
2194 #define HWND_BROADCAST ((HWND)0xffff)
2196 /* SetWindowPos() hwndInsertAfter field values */
2197 #define HWND_TOP ((HWND)0)
2198 #define HWND_BOTTOM ((HWND)1)
2199 #define HWND_TOPMOST ((HWND)-1)
2200 #define HWND_NOTOPMOST ((HWND)-2)
2202 #define MF_INSERT 0x0000
2203 #define MF_CHANGE 0x0080
2204 #define MF_APPEND 0x0100
2205 #define MF_DELETE 0x0200
2206 #define MF_REMOVE 0x1000
2207 #define MF_END 0x0080
2209 #define MF_ENABLED 0x0000
2210 #define MF_GRAYED 0x0001
2211 #define MF_DISABLED 0x0002
2212 #define MF_STRING 0x0000
2213 #define MF_BITMAP 0x0004
2214 #define MF_UNCHECKED 0x0000
2215 #define MF_CHECKED 0x0008
2216 #define MF_POPUP 0x0010
2217 #define MF_MENUBARBREAK 0x0020
2218 #define MF_MENUBREAK 0x0040
2219 #define MF_UNHILITE 0x0000
2220 #define MF_HILITE 0x0080
2221 #define MF_OWNERDRAW 0x0100
2222 #define MF_USECHECKBITMAPS 0x0200
2223 #define MF_BYCOMMAND 0x0000
2224 #define MF_BYPOSITION 0x0400
2225 #define MF_SEPARATOR 0x0800
2226 #define MF_DEFAULT 0x1000
2227 #define MF_SYSMENU 0x2000
2228 #define MF_HELP 0x4000
2229 #define MF_RIGHTJUSTIFY 0x4000
2230 #define MF_MOUSESELECT 0x8000
2232 /* Flags for extended menu item types. */
2233 #define MFT_STRING MF_STRING
2234 #define MFT_BITMAP MF_BITMAP
2235 #define MFT_MENUBARBREAK MF_MENUBARBREAK
2236 #define MFT_MENUBREAK MF_MENUBREAK
2237 #define MFT_OWNERDRAW MF_OWNERDRAW
2238 #define MFT_RADIOCHECK 0x00000200L
2239 #define MFT_SEPARATOR MF_SEPARATOR
2240 #define MFT_RIGHTORDER 0x00002000L
2241 #define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
2243 /* Flags for extended menu item states. */
2244 #define MFS_GRAYED 0x00000003L
2245 #define MFS_DISABLED MFS_GRAYED
2246 #define MFS_CHECKED MF_CHECKED
2247 #define MFS_HILITE MF_HILITE
2248 #define MFS_ENABLED MF_ENABLED
2249 #define MFS_UNCHECKED MF_UNCHECKED
2250 #define MFS_UNHILITE MF_UNHILITE
2251 #define MFS_DEFAULT MF_DEFAULT
2253 #define DT_TOP 0
2254 #define DT_LEFT 0
2255 #define DT_CENTER 1
2256 #define DT_RIGHT 2
2257 #define DT_VCENTER 4
2258 #define DT_BOTTOM 8
2259 #define DT_WORDBREAK 16
2260 #define DT_SINGLELINE 32
2261 #define DT_EXPANDTABS 64
2262 #define DT_TABSTOP 128
2263 #define DT_NOCLIP 256
2264 #define DT_EXTERNALLEADING 512
2265 #define DT_CALCRECT 1024
2266 #define DT_NOPREFIX 2048
2267 #define DT_INTERNAL 4096
2269 /* DrawCaption()/DrawCaptionTemp() flags */
2270 #define DC_ACTIVE 0x0001
2271 #define DC_SMALLCAP 0x0002
2272 #define DC_ICON 0x0004
2273 #define DC_TEXT 0x0008
2274 #define DC_INBUTTON 0x0010
2276 /* DrawEdge() flags */
2277 #define BDR_RAISEDOUTER 0x0001
2278 #define BDR_SUNKENOUTER 0x0002
2279 #define BDR_RAISEDINNER 0x0004
2280 #define BDR_SUNKENINNER 0x0008
2282 #define BDR_OUTER 0x0003
2283 #define BDR_INNER 0x000c
2284 #define BDR_RAISED 0x0005
2285 #define BDR_SUNKEN 0x000a
2287 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER)
2288 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER)
2289 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER)
2290 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)
2292 /* border flags */
2293 #define BF_LEFT 0x0001
2294 #define BF_TOP 0x0002
2295 #define BF_RIGHT 0x0004
2296 #define BF_BOTTOM 0x0008
2297 #define BF_DIAGONAL 0x0010
2298 #define BF_MIDDLE 0x0800 /* Fill in the middle */
2299 #define BF_SOFT 0x1000 /* For softer buttons */
2300 #define BF_ADJUST 0x2000 /* Calculate the space left over */
2301 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */
2302 #define BF_MONO 0x8000 /* For monochrome borders */
2303 #define BF_TOPLEFT (BF_TOP | BF_LEFT)
2304 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT)
2305 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)
2306 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)
2307 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
2308 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)
2309 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)
2310 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
2311 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
2313 /* DrawFrameControl() uType's */
2315 #define DFC_CAPTION 1
2316 #define DFC_MENU 2
2317 #define DFC_SCROLL 3
2318 #define DFC_BUTTON 4
2320 /* uState's */
2322 #define DFCS_CAPTIONCLOSE 0x0000
2323 #define DFCS_CAPTIONMIN 0x0001
2324 #define DFCS_CAPTIONMAX 0x0002
2325 #define DFCS_CAPTIONRESTORE 0x0003
2326 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */
2328 #define DFCS_MENUARROW 0x0000
2329 #define DFCS_MENUCHECK 0x0001
2330 #define DFCS_MENUBULLET 0x0002
2331 #define DFCS_MENUARROWRIGHT 0x0004
2333 #define DFCS_SCROLLUP 0x0000
2334 #define DFCS_SCROLLDOWN 0x0001
2335 #define DFCS_SCROLLLEFT 0x0002
2336 #define DFCS_SCROLLRIGHT 0x0003
2337 #define DFCS_SCROLLCOMBOBOX 0x0005
2338 #define DFCS_SCROLLSIZEGRIP 0x0008
2339 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010
2341 #define DFCS_BUTTONCHECK 0x0000
2342 #define DFCS_BUTTONRADIOIMAGE 0x0001
2343 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */
2344 #define DFCS_BUTTONRADIO 0x0004
2345 #define DFCS_BUTTON3STATE 0x0008
2346 #define DFCS_BUTTONPUSH 0x0010
2348 /* additional state of the control */
2350 #define DFCS_INACTIVE 0x0100
2351 #define DFCS_PUSHED 0x0200
2352 #define DFCS_CHECKED 0x0400
2353 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */
2354 #define DFCS_FLAT 0x4000
2355 #define DFCS_MONO 0x8000
2357 /* Image type */
2358 #define DST_COMPLEX 0x0000
2359 #define DST_TEXT 0x0001
2360 #define DST_PREFIXTEXT 0x0002
2361 #define DST_ICON 0x0003
2362 #define DST_BITMAP 0x0004
2364 /* State type */
2365 #define DSS_NORMAL 0x0000
2366 #define DSS_UNION 0x0010 /* Gray string appearance */
2367 #define DSS_DISABLED 0x0020
2368 #define DSS_DEFAULT 0x0040 /* Make it bold */
2369 #define DSS_MONO 0x0080
2370 #define DSS_RIGHT 0x8000
2372 typedef struct
2374 UINT CtlType;
2375 UINT CtlID;
2376 UINT itemID;
2377 UINT itemAction;
2378 UINT itemState;
2379 HWND hwndItem;
2380 HDC hDC;
2381 RECT rcItem WINE_PACKED;
2382 DWORD itemData WINE_PACKED;
2383 } DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT;
2386 typedef struct
2388 UINT CtlType;
2389 UINT CtlID;
2390 UINT itemID;
2391 UINT itemWidth;
2392 UINT itemHeight;
2393 DWORD itemData;
2394 } MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT;
2397 typedef struct
2399 UINT CtlType;
2400 UINT CtlID;
2401 UINT itemID;
2402 HWND hwndItem;
2403 DWORD itemData;
2404 } DELETEITEMSTRUCT, *LPDELETEITEMSTRUCT;
2407 typedef struct
2409 UINT CtlType;
2410 UINT CtlID;
2411 HWND hwndItem;
2412 UINT itemID1;
2413 DWORD itemData1;
2414 UINT itemID2;
2415 DWORD itemData2;
2416 DWORD dwLocaleId;
2417 } COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT;
2420 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */
2421 #define KF_EXTENDED 0x0100
2422 #define KF_DLGMODE 0x0800
2423 #define KF_MENUMODE 0x1000
2424 #define KF_ALTDOWN 0x2000
2425 #define KF_REPEAT 0x4000
2426 #define KF_UP 0x8000
2428 /* Virtual key codes */
2429 #define VK_LBUTTON 0x01
2430 #define VK_RBUTTON 0x02
2431 #define VK_CANCEL 0x03
2432 #define VK_MBUTTON 0x04
2433 /* 0x05-0x07 Undefined */
2434 #define VK_BACK 0x08
2435 #define VK_TAB 0x09
2436 /* 0x0A-0x0B Undefined */
2437 #define VK_CLEAR 0x0C
2438 #define VK_RETURN 0x0D
2439 /* 0x0E-0x0F Undefined */
2440 #define VK_SHIFT 0x10
2441 #define VK_CONTROL 0x11
2442 #define VK_MENU 0x12
2443 #define VK_PAUSE 0x13
2444 #define VK_CAPITAL 0x14
2445 /* 0x15-0x19 Reserved for Kanji systems */
2446 /* 0x1A Undefined */
2447 #define VK_ESCAPE 0x1B
2448 /* 0x1C-0x1F Reserved for Kanji systems */
2449 #define VK_SPACE 0x20
2450 #define VK_PRIOR 0x21
2451 #define VK_NEXT 0x22
2452 #define VK_END 0x23
2453 #define VK_HOME 0x24
2454 #define VK_LEFT 0x25
2455 #define VK_UP 0x26
2456 #define VK_RIGHT 0x27
2457 #define VK_DOWN 0x28
2458 #define VK_SELECT 0x29
2459 #define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */
2460 #define VK_EXECUTE 0x2B
2461 #define VK_SNAPSHOT 0x2C
2462 #define VK_INSERT 0x2D
2463 #define VK_DELETE 0x2E
2464 #define VK_HELP 0x2F
2465 #define VK_0 0x30
2466 #define VK_1 0x31
2467 #define VK_2 0x32
2468 #define VK_3 0x33
2469 #define VK_4 0x34
2470 #define VK_5 0x35
2471 #define VK_6 0x36
2472 #define VK_7 0x37
2473 #define VK_8 0x38
2474 #define VK_9 0x39
2475 /* 0x3A-0x40 Undefined */
2476 #define VK_A 0x41
2477 #define VK_B 0x42
2478 #define VK_C 0x43
2479 #define VK_D 0x44
2480 #define VK_E 0x45
2481 #define VK_F 0x46
2482 #define VK_G 0x47
2483 #define VK_H 0x48
2484 #define VK_I 0x49
2485 #define VK_J 0x4A
2486 #define VK_K 0x4B
2487 #define VK_L 0x4C
2488 #define VK_M 0x4D
2489 #define VK_N 0x4E
2490 #define VK_O 0x4F
2491 #define VK_P 0x50
2492 #define VK_Q 0x51
2493 #define VK_R 0x52
2494 #define VK_S 0x53
2495 #define VK_T 0x54
2496 #define VK_U 0x55
2497 #define VK_V 0x56
2498 #define VK_W 0x57
2499 #define VK_X 0x58
2500 #define VK_Y 0x59
2501 #define VK_Z 0x5A
2503 #define VK_LWIN 0x5B
2504 #define VK_RWIN 0x5C
2505 #define VK_APPS 0x5D
2506 /* 0x5E-0x5F Unassigned */
2507 #define VK_NUMPAD0 0x60
2508 #define VK_NUMPAD1 0x61
2509 #define VK_NUMPAD2 0x62
2510 #define VK_NUMPAD3 0x63
2511 #define VK_NUMPAD4 0x64
2512 #define VK_NUMPAD5 0x65
2513 #define VK_NUMPAD6 0x66
2514 #define VK_NUMPAD7 0x67
2515 #define VK_NUMPAD8 0x68
2516 #define VK_NUMPAD9 0x69
2517 #define VK_MULTIPLY 0x6A
2518 #define VK_ADD 0x6B
2519 #define VK_SEPARATOR 0x6C
2520 #define VK_SUBTRACT 0x6D
2521 #define VK_DECIMAL 0x6E
2522 #define VK_DIVIDE 0x6F
2523 #define VK_F1 0x70
2524 #define VK_F2 0x71
2525 #define VK_F3 0x72
2526 #define VK_F4 0x73
2527 #define VK_F5 0x74
2528 #define VK_F6 0x75
2529 #define VK_F7 0x76
2530 #define VK_F8 0x77
2531 #define VK_F9 0x78
2532 #define VK_F10 0x79
2533 #define VK_F11 0x7A
2534 #define VK_F12 0x7B
2535 #define VK_F13 0x7C
2536 #define VK_F14 0x7D
2537 #define VK_F15 0x7E
2538 #define VK_F16 0x7F
2539 #define VK_F17 0x80
2540 #define VK_F18 0x81
2541 #define VK_F19 0x82
2542 #define VK_F20 0x83
2543 #define VK_F21 0x84
2544 #define VK_F22 0x85
2545 #define VK_F23 0x86
2546 #define VK_F24 0x87
2547 /* 0x88-0x8F Unassigned */
2548 #define VK_NUMLOCK 0x90
2549 #define VK_SCROLL 0x91
2550 /* 0x92-0x9F Unassigned */
2552 * differencing between right and left shift/control/alt key.
2553 * Used only by GetAsyncKeyState() and GetKeyState().
2555 #define VK_LSHIFT 0xA0
2556 #define VK_RSHIFT 0xA1
2557 #define VK_LCONTROL 0xA2
2558 #define VK_RCONTROL 0xA3
2559 #define VK_LMENU 0xA4
2560 #define VK_RMENU 0xA5
2561 /* 0xA6-0xB9 Unassigned */
2562 #define VK_OEM_1 0xBA
2563 #define VK_OEM_PLUS 0xBB
2564 #define VK_OEM_COMMA 0xBC
2565 #define VK_OEM_MINUS 0xBD
2566 #define VK_OEM_PERIOD 0xBE
2567 #define VK_OEM_2 0xBF
2568 #define VK_OEM_3 0xC0
2569 /* 0xC1-0xDA Unassigned */
2570 #define VK_OEM_4 0xDB
2571 #define VK_OEM_5 0xDC
2572 #define VK_OEM_6 0xDD
2573 #define VK_OEM_7 0xDE
2574 /* 0xDF-0xE4 OEM specific */
2576 #define VK_PROCESSKEY 0xE5
2578 /* 0xE6 OEM specific */
2579 /* 0xE7-0xE8 Unassigned */
2580 /* 0xE9-0xF5 OEM specific */
2582 #define VK_ATTN 0xF6
2583 #define VK_CRSEL 0xF7
2584 #define VK_EXSEL 0xF8
2585 #define VK_EREOF 0xF9
2586 #define VK_PLAY 0xFA
2587 #define VK_ZOOM 0xFB
2588 #define VK_NONAME 0xFC
2589 #define VK_PA1 0xFD
2590 #define VK_OEM_CLEAR 0xFE
2592 /* Key status flags for mouse events */
2593 #define MK_LBUTTON 0x0001
2594 #define MK_RBUTTON 0x0002
2595 #define MK_SHIFT 0x0004
2596 #define MK_CONTROL 0x0008
2597 #define MK_MBUTTON 0x0010
2599 /* Queue status flags */
2600 #define QS_KEY 0x0001
2601 #define QS_MOUSEMOVE 0x0002
2602 #define QS_MOUSEBUTTON 0x0004
2603 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON)
2604 #define QS_POSTMESSAGE 0x0008
2605 #define QS_TIMER 0x0010
2606 #define QS_PAINT 0x0020
2607 #define QS_SENDMESSAGE 0x0040
2608 #define QS_ALLINPUT 0x007f
2610 #define DDL_READWRITE 0x0000
2611 #define DDL_READONLY 0x0001
2612 #define DDL_HIDDEN 0x0002
2613 #define DDL_SYSTEM 0x0004
2614 #define DDL_DIRECTORY 0x0010
2615 #define DDL_ARCHIVE 0x0020
2617 #define DDL_POSTMSGS 0x2000
2618 #define DDL_DRIVES 0x4000
2619 #define DDL_EXCLUSIVE 0x8000
2621 /* Shell hook values */
2622 #define HSHELL_WINDOWCREATED 1
2623 #define HSHELL_WINDOWDESTROYED 2
2624 #define HSHELL_ACTIVATESHELLWINDOW 3
2626 /* Predefined Clipboard Formats */
2627 #define CF_TEXT 1
2628 #define CF_BITMAP 2
2629 #define CF_METAFILEPICT 3
2630 #define CF_SYLK 4
2631 #define CF_DIF 5
2632 #define CF_TIFF 6
2633 #define CF_OEMTEXT 7
2634 #define CF_DIB 8
2635 #define CF_PALETTE 9
2636 #define CF_PENDATA 10
2637 #define CF_RIFF 11
2638 #define CF_WAVE 12
2639 #define CF_ENHMETAFILE 14
2641 #define CF_OWNERDISPLAY 0x0080
2642 #define CF_DSPTEXT 0x0081
2643 #define CF_DSPBITMAP 0x0082
2644 #define CF_DSPMETAFILEPICT 0x0083
2646 /* "Private" formats don't get GlobalFree()'d */
2647 #define CF_PRIVATEFIRST 0x0200
2648 #define CF_PRIVATELAST 0x02FF
2650 /* "GDIOBJ" formats do get DeleteObject()'d */
2651 #define CF_GDIOBJFIRST 0x0300
2652 #define CF_GDIOBJLAST 0x03FF
2654 /* Clipboard command messages */
2655 #define WM_CUT 0x0300
2656 #define WM_COPY 0x0301
2657 #define WM_PASTE 0x0302
2658 #define WM_CLEAR 0x0303
2659 #define WM_UNDO 0x0304
2661 /* Clipboard owner messages */
2662 #define WM_RENDERFORMAT 0x0305
2663 #define WM_RENDERALLFORMATS 0x0306
2664 #define WM_DESTROYCLIPBOARD 0x0307
2666 /* Clipboard viewer messages */
2667 #define WM_DRAWCLIPBOARD 0x0308
2668 #define WM_PAINTCLIPBOARD 0x0309
2669 #define WM_SIZECLIPBOARD 0x030B
2670 #define WM_VSCROLLCLIPBOARD 0x030A
2671 #define WM_HSCROLLCLIPBOARD 0x030E
2672 #define WM_ASKCBFORMATNAME 0x030C
2673 #define WM_CHANGECBCHAIN 0x030D
2677 /* DragObject stuff */
2679 typedef struct
2681 HWND16 hWnd;
2682 HANDLE16 hScope;
2683 WORD wFlags;
2684 HANDLE16 hList;
2685 HANDLE16 hOfStruct;
2686 POINT16 pt WINE_PACKED;
2687 LONG l WINE_PACKED;
2688 } DRAGINFO, *LPDRAGINFO;
2690 #define DRAGOBJ_PROGRAM 0x0001
2691 #define DRAGOBJ_DATA 0x0002
2692 #define DRAGOBJ_DIRECTORY 0x0004
2693 #define DRAGOBJ_MULTIPLE 0x0008
2694 #define DRAGOBJ_EXTERNAL 0x8000
2696 #define DRAG_PRINT 0x544E5250
2697 #define DRAG_FILE 0x454C4946
2699 /* types of LoadImage */
2700 #define IMAGE_BITMAP 0
2701 #define IMAGE_ICON 1
2702 #define IMAGE_CURSOR 2
2703 #define IMAGE_ENHMETAFILE 3
2705 /* loadflags to LoadImage */
2706 #define LR_DEFAULTCOLOR 0x0000
2707 #define LR_MONOCHROME 0x0001
2708 #define LR_COLOR 0x0002
2709 #define LR_COPYRETURNORG 0x0004
2710 #define LR_COPYDELETEORG 0x0008
2711 #define LR_LOADFROMFILE 0x0010
2712 #define LR_LOADTRANSPARENT 0x0020
2713 #define LR_DEFAULTSIZE 0x0040
2714 #define LR_VGA_COLOR 0x0080
2715 #define LR_LOADMAP3DCOLORS 0x1000
2716 #define LR_CREATEDIBSECTION 0x2000
2717 #define LR_COPYFROMRESOURCE 0x4000
2718 #define LR_SHARED 0x8000
2720 /* Flags for DrawIconEx. */
2721 #define DI_MASK 1
2722 #define DI_IMAGE 2
2723 #define DI_NORMAL (DI_MASK | DI_IMAGE)
2724 #define DI_COMPAT 4
2725 #define DI_DEFAULTSIZE 8
2727 /* misc messages */
2728 #define WM_NULL 0x0000
2729 #define WM_CPL_LAUNCH (WM_USER + 1000)
2730 #define WM_CPL_LAUNCHED (WM_USER + 1001)
2732 /* WM_NOTIFYFORMAT commands and return values */
2733 #define NFR_ANSI 1
2734 #define NFR_UNICODE 2
2735 #define NF_QUERY 3
2736 #define NF_REQUERY 4
2738 #pragma pack(4)
2739 #define EnumTaskWindows(handle,proc,lparam) \
2740 EnumThreadWindows(handle,proc,lparam)
2741 #define OemToAnsiA OemToCharA
2742 #define OemToAnsiW OemToCharW
2743 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi)
2744 #define OemToAnsiBuffA OemToCharBuffA
2745 #define OemToAnsiBuffW OemToCharBuffW
2746 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff)
2747 #define AnsiToOemA CharToOemA
2748 #define AnsiToOemW CharToOemW
2749 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem)
2750 #define AnsiToOemBuffA CharToOemBuffA
2751 #define AnsiToOemBuffW CharToOemBuffW
2752 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
2753 WORD WINAPI CascadeWindows (HWND, UINT, const LPRECT,
2754 UINT, const HWND *);
2755 INT WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,INT);
2756 INT WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,INT);
2757 #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
2758 HICON WINAPI CreateIconIndirect(LPICONINFO);
2759 BOOL WINAPI DestroyAcceleratorTable(HACCEL);
2760 BOOL WINAPI EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM);
2761 INT WINAPI EnumPropsExA(HWND,PROPENUMPROCEXA,LPARAM);
2762 INT WINAPI EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM);
2763 #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
2764 BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM);
2765 BOOL WINAPI ExitWindowsEx(UINT,DWORD);
2766 BOOL WINAPI GetIconInfo(HICON,LPICONINFO);
2767 DWORD WINAPI GetMenuContextHelpId(HMENU);
2768 UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT);
2769 BOOL WINAPI GetMenuItemInfoA(HMENU,UINT,BOOL,MENUITEMINFOA*);
2770 BOOL WINAPI GetMenuItemInfoW(HMENU,UINT,BOOL,MENUITEMINFOW*);
2771 #define GetMenuItemInfo WINELIB_NAME_AW(GetMenuItemInfo)
2772 BOOL WINAPI GetMonitorInfoA(HMONITOR,LPMONITORINFO);
2773 BOOL WINAPI GetMonitorInfoW(HMONITOR,LPMONITORINFO);
2774 #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
2775 INT WINAPI GetNumberFormatA(LCID,DWORD,LPCSTR,const NUMBERFMTA*,LPSTR,int);
2776 INT WINAPI GetNumberFormatW(LCID,DWORD,LPCWSTR,const NUMBERFMTW*,LPWSTR,int);
2777 #define GetNumberFormat WINELIB_NAME_AW(GetNumberFormat);
2778 DWORD WINAPI GetWindowContextHelpId(HWND);
2779 DWORD WINAPI GetWindowThreadProcessId(HWND,LPDWORD);
2780 BOOL WINAPI IsWindowUnicode(HWND);
2781 HKL WINAPI LoadKeyboardLayoutA(LPCSTR,UINT);
2782 HKL WINAPI LoadKeyboardLayoutW(LPCWSTR,UINT);
2783 #define LoadKeyboardLayout WINELIB_NAME_AW(LoadKeyboardLayout)
2784 INT WINAPI MessageBoxExA(HWND,LPCSTR,LPCSTR,UINT,WORD);
2785 INT WINAPI MessageBoxExW(HWND,LPCWSTR,LPCWSTR,UINT,WORD);
2786 #define MessageBoxEx WINELIB_NAME_AW(MessageBoxEx)
2787 HMONITOR WINAPI MonitorFromPoint(POINT,DWORD);
2788 HMONITOR WINAPI MonitorFromRect(LPRECT,DWORD);
2789 HMONITOR WINAPI MonitorFromWindow(HWND,DWORD);
2790 DWORD WINAPI MsgWaitForMultipleObjects(DWORD,HANDLE*,BOOL,DWORD,DWORD);
2791 BOOL WINAPI PaintDesktop(HDC);
2792 BOOL WINAPI PostThreadMessageA(DWORD, UINT, WPARAM, LPARAM);
2793 BOOL WINAPI PostThreadMessageW(DWORD, UINT, WPARAM, LPARAM);
2794 #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
2795 UINT WINAPI ReuseDDElParam(UINT,UINT,UINT,UINT,UINT);
2796 BOOL WINAPI SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM);
2797 BOOL WINAPI SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM);
2798 #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
2799 VOID WINAPI SetDebugErrorLevel(DWORD);
2800 VOID WINAPI SetLastErrorEx(DWORD,DWORD);
2801 BOOL WINAPI SetMenuDefaultItem(HMENU,UINT,UINT);
2802 BOOL WINAPI SetMenuItemInfoA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
2803 BOOL WINAPI SetMenuItemInfoW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
2804 #define SetMenuItemInfo WINELIB_NAME_AW(SetMenuItemInfo)
2805 BOOL WINAPI SetWindowContextHelpId(HWND,DWORD);
2806 WORD WINAPI TileWindows (HWND, UINT, const LPRECT,
2807 UINT, const HWND *);
2808 BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND,
2809 LPTPMPARAMS);
2810 UINT WINAPI UnpackDDElParam(UINT,UINT,UINT*,UINT*);
2811 DWORD WINAPI WaitForInputIdle(HANDLE,DWORD);
2812 VOID WINAPI keybd_event(BYTE,BYTE,DWORD,DWORD);
2813 VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,DWORD);
2815 /* Declarations for functions that are the same in Win16 and Win32 */
2816 VOID WINAPI EndMenu(void);
2817 DWORD WINAPI GetDialogBaseUnits(void);
2818 VOID WINAPI GetKeyboardState(LPBYTE);
2819 DWORD WINAPI GetMenuCheckMarkDimensions(void);
2820 LONG WINAPI GetMessageExtraInfo(void);
2821 DWORD WINAPI GetMessagePos(void);
2822 LONG WINAPI GetMessageTime(void);
2823 DWORD WINAPI GetTickCount(void);
2824 ATOM WINAPI GlobalDeleteAtom(ATOM);
2825 DWORD WINAPI OemKeyScan(WORD);
2826 VOID WINAPI ReleaseCapture(void);
2827 VOID WINAPI SetKeyboardState(LPBYTE);
2828 VOID WINAPI WaitMessage(VOID);
2831 /* Declarations for functions that change between Win16 and Win32 */
2833 BOOL WINAPI AdjustWindowRect(LPRECT,DWORD,BOOL);
2834 BOOL WINAPI AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD);
2835 #define AnsiLowerA CharLowerA
2836 #define AnsiLowerW CharLowerW
2837 #define AnsiLower WINELIB_NAME_AW(AnsiLower)
2838 #define AnsiLowerBuffA CharLowerBuffA
2839 #define AnsiLowerBuffW CharLowerBuffW
2840 #define AnsiLowerBuff WINELIB_NAME_AW(AnsiLowerBuff)
2841 #define AnsiNextA CharNextA
2842 #define AnsiNextW CharNextW
2843 #define AnsiNext WINELIB_NAME_AW(AnsiNext)
2844 #define AnsiPrevA CharPrevA
2845 #define AnsiPrevW CharPrevW
2846 #define AnsiPrev WINELIB_NAME_AW(AnsiPrev)
2847 #define AnsiUpperA CharUpperA
2848 #define AnsiUpperW CharUpperW
2849 #define AnsiUpper WINELIB_NAME_AW(AnsiUpper)
2850 #define AnsiUpperBuffA CharUpperBuffA
2851 #define AnsiUpperBuffW CharUpperBuffW
2852 #define AnsiUpperBuff WINELIB_NAME_AW(AnsiUpperBuff)
2853 BOOL WINAPI AnyPopup(void);
2854 BOOL WINAPI AppendMenuA(HMENU,UINT,UINT,LPCSTR);
2855 BOOL WINAPI AppendMenuW(HMENU,UINT,UINT,LPCWSTR);
2856 #define AppendMenu WINELIB_NAME_AW(AppendMenu)
2857 UINT WINAPI ArrangeIconicWindows(HWND);
2858 HDWP WINAPI BeginDeferWindowPos(INT);
2859 HDC WINAPI BeginPaint(HWND,LPPAINTSTRUCT);
2860 BOOL WINAPI BringWindowToTop(HWND);
2861 BOOL WINAPI CallMsgFilterA(LPMSG,INT);
2862 BOOL WINAPI CallMsgFilterW(LPMSG,INT);
2863 #define CallMsgFilter WINELIB_NAME_AW(CallMsgFilter)
2864 LRESULT WINAPI CallNextHookEx(HHOOK,INT,WPARAM,LPARAM);
2865 LRESULT WINAPI CallWindowProcA(WNDPROC,HWND,UINT,WPARAM,LPARAM);
2866 LRESULT WINAPI CallWindowProcW(WNDPROC,HWND,UINT,WPARAM,LPARAM);
2867 #define CallWindowProc WINELIB_NAME_AW(CallWindowProc)
2868 BOOL WINAPI ChangeClipboardChain(HWND,HWND);
2869 BOOL WINAPI ChangeMenuA(HMENU,UINT,LPCSTR,UINT,UINT);
2870 BOOL WINAPI ChangeMenuW(HMENU,UINT,LPCWSTR,UINT,UINT);
2871 #define ChangeMenu WINELIB_NAME_AW(ChangeMenu)
2872 LPSTR WINAPI CharLowerA(LPSTR);
2873 LPWSTR WINAPI CharLowerW(LPWSTR);
2874 #define CharLower WINELIB_NAME_AW(CharLower)
2875 DWORD WINAPI CharLowerBuffA(LPSTR,DWORD);
2876 DWORD WINAPI CharLowerBuffW(LPWSTR,DWORD);
2877 #define CharLowerBuff WINELIB_NAME_AW(CharLowerBuff)
2878 LPSTR WINAPI CharNextA(LPCSTR);
2879 LPWSTR WINAPI CharNextW(LPCWSTR);
2880 #define CharNext WINELIB_NAME_AW(CharNext)
2881 LPSTR WINAPI CharNextExA(WORD,LPCSTR,DWORD);
2882 LPWSTR WINAPI CharNextExW(WORD,LPCWSTR,DWORD);
2883 #define CharNextEx WINELIB_NAME_AW(CharNextEx)
2884 LPSTR WINAPI CharPrevA(LPCSTR,LPCSTR);
2885 LPWSTR WINAPI CharPrevW(LPCWSTR,LPCWSTR);
2886 #define CharPrev WINELIB_NAME_AW(CharPrev)
2887 LPSTR WINAPI CharPrevExA(WORD,LPCSTR,LPCSTR,DWORD);
2888 LPWSTR WINAPI CharPrevExW(WORD,LPCWSTR,LPCWSTR,DWORD);
2889 #define CharPrevEx WINELIB_NAME_AW(CharPrevEx)
2890 LPSTR WINAPI CharUpperA(LPSTR);
2891 LPWSTR WINAPI CharUpperW(LPWSTR);
2892 #define CharUpper WINELIB_NAME_AW(CharUpper)
2893 DWORD WINAPI CharUpperBuffA(LPSTR,DWORD);
2894 DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD);
2895 #define CharUpperBuff WINELIB_NAME_AW(CharUpperBuff)
2896 BOOL WINAPI CharToOemA(LPCSTR,LPSTR);
2897 BOOL WINAPI CharToOemW(LPCWSTR,LPSTR);
2898 #define CharToOem WINELIB_NAME_AW(CharToOem)
2899 BOOL WINAPI CharToOemBuffA(LPCSTR,LPSTR,DWORD);
2900 BOOL WINAPI CharToOemBuffW(LPCWSTR,LPSTR,DWORD);
2901 #define CharToOemBuff WINELIB_NAME_AW(CharToOemBuff)
2902 BOOL WINAPI CheckDlgButton(HWND,INT,UINT);
2903 DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT);
2904 BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT);
2905 BOOL WINAPI CheckRadioButton(HWND,UINT,UINT,UINT);
2906 HWND WINAPI ChildWindowFromPoint(HWND,POINT);
2907 HWND WINAPI ChildWindowFromPointEx(HWND,POINT,UINT);
2908 BOOL WINAPI ClearCommBreak(HANDLE);
2909 BOOL WINAPI ClientToScreen(HWND,LPPOINT);
2910 BOOL WINAPI ClipCursor(const RECT*);
2911 BOOL WINAPI CloseClipboard(void);
2912 BOOL WINAPI CloseWindow(HWND);
2913 #define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
2914 HICON WINAPI CopyIcon(HICON);
2915 HICON WINAPI CopyImage(HANDLE,UINT,INT,INT,UINT);
2916 BOOL WINAPI CopyRect(RECT*,const RECT*);
2917 INT WINAPI CountClipboardFormats(void);
2918 BOOL WINAPI CreateCaret(HWND,HBITMAP,INT,INT);
2919 HCURSOR WINAPI CreateCursor(HINSTANCE,INT,INT,INT,INT,LPCVOID,LPCVOID);
2920 #define CreateDialogA(inst,ptr,hwnd,dlg) \
2921 CreateDialogParamA(inst,ptr,hwnd,dlg,0)
2922 #define CreateDialogW(inst,ptr,hwnd,dlg) \
2923 CreateDialogParamW(inst,ptr,hwnd,dlg,0)
2924 #define CreateDialog WINELIB_NAME_AW(CreateDialog)
2925 #define CreateDialogIndirectA(inst,ptr,hwnd,dlg) \
2926 CreateDialogIndirectParamA(inst,ptr,hwnd,dlg,0)
2927 #define CreateDialogIndirectW(inst,ptr,hwnd,dlg) \
2928 CreateDialogIndirectParamW(inst,ptr,hwnd,dlg,0)
2929 #define CreateDialogIndirect WINELIB_NAME_AW(CreateDialogIndirect)
2930 HWND WINAPI CreateDialogIndirectParamA(HINSTANCE,LPCVOID,HWND,
2931 DLGPROC,LPARAM);
2932 HWND WINAPI CreateDialogIndirectParamW(HINSTANCE,LPCVOID,HWND,
2933 DLGPROC,LPARAM);
2934 #define CreateDialogIndirectParam WINELIB_NAME_AW(CreateDialogIndirectParam)
2935 HWND WINAPI CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
2936 HWND WINAPI CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
2937 #define CreateDialogParam WINELIB_NAME_AW(CreateDialogParam)
2938 HICON WINAPI CreateIcon(HINSTANCE,INT,INT,BYTE,BYTE,LPCVOID,LPCVOID);
2939 HICON WINAPI CreateIconFromResource(LPBYTE,UINT,BOOL,DWORD);
2940 HICON WINAPI CreateIconFromResourceEx(LPBYTE,UINT,BOOL,DWORD,INT,INT,UINT);
2941 HMENU WINAPI CreateMenu(void);
2942 HMENU WINAPI CreatePopupMenu(void);
2943 #define CreateWindowA(className,titleName,style,x,y,width,height,\
2944 parent,menu,instance,param) \
2945 CreateWindowExA(0,className,titleName,style,x,y,width,height,\
2946 parent,menu,instance,param)
2947 #define CreateWindowW(className,titleName,style,x,y,width,height,\
2948 parent,menu,instance,param) \
2949 CreateWindowExW(0,className,titleName,style,x,y,width,height,\
2950 parent,menu,instance,param)
2951 #define CreateWindow WINELIB_NAME_AW(CreateWindow)
2952 HWND WINAPI CreateWindowExA(DWORD,LPCSTR,LPCSTR,DWORD,INT,INT,
2953 INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
2954 HWND WINAPI CreateWindowExW(DWORD,LPCWSTR,LPCWSTR,DWORD,INT,INT,
2955 INT,INT,HWND,HMENU,HINSTANCE,LPVOID);
2956 #define CreateWindowEx WINELIB_NAME_AW(CreateWindowEx)
2957 HWND WINAPI CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,INT,INT,
2958 INT,INT,HWND,HINSTANCE,LPARAM);
2959 HWND WINAPI CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,INT,INT,
2960 INT,INT,HWND,HINSTANCE,LPARAM);
2961 #define CreateMDIWindow WINELIB_NAME_AW(CreateMDIWindow)
2962 LRESULT WINAPI DefDlgProcA(HWND,UINT,WPARAM,LPARAM);
2963 LRESULT WINAPI DefDlgProcW(HWND,UINT,WPARAM,LPARAM);
2964 #define DefDlgProc WINELIB_NAME_AW(DefDlgProc)
2965 HDWP WINAPI DeferWindowPos(HDWP,HWND,HWND,INT,INT,INT,INT,UINT);
2966 LRESULT WINAPI DefFrameProcA(HWND,HWND,UINT,WPARAM,LPARAM);
2967 LRESULT WINAPI DefFrameProcW(HWND,HWND,UINT,WPARAM,LPARAM);
2968 #define DefFrameProc WINELIB_NAME_AW(DefFrameProc)
2969 #define DefHookProc(code,wparam,lparam,phhook) \
2970 CallNextHookEx(*(phhook),code,wparam,lparam)
2971 LRESULT WINAPI DefMDIChildProcA(HWND,UINT,WPARAM,LPARAM);
2972 LRESULT WINAPI DefMDIChildProcW(HWND,UINT,WPARAM,LPARAM);
2973 #define DefMDIChildProc WINELIB_NAME_AW(DefMDIChildProc)
2974 LRESULT WINAPI DefWindowProcA(HWND,UINT,WPARAM,LPARAM);
2975 LRESULT WINAPI DefWindowProcW(HWND,UINT,WPARAM,LPARAM);
2976 #define DefWindowProc WINELIB_NAME_AW(DefWindowProc)
2977 BOOL WINAPI DeleteMenu(HMENU,UINT,UINT);
2978 BOOL WINAPI DestroyCaret(void);
2979 BOOL WINAPI DestroyCursor(HCURSOR);
2980 BOOL WINAPI DestroyIcon(HICON);
2981 BOOL WINAPI DestroyMenu(HMENU);
2982 BOOL WINAPI DestroyWindow(HWND);
2983 #define DialogBoxA(inst,template,owner,func) \
2984 DialogBoxParamA(inst,template,owner,func,0)
2985 #define DialogBoxW(inst,template,owner,func) \
2986 DialogBoxParamW(inst,template,owner,func,0)
2987 #define DialogBox WINELIB_NAME_AW(DialogBox)
2988 #define DialogBoxIndirectA(inst,template,owner,func) \
2989 DialogBoxIndirectParamA(inst,template,owner,func,0)
2990 #define DialogBoxIndirectW(inst,template,owner,func) \
2991 DialogBoxIndirectParamW(inst,template,owner,func,0)
2992 #define DialogBoxIndirect WINELIB_NAME_AW(DialogBoxIndirect)
2993 INT WINAPI DialogBoxIndirectParamA(HINSTANCE,LPCVOID,HWND,DLGPROC,LPARAM);
2994 INT WINAPI DialogBoxIndirectParamW(HINSTANCE,LPCVOID,HWND,DLGPROC,LPARAM);
2995 #define DialogBoxIndirectParam WINELIB_NAME_AW(DialogBoxIndirectParam)
2996 INT WINAPI DialogBoxParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
2997 INT WINAPI DialogBoxParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
2998 #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam)
2999 LONG WINAPI DispatchMessageA(const MSG*);
3000 LONG WINAPI DispatchMessageW(const MSG*);
3001 #define DispatchMessage WINELIB_NAME_AW(DispatchMessage)
3002 INT WINAPI DlgDirListA(HWND,LPSTR,INT,INT,UINT);
3003 INT WINAPI DlgDirListW(HWND,LPWSTR,INT,INT,UINT);
3004 #define DlgDirList WINELIB_NAME_AW(DlgDirList)
3005 INT WINAPI DlgDirListComboBoxA(HWND,LPSTR,INT,INT,UINT);
3006 INT WINAPI DlgDirListComboBoxW(HWND,LPWSTR,INT,INT,UINT);
3007 #define DlgDirListComboBox WINELIB_NAME_AW(DlgDirListComboBox)
3008 BOOL WINAPI DlgDirSelectComboBoxExA(HWND,LPSTR,INT,INT);
3009 BOOL WINAPI DlgDirSelectComboBoxExW(HWND,LPWSTR,INT,INT);
3010 #define DlgDirSelectComboBoxEx WINELIB_NAME_AW(DlgDirSelectComboBoxEx)
3011 BOOL WINAPI DlgDirSelectExA(HWND,LPSTR,INT,INT);
3012 BOOL WINAPI DlgDirSelectExW(HWND,LPWSTR,INT,INT);
3013 #define DlgDirSelectEx WINELIB_NAME_AW(DlgDirSelectEx)
3014 BOOL WINAPI DragDetect(HWND,POINT);
3015 DWORD WINAPI DragObject(HWND,HWND,UINT,DWORD,HCURSOR);
3016 BOOL WINAPI DrawAnimatedRects(HWND,int,const RECT*,const RECT*);
3017 BOOL WINAPI DrawCaption(HWND,HDC,const RECT*,UINT);
3018 BOOL WINAPI DrawCaptionTempA(HWND,HDC,const RECT*,HFONT,HICON,LPCSTR,UINT);
3019 BOOL WINAPI DrawCaptionTempW(HWND,HDC,const RECT*,HFONT,HICON,LPCWSTR,UINT);
3020 #define DrawCaptionTemp WINELIB_NAME_AW(DrawCaptionTemp)
3021 BOOL WINAPI DrawEdge(HDC,LPRECT,UINT,UINT);
3022 BOOL WINAPI DrawFocusRect(HDC,const RECT*);
3023 BOOL WINAPI DrawFrameControl(HDC,LPRECT,UINT,UINT);
3024 BOOL WINAPI DrawIcon(HDC,INT,INT,HICON);
3025 BOOL WINAPI DrawIconEx(HDC,INT,INT,HICON,INT,INT,
3026 UINT,HBRUSH,UINT);
3027 BOOL WINAPI DrawMenuBar(HWND);
3028 BOOL WINAPI DrawStateA(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
3029 BOOL WINAPI DrawStateW(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT);
3030 #define DrawState WINELIB_NAME_AW(DrawState)
3031 INT WINAPI DrawTextA(HDC,LPCSTR,INT,LPRECT,UINT);
3032 INT WINAPI DrawTextW(HDC,LPCWSTR,INT,LPRECT,UINT);
3033 #define DrawText WINELIB_NAME_AW(DrawText)
3034 BOOL WINAPI EmptyClipboard(void);
3035 UINT WINAPI EnableMenuItem(HMENU,UINT,UINT);
3036 BOOL WINAPI EnableScrollBar(HWND,INT,UINT);
3037 BOOL WINAPI EnableWindow(HWND,BOOL);
3038 BOOL WINAPI EndDeferWindowPos(HDWP);
3039 BOOL WINAPI EndDialog(HWND,INT);
3040 BOOL WINAPI EndPaint(HWND,const PAINTSTRUCT*);
3041 BOOL WINAPI EnumChildWindows(HWND,WNDENUMPROC,LPARAM);
3042 UINT WINAPI EnumClipboardFormats(UINT);
3043 INT WINAPI EnumPropsA(HWND,PROPENUMPROCA);
3044 INT WINAPI EnumPropsW(HWND,PROPENUMPROCW);
3045 #define EnumProps WINELIB_NAME_AW(EnumProps)
3046 BOOL WINAPI EnumWindows(WNDENUMPROC,LPARAM);
3047 BOOL WINAPI EqualRect(const RECT*,const RECT*);
3048 BOOL WINAPI EscapeCommFunction(HANDLE,UINT);
3049 INT WINAPI ExcludeUpdateRgn(HDC,HWND);
3050 #define ExitWindows(a,b) ExitWindowsEx(EWX_LOGOFF,0xffffffff)
3051 INT WINAPI FillRect(HDC,const RECT*,HBRUSH);
3052 HWND WINAPI FindWindowA(LPCSTR,LPCSTR);
3053 HWND WINAPI FindWindowW(LPCWSTR,LPCWSTR);
3054 #define FindWindow WINELIB_NAME_AW(FindWindow)
3055 HWND WINAPI FindWindowExA(HWND,HWND,LPCSTR,LPCSTR);
3056 HWND WINAPI FindWindowExW(HWND,HWND,LPCWSTR,LPCWSTR);
3057 #define FindWindowEx WINELIB_NAME_AW(FindWindowEx)
3058 BOOL WINAPI FlashWindow(HWND,BOOL);
3059 INT WINAPI FrameRect(HDC,const RECT*,HBRUSH);
3060 HWND WINAPI GetActiveWindow(void);
3061 DWORD WINAPI GetAppCompatFlags(HTASK);
3062 WORD WINAPI GetAsyncKeyState(INT);
3063 HWND WINAPI GetCapture(void);
3064 UINT WINAPI GetCaretBlinkTime(void);
3065 BOOL WINAPI GetCaretPos(LPPOINT);
3066 BOOL WINAPI GetClassInfoA(HINSTANCE,LPCSTR,WNDCLASSA *);
3067 BOOL WINAPI GetClassInfoW(HINSTANCE,LPCWSTR,WNDCLASSW *);
3068 #define GetClassInfo WINELIB_NAME_AW(GetClassInfo)
3069 BOOL WINAPI GetClassInfoExA(HINSTANCE,LPCSTR,WNDCLASSEXA *);
3070 BOOL WINAPI GetClassInfoExW(HINSTANCE,LPCWSTR,WNDCLASSEXW *);
3071 #define GetClassInfoEx WINELIB_NAME_AW(GetClassInfoEx)
3072 LONG WINAPI GetClassLongA(HWND,INT);
3073 LONG WINAPI GetClassLongW(HWND,INT);
3074 #define GetClassLong WINELIB_NAME_AW(GetClassLong)
3075 INT WINAPI GetClassNameA(HWND,LPSTR,INT);
3076 INT WINAPI GetClassNameW(HWND,LPWSTR,INT);
3077 #define GetClassName WINELIB_NAME_AW(GetClassName)
3078 WORD WINAPI GetClassWord(HWND,INT);
3079 BOOL WINAPI GetClientRect(HWND,LPRECT);
3080 HANDLE WINAPI GetClipboardData(UINT);
3081 INT WINAPI GetClipboardFormatNameA(UINT,LPSTR,INT);
3082 INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT);
3083 #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
3084 HWND WINAPI GetClipboardOwner(void);
3085 HWND WINAPI GetClipboardViewer(void);
3086 BOOL WINAPI GetClipCursor(LPRECT);
3087 #define GetCurrentTime() GetTickCount()
3088 HCURSOR WINAPI GetCursor(void);
3089 BOOL WINAPI GetCursorPos(LPPOINT);
3090 HDC WINAPI GetDC(HWND);
3091 HDC WINAPI GetDCEx(HWND,HRGN,DWORD);
3092 HWND WINAPI GetDesktopWindow(void);
3093 INT WINAPI GetDlgCtrlID(HWND);
3094 HWND WINAPI GetDlgItem(HWND,INT);
3095 UINT WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);
3096 INT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,UINT);
3097 INT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,UINT);
3098 #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
3099 UINT WINAPI GetDoubleClickTime(void);
3100 HWND WINAPI GetFocus(void);
3101 HWND WINAPI GetForegroundWindow(void);
3102 BOOL WINAPI GetInputState(void);
3103 UINT WINAPI GetInternalWindowPos(HWND,LPRECT,LPPOINT);
3104 UINT WINAPI GetKBCodePage(void);
3105 INT WINAPI GetKeyboardType(INT);
3106 INT WINAPI GetKeyNameTextA(LONG,LPSTR,INT);
3107 INT WINAPI GetKeyNameTextW(LONG,LPWSTR,INT);
3108 #define GetKeyNameText WINELIB_NAME_AW(GetKeyNameText)
3109 INT WINAPI GetKeyboardLayoutNameA(LPSTR);
3110 INT WINAPI GetKeyboardLayoutNameW(LPWSTR);
3111 #define GetKeyboardLayoutName WINELIB_NAME_AW(GetKeyboardLayoutName)
3112 INT16 WINAPI GetKeyState(INT);
3113 HWND WINAPI GetLastActivePopup(HWND);
3114 HMENU WINAPI GetMenu(HWND);
3115 INT WINAPI GetMenuItemCount(HMENU);
3116 UINT WINAPI GetMenuItemID(HMENU,INT);
3117 BOOL WINAPI GetMenuItemRect(HWND,HMENU,UINT,LPRECT);
3118 UINT WINAPI GetMenuState(HMENU,UINT,UINT);
3119 INT WINAPI GetMenuStringA(HMENU,UINT,LPSTR,INT,UINT);
3120 INT WINAPI GetMenuStringW(HMENU,UINT,LPWSTR,INT,UINT);
3121 #define GetMenuString WINELIB_NAME_AW(GetMenuString)
3122 BOOL WINAPI GetMessageA(LPMSG,HWND,UINT,UINT);
3123 BOOL WINAPI GetMessageW(LPMSG,HWND,UINT,UINT);
3124 #define GetMessage WINELIB_NAME_AW(GetMessage)
3125 HWND WINAPI GetNextDlgGroupItem(HWND,HWND,BOOL);
3126 HWND WINAPI GetNextDlgTabItem(HWND,HWND,BOOL);
3127 #define GetNextWindow GetWindow
3128 HWND WINAPI GetOpenClipboardWindow(void);
3129 HWND WINAPI GetParent(HWND);
3130 INT WINAPI GetPriorityClipboardFormat(UINT*,INT);
3131 HANDLE WINAPI GetPropA(HWND,LPCSTR);
3132 HANDLE WINAPI GetPropW(HWND,LPCWSTR);
3133 #define GetProp WINELIB_NAME_AW(GetProp)
3134 DWORD WINAPI GetQueueStatus(UINT);
3135 BOOL WINAPI GetScrollInfo(HWND,INT,LPSCROLLINFO);
3136 INT WINAPI GetScrollPos(HWND,INT);
3137 BOOL WINAPI GetScrollRange(HWND,INT,LPINT,LPINT);
3138 HWND WINAPI GetShellWindow(void);
3139 HMENU WINAPI GetSubMenu(HMENU,INT);
3140 COLORREF WINAPI GetSysColor(INT);
3141 HBRUSH WINAPI GetSysColorBrush(INT);
3142 #define GetSysModalWindow() ((HWND)0)
3143 HMENU WINAPI GetSystemMenu(HWND,BOOL);
3144 INT WINAPI GetSystemMetrics(INT);
3145 DWORD WINAPI GetTabbedTextExtentA(HDC,LPCSTR,INT,INT,const INT*);
3146 DWORD WINAPI GetTabbedTextExtentW(HDC,LPCWSTR,INT,INT,const INT*);
3147 #define GetTabbedTextExtent WINELIB_NAME_AW(GetTabbedTextExtent)
3148 HWND WINAPI GetTopWindow(HWND);
3149 BOOL WINAPI GetUpdateRect(HWND,LPRECT,BOOL);
3150 INT WINAPI GetUpdateRgn(HWND,HRGN,BOOL);
3151 HWND WINAPI GetWindow(HWND,WORD);
3152 HDC WINAPI GetWindowDC(HWND);
3153 LONG WINAPI GetWindowLongA(HWND,INT);
3154 LONG WINAPI GetWindowLongW(HWND,INT);
3155 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong)
3156 BOOL WINAPI GetWindowPlacement(HWND,LPWINDOWPLACEMENT);
3157 BOOL WINAPI GetWindowRect(HWND,LPRECT);
3158 INT WINAPI GetWindowRgn(HWND,HRGN);
3159 #define GetWindowTask(hwnd) ((HTASK)GetWindowThreadProcessId(hwnd,NULL))
3160 INT WINAPI GetWindowTextA(HWND,LPSTR,INT);
3161 INT WINAPI GetWindowTextW(HWND,LPWSTR,INT);
3162 #define GetWindowText WINELIB_NAME_AW(GetWindowText)
3163 INT WINAPI GetWindowTextLengthA(HWND);
3164 INT WINAPI GetWindowTextLengthW(HWND);
3165 #define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
3166 WORD WINAPI GetWindowWord(HWND,INT);
3167 ATOM WINAPI GlobalAddAtomA(LPCSTR);
3168 ATOM WINAPI GlobalAddAtomW(LPCWSTR);
3169 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
3170 ATOM WINAPI GlobalFindAtomA(LPCSTR);
3171 ATOM WINAPI GlobalFindAtomW(LPCWSTR);
3172 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
3173 UINT WINAPI GlobalGetAtomNameA(ATOM,LPSTR,INT);
3174 UINT WINAPI GlobalGetAtomNameW(ATOM,LPWSTR,INT);
3175 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
3176 BOOL WINAPI GrayStringA(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,
3177 INT,INT,INT,INT,INT);
3178 BOOL WINAPI GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,
3179 INT,INT,INT,INT,INT);
3180 #define GrayString WINELIB_NAME_AW(GrayString)
3181 BOOL WINAPI HideCaret(HWND);
3182 BOOL WINAPI HiliteMenuItem(HWND,HMENU,UINT,UINT);
3183 BOOL WINAPI InflateRect(LPRECT,INT,INT);
3184 BOOL WINAPI InSendMessage(void);
3185 BOOL WINAPI InsertMenuA(HMENU,UINT,UINT,UINT,LPCSTR);
3186 BOOL WINAPI InsertMenuW(HMENU,UINT,UINT,UINT,LPCWSTR);
3187 #define InsertMenu WINELIB_NAME_AW(InsertMenu)
3188 BOOL WINAPI InsertMenuItemA(HMENU,UINT,BOOL,const MENUITEMINFOA*);
3189 BOOL WINAPI InsertMenuItemW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
3190 #define InsertMenuItem WINELIB_NAME_AW(InsertMenuItem)
3191 BOOL WINAPI IntersectRect(LPRECT,const RECT*,const RECT*);
3192 BOOL WINAPI InvalidateRect(HWND,const RECT*,BOOL);
3193 BOOL WINAPI InvalidateRgn(HWND,HRGN,BOOL);
3194 BOOL WINAPI InvertRect(HDC,const RECT*);
3195 BOOL WINAPI IsCharAlphaA(CHAR);
3196 BOOL WINAPI IsCharAlphaW(WCHAR);
3197 #define IsCharAlpha WINELIB_NAME_AW(IsCharAlpha)
3198 BOOL WINAPI IsCharAlphaNumericA(CHAR);
3199 BOOL WINAPI IsCharAlphaNumericW(WCHAR);
3200 #define IsCharAlphaNumeric WINELIB_NAME_AW(IsCharAlphaNumeric)
3201 BOOL WINAPI IsCharLowerA(CHAR);
3202 BOOL WINAPI IsCharLowerW(WCHAR);
3203 #define IsCharLower WINELIB_NAME_AW(IsCharLower)
3204 BOOL WINAPI IsCharUpperA(CHAR);
3205 BOOL WINAPI IsCharUpperW(WCHAR);
3206 #define IsCharUpper WINELIB_NAME_AW(IsCharUpper)
3207 BOOL WINAPI IsChild(HWND,HWND);
3208 BOOL WINAPI IsClipboardFormatAvailable(UINT);
3209 BOOL WINAPI IsDialogMessageA(HWND,LPMSG);
3210 BOOL WINAPI IsDialogMessageW(HWND,LPMSG);
3211 #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage)
3212 UINT WINAPI IsDlgButtonChecked(HWND,UINT);
3213 BOOL WINAPI IsIconic(HWND);
3214 BOOL WINAPI IsMenu(HMENU);
3215 BOOL WINAPI IsRectEmpty(const RECT*);
3216 BOOL WINAPI IsWindow(HWND);
3217 BOOL WINAPI IsWindowEnabled(HWND);
3218 BOOL WINAPI IsWindowVisible(HWND);
3219 BOOL WINAPI IsZoomed(HWND);
3220 BOOL WINAPI KillSystemTimer(HWND,UINT);
3221 BOOL WINAPI KillTimer(HWND,UINT);
3222 HACCEL WINAPI LoadAcceleratorsA(HINSTANCE,LPCSTR);
3223 HACCEL WINAPI LoadAcceleratorsW(HINSTANCE,LPCWSTR);
3224 #define LoadAccelerators WINELIB_NAME_AW(LoadAccelerators)
3225 HBITMAP WINAPI LoadBitmapA(HANDLE,LPCSTR);
3226 HBITMAP WINAPI LoadBitmapW(HANDLE,LPCWSTR);
3227 #define LoadBitmap WINELIB_NAME_AW(LoadBitmap)
3228 HCURSOR WINAPI LoadCursorA(HINSTANCE,LPCSTR);
3229 HCURSOR WINAPI LoadCursorW(HINSTANCE,LPCWSTR);
3230 #define LoadCursor WINELIB_NAME_AW(LoadCursor)
3231 HCURSOR WINAPI LoadCursorFromFileA(LPCSTR);
3232 HCURSOR WINAPI LoadCursorFromFileW(LPCWSTR);
3233 #define LoadCursorFromFile WINELIB_NAME_AW(LoadCursorFromFile)
3234 HICON WINAPI LoadIconA(HINSTANCE,LPCSTR);
3235 HICON WINAPI LoadIconW(HINSTANCE,LPCWSTR);
3236 #define LoadIcon WINELIB_NAME_AW(LoadIcon)
3237 HANDLE WINAPI LoadImageA(HINSTANCE,LPCSTR,UINT,INT,INT,UINT);
3238 HANDLE WINAPI LoadImageW(HINSTANCE,LPCWSTR,UINT,INT,INT,UINT);
3239 #define LoadImage WINELIB_NAME_AW(LoadImage)
3240 HMENU WINAPI LoadMenuA(HINSTANCE,LPCSTR);
3241 HMENU WINAPI LoadMenuW(HINSTANCE,LPCWSTR);
3242 #define LoadMenu WINELIB_NAME_AW(LoadMenu)
3243 HMENU WINAPI LoadMenuIndirectA(LPCVOID);
3244 HMENU WINAPI LoadMenuIndirectW(LPCVOID);
3245 #define LoadMenuIndirect WINELIB_NAME_AW(LoadMenuIndirect)
3246 INT WINAPI LoadStringA(HINSTANCE,UINT,LPSTR,INT);
3247 INT WINAPI LoadStringW(HINSTANCE,UINT,LPWSTR,INT);
3248 #define LoadString WINELIB_NAME_AW(LoadString)
3249 BOOL WINAPI LockWindowUpdate(HWND);
3250 INT WINAPI LookupIconIdFromDirectory(LPBYTE,BOOL);
3251 INT WINAPI LookupIconIdFromDirectoryEx(LPBYTE,BOOL,INT,INT,UINT);
3252 UINT WINAPI MapVirtualKeyA(UINT,UINT);
3253 UINT WINAPI MapVirtualKeyW(UINT,UINT);
3254 #define MapVirtualKey WINELIB_NAME_AW(MapVirtualKey)
3255 UINT WINAPI MapVirtualKeyEx32A(UINT,UINT,HKL);
3256 #define MapVirtualKeyEx WINELIB_NAME_AW(MapVirtualKeyEx)
3257 BOOL WINAPI MapDialogRect(HWND,LPRECT);
3258 INT WINAPI MapWindowPoints(HWND,HWND,LPPOINT,UINT);
3259 BOOL WINAPI MessageBeep(UINT);
3260 INT WINAPI MessageBoxA(HWND,LPCSTR,LPCSTR,UINT);
3261 INT WINAPI MessageBoxW(HWND,LPCWSTR,LPCWSTR,UINT);
3262 #define MessageBox WINELIB_NAME_AW(MessageBox)
3263 INT WINAPI MessageBoxIndirectA(LPMSGBOXPARAMSA);
3264 INT WINAPI MessageBoxIndirectW(LPMSGBOXPARAMSW);
3265 #define MessageBoxIndirect WINELIB_NAME_AW(MessageBoxIndirect)
3266 BOOL WINAPI ModifyMenuA(HMENU,UINT,UINT,UINT,LPCSTR);
3267 BOOL WINAPI ModifyMenuW(HMENU,UINT,UINT,UINT,LPCWSTR);
3268 #define ModifyMenu WINELIB_NAME_AW(ModifyMenu)
3269 BOOL WINAPI MoveWindow(HWND,INT,INT,INT,INT,BOOL);
3270 BOOL WINAPI OemToCharA(LPCSTR,LPSTR);
3271 BOOL WINAPI OemToCharW(LPCSTR,LPWSTR);
3272 #define OemToChar WINELIB_NAME_AW(OemToChar)
3273 BOOL WINAPI OemToCharBuffA(LPCSTR,LPSTR,DWORD);
3274 BOOL WINAPI OemToCharBuffW(LPCSTR,LPWSTR,DWORD);
3275 #define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
3276 BOOL WINAPI OffsetRect(LPRECT,INT,INT);
3277 BOOL WINAPI OpenClipboard(HWND);
3278 BOOL WINAPI OpenIcon(HWND);
3279 BOOL WINAPI PeekMessageA(LPMSG,HWND,UINT,UINT,UINT);
3280 BOOL WINAPI PeekMessageW(LPMSG,HWND,UINT,UINT,UINT);
3281 #define PeekMessage WINELIB_NAME_AW(PeekMessage)
3282 #define PostAppMessageA(thread,msg,wparam,lparam) \
3283 PostThreadMessageA((DWORD)(thread),msg,wparam,lparam)
3284 #define PostAppMessageW(thread,msg,wparam,lparam) \
3285 PostThreadMessageW((DWORD)(thread),msg,wparam,lparam)
3286 #define PostAppMessage WINELIB_NAME_AW(PostAppMessage)
3287 BOOL WINAPI PostMessageA(HWND,UINT,WPARAM,LPARAM);
3288 BOOL WINAPI PostMessageW(HWND,UINT,WPARAM,LPARAM);
3289 #define PostMessage WINELIB_NAME_AW(PostMessage)
3290 void WINAPI PostQuitMessage(INT);
3291 BOOL WINAPI PtInRect(const RECT*,POINT);
3292 BOOL WINAPI RedrawWindow(HWND,const RECT*,HRGN,UINT);
3293 ATOM WINAPI RegisterClassA(const WNDCLASSA *);
3294 ATOM WINAPI RegisterClassW(const WNDCLASSW *);
3295 #define RegisterClass WINELIB_NAME_AW(RegisterClass)
3296 ATOM WINAPI RegisterClassExA(const WNDCLASSEXA *);
3297 ATOM WINAPI RegisterClassExW(const WNDCLASSEXW *);
3298 #define RegisterClassEx WINELIB_NAME_AW(RegisterClassEx)
3299 UINT WINAPI RegisterClipboardFormatA(LPCSTR);
3300 UINT WINAPI RegisterClipboardFormatW(LPCWSTR);
3301 #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
3302 WORD WINAPI RegisterWindowMessageA(LPCSTR);
3303 WORD WINAPI RegisterWindowMessageW(LPCWSTR);
3304 #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
3305 INT WINAPI ReleaseDC(HWND,HDC);
3306 BOOL WINAPI RemoveMenu(HMENU,UINT,UINT);
3307 HANDLE WINAPI RemovePropA(HWND,LPCSTR);
3308 HANDLE WINAPI RemovePropW(HWND,LPCWSTR);
3309 #define RemoveProp WINELIB_NAME_AW(RemoveProp)
3310 BOOL WINAPI ReplyMessage(LRESULT);
3311 BOOL WINAPI ScreenToClient(HWND,LPPOINT);
3312 VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM);
3313 BOOL WINAPI ScrollDC(HDC,INT,INT,const RECT*,const RECT*,
3314 HRGN,LPRECT);
3315 BOOL WINAPI ScrollWindow(HWND,INT,INT,const RECT*,const RECT*);
3316 INT WINAPI ScrollWindowEx(HWND,INT,INT,const RECT*,
3317 const RECT*,HRGN,LPRECT,UINT);
3318 LRESULT WINAPI SendDlgItemMessageA(HWND,INT,UINT,WPARAM,LPARAM);
3319 LRESULT WINAPI SendDlgItemMessageW(HWND,INT,UINT,WPARAM,LPARAM);
3320 #define SendDlgItemMessage WINELIB_NAME_AW(SendDlgItemMessage)
3321 LRESULT WINAPI SendMessageA(HWND,UINT,WPARAM,LPARAM);
3322 LRESULT WINAPI SendMessageW(HWND,UINT,WPARAM,LPARAM);
3323 #define SendMessage WINELIB_NAME_AW(SendMessage)
3324 LRESULT WINAPI SendMessageTimeoutA(HWND,UINT,WPARAM,LPARAM,UINT,
3325 UINT,LPDWORD);
3326 LRESULT WINAPI SendMessageTimeoutW(HWND,UINT,WPARAM,LPARAM,UINT,
3327 UINT,LPDWORD);
3328 #define SendMessageTimeout WINELIB_NAME_AW(SendMessageTimeout)
3329 HWND WINAPI SetActiveWindow(HWND);
3330 HWND WINAPI SetCapture(HWND);
3331 BOOL WINAPI SetCaretBlinkTime(UINT);
3332 BOOL WINAPI SetCaretPos(INT,INT);
3333 LONG WINAPI SetClassLongA(HWND,INT,LONG);
3334 LONG WINAPI SetClassLongW(HWND,INT,LONG);
3335 #define SetClassLong WINELIB_NAME_AW(SetClassLong)
3336 WORD WINAPI SetClassWord(HWND,INT,WORD);
3337 HANDLE WINAPI SetClipboardData(UINT,HANDLE);
3338 HWND WINAPI SetClipboardViewer(HWND);
3339 BOOL WINAPI SetCommBreak(HANDLE);
3340 HCURSOR WINAPI SetCursor(HCURSOR);
3341 BOOL WINAPI SetCursorPos(INT,INT);
3342 BOOL WINAPI SetDeskWallPaper(LPCSTR);
3343 BOOL WINAPI SetDlgItemInt(HWND,INT,UINT,BOOL);
3344 BOOL WINAPI SetDlgItemTextA(HWND,INT,LPCSTR);
3345 BOOL WINAPI SetDlgItemTextW(HWND,INT,LPCWSTR);
3346 #define SetDlgItemText WINELIB_NAME_AW(SetDlgItemText)
3347 BOOL WINAPI SetDoubleClickTime(UINT);
3348 HWND WINAPI SetFocus(HWND);
3349 BOOL WINAPI SetForegroundWindow(HWND);
3350 void WINAPI SetInternalWindowPos(HWND,UINT,LPRECT,LPPOINT);
3351 BOOL WINAPI SetMenu(HWND,HMENU);
3352 BOOL WINAPI SetMenuContextHelpId(HMENU,DWORD);
3353 BOOL WINAPI SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP);
3354 BOOL WINAPI SetMessageQueue(INT);
3355 HWND WINAPI SetParent(HWND,HWND);
3356 BOOL WINAPI SetPropA(HWND,LPCSTR,HANDLE);
3357 BOOL WINAPI SetPropW(HWND,LPCWSTR,HANDLE);
3358 #define SetProp WINELIB_NAME_AW(SetProp)
3359 BOOL WINAPI SetRect(LPRECT,INT,INT,INT,INT);
3360 BOOL WINAPI SetRectEmpty(LPRECT);
3361 INT WINAPI SetScrollInfo(HWND,INT,const SCROLLINFO*,BOOL);
3362 INT WINAPI SetScrollPos(HWND,INT,INT,BOOL);
3363 BOOL WINAPI SetScrollRange(HWND,INT,INT,INT,BOOL);
3364 BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
3365 #define SetSysModalWindow(hwnd) ((HWND)0)
3366 BOOL WINAPI SetSystemCursor(HCURSOR,DWORD);
3367 BOOL WINAPI SetSystemMenu(HWND,HMENU);
3368 UINT WINAPI SetSystemTimer(HWND,UINT,UINT,TIMERPROC);
3369 UINT WINAPI SetTimer(HWND,UINT,UINT,TIMERPROC);
3370 LONG WINAPI SetWindowLongA(HWND,INT,LONG);
3371 LONG WINAPI SetWindowLongW(HWND,INT,LONG);
3372 #define SetWindowLong WINELIB_NAME_AW(SetWindowLong)
3373 BOOL WINAPI SetWindowPlacement(HWND,const WINDOWPLACEMENT*);
3374 HHOOK WINAPI SetWindowsHookA(INT,HOOKPROC);
3375 HHOOK WINAPI SetWindowsHookW(INT,HOOKPROC);
3376 #define SetWindowsHook WINELIB_NAME_AW(SetWindowsHook)
3377 HHOOK WINAPI SetWindowsHookExA(INT,HOOKPROC,HINSTANCE,DWORD);
3378 HHOOK WINAPI SetWindowsHookExW(INT,HOOKPROC,HINSTANCE,DWORD);
3379 #define SetWindowsHookEx WINELIB_NAME_AW(SetWindowsHookEx)
3380 BOOL WINAPI SetWindowPos(HWND,HWND,INT,INT,INT,INT,WORD);
3381 INT WINAPI SetWindowRgn(HWND,HRGN,BOOL);
3382 BOOL WINAPI SetWindowTextA(HWND,LPCSTR);
3383 BOOL WINAPI SetWindowTextW(HWND,LPCWSTR);
3384 #define SetWindowText WINELIB_NAME_AW(SetWindowText)
3385 WORD WINAPI SetWindowWord(HWND,INT,WORD);
3386 BOOL WINAPI ShowCaret(HWND);
3387 INT WINAPI ShowCursor(BOOL);
3388 BOOL WINAPI ShowScrollBar(HWND,INT,BOOL);
3389 BOOL WINAPI ShowOwnedPopups(HWND,BOOL);
3390 BOOL WINAPI ShowWindow(HWND,INT);
3391 BOOL WINAPI SubtractRect(LPRECT,const RECT*,const RECT*);
3392 BOOL WINAPI SwapMouseButton(BOOL);
3393 VOID WINAPI SwitchToThisWindow(HWND,BOOL);
3394 BOOL WINAPI SystemParametersInfoA(UINT,UINT,LPVOID,UINT);
3395 BOOL WINAPI SystemParametersInfoW(UINT,UINT,LPVOID,UINT);
3396 #define SystemParametersInfo WINELIB_NAME_AW(SystemParametersInfo)
3397 LONG WINAPI TabbedTextOutA(HDC,INT,INT,LPCSTR,INT,INT,const INT*,INT);
3398 LONG WINAPI TabbedTextOutW(HDC,INT,INT,LPCWSTR,INT,INT,const INT*,INT);
3399 #define TabbedTextOut WINELIB_NAME_AW(TabbedTextOut)
3400 INT WINAPI ToAscii(UINT,UINT,LPBYTE,LPWORD,UINT);
3401 INT WINAPI ToAsciiEx(UINT,UINT,LPBYTE,LPWORD,UINT,HKL);
3402 BOOL WINAPI TrackPopupMenu(HMENU,UINT,INT,INT,INT,HWND,const RECT*);
3403 INT WINAPI TranslateAccelerator(HWND,HACCEL,LPMSG);
3404 BOOL WINAPI TranslateMDISysAccel(HWND,LPMSG);
3405 BOOL WINAPI TranslateMessage(const MSG*);
3406 BOOL WINAPI UnhookWindowsHook(INT,HOOKPROC);
3407 BOOL WINAPI UnhookWindowsHookEx(HHOOK);
3408 BOOL WINAPI UnionRect(LPRECT,const RECT*,const RECT*);
3409 BOOL WINAPI UnregisterClassA(LPCSTR,HINSTANCE);
3410 BOOL WINAPI UnregisterClassW(LPCWSTR,HINSTANCE);
3411 #define UnregisterClass WINELIB_NAME_AW(UnregisterClass)
3412 VOID WINAPI UpdateWindow(HWND);
3413 VOID WINAPI ValidateRect(HWND,const RECT*);
3414 VOID WINAPI ValidateRgn(HWND,HRGN);
3415 WORD WINAPI VkKeyScanA(CHAR);
3416 WORD WINAPI VkKeyScanW(WCHAR);
3417 #define VkKeyScan WINELIB_NAME_AW(VkKeyScan)
3418 WORD WINAPI VkKeyScanExA(CHAR, HKL);
3419 WORD WINAPI VkKeyScanExW(WCHAR, HKL);
3420 #define VkKeyScanEx WINELIB_NAME_AW(VkKeyScanEx)
3421 HWND WINAPI WindowFromDC(HDC);
3422 HWND WINAPI WindowFromPoint(POINT);
3423 BOOL WINAPI WinHelpA(HWND,LPCSTR,UINT,DWORD);
3424 BOOL WINAPI WinHelpW(HWND,LPCWSTR,UINT,DWORD);
3425 #define WinHelp WINELIB_NAME_AW(WinHelp)
3426 UINT WINAPI WNetAddConnectionA(LPCSTR,LPCSTR,LPCSTR);
3427 UINT WINAPI WNetAddConnectionW(LPCWSTR,LPCWSTR,LPCWSTR);
3428 #define WNetAddConnection WINELIB_NAME_AW(WNetAddConnection)
3429 INT WINAPIV wsnprintfA(LPSTR,UINT,LPCSTR,...);
3430 INT WINAPIV wsnprintfW(LPWSTR,UINT,LPCWSTR,...);
3431 #define wsnprintf WINELIB_NAME_AW(wsnprintf)
3432 INT WINAPIV wsprintfA(LPSTR,LPCSTR,...);
3433 INT WINAPIV wsprintfW(LPWSTR,LPCWSTR,...);
3434 #define wsprintf WINELIB_NAME_AW(wsprintf)
3435 INT WINAPI wvsnprintfA(LPSTR,UINT,LPCSTR,va_list);
3436 INT WINAPI wvsnprintfW(LPWSTR,UINT,LPCWSTR,va_list);
3437 #define wvsnprintf WINELIB_NAME_AW(wvsnprintf)
3438 INT WINAPI wvsprintfA(LPSTR,LPCSTR,va_list);
3439 INT WINAPI wvsprintfW(LPWSTR,LPCWSTR,va_list);
3440 #define wvsprintf WINELIB_NAME_AW(wvsprintf)
3442 BOOL WINAPI RegisterShellHook16(HWND16,UINT16);
3443 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */
3444 WORD WINAPI SYSTEM_KillSystemTimer( WORD );
3446 /* Extra functions that don't exist in the Windows API */
3448 HPEN WINAPI GetSysColorPen(INT);
3449 INT WINAPI LoadMessageA(HMODULE,UINT,WORD,LPSTR,INT);
3450 INT WINAPI LoadMessageW(HMODULE,UINT,WORD,LPWSTR,INT);
3452 VOID WINAPI ScreenSwitchEnable16(WORD);
3454 #ifdef __cplusplus
3456 #endif
3458 #endif /* __INCLUDE_WINUSER_H */