1 #ifndef _WINUSER_H 2 #define _WINUSER_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #ifdef _MSC_VER 9 #pragma warning(push) 10 #pragma warning(disable:4201) 11 #pragma warning(disable:4820) 12 #endif 13 14 #if !defined(_USER32_) 15 #define WINUSERAPI DECLSPEC_IMPORT 16 #else 17 #define WINUSERAPI 18 #endif 19 20 #define FALT 16 21 #define FCONTROL 8 22 #define FNOINVERT 2 23 #define FSHIFT 4 24 #define FVIRTKEY 1 25 #define ATF_TIMEOUTON 1 26 #define ATF_ONOFFFEEDBACK 2 27 #define ATF_AVAILABLE 4 /* May be obsolete. Not in recent MS docs. */ 28 #define WH_MIN (-1) 29 #define WH_MSGFILTER (-1) 30 #define WH_JOURNALRECORD 0 31 #define WH_JOURNALPLAYBACK 1 32 #define WH_KEYBOARD 2 33 #define WH_GETMESSAGE 3 34 #define WH_CALLWNDPROC 4 35 #define WH_CBT 5 36 #define WH_SYSMSGFILTER 6 37 #define WH_MOUSE 7 38 #define WH_HARDWARE 8 39 #define WH_DEBUG 9 40 #define WH_SHELL 10 41 #define WH_FOREGROUNDIDLE 11 42 #define WH_CALLWNDPROCRET 12 43 #define WH_KEYBOARD_LL 13 44 #define WH_MOUSE_LL 14 45 #define WH_MAX 14 46 #define WH_MINHOOK WH_MIN 47 #define WH_MAXHOOK WH_MAX 48 #define HC_ACTION 0 49 #define HC_GETNEXT 1 50 #define HC_SKIP 2 51 #define HC_NOREMOVE 3 52 #define HC_NOREM 3 53 #define HC_SYSMODALON 4 54 #define HC_SYSMODALOFF 5 55 #define HCBT_MOVESIZE 0 56 #define HCBT_MINMAX 1 57 #define HCBT_QS 2 58 #define HCBT_CREATEWND 3 59 #define HCBT_DESTROYWND 4 60 #define HCBT_ACTIVATE 5 61 #define HCBT_CLICKSKIPPED 6 62 #define HCBT_KEYSKIPPED 7 63 #define HCBT_SYSCOMMAND 8 64 #define HCBT_SETFOCUS 9 65 66 /* Predefined Clipboard Formats */ 67 #define CF_TEXT 1 68 #define CF_BITMAP 2 69 #define CF_METAFILEPICT 3 70 #define CF_SYLK 4 71 #define CF_DIF 5 72 #define CF_TIFF 6 73 #define CF_OEMTEXT 7 74 #define CF_DIB 8 75 #define CF_PALETTE 9 76 #define CF_PENDATA 10 77 #define CF_RIFF 11 78 #define CF_WAVE 12 79 #define CF_UNICODETEXT 13 80 #define CF_ENHMETAFILE 14 81 82 #if(WINVER >= 0x0400) 83 #define CF_HDROP 15 84 #define CF_LOCALE 16 85 #endif 86 87 #if(WINVER >= 0x0500) 88 #define CF_DIBV5 17 89 #endif 90 91 #if(WINVER >= 0x0500) 92 #define CF_MAX 18 93 #elif(WINVER >= 0x0400) 94 #define CF_MAX 17 95 #else 96 #define CF_MAX 15 97 #endif 98 99 #define CF_OWNERDISPLAY 128 100 #define CF_DSPTEXT 129 101 #define CF_DSPBITMAP 130 102 #define CF_DSPMETAFILEPICT 131 103 #define CF_DSPENHMETAFILE 142 104 #define CF_PRIVATEFIRST 512 105 #define CF_PRIVATELAST 767 106 #define CF_GDIOBJFIRST 768 107 #define CF_GDIOBJLAST 1023 108 109 #define HKL_NEXT 1 110 #define HKL_PREV 0 111 #define KLF_ACTIVATE 1 112 #define KLF_SUBSTITUTE_OK 2 113 #define KLF_UNLOADPREVIOUS 4 114 #define KLF_REORDER 8 115 #define KLF_REPLACELANG 16 116 #define KLF_NOTELLSHELL 128 117 #define KLF_SETFORPROCESS 256 118 #if (_WIN32_WINNT >= 0x0500) 119 #define KLF_SHIFTLOCK 0x00010000 120 #define KLF_RESET 0x40000000 121 #endif /*(_WIN32_WINNT >= 0x0500) */ 122 #define KL_NAMELENGTH 9 123 #if (WINVER >= 0x0500) 124 #define INPUTLANGCHANGE_BACKWARD 4 125 #define INPUTLANGCHANGE_FORWARD 2 126 #define INPUTLANGCHANGE_SYSCHARSET 1 127 #endif /* (WINVER >= 0x0500) */ 128 #define MF_ENABLED 0 129 #define MF_GRAYED 1 130 #define MF_DISABLED 2 131 #define MF_BITMAP 4 132 #define MF_CHECKED 8 133 #define MF_MENUBARBREAK 32 134 #define MF_MENUBREAK 64 135 #define MF_OWNERDRAW 256 136 #define MF_POPUP 16 137 #define MF_SEPARATOR 0x800 138 #define MF_STRING 0 139 #define MF_UNCHECKED 0 140 #define MF_DEFAULT 4096 141 #define MF_SYSMENU 0x2000 142 #define MF_HELP 0x4000 143 #define MF_END 128 144 #define MF_RIGHTJUSTIFY 0x4000 145 #define MF_MOUSESELECT 0x8000 146 #define MF_INSERT 0 147 #define MF_CHANGE 128 148 #define MF_APPEND 256 149 #define MF_DELETE 512 150 #define MF_REMOVE 4096 151 #define MF_USECHECKBITMAPS 512 152 #define MF_UNHILITE 0 153 #define MF_HILITE 128 154 155 /* Also defined in dbt.h */ 156 #define BSM_ALLCOMPONENTS 0 157 #define BSM_APPLICATIONS 8 158 #define BSM_ALLDESKTOPS 16 159 #define BSM_INSTALLABLEDRIVERS 4 160 #define BSM_NETDRIVER 2 161 #define BSM_VXDS 1 162 #define BSF_FLUSHDISK 0x00000004 163 #define BSF_FORCEIFHUNG 0x00000020 164 #define BSF_IGNORECURRENTTASK 0x00000002 165 #define BSF_NOHANG 0x00000008 166 #define BSF_NOTIMEOUTIFNOTHUNG 0x00000040 167 #define BSF_POSTMESSAGE 0x00000010 168 #define BSF_QUERY 0x00000001 169 #if (_WIN32_WINNT >= 0x0500) 170 #define BSF_ALLOWSFW 0x00000080 171 #define BSF_SENDNOTIFYMESSAGE 0x00000100 172 #endif /* (_WIN32_WINNT >= 0x0500) */ 173 #if (_WIN32_WINNT >= 0x0501) 174 #define BSF_LUID 0x00000400 175 #define BSF_RETURNHDESK 0x00000200 176 #endif /* (_WIN32_WINNT >= 0x0501) */ 177 178 #define BROADCAST_QUERY_DENY 1112363332 179 #define ENUM_CURRENT_SETTINGS ((DWORD)-1) 180 #define ENUM_REGISTRY_SETTINGS ((DWORD)-2) 181 #define CDS_UPDATEREGISTRY 1 182 #define CDS_TEST 2 183 #define CDS_FULLSCREEN 4 184 #define CDS_GLOBAL 8 185 #define CDS_SET_PRIMARY 16 186 #define CDS_VIDEOPARAMETERS 20 187 #define CDS_RESET 0x40000000 188 #define CDS_SETRECT 0x20000000 189 #define CDS_NORESET 0x10000000 190 #define DISP_CHANGE_SUCCESSFUL 0 191 #define DISP_CHANGE_RESTART 1 192 #define DISP_CHANGE_BADFLAGS (-4) 193 #define DISP_CHANGE_BADPARAM (-5) 194 #define DISP_CHANGE_FAILED (-1) 195 #define DISP_CHANGE_BADMODE (-2) 196 #define DISP_CHANGE_NOTUPDATED (-3) 197 #define BST_CHECKED 1 198 #define BST_INDETERMINATE 2 199 #define BST_UNCHECKED 0 200 #define BST_FOCUS 8 201 #define BST_PUSHED 4 202 #define MF_BYCOMMAND 0 203 #define MF_BYPOSITION 1024 204 #define MF_UNCHECKED 0 205 #define MF_HILITE 128 206 #define MF_UNHILITE 0 207 #define CWP_ALL 0 208 #define CWP_SKIPINVISIBLE 1 209 #define CWP_SKIPDISABLED 2 210 #define CWP_SKIPTRANSPARENT 4 211 #define IMAGE_BITMAP 0 212 #define IMAGE_ICON 1 213 #define IMAGE_CURSOR 2 214 #define IMAGE_ENHMETAFILE 3 215 #define DF_ALLOWOTHERACCOUNTHOOK 1 216 #define DESKTOP_CREATEMENU 4 217 #define DESKTOP_CREATEWINDOW 2 218 #define DESKTOP_ENUMERATE 64 219 #define DESKTOP_HOOKCONTROL 8 220 #define DESKTOP_JOURNALPLAYBACK 32 221 #define DESKTOP_JOURNALRECORD 16 222 #define DESKTOP_READOBJECTS 1 223 #define DESKTOP_SWITCHDESKTOP 256 224 #define DESKTOP_WRITEOBJECTS 128 225 #define CW_USEDEFAULT ((int)0x80000000) 226 #define WS_BORDER 0x800000 227 #define WS_CAPTION 0xc00000 228 #define WS_CHILD 0x40000000 229 #define WS_CHILDWINDOW 0x40000000 230 #define WS_CLIPCHILDREN 0x2000000 231 #define WS_CLIPSIBLINGS 0x4000000 232 #define WS_DISABLED 0x8000000 233 #define WS_DLGFRAME 0x400000 234 #define WS_GROUP 0x20000 235 #define WS_HSCROLL 0x100000 236 #define WS_ICONIC 0x20000000 237 #define WS_MAXIMIZE 0x1000000 238 #define WS_MAXIMIZEBOX 0x10000 239 #define WS_MINIMIZE 0x20000000 240 #define WS_MINIMIZEBOX 0x20000 241 #define WS_OVERLAPPED 0 242 #define WS_OVERLAPPEDWINDOW 0xcf0000 243 #define WS_POPUP 0x80000000 244 #define WS_POPUPWINDOW 0x80880000 245 #define WS_SIZEBOX 0x40000 246 #define WS_SYSMENU 0x80000 247 #define WS_TABSTOP 0x10000 248 #define WS_THICKFRAME 0x40000 249 #define WS_TILED 0 250 #define WS_TILEDWINDOW 0xcf0000 251 #define WS_VISIBLE 0x10000000 252 #define WS_VSCROLL 0x200000 253 #define MDIS_ALLCHILDSTYLES 1 254 #define BS_3STATE 5 255 #define BS_AUTO3STATE 6 256 #define BS_AUTOCHECKBOX 3 257 #define BS_AUTORADIOBUTTON 9 258 #define BS_BITMAP 128 259 #define BS_BOTTOM 0x800 260 #define BS_CENTER 0x300 261 #define BS_CHECKBOX 2 262 #define BS_DEFPUSHBUTTON 1 263 #define BS_GROUPBOX 7 264 #define BS_ICON 64 265 #define BS_LEFT 256 266 #define BS_LEFTTEXT 32 267 #define BS_MULTILINE 0x2000 268 #define BS_NOTIFY 0x4000 269 #define BS_OWNERDRAW 0xb 270 #define BS_TYPEMASK 0xFL 271 #define BS_PUSHBUTTON 0 272 #define BS_PUSHLIKE 4096 273 #define BS_RADIOBUTTON 4 274 #define BS_RIGHT 512 275 #define BS_RIGHTBUTTON 32 276 #define BS_TEXT 0 277 #define BS_TOP 0x400 278 #define BS_USERBUTTON 8 279 #define BS_VCENTER 0xc00 280 #define BS_FLAT 0x8000 281 #define CBS_AUTOHSCROLL 64 282 #define CBS_DISABLENOSCROLL 0x800 283 #define CBS_DROPDOWN 2 284 #define CBS_DROPDOWNLIST 3 285 #define CBS_HASSTRINGS 512 286 #define CBS_LOWERCASE 0x4000 287 #define CBS_NOINTEGRALHEIGHT 0x400 288 #define CBS_OEMCONVERT 128 289 #define CBS_OWNERDRAWFIXED 16 290 #define CBS_OWNERDRAWVARIABLE 32 291 #define CBS_SIMPLE 1 292 #define CBS_SORT 256 293 #define CBS_UPPERCASE 0x2000 294 #define ES_AUTOHSCROLL 128 295 #define ES_AUTOVSCROLL 64 296 #define ES_CENTER 1 297 #define ES_LEFT 0 298 #define ES_LOWERCASE 16 299 #define ES_MULTILINE 4 300 #define ES_NOHIDESEL 256 301 #define ES_NUMBER 0x2000 302 #define ES_OEMCONVERT 0x400 303 #define ES_PASSWORD 32 304 #define ES_READONLY 0x800 305 #define ES_RIGHT 2 306 #define ES_UPPERCASE 8 307 #define ES_WANTRETURN 4096 308 #define LBS_DISABLENOSCROLL 4096 309 #define LBS_EXTENDEDSEL 0x800 310 #define LBS_HASSTRINGS 64 311 #define LBS_MULTICOLUMN 512 312 #define LBS_MULTIPLESEL 8 313 #define LBS_NODATA 0x2000 314 #define LBS_NOINTEGRALHEIGHT 256 315 #define LBS_NOREDRAW 4 316 #define LBS_NOSEL 0x4000 317 #define LBS_NOTIFY 1 318 #define LBS_OWNERDRAWFIXED 16 319 #define LBS_OWNERDRAWVARIABLE 32 320 #define LBS_SORT 2 321 #define LBS_STANDARD 0xa00003 322 #define LBS_USETABSTOPS 128 323 #define LBS_WANTKEYBOARDINPUT 0x400 324 #define LBS_COMBOBOX 0x8000 325 #define SBS_BOTTOMALIGN 4 326 #define SBS_HORZ 0 327 #define SBS_LEFTALIGN 2 328 #define SBS_RIGHTALIGN 4 329 #define SBS_SIZEBOX 8 330 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 4 331 #define SBS_SIZEBOXTOPLEFTALIGN 2 332 #define SBS_SIZEGRIP 16 333 #define SBS_TOPALIGN 2 334 #define SBS_VERT 1 335 #define SS_BITMAP 14 336 #define SS_BLACKFRAME 7 337 #define SS_BLACKRECT 4 338 #define SS_CENTER 1 339 #define SS_CENTERIMAGE 512 340 #define SS_EDITCONTROL 0x2000 341 #define SS_ENHMETAFILE 15 342 #define SS_ETCHEDFRAME 18 343 #define SS_ETCHEDHORZ 16 344 #define SS_ETCHEDVERT 17 345 #define SS_GRAYFRAME 8 346 #define SS_GRAYRECT 5 347 #define SS_ICON 3 348 #define SS_LEFT 0 349 #define SS_LEFTNOWORDWRAP 0xc 350 #define SS_NOPREFIX 128 351 #define SS_NOTIFY 256 352 #define SS_OWNERDRAW 0xd 353 #define SS_REALSIZECONTROL 0x040 354 #define SS_REALSIZEIMAGE 0x800 355 #define SS_RIGHT 2 356 #define SS_RIGHTJUST 0x400 357 #define SS_SIMPLE 11 358 #define SS_SUNKEN 4096 359 #define SS_WHITEFRAME 9 360 #define SS_WHITERECT 6 361 #define SS_USERITEM 10 362 #define SS_TYPEMASK 0x0000001FL 363 #define SS_ENDELLIPSIS 0x00004000L 364 #define SS_PATHELLIPSIS 0x00008000L 365 #define SS_WORDELLIPSIS 0x0000C000L 366 #define SS_ELLIPSISMASK 0x0000C000L 367 #define DS_3DLOOK 4 368 #define DS_ABSALIGN 1 369 #define DS_CENTER 0x800 370 #define DS_CENTERMOUSE 4096 371 #define DS_CONTEXTHELP 0x2000 372 #define DS_CONTROL 0x400 373 #define DS_FIXEDSYS 8 374 #define DS_LOCALEDIT 32 375 #define DS_MODALFRAME 128 376 #define DS_NOFAILCREATE 16 377 #define DS_NOIDLEMSG 256 378 #define DS_SETFONT 64 379 #define DS_SETFOREGROUND 512 380 #define DS_SYSMODAL 2 381 #define DS_SHELLFONT (DS_SETFONT | DS_FIXEDSYS) 382 #define WS_EX_ACCEPTFILES 16 383 #define WS_EX_APPWINDOW 0x40000 384 #define WS_EX_CLIENTEDGE 512 385 #define WS_EX_COMPOSITED 0x2000000 /* XP */ 386 #define WS_EX_CONTEXTHELP 0x400 387 #define WS_EX_CONTROLPARENT 0x10000 388 #define WS_EX_DLGMODALFRAME 1 389 #define WS_EX_LAYERED 0x80000 /* w2k */ 390 #define WS_EX_LAYOUTRTL 0x400000 /* w98, w2k */ 391 #define WS_EX_LEFT 0 392 #define WS_EX_LEFTSCROLLBAR 0x4000 393 #define WS_EX_LTRREADING 0 394 #define WS_EX_MDICHILD 64 395 #define WS_EX_NOACTIVATE 0x8000000 /* w2k */ 396 #define WS_EX_NOINHERITLAYOUT 0x100000 /* w2k */ 397 #define WS_EX_NOPARENTNOTIFY 4 398 #define WS_EX_OVERLAPPEDWINDOW 0x300 399 #define WS_EX_PALETTEWINDOW 0x188 400 #define WS_EX_RIGHT 0x1000 401 #define WS_EX_RIGHTSCROLLBAR 0 402 #define WS_EX_RTLREADING 0x2000 403 #define WS_EX_STATICEDGE 0x20000 404 #define WS_EX_TOOLWINDOW 128 405 #define WS_EX_TOPMOST 8 406 #define WS_EX_TRANSPARENT 32 407 #define WS_EX_WINDOWEDGE 256 408 #define WINSTA_ACCESSCLIPBOARD 4 409 #define WINSTA_ACCESSGLOBALATOMS 32 410 #define WINSTA_CREATEDESKTOP 8 411 #define WINSTA_ENUMDESKTOPS 1 412 #define WINSTA_ENUMERATE 256 413 #define WINSTA_EXITWINDOWS 64 414 #define WINSTA_READATTRIBUTES 2 415 #define WINSTA_READSCREEN 512 416 #define WINSTA_WRITEATTRIBUTES 16 417 #define WINSTA_ALL_ACCESS 895 418 #define DDL_READWRITE 0 419 #define DDL_READONLY 1 420 #define DDL_HIDDEN 2 421 #define DDL_SYSTEM 4 422 #define DDL_DIRECTORY 16 423 #define DDL_ARCHIVE 32 424 #define DDL_POSTMSGS 8192 425 #define DDL_DRIVES 16384 426 #define DDL_EXCLUSIVE 32768 427 #define DC_ACTIVE 0x00000001 428 #define DC_SMALLCAP 0x00000002 429 #define DC_ICON 0x00000004 430 #define DC_TEXT 0x00000008 431 #define DC_INBUTTON 0x00000010 432 #if (_WIN32_WINDOWS >= 0x0410 || _WIN32_WINNT >= 0x0500) 433 #define DC_GRADIENT 0x00000020 434 #endif 435 #if (_WIN32_WINNT >= 0x0501) 436 #define DC_BUTTONS 0x00001000 437 #endif 438 /* Where are these documented? */ 439 #define DC_CAPTION (DC_ICON|DC_TEXT|DC_BUTTONS) 440 #define DC_NC (DC_CAPTION|DC_FRAME) 441 442 #define BDR_RAISEDOUTER 1 443 #define BDR_SUNKENOUTER 2 444 #define BDR_RAISEDINNER 4 445 #define BDR_SUNKENINNER 8 446 #define BDR_OUTER 3 447 #define BDR_INNER 0xc 448 #define BDR_RAISED 5 449 #define BDR_SUNKEN 10 450 #define EDGE_RAISED (BDR_RAISEDOUTER|BDR_RAISEDINNER) 451 #define EDGE_SUNKEN (BDR_SUNKENOUTER|BDR_SUNKENINNER) 452 #define EDGE_ETCHED (BDR_SUNKENOUTER|BDR_RAISEDINNER) 453 #define EDGE_BUMP (BDR_RAISEDOUTER|BDR_SUNKENINNER) 454 #define BF_LEFT 1 455 #define BF_TOP 2 456 #define BF_RIGHT 4 457 #define BF_BOTTOM 8 458 #define BF_TOPLEFT (BF_TOP|BF_LEFT) 459 #define BF_TOPRIGHT (BF_TOP|BF_RIGHT) 460 #define BF_BOTTOMLEFT (BF_BOTTOM|BF_LEFT) 461 #define BF_BOTTOMRIGHT (BF_BOTTOM|BF_RIGHT) 462 #define BF_RECT (BF_LEFT|BF_TOP|BF_RIGHT|BF_BOTTOM) 463 #define BF_DIAGONAL 16 464 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL|BF_TOP|BF_RIGHT) 465 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL|BF_TOP|BF_LEFT) 466 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL|BF_BOTTOM|BF_LEFT) 467 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL|BF_BOTTOM|BF_RIGHT) 468 #define BF_MIDDLE 0x800 469 #define BF_SOFT 0x1000 470 #define BF_ADJUST 0x2000 471 #define BF_FLAT 0x4000 472 #define BF_MONO 0x8000 473 #define DFC_CAPTION 1 474 #define DFC_MENU 2 475 #define DFC_SCROLL 3 476 #define DFC_BUTTON 4 477 #if (WINVER >= 0x0500) 478 #define DFC_POPUPMENU 5 479 #endif /* WINVER >= 0x0500 */ 480 #define DFCS_CAPTIONCLOSE 0 481 #define DFCS_CAPTIONMIN 1 482 #define DFCS_CAPTIONMAX 2 483 #define DFCS_CAPTIONRESTORE 3 484 #define DFCS_CAPTIONHELP 4 485 #define DFCS_MENUARROW 0 486 #define DFCS_MENUCHECK 1 487 #define DFCS_MENUBULLET 2 488 #define DFCS_MENUARROWRIGHT 4 489 #define DFCS_SCROLLUP 0 490 #define DFCS_SCROLLDOWN 1 491 #define DFCS_SCROLLLEFT 2 492 #define DFCS_SCROLLRIGHT 3 493 #define DFCS_SCROLLCOMBOBOX 5 494 #define DFCS_SCROLLSIZEGRIP 8 495 #define DFCS_SCROLLSIZEGRIPRIGHT 16 496 #define DFCS_BUTTONCHECK 0 497 #define DFCS_BUTTONRADIOIMAGE 1 498 #define DFCS_BUTTONRADIOMASK 2 499 #define DFCS_BUTTONRADIO 4 500 #define DFCS_BUTTON3STATE 8 501 #define DFCS_BUTTONPUSH 16 502 #define DFCS_INACTIVE 256 503 #define DFCS_PUSHED 512 504 #define DFCS_CHECKED 1024 505 #if (WINVER >= 0x0500) 506 #define DFCS_TRANSPARENT 0x800 507 #define DFCS_HOT 0x1000 508 #endif 509 #define DFCS_ADJUSTRECT 0x2000 510 #define DFCS_FLAT 0x4000 511 #define DFCS_MONO 0x8000 512 #define DST_COMPLEX 0 513 #define DST_TEXT 1 514 #define DST_PREFIXTEXT 2 515 #define DST_ICON 3 516 #define DST_BITMAP 4 517 #define DSS_NORMAL 0 518 #define DSS_UNION 16 519 #define DSS_DISABLED 32 520 #define DSS_DEFAULT 64 521 #define DSS_MONO 128 522 #define DSS_HIDEPREFIX 0x0200 523 #define DSS_PREFIXONLY 0x0400 524 #define DSS_RIGHT 0x8000 525 #define DT_BOTTOM 8 526 #define DT_CALCRECT 1024 527 #define DT_CENTER 1 528 #define DT_EDITCONTROL 8192 529 #define DT_END_ELLIPSIS 32768 530 #define DT_PATH_ELLIPSIS 16384 531 #define DT_WORD_ELLIPSIS 0x40000 532 #define DT_EXPANDTABS 64 533 #define DT_EXTERNALLEADING 512 534 #define DT_LEFT 0 535 #define DT_MODIFYSTRING 65536 536 #define DT_NOCLIP 256 537 #define DT_NOPREFIX 2048 538 #define DT_RIGHT 2 539 #define DT_RTLREADING 131072 540 #define DT_SINGLELINE 32 541 #define DT_TABSTOP 128 542 #define DT_TOP 0 543 #define DT_VCENTER 4 544 #define DT_WORDBREAK 16 545 #define DT_INTERNAL 4096 546 #define DT_NOFULLWIDTHCHARBREAK 524288 547 #define DT_HIDEPREFIX 1048576 548 #define DT_PREFIXONLY 2097152 549 #define WB_ISDELIMITER 2 550 #define WB_LEFT 0 551 #define WB_RIGHT 1 552 #define SB_HORZ 0 553 #define SB_VERT 1 554 #define SB_CTL 2 555 #define SB_BOTH 3 556 #define ESB_DISABLE_BOTH 3 557 #define ESB_DISABLE_DOWN 2 558 #define ESB_DISABLE_LEFT 1 559 #define ESB_DISABLE_LTUP 1 560 #define ESB_DISABLE_RIGHT 2 561 #define ESB_DISABLE_RTDN 2 562 #define ESB_DISABLE_UP 1 563 #define ESB_ENABLE_BOTH 0 564 #define SB_LINEUP 0 565 #define SB_LINEDOWN 1 566 #define SB_LINELEFT 0 567 #define SB_LINERIGHT 1 568 #define SB_PAGEUP 2 569 #define SB_PAGEDOWN 3 570 #define SB_PAGELEFT 2 571 #define SB_PAGERIGHT 3 572 #define SB_THUMBPOSITION 4 573 #define SB_THUMBTRACK 5 574 #define SB_ENDSCROLL 8 575 #define SB_LEFT 6 576 #define SB_RIGHT 7 577 #define SB_BOTTOM 7 578 #define SB_TOP 6 579 580 #define IS_INTRESOURCE(i) (((ULONG_PTR)(i) >> 16) == 0) 581 #define MAKEINTRESOURCEA(i) ((LPSTR)(ULONG_PTR)LOWORD(i)) 582 #define MAKEINTRESOURCEW(i) ((LPWSTR)(ULONG_PTR)LOWORD(i)) 583 584 #ifndef RC_INVOKED 585 #ifdef WINE_NO_UNICODE_MACROS /* force using a cast */ 586 #define MAKEINTRESOURCE(i) ((ULONG_PTR)((WORD)(i))) 587 #else 588 #ifdef UNICODE 589 #define MAKEINTRESOURCE MAKEINTRESOURCEW 590 #else 591 #define MAKEINTRESOURCE MAKEINTRESOURCEA 592 #endif /* UNICODE */ 593 #endif /* WINE_NO_UNICODE_MACROS */ 594 #endif /* !RC_INVOKED */ 595 596 597 #ifndef NORESOURCE 598 599 #define RT_CURSOR MAKEINTRESOURCE(1) 600 #define RT_BITMAP MAKEINTRESOURCE(2) 601 #define RT_ICON MAKEINTRESOURCE(3) 602 #define RT_MENU MAKEINTRESOURCE(4) 603 #define RT_DIALOG MAKEINTRESOURCE(5) 604 #define RT_STRING MAKEINTRESOURCE(6) 605 #define RT_FONTDIR MAKEINTRESOURCE(7) 606 #define RT_FONT MAKEINTRESOURCE(8) 607 #define RT_ACCELERATOR MAKEINTRESOURCE(9) 608 #define RT_RCDATA MAKEINTRESOURCE(10) 609 #define RT_MESSAGETABLE MAKEINTRESOURCE(11) 610 #define DIFFERENCE 11 611 #define RT_GROUP_CURSOR MAKEINTRESOURCE((ULONG_PTR)RT_CURSOR+DIFFERENCE) 612 #define RT_GROUP_ICON MAKEINTRESOURCE((ULONG_PTR)RT_ICON+DIFFERENCE) 613 #define RT_VERSION MAKEINTRESOURCE(16) 614 #define RT_DLGINCLUDE MAKEINTRESOURCE(17) 615 #define RT_PLUGPLAY MAKEINTRESOURCE(19) 616 #define RT_VXD MAKEINTRESOURCE(20) 617 #define RT_ANICURSOR MAKEINTRESOURCE(21) 618 #define RT_ANIICON MAKEINTRESOURCE(22) 619 #define RT_HTML MAKEINTRESOURCE(23) 620 #ifndef RC_INVOKED 621 #define RT_MANIFEST MAKEINTRESOURCE(24) 622 #define CREATEPROCESS_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1) 623 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(2) 624 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(3) 625 #else 626 #define RT_MANIFEST 24 627 #define CREATEPROCESS_MANIFEST_RESOURCE_ID 1 628 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2 629 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID 3 630 #endif /* !RC_INVOKED */ 631 632 #endif /* !NORESOURCE */ 633 634 635 #define EWX_FORCE 0x00000004 636 #define EWX_LOGOFF 0 637 #define EWX_POWEROFF 0x00000008 638 #define EWX_REBOOT 0x00000002 639 #define EWX_SHUTDOWN 0x00000001 640 #if (_WIN32_WINNT >= 0x0500) 641 #define EWX_FORCEIFHUNG 0x00000010 642 #endif 643 #if (_WIN32_WINNT > 0x06010000) 644 #define EWX_HYBRID_SHUTDOWN 0x00400000 645 #endif 646 #define CS_BYTEALIGNCLIENT 4096 647 #define CS_BYTEALIGNWINDOW 8192 648 #define CS_KEYCVTWINDOW 4 649 #define CS_NOKEYCVT 256 // Class Name to Version 650 #define CS_CLASSDC 64 651 #define CS_DBLCLKS 8 652 #define CS_GLOBALCLASS 16384 653 #define CS_HREDRAW 2 654 #define CS_NOCLOSE 512 655 #define CS_OWNDC 32 656 #define CS_PARENTDC 128 657 #define CS_SAVEBITS 2048 658 #define CS_VREDRAW 1 659 #define CS_IME 0x10000 660 #define CS_DROPSHADOW 0x20000 661 #define GCW_ATOM (-32) 662 #define GCL_CBCLSEXTRA (-20) 663 #define GCL_CBWNDEXTRA (-18) 664 #define GCL_HBRBACKGROUND (-10) 665 #define GCL_HCURSOR (-12) 666 #define GCL_HICON (-14) 667 #define GCL_HICONSM (-34) 668 #define GCL_HMODULE (-16) 669 #define GCL_MENUNAME (-8) 670 #define GCL_STYLE (-26) 671 #define GCL_WNDPROC (-24) 672 #define GCLP_HBRBACKGROUND (-10) 673 #define GCLP_HCURSOR (-12) 674 #define GCLP_HICON (-14) 675 #define GCLP_HICONSM (-34) 676 #define GCLP_HMODULE (-16) 677 #define GCLP_MENUNAME (-8) 678 #define GCLP_WNDPROC (-24) 679 #if 0 680 /* This is supposed to be defined by the program using it not defined 681 in the w32api headers. I've left it here for documentation purposes. 682 */ 683 #ifndef IDC_STATIC /* May be predefined by resource compiler. */ 684 #define IDC_STATIC (-1) 685 #endif 686 #endif 687 #define IDC_ARROW MAKEINTRESOURCE(32512) 688 #define IDC_IBEAM MAKEINTRESOURCE(32513) 689 #define IDC_WAIT MAKEINTRESOURCE(32514) 690 #define IDC_CROSS MAKEINTRESOURCE(32515) 691 #define IDC_UPARROW MAKEINTRESOURCE(32516) 692 #define IDC_SIZENWSE MAKEINTRESOURCE(32642) 693 #define IDC_SIZENESW MAKEINTRESOURCE(32643) 694 #define IDC_SIZEWE MAKEINTRESOURCE(32644) 695 #define IDC_SIZENS MAKEINTRESOURCE(32645) 696 #define IDC_SIZEALL MAKEINTRESOURCE(32646) 697 #define IDC_NO MAKEINTRESOURCE(32648) 698 #define IDC_HAND MAKEINTRESOURCE(32649) 699 #define IDC_APPSTARTING MAKEINTRESOURCE(32650) 700 #define IDC_HELP MAKEINTRESOURCE(32651) 701 #define IDC_ICON MAKEINTRESOURCE(32641) 702 #define IDC_SIZE MAKEINTRESOURCE(32640) 703 #ifndef RC_INVOKED 704 #define IDI_APPLICATION MAKEINTRESOURCE(32512) 705 #define IDI_HAND MAKEINTRESOURCE(32513) 706 #define IDI_QUESTION MAKEINTRESOURCE(32514) 707 #define IDI_EXCLAMATION MAKEINTRESOURCE(32515) 708 #define IDI_ASTERISK MAKEINTRESOURCE(32516) 709 #define IDI_WINLOGO MAKEINTRESOURCE(32517) 710 #else 711 #define IDI_APPLICATION 32512 712 #define IDI_HAND 32513 713 #define IDI_QUESTION 32514 714 #define IDI_EXCLAMATION 32515 715 #define IDI_ASTERISK 32516 716 #define IDI_WINLOGO 32517 717 #endif 718 #define IDI_WARNING IDI_EXCLAMATION 719 #define IDI_ERROR IDI_HAND 720 #define IDI_INFORMATION IDI_ASTERISK 721 #define MIIM_STATE 1 722 #define MIIM_ID 2 723 #define MIIM_SUBMENU 4 724 #define MIIM_CHECKMARKS 8 725 #define MIIM_TYPE 16 726 #define MIIM_DATA 32 727 #define MIIM_STRING 64 728 #define MIIM_BITMAP 128 729 #define MIIM_FTYPE 256 730 #if (WINVER >= 0x0500) 731 #define MIM_MAXHEIGHT 1 732 #define MIM_BACKGROUND 2 733 #define MIM_HELPID 4 734 #define MIM_MENUDATA 8 735 #define MIM_STYLE 16 736 #define MIM_APPLYTOSUBMENUS 0x80000000L 737 #endif 738 #define MFT_BITMAP 4 739 #define MFT_MENUBARBREAK 32 740 #define MFT_MENUBREAK 64 741 #define MFT_OWNERDRAW 256 742 #define MFT_RADIOCHECK 512 743 #define MFT_RIGHTJUSTIFY 0x4000 744 #define MFT_SEPARATOR 0x800 745 #define MFT_RIGHTORDER 0x2000L 746 #define MFT_STRING 0 747 #define MFS_CHECKED 8 748 #define MFS_DEFAULT 4096 749 #define MFS_DISABLED 3 750 #define MFS_ENABLED 0 751 #define MFS_GRAYED 3 752 #define MFS_HILITE 128 753 #define MFS_UNCHECKED 0 754 #define MFS_UNHILITE 0 755 #define MNS_NOCHECK 0x80000000 756 #define MNS_MODELESS 0x40000000 757 #define MNS_DRAGDROP 0x20000000 758 #define MNS_AUTODISMISS 0x10000000 759 #define MNS_NOTIFYBYPOS 0x08000000 760 #define MNS_CHECKORBMP 0x04000000 761 #define GW_HWNDNEXT 2 762 #define GW_HWNDPREV 3 763 #define GW_CHILD 5 764 #define GW_HWNDFIRST 0 765 #define GW_HWNDLAST 1 766 #define GW_OWNER 4 767 #define GW_ENABLEDPOPUP 6 768 #define SW_HIDE 0 769 #define SW_NORMAL 1 770 #define SW_SHOWNORMAL 1 771 #define SW_SHOWMINIMIZED 2 772 #define SW_MAXIMIZE 3 773 #define SW_SHOWMAXIMIZED 3 774 #define SW_SHOWNOACTIVATE 4 775 #define SW_SHOW 5 776 #define SW_MINIMIZE 6 777 #define SW_SHOWMINNOACTIVE 7 778 #define SW_SHOWNA 8 779 #define SW_RESTORE 9 780 #define SW_SHOWDEFAULT 10 781 #define SW_FORCEMINIMIZE 11 782 #define SW_MAX 11 783 #define MB_USERICON 128 784 #define MB_ICONASTERISK 64 785 #define MB_ICONEXCLAMATION 0x30 786 #define MB_ICONWARNING 0x30 787 #define MB_ICONERROR 16 788 #define MB_ICONHAND 16 789 #define MB_ICONQUESTION 32 790 #define MB_OK 0 791 #define MB_ABORTRETRYIGNORE 2 792 #define MB_APPLMODAL 0 793 #define MB_DEFAULT_DESKTOP_ONLY 0x20000 794 #define MB_HELP 0x4000 795 #define MB_RIGHT 0x80000 796 #define MB_RTLREADING 0x100000 797 #define MB_TOPMOST 0x40000 798 #define MB_DEFBUTTON1 0 799 #define MB_DEFBUTTON2 256 800 #define MB_DEFBUTTON3 512 801 #define MB_DEFBUTTON4 0x300 802 #define MB_ICONINFORMATION 64 803 #define MB_ICONSTOP 16 804 #define MB_OKCANCEL 1 805 #define MB_RETRYCANCEL 5 806 #ifdef _WIN32_WINNT 807 #if (_WIN32_WINNT >= 0x0400) 808 #define MB_SERVICE_NOTIFICATION 0x00200000 809 #else 810 #define MB_SERVICE_NOTIFICATION 0x00040000 811 #endif 812 #define MB_SERVICE_NOTIFICATION_NT3X 0x00040000 813 #endif 814 #define MB_SETFOREGROUND 0x10000 815 #define MB_SYSTEMMODAL 4096 816 #define MB_TASKMODAL 0x2000 817 #define MB_YESNO 4 818 #define MB_YESNOCANCEL 3 819 #define MB_ICONMASK 240 820 #define MB_DEFMASK 3840 821 #define MB_MODEMASK 0x00003000 822 #define MB_MISCMASK 0x0000C000 823 #define MB_NOFOCUS 0x00008000 824 #define MB_TYPEMASK 15 825 #define MB_TOPMOST 0x40000 826 #if (WINVER >= 0x0500) 827 #define MB_CANCELTRYCONTINUE 6 828 #endif 829 830 #define IDOK 1 831 #define IDCANCEL 2 832 #define IDABORT 3 833 #define IDRETRY 4 834 #define IDIGNORE 5 835 #define IDYES 6 836 #define IDNO 7 837 #if (WINVER >= 0x0400) 838 #define IDCLOSE 8 839 #define IDHELP 9 840 #endif 841 #if (WINVER >= 0x0500) 842 #define IDTRYAGAIN 10 843 #define IDCONTINUE 11 844 #endif 845 #if (WINVER >= 0x0501) 846 #ifndef IDTIMEOUT 847 #define IDTIMEOUT 32000 848 #endif 849 #endif 850 851 #define GWL_EXSTYLE (-20) 852 #define GWL_STYLE (-16) 853 #define GWL_WNDPROC (-4) 854 #define GWLP_WNDPROC (-4) 855 #define GWL_HINSTANCE (-6) 856 #define GWLP_HINSTANCE (-6) 857 #define GWL_HWNDPARENT (-8) 858 #define GWLP_HWNDPARENT (-8) 859 #define GWL_ID (-12) 860 #define GWLP_ID (-12) 861 #define GWL_USERDATA (-21) 862 #define GWLP_USERDATA (-21) 863 864 #ifndef __REACTOS__ // NEVER USE THESE! 865 #define DWL_MSGRESULT 0 866 #define DWL_DLGPROC 4 867 #define DWL_USER 8 868 #endif 869 870 #define DWLP_MSGRESULT 0 871 #define DWLP_DLGPROC (DWLP_MSGRESULT + sizeof(LRESULT)) 872 #define DWLP_USER (DWLP_DLGPROC + sizeof(DLGPROC)) 873 874 #define QS_KEY 1 875 #define QS_MOUSEMOVE 2 876 #define QS_MOUSEBUTTON 4 877 #define QS_POSTMESSAGE 8 878 #define QS_TIMER 16 879 #define QS_PAINT 32 880 #define QS_SENDMESSAGE 64 881 #define QS_HOTKEY 128 882 #define QS_ALLPOSTMESSAGE 256 883 884 #if (_WIN32_WINNT >= 0x0501) 885 #define QS_RAWINPUT 1024 886 #endif 887 #if (_WIN32_WINNT >= 0x0602) 888 #define QS_TOUCH 2048 889 #define QS_POINTER 4096 890 #endif 891 892 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON) 893 894 #if (_WIN32_WINNT >= 0x0602) 895 #define QS_INPUT (QS_KEY | QS_MOUSE | QS_RAWINPUT | QS_TOUCH | QS_POINTER) 896 #elif (_WIN32_WINNT >= 0x0501) 897 #define QS_INPUT (QS_KEY | QS_MOUSE | QS_RAWINPUT) 898 #else 899 #define QS_INPUT (QS_KEY | QS_MOUSE) 900 #endif 901 902 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY) 903 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE) 904 905 #define USER_TIMER_MAXIMUM 2147483647 906 #define USER_TIMER_MINIMUM 10 907 908 #define MWMO_WAITALL 1 909 #define MWMO_ALERTABLE 2 910 #define MWMO_INPUTAVAILABLE 4 911 912 #define COLOR_SCROLLBAR 0 913 #define COLOR_BACKGROUND 1 914 #define COLOR_DESKTOP COLOR_BACKGROUND 915 #define COLOR_ACTIVECAPTION 2 916 #define COLOR_INACTIVECAPTION 3 917 #define COLOR_MENU 4 918 #define COLOR_WINDOW 5 919 #define COLOR_WINDOWFRAME 6 920 #define COLOR_MENUTEXT 7 921 #define COLOR_WINDOWTEXT 8 922 #define COLOR_CAPTIONTEXT 9 923 #define COLOR_ACTIVEBORDER 10 924 #define COLOR_INACTIVEBORDER 11 925 #define COLOR_APPWORKSPACE 12 926 #define COLOR_HIGHLIGHT 13 927 #define COLOR_HIGHLIGHTTEXT 14 928 #define COLOR_BTNFACE 15 929 #define COLOR_3DFACE COLOR_BTNFACE 930 #define COLOR_BTNSHADOW 16 931 #define COLOR_3DSHADOW COLOR_BTNSHADOW 932 #define COLOR_GRAYTEXT 17 933 #define COLOR_BTNTEXT 18 934 #define COLOR_INACTIVECAPTIONTEXT 19 935 #define COLOR_BTNHIGHLIGHT 20 936 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT 937 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT 938 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT 939 #define COLOR_3DDKSHADOW 21 940 #define COLOR_3DLIGHT 22 941 #define COLOR_INFOTEXT 23 942 #define COLOR_INFOBK 24 943 #define COLOR_HOTLIGHT 26 944 #define COLOR_GRADIENTACTIVECAPTION 27 945 #define COLOR_GRADIENTINACTIVECAPTION 28 946 #if WINVER >= 0x0501 947 #define COLOR_MENUHILIGHT 29 948 #define COLOR_MENUBAR 30 949 #endif 950 951 #define CTLCOLOR_MSGBOX 0 952 #define CTLCOLOR_EDIT 1 953 #define CTLCOLOR_LISTBOX 2 954 #define CTLCOLOR_BTN 3 955 #define CTLCOLOR_DLG 4 956 #define CTLCOLOR_SCROLLBAR 5 957 #define CTLCOLOR_STATIC 6 958 #define CTLCOLOR_MAX 7 959 #define SM_CXSCREEN 0 960 #define SM_CYSCREEN 1 961 #define SM_CXVSCROLL 2 962 #define SM_CYHSCROLL 3 963 #define SM_CYCAPTION 4 964 #define SM_CXBORDER 5 965 #define SM_CYBORDER 6 966 #define SM_CXDLGFRAME 7 967 #define SM_CXFIXEDFRAME 7 968 #define SM_CYDLGFRAME 8 969 #define SM_CYFIXEDFRAME 8 970 #define SM_CYVTHUMB 9 971 #define SM_CXHTHUMB 10 972 #define SM_CXICON 11 973 #define SM_CYICON 12 974 #define SM_CXCURSOR 13 975 #define SM_CYCURSOR 14 976 #define SM_CYMENU 15 977 #define SM_CXFULLSCREEN 16 978 #define SM_CYFULLSCREEN 17 979 #define SM_CYKANJIWINDOW 18 980 #define SM_MOUSEPRESENT 19 981 #define SM_CYVSCROLL 20 982 #define SM_CXHSCROLL 21 983 #define SM_DEBUG 22 984 #define SM_SWAPBUTTON 23 985 #define SM_RESERVED1 24 986 #define SM_RESERVED2 25 987 #define SM_RESERVED3 26 988 #define SM_RESERVED4 27 989 #define SM_CXMIN 28 990 #define SM_CYMIN 29 991 #define SM_CXSIZE 30 992 #define SM_CYSIZE 31 993 #define SM_CXSIZEFRAME 32 994 #define SM_CXFRAME 32 995 #define SM_CYSIZEFRAME 33 996 #define SM_CYFRAME 33 997 #define SM_CXMINTRACK 34 998 #define SM_CYMINTRACK 35 999 #define SM_CXDOUBLECLK 36 1000 #define SM_CYDOUBLECLK 37 1001 #define SM_CXICONSPACING 38 1002 #define SM_CYICONSPACING 39 1003 #define SM_MENUDROPALIGNMENT 40 1004 #define SM_PENWINDOWS 41 1005 #define SM_DBCSENABLED 42 1006 #define SM_CMOUSEBUTTONS 43 1007 #define SM_SECURE 44 1008 #define SM_CXEDGE 45 1009 #define SM_CYEDGE 46 1010 #define SM_CXMINSPACING 47 1011 #define SM_CYMINSPACING 48 1012 #define SM_CXSMICON 49 1013 #define SM_CYSMICON 50 1014 #define SM_CYSMCAPTION 51 1015 #define SM_CXSMSIZE 52 1016 #define SM_CYSMSIZE 53 1017 #define SM_CXMENUSIZE 54 1018 #define SM_CYMENUSIZE 55 1019 #define SM_ARRANGE 56 1020 #define SM_CXMINIMIZED 57 1021 #define SM_CYMINIMIZED 58 1022 #define SM_CXMAXTRACK 59 1023 #define SM_CYMAXTRACK 60 1024 #define SM_CXMAXIMIZED 61 1025 #define SM_CYMAXIMIZED 62 1026 #define SM_NETWORK 63 1027 #define SM_CLEANBOOT 67 1028 #define SM_CXDRAG 68 1029 #define SM_CYDRAG 69 1030 #define SM_SHOWSOUNDS 70 1031 #define SM_CXMENUCHECK 71 1032 #define SM_CYMENUCHECK 72 1033 #define SM_SLOWMACHINE 73 1034 #define SM_MIDEASTENABLED 74 1035 #define SM_MOUSEWHEELPRESENT 75 1036 #define SM_XVIRTUALSCREEN 76 1037 #define SM_YVIRTUALSCREEN 77 1038 #define SM_CXVIRTUALSCREEN 78 1039 #define SM_CYVIRTUALSCREEN 79 1040 #define SM_CMONITORS 80 1041 #define SM_SAMEDISPLAYFORMAT 81 1042 #if(_WIN32_WINNT >= 0x0500) 1043 #define SM_IMMENABLED 82 1044 #endif /* _WIN32_WINNT >= 0x0500 */ 1045 #if (_WIN32_WINNT >= 0x0501) 1046 #define SM_CXFOCUSBORDER 83 1047 #define SM_CYFOCUSBORDER 84 1048 #define SM_TABLETPC 86 1049 #define SM_MEDIACENTER 87 1050 #define SM_STARTER 88 1051 #define SM_SERVERR2 89 1052 #endif /* _WIN32_WINNT >= 0x0501 */ 1053 #if (_WIN32_WINNT >= 0x0600) 1054 #define SM_MOUSEHORIZONTALWHEELPRESENT 91 1055 #define SM_CXPADDEDBORDER 92 1056 #endif /* _WIN32_WINNT >= 0x0600 */ 1057 1058 #define SM_REMOTESESSION 0x1000 1059 #if (_WIN32_WINNT >= 0x0501) 1060 #define SM_SHUTTINGDOWN 0x2000 1061 #define SM_REMOTECONTROL 0x2001 1062 #endif /* _WIN32_WINNT >= 0x0501 */ 1063 1064 #if (WINVER < 0x0500) && ((_WIN32_WINNT < 0x0400) || !defined(_WIN32_WINNT)) 1065 #define SM_CMETRICS 76 1066 #elif (WINVER == 0x500) 1067 #define SM_CMETRICS 83 1068 #elif (WINVER == 0x501) 1069 #define SM_CMETRICS 90 1070 #else 1071 #define SM_CMETRICS 93 1072 #endif 1073 1074 #define ARW_BOTTOMLEFT 0 1075 #define ARW_BOTTOMRIGHT 1 1076 #define ARW_HIDE 8 1077 #define ARW_TOPLEFT 2 1078 #define ARW_TOPRIGHT 3 1079 #define ARW_DOWN 4 1080 #define ARW_LEFT 0 1081 #define ARW_RIGHT 0 1082 #define ARW_UP 4 1083 #define UOI_FLAGS 1 1084 #define UOI_NAME 2 1085 #define UOI_TYPE 3 1086 #define UOI_USER_SID 4 1087 #define LR_DEFAULTCOLOR 0 1088 #define LR_MONOCHROME 1 1089 #define LR_COLOR 2 1090 #define LR_COPYRETURNORG 4 1091 #define LR_COPYDELETEORG 8 1092 #define LR_LOADFROMFILE 16 1093 #define LR_LOADTRANSPARENT 32 1094 #define LR_DEFAULTSIZE 64 1095 #define LR_LOADREALSIZE 128 1096 #define LR_VGACOLOR 128 1097 #define LR_LOADMAP3DCOLORS 4096 1098 #define LR_CREATEDIBSECTION 8192 1099 #define LR_COPYFROMRESOURCE 0x4000 1100 #define LR_SHARED 32768 1101 #define KEYEVENTF_EXTENDEDKEY 0x00000001 1102 #define KEYEVENTF_KEYUP 00000002 1103 #if (_WIN32_WINNT >= 0x0500) 1104 #define KEYEVENTF_UNICODE 0x00000004 1105 #define KEYEVENTF_SCANCODE 0x00000008 1106 #endif 1107 1108 #ifdef OEMRESOURCE 1109 #define OBM_TRTYPE 32732 1110 #define OBM_LFARROWI 32734 1111 #define OBM_RGARROWI 32735 1112 #define OBM_DNARROWI 32736 1113 #define OBM_UPARROWI 32737 1114 #define OBM_COMBO 32738 1115 #define OBM_MNARROW 32739 1116 #define OBM_LFARROWD 32740 1117 #define OBM_RGARROWD 32741 1118 #define OBM_DNARROWD 32742 1119 #define OBM_UPARROWD 32743 1120 #define OBM_RESTORED 32744 1121 #define OBM_ZOOMD 32745 1122 #define OBM_REDUCED 32746 1123 #define OBM_RESTORE 32747 1124 #define OBM_ZOOM 32748 1125 #define OBM_REDUCE 32749 1126 #define OBM_LFARROW 32750 1127 #define OBM_RGARROW 32751 1128 #define OBM_DNARROW 32752 1129 #define OBM_UPARROW 32753 1130 #define OBM_CLOSE 32754 1131 #define OBM_OLD_RESTORE 32755 1132 #define OBM_OLD_ZOOM 32756 1133 #define OBM_OLD_REDUCE 32757 1134 #define OBM_BTNCORNERS 32758 1135 #define OBM_CHECKBOXES 32759 1136 #define OBM_CHECK 32760 1137 #define OBM_BTSIZE 32761 1138 #define OBM_OLD_LFARROW 32762 1139 #define OBM_OLD_RGARROW 32763 1140 #define OBM_OLD_DNARROW 32764 1141 #define OBM_OLD_UPARROW 32765 1142 #define OBM_SIZE 32766 1143 #define OBM_OLD_CLOSE 32767 1144 #define OCR_NORMAL 32512 1145 #define OCR_IBEAM 32513 1146 #define OCR_WAIT 32514 1147 #define OCR_CROSS 32515 1148 #define OCR_UP 32516 1149 #define OCR_SIZE 32640 1150 #define OCR_ICON 32641 1151 #define OCR_SIZENWSE 32642 1152 #define OCR_SIZENESW 32643 1153 #define OCR_SIZEWE 32644 1154 #define OCR_SIZENS 32645 1155 #define OCR_SIZEALL 32646 1156 #define OCR_NO 32648 1157 #define OCR_HAND 32649 1158 #define OCR_APPSTARTING 32650 1159 #define OCR_HELP 32651 1160 #define OIC_SAMPLE 32512 1161 #define OIC_HAND 32513 1162 #define OIC_QUES 32514 1163 #define OIC_BANG 32515 1164 #define OIC_NOTE 32516 1165 #define OIC_WINLOGO 32517 1166 #define OIC_WARNING OIC_BANG 1167 #define OIC_ERROR OIC_HAND 1168 #define OIC_INFORMATION OIC_NOTE 1169 #endif /* OEMRESOURCE */ 1170 1171 #define HELPINFO_MENUITEM 2 1172 #define HELPINFO_WINDOW 1 1173 #define MSGF_DIALOGBOX 0 1174 #define MSGF_MESSAGEBOX 1 1175 #define MSGF_MENU 2 1176 #define MSGF_MOVE 3 1177 #define MSGF_SIZE 4 1178 #define MSGF_SCROLLBAR 5 1179 #define MSGF_NEXTWINDOW 6 1180 #define MSGF_MAINLOOP 8 1181 #define MSGF_USER 4096 1182 #define MSGF_MAX 8 1183 #define MOUSEEVENTF_MOVE 0x0001 1184 #define MOUSEEVENTF_LEFTDOWN 0x0002 1185 #define MOUSEEVENTF_LEFTUP 0x0004 1186 #define MOUSEEVENTF_RIGHTDOWN 0x0008 1187 #define MOUSEEVENTF_RIGHTUP 0x0010 1188 #define MOUSEEVENTF_MIDDLEDOWN 0x0020 1189 #define MOUSEEVENTF_MIDDLEUP 0x0040 1190 #define MOUSEEVENTF_XDOWN 0x0080 1191 #define MOUSEEVENTF_XUP 0x0100 1192 #define MOUSEEVENTF_WHEEL 0x0800 1193 #define MOUSEEVENTF_VIRTUALDESK 0x4000 1194 #define MOUSEEVENTF_ABSOLUTE 0x8000 1195 #define PM_NOREMOVE 0 1196 #define PM_REMOVE 1 1197 #define PM_NOYIELD 2 1198 #if (WINVER >= 0x0500) 1199 # define PM_QS_INPUT (QS_INPUT << 16) 1200 # define PM_QS_POSTMESSAGE ((QS_POSTMESSAGE|QS_HOTKEY|QS_TIMER) << 16) 1201 # define PM_QS_PAINT (QS_PAINT << 16) 1202 # define PM_QS_SENDMESSAGE (QS_SENDMESSAGE << 16) 1203 #endif 1204 #define HWND_BROADCAST ((HWND)0xffff) 1205 #define HWND_BOTTOM ((HWND)1) 1206 #define HWND_NOTOPMOST ((HWND)(-2)) 1207 #define HWND_TOP ((HWND)0) 1208 #define HWND_TOPMOST ((HWND)(-1)) 1209 #define HWND_DESKTOP (HWND)0 1210 #define HWND_MESSAGE ((HWND)(-3)) /* w2k */ 1211 #define RDW_ERASE 4 1212 #define RDW_FRAME 1024 1213 #define RDW_INTERNALPAINT 2 1214 #define RDW_INVALIDATE 1 1215 #define RDW_NOERASE 32 1216 #define RDW_NOFRAME 2048 1217 #define RDW_NOINTERNALPAINT 16 1218 #define RDW_VALIDATE 8 1219 #define RDW_ERASENOW 512 1220 #define RDW_UPDATENOW 256 1221 #define RDW_ALLCHILDREN 128 1222 #define RDW_NOCHILDREN 64 1223 #define SMTO_ABORTIFHUNG 2 1224 #define SMTO_BLOCK 1 1225 #define SMTO_NORMAL 0 1226 #if (WINVER >= 0x0500) 1227 #define SMTO_NOTIMEOUTIFNOTHUNG 8 1228 #endif 1229 #if (WINVER >= 0x0600) 1230 #define SMTO_ERRORONEXIT 32 1231 #endif 1232 #define SIF_ALL 23 1233 #define SIF_PAGE 2 1234 #define SIF_POS 4 1235 #define SIF_RANGE 1 1236 #define SIF_DISABLENOSCROLL 8 1237 #define SIF_TRACKPOS 16 1238 #define SIF_THEMED 128 /* REACTOS Specific Only */ 1239 #define SWP_DRAWFRAME 32 1240 #define SWP_FRAMECHANGED 32 1241 #define SWP_HIDEWINDOW 128 1242 #define SWP_NOACTIVATE 16 1243 #define SWP_NOCOPYBITS 256 1244 #define SWP_NOMOVE 2 1245 #define SWP_NOSIZE 1 1246 #define SWP_NOREDRAW 8 1247 #define SWP_NOZORDER 4 1248 #define SWP_SHOWWINDOW 64 1249 #define SWP_NOOWNERZORDER 512 1250 #define SWP_NOREPOSITION 512 1251 #define SWP_NOSENDCHANGING 1024 1252 #define SWP_DEFERERASE 8192 1253 #define SWP_ASYNCWINDOWPOS 16384 1254 1255 #define HSHELL_WINDOWCREATED 1 1256 #define HSHELL_WINDOWDESTROYED 2 1257 #define HSHELL_ACTIVATESHELLWINDOW 3 1258 #if(WINVER >= 0x0400) 1259 #define HSHELL_WINDOWACTIVATED 4 1260 #define HSHELL_GETMINRECT 5 1261 #define HSHELL_REDRAW 6 1262 #define HSHELL_TASKMAN 7 1263 #define HSHELL_LANGUAGE 8 1264 #define HSHELL_SYSMENU 9 1265 #define HSHELL_ENDTASK 10 1266 #endif /* WINVER >= 0x0400 */ 1267 #if(_WIN32_WINNT >= 0x0500) 1268 #define HSHELL_ACCESSIBILITYSTATE 11 1269 #define ACCESS_STICKYKEYS 0x01 1270 #define ACCESS_FILTERKEYS 0x02 1271 #define ACCESS_MOUSEKEYS 0x03 1272 #define HSHELL_APPCOMMAND 12 1273 #endif /* _WIN32_WINNT >= 0x0500 */ 1274 #if(_WIN32_WINNT >= 0x0501) 1275 #define HSHELL_WINDOWREPLACED 13 1276 #define HSHELL_WINDOWREPLACING 14 1277 #endif /* _WIN32_WINNT >= 0x0501 */ 1278 1279 #define HSHELL_HIGHBIT 0x8000 1280 #define HSHELL_FLASH (HSHELL_REDRAW|HSHELL_HIGHBIT) 1281 #define HSHELL_RUDEAPPACTIVATED (HSHELL_WINDOWACTIVATED|HSHELL_HIGHBIT) 1282 1283 #if(_WIN32_WINNT >= 0x0500) 1284 #define APPCOMMAND_BROWSER_BACKWARD 1 1285 #define APPCOMMAND_BROWSER_FORWARD 2 1286 #define APPCOMMAND_BROWSER_REFRESH 3 1287 #define APPCOMMAND_BROWSER_STOP 4 1288 #define APPCOMMAND_BROWSER_SEARCH 5 1289 #define APPCOMMAND_BROWSER_FAVORITES 6 1290 #define APPCOMMAND_BROWSER_HOME 7 1291 #define APPCOMMAND_VOLUME_MUTE 8 1292 #define APPCOMMAND_VOLUME_DOWN 9 1293 #define APPCOMMAND_VOLUME_UP 10 1294 #define APPCOMMAND_MEDIA_NEXTTRACK 11 1295 #define APPCOMMAND_MEDIA_PREVIOUSTRACK 12 1296 #define APPCOMMAND_MEDIA_STOP 13 1297 #define APPCOMMAND_MEDIA_PLAY_PAUSE 14 1298 #define APPCOMMAND_LAUNCH_MAIL 15 1299 #define APPCOMMAND_LAUNCH_MEDIA_SELECT 16 1300 #define APPCOMMAND_LAUNCH_APP1 17 1301 #define APPCOMMAND_LAUNCH_APP2 18 1302 #define APPCOMMAND_BASS_DOWN 19 1303 #define APPCOMMAND_BASS_BOOST 20 1304 #define APPCOMMAND_BASS_UP 21 1305 #define APPCOMMAND_TREBLE_DOWN 22 1306 #define APPCOMMAND_TREBLE_UP 23 1307 #if( _WIN32_WINNT >= 0x0501 ) 1308 #define APPCOMMAND_MICROPHONE_VOLUME_MUTE 24 1309 #define APPCOMMAND_MICROPHONE_VOLUME_DOWN 25 1310 #define APPCOMMAND_MICROPHONE_VOLUME_UP 26 1311 #define APPCOMMAND_HELP 27 1312 #define APPCOMMAND_FIND 28 1313 #define APPCOMMAND_NEW 29 1314 #define APPCOMMAND_OPEN 30 1315 #define APPCOMMAND_CLOSE 31 1316 #define APPCOMMAND_SAVE 32 1317 #define APPCOMMAND_PRINT 33 1318 #define APPCOMMAND_UNDO 34 1319 #define APPCOMMAND_REDO 35 1320 #define APPCOMMAND_COPY 36 1321 #define APPCOMMAND_CUT 37 1322 #define APPCOMMAND_PASTE 38 1323 #define APPCOMMAND_REPLY_TO_MAIL 39 1324 #define APPCOMMAND_FORWARD_MAIL 40 1325 #define APPCOMMAND_SEND_MAIL 41 1326 #define APPCOMMAND_SPELL_CHECK 42 1327 #define APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE 43 1328 #define APPCOMMAND_MIC_ON_OFF_TOGGLE 44 1329 #define APPCOMMAND_CORRECTION_LIST 45 1330 #define APPCOMMAND_MEDIA_PLAY 46 1331 #define APPCOMMAND_MEDIA_PAUSE 47 1332 #define APPCOMMAND_MEDIA_RECORD 48 1333 #define APPCOMMAND_MEDIA_FAST_FORWARD 49 1334 #define APPCOMMAND_MEDIA_REWIND 50 1335 #define APPCOMMAND_MEDIA_CHANNEL_UP 51 1336 #define APPCOMMAND_MEDIA_CHANNEL_DOWN 52 1337 #endif /* _WIN32_WINNT >= 0x0501 */ 1338 1339 #define FAPPCOMMAND_MOUSE 0x8000 1340 #define FAPPCOMMAND_KEY 0 1341 #define FAPPCOMMAND_OEM 0x1000 1342 #define FAPPCOMMAND_MASK 0xf000 1343 1344 #define GET_APPCOMMAND_LPARAM(lParam) ((SHORT)(HIWORD(lParam) & ~FAPPCOMMAND_MASK)) 1345 #define GET_DEVICE_LPARAM(lParam) ((WORD)(HIWORD(lParam) & FAPPCOMMAND_MASK)) 1346 #define GET_MOUSEORKEY_LPARAM GET_DEVICE_LPARAM 1347 #define GET_FLAGS_LPARAM(lParam) (LOWORD(lParam)) 1348 #define GET_KEYSTATE_LPARAM(lParam) GET_FLAGS_LPARAM(lParam) 1349 #endif 1350 1351 1352 1353 #define SPI_GETBEEP 0x0001 1354 #define SPI_SETBEEP 0x0002 1355 #define SPI_GETMOUSE 0x0003 1356 #define SPI_SETMOUSE 0x0004 1357 #define SPI_GETBORDER 0x0005 1358 #define SPI_SETBORDER 0x0006 1359 #define SPI_GETKEYBOARDSPEED 0x000A 1360 #define SPI_SETKEYBOARDSPEED 0x000B 1361 #define SPI_LANGDRIVER 0x000C 1362 #define SPI_ICONHORIZONTALSPACING 0x000D 1363 #define SPI_GETSCREENSAVETIMEOUT 0x000E 1364 #define SPI_SETSCREENSAVETIMEOUT 0x000F 1365 #define SPI_GETSCREENSAVEACTIVE 0x0010 1366 #define SPI_SETSCREENSAVEACTIVE 0x0011 1367 #define SPI_GETGRIDGRANULARITY 0x0012 1368 #define SPI_SETGRIDGRANULARITY 0x0013 1369 #define SPI_SETDESKWALLPAPER 0x0014 1370 #define SPI_SETDESKPATTERN 0x0015 1371 #define SPI_GETKEYBOARDDELAY 0x0016 1372 #define SPI_SETKEYBOARDDELAY 0x0017 1373 #define SPI_ICONVERTICALSPACING 0x0018 1374 #define SPI_GETICONTITLEWRAP 0x0019 1375 #define SPI_SETICONTITLEWRAP 0x001A 1376 #define SPI_GETMENUDROPALIGNMENT 0x001B 1377 #define SPI_SETMENUDROPALIGNMENT 0x001C 1378 #define SPI_SETDOUBLECLKWIDTH 0x001D 1379 #define SPI_SETDOUBLECLKHEIGHT 0x001E 1380 #define SPI_GETICONTITLELOGFONT 0x001F 1381 #define SPI_SETDOUBLECLICKTIME 0x0020 1382 #define SPI_SETMOUSEBUTTONSWAP 0x0021 1383 #define SPI_SETICONTITLELOGFONT 0x0022 1384 #define SPI_GETFASTTASKSWITCH 0x0023 1385 #define SPI_SETFASTTASKSWITCH 0x0024 1386 #if(WINVER >= 0x0400) 1387 #define SPI_SETDRAGFULLWINDOWS 0x0025 1388 #define SPI_GETDRAGFULLWINDOWS 0x0026 1389 #define SPI_GETNONCLIENTMETRICS 0x0029 1390 #define SPI_SETNONCLIENTMETRICS 0x002A 1391 #define SPI_GETMINIMIZEDMETRICS 0x002B 1392 #define SPI_SETMINIMIZEDMETRICS 0x002C 1393 #define SPI_GETICONMETRICS 0x002D 1394 #define SPI_SETICONMETRICS 0x002E 1395 #define SPI_SETWORKAREA 0x002F 1396 #define SPI_GETWORKAREA 0x0030 1397 #define SPI_SETPENWINDOWS 0x0031 1398 #endif 1399 #define SPI_GETFILTERKEYS 0x0032 1400 #define SPI_SETFILTERKEYS 0x0033 1401 #define SPI_GETTOGGLEKEYS 0x0034 1402 #define SPI_SETTOGGLEKEYS 0x0035 1403 #define SPI_GETMOUSEKEYS 0x0036 1404 #define SPI_SETMOUSEKEYS 0x0037 1405 #define SPI_GETSHOWSOUNDS 0x0038 1406 #define SPI_SETSHOWSOUNDS 0x0039 1407 #define SPI_GETSTICKYKEYS 0x003A 1408 #define SPI_SETSTICKYKEYS 0x003B 1409 #define SPI_GETACCESSTIMEOUT 0x003C 1410 #define SPI_SETACCESSTIMEOUT 0x003D 1411 #if(WINVER >= 0x0400) 1412 #define SPI_GETSERIALKEYS 0x003E 1413 #define SPI_SETSERIALKEYS 0x003F 1414 #endif 1415 #define SPI_GETSOUNDSENTRY 0x0040 1416 #define SPI_SETSOUNDSENTRY 0x0041 1417 #if(WINVER >= 0x0400) 1418 #define SPI_GETHIGHCONTRAST 0x0042 1419 #define SPI_SETHIGHCONTRAST 0x0043 1420 #define SPI_GETKEYBOARDPREF 0x0044 1421 #define SPI_SETKEYBOARDPREF 0x0045 1422 #define SPI_GETSCREENREADER 0x0046 1423 #define SPI_SETSCREENREADER 0x0047 1424 #define SPI_GETANIMATION 0x0048 1425 #define SPI_SETANIMATION 0x0049 1426 #define SPI_GETFONTSMOOTHING 0x004A 1427 #define SPI_SETFONTSMOOTHING 0x004B 1428 #define SPI_SETDRAGWIDTH 0x004C 1429 #define SPI_SETDRAGHEIGHT 0x004D 1430 #define SPI_SETHANDHELD 0x004E 1431 #define SPI_GETLOWPOWERTIMEOUT 0x004F 1432 #define SPI_GETPOWEROFFTIMEOUT 0x0050 1433 #define SPI_SETLOWPOWERTIMEOUT 0x0051 1434 #define SPI_SETPOWEROFFTIMEOUT 0x0052 1435 #define SPI_GETLOWPOWERACTIVE 0x0053 1436 #define SPI_GETPOWEROFFACTIVE 0x0054 1437 #define SPI_SETLOWPOWERACTIVE 0x0055 1438 #define SPI_SETPOWEROFFACTIVE 0x0056 1439 #define SPI_SETCURSORS 0x0057 1440 #define SPI_SETICONS 0x0058 1441 #define SPI_GETDEFAULTINPUTLANG 0x0059 1442 #define SPI_SETDEFAULTINPUTLANG 0x005A 1443 #define SPI_SETLANGTOGGLE 0x005B 1444 #define SPI_GETWINDOWSEXTENSION 0x005C 1445 #define SPI_SETMOUSETRAILS 0x005D 1446 #define SPI_GETMOUSETRAILS 0x005E 1447 #endif 1448 #if(_WIN32_WINNT >= 0x0400) 1449 #define SPI_GETSNAPTODEFBUTTON 0x005F 1450 #define SPI_SETSNAPTODEFBUTTON 0x0060 1451 #endif 1452 #if(WINVER >= 0x0400) 1453 #define SPI_SCREENSAVERRUNNING 0x0061 1454 #define SPI_SETSCREENSAVERRUNNING SPI_SCREENSAVERRUNNING 1455 #endif 1456 #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400) 1457 #define SPI_GETMOUSEHOVERWIDTH 0x0062 1458 #define SPI_SETMOUSEHOVERWIDTH 0x0063 1459 #define SPI_GETMOUSEHOVERHEIGHT 0x0064 1460 #define SPI_SETMOUSEHOVERHEIGHT 0x0065 1461 #define SPI_GETMOUSEHOVERTIME 0x0066 1462 #define SPI_SETMOUSEHOVERTIME 0x0067 1463 #define SPI_GETWHEELSCROLLLINES 0x0068 1464 #define SPI_SETWHEELSCROLLLINES 0x0069 1465 #define SPI_GETMENUSHOWDELAY 0x006A 1466 #define SPI_SETMENUSHOWDELAY 0x006B 1467 #if (_WIN32_WINNT >= 0x0600) 1468 #define SPI_GETWHEELSCROLLCHARS 0x006C 1469 #define SPI_SETWHEELSCROLLCHARS 0x006D 1470 #endif 1471 #define SPI_GETSHOWIMEUI 0x006E 1472 #define SPI_SETSHOWIMEUI 0x006F 1473 #endif 1474 #if(WINVER >= 0x0500) 1475 #define SPI_GETMOUSESPEED 0x0070 1476 #define SPI_SETMOUSESPEED 0x0071 1477 #define SPI_GETSCREENSAVERRUNNING 0x0072 1478 #define SPI_GETDESKWALLPAPER 0x0073 1479 #endif 1480 #if(WINVER >= 0x0600) 1481 #define SPI_GETAUDIODESCRIPTION 0x0074 1482 #define SPI_SETAUDIODESCRIPTION 0x0075 1483 #define SPI_GETSCREENSAVESECURE 0x0076 1484 #define SPI_SETSCREENSAVESECURE 0x0077 1485 #endif 1486 #if(WINVER >= 0x0500) 1487 #define SPI_GETACTIVEWINDOWTRACKING 0x1000 1488 #define SPI_SETACTIVEWINDOWTRACKING 0x1001 1489 #define SPI_GETMENUANIMATION 0x1002 1490 #define SPI_SETMENUANIMATION 0x1003 1491 #define SPI_GETCOMBOBOXANIMATION 0x1004 1492 #define SPI_SETCOMBOBOXANIMATION 0x1005 1493 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006 1494 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007 1495 #define SPI_GETGRADIENTCAPTIONS 0x1008 1496 #define SPI_SETGRADIENTCAPTIONS 0x1009 1497 #define SPI_GETKEYBOARDCUES 0x100A 1498 #define SPI_SETKEYBOARDCUES 0x100B 1499 #define SPI_GETMENUUNDERLINES SPI_GETKEYBOARDCUES 1500 #define SPI_SETMENUUNDERLINES SPI_SETKEYBOARDCUES 1501 #define SPI_GETACTIVEWNDTRKZORDER 0x100C 1502 #define SPI_SETACTIVEWNDTRKZORDER 0x100D 1503 #define SPI_GETHOTTRACKING 0x100E 1504 #define SPI_SETHOTTRACKING 0x100F 1505 #define SPI_GETMENUFADE 0x1012 1506 #define SPI_SETMENUFADE 0x1013 1507 #define SPI_GETSELECTIONFADE 0x1014 1508 #define SPI_SETSELECTIONFADE 0x1015 1509 #define SPI_GETTOOLTIPANIMATION 0x1016 1510 #define SPI_SETTOOLTIPANIMATION 0x1017 1511 #define SPI_GETTOOLTIPFADE 0x1018 1512 #define SPI_SETTOOLTIPFADE 0x1019 1513 #define SPI_GETCURSORSHADOW 0x101A 1514 #define SPI_SETCURSORSHADOW 0x101B 1515 #if(_WIN32_WINNT >= 0x0501) 1516 #define SPI_GETMOUSESONAR 0x101C 1517 #define SPI_SETMOUSESONAR 0x101D 1518 #define SPI_GETMOUSECLICKLOCK 0x101E 1519 #define SPI_SETMOUSECLICKLOCK 0x101F 1520 #define SPI_GETMOUSEVANISH 0x1020 1521 #define SPI_SETMOUSEVANISH 0x1021 1522 #define SPI_GETFLATMENU 0x1022 1523 #define SPI_SETFLATMENU 0x1023 1524 #define SPI_GETDROPSHADOW 0x1024 1525 #define SPI_SETDROPSHADOW 0x1025 1526 #define SPI_GETBLOCKSENDINPUTRESETS 0x1026 1527 #define SPI_SETBLOCKSENDINPUTRESETS 0x1027 1528 #endif 1529 #define SPI_GETUIEFFECTS 0x103E 1530 #define SPI_SETUIEFFECTS 0x103F 1531 #if(_WIN32_WINNT >= 0x0600) 1532 #define SPI_GETDISABLEOVERLAPPEDCONTENT 0x1040 1533 #define SPI_SETDISABLEOVERLAPPEDCONTENT 0x1041 1534 #define SPI_GETCLIENTAREAANIMATION 0x1042 1535 #define SPI_SETCLIENTAREAANIMATION 0x1043 1536 #define SPI_GETCLEARTYPE 0x1048 1537 #define SPI_SETCLEARTYPE 0x1049 1538 #define SPI_GETSPEECHRECOGNITION 0x104A 1539 #define SPI_SETSPEECHRECOGNITION 0x104B 1540 #endif 1541 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000 1542 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001 1543 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002 1544 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003 1545 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004 1546 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005 1547 #define SPI_GETCARETWIDTH 0x2006 1548 #define SPI_SETCARETWIDTH 0x2007 1549 #if(_WIN32_WINNT >= 0x0501) 1550 #define SPI_GETMOUSECLICKLOCKTIME 0x2008 1551 #define SPI_SETMOUSECLICKLOCKTIME 0x2009 1552 #define SPI_GETFONTSMOOTHINGTYPE 0x200A 1553 #define SPI_SETFONTSMOOTHINGTYPE 0x200B 1554 #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C 1555 #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D 1556 #define SPI_GETFOCUSBORDERWIDTH 0x200E 1557 #define SPI_SETFOCUSBORDERWIDTH 0x200F 1558 #define SPI_GETFOCUSBORDERHEIGHT 0x2010 1559 #define SPI_SETFOCUSBORDERHEIGHT 0x2011 1560 #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012 1561 #define SPI_SETFONTSMOOTHINGORIENTATION 0x2013 1562 1563 #define FE_FONTSMOOTHINGSTANDARD 0x0001 1564 #define FE_FONTSMOOTHINGCLEARTYPE 0x0002 1565 #define FE_FONTSMOOTHINGDOCKING 0x8000 1566 #define FE_FONTSMOOTHINGORIENTATIONBGR 0x0000 1567 #define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001 1568 #endif 1569 #endif 1570 1571 #define SPIF_UPDATEINIFILE 1 1572 #define SPIF_SENDCHANGE 2 1573 #define SPIF_SENDWININICHANGE SPIF_SENDCHANGE 1574 #define ATF_ONOFFFEEDBACK 2 1575 #define ATF_TIMEOUTON 1 1576 1577 #if (WINVER >= 0x0500) 1578 #define UIS_SET 1 1579 #define UIS_CLEAR 2 1580 #define UIS_INITIALIZE 3 1581 1582 #define UISF_HIDEFOCUS 0x1 1583 #define UISF_HIDEACCEL 0x2 1584 #if (WINVER >= 0x0501) 1585 #define UISF_ACTIVE 0x4 1586 #endif 1587 1588 #endif 1589 1590 #define PBT_APMQUERYSUSPEND 0x0000 1591 #define PBT_APMQUERYSTANDBY 0x0001 1592 #define PBT_APMQUERYSUSPENDFAILED 0x0002 1593 #define PBT_APMQUERYSTANDBYFAILED 0x0003 1594 #define PBT_APMSUSPEND 0x0004 1595 #define PBT_APMSTANDBY 0x0005 1596 #define PBT_APMRESUMECRITICAL 0x0006 1597 #define PBT_APMRESUMESUSPEND 0x0007 1598 #define PBT_APMRESUMESTANDBY 0x0008 1599 #define PBTF_APMRESUMEFROMFAILURE 0x00000001 1600 #define PBT_APMBATTERYLOW 0x0009 1601 #define PBT_APMPOWERSTATUSCHANGE 0x000A 1602 #define PBT_APMOEMEVENT 0x000B 1603 #define PBT_APMRESUMEAUTOMATIC 0x0012 1604 1605 1606 /* Window messages */ 1607 #define WM_NULL 0 1608 #define WM_CREATE 1 1609 #define WM_DESTROY 2 1610 #define WM_MOVE 3 1611 #define WM_SIZE 5 1612 #define WM_ACTIVATE 6 1613 #define WM_SETFOCUS 7 1614 #define WM_KILLFOCUS 8 1615 #define WM_ENABLE 10 1616 #define WM_SETREDRAW 11 1617 #define WM_SETTEXT 12 1618 #define WM_GETTEXT 13 1619 #define WM_GETTEXTLENGTH 14 1620 #define WM_PAINT 15 1621 #define WM_CLOSE 16 1622 #define WM_QUERYENDSESSION 17 1623 #define WM_QUIT 18 1624 #define WM_QUERYOPEN 19 1625 #define WM_ERASEBKGND 20 1626 #define WM_SYSCOLORCHANGE 21 1627 #define WM_ENDSESSION 22 1628 #define WM_SHOWWINDOW 24 1629 #define WM_SETTINGCHANGE 26 1630 #define WM_WININICHANGE 26 1631 #define WM_DEVMODECHANGE 27 1632 #define WM_ACTIVATEAPP 28 1633 #define WM_FONTCHANGE 29 1634 #define WM_TIMECHANGE 30 1635 #define WM_CANCELMODE 31 1636 #define WM_SETCURSOR 32 1637 #define WM_MOUSEACTIVATE 33 1638 #define WM_CHILDACTIVATE 34 1639 #define WM_QUEUESYNC 35 1640 #define WM_GETMINMAXINFO 36 1641 #define WM_PAINTICON 38 1642 #define WM_ICONERASEBKGND 39 1643 #define WM_NEXTDLGCTL 40 1644 #define WM_SPOOLERSTATUS 42 1645 #define WM_DRAWITEM 43 1646 #define WM_MEASUREITEM 44 1647 #define WM_DELETEITEM 45 1648 #define WM_VKEYTOITEM 46 1649 #define WM_CHARTOITEM 47 1650 #define WM_SETFONT 48 1651 #define WM_GETFONT 49 1652 #define WM_SETHOTKEY 50 1653 #define WM_GETHOTKEY 51 1654 #define WM_QUERYDRAGICON 55 1655 #define WM_COMPAREITEM 57 1656 #if (WINVER >= 0x0500) 1657 #define WM_GETOBJECT 61 1658 #endif /* (WINVER >= 0x0500) */ 1659 #define WM_COMPACTING 65 1660 #define WM_COMMNOTIFY 68 /* obsolete */ 1661 #define WM_WINDOWPOSCHANGING 70 1662 #define WM_WINDOWPOSCHANGED 71 1663 #define WM_POWER 72 1664 #define WM_COPYDATA 74 1665 #define WM_CANCELJOURNAL 75 1666 1667 #if (WINVER >= 0x0400) 1668 #define WM_NOTIFY 78 1669 #define WM_INPUTLANGCHANGEREQUEST 80 1670 #define WM_INPUTLANGCHANGE 81 1671 #define WM_TCARD 82 1672 #define WM_HELP 83 1673 #define WM_USERCHANGED 84 1674 #define WM_NOTIFYFORMAT 85 1675 #define WM_CONTEXTMENU 123 1676 #define WM_STYLECHANGING 124 1677 #define WM_STYLECHANGED 125 1678 #define WM_DISPLAYCHANGE 126 1679 #define WM_GETICON 127 1680 #define WM_SETICON 128 1681 #endif /* (WINVER >= 0x0400) */ 1682 1683 #define WM_NCCREATE 129 1684 #define WM_NCDESTROY 130 1685 #define WM_NCCALCSIZE 131 1686 #define WM_NCHITTEST 132 1687 #define WM_NCPAINT 133 1688 #define WM_NCACTIVATE 134 1689 #define WM_GETDLGCODE 135 1690 #define WM_SYNCPAINT 136 1691 #define WM_NCMOUSEMOVE 160 1692 #define WM_NCLBUTTONDOWN 161 1693 #define WM_NCLBUTTONUP 162 1694 #define WM_NCLBUTTONDBLCLK 163 1695 #define WM_NCRBUTTONDOWN 164 1696 #define WM_NCRBUTTONUP 165 1697 #define WM_NCRBUTTONDBLCLK 166 1698 #define WM_NCMBUTTONDOWN 167 1699 #define WM_NCMBUTTONUP 168 1700 #define WM_NCMBUTTONDBLCLK 169 1701 1702 #if (_WIN32_WINNT >= 0x0500) 1703 #define WM_NCXBUTTONDOWN 171 1704 #define WM_NCXBUTTONUP 172 1705 #define WM_NCXBUTTONDBLCLK 173 1706 #endif /* (_WIN32_WINNT >= 0x0500) */ 1707 1708 #define GIDC_ARRIVAL 1 1709 #define GIDC_REMOVAL 2 1710 1711 #define WM_INPUT_DEVICE_CHANGE 254 1712 #define WM_INPUT 255 1713 1714 #define WM_KEYFIRST 256 1715 #define WM_KEYDOWN 256 1716 #define WM_KEYUP 257 1717 #define WM_CHAR 258 1718 #define WM_DEADCHAR 259 1719 #define WM_SYSKEYDOWN 260 1720 #define WM_SYSKEYUP 261 1721 #define WM_SYSCHAR 262 1722 #define WM_SYSDEADCHAR 263 1723 #if(_WIN32_WINNT >= 0x0501) 1724 #define WM_UNICHAR 0x0109 1725 #define WM_KEYLAST WM_UNICHAR 1726 #define UNICODE_NOCHAR 0xffff 1727 #else 1728 #define WM_KEYLAST 264 1729 #endif 1730 1731 /* Win32 4.0 messages for IME */ 1732 #if (WINVER >= 0x0400) 1733 #define WM_IME_STARTCOMPOSITION 0x010d 1734 #define WM_IME_ENDCOMPOSITION 0x010e 1735 #define WM_IME_COMPOSITION 0x010f 1736 #define WM_IME_KEYLAST 0x010f 1737 #endif /* (WINVER >= 0x0400) */ 1738 1739 #define WM_INITDIALOG 272 1740 #define WM_COMMAND 273 1741 #define WM_SYSCOMMAND 274 1742 #define WM_TIMER 275 1743 #define WM_HSCROLL 276 1744 #define WM_VSCROLL 277 1745 #define WM_INITMENU 278 1746 #define WM_INITMENUPOPUP 279 1747 #define WM_MENUSELECT 287 1748 #define WM_MENUCHAR 288 1749 #define WM_ENTERIDLE 289 1750 1751 #if (WINVER >= 0x0500) 1752 #ifndef _WIN32_WCE 1753 #define WM_MENURBUTTONUP 290 1754 #define WM_MENUDRAG 291 1755 #define WM_MENUGETOBJECT 292 1756 #define WM_UNINITMENUPOPUP 293 1757 #define WM_MENUCOMMAND 294 1758 #if(_WIN32_WINNT >= 0x0500) 1759 #define WM_CHANGEUISTATE 295 1760 #define WM_UPDATEUISTATE 296 1761 #define WM_QUERYUISTATE 297 1762 #endif /* _WIN32_WINNT >= 0x0500 */ 1763 #endif /* _WIN32_WCE */ 1764 #endif /* (WINVER >= 0x0500) */ 1765 1766 #define WM_CTLCOLORMSGBOX 306 1767 #define WM_CTLCOLOREDIT 307 1768 #define WM_CTLCOLORLISTBOX 308 1769 #define WM_CTLCOLORBTN 309 1770 #define WM_CTLCOLORDLG 310 1771 #define WM_CTLCOLORSCROLLBAR 311 1772 #define WM_CTLCOLORSTATIC 312 1773 #define MN_GETHMENU 481 1774 #define WM_MOUSEFIRST 512 1775 #define WM_MOUSEMOVE 512 1776 #define WM_LBUTTONDOWN 513 1777 #define WM_LBUTTONUP 514 1778 #define WM_LBUTTONDBLCLK 515 1779 #define WM_RBUTTONDOWN 516 1780 #define WM_RBUTTONUP 517 1781 #define WM_RBUTTONDBLCLK 518 1782 #define WM_MBUTTONDOWN 519 1783 #define WM_MBUTTONUP 520 1784 #define WM_MBUTTONDBLCLK 521 1785 #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400) 1786 #define WM_MOUSEWHEEL 522 1787 #endif 1788 #if (_WIN32_WINNT >= 0x0500) 1789 #define WM_XBUTTONDOWN 523 1790 #define WM_XBUTTONUP 524 1791 #define WM_XBUTTONDBLCLK 525 1792 #endif 1793 #if (_WIN32_WINNT >= 0x0600) 1794 #define WM_MOUSEHWHEEL 526 1795 #endif 1796 #if (_WIN32_WINNT >= 0x0500) 1797 #define WM_MOUSELAST 525 1798 #elif (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400) 1799 #define WM_MOUSELAST 522 1800 #else 1801 #define WM_MOUSELAST 521 1802 #endif 1803 #define WM_PARENTNOTIFY 528 1804 #define WM_ENTERMENULOOP 529 1805 #define WM_EXITMENULOOP 530 1806 #define WM_NEXTMENU 531 1807 #define WM_SIZING 532 1808 #define WM_CAPTURECHANGED 533 1809 #define WM_MOVING 534 1810 #define WM_POWERBROADCAST 536 1811 #define WM_DEVICECHANGE 537 1812 #define WM_MDICREATE 544 1813 #define WM_MDIDESTROY 545 1814 #define WM_MDIACTIVATE 546 1815 #define WM_MDIRESTORE 547 1816 #define WM_MDINEXT 548 1817 #define WM_MDIMAXIMIZE 549 1818 #define WM_MDITILE 550 1819 #define WM_MDICASCADE 551 1820 #define WM_MDIICONARRANGE 552 1821 #define WM_MDIGETACTIVE 553 1822 #define WM_MDISETMENU 560 1823 #define WM_ENTERSIZEMOVE 561 1824 #define WM_EXITSIZEMOVE 562 1825 #define WM_DROPFILES 563 1826 #define WM_MDIREFRESHMENU 564 1827 1828 /* Win32 4.0 messages for IME */ 1829 #define WM_IME_SETCONTEXT 0x0281 1830 #define WM_IME_NOTIFY 0x0282 1831 #define WM_IME_CONTROL 0x0283 1832 #define WM_IME_COMPOSITIONFULL 0x0284 1833 #define WM_IME_SELECT 0x0285 1834 #define WM_IME_CHAR 0x0286 1835 /* Win32 5.0 messages for IME */ 1836 #define WM_IME_REQUEST 0x0288 1837 /* Win32 4.0 messages for IME */ 1838 #define WM_IME_KEYDOWN 0x0290 1839 #define WM_IME_KEYUP 0x0291 1840 1841 #define WM_NCMOUSEHOVER 0x02A0 1842 #define WM_NCMOUSELEAVE 0x02A2 1843 #define WM_MOUSEHOVER 0x02A1 1844 #define WM_MOUSELEAVE 0x02A3 1845 1846 #if (_WIN32_WINNT >= 0x0501) 1847 #define WTS_CONSOLE_CONNECT 0x1 1848 #define WTS_CONSOLE_DISCONNECT 0x2 1849 #define WTS_REMOTE_CONNECT 0x3 1850 #define WTS_REMOTE_DISCONNECT 0x4 1851 #define WTS_SESSION_LOGON 0x5 1852 #define WTS_SESSION_LOGOFF 0x6 1853 #define WTS_SESSION_LOCK 0x7 1854 #define WTS_SESSION_UNLOCK 0x8 1855 #define WTS_SESSION_REMOTE_CONTROL 0x9 1856 #define WTS_SESSION_CREATE 0xA 1857 #define WTS_SESSION_TERMINATE 0xB 1858 #define WM_WTSSESSION_CHANGE 0x02B1 1859 #endif 1860 1861 #define WM_CUT 768 1862 #define WM_COPY 769 1863 #define WM_PASTE 770 1864 #define WM_CLEAR 771 1865 #define WM_UNDO 772 1866 #define WM_RENDERFORMAT 773 1867 #define WM_RENDERALLFORMATS 774 1868 #define WM_DESTROYCLIPBOARD 775 1869 #define WM_DRAWCLIPBOARD 776 1870 #define WM_PAINTCLIPBOARD 777 1871 #define WM_VSCROLLCLIPBOARD 778 1872 #define WM_SIZECLIPBOARD 779 1873 #define WM_ASKCBFORMATNAME 780 1874 #define WM_CHANGECBCHAIN 781 1875 #define WM_HSCROLLCLIPBOARD 782 1876 #define WM_PALETTEISCHANGING 784 1877 #define WM_PALETTECHANGED 785 1878 #define WM_QUERYNEWPALETTE 783 1879 #define WM_HOTKEY 786 1880 #define WM_PRINT 791 1881 #define WM_PRINTCLIENT 792 1882 #define WM_APPCOMMAND 793 1883 1884 #define WM_DWMCOMPOSITIONCHANGED 0x031E 1885 #define WM_DWMNCRENDERINGCHANGED 0x031F 1886 #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320 1887 #define WM_DWMWINDOWMAXIMIZEDCHANGE 0x0321 1888 1889 #define WM_HANDHELDFIRST 856 1890 #define WM_HANDHELDLAST 863 1891 #define WM_AFXFIRST 864 1892 #define WM_AFXLAST 895 1893 #define WM_PENWINFIRST 896 1894 #define WM_PENWINLAST 911 1895 #define WM_USER 1024 1896 #define WM_APP 32768 1897 #define WM_GETTITLEBARINFOEX 0x033F 1898 1899 #if (_WIN32_WINNT >= 0x0400) 1900 #define WHEEL_DELTA 120 1901 #define GET_WHEEL_DELTA_WPARAM(wParam) ((short)HIWORD(wParam)) 1902 #define WHEEL_PAGESCROLL UINT_MAX 1903 #endif 1904 1905 #if (_WIN32_WINNT >= 0x0500) 1906 #define GET_KEYSTATE_WPARAM(wParam) (LOWORD(wParam)) 1907 #define GET_NCHITTEST_WPARAM(wParam) ((short)LOWORD(wParam)) 1908 #define GET_XBUTTON_WPARAM(wParam) (HIWORD(wParam)) 1909 #define XBUTTON1 0x0001 1910 #define XBUTTON2 0x0002 1911 #endif 1912 1913 #if (_WIN32_WINNT >= 0x0501) 1914 #define WM_THEMECHANGED 794 1915 #endif 1916 1917 #define BM_CLICK 245 1918 #define BM_GETCHECK 240 1919 #define BM_GETIMAGE 246 1920 #define BM_GETSTATE 242 1921 #define BM_SETCHECK 241 1922 #define BM_SETIMAGE 247 1923 #define BM_SETSTATE 243 1924 #define BM_SETSTYLE 244 1925 #define BN_CLICKED 0 1926 #define BN_DBLCLK 5 1927 #define BN_DISABLE 4 1928 #define BN_DOUBLECLICKED 5 1929 #define BN_HILITE 2 1930 #define BN_KILLFOCUS 7 1931 #define BN_PAINT 1 1932 #define BN_PUSHED 2 1933 #define BN_SETFOCUS 6 1934 #define BN_UNHILITE 3 1935 #define BN_UNPUSHED 3 1936 #define CB_ADDSTRING 323 1937 #define CB_DELETESTRING 324 1938 #define CB_DIR 325 1939 #define CB_FINDSTRING 332 1940 #define CB_FINDSTRINGEXACT 344 1941 #define CB_GETCOMBOBOXINFO 356 1942 #define CB_GETCOUNT 326 1943 #define CB_GETCURSEL 327 1944 #define CB_GETDROPPEDCONTROLRECT 338 1945 #define CB_GETDROPPEDSTATE 343 1946 #define CB_GETDROPPEDWIDTH 351 1947 #define CB_GETEDITSEL 320 1948 #define CB_GETEXTENDEDUI 342 1949 #define CB_GETHORIZONTALEXTENT 349 1950 #define CB_GETITEMDATA 336 1951 #define CB_GETITEMHEIGHT 340 1952 #define CB_GETLBTEXT 328 1953 #define CB_GETLBTEXTLEN 329 1954 #define CB_GETLOCALE 346 1955 #define CB_GETTOPINDEX 347 1956 #define CB_INITSTORAGE 353 1957 #define CB_INSERTSTRING 330 1958 #define CB_LIMITTEXT 321 1959 #define CB_RESETCONTENT 331 1960 #define CB_SELECTSTRING 333 1961 #define CB_SETCURSEL 334 1962 #define CB_SETDROPPEDWIDTH 352 1963 #define CB_SETEDITSEL 322 1964 #define CB_SETEXTENDEDUI 341 1965 #define CB_SETHORIZONTALEXTENT 350 1966 #define CB_SETITEMDATA 337 1967 #define CB_SETITEMHEIGHT 339 1968 #define CB_SETLOCALE 345 1969 #define CB_SETTOPINDEX 348 1970 #define CB_SHOWDROPDOWN 335 1971 #define CB_MSGMAX 357 1972 #define CBN_CLOSEUP 8 1973 #define CBN_DBLCLK 2 1974 #define CBN_DROPDOWN 7 1975 #define CBN_EDITCHANGE 5 1976 #define CBN_EDITUPDATE 6 1977 #define CBN_ERRSPACE (-1) 1978 #define CBN_KILLFOCUS 4 1979 #define CBN_SELCHANGE 1 1980 #define CBN_SELENDCANCEL 10 1981 #define CBN_SELENDOK 9 1982 #define CBN_SETFOCUS 3 1983 #define EM_CANUNDO 198 1984 #define EM_CHARFROMPOS 215 1985 #define EM_EMPTYUNDOBUFFER 205 1986 #define EM_FMTLINES 200 1987 #define EM_GETIMESTATUS 217 1988 #define EM_GETFIRSTVISIBLELINE 206 1989 #define EM_GETHANDLE 189 1990 #define EM_GETLIMITTEXT 213 1991 #define EM_GETLINE 196 1992 #define EM_GETLINECOUNT 186 1993 #define EM_GETMARGINS 212 1994 #define EM_GETMODIFY 184 1995 #define EM_GETPASSWORDCHAR 210 1996 #define EM_GETRECT 178 1997 #define EM_GETSEL 176 1998 #define EM_GETTHUMB 190 1999 #define EM_GETWORDBREAKPROC 209 2000 #define EM_LIMITTEXT 197 2001 #define EM_LINEFROMCHAR 201 2002 #define EM_LINEINDEX 187 2003 #define EM_LINELENGTH 193 2004 #define EM_LINESCROLL 182 2005 #define EM_POSFROMCHAR 214 2006 #define EM_REPLACESEL 194 2007 #define EM_SCROLL 181 2008 #define EM_SCROLLCARET 183 2009 #define EM_SETHANDLE 188 2010 #define EM_SETIMESTATUS 216 2011 #define EM_SETLIMITTEXT 197 2012 #define EM_SETMARGINS 211 2013 #define EM_SETMODIFY 185 2014 #define EM_SETPASSWORDCHAR 204 2015 #define EM_SETREADONLY 207 2016 #define EM_SETRECT 179 2017 #define EM_SETRECTNP 180 2018 #define EM_SETSEL 177 2019 #define EM_SETTABSTOPS 203 2020 #define EM_SETWORDBREAKPROC 208 2021 #define EM_UNDO 199 2022 #define EN_CHANGE 768 2023 #define EN_ERRSPACE 1280 2024 #define EN_HSCROLL 1537 2025 #define EN_KILLFOCUS 512 2026 #define EN_MAXTEXT 1281 2027 #define EN_SETFOCUS 256 2028 #define EN_UPDATE 1024 2029 #define EN_VSCROLL 1538 2030 #define LB_ADDFILE 406 2031 #define LB_ADDSTRING 384 2032 #define LB_DELETESTRING 386 2033 #define LB_DIR 397 2034 #define LB_FINDSTRING 399 2035 #define LB_FINDSTRINGEXACT 418 2036 #define LB_GETANCHORINDEX 413 2037 #define LB_GETCARETINDEX 415 2038 #define LB_GETCOUNT 395 2039 #define LB_GETCURSEL 392 2040 #define LB_GETHORIZONTALEXTENT 403 2041 #define LB_GETITEMDATA 409 2042 #define LB_GETITEMHEIGHT 417 2043 #define LB_GETITEMRECT 408 2044 #define LB_GETLISTBOXINFO 434 2045 #define LB_GETLOCALE 422 2046 #define LB_GETSEL 391 2047 #define LB_GETSELCOUNT 400 2048 #define LB_GETSELITEMS 401 2049 #define LB_GETTEXT 393 2050 #define LB_GETTEXTLEN 394 2051 #define LB_GETTOPINDEX 398 2052 #define LB_INITSTORAGE 424 2053 #define LB_INSERTSTRING 385 2054 #define LB_ITEMFROMPOINT 425 2055 #define LB_RESETCONTENT 388 2056 #define LB_SELECTSTRING 396 2057 #define LB_SELITEMRANGE 411 2058 #define LB_SELITEMRANGEEX 387 2059 #define LB_SETANCHORINDEX 412 2060 #define LB_SETCARETINDEX 414 2061 #define LB_SETCOLUMNWIDTH 405 2062 #define LB_SETCOUNT 423 2063 #define LB_SETCURSEL 390 2064 #define LB_SETHORIZONTALEXTENT 404 2065 #define LB_SETITEMDATA 410 2066 #define LB_SETITEMHEIGHT 416 2067 #define LB_SETLOCALE 421 2068 #define LB_SETSEL 389 2069 #define LB_SETTABSTOPS 402 2070 #define LB_SETTOPINDEX 407 2071 #define LBN_DBLCLK 2 2072 #define LBN_ERRSPACE (-2) 2073 #define LBN_KILLFOCUS 5 2074 #define LBN_SELCANCEL 3 2075 #define LBN_SELCHANGE 1 2076 #define LBN_SETFOCUS 4 2077 #define SBM_ENABLE_ARROWS 228 2078 #define SBM_GETPOS 225 2079 #define SBM_GETRANGE 227 2080 #define SBM_SETPOS 224 2081 #define SBM_SETRANGE 226 2082 #define SBM_SETRANGEREDRAW 230 2083 #if (_WIN32_WINNT >= 0x0400) 2084 #define SBM_GETSCROLLINFO 234 2085 #define SBM_SETSCROLLINFO 233 2086 #endif 2087 #if (_WIN32_WINNT >= 0x0501) 2088 #define SBM_GETSCROLLBARINFO 235 2089 #endif 2090 #define STM_GETICON 369 2091 #define STM_GETIMAGE 371 2092 #define STM_SETICON 368 2093 #define STM_SETIMAGE 370 2094 #define STN_CLICKED 0 2095 #define STN_DBLCLK 1 2096 #define STN_DISABLE 3 2097 #define STN_ENABLE 2 2098 #define DM_GETDEFID WM_USER 2099 #define DM_SETDEFID (WM_USER+1) 2100 #define DM_REPOSITION (WM_USER+2) 2101 #define PSM_PAGEINFO (WM_USER+100) 2102 #define PSM_SHEETINFO (WM_USER+101) 2103 #define PSI_SETACTIVE 1 2104 #define PSI_KILLACTIVE 2 2105 #define PSI_APPLY 3 2106 #define PSI_RESET 4 2107 #define PSI_HASHELP 5 2108 #define PSI_HELP 6 2109 #define PSI_CHANGED 1 2110 #define PSI_GUISTART 2 2111 #define PSI_REBOOT 3 2112 #define PSI_GETSIBLINGS 4 2113 #define DCX_WINDOW 1 2114 #define DCX_CACHE 2 2115 #define DCX_PARENTCLIP 32 2116 #define DCX_CLIPSIBLINGS 16 2117 #define DCX_CLIPCHILDREN 8 2118 #define DCX_NORESETATTRS 4 2119 #define DCX_INTERSECTUPDATE 0x200 2120 #define DCX_LOCKWINDOWUPDATE 0x400 2121 #define DCX_EXCLUDERGN 64 2122 #define DCX_INTERSECTRGN 128 2123 #define DCX_VALIDATE 0x200000 2124 #define DCX_EXCLUDEUPDATE 0x100 2125 #define GMDI_GOINTOPOPUPS 2 2126 #define GMDI_USEDISABLED 1 2127 #define FKF_AVAILABLE 2 2128 #define FKF_CLICKON 64 2129 #define FKF_FILTERKEYSON 1 2130 #define FKF_HOTKEYACTIVE 4 2131 #define FKF_HOTKEYSOUND 16 2132 #define FKF_CONFIRMHOTKEY 8 2133 #define FKF_INDICATOR 32 2134 #define HCF_HIGHCONTRASTON 1 2135 #define HCF_AVAILABLE 2 2136 #define HCF_HOTKEYACTIVE 4 2137 #define HCF_CONFIRMHOTKEY 8 2138 #define HCF_HOTKEYSOUND 16 2139 #define HCF_INDICATOR 32 2140 #define HCF_HOTKEYAVAILABLE 64 2141 2142 #define MKF_MOUSEKEYSON 0x00000001 2143 #define MKF_AVAILABLE 0x00000002 2144 #define MKF_HOTKEYACTIVE 0x00000004 2145 #define MKF_CONFIRMHOTKEY 0x00000008 2146 #define MKF_HOTKEYSOUND 0x00000010 2147 #define MKF_INDICATOR 0x00000020 2148 #define MKF_MODIFIERS 0x00000040 2149 #define MKF_REPLACENUMBERS 0x00000080 2150 #define MKF_LEFTBUTTONDOWN 0x01000000 2151 #define MKF_RIGHTBUTTONDOWN 0x02000000 2152 #define MKF_LEFTBUTTONSEL 0x10000000 2153 #define MKF_RIGHTBUTTONSEL 0x20000000 2154 #define MKF_MOUSEMODE 0x80000000 2155 2156 #define SERKF_ACTIVE 8 /* May be obsolete. Not in recent MS docs. */ 2157 #define SERKF_AVAILABLE 2 2158 #define SERKF_INDICATOR 4 2159 #define SERKF_SERIALKEYSON 1 2160 #define SSF_AVAILABLE 2 2161 #define SSF_SOUNDSENTRYON 1 2162 #define SSTF_BORDER 2 2163 #define SSTF_CHARS 1 2164 #define SSTF_DISPLAY 3 2165 #define SSTF_NONE 0 2166 #define SSGF_DISPLAY 3 2167 #define SSGF_NONE 0 2168 #define SSWF_CUSTOM 4 2169 #define SSWF_DISPLAY 3 2170 #define SSWF_NONE 0 2171 #define SSWF_TITLE 1 2172 #define SSWF_WINDOW 2 2173 #define SKF_AUDIBLEFEEDBACK 64 2174 #define SKF_AVAILABLE 2 2175 #define SKF_CONFIRMHOTKEY 8 2176 #define SKF_HOTKEYACTIVE 4 2177 #define SKF_HOTKEYSOUND 16 2178 #define SKF_INDICATOR 32 2179 #define SKF_STICKYKEYSON 1 2180 #define SKF_TRISTATE 128 2181 #define SKF_TWOKEYSOFF 256 2182 #define TKF_AVAILABLE 2 2183 #define TKF_CONFIRMHOTKEY 8 2184 #define TKF_HOTKEYACTIVE 4 2185 #define TKF_HOTKEYSOUND 16 2186 #define TKF_TOGGLEKEYSON 1 2187 #define MDITILE_SKIPDISABLED 2 2188 #define MDITILE_HORIZONTAL 1 2189 #define MDITILE_VERTICAL 0 2190 #define VK_LBUTTON 1 2191 #define VK_RBUTTON 2 2192 #define VK_CANCEL 3 2193 #define VK_MBUTTON 4 2194 #if (_WIN32_WINNT >= 0x0500) 2195 #define VK_XBUTTON1 5 2196 #define VK_XBUTTON2 6 2197 #endif 2198 #define VK_BACK 8 2199 #define VK_TAB 9 2200 #define VK_CLEAR 12 2201 #define VK_RETURN 13 2202 #define VK_SHIFT 16 2203 #define VK_CONTROL 17 2204 #define VK_MENU 18 2205 #define VK_PAUSE 19 2206 #define VK_CAPITAL 20 2207 #define VK_KANA 0x15 2208 #define VK_HANGEUL 0x15 2209 #define VK_HANGUL 0x15 2210 #define VK_JUNJA 0x17 2211 #define VK_FINAL 0x18 2212 #define VK_HANJA 0x19 2213 #define VK_KANJI 0x19 2214 #define VK_ESCAPE 0x1B 2215 #define VK_CONVERT 0x1C 2216 #define VK_NONCONVERT 0x1D 2217 #define VK_ACCEPT 0x1E 2218 #define VK_MODECHANGE 0x1F 2219 #define VK_SPACE 32 2220 #define VK_PRIOR 33 2221 #define VK_NEXT 34 2222 #define VK_END 35 2223 #define VK_HOME 36 2224 #define VK_LEFT 37 2225 #define VK_UP 38 2226 #define VK_RIGHT 39 2227 #define VK_DOWN 40 2228 #define VK_SELECT 41 2229 #define VK_PRINT 42 2230 #define VK_EXECUTE 43 2231 #define VK_SNAPSHOT 44 2232 #define VK_INSERT 45 2233 #define VK_DELETE 46 2234 #define VK_HELP 47 2235 #define VK_LWIN 0x5B 2236 #define VK_RWIN 0x5C 2237 #define VK_APPS 0x5D 2238 #define VK_SLEEP 0x5F 2239 #define VK_NUMPAD0 0x60 2240 #define VK_NUMPAD1 0x61 2241 #define VK_NUMPAD2 0x62 2242 #define VK_NUMPAD3 0x63 2243 #define VK_NUMPAD4 0x64 2244 #define VK_NUMPAD5 0x65 2245 #define VK_NUMPAD6 0x66 2246 #define VK_NUMPAD7 0x67 2247 #define VK_NUMPAD8 0x68 2248 #define VK_NUMPAD9 0x69 2249 #define VK_MULTIPLY 0x6A 2250 #define VK_ADD 0x6B 2251 #define VK_SEPARATOR 0x6C 2252 #define VK_SUBTRACT 0x6D 2253 #define VK_DECIMAL 0x6E 2254 #define VK_DIVIDE 0x6F 2255 #define VK_F1 0x70 2256 #define VK_F2 0x71 2257 #define VK_F3 0x72 2258 #define VK_F4 0x73 2259 #define VK_F5 0x74 2260 #define VK_F6 0x75 2261 #define VK_F7 0x76 2262 #define VK_F8 0x77 2263 #define VK_F9 0x78 2264 #define VK_F10 0x79 2265 #define VK_F11 0x7A 2266 #define VK_F12 0x7B 2267 #define VK_F13 0x7C 2268 #define VK_F14 0x7D 2269 #define VK_F15 0x7E 2270 #define VK_F16 0x7F 2271 #define VK_F17 0x80 2272 #define VK_F18 0x81 2273 #define VK_F19 0x82 2274 #define VK_F20 0x83 2275 #define VK_F21 0x84 2276 #define VK_F22 0x85 2277 #define VK_F23 0x86 2278 #define VK_F24 0x87 2279 #define VK_NUMLOCK 0x90 2280 #define VK_SCROLL 0x91 2281 #define VK_OEM_NEC_EQUAL 0x92 2282 #define VK_LSHIFT 0xA0 2283 #define VK_RSHIFT 0xA1 2284 #define VK_LCONTROL 0xA2 2285 #define VK_RCONTROL 0xA3 2286 #define VK_LMENU 0xA4 2287 #define VK_RMENU 0xA5 2288 #if (_WIN32_WINNT >= 0x0500) 2289 #define VK_BROWSER_BACK 0xA6 2290 #define VK_BROWSER_FORWARD 0xA7 2291 #define VK_BROWSER_REFRESH 0xA8 2292 #define VK_BROWSER_STOP 0xA9 2293 #define VK_BROWSER_SEARCH 0xAA 2294 #define VK_BROWSER_FAVORITES 0xAB 2295 #define VK_BROWSER_HOME 0xAC 2296 #define VK_VOLUME_MUTE 0xAD 2297 #define VK_VOLUME_DOWN 0xAE 2298 #define VK_VOLUME_UP 0xAF 2299 #define VK_MEDIA_NEXT_TRACK 0xB0 2300 #define VK_MEDIA_PREV_TRACK 0xB1 2301 #define VK_MEDIA_STOP 0xB2 2302 #define VK_MEDIA_PLAY_PAUSE 0xB3 2303 #define VK_LAUNCH_MAIL 0xB4 2304 #define VK_LAUNCH_MEDIA_SELECT 0xB5 2305 #define VK_LAUNCH_APP1 0xB6 2306 #define VK_LAUNCH_APP2 0xB7 2307 #endif 2308 #define VK_OEM_1 0xBA 2309 #if (_WIN32_WINNT >= 0x0500) 2310 #define VK_OEM_PLUS 0xBB 2311 #define VK_OEM_COMMA 0xBC 2312 #define VK_OEM_MINUS 0xBD 2313 #define VK_OEM_PERIOD 0xBE 2314 #endif 2315 #define VK_OEM_2 0xBF 2316 #define VK_OEM_3 0xC0 2317 #define VK_OEM_4 0xDB 2318 #define VK_OEM_5 0xDC 2319 #define VK_OEM_6 0xDD 2320 #define VK_OEM_7 0xDE 2321 #define VK_OEM_8 0xDF 2322 #if (_WIN32_WINNT >= 0x0500) 2323 #define VK_OEM_102 0xE2 2324 #endif 2325 #define VK_ICO_HELP 0xE3 /* Help key on ICO */ 2326 #define VK_ICO_00 0xE4 /* 00 key on ICO */ 2327 #define VK_PROCESSKEY 0xE5 2328 #if (_WIN32_WINNT >= 0x0500) 2329 #define VK_PACKET 0xE7 2330 #endif 2331 #define VK_OEM_RESET 0xE9 2332 #define VK_OEM_JUMP 0xEA 2333 #define VK_OEM_PA1 0xEB 2334 #define VK_OEM_PA2 0xEC 2335 #define VK_OEM_PA3 0xED 2336 #define VK_OEM_WSCTRL 0xEE 2337 #define VK_OEM_CUSEL 0xEF 2338 #define VK_OEM_ATTN 0xF0 2339 #define VK_OEM_FINISH 0xF1 2340 #define VK_OEM_COPY 0xF2 2341 #define VK_OEM_AUTO 0xF3 2342 #define VK_OEM_ENLW 0xF4 2343 #define VK_OEM_BACKTAB 0xF5 2344 #define VK_ATTN 0xF6 2345 #define VK_CRSEL 0xF7 2346 #define VK_EXSEL 0xF8 2347 #define VK_EREOF 0xF9 2348 #define VK_PLAY 0xFA 2349 #define VK_ZOOM 0xFB 2350 #define VK_NONAME 0xFC 2351 #define VK_PA1 0xFD 2352 #define VK_OEM_CLEAR 0xFE 2353 2354 /* MapVirtualKey translation types */ 2355 #define MAPVK_VK_TO_VSC 0 2356 #define MAPVK_VSC_TO_VK 1 2357 #define MAPVK_VK_TO_CHAR 2 2358 #define MAPVK_VSC_TO_VK_EX 3 2359 #define MAPVK_VK_TO_VSC_EX 4 2360 2361 #define TME_HOVER 1 2362 #define TME_LEAVE 2 2363 #define TME_NONCLIENT 0x00000010 2364 #define TME_QUERY 0x40000000 2365 #define TME_CANCEL 0x80000000 2366 #define HOVER_DEFAULT 0xFFFFFFFF 2367 #define MK_LBUTTON 1 2368 #define MK_RBUTTON 2 2369 #define MK_SHIFT 4 2370 #define MK_CONTROL 8 2371 #define MK_MBUTTON 16 2372 #if(_WIN32_WINNT >= 0x0500) 2373 #define MK_XBUTTON1 0x0020 2374 #define MK_XBUTTON2 0x0040 2375 #endif 2376 #define TPM_CENTERALIGN 4 2377 #define TPM_LEFTALIGN 0 2378 #define TPM_RIGHTALIGN 8 2379 #define TPM_LEFTBUTTON 0 2380 #define TPM_RIGHTBUTTON 2 2381 #define TPM_HORIZONTAL 0 2382 #define TPM_VERTICAL 64 2383 #define TPM_TOPALIGN 0 2384 #define TPM_VCENTERALIGN 16 2385 #define TPM_BOTTOMALIGN 32 2386 #define TPM_NONOTIFY 128 2387 #define TPM_RETURNCMD 256 2388 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) 2389 #define TPM_RECURSE 0x0001 2390 #define TPM_HORPOSANIMATION 0x0400 2391 #define TPM_HORNEGANIMATION 0x0800 2392 #define TPM_VERPOSANIMATION 0x1000 2393 #define TPM_VERNEGANIMATION 0x2000 2394 #endif 2395 #if(_WIN32_WINNT >= 0x0500) 2396 #define TPM_NOANIMATION 16384 2397 #endif 2398 #if (_WIN32_WINNT >= 0x0501) 2399 #define TPM_LAYOUTRTL 32768 2400 #endif 2401 #if (_WIN32_WINNT >= 0x0601) 2402 #define TPM_WORKAREA 65536 2403 #endif 2404 #define HELP_COMMAND 0x102 2405 #define HELP_CONTENTS 3 2406 #define HELP_CONTEXT 1 2407 #define HELP_CONTEXTPOPUP 8 2408 #define HELP_FORCEFILE 9 2409 #define HELP_HELPONHELP 4 2410 #define HELP_INDEX 3 2411 #define HELP_KEY 0x101 2412 #define HELP_MULTIKEY 0x201 2413 #define HELP_PARTIALKEY 0x105 2414 #define HELP_QUIT 2 2415 #define HELP_SETCONTENTS 5 2416 #define HELP_SETINDEX 5 2417 #define HELP_SETWINPOS 0x203 2418 #define HELP_CONTEXTMENU 0xa 2419 #define HELP_FINDER 0xb 2420 #define HELP_WM_HELP 0xc 2421 #define HELP_TCARD 0x8000 2422 #define HELP_TCARD_DATA 16 2423 #define HELP_TCARD_OTHER_CALLER 0x11 2424 #define IDH_NO_HELP 28440 2425 #define IDH_MISSING_CONTEXT 28441 2426 #define IDH_GENERIC_HELP_BUTTON 28442 2427 #define IDH_OK 28443 2428 #define IDH_CANCEL 28444 2429 #define IDH_HELP 28445 2430 #define LB_CTLCODE 0 2431 #define LB_OKAY 0 2432 #define LB_ERR (-1) 2433 #define LB_ERRSPACE (-2) 2434 #define CB_OKAY 0 2435 #define CB_ERR (-1) 2436 #define CB_ERRSPACE (-2) 2437 #define HIDE_WINDOW 0 2438 #define SHOW_OPENWINDOW 1 2439 #define SHOW_ICONWINDOW 2 2440 #define SHOW_FULLSCREEN 3 2441 #define SHOW_OPENNOACTIVATE 4 2442 #define SW_PARENTCLOSING 1 2443 #define SW_OTHERZOOM 2 2444 #define SW_PARENTOPENING 3 2445 #define SW_OTHERUNZOOM 4 2446 #define KF_EXTENDED 256 2447 #define KF_DLGMODE 2048 2448 #define KF_MENUMODE 4096 2449 #define KF_ALTDOWN 8192 2450 #define KF_REPEAT 16384 2451 #define KF_UP 32768 2452 #define WSF_VISIBLE 1 2453 #define PWR_OK 1 2454 #define PWR_FAIL (-1) 2455 #define PWR_SUSPENDREQUEST 1 2456 #define PWR_SUSPENDRESUME 2 2457 #define PWR_CRITICALRESUME 3 2458 #define NFR_ANSI 1 2459 #define NFR_UNICODE 2 2460 #define NF_QUERY 3 2461 #define NF_REQUERY 4 2462 #define MENULOOP_WINDOW 0 2463 #define MENULOOP_POPUP 1 2464 #define WMSZ_LEFT 1 2465 #define WMSZ_RIGHT 2 2466 #define WMSZ_TOP 3 2467 #define WMSZ_TOPLEFT 4 2468 #define WMSZ_TOPRIGHT 5 2469 #define WMSZ_BOTTOM 6 2470 #define WMSZ_BOTTOMLEFT 7 2471 #define WMSZ_BOTTOMRIGHT 8 2472 #define HTERROR (-2) 2473 #define HTTRANSPARENT (-1) 2474 #define HTNOWHERE 0 2475 #define HTCLIENT 1 2476 #define HTCAPTION 2 2477 #define HTSYSMENU 3 2478 #define HTGROWBOX 4 2479 #define HTSIZE 4 2480 #define HTMENU 5 2481 #define HTHSCROLL 6 2482 #define HTVSCROLL 7 2483 #define HTMINBUTTON 8 2484 #define HTMAXBUTTON 9 2485 #define HTREDUCE 8 2486 #define HTZOOM 9 2487 #define HTLEFT 10 2488 #define HTSIZEFIRST 10 2489 #define HTRIGHT 11 2490 #define HTTOP 12 2491 #define HTTOPLEFT 13 2492 #define HTTOPRIGHT 14 2493 #define HTBOTTOM 15 2494 #define HTBOTTOMLEFT 16 2495 #define HTBOTTOMRIGHT 17 2496 #define HTSIZELAST 17 2497 #define HTBORDER 18 2498 #define HTOBJECT 19 2499 #define HTCLOSE 20 2500 #define HTHELP 21 2501 #define MA_ACTIVATE 1 2502 #define MA_ACTIVATEANDEAT 2 2503 #define MA_NOACTIVATE 3 2504 #define MA_NOACTIVATEANDEAT 4 2505 #define SIZE_RESTORED 0 2506 #define SIZE_MINIMIZED 1 2507 #define SIZE_MAXIMIZED 2 2508 #define SIZE_MAXSHOW 3 2509 #define SIZE_MAXHIDE 4 2510 #define SIZENORMAL 0 2511 #define SIZEICONIC 1 2512 #define SIZEFULLSCREEN 2 2513 #define SIZEZOOMSHOW 3 2514 #define SIZEZOOMHIDE 4 2515 #define WVR_ALIGNTOP 16 2516 #define WVR_ALIGNLEFT 32 2517 #define WVR_ALIGNBOTTOM 64 2518 #define WVR_ALIGNRIGHT 128 2519 #define WVR_HREDRAW 256 2520 #define WVR_VREDRAW 512 2521 #define WVR_REDRAW (WVR_HREDRAW|WVR_VREDRAW) 2522 #define WVR_VALIDRECTS 1024 2523 #define PRF_CHECKVISIBLE 1 2524 #define PRF_NONCLIENT 2 2525 #define PRF_CLIENT 4 2526 #define PRF_ERASEBKGND 8 2527 #define PRF_CHILDREN 16 2528 #define PRF_OWNED 32 2529 #define IDANI_OPEN 1 2530 #define IDANI_CLOSE 2 2531 #define IDANI_CAPTION 3 2532 #define WPF_RESTORETOMAXIMIZED 2 2533 #define WPF_SETMINPOSITION 1 2534 #if(_WIN32_WINNT >= 0x0500) 2535 #define WPF_ASYNCWINDOWPLACEMENT 4 2536 #endif 2537 #define ODT_MENU 1 2538 #define ODT_LISTBOX 2 2539 #define ODT_COMBOBOX 3 2540 #define ODT_BUTTON 4 2541 #define ODT_STATIC 5 2542 #define ODA_DRAWENTIRE 1 2543 #define ODA_SELECT 2 2544 #define ODA_FOCUS 4 2545 #define ODS_SELECTED 1 2546 #define ODS_GRAYED 2 2547 #define ODS_DISABLED 4 2548 #define ODS_CHECKED 8 2549 #define ODS_FOCUS 16 2550 #if(WINVER >= 0x0400) 2551 #define ODS_DEFAULT 32 2552 #define ODS_COMBOBOXEDIT 4096 2553 #endif 2554 #if(WINVER >= 0x0500) 2555 #define ODS_HOTLIGHT 0x0040 2556 #define ODS_INACTIVE 0x0080 2557 #if(_WIN32_WINNT >= 0x0500) 2558 #define ODS_NOACCEL 0x0100 2559 #define ODS_NOFOCUSRECT 0x0200 2560 #endif 2561 #endif 2562 #define IDHOT_SNAPWINDOW (-1) 2563 #define IDHOT_SNAPDESKTOP (-2) 2564 #define DBWF_LPARAMPOINTER 0x8000 2565 #define DLGWINDOWEXTRA 30 2566 #define MNC_IGNORE 0 2567 #define MNC_CLOSE 1 2568 #define MNC_EXECUTE 2 2569 #define MNC_SELECT 3 2570 #define DOF_EXECUTABLE 0x8001 2571 #define DOF_DOCUMENT 0x8002 2572 #define DOF_DIRECTORY 0x8003 2573 #define DOF_MULTIPLE 0x8004 2574 #define DOF_PROGMAN 1 2575 #define DOF_SHELLDATA 2 2576 #define DO_DROPFILE 0x454C4946 2577 #define DO_PRINTFILE 0x544E5250 2578 #define SW_SCROLLCHILDREN 1 2579 #define SW_INVALIDATE 2 2580 #define SW_ERASE 4 2581 #if(WINVER >= 0x0500) 2582 #define SW_SMOOTHSCROLL 16 2583 #endif 2584 #define SC_SIZE 0xF000 2585 #define SC_MOVE 0xF010 2586 #define SC_MINIMIZE 0xF020 2587 #define SC_ICON 0xf020 2588 #define SC_MAXIMIZE 0xF030 2589 #define SC_ZOOM 0xF030 2590 #define SC_NEXTWINDOW 0xF040 2591 #define SC_PREVWINDOW 0xF050 2592 #define SC_CLOSE 0xF060 2593 #define SC_VSCROLL 0xF070 2594 #define SC_HSCROLL 0xF080 2595 #define SC_MOUSEMENU 0xF090 2596 #define SC_KEYMENU 0xF100 2597 #define SC_ARRANGE 0xF110 2598 #define SC_RESTORE 0xF120 2599 #define SC_TASKLIST 0xF130 2600 #define SC_SCREENSAVE 0xF140 2601 #define SC_HOTKEY 0xF150 2602 #define SC_DEFAULT 0xF160 2603 #define SC_MONITORPOWER 0xF170 2604 #define SC_CONTEXTHELP 0xF180 2605 #define SC_SEPARATOR 0xF00F 2606 #define EC_LEFTMARGIN 1 2607 #define EC_RIGHTMARGIN 2 2608 #define EC_USEFONTINFO 0xffff 2609 #define DC_HASDEFID 0x534B 2610 #define DLGC_WANTARROWS 1 2611 #define DLGC_WANTTAB 2 2612 #define DLGC_WANTALLKEYS 4 2613 #define DLGC_WANTMESSAGE 4 2614 #define DLGC_HASSETSEL 8 2615 #define DLGC_DEFPUSHBUTTON 16 2616 #define DLGC_UNDEFPUSHBUTTON 32 2617 #define DLGC_RADIOBUTTON 64 2618 #define DLGC_WANTCHARS 128 2619 #define DLGC_STATIC 256 2620 #define DLGC_BUTTON 0x2000 2621 #define LB_CTLCODE 0 2622 #define WA_INACTIVE 0 2623 #define WA_ACTIVE 1 2624 #define WA_CLICKACTIVE 2 2625 #define ICON_SMALL 0 2626 #define ICON_BIG 1 2627 #if (_WIN32_WINNT >= 0x0501) 2628 #define ICON_SMALL2 2 2629 #endif 2630 #define HBMMENU_CALLBACK ((HBITMAP) -1) 2631 #define HBMMENU_SYSTEM ((HBITMAP)1) 2632 #define HBMMENU_MBAR_RESTORE ((HBITMAP)2) 2633 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP)3) 2634 #define HBMMENU_MBAR_CLOSE ((HBITMAP)5) 2635 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP)6) 2636 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP)7) 2637 #define HBMMENU_POPUP_CLOSE ((HBITMAP)8) 2638 #define HBMMENU_POPUP_RESTORE ((HBITMAP)9) 2639 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP)10) 2640 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP)11) 2641 #define MOD_ALT 0x0001 2642 #define MOD_CONTROL 0x0002 2643 #define MOD_SHIFT 0x0004 2644 #define MOD_WIN 0x0008 2645 #define LLKHF_EXTENDED 0x00000001 2646 #define LLKHF_INJECTED 0x00000010 2647 #define LLKHF_ALTDOWN 0x00000020 2648 #define LLKHF_UP 0x00000080 2649 #define LLMHF_INJECTED 0x00000001 2650 #if (WINVER >= 0x0500) 2651 #define FLASHW_STOP 0 2652 #define FLASHW_CAPTION 1 2653 #define FLASHW_TRAY 2 2654 #define FLASHW_ALL (FLASHW_CAPTION|FLASHW_TRAY) 2655 #define FLASHW_TIMER 4 2656 #define FLASHW_TIMERNOFG 12 2657 #endif /* (WINVER >= 0x0500) */ 2658 #define CURSOR_SHOWING 0x00000001 2659 #define WS_ACTIVECAPTION 0x00000001 2660 #if (_WIN32_WINNT >= 0x0400) 2661 #define INPUT_MOUSE 0 2662 #define INPUT_KEYBOARD 1 2663 #define INPUT_HARDWARE 2 2664 #endif /* (_WIN32_WINNT >= 0x0400) */ 2665 #if (WINVER >= 0x0400) 2666 #define ENDSESSION_LOGOFF 0x80000000 2667 #define ENDSESSION_CRITICAL 0x40000000 2668 #define ENDSESSION_CLOSEAPP 0x00000001 2669 #endif 2670 #if (WINVER >= 0x0500) 2671 #define CHILDID_SELF 0 2672 #define OBJID_WINDOW 0x00000000 2673 #define OBJID_SYSMENU 0xFFFFFFFF 2674 #define OBJID_TITLEBAR 0xFFFFFFFE 2675 #define OBJID_MENU 0xFFFFFFFD 2676 #define OBJID_CLIENT 0xFFFFFFFC 2677 #define OBJID_VSCROLL 0xFFFFFFFB 2678 #define OBJID_HSCROLL 0xFFFFFFFA 2679 #define OBJID_SIZEGRIP 0xFFFFFFF9 2680 #define OBJID_CARET 0xFFFFFFF8 2681 #define OBJID_CURSOR 0xFFFFFFF7 2682 #define OBJID_ALERT 0xFFFFFFF6 2683 #define OBJID_SOUND 0xFFFFFFF5 2684 #define OBJID_QUERYCLASSNAMEIDX 0xFFFFFFF4 2685 #define OBJID_NATIVEOM 0xFFFFFF0 2686 #define GUI_CARETBLINKING 0x00000001 2687 #define GUI_INMOVESIZE 0x00000002 2688 #define GUI_INMENUMODE 0x00000004 2689 #define GUI_SYSTEMMENUMODE 0x00000008 2690 #define GUI_POPUPMENUMODE 0x00000010 2691 #if (_WIN32_WINNT >= 0x0501) 2692 #define GUI_16BITTASK 0x00000020 2693 #endif 2694 #define WINEVENT_OUTOFCONTEXT 0x0000 2695 #define WINEVENT_SKIPOWNTHREAD 0x0001 2696 #define WINEVENT_SKIPOWNPROCESS 0x0002 2697 #define WINEVENT_INCONTEXT 0x0004 2698 #define AW_HOR_POSITIVE 0x00000001 2699 #define AW_HOR_NEGATIVE 0x00000002 2700 #define AW_VER_POSITIVE 0x00000004 2701 #define AW_VER_NEGATIVE 0x00000008 2702 #define AW_CENTER 0x00000010 2703 #define AW_HIDE 0x00010000 2704 #define AW_ACTIVATE 0x00020000 2705 #define AW_SLIDE 0x00040000 2706 #define AW_BLEND 0x00080000 2707 #define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000 2708 #define DEVICE_NOTIFY_SERVICE_HANDLE 0x00000001 2709 #if (_WIN32_WINNT >= 0x0501) 2710 #define DEVICE_NOTIFY_ALL_INTERFACE_CLASSES 0x00000004 2711 #endif 2712 #define EVENT_MIN 0x00000001 2713 #define EVENT_SYSTEM_SOUND 0x00000001 2714 #define EVENT_SYSTEM_ALERT 0x00000002 2715 #define EVENT_SYSTEM_FOREGROUND 0x00000003 2716 #define EVENT_SYSTEM_MENUSTART 0x00000004 2717 #define EVENT_SYSTEM_MENUEND 0x00000005 2718 #define EVENT_SYSTEM_MENUPOPUPSTART 0x00000006 2719 #define EVENT_SYSTEM_MENUPOPUPEND 0x00000007 2720 #define EVENT_SYSTEM_CAPTURESTART 0x00000008 2721 #define EVENT_SYSTEM_CAPTUREEND 0x00000009 2722 #define EVENT_SYSTEM_MOVESIZESTART 0x0000000a 2723 #define EVENT_SYSTEM_MOVESIZEEND 0x0000000b 2724 #define EVENT_SYSTEM_CONTEXTHELPSTART 0x0000000c 2725 #define EVENT_SYSTEM_CONTEXTHELPEND 0x0000000d 2726 #define EVENT_SYSTEM_DRAGDROPSTART 0x0000000e 2727 #define EVENT_SYSTEM_DRAGDROPEND 0x0000000f 2728 #define EVENT_SYSTEM_DIALOGSTART 0x00000010 2729 #define EVENT_SYSTEM_DIALOGEND 0x00000011 2730 #define EVENT_SYSTEM_SCROLLINGSTART 0x00000012 2731 #define EVENT_SYSTEM_SCROLLINGEND 0x00000013 2732 #define EVENT_SYSTEM_SWITCHSTART 0x00000014 2733 #define EVENT_SYSTEM_SWITCHEND 0x00000015 2734 #define EVENT_SYSTEM_MINIMIZESTART 0x00000016 2735 #define EVENT_SYSTEM_MINIMIZEEND 0x00000017 2736 #define EVENT_OBJECT_CREATE 0x00008000 2737 #define EVENT_OBJECT_DESTROY 0x00008001 2738 #define EVENT_OBJECT_SHOW 0x00008002 2739 #define EVENT_OBJECT_HIDE 0x00008003 2740 #define EVENT_OBJECT_REORDER 0x00008004 2741 #define EVENT_OBJECT_FOCUS 0x00008005 2742 #define EVENT_OBJECT_SELECTION 0x00008006 2743 #define EVENT_OBJECT_SELECTIONADD 0x00008007 2744 #define EVENT_OBJECT_SELECTIONREMOVE 0x00008008 2745 #define EVENT_OBJECT_SELECTIONWITHIN 0x00008009 2746 #define EVENT_OBJECT_STATECHANGE 0x0000800a 2747 #define EVENT_OBJECT_LOCATIONCHANGE 0x0000800b 2748 #define EVENT_OBJECT_NAMECHANGE 0x0000800c 2749 #define EVENT_OBJECT_DESCRIPTIONCHANGE 0x0000800d 2750 #define EVENT_OBJECT_VALUECHANGE 0x0000800e 2751 #define EVENT_OBJECT_PARENTCHANGE 0x0000800f 2752 #define EVENT_OBJECT_HELPCHANGE 0x00008010 2753 #define EVENT_OBJECT_DEFACTIONCHANGE 0x00008011 2754 #define EVENT_OBJECT_ACCELERATORCHANGE 0x00008012 2755 #define ALERT_SYSTEM_INFORMATIONAL 1 /* MB_INFORMATION */ 2756 #define ALERT_SYSTEM_WARNING 2 /* MB_WARNING */ 2757 #define ALERT_SYSTEM_ERROR 3 /* MB_ERROR */ 2758 #define ALERT_SYSTEM_QUERY 4 /* MB_QUESTION */ 2759 #define ALERT_SYSTEM_CRITICAL 5 /* HardSysErrBox */ 2760 #define CALERT_SYSTEM 6 2761 #if (_WIN32_WINNT >= 0x0501) 2762 #define EVENT_CONSOLE_CARET 0x00004001 2763 #define CONSOLE_CARET_SELECTION 0x00000001 2764 #define CONSOLE_CARET_VISIBLE 0x00000002 2765 #define EVENT_CONSOLE_UPDATE_REGION 0x00004002 2766 #define EVENT_CONSOLE_UPDATE_SIMPLE 0x00004003 2767 #define EVENT_CONSOLE_UPDATE_SCROLL 0x00004004 2768 #define EVENT_CONSOLE_LAYOUT 0x00004005 2769 #define EVENT_CONSOLE_START_APPLICATION 0x00004006 2770 #define CONSOLE_APPLICATION_16BIT 0x00000001 2771 #define EVENT_CONSOLE_END_APPLICATION 0x00004007 2772 #endif /* (_WIN32_WINNT >= 0x0501) */ 2773 #define EVENT_MAX 0x7fffffff 2774 #endif /* (WINVER >= 0x0500) */ 2775 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490) 2776 #define ASFW_ANY ((DWORD)-1) 2777 #define LSFW_LOCK 1 2778 #define LSFW_UNLOCK 2 2779 #endif 2780 #if (_WIN32_WINNT >= 0x0500) 2781 #define LWA_COLORKEY 1 2782 #define LWA_ALPHA 2 2783 #endif 2784 #define ULW_COLORKEY 0x00000001 2785 #define ULW_ALPHA 0x00000002 2786 #define ULW_OPAQUE 0x00000004 2787 #define ULW_EX_NORESIZE 0x00000008 2788 #define GA_PARENT 1 2789 #define GA_ROOT 2 2790 #define GA_ROOTOWNER 3 2791 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) 2792 #define MONITOR_DEFAULTTONULL 0 2793 #define MONITOR_DEFAULTTOPRIMARY 1 2794 #define MONITOR_DEFAULTTONEAREST 2 2795 #define MONITORINFOF_PRIMARY 1 2796 #define EDD_GET_DEVICE_INTERFACE_NAME 0x00000001 2797 #define EDS_RAWMODE 0x00000002 2798 #define EDS_ROTATEDMODE 0x00000004 2799 #define ISMEX_NOSEND 0x00000000 2800 #define ISMEX_CALLBACK 0x00000004 2801 #define ISMEX_NOTIFY 0x00000002 2802 #define ISMEX_REPLIED 0x00000008 2803 #define ISMEX_SEND 0x00000001 2804 #endif 2805 #if (_WIN32_WINNT >= 0x0500) 2806 #define GR_GDIOBJECTS 0 2807 #define GR_USEROBJECTS 1 2808 #endif 2809 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490) 2810 #define GMMP_USE_DISPLAY_POINTS 1 2811 #define GMMP_USE_HIGH_RESOLUTION_POINTS 2 2812 #endif 2813 #if (_WIN32_WINNT >= 0x0501) 2814 #define PW_CLIENTONLY 0x00000001 2815 #define RIM_INPUT 0x00000000 2816 #define RIM_INPUTSINK 0x00000001 2817 #define RIM_TYPEMOUSE 0x00000000 2818 #define RIM_TYPEKEYBOARD 0x00000001 2819 #define RIM_TYPEHID 0x00000002 2820 #define MOUSE_MOVE_RELATIVE 0 2821 #define MOUSE_MOVE_ABSOLUTE 1 2822 #define MOUSE_VIRTUAL_DESKTOP 0x02 2823 #define MOUSE_ATTRIBUTES_CHANGED 0x04 2824 #define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001 2825 #define RI_MOUSE_LEFT_BUTTON_UP 0x0002 2826 #define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004 2827 #define RI_MOUSE_RIGHT_BUTTON_UP 0x0008 2828 #define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010 2829 #define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020 2830 #define RI_MOUSE_BUTTON_1_DOWN RI_MOUSE_LEFT_BUTTON_DOWN 2831 #define RI_MOUSE_BUTTON_1_UP RI_MOUSE_LEFT_BUTTON_UP 2832 #define RI_MOUSE_BUTTON_2_DOWN RI_MOUSE_RIGHT_BUTTON_DOWN 2833 #define RI_MOUSE_BUTTON_2_UP RI_MOUSE_RIGHT_BUTTON_UP 2834 #define RI_MOUSE_BUTTON_3_DOWN RI_MOUSE_MIDDLE_BUTTON_DOWN 2835 #define RI_MOUSE_BUTTON_3_UP RI_MOUSE_MIDDLE_BUTTON_UP 2836 #define RI_MOUSE_BUTTON_4_DOWN 0x0040 2837 #define RI_MOUSE_BUTTON_4_UP 0x0080 2838 #define RI_MOUSE_BUTTON_5_DOWN 0x0100 2839 #define RI_MOUSE_BUTTON_5_UP 0x0200 2840 #define RI_MOUSE_WHEEL 0x0400 2841 #define KEYBOARD_OVERRUN_MAKE_CODE 0xFF 2842 #define RI_KEY_MAKE 0x0000 2843 #define RI_KEY_BREAK 0x0001 2844 #define RI_KEY_E0 0x0002 2845 #define RI_KEY_E1 0x0004 2846 #define RI_KEY_TERMSRV_SET_LED 0x0008 2847 #define RI_KEY_TERMSRV_SHADOW 0x0010 2848 #define RID_INPUT 0x10000003 2849 #define RID_HEADER 0x10000005 2850 #define RIDI_PREPARSEDDATA 0x20000005 2851 #define RIDI_DEVICENAME 0x20000007 2852 #define RIDI_DEVICEINFO 0x2000000b 2853 #define RIDEV_REMOVE 0x00000001 2854 #define RIDEV_EXCLUDE 0x00000010 2855 #define RIDEV_PAGEONLY 0x00000020 2856 #define RIDEV_NOLEGACY 0x00000030 2857 #define RIDEV_INPUTSINK 0x00000100 2858 #define RIDEV_CAPTUREMOUSE 0x00000200 2859 #define RIDEV_NOHOTKEYS 0x00000200 2860 #define RIDEV_APPKEYS 0x00000400 2861 #endif 2862 #define STATE_SYSTEM_UNAVAILABLE 0x00000001 2863 #define STATE_SYSTEM_SELECTED 0x00000002 2864 #define STATE_SYSTEM_FOCUSED 0x00000004 2865 #define STATE_SYSTEM_PRESSED 0x00000008 2866 #define STATE_SYSTEM_CHECKED 0x00000010 2867 #define STATE_SYSTEM_MIXED 0x00000020 2868 #define STATE_SYSTEM_READONLY 0x00000040 2869 #define STATE_SYSTEM_HOTTRACKED 0x00000080 2870 #define STATE_SYSTEM_DEFAULT 0x00000100 2871 #define STATE_SYSTEM_EXPANDED 0x00000200 2872 #define STATE_SYSTEM_COLLAPSED 0x00000400 2873 #define STATE_SYSTEM_BUSY 0x00000800 2874 #define STATE_SYSTEM_FLOATING 0x00001000 2875 #define STATE_SYSTEM_MARQUEED 0x00002000 2876 #define STATE_SYSTEM_ANIMATED 0x00004000 2877 #define STATE_SYSTEM_INVISIBLE 0x00008000 2878 #define STATE_SYSTEM_OFFSCREEN 0x00010000 2879 #define STATE_SYSTEM_SIZEABLE 0x00020000 2880 #define STATE_SYSTEM_MOVEABLE 0x00040000 2881 #define STATE_SYSTEM_SELFVOICING 0x00080000 2882 #define STATE_SYSTEM_FOCUSABLE 0x00100000 2883 #define STATE_SYSTEM_SELECTABLE 0x00200000 2884 #define STATE_SYSTEM_LINKED 0x00400000 2885 #define STATE_SYSTEM_TRAVERSED 0x00800000 2886 #define STATE_SYSTEM_MULTISELECTABLE 0x01000000 2887 #define STATE_SYSTEM_EXTSELECTABLE 0x02000000 2888 #define STATE_SYSTEM_ALERT_LOW 0x04000000 2889 #define STATE_SYSTEM_ALERT_MEDIUM 0x08000000 2890 #define STATE_SYSTEM_ALERT_HIGH 0x10000000 2891 #define STATE_SYSTEM_VALID 0x1fffffff 2892 2893 #define USER_DEFAULT_SCREEN_DPI 96 2894 2895 #ifndef RC_INVOKED 2896 typedef INT_PTR(CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM); 2897 typedef VOID(CALLBACK *TIMERPROC)(HWND,UINT,UINT_PTR,DWORD); 2898 typedef BOOL(CALLBACK *GRAYSTRINGPROC)(HDC,LPARAM,int); 2899 typedef LRESULT(CALLBACK *HOOKPROC)(int,WPARAM,LPARAM); 2900 typedef BOOL(CALLBACK *PROPENUMPROCA)(HWND,LPCSTR,HANDLE); 2901 typedef BOOL(CALLBACK *PROPENUMPROCW)(HWND,LPCWSTR,HANDLE); 2902 typedef BOOL(CALLBACK *PROPENUMPROCEXA)(HWND,LPSTR,HANDLE,ULONG_PTR); 2903 typedef BOOL(CALLBACK *PROPENUMPROCEXW)(HWND,LPWSTR,HANDLE,ULONG_PTR); 2904 typedef int(CALLBACK *EDITWORDBREAKPROCA)(LPSTR,int,int,int); 2905 typedef int(CALLBACK *EDITWORDBREAKPROCW)(LPWSTR,int,int,int); 2906 typedef LRESULT(CALLBACK *WNDPROC)(HWND,UINT,WPARAM,LPARAM); 2907 typedef BOOL(CALLBACK *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int); 2908 typedef BOOL(CALLBACK *WNDENUMPROC)(HWND,LPARAM); 2909 typedef BOOL(CALLBACK* MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM); 2910 typedef BOOL(CALLBACK *NAMEENUMPROCA)(LPSTR,LPARAM); 2911 typedef BOOL(CALLBACK *NAMEENUMPROCW)(LPWSTR,LPARAM); 2912 typedef NAMEENUMPROCA DESKTOPENUMPROCA; 2913 typedef NAMEENUMPROCW DESKTOPENUMPROCW; 2914 typedef NAMEENUMPROCA WINSTAENUMPROCA; 2915 typedef NAMEENUMPROCW WINSTAENUMPROCW; 2916 typedef void(CALLBACK *SENDASYNCPROC)(HWND,UINT,ULONG_PTR,LRESULT); 2917 DECLARE_HANDLE(HHOOK); 2918 DECLARE_HANDLE(HDWP); 2919 DECLARE_HANDLE(HDEVNOTIFY); 2920 typedef HDEVNOTIFY *PHDEVNOTIFY; 2921 2922 typedef struct tagACCEL { 2923 BYTE fVirt; 2924 WORD key; 2925 WORD cmd; 2926 } ACCEL,*LPACCEL; 2927 2928 typedef struct tagACCESSTIMEOUT { 2929 UINT cbSize; 2930 DWORD dwFlags; 2931 DWORD iTimeOutMSec; 2932 } ACCESSTIMEOUT, *LPACCESSTIMEOUT; 2933 2934 typedef struct tagANIMATIONINFO { 2935 UINT cbSize; 2936 int iMinAnimate; 2937 } ANIMATIONINFO,*LPANIMATIONINFO; 2938 2939 typedef struct tagCREATESTRUCTA { 2940 LPVOID lpCreateParams; 2941 HINSTANCE hInstance; 2942 HMENU hMenu; 2943 HWND hwndParent; 2944 int cy; 2945 int cx; 2946 int y; 2947 int x; 2948 LONG style; 2949 LPCSTR lpszName; 2950 LPCSTR lpszClass; 2951 DWORD dwExStyle; 2952 } CREATESTRUCTA,*LPCREATESTRUCTA; 2953 2954 typedef struct tagCREATESTRUCTW { 2955 LPVOID lpCreateParams; 2956 HINSTANCE hInstance; 2957 HMENU hMenu; 2958 HWND hwndParent; 2959 int cy; 2960 int cx; 2961 int y; 2962 int x; 2963 LONG style; 2964 LPCWSTR lpszName; 2965 LPCWSTR lpszClass; 2966 DWORD dwExStyle; 2967 } CREATESTRUCTW,*LPCREATESTRUCTW; 2968 2969 typedef struct tagCBT_CREATEWNDA { 2970 LPCREATESTRUCTA lpcs; 2971 HWND hwndInsertAfter; 2972 } CBT_CREATEWNDA, *LPCBT_CREATEWNDA; 2973 2974 typedef struct tagCBT_CREATEWNDW { 2975 LPCREATESTRUCTW lpcs; 2976 HWND hwndInsertAfter; 2977 } CBT_CREATEWNDW, *LPCBT_CREATEWNDW; 2978 2979 typedef struct tagCBTACTIVATESTRUCT { 2980 BOOL fMouse; 2981 HWND hWndActive; 2982 } CBTACTIVATESTRUCT,*LPCBTACTIVATESTRUCT; 2983 2984 typedef struct tagCLIENTCREATESTRUCT { 2985 HANDLE hWindowMenu; 2986 UINT idFirstChild; 2987 } CLIENTCREATESTRUCT,*LPCLIENTCREATESTRUCT; 2988 2989 typedef struct tagCOMPAREITEMSTRUCT { 2990 UINT CtlType; 2991 UINT CtlID; 2992 HWND hwndItem; 2993 UINT itemID1; 2994 ULONG_PTR itemData1; 2995 UINT itemID2; 2996 ULONG_PTR itemData2; 2997 DWORD dwLocaleId; 2998 } COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT,*LPCOMPAREITEMSTRUCT; 2999 3000 typedef struct tagCOPYDATASTRUCT { 3001 ULONG_PTR dwData; 3002 DWORD cbData; 3003 _Field_size_bytes_(cbData) PVOID lpData; 3004 } COPYDATASTRUCT,*PCOPYDATASTRUCT; 3005 3006 typedef struct tagCURSORSHAPE { 3007 int xHotSpot; 3008 int yHotSpot; 3009 int cx; 3010 int cy; 3011 int cbWidth; 3012 BYTE Planes; 3013 BYTE BitsPixel; 3014 } CURSORSHAPE,*LPCURSORSHAPE; 3015 3016 typedef struct tagCWPRETSTRUCT { 3017 LRESULT lResult; 3018 LPARAM lParam; 3019 WPARAM wParam; 3020 DWORD message; 3021 HWND hwnd; 3022 } CWPRETSTRUCT,*PCWPRETSTRUCT, *LPCWPRETSTRUCT; 3023 3024 typedef struct tagCWPSTRUCT { 3025 LPARAM lParam; 3026 WPARAM wParam; 3027 UINT message; 3028 HWND hwnd; 3029 } CWPSTRUCT,*PCWPSTRUCT, *LPCWPSTRUCT; 3030 3031 typedef struct tagDEBUGHOOKINFO { 3032 DWORD idThread; 3033 DWORD idThreadInstaller; 3034 LPARAM lParam; 3035 WPARAM wParam; 3036 int code; 3037 } DEBUGHOOKINFO,*PDEBUGHOOKINFO,*LPDEBUGHOOKINFO; 3038 3039 typedef struct tagDELETEITEMSTRUCT { 3040 UINT CtlType; 3041 UINT CtlID; 3042 UINT itemID; 3043 HWND hwndItem; 3044 ULONG_PTR itemData; 3045 } DELETEITEMSTRUCT,*PDELETEITEMSTRUCT,*LPDELETEITEMSTRUCT; 3046 3047 #include <pshpack2.h> 3048 typedef struct { 3049 DWORD style; 3050 DWORD dwExtendedStyle; 3051 short x; 3052 short y; 3053 short cx; 3054 short cy; 3055 WORD id; 3056 } DLGITEMTEMPLATE,*LPDLGITEMTEMPLATE; 3057 3058 typedef struct { 3059 DWORD style; 3060 DWORD dwExtendedStyle; 3061 WORD cdit; 3062 short x; 3063 short y; 3064 short cx; 3065 short cy; 3066 } DLGTEMPLATE,*LPDLGTEMPLATE,*LPDLGTEMPLATEA,*LPDLGTEMPLATEW; 3067 3068 typedef const DLGTEMPLATE *LPCDLGTEMPLATEA; 3069 typedef const DLGTEMPLATE *LPCDLGTEMPLATEW; 3070 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA; 3071 typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW; 3072 DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE) 3073 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA; 3074 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW; 3075 3076 3077 #ifdef UNICODE 3078 typedef LPCDLGTEMPLATEW LPCDLGTEMPLATE; 3079 #else 3080 typedef LPCDLGTEMPLATEA LPCDLGTEMPLATE; 3081 #endif // UNICODE 3082 #include <poppack.h> 3083 3084 typedef struct tagDRAWITEMSTRUCT { 3085 UINT CtlType; 3086 UINT CtlID; 3087 UINT itemID; 3088 UINT itemAction; 3089 UINT itemState; 3090 HWND hwndItem; 3091 HDC hDC; 3092 RECT rcItem; 3093 ULONG_PTR itemData; 3094 } DRAWITEMSTRUCT,*LPDRAWITEMSTRUCT,*PDRAWITEMSTRUCT; 3095 3096 typedef struct { 3097 UINT cbSize; 3098 int iTabLength; 3099 int iLeftMargin; 3100 int iRightMargin; 3101 UINT uiLengthDrawn; 3102 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS; 3103 3104 typedef struct tagPAINTSTRUCT { 3105 HDC hdc; 3106 BOOL fErase; 3107 RECT rcPaint; 3108 BOOL fRestore; 3109 BOOL fIncUpdate; 3110 BYTE rgbReserved[32]; 3111 } PAINTSTRUCT, *PPAINTSTRUCT,*LPPAINTSTRUCT; 3112 3113 typedef struct tagMSG { 3114 HWND hwnd; 3115 UINT message; 3116 WPARAM wParam; 3117 LPARAM lParam; 3118 DWORD time; 3119 POINT pt; 3120 } MSG,*LPMSG,*PMSG; 3121 3122 typedef struct _ICONINFO { 3123 BOOL fIcon; 3124 DWORD xHotspot; 3125 DWORD yHotspot; 3126 HBITMAP hbmMask; 3127 HBITMAP hbmColor; 3128 } ICONINFO,*PICONINFO; 3129 3130 typedef struct _ICONINFOEXA 3131 { 3132 DWORD cbSize; 3133 BOOL fIcon; 3134 DWORD xHotspot; 3135 DWORD yHotspot; 3136 HBITMAP hbmMask; 3137 HBITMAP hbmColor; 3138 WORD wResID; 3139 CHAR szModName[MAX_PATH]; 3140 CHAR szResName[MAX_PATH]; 3141 } ICONINFOEXA, *PICONINFOEXA; 3142 3143 typedef struct _ICONINFOEXW 3144 { 3145 DWORD cbSize; 3146 BOOL fIcon; 3147 DWORD xHotspot; 3148 DWORD yHotspot; 3149 HBITMAP hbmMask; 3150 HBITMAP hbmColor; 3151 WORD wResID; 3152 WCHAR szModName[MAX_PATH]; 3153 WCHAR szResName[MAX_PATH]; 3154 } ICONINFOEXW, *PICONINFOEXW; 3155 3156 typedef struct tagNMHDR { 3157 HWND hwndFrom; 3158 UINT_PTR idFrom; 3159 UINT code; 3160 } NMHDR,*LPNMHDR; 3161 3162 typedef struct _WNDCLASSA { 3163 UINT style; 3164 WNDPROC lpfnWndProc; 3165 int cbClsExtra; 3166 int cbWndExtra; 3167 HINSTANCE hInstance; 3168 HICON hIcon; 3169 HCURSOR hCursor; 3170 HBRUSH hbrBackground; 3171 LPCSTR lpszMenuName; 3172 LPCSTR lpszClassName; 3173 } WNDCLASSA,*LPWNDCLASSA,*PWNDCLASSA; 3174 3175 typedef struct _WNDCLASSW { 3176 UINT style; 3177 WNDPROC lpfnWndProc; 3178 int cbClsExtra; 3179 int cbWndExtra; 3180 HINSTANCE hInstance; 3181 HICON hIcon; 3182 HCURSOR hCursor; 3183 HBRUSH hbrBackground; 3184 LPCWSTR lpszMenuName; 3185 LPCWSTR lpszClassName; 3186 } WNDCLASSW,*LPWNDCLASSW,*PWNDCLASSW; 3187 3188 typedef enum tagAR_STATE { 3189 AR_ENABLED = 0x0, 3190 AR_DISABLED = 0x1, 3191 AR_SUPPRESSED = 0x2, 3192 AR_REMOTESESSION = 0x4, 3193 AR_MULTIMON = 0x8, 3194 AR_NOSENSOR = 0x10, 3195 AR_NOT_SUPPORTED = 0x20, 3196 AR_DOCKED = 0x40, 3197 AR_LAPTOP = 0x80 3198 } AR_STATE, *PAR_STATE; 3199 3200 typedef struct _WNDCLASSEXA { 3201 UINT cbSize; 3202 UINT style; 3203 WNDPROC lpfnWndProc; 3204 int cbClsExtra; 3205 int cbWndExtra; 3206 HINSTANCE hInstance; 3207 HICON hIcon; 3208 HCURSOR hCursor; 3209 HBRUSH hbrBackground; 3210 LPCSTR lpszMenuName; 3211 LPCSTR lpszClassName; 3212 HICON hIconSm; 3213 } WNDCLASSEXA,*LPWNDCLASSEXA,*PWNDCLASSEXA; 3214 3215 typedef struct _WNDCLASSEXW { 3216 UINT cbSize; 3217 UINT style; 3218 WNDPROC lpfnWndProc; 3219 int cbClsExtra; 3220 int cbWndExtra; 3221 HINSTANCE hInstance; 3222 HICON hIcon; 3223 HCURSOR hCursor; 3224 HBRUSH hbrBackground; 3225 LPCWSTR lpszMenuName; 3226 LPCWSTR lpszClassName; 3227 HICON hIconSm; 3228 } WNDCLASSEXW,*LPWNDCLASSEXW,*PWNDCLASSEXW; 3229 3230 #define MNGOF_TOPGAP 0x00000001 3231 #define MNGOF_BOTTOMGAP 0x00000002 3232 3233 typedef struct tagMENUGETOBJECTINFO { 3234 DWORD dwFlags; 3235 UINT uPos; 3236 HMENU hmenu; 3237 PVOID riid; 3238 PVOID pvObj; 3239 } MENUGETOBJECTINFO,*PMENUGETOBJECTINFO; 3240 3241 typedef struct tagMENUITEMINFOA { 3242 UINT cbSize; 3243 UINT fMask; 3244 UINT fType; 3245 UINT fState; 3246 UINT wID; 3247 HMENU hSubMenu; 3248 HBITMAP hbmpChecked; 3249 HBITMAP hbmpUnchecked; 3250 ULONG_PTR dwItemData; 3251 LPSTR dwTypeData; 3252 UINT cch; 3253 #if (_WIN32_WINNT >= 0x0500) 3254 HBITMAP hbmpItem; 3255 #endif 3256 } MENUITEMINFOA,*LPMENUITEMINFOA; 3257 typedef const MENUITEMINFOA *LPCMENUITEMINFOA; 3258 3259 typedef struct tagMENUITEMINFOW { 3260 UINT cbSize; 3261 UINT fMask; 3262 UINT fType; 3263 UINT fState; 3264 UINT wID; 3265 HMENU hSubMenu; 3266 HBITMAP hbmpChecked; 3267 HBITMAP hbmpUnchecked; 3268 ULONG_PTR dwItemData; 3269 LPWSTR dwTypeData; 3270 UINT cch; 3271 #if (_WIN32_WINNT >= 0x0500) 3272 HBITMAP hbmpItem; 3273 #endif 3274 } MENUITEMINFOW,*LPMENUITEMINFOW; 3275 3276 typedef const MENUITEMINFOW *LPCMENUITEMINFOW; 3277 3278 typedef struct tagSCROLLINFO { 3279 UINT cbSize; 3280 UINT fMask; 3281 int nMin; 3282 int nMax; 3283 UINT nPage; 3284 int nPos; 3285 int nTrackPos; 3286 } SCROLLINFO,*LPSCROLLINFO; 3287 typedef const SCROLLINFO *LPCSCROLLINFO; 3288 3289 typedef struct _WINDOWPLACEMENT { 3290 UINT length; 3291 UINT flags; 3292 UINT showCmd; 3293 POINT ptMinPosition; 3294 POINT ptMaxPosition; 3295 RECT rcNormalPosition; 3296 } WINDOWPLACEMENT,*LPWINDOWPLACEMENT,*PWINDOWPLACEMENT; 3297 3298 typedef struct { 3299 WORD versionNumber; 3300 WORD offset; 3301 } MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER; 3302 3303 typedef struct { 3304 WORD mtOption; 3305 WORD mtID; 3306 WCHAR mtString[1]; 3307 } MENUITEMTEMPLATE, *PMENUITEMTEMPLATE; 3308 3309 typedef void MENUTEMPLATE,MENUTEMPLATEA,MENUTEMPLATEW,*LPMENUTEMPLATEA,*LPMENUTEMPLATEW,*LPMENUTEMPLATE; 3310 3311 typedef struct tagHELPINFO { 3312 UINT cbSize; 3313 int iContextType; 3314 int iCtrlId; 3315 HANDLE hItemHandle; 3316 DWORD_PTR dwContextId; 3317 POINT MousePos; 3318 } HELPINFO,*LPHELPINFO; 3319 3320 typedef void(CALLBACK *MSGBOXCALLBACK)(LPHELPINFO); 3321 3322 typedef struct { 3323 UINT cbSize; 3324 HWND hwndOwner; 3325 HINSTANCE hInstance; 3326 LPCSTR lpszText; 3327 LPCSTR lpszCaption; 3328 DWORD dwStyle; 3329 LPCSTR lpszIcon; 3330 DWORD_PTR dwContextHelpId; 3331 MSGBOXCALLBACK lpfnMsgBoxCallback; 3332 DWORD dwLanguageId; 3333 } MSGBOXPARAMSA,*PMSGBOXPARAMSA,*LPMSGBOXPARAMSA; 3334 3335 typedef struct { 3336 UINT cbSize; 3337 HWND hwndOwner; 3338 HINSTANCE hInstance; 3339 LPCWSTR lpszText; 3340 LPCWSTR lpszCaption; 3341 DWORD dwStyle; 3342 LPCWSTR lpszIcon; 3343 DWORD_PTR dwContextHelpId; 3344 MSGBOXCALLBACK lpfnMsgBoxCallback; 3345 DWORD dwLanguageId; 3346 } MSGBOXPARAMSW,*PMSGBOXPARAMSW,*LPMSGBOXPARAMSW; 3347 3348 typedef struct tagUSEROBJECTFLAGS { 3349 BOOL fInherit; 3350 BOOL fReserved; 3351 DWORD dwFlags; 3352 } USEROBJECTFLAGS, *PUSEROBJECTFLAGS; 3353 3354 typedef struct tagFILTERKEYS { 3355 UINT cbSize; 3356 DWORD dwFlags; 3357 DWORD iWaitMSec; 3358 DWORD iDelayMSec; 3359 DWORD iRepeatMSec; 3360 DWORD iBounceMSec; 3361 } FILTERKEYS, *LPFILTERKEYS; 3362 3363 typedef struct tagHIGHCONTRASTA { 3364 UINT cbSize; 3365 DWORD dwFlags; 3366 LPSTR lpszDefaultScheme; 3367 } HIGHCONTRASTA,*LPHIGHCONTRASTA; 3368 3369 typedef struct tagHIGHCONTRASTW { 3370 UINT cbSize; 3371 DWORD dwFlags; 3372 LPWSTR lpszDefaultScheme; 3373 } HIGHCONTRASTW,*LPHIGHCONTRASTW; 3374 3375 #if defined(_WINGDI_) && !defined(NOGDI) 3376 typedef struct tagICONMETRICSA { 3377 UINT cbSize; 3378 int iHorzSpacing; 3379 int iVertSpacing; 3380 int iTitleWrap; 3381 LOGFONTA lfFont; 3382 } ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA; 3383 3384 typedef struct tagICONMETRICSW { 3385 UINT cbSize; 3386 int iHorzSpacing; 3387 int iVertSpacing; 3388 int iTitleWrap; 3389 LOGFONTW lfFont; 3390 } ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW; 3391 3392 #ifdef UNICODE 3393 typedef ICONMETRICSW ICONMETRICS,*LPICONMETRICS; 3394 #else /* UNICODE */ 3395 typedef ICONMETRICSA ICONMETRICS,*LPICONMETRICS; 3396 #endif /* UNICODE */ 3397 #endif /* NOGDI */ 3398 3399 typedef struct tagMINIMIZEDMETRICS { 3400 UINT cbSize; 3401 int iWidth; 3402 int iHorzGap; 3403 int iVertGap; 3404 int iArrange; 3405 } MINIMIZEDMETRICS, *PMINIMIZEDMETRICS,*LPMINIMIZEDMETRICS; 3406 3407 #define WDA_NONE 0x0 3408 #define WDA_MONITOR 0x1 3409 3410 typedef struct tagMOUSEKEYS{ 3411 UINT cbSize; 3412 DWORD dwFlags; 3413 DWORD iMaxSpeed; 3414 DWORD iTimeToMaxSpeed; 3415 DWORD iCtrlSpeed; 3416 DWORD dwReserved1; 3417 DWORD dwReserved2; 3418 } MOUSEKEYS,*LPMOUSEKEYS; 3419 3420 #if defined(_WINGDI_) && !defined(NOGDI) 3421 typedef struct tagNONCLIENTMETRICSA { 3422 UINT cbSize; 3423 int iBorderWidth; 3424 int iScrollWidth; 3425 int iScrollHeight; 3426 int iCaptionWidth; 3427 int iCaptionHeight; 3428 LOGFONTA lfCaptionFont; 3429 int iSmCaptionWidth; 3430 int iSmCaptionHeight; 3431 LOGFONTA lfSmCaptionFont; 3432 int iMenuWidth; 3433 int iMenuHeight; 3434 LOGFONTA lfMenuFont; 3435 LOGFONTA lfStatusFont; 3436 LOGFONTA lfMessageFont; 3437 #if (WINVER >= 0x0600) 3438 int iPaddedBorderWidth; 3439 #endif 3440 } NONCLIENTMETRICSA, *PNONCLIENTMETRICSA,*LPNONCLIENTMETRICSA; 3441 3442 typedef struct tagNONCLIENTMETRICSW { 3443 UINT cbSize; 3444 int iBorderWidth; 3445 int iScrollWidth; 3446 int iScrollHeight; 3447 int iCaptionWidth; 3448 int iCaptionHeight; 3449 LOGFONTW lfCaptionFont; 3450 int iSmCaptionWidth; 3451 int iSmCaptionHeight; 3452 LOGFONTW lfSmCaptionFont; 3453 int iMenuWidth; 3454 int iMenuHeight; 3455 LOGFONTW lfMenuFont; 3456 LOGFONTW lfStatusFont; 3457 LOGFONTW lfMessageFont; 3458 #if (WINVER >= 0x0600) 3459 int iPaddedBorderWidth; 3460 #endif 3461 } NONCLIENTMETRICSW, *PNONCLIENTMETRICSW,*LPNONCLIENTMETRICSW; 3462 3463 #ifdef UNICODE 3464 typedef NONCLIENTMETRICSW NONCLIENTMETRICS,*LPNONCLIENTMETRICS; 3465 #else /* UNICODE */ 3466 typedef NONCLIENTMETRICSA NONCLIENTMETRICS,*LPNONCLIENTMETRICS; 3467 #endif /* UNICODE */ 3468 #endif 3469 3470 typedef struct tagSERIALKEYSA { 3471 UINT cbSize; 3472 DWORD dwFlags; 3473 LPSTR lpszActivePort; 3474 LPSTR lpszPort; 3475 UINT iBaudRate; 3476 UINT iPortState; 3477 UINT iActive; 3478 } SERIALKEYSA,*LPSERIALKEYSA; 3479 3480 typedef struct tagSERIALKEYSW { 3481 UINT cbSize; 3482 DWORD dwFlags; 3483 LPWSTR lpszActivePort; 3484 LPWSTR lpszPort; 3485 UINT iBaudRate; 3486 UINT iPortState; 3487 UINT iActive; 3488 } SERIALKEYSW,*LPSERIALKEYSW; 3489 3490 typedef struct tagSOUNDSENTRYA { 3491 UINT cbSize; 3492 DWORD dwFlags; 3493 DWORD iFSTextEffect; 3494 DWORD iFSTextEffectMSec; 3495 DWORD iFSTextEffectColorBits; 3496 DWORD iFSGrafEffect; 3497 DWORD iFSGrafEffectMSec; 3498 DWORD iFSGrafEffectColor; 3499 DWORD iWindowsEffect; 3500 DWORD iWindowsEffectMSec; 3501 LPSTR lpszWindowsEffectDLL; 3502 DWORD iWindowsEffectOrdinal; 3503 } SOUNDSENTRYA,*LPSOUNDSENTRYA; 3504 3505 typedef struct tagSOUNDSENTRYW { 3506 UINT cbSize; 3507 DWORD dwFlags; 3508 DWORD iFSTextEffect; 3509 DWORD iFSTextEffectMSec; 3510 DWORD iFSTextEffectColorBits; 3511 DWORD iFSGrafEffect; 3512 DWORD iFSGrafEffectMSec; 3513 DWORD iFSGrafEffectColor; 3514 DWORD iWindowsEffect; 3515 DWORD iWindowsEffectMSec; 3516 LPWSTR lpszWindowsEffectDLL; 3517 DWORD iWindowsEffectOrdinal; 3518 } SOUNDSENTRYW,*LPSOUNDSENTRYW; 3519 3520 #if (_WIN32_WINNT >= 0x0600) 3521 typedef struct tagAUDIODESCRIPTION { 3522 UINT cbSize; 3523 BOOL Enabled; 3524 LCID Locale; 3525 } AUDIODESCRIPTION, *LPAUDIODESCRIPTION; 3526 #endif 3527 3528 typedef struct tagSTICKYKEYS { 3529 DWORD cbSize; 3530 DWORD dwFlags; 3531 } STICKYKEYS,*LPSTICKYKEYS; 3532 3533 typedef struct tagTOGGLEKEYS { 3534 DWORD cbSize; 3535 DWORD dwFlags; 3536 } TOGGLEKEYS, *LPTOGGLEKEYS; 3537 3538 typedef struct tagMOUSEHOOKSTRUCT { 3539 POINT pt; 3540 HWND hwnd; 3541 UINT wHitTestCode; 3542 ULONG_PTR dwExtraInfo; 3543 } MOUSEHOOKSTRUCT,*LPMOUSEHOOKSTRUCT,*PMOUSEHOOKSTRUCT; 3544 3545 typedef struct tagHARDWAREHOOKSTRUCT { 3546 HWND hwnd; 3547 UINT message; 3548 WPARAM wParam; 3549 LPARAM lParam; 3550 } HARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT; 3551 3552 #if ( _WIN32_WINNT >= 0x0500 ) 3553 #ifdef __cplusplus 3554 typedef struct tagMOUSEHOOKSTRUCTEX : public tagMOUSEHOOKSTRUCT 3555 { 3556 DWORD mouseData; 3557 } MOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX; 3558 #else 3559 typedef struct tagMOUSEHOOKSTRUCTEX 3560 { 3561 MOUSEHOOKSTRUCT MOUSEHOOKSTRUCT; 3562 DWORD mouseData; 3563 } MOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX; 3564 #endif 3565 #endif 3566 3567 typedef struct tagTRACKMOUSEEVENT { 3568 DWORD cbSize; 3569 DWORD dwFlags; 3570 HWND hwndTrack; 3571 DWORD dwHoverTime; 3572 } TRACKMOUSEEVENT,*LPTRACKMOUSEEVENT; 3573 3574 typedef struct tagTPMPARAMS { 3575 UINT cbSize; 3576 RECT rcExclude; 3577 } TPMPARAMS,*LPTPMPARAMS; 3578 3579 typedef struct tagEVENTMSG { 3580 UINT message; 3581 UINT paramL; 3582 UINT paramH; 3583 DWORD time; 3584 HWND hwnd; 3585 } EVENTMSG,*PEVENTMSGMSG,*LPEVENTMSGMSG,*PEVENTMSG,*LPEVENTMSG; 3586 3587 typedef struct _WINDOWPOS { 3588 HWND hwnd; 3589 HWND hwndInsertAfter; 3590 int x; 3591 int y; 3592 int cx; 3593 int cy; 3594 UINT flags; 3595 } WINDOWPOS,*PWINDOWPOS,*LPWINDOWPOS; 3596 3597 typedef struct tagNCCALCSIZE_PARAMS { 3598 RECT rgrc[3]; 3599 PWINDOWPOS lppos; 3600 } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS; 3601 3602 typedef struct tagMDICREATESTRUCTA { 3603 LPCSTR szClass; 3604 LPCSTR szTitle; 3605 HANDLE hOwner; 3606 int x; 3607 int y; 3608 int cx; 3609 int cy; 3610 DWORD style; 3611 LPARAM lParam; 3612 } MDICREATESTRUCTA,*LPMDICREATESTRUCTA; 3613 3614 typedef struct tagMDICREATESTRUCTW { 3615 LPCWSTR szClass; 3616 LPCWSTR szTitle; 3617 HANDLE hOwner; 3618 int x; 3619 int y; 3620 int cx; 3621 int cy; 3622 DWORD style; 3623 LPARAM lParam; 3624 } MDICREATESTRUCTW,*LPMDICREATESTRUCTW; 3625 3626 typedef struct tagMINMAXINFO { 3627 POINT ptReserved; 3628 POINT ptMaxSize; 3629 POINT ptMaxPosition; 3630 POINT ptMinTrackSize; 3631 POINT ptMaxTrackSize; 3632 } MINMAXINFO,*PMINMAXINFO,*LPMINMAXINFO; 3633 3634 typedef struct tagMDINEXTMENU { 3635 HMENU hmenuIn; 3636 HMENU hmenuNext; 3637 HWND hwndNext; 3638 } MDINEXTMENU,*PMDINEXTMENU,*LPMDINEXTMENU; 3639 3640 typedef struct tagMEASUREITEMSTRUCT { 3641 UINT CtlType; 3642 UINT CtlID; 3643 UINT itemID; 3644 UINT itemWidth; 3645 UINT itemHeight; 3646 ULONG_PTR itemData; 3647 } MEASUREITEMSTRUCT,*PMEASUREITEMSTRUCT,*LPMEASUREITEMSTRUCT; 3648 3649 typedef struct tagDROPSTRUCT { 3650 HWND hwndSource; 3651 HWND hwndSink; 3652 DWORD wFmt; 3653 ULONG_PTR dwData; 3654 POINT ptDrop; 3655 DWORD dwControlData; 3656 } DROPSTRUCT,*PDROPSTRUCT,*LPDROPSTRUCT; 3657 3658 typedef DWORD HELPPOLY; 3659 typedef struct tagMULTIKEYHELPA { 3660 DWORD mkSize; 3661 CHAR mkKeylist; 3662 CHAR szKeyphrase[1]; 3663 } MULTIKEYHELPA,*PMULTIKEYHELPA,*LPMULTIKEYHELPA; 3664 3665 typedef struct tagMULTIKEYHELPW { 3666 DWORD mkSize; 3667 WCHAR mkKeylist; 3668 WCHAR szKeyphrase[1]; 3669 } MULTIKEYHELPW,*PMULTIKEYHELPW,*LPMULTIKEYHELPW; 3670 3671 typedef struct tagHELPWININFOA { 3672 int wStructSize; 3673 int x; 3674 int y; 3675 int dx; 3676 int dy; 3677 int wMax; 3678 CHAR rgchMember[2]; 3679 } HELPWININFOA,*PHELPWININFOA,*LPHELPWININFOA; 3680 3681 typedef struct tagHELPWININFOW { 3682 int wStructSize; 3683 int x; 3684 int y; 3685 int dx; 3686 int dy; 3687 int wMax; 3688 WCHAR rgchMember[2]; 3689 } HELPWININFOW,*PHELPWININFOW,*LPHELPWININFOW; 3690 3691 typedef struct tagSTYLESTRUCT { 3692 DWORD styleOld; 3693 DWORD styleNew; 3694 } STYLESTRUCT,*LPSTYLESTRUCT; 3695 3696 typedef struct tagALTTABINFO { 3697 DWORD cbSize; 3698 int cItems; 3699 int cColumns; 3700 int cRows; 3701 int iColFocus; 3702 int iRowFocus; 3703 int cxItem; 3704 int cyItem; 3705 POINT ptStart; 3706 } ALTTABINFO,*PALTTABINFO,*LPALTTABINFO; 3707 3708 typedef struct tagCOMBOBOXINFO { 3709 DWORD cbSize; 3710 RECT rcItem; 3711 RECT rcButton; 3712 DWORD stateButton; 3713 HWND hwndCombo; 3714 HWND hwndItem; 3715 HWND hwndList; 3716 } COMBOBOXINFO,*PCOMBOBOXINFO,*LPCOMBOBOXINFO; 3717 3718 typedef struct tagCURSORINFO { 3719 DWORD cbSize; 3720 DWORD flags; 3721 HCURSOR hCursor; 3722 POINT ptScreenPos; 3723 } CURSORINFO,*PCURSORINFO,*LPCURSORINFO; 3724 3725 typedef struct tagMENUBARINFO { 3726 DWORD cbSize; 3727 RECT rcBar; 3728 HMENU hMenu; 3729 HWND hwndMenu; 3730 BOOL fBarFocused:1; 3731 BOOL fFocused:1; 3732 } MENUBARINFO,*PMENUBARINFO; 3733 3734 typedef struct tagMENUINFO { 3735 DWORD cbSize; 3736 DWORD fMask; 3737 DWORD dwStyle; 3738 UINT cyMax; 3739 HBRUSH hbrBack; 3740 DWORD dwContextHelpID; 3741 ULONG_PTR dwMenuData; 3742 } MENUINFO,*LPMENUINFO; 3743 3744 typedef MENUINFO CONST *LPCMENUINFO; 3745 #define CCHILDREN_SCROLLBAR 5 3746 3747 typedef struct tagSCROLLBARINFO { 3748 DWORD cbSize; 3749 RECT rcScrollBar; 3750 int dxyLineButton; 3751 int xyThumbTop; 3752 int xyThumbBottom; 3753 int reserved; 3754 DWORD rgstate[CCHILDREN_SCROLLBAR+1]; 3755 } SCROLLBARINFO,*PSCROLLBARINFO,*LPSCROLLBARINFO; 3756 3757 #define CCHILDREN_TITLEBAR 5 3758 3759 typedef struct tagTITLEBARINFO { 3760 DWORD cbSize; 3761 RECT rcTitleBar; 3762 DWORD rgstate[CCHILDREN_TITLEBAR+1]; 3763 } TITLEBARINFO,*PTITLEBARINFO,*LPTITLEBARINFO; 3764 3765 typedef struct tagWINDOWINFO { 3766 DWORD cbSize; 3767 RECT rcWindow; 3768 RECT rcClient; 3769 DWORD dwStyle; 3770 DWORD dwExStyle; 3771 DWORD dwWindowStatus; 3772 UINT cxWindowBorders; 3773 UINT cyWindowBorders; 3774 ATOM atomWindowType; 3775 WORD wCreatorVersion; 3776 } WINDOWINFO,*PWINDOWINFO,*LPWINDOWINFO; 3777 3778 typedef struct tagLASTINPUTINFO { 3779 UINT cbSize; 3780 DWORD dwTime; 3781 } LASTINPUTINFO,*PLASTINPUTINFO; 3782 3783 typedef struct tagMONITORINFO { 3784 DWORD cbSize; 3785 RECT rcMonitor; 3786 RECT rcWork; 3787 DWORD dwFlags; 3788 } MONITORINFO,*LPMONITORINFO; 3789 3790 #define CCHDEVICENAME 32 3791 typedef struct tagMONITORINFOEXA { 3792 DWORD cbSize; 3793 RECT rcMonitor; 3794 RECT rcWork; 3795 DWORD dwFlags; 3796 CHAR szDevice[CCHDEVICENAME]; 3797 } MONITORINFOEXA,*LPMONITORINFOEXA; 3798 3799 typedef struct tagMONITORINFOEXW { 3800 DWORD cbSize; 3801 RECT rcMonitor; 3802 RECT rcWork; 3803 DWORD dwFlags; 3804 WCHAR szDevice[CCHDEVICENAME]; 3805 } MONITORINFOEXW,*LPMONITORINFOEXW; 3806 3807 typedef struct tagKBDLLHOOKSTRUCT { 3808 DWORD vkCode; 3809 DWORD scanCode; 3810 DWORD flags; 3811 DWORD time; 3812 ULONG_PTR dwExtraInfo; 3813 } KBDLLHOOKSTRUCT,*LPKBDLLHOOKSTRUCT,*PKBDLLHOOKSTRUCT; 3814 3815 typedef struct tagMSLLHOOKSTRUCT 3816 { 3817 POINT pt; 3818 DWORD mouseData; 3819 DWORD flags; 3820 DWORD time; 3821 ULONG_PTR dwExtraInfo; 3822 } MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT; 3823 3824 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) 3825 typedef struct { 3826 UINT cbSize; 3827 HWND hwnd; 3828 DWORD dwFlags; 3829 UINT uCount; 3830 DWORD dwTimeout; 3831 } FLASHWINFO,*PFLASHWINFO; 3832 #endif /* (WINVER >= 0x0500 || _WIN32_WINDOWS >= 0x0410) */ 3833 3834 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490) 3835 typedef struct tagMOUSEMOVEPOINT { 3836 int x; 3837 int y; 3838 DWORD time; 3839 ULONG_PTR dwExtraInfo; 3840 } MOUSEMOVEPOINT,*PMOUSEMOVEPOINT,*LPMOUSEMOVEPOINT; 3841 #endif 3842 3843 #if (_WIN32_WINNT >= 0x0400) 3844 typedef struct tagMOUSEINPUT { 3845 LONG dx; 3846 LONG dy; 3847 DWORD mouseData; 3848 DWORD dwFlags; 3849 DWORD time; 3850 ULONG_PTR dwExtraInfo; 3851 } MOUSEINPUT,*PMOUSEINPUT, *LPMOUSEINPUT; 3852 3853 typedef struct tagKEYBDINPUT { 3854 WORD wVk; 3855 WORD wScan; 3856 DWORD dwFlags; 3857 DWORD time; 3858 ULONG_PTR dwExtraInfo; 3859 } KEYBDINPUT, *PKEYBDINPUT, *LPKEYBDINPUT; 3860 3861 typedef struct tagHARDWAREINPUT { 3862 DWORD uMsg; 3863 WORD wParamL; 3864 WORD wParamH; 3865 } HARDWAREINPUT, *PHARDWAREINPUT, *LPHARDWAREINPUT; 3866 3867 typedef struct tagINPUT { 3868 DWORD type; 3869 _ANONYMOUS_UNION union { 3870 MOUSEINPUT mi; 3871 KEYBDINPUT ki; 3872 HARDWAREINPUT hi; 3873 } DUMMYUNIONNAME; 3874 } INPUT,*PINPUT,*LPINPUT; 3875 #endif /* (_WIN32_WINNT >= 0x0400) */ 3876 3877 #if (WINVER >= 0x0500) 3878 typedef struct tagGUITHREADINFO { 3879 DWORD cbSize; 3880 DWORD flags; 3881 HWND hwndActive; 3882 HWND hwndFocus; 3883 HWND hwndCapture; 3884 HWND hwndMenuOwner; 3885 HWND hwndMoveSize; 3886 HWND hwndCaret; 3887 RECT rcCaret; 3888 } GUITHREADINFO,*PGUITHREADINFO,*LPGUITHREADINFO; 3889 3890 typedef VOID (CALLBACK *WINEVENTPROC)(HWINEVENTHOOK,DWORD,HWND,LONG,LONG,DWORD,DWORD); 3891 #endif /* (WINVER >= 0x0500) */ 3892 3893 #if (_WIN32_WINNT >= 0x0501) 3894 typedef struct { 3895 UINT cbSize; 3896 HDESK hdesk; 3897 HWND hwnd; 3898 LUID luid; 3899 } BSMINFO,*PBSMINFO; 3900 DECLARE_HANDLE(HRAWINPUT); 3901 3902 typedef struct tagRAWINPUTHEADER { 3903 DWORD dwType; 3904 DWORD dwSize; 3905 HANDLE hDevice; 3906 WPARAM wParam; 3907 } RAWINPUTHEADER,*PRAWINPUTHEADER; 3908 3909 typedef struct tagRAWMOUSE { 3910 USHORT usFlags; 3911 _ANONYMOUS_UNION union { 3912 ULONG ulButtons; 3913 _ANONYMOUS_STRUCT struct { 3914 USHORT usButtonFlags; 3915 USHORT usButtonData; 3916 }; 3917 }; 3918 ULONG ulRawButtons; 3919 LONG lLastX; 3920 LONG lLastY; 3921 ULONG ulExtraInformation; 3922 } RAWMOUSE,*PRAWMOUSE,*LPRAWMOUSE; 3923 3924 typedef struct tagRAWKEYBOARD { 3925 USHORT MakeCode; 3926 USHORT Flags; 3927 USHORT Reserved; 3928 USHORT VKey; 3929 UINT Message; 3930 ULONG ExtraInformation; 3931 } RAWKEYBOARD,*PRAWKEYBOARD,*LPRAWKEYBOARD; 3932 3933 typedef struct tagRAWHID { 3934 DWORD dwSizeHid; 3935 DWORD dwCount; 3936 BYTE bRawData; 3937 } RAWHID,*PRAWHID,*LPRAWHID; 3938 3939 typedef struct tagRAWINPUT { 3940 RAWINPUTHEADER header; 3941 union { 3942 RAWMOUSE mouse; 3943 RAWKEYBOARD keyboard; 3944 RAWHID hid; 3945 } data; 3946 } RAWINPUT,*PRAWINPUT,*LPRAWINPUT; 3947 3948 typedef struct tagRAWINPUTDEVICE { 3949 USHORT usUsagePage; 3950 USHORT usUsage; 3951 DWORD dwFlags; 3952 HWND hwndTarget; 3953 } RAWINPUTDEVICE,*PRAWINPUTDEVICE,*LPRAWINPUTDEVICE; 3954 3955 typedef const RAWINPUTDEVICE *PCRAWINPUTDEVICE; 3956 3957 typedef struct tagRAWINPUTDEVICELIST { 3958 HANDLE hDevice; 3959 DWORD dwType; 3960 } RAWINPUTDEVICELIST,*PRAWINPUTDEVICELIST; 3961 3962 typedef struct tagRID_DEVICE_INFO_MOUSE { 3963 DWORD dwId; 3964 DWORD dwNumberOfButtons; 3965 DWORD dwSampleRate; 3966 BOOL fHasHorizontalWheel; 3967 } RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE; 3968 3969 typedef struct tagRID_DEVICE_INFO_KEYBOARD { 3970 DWORD dwType; 3971 DWORD dwSubType; 3972 DWORD dwKeyboardMode; 3973 DWORD dwNumberOfFunctionKeys; 3974 DWORD dwNumberOfIndicators; 3975 DWORD dwNumberOfKeysTotal; 3976 } RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD; 3977 3978 typedef struct tagRID_DEVICE_INFO_HID { 3979 DWORD dwVendorId; 3980 DWORD dwProductId; 3981 DWORD dwVersionNumber; 3982 USHORT usUsagePage; 3983 USHORT usUsage; 3984 } RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID; 3985 3986 typedef struct tagRID_DEVICE_INFO { 3987 DWORD cbSize; 3988 DWORD dwType; 3989 union { 3990 RID_DEVICE_INFO_MOUSE mouse; 3991 RID_DEVICE_INFO_KEYBOARD keyboard; 3992 RID_DEVICE_INFO_HID hid; 3993 } DUMMYUNIONNAME; 3994 } RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO; 3995 3996 #endif /* (_WIN32_WINNT >= 0x0501) */ 3997 3998 #define AnsiToOem CharToOemA 3999 #define OemToAnsi OemToCharA 4000 #define AnsiToOemBuff CharToOemBuffA 4001 #define OemToAnsiBuff OemToCharBuffA 4002 #define AnsiUpper CharUpperA 4003 #define AnsiUpperBuff CharUpperBuffA 4004 #define AnsiLower CharLowerA 4005 #define AnsiLowerBuff CharLowerBuffA 4006 #define AnsiNext CharNextA 4007 #define AnsiPrev CharPrevA 4008 #define MAKELPARAM(l,h) ((LPARAM)MAKELONG(l,h)) 4009 #define MAKEWPARAM(l,h) ((WPARAM)MAKELONG(l,h)) 4010 #define MAKELRESULT(l,h) ((LRESULT)MAKELONG(l,h)) 4011 #define POINTSTOPOINT(p,ps) { \ 4012 (p).x=LOWORD(*(DWORD *)&ps); \ 4013 (p).y=HIWORD(*(DWORD *)&ps); \ 4014 } 4015 #define POINTTOPOINTS(p) ((POINTS)MAKELONG((p).x,(p).y)) 4016 4017 #if (WINVER >= 0x0601) 4018 4019 typedef enum tagINPUT_MESSAGE_DEVICE_TYPE { 4020 IMDT_UNAVAILABLE = 0x00, 4021 IMDT_KEYBOARD = 0x01, 4022 IMDT_MOUSE = 0x02, 4023 IMDT_TOUCH = 0x04, 4024 IMDT_PEN = 0x08, 4025 IMDT_TOUCHPAD = 0x10 4026 } INPUT_MESSAGE_DEVICE_TYPE; 4027 4028 typedef enum tagINPUT_MESSAGE_ORIGIN_ID { 4029 IMO_UNAVAILABLE = 0x00, 4030 IMO_HARDWARE = 0x01, 4031 IMO_INJECTED = 0x02, 4032 IMO_SYSTEM = 0x04 4033 } INPUT_MESSAGE_ORIGIN_ID; 4034 4035 typedef struct tagINPUT_MESSAGE_SOURCE { 4036 INPUT_MESSAGE_DEVICE_TYPE deviceType; 4037 INPUT_MESSAGE_ORIGIN_ID originId; 4038 } INPUT_MESSAGE_SOURCE; 4039 4040 #endif /* WINVER >= 0x0601 */ 4041 4042 #if(WINVER >= 0x0602) 4043 4044 enum tagPOINTER_INPUT_TYPE { 4045 PT_POINTER = 1, 4046 PT_TOUCH, 4047 PT_PEN, 4048 PT_MOUSE, 4049 PT_TOUCHPAD 4050 }; 4051 typedef DWORD POINTER_INPUT_TYPE; 4052 4053 #endif /* WINVER >= 0x0602 */ 4054 4055 HKL WINAPI ActivateKeyboardLayout(_In_ HKL, _In_ UINT); 4056 BOOL WINAPI AdjustWindowRect(_Inout_ LPRECT, _In_ DWORD, _In_ BOOL); 4057 BOOL WINAPI AdjustWindowRectEx(_Inout_ LPRECT, _In_ DWORD, _In_ BOOL, _In_ DWORD); 4058 #if (_WIN32_WINNT >= 0x0500) 4059 BOOL WINAPI AnimateWindow(_In_ HWND, _In_ DWORD, _In_ DWORD); 4060 #endif /* (_WIN32_WINNT >= 0x0500) */ 4061 BOOL WINAPI AnyPopup(void); 4062 BOOL WINAPI AppendMenuA(_In_ HMENU, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCSTR); 4063 BOOL WINAPI AppendMenuW(_In_ HMENU, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR); 4064 UINT WINAPI ArrangeIconicWindows(_In_ HWND); 4065 BOOL WINAPI AttachThreadInput(_In_ DWORD, _In_ DWORD, _In_ BOOL); 4066 HDWP WINAPI BeginDeferWindowPos(_In_ int); 4067 HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT); 4068 BOOL WINAPI BringWindowToTop(_In_ HWND); 4069 long WINAPI BroadcastSystemMessage(_In_ DWORD, _Inout_opt_ LPDWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4070 4071 #if (_WIN32_WINNT >= 0x0400) 4072 4073 LONG 4074 WINAPI 4075 BroadcastSystemMessageA( 4076 _In_ DWORD flags, 4077 _Inout_opt_ LPDWORD lpInfo, 4078 _In_ UINT Msg, 4079 _In_ WPARAM wParam, 4080 _In_ LPARAM lParam); 4081 4082 LONG 4083 WINAPI 4084 BroadcastSystemMessageW( 4085 _In_ DWORD flags, 4086 _Inout_opt_ LPDWORD lpInfo, 4087 _In_ UINT Msg, 4088 _In_ WPARAM wParam, 4089 _In_ LPARAM lParam); 4090 4091 #endif /* (_WIN32_WINNT >= 0x0400) */ 4092 4093 #if (_WIN32_WINNT >= 0x0501) 4094 4095 LONG 4096 WINAPI 4097 BroadcastSystemMessageExA( 4098 _In_ DWORD flags, 4099 _Inout_opt_ LPDWORD lpInfo, 4100 _In_ UINT Msg, 4101 _In_ WPARAM wParam, 4102 _In_ LPARAM lParam, 4103 _Out_opt_ PBSMINFO pbsmInfo); 4104 4105 LONG 4106 WINAPI 4107 BroadcastSystemMessageExW( 4108 _In_ DWORD flags, 4109 _Inout_opt_ LPDWORD lpInfo, 4110 _In_ UINT Msg, 4111 _In_ WPARAM wParam, 4112 _In_ LPARAM lParam, 4113 _Out_opt_ PBSMINFO pbsmInfo); 4114 4115 #endif /* (_WIN32_WINNT >= 0x0501) */ 4116 4117 void WINAPI CalcChildScroll(HWND, INT); 4118 BOOL WINAPI CallMsgFilterA(_In_ LPMSG, _In_ INT); 4119 BOOL WINAPI CallMsgFilterW(_In_ LPMSG, _In_ INT); 4120 LRESULT WINAPI CallNextHookEx(_In_opt_ HHOOK, _In_ int, _In_ WPARAM, _In_ LPARAM); 4121 LRESULT WINAPI CallWindowProcA(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4122 LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4123 4124 WORD 4125 WINAPI 4126 CascadeWindows( 4127 _In_opt_ HWND hwndParent, 4128 _In_ UINT wHow, 4129 _In_opt_ CONST RECT * lpRect, 4130 _In_ UINT cKids, 4131 _In_reads_opt_(cKids) const HWND FAR *lpKids); 4132 4133 BOOL WINAPI ChangeClipboardChain(_In_ HWND, _In_ HWND); 4134 #if defined(_WINGDI_) && !defined(NOGDI) 4135 LONG WINAPI ChangeDisplaySettingsA(_In_opt_ PDEVMODEA, _In_ DWORD); 4136 LONG WINAPI ChangeDisplaySettingsW(_In_opt_ PDEVMODEW, _In_ DWORD); 4137 LONG WINAPI ChangeDisplaySettingsExA(_In_opt_ LPCSTR, _In_opt_ LPDEVMODEA, _Reserved_ HWND, _In_ DWORD, _In_opt_ LPVOID); 4138 LONG WINAPI ChangeDisplaySettingsExW(_In_opt_ LPCWSTR, _In_opt_ LPDEVMODEW, _Reserved_ HWND, _In_ DWORD, _In_opt_ LPVOID); 4139 #endif 4140 BOOL WINAPI ChangeMenuA(_In_ HMENU, _In_ UINT, _In_opt_ LPCSTR, _In_ UINT, _In_ UINT); 4141 BOOL WINAPI ChangeMenuW(_In_ HMENU, _In_ UINT, _In_opt_ LPCWSTR, _In_ UINT, _In_ UINT); 4142 LPSTR WINAPI CharLowerA(_Inout_ LPSTR); 4143 LPWSTR WINAPI CharLowerW(_Inout_ LPWSTR); 4144 4145 DWORD 4146 WINAPI 4147 CharLowerBuffA( 4148 _Inout_updates_(cchLength) LPSTR lpsz, 4149 _In_ DWORD cchLength); 4150 4151 DWORD 4152 WINAPI 4153 CharLowerBuffW( 4154 _Inout_updates_(cchLength) LPWSTR lpsz, 4155 _In_ DWORD cchLength); 4156 4157 LPSTR WINAPI CharNextA(_In_ LPCSTR); 4158 LPWSTR WINAPI CharNextW(_In_ LPCWSTR); 4159 4160 LPSTR WINAPI CharNextExA(_In_ WORD, _In_ LPCSTR, _In_ DWORD); 4161 LPWSTR WINAPI CharNextExW(_In_ WORD, _In_ LPCWSTR, _In_ DWORD); 4162 LPSTR WINAPI CharPrevA(_In_ LPCSTR, _In_ LPCSTR); 4163 LPWSTR WINAPI CharPrevW(_In_ LPCWSTR, _In_ LPCWSTR); 4164 LPSTR WINAPI CharPrevExA(_In_ WORD, _In_ LPCSTR, _In_ LPCSTR, _In_ DWORD); 4165 LPWSTR WINAPI CharPrevExW(_In_ WORD, _In_ LPCWSTR, _In_ LPCWSTR, _In_ DWORD); 4166 4167 BOOL 4168 WINAPI 4169 CharToOemA( 4170 _In_ LPCSTR pSrc, 4171 _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst); 4172 4173 BOOL 4174 WINAPI 4175 CharToOemW( 4176 _In_ LPCWSTR pSrc, 4177 _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst); 4178 4179 BOOL 4180 WINAPI 4181 CharToOemBuffA( 4182 _In_ LPCSTR lpszSrc, 4183 _Out_writes_(cchDstLength) LPSTR lpszDst, 4184 _In_ DWORD cchDstLength); 4185 4186 BOOL 4187 WINAPI 4188 CharToOemBuffW( 4189 _In_ LPCWSTR lpszSrc, 4190 _Out_writes_(cchDstLength) LPSTR lpszDst, 4191 _In_ DWORD cchDstLength); 4192 4193 LPSTR WINAPI CharUpperA(_Inout_ LPSTR); 4194 LPWSTR WINAPI CharUpperW(_Inout_ LPWSTR); 4195 4196 DWORD 4197 WINAPI 4198 CharUpperBuffA( 4199 _Inout_updates_(cchLength) LPSTR lpsz, 4200 _In_ DWORD cchLength); 4201 4202 DWORD 4203 WINAPI 4204 CharUpperBuffW( 4205 _Inout_updates_(cchLength) LPWSTR lpsz, 4206 _In_ DWORD cchLength); 4207 4208 BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT); 4209 DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT); 4210 BOOL WINAPI CheckMenuRadioItem(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT, _In_ UINT); 4211 BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int); 4212 HWND WINAPI ChildWindowFromPoint(_In_ HWND, _In_ POINT); 4213 HWND WINAPI ChildWindowFromPointEx(_In_ HWND, _In_ POINT, _In_ UINT); 4214 BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT); 4215 BOOL WINAPI ClipCursor(_In_opt_ LPCRECT); 4216 BOOL WINAPI CloseClipboard(void); 4217 BOOL WINAPI CloseDesktop(_In_ HDESK); 4218 BOOL WINAPI CloseWindow(_In_ HWND); 4219 BOOL WINAPI CloseWindowStation(_In_ HWINSTA); 4220 4221 int 4222 WINAPI 4223 CopyAcceleratorTableA( 4224 _In_ HACCEL hAccelSrc, 4225 _Out_writes_to_opt_(cAccelEntries, return) LPACCEL lpAccelDst, 4226 _In_ int cAccelEntries); 4227 4228 int 4229 WINAPI 4230 CopyAcceleratorTableW( 4231 _In_ HACCEL hAccelSrc, 4232 _Out_writes_to_opt_(cAccelEntries, return) LPACCEL lpAccelDst, 4233 _In_ int cAccelEntries); 4234 4235 #define CopyCursor(c) ((HCURSOR)CopyIcon((HICON)(c))) 4236 HICON WINAPI CopyIcon(_In_ HICON); 4237 HANDLE WINAPI CopyImage(_In_ HANDLE, _In_ UINT, _In_ int, _In_ int, _In_ UINT); 4238 BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT); 4239 int WINAPI CountClipboardFormats(void); 4240 4241 HACCEL 4242 WINAPI 4243 CreateAcceleratorTableA( 4244 _In_reads_(cAccel) LPACCEL paccel, 4245 _In_ int cAccel); 4246 4247 HACCEL 4248 WINAPI 4249 CreateAcceleratorTableW( 4250 _In_reads_(cAccel) LPACCEL paccel, 4251 _In_ int cAccel); 4252 4253 BOOL WINAPI CreateCaret(_In_ HWND, _In_opt_ HBITMAP, _In_ int, _In_ int); 4254 HCURSOR WINAPI CreateCursor(_In_opt_ HINSTANCE, _In_ int, _In_ int, _In_ int, _In_ int, _In_ CONST VOID*, _In_ CONST VOID*); 4255 4256 #if defined(_WINGDI_) && !defined(NOGDI) 4257 4258 HDESK 4259 WINAPI 4260 CreateDesktopA( 4261 _In_ LPCSTR lpszDesktop, 4262 _Reserved_ LPCSTR lpszDevice, 4263 _Reserved_ DEVMODEA* pDevmode, 4264 _In_ DWORD dwFlags, 4265 _In_ ACCESS_MASK dwDesiredAccess, 4266 _In_opt_ LPSECURITY_ATTRIBUTES lpsa); 4267 4268 HDESK 4269 WINAPI 4270 CreateDesktopW( 4271 _In_ LPCWSTR lpszDesktop, 4272 _Reserved_ LPCWSTR lpszDevice, 4273 _Reserved_ DEVMODEW* pDevmode, 4274 _In_ DWORD dwFlags, 4275 _In_ ACCESS_MASK dwDesiredAccess, 4276 _In_opt_ LPSECURITY_ATTRIBUTES lpsa); 4277 4278 #endif 4279 4280 #define CreateDialogA(h,n,w,f) CreateDialogParamA(h,n,w,f,0) 4281 #define CreateDialogW(h,n,w,f) CreateDialogParamW(h,n,w,f,0) 4282 #define CreateDialogIndirectA(h,t,w,f) CreateDialogIndirectParamA(h,t,w,f,0) 4283 #define CreateDialogIndirectW(h,t,w,f) CreateDialogIndirectParamW(h,t,w,f,0) 4284 HWND WINAPI CreateDialogIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); 4285 HWND WINAPI CreateDialogIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); 4286 HWND WINAPI CreateDialogParamA(_In_opt_ HINSTANCE, _In_ LPCSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); 4287 HWND WINAPI CreateDialogParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); 4288 HICON WINAPI CreateIcon(_In_opt_ HINSTANCE, _In_ int, _In_ int, _In_ BYTE, _In_ BYTE, _In_ const BYTE*, _In_ const BYTE*); 4289 4290 HICON 4291 WINAPI 4292 CreateIconFromResource( 4293 _In_reads_bytes_(dwResSize) PBYTE presbits, 4294 _In_ DWORD dwResSize, 4295 _In_ BOOL fIcon, 4296 _In_ DWORD dwVer); 4297 4298 HICON 4299 WINAPI 4300 CreateIconFromResourceEx( 4301 _In_reads_bytes_(dwResSize) PBYTE presbits, 4302 _In_ DWORD dwResSize, 4303 _In_ BOOL fIcon, 4304 _In_ DWORD dwVer, 4305 _In_ int cxDesired, 4306 _In_ int cyDesired, 4307 _In_ UINT Flags); 4308 4309 HICON WINAPI CreateIconIndirect(_In_ PICONINFO); 4310 HWND WINAPI CreateMDIWindowA(_In_ LPCSTR, _In_ LPCSTR, _In_ DWORD, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HWND, _In_opt_ HINSTANCE, _In_ LPARAM); 4311 HWND WINAPI CreateMDIWindowW(_In_ LPCWSTR, _In_ LPCWSTR, _In_ DWORD, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HWND, _In_opt_ HINSTANCE, _In_ LPARAM); 4312 HMENU WINAPI CreateMenu(void); 4313 HMENU WINAPI CreatePopupMenu(void); 4314 4315 #define CreateWindowA(a,b,c,d,e,f,g,h,i,j,k) CreateWindowExA(0,a,b,c,d,e,f,g,h,i,j,k) 4316 #define CreateWindowW(a,b,c,d,e,f,g,h,i,j,k) CreateWindowExW(0,a,b,c,d,e,f,g,h,i,j,k) 4317 4318 HWND 4319 WINAPI 4320 CreateWindowExA( 4321 _In_ DWORD dwExStyle, 4322 _In_opt_ LPCSTR lpClassName, 4323 _In_opt_ LPCSTR lpWindowName, 4324 _In_ DWORD dwStyle, 4325 _In_ int X, 4326 _In_ int Y, 4327 _In_ int nWidth, 4328 _In_ int nHeight, 4329 _In_opt_ HWND hWndParent, 4330 _In_opt_ HMENU hMenu, 4331 _In_opt_ HINSTANCE hInstance, 4332 _In_opt_ LPVOID lpParam); 4333 4334 HWND 4335 WINAPI 4336 CreateWindowExW( 4337 _In_ DWORD dwExStyle, 4338 _In_opt_ LPCWSTR lpClassName, 4339 _In_opt_ LPCWSTR lpWindowName, 4340 _In_ DWORD dwStyle, 4341 _In_ int X, 4342 _In_ int Y, 4343 _In_ int nWidth, 4344 _In_ int nHeight, 4345 _In_opt_ HWND hWndParent, 4346 _In_opt_ HMENU hMenu, 4347 _In_opt_ HINSTANCE hInstance, 4348 _In_opt_ LPVOID lpParam); 4349 4350 #ifndef NOWINDOWSTATION 4351 4352 HWINSTA 4353 WINAPI 4354 CreateWindowStationA( 4355 _In_opt_ LPCSTR lpwinsta, 4356 _In_ DWORD dwFlags, 4357 _In_ ACCESS_MASK dwDesiredAccess, 4358 _In_opt_ LPSECURITY_ATTRIBUTES lpsa); 4359 4360 HWINSTA 4361 WINAPI 4362 CreateWindowStationW( 4363 _In_opt_ LPCWSTR lpwinsta, 4364 _In_ DWORD dwFlags, 4365 _In_ ACCESS_MASK dwDesiredAccess, 4366 _In_opt_ LPSECURITY_ATTRIBUTES lpsa); 4367 4368 #endif 4369 4370 LRESULT WINAPI DefDlgProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4371 LRESULT WINAPI DefDlgProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4372 HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT); 4373 LRESULT WINAPI DefFrameProcA(_In_ HWND, _In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4374 LRESULT WINAPI DefFrameProcW(_In_ HWND, _In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4375 #define DefHookProc(c,p,lp,h) CallNextHookEx((HHOOK)*h,c,p,lp) 4376 LRESULT WINAPI DefMDIChildProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4377 LRESULT WINAPI DefMDIChildProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4378 4379 #if (_WIN32_WINNT >= 0x0501) 4380 LRESULT 4381 WINAPI 4382 DefRawInputProc( 4383 _In_reads_(nInput) PRAWINPUT *paRawInput, 4384 _In_ INT nInput, 4385 _In_ UINT cbSizeHeader); 4386 #endif 4387 4388 LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4389 LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 4390 BOOL WINAPI DeleteMenu(_In_ HMENU, _In_ UINT, _In_ UINT); 4391 BOOL WINAPI DeregisterShellHookWindow(_In_ HWND); 4392 BOOL WINAPI DestroyAcceleratorTable(_In_ HACCEL); 4393 BOOL WINAPI DestroyCaret(void); 4394 BOOL WINAPI DestroyCursor(_In_ HCURSOR); 4395 BOOL WINAPI DestroyIcon(_In_ HICON); 4396 BOOL WINAPI DestroyMenu(_In_ HMENU); 4397 BOOL WINAPI DestroyWindow(_In_ HWND); 4398 #define DialogBoxA(i,t,p,f) DialogBoxParamA(i,t,p,f,0) 4399 #define DialogBoxW(i,t,p,f) DialogBoxParamW(i,t,p,f,0) 4400 #define DialogBoxIndirectA(i,t,p,f) DialogBoxIndirectParamA(i,t,p,f,0) 4401 #define DialogBoxIndirectW(i,t,p,f) DialogBoxIndirectParamW(i,t,p,f,0) 4402 INT_PTR WINAPI DialogBoxIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); 4403 INT_PTR WINAPI DialogBoxIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); 4404 INT_PTR WINAPI DialogBoxParamA(_In_opt_ HINSTANCE, _In_ LPCSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); 4405 INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); 4406 LRESULT WINAPI DispatchMessageA(_In_ const MSG*); 4407 LRESULT WINAPI DispatchMessageW(_In_ const MSG*); 4408 int WINAPI DlgDirListA(_In_ HWND, _Inout_ LPSTR, _In_ int, _In_ int, _In_ UINT); 4409 int WINAPI DlgDirListW(_In_ HWND, _Inout_ LPWSTR, _In_ int, _In_ int, _In_ UINT); 4410 int WINAPI DlgDirListComboBoxA(_In_ HWND, _Inout_ LPSTR, _In_ int, _In_ int, _In_ UINT); 4411 int WINAPI DlgDirListComboBoxW(_In_ HWND, _Inout_ LPWSTR, _In_ int, _In_ int, _In_ UINT); 4412 4413 BOOL 4414 WINAPI 4415 DlgDirSelectComboBoxExA( 4416 _In_ HWND hwndDlg, 4417 _Out_writes_(cchOut) LPSTR lpString, 4418 _In_ int cchOut, 4419 _In_ int idComboBox); 4420 4421 BOOL 4422 WINAPI 4423 DlgDirSelectComboBoxExW( 4424 _In_ HWND hwndDlg, 4425 _Out_writes_(cchOut) LPWSTR lpString, 4426 _In_ int cchOut, 4427 _In_ int idComboBox); 4428 4429 BOOL 4430 WINAPI 4431 DlgDirSelectExA( 4432 _In_ HWND hwndDlg, 4433 _Out_writes_(chCount) LPSTR lpString, 4434 _In_ int chCount, 4435 _In_ int idListBox); 4436 4437 BOOL 4438 WINAPI 4439 DlgDirSelectExW( 4440 _In_ HWND hwndDlg, 4441 _Out_writes_(chCount) LPWSTR lpString, 4442 _In_ int chCount, 4443 _In_ int idListBox); 4444 4445 BOOL WINAPI DragDetect(_In_ HWND, _In_ POINT); 4446 DWORD WINAPI DragObject(_In_ HWND, _In_ HWND, _In_ UINT, _In_ ULONG_PTR, _In_opt_ HCURSOR); 4447 BOOL WINAPI DrawAnimatedRects(_In_opt_ HWND, _In_ int, _In_ LPCRECT, _In_ LPCRECT); 4448 BOOL WINAPI DrawCaption(_In_ HWND, _In_ HDC, _In_ LPCRECT, _In_ UINT); 4449 BOOL WINAPI DrawEdge(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT); 4450 BOOL WINAPI DrawFocusRect(_In_ HDC, _In_ LPCRECT); 4451 BOOL WINAPI DrawFrameControl(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT); 4452 BOOL WINAPI DrawIcon(_In_ HDC, _In_ int, _In_ int, _In_ HICON); 4453 BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT); 4454 BOOL WINAPI DrawMenuBar(_In_ HWND); 4455 DWORD WINAPI DrawMenuBarTemp(HWND,HDC,LPRECT,HMENU,HFONT); 4456 BOOL WINAPI DrawStateA(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ DRAWSTATEPROC, _In_ LPARAM, _In_ WPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT); 4457 BOOL WINAPI DrawStateW(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ DRAWSTATEPROC, _In_ LPARAM, _In_ WPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT); 4458 4459 _Success_(return) 4460 int 4461 WINAPI 4462 DrawTextA( 4463 _In_ HDC hdc, 4464 _At_((LPSTR)lpchText, _Inout_updates_opt_(cchText)) LPCSTR lpchText, 4465 _In_ int cchText, 4466 _Inout_ LPRECT lprc, 4467 _In_ UINT format); 4468 4469 _Success_(return) 4470 int 4471 WINAPI 4472 DrawTextW( 4473 _In_ HDC hdc, 4474 _At_((LPWSTR)lpchText, _Inout_updates_opt_(cchText)) LPCWSTR lpchText, 4475 _In_ int cchText, 4476 _Inout_ LPRECT lprc, 4477 _In_ UINT format); 4478 4479 int 4480 WINAPI 4481 DrawTextExA( 4482 _In_ HDC hdc, 4483 _Inout_updates_opt_(cchText) LPSTR lpchText, 4484 _In_ int cchText, 4485 _Inout_ LPRECT lprc, 4486 _In_ UINT format, 4487 _In_opt_ LPDRAWTEXTPARAMS lpdtp); 4488 4489 int 4490 WINAPI 4491 DrawTextExW( 4492 _In_ HDC hdc, 4493 _Inout_updates_opt_(cchText) LPWSTR lpchText, 4494 _In_ int cchText, 4495 _Inout_ LPRECT lprc, 4496 _In_ UINT format, 4497 _In_opt_ LPDRAWTEXTPARAMS lpdtp); 4498 4499 BOOL WINAPI EmptyClipboard(void); 4500 BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT); 4501 BOOL WINAPI EnableScrollBar(_In_ HWND, _In_ UINT, _In_ UINT); 4502 BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL); 4503 BOOL WINAPI EndDeferWindowPos(_In_ HDWP); 4504 BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR); 4505 BOOL WINAPI EndMenu(void); 4506 BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT*); 4507 #if (_WIN32_WINNT >= 0x0500) 4508 BOOL WINAPI EndTask(_In_ HWND, _In_ BOOL, _In_ BOOL); 4509 #endif 4510 BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM); 4511 UINT WINAPI EnumClipboardFormats(_In_ UINT); 4512 BOOL WINAPI EnumDesktopsA(_In_opt_ HWINSTA, _In_ DESKTOPENUMPROCA, _In_ LPARAM); 4513 BOOL WINAPI EnumDesktopsW(_In_opt_ HWINSTA, _In_ DESKTOPENUMPROCW, _In_ LPARAM); 4514 BOOL WINAPI EnumDesktopWindows(_In_opt_ HDESK, _In_ WNDENUMPROC, _In_ LPARAM); 4515 BOOL WINAPI EnumDisplayMonitors(_In_opt_ HDC, _In_opt_ LPCRECT, _In_ MONITORENUMPROC, _In_ LPARAM); 4516 #if defined(_WINGDI_) && !defined(NOGDI) 4517 BOOL WINAPI EnumDisplaySettingsA(_In_opt_ LPCSTR, _In_ DWORD, _Inout_ PDEVMODEA); 4518 BOOL WINAPI EnumDisplaySettingsW(_In_opt_ LPCWSTR, _In_ DWORD, _Inout_ PDEVMODEW); 4519 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) 4520 BOOL WINAPI EnumDisplaySettingsExA(_In_opt_ LPCSTR, _In_ DWORD, _Inout_ LPDEVMODEA, _In_ DWORD); 4521 BOOL WINAPI EnumDisplaySettingsExW(_In_opt_ LPCWSTR, _In_ DWORD, _Inout_ LPDEVMODEW, _In_ DWORD); 4522 #endif 4523 BOOL WINAPI EnumDisplayDevicesA(_In_opt_ LPCSTR, _In_ DWORD, _Inout_ PDISPLAY_DEVICEA, _In_ DWORD); 4524 BOOL WINAPI EnumDisplayDevicesW(_In_opt_ LPCWSTR, _In_ DWORD, _Inout_ PDISPLAY_DEVICEW, _In_ DWORD); 4525 #endif 4526 int WINAPI EnumPropsA(_In_ HWND, _In_ PROPENUMPROCA); 4527 int WINAPI EnumPropsW(_In_ HWND, _In_ PROPENUMPROCW); 4528 int WINAPI EnumPropsExA(_In_ HWND, _In_ PROPENUMPROCEXA, _In_ LPARAM lParam); 4529 int WINAPI EnumPropsExW(_In_ HWND, _In_ PROPENUMPROCEXW, _In_ LPARAM lParam); 4530 #define EnumTaskWindows(h,f,p) EnumThreadWindows((DWORD)h,f,p) 4531 BOOL WINAPI EnumThreadWindows(_In_ DWORD, _In_ WNDENUMPROC, _In_ LPARAM); 4532 BOOL WINAPI EnumWindows(_In_ WNDENUMPROC lpEnumFunc, _In_ LPARAM lParam); 4533 BOOL WINAPI EnumWindowStationsA(_In_ WINSTAENUMPROCA, _In_ LPARAM lParam); 4534 BOOL WINAPI EnumWindowStationsW(_In_ WINSTAENUMPROCW, _In_ LPARAM lParam); 4535 BOOL WINAPI EqualRect(_In_ LPCRECT, _In_ LPCRECT); 4536 #define ExitWindows(r,c) ExitWindowsEx(EWX_LOGOFF,0) 4537 BOOL WINAPI ExitWindowsEx(_In_ UINT, _In_ DWORD); 4538 HWND WINAPI FindWindowA(_In_opt_ LPCSTR, _In_opt_ LPCSTR); 4539 HWND WINAPI FindWindowW(_In_opt_ LPCWSTR, _In_opt_ LPCWSTR); 4540 HWND WINAPI FindWindowExA(_In_opt_ HWND, _In_opt_ HWND, _In_opt_ LPCSTR, _In_opt_ LPCSTR); 4541 HWND WINAPI FindWindowExW(_In_opt_ HWND, _In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR); 4542 BOOL WINAPI FlashWindow(_In_ HWND, _In_ BOOL); 4543 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) 4544 BOOL WINAPI FlashWindowEx(_In_ PFLASHWINFO); 4545 #endif 4546 int WINAPI FrameRect(_In_ HDC, _In_ LPCRECT, _In_ HBRUSH); 4547 HWND WINAPI GetActiveWindow(void); 4548 HWND WINAPI GetAncestor(_In_ HWND, _In_ UINT); 4549 SHORT WINAPI GetAsyncKeyState(_In_ int); 4550 HWND WINAPI GetCapture(void); 4551 UINT WINAPI GetCaretBlinkTime(void); 4552 BOOL WINAPI GetCaretPos(_Out_ LPPOINT); 4553 BOOL WINAPI GetClassInfoA(_In_opt_ HINSTANCE, _In_ LPCSTR, _Out_ LPWNDCLASSA); 4554 BOOL WINAPI GetClassInfoExA(_In_opt_ HINSTANCE, _In_ LPCSTR, _Out_ LPWNDCLASSEXA); 4555 BOOL WINAPI GetClassInfoW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSW); 4556 BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW); 4557 DWORD WINAPI GetClassLongA(_In_ HWND, _In_ int); 4558 DWORD WINAPI GetClassLongW(_In_ HWND, _In_ int); 4559 #ifdef _WIN64 4560 ULONG_PTR WINAPI GetClassLongPtrA(_In_ HWND, _In_ int); 4561 ULONG_PTR WINAPI GetClassLongPtrW(_In_ HWND, _In_ int); 4562 #else 4563 #define GetClassLongPtrA GetClassLongA 4564 #define GetClassLongPtrW GetClassLongW 4565 #endif 4566 4567 int 4568 WINAPI 4569 GetClassNameA( 4570 _In_ HWND hWnd, 4571 _Out_writes_to_(nMaxCount, return) LPSTR lpClassName, 4572 _In_ int nMaxCount); 4573 4574 int 4575 WINAPI 4576 GetClassNameW( 4577 _In_ HWND hWnd, 4578 _Out_writes_to_(nMaxCount, return) LPWSTR lpClassName, 4579 _In_ int nMaxCount); 4580 4581 WORD WINAPI GetClassWord(_In_ HWND, _In_ int); 4582 BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT); 4583 HANDLE WINAPI GetClipboardData(_In_ UINT); 4584 4585 int 4586 WINAPI 4587 GetClipboardFormatNameA( 4588 _In_ UINT format, 4589 _Out_writes_(cchMaxCount) LPSTR lpszFormatName, 4590 _In_ int cchMaxCount); 4591 4592 int 4593 WINAPI 4594 GetClipboardFormatNameW( 4595 _In_ UINT format, 4596 _Out_writes_(cchMaxCount) LPWSTR lpszFormatName, 4597 _In_ int cchMaxCount); 4598 4599 HWND WINAPI GetClipboardOwner(void); 4600 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) 4601 DWORD WINAPI GetClipboardSequenceNumber(void); 4602 #endif 4603 HWND WINAPI GetClipboardViewer(void); 4604 BOOL WINAPI GetClipCursor(_Out_ LPRECT); 4605 BOOL WINAPI GetCursorPos(_Out_ LPPOINT); 4606 HDC WINAPI GetDC(_In_opt_ HWND); 4607 HDC WINAPI GetDCEx(_In_opt_ HWND, _In_opt_ HRGN, _In_ DWORD); 4608 HWND WINAPI GetDesktopWindow(void); 4609 LONG WINAPI GetDialogBaseUnits(void); 4610 int WINAPI GetDlgCtrlID(_In_ HWND); 4611 HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int); 4612 UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL); 4613 4614 _Ret_range_(0, cchMax) 4615 UINT 4616 WINAPI 4617 GetDlgItemTextA( 4618 _In_ HWND hDlg, 4619 _In_ int nIDDlgItem, 4620 _Out_writes_(cchMax) LPSTR lpString, 4621 _In_ int cchMax); 4622 4623 _Ret_range_(0, cchMax) 4624 UINT 4625 WINAPI 4626 GetDlgItemTextW( 4627 _In_ HWND hDlg, 4628 _In_ int nIDDlgItem, 4629 _Out_writes_(cchMax) LPWSTR lpString, 4630 _In_ int cchMax); 4631 4632 UINT WINAPI GetDoubleClickTime(void); 4633 HWND WINAPI GetFocus(void); 4634 HWND WINAPI GetForegroundWindow(void); 4635 #if (_WIN32_WINNT >= 0x0500) 4636 DWORD WINAPI GetGuiResources(_In_ HANDLE, _In_ DWORD); 4637 #endif 4638 BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO); 4639 BOOL WINAPI GetIconInfoExA(_In_ HICON, _Inout_ ICONINFOEXA*); 4640 BOOL WINAPI GetIconInfoExW(_In_ HICON, _Inout_ ICONINFOEXW*); 4641 BOOL WINAPI GetInputState(void); 4642 UINT WINAPI GetKBCodePage(void); 4643 HKL WINAPI GetKeyboardLayout(_In_ DWORD); 4644 4645 UINT 4646 WINAPI 4647 GetKeyboardLayoutList( 4648 _In_ int nBuff, 4649 _Out_writes_to_opt_(nBuff, return) HKL FAR *lpList); 4650 4651 BOOL WINAPI GetKeyboardLayoutNameA(_Out_writes_(KL_NAMELENGTH) LPSTR); 4652 BOOL WINAPI GetKeyboardLayoutNameW(_Out_writes_(KL_NAMELENGTH) LPWSTR); 4653 4654 _Check_return_ 4655 BOOL 4656 WINAPI 4657 GetKeyboardState( 4658 _Out_writes_(256) PBYTE lpKeyState); 4659 4660 int WINAPI GetKeyboardType(_In_ int); 4661 4662 int 4663 WINAPI 4664 GetKeyNameTextA( 4665 _In_ LONG lParam, 4666 _Out_writes_(cchSize) LPSTR lpString, 4667 _In_ int cchSize); 4668 4669 int 4670 WINAPI 4671 GetKeyNameTextW( 4672 _In_ LONG lParam, 4673 _Out_writes_(cchSize) LPWSTR lpString, 4674 _In_ int cchSize); 4675 4676 SHORT WINAPI GetKeyState(_In_ int); 4677 HWND WINAPI GetLastActivePopup(_In_ HWND); 4678 HMENU WINAPI GetMenu(_In_ HWND); 4679 LONG WINAPI GetMenuCheckMarkDimensions(void); 4680 DWORD WINAPI GetMenuContextHelpId(_In_ HMENU); 4681 UINT WINAPI GetMenuDefaultItem(_In_ HMENU hMenu, _In_ UINT fByPos, _In_ UINT gmdiFlags); 4682 int WINAPI GetMenuItemCount(_In_opt_ HMENU); 4683 UINT WINAPI GetMenuItemID(_In_ HMENU, _In_ int); 4684 BOOL WINAPI GetMenuItemInfoA(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOA); 4685 BOOL WINAPI GetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOW); 4686 BOOL WINAPI GetMenuItemRect(_In_opt_ HWND, _In_ HMENU, _In_ UINT, _Out_ LPRECT); 4687 UINT WINAPI GetMenuState(_In_ HMENU, _In_ UINT, _In_ UINT); 4688 4689 int 4690 WINAPI 4691 GetMenuStringA( 4692 _In_ HMENU hMenu, 4693 _In_ UINT uIDItem, 4694 _Out_writes_opt_(cchMax) LPSTR lpString, 4695 _In_ int cchMax, 4696 _In_ UINT flags); 4697 4698 int 4699 WINAPI 4700 GetMenuStringW( 4701 _In_ HMENU hMenu, 4702 _In_ UINT uIDItem, 4703 _Out_writes_opt_(cchMax) LPWSTR lpString, 4704 _In_ int cchMax, 4705 _In_ UINT flags); 4706 4707 BOOL WINAPI GetMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT); 4708 BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT); 4709 4710 LPARAM WINAPI GetMessageExtraInfo(void); 4711 DWORD WINAPI GetMessagePos(void); 4712 LONG WINAPI GetMessageTime(void); 4713 4714 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490) 4715 int 4716 WINAPI 4717 GetMouseMovePointsEx( 4718 _In_ UINT cbSize, 4719 _In_ LPMOUSEMOVEPOINT lppt, 4720 _Out_writes_(nBufPoints) LPMOUSEMOVEPOINT lpptBuf, 4721 _In_ int nBufPoints, 4722 _In_ DWORD resolution); 4723 #endif 4724 4725 HWND WINAPI GetNextDlgGroupItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL); 4726 HWND WINAPI GetNextDlgTabItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL); 4727 #define GetNextWindow(h,c) GetWindow(h,c) 4728 HWND WINAPI GetOpenClipboardWindow(void); 4729 HWND WINAPI GetParent(_In_ HWND); 4730 4731 int 4732 WINAPI 4733 GetPriorityClipboardFormat( 4734 _In_reads_(cFormats) UINT *paFormatPriorityList, 4735 _In_ int cFormats); 4736 4737 HANDLE WINAPI GetPropA(_In_ HWND, _In_ LPCSTR); 4738 HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR); 4739 4740 #if (_WIN32_WINNT >= 0x0501) 4741 4742 UINT 4743 WINAPI 4744 GetRawInputBuffer( 4745 _Out_writes_bytes_opt_(*pcbSize) PRAWINPUT pData, 4746 _Inout_ PUINT pcbSize, 4747 _In_ UINT cbSizeHeader); 4748 4749 UINT 4750 WINAPI 4751 GetRawInputData( 4752 _In_ HRAWINPUT hRawInput, 4753 _In_ UINT uiCommand, 4754 _Out_writes_bytes_to_opt_(*pcbSize, return) LPVOID pData, 4755 _Inout_ PUINT pcbSize, 4756 _In_ UINT cbSizeHeader); 4757 4758 UINT 4759 WINAPI 4760 GetRawInputDeviceInfoA( 4761 _In_opt_ HANDLE hDevice, 4762 _In_ UINT uiCommand, 4763 _Inout_updates_bytes_to_opt_(*pcbSize, *pcbSize) LPVOID pData, 4764 _Inout_ PUINT pcbSize); 4765 4766 UINT 4767 WINAPI 4768 GetRawInputDeviceInfoW( 4769 _In_opt_ HANDLE hDevice, 4770 _In_ UINT uiCommand, 4771 _Inout_updates_bytes_to_opt_(*pcbSize, *pcbSize) LPVOID pData, 4772 _Inout_ PUINT pcbSize); 4773 4774 UINT 4775 WINAPI 4776 GetRawInputDeviceList( 4777 _Out_writes_opt_(*puiNumDevices) PRAWINPUTDEVICELIST pRawInputDeviceList, 4778 _Inout_ PUINT puiNumDevices, 4779 _In_ UINT cbSize); 4780 4781 UINT 4782 WINAPI 4783 GetRegisteredRawInputDevices( 4784 _Out_writes_opt_(*puiNumDevices) PRAWINPUTDEVICE pRawInputDevices, 4785 _Inout_ PUINT puiNumDevices, 4786 _In_ UINT cbSize); 4787 4788 #endif /* (_WIN32_WINNT >= 0x0501) */ 4789 4790 DWORD WINAPI GetQueueStatus(_In_ UINT); 4791 BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO); 4792 int WINAPI GetScrollPos(_In_ HWND, _In_ int); 4793 BOOL WINAPI GetScrollRange(_In_ HWND, _In_ int, _Out_ LPINT, _Out_ LPINT); 4794 #if (_WIN32_WINNT >= 0x0500) 4795 HWND WINAPI GetShellWindow(void); 4796 #endif 4797 HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int); 4798 DWORD WINAPI GetSysColor(_In_ int); 4799 HBRUSH WINAPI GetSysColorBrush(_In_ int); 4800 #define GetSysModalWindow() (NULL) 4801 HMENU WINAPI GetSystemMenu(_In_ HWND, _In_ BOOL); 4802 int WINAPI GetSystemMetrics(_In_ int); 4803 4804 DWORD 4805 WINAPI 4806 GetTabbedTextExtentA( 4807 _In_ HDC hdc, 4808 _In_reads_(chCount) LPCSTR lpString, 4809 _In_ int chCount, 4810 _In_ int nTabPositions, 4811 _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions); 4812 4813 DWORD 4814 WINAPI 4815 GetTabbedTextExtentW( 4816 _In_ HDC hdc, 4817 _In_reads_(chCount) LPCWSTR lpString, 4818 _In_ int chCount, 4819 _In_ int nTabPositions, 4820 _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions); 4821 4822 LONG WINAPI GetWindowLongA(_In_ HWND, _In_ int); 4823 LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int); 4824 #ifdef _WIN64 4825 LONG_PTR WINAPI GetWindowLongPtrA(_In_ HWND, _In_ int); 4826 LONG_PTR WINAPI GetWindowLongPtrW(_In_ HWND, _In_ int); 4827 #else 4828 #define GetWindowLongPtrA GetWindowLongA 4829 #define GetWindowLongPtrW GetWindowLongW 4830 #endif 4831 HDESK WINAPI GetThreadDesktop(_In_ DWORD); 4832 HWND WINAPI GetTopWindow(_In_opt_ HWND); 4833 BOOL WINAPI GetUpdateRect(_In_ HWND, _Out_opt_ LPRECT, _In_ BOOL); 4834 int WINAPI GetUpdateRgn(_In_ HWND, _In_ HRGN, _In_ BOOL); 4835 4836 BOOL 4837 WINAPI 4838 GetUserObjectInformationA( 4839 _In_ HANDLE hObj, 4840 _In_ int nIndex, 4841 _Out_writes_bytes_opt_(nLength) PVOID pvInfo, 4842 _In_ DWORD nLength, 4843 _Out_opt_ LPDWORD lpnLengthNeeded); 4844 4845 BOOL 4846 WINAPI 4847 GetUserObjectInformationW( 4848 _In_ HANDLE hObj, 4849 _In_ int nIndex, 4850 _Out_writes_bytes_opt_(nLength) PVOID pvInfo, 4851 _In_ DWORD nLength, 4852 _Out_opt_ LPDWORD lpnLengthNeeded); 4853 4854 BOOL 4855 WINAPI 4856 GetUserObjectSecurity( 4857 _In_ HANDLE hObj, 4858 _In_ PSECURITY_INFORMATION pSIRequested, 4859 _Out_writes_bytes_opt_(nLength) PSECURITY_DESCRIPTOR pSID, 4860 _In_ DWORD nLength, 4861 _Out_ LPDWORD lpnLengthNeeded); 4862 4863 HWND WINAPI GetWindow(_In_ HWND, _In_ UINT); 4864 DWORD WINAPI GetWindowContextHelpId(_In_ HWND); 4865 HDC WINAPI GetWindowDC(_In_opt_ HWND); 4866 BOOL WINAPI GetWindowPlacement(_In_ HWND, _Inout_ WINDOWPLACEMENT*); 4867 BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT); 4868 int WINAPI GetWindowRgn(_In_ HWND, _In_ HRGN); 4869 #define GetWindowTask(hWnd) ((HANDLE)GetWindowThreadProcessId(hWnd, NULL)) 4870 4871 _Ret_range_(0, nMaxCount) 4872 int 4873 WINAPI 4874 GetWindowTextA( 4875 _In_ HWND hWnd, 4876 _Out_writes_(nMaxCount) LPSTR lpString, 4877 _In_ int nMaxCount); 4878 4879 _Ret_range_(0, nMaxCount) 4880 int 4881 WINAPI 4882 GetWindowTextW( 4883 _In_ HWND hWnd, 4884 _Out_writes_(nMaxCount) LPWSTR lpString, 4885 _In_ int nMaxCount); 4886 4887 int WINAPI GetWindowTextLengthA(_In_ HWND); 4888 int WINAPI GetWindowTextLengthW(_In_ HWND); 4889 WORD WINAPI GetWindowWord(_In_ HWND, _In_ int); 4890 4891 BOOL 4892 WINAPI 4893 GetAltTabInfoA( 4894 _In_opt_ HWND hwnd, 4895 _In_ int iItem, 4896 _Inout_ PALTTABINFO pati, 4897 _Out_writes_opt_(cchItemText) LPSTR pszItemText, 4898 _In_ UINT cchItemText); 4899 4900 BOOL 4901 WINAPI 4902 GetAltTabInfoW( 4903 _In_opt_ HWND hwnd, 4904 _In_ int iItem, 4905 _Inout_ PALTTABINFO pati, 4906 _Out_writes_opt_(cchItemText) LPWSTR pszItemText, 4907 _In_ UINT cchItemText); 4908 4909 BOOL WINAPI GetComboBoxInfo(_In_ HWND, _Inout_ PCOMBOBOXINFO); 4910 BOOL WINAPI GetCursorInfo(_Inout_ PCURSORINFO); 4911 #if (WINVER >= 0x0500) 4912 BOOL WINAPI GetGUIThreadInfo(_In_ DWORD, _Inout_ LPGUITHREADINFO); 4913 #endif 4914 BOOL WINAPI GetLastInputInfo(_Out_ PLASTINPUTINFO); 4915 DWORD WINAPI GetListBoxInfo(_In_ HWND); 4916 BOOL WINAPI GetMenuBarInfo(_In_ HWND, _In_ LONG, _In_ LONG, _Inout_ PMENUBARINFO); 4917 BOOL WINAPI GetMenuInfo(_In_ HMENU, _Inout_ LPMENUINFO); 4918 #if (_WIN32_WINNT >= 0x0500) 4919 BOOL WINAPI GetProcessDefaultLayout(_Out_ DWORD*); 4920 #endif 4921 BOOL WINAPI GetScrollBarInfo(_In_ HWND, _In_ LONG, _Inout_ PSCROLLBARINFO); 4922 BOOL WINAPI GetTitleBarInfo(_In_ HWND, _Inout_ PTITLEBARINFO); 4923 BOOL WINAPI GetWindowInfo(_In_ HWND, _Inout_ PWINDOWINFO); 4924 BOOL WINAPI GetMonitorInfoA(_In_ HMONITOR, _Inout_ LPMONITORINFO); 4925 BOOL WINAPI GetMonitorInfoW(_In_ HMONITOR, _Inout_ LPMONITORINFO); 4926 4927 UINT 4928 WINAPI 4929 GetWindowModuleFileNameA( 4930 _In_ HWND hwnd, 4931 _Out_writes_to_(cchFileNameMax, return) LPSTR pszFileName, 4932 _In_ UINT cchFileNameMax); 4933 4934 UINT 4935 WINAPI 4936 GetWindowModuleFileNameW( 4937 _In_ HWND hwnd, 4938 _Out_writes_to_(cchFileNameMax, return) LPWSTR pszFileName, 4939 _In_ UINT cchFileNameMax); 4940 4941 BOOL WINAPI GrayStringA(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ GRAYSTRINGPROC, _In_ LPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int); 4942 BOOL WINAPI GrayStringW(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ GRAYSTRINGPROC, _In_ LPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int); 4943 BOOL WINAPI HideCaret(_In_opt_ HWND); 4944 BOOL WINAPI HiliteMenuItem(_In_ HWND, _In_ HMENU, _In_ UINT, _In_ UINT); 4945 BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int); 4946 BOOL WINAPI InSendMessage(void); 4947 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) 4948 DWORD WINAPI InSendMessageEx(_Reserved_ LPVOID); 4949 #endif 4950 BOOL WINAPI InsertMenuA(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCSTR); 4951 BOOL WINAPI InsertMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR); 4952 BOOL WINAPI InsertMenuItemA(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOA); 4953 BOOL WINAPI InsertMenuItemW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW); 4954 4955 INT 4956 WINAPI 4957 InternalGetWindowText( 4958 _In_ HWND hWnd, 4959 _Out_writes_to_(cchMaxCount, return + 1) LPWSTR pString, 4960 _In_ int cchMaxCount); 4961 4962 BOOL WINAPI IntersectRect(_Out_ LPRECT, _In_ LPCRECT, _In_ LPCRECT); 4963 BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL); 4964 BOOL WINAPI InvalidateRgn(_In_ HWND, _In_opt_ HRGN, _In_ BOOL); 4965 BOOL WINAPI InvertRect(_In_ HDC, _In_ LPCRECT); 4966 BOOL WINAPI IsCharAlphaA(_In_ CHAR ch); 4967 BOOL WINAPI IsCharAlphaNumericA(_In_ CHAR); 4968 BOOL WINAPI IsCharAlphaNumericW(_In_ WCHAR); 4969 BOOL WINAPI IsCharAlphaW( _In_ WCHAR); 4970 BOOL WINAPI IsCharLowerA(_In_ CHAR); 4971 BOOL WINAPI IsCharLowerW(_In_ WCHAR); 4972 BOOL WINAPI IsCharUpperA(_In_ CHAR); 4973 BOOL WINAPI IsCharUpperW(_In_ WCHAR); 4974 BOOL WINAPI IsChild(_In_ HWND, _In_ HWND); 4975 BOOL WINAPI IsClipboardFormatAvailable(_In_ UINT); 4976 BOOL WINAPI IsDialogMessageA(_In_ HWND, _In_ LPMSG); 4977 BOOL WINAPI IsDialogMessageW(_In_ HWND, _In_ LPMSG); 4978 UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int); 4979 #if(_WIN32_WINNT >= 0x0501) 4980 BOOL WINAPI IsGUIThread(_In_ BOOL); 4981 #endif 4982 #if(_WIN32_WINNT >= 0x0500) 4983 BOOL WINAPI IsHungAppWindow(_In_ HWND); 4984 #endif 4985 BOOL WINAPI IsIconic(_In_ HWND); 4986 BOOL WINAPI IsMenu(_In_ HMENU); 4987 BOOL WINAPI IsRectEmpty(_In_ LPCRECT); 4988 BOOL WINAPI IsWindow(_In_opt_ HWND); 4989 BOOL WINAPI IsWindowEnabled(_In_ HWND); 4990 BOOL WINAPI IsWindowUnicode(_In_ HWND); 4991 BOOL WINAPI IsWindowVisible(_In_ HWND); 4992 #if (_WIN32_WINNT >= 0x0501) 4993 BOOL WINAPI IsWinEventHookInstalled(_In_ DWORD); 4994 #endif 4995 BOOL WINAPI IsZoomed(_In_ HWND); 4996 VOID WINAPI keybd_event(_In_ BYTE, _In_ BYTE, _In_ DWORD, _In_ ULONG_PTR); 4997 BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR); 4998 BOOL WINAPI KillSystemTimer(HWND,UINT_PTR); 4999 HACCEL WINAPI LoadAcceleratorsA(_In_opt_ HINSTANCE, _In_ LPCSTR); 5000 HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR); 5001 HBITMAP WINAPI LoadBitmapA(_In_opt_ HINSTANCE, _In_ LPCSTR); 5002 HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR); 5003 HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR); 5004 HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR); 5005 HCURSOR WINAPI LoadCursorFromFileA(_In_ LPCSTR); 5006 HCURSOR WINAPI LoadCursorFromFileW(_In_ LPCWSTR); 5007 HICON WINAPI LoadIconA(_In_opt_ HINSTANCE hInstance, _In_ LPCSTR lpIconName); 5008 HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName); 5009 HANDLE WINAPI LoadImageA(_In_opt_ HINSTANCE hInst, _In_ LPCSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad); 5010 HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad); 5011 HKL WINAPI LoadKeyboardLayoutA(_In_ LPCSTR, _In_ UINT); 5012 HKL WINAPI LoadKeyboardLayoutW(_In_ LPCWSTR, _In_ UINT); 5013 HMENU WINAPI LoadMenuA(_In_opt_ HINSTANCE, _In_ LPCSTR); 5014 HMENU WINAPI LoadMenuIndirectA(_In_ const MENUTEMPLATE*); 5015 HMENU WINAPI LoadMenuIndirectW(_In_ const MENUTEMPLATE*); 5016 HMENU WINAPI LoadMenuW(_In_opt_ HINSTANCE, _In_ LPCWSTR); 5017 5018 int 5019 WINAPI 5020 LoadStringA( 5021 _In_opt_ HINSTANCE hInstance, 5022 _In_ UINT uID, 5023 _Out_writes_to_(cchBufferMax, return + 1) LPSTR lpBuffer, 5024 _In_ int cchBufferMax); 5025 5026 int 5027 WINAPI 5028 LoadStringW( 5029 _In_opt_ HINSTANCE hInstance, 5030 _In_ UINT uID, 5031 _Out_writes_to_(cchBufferMax, return + 1) LPWSTR lpBuffer, 5032 _In_ int cchBufferMax); 5033 5034 BOOL WINAPI LockWindowUpdate(_In_opt_ HWND); 5035 #if (_WIN32_WINNT >= 0x0500) 5036 BOOL WINAPI LockWorkStation(void); 5037 #endif 5038 5039 typedef struct { 5040 WORD Reserved; 5041 WORD ResType; 5042 WORD ResCount; 5043 } NEWHEADER; 5044 5045 int WINAPI LookupIconIdFromDirectory(_In_reads_bytes_(sizeof(NEWHEADER)) PBYTE, _In_ BOOL); 5046 int WINAPI LookupIconIdFromDirectoryEx(_In_reads_bytes_(sizeof(NEWHEADER)) PBYTE, _In_ BOOL, _In_ int, _In_ int, _In_ UINT); 5047 BOOL WINAPI MapDialogRect(_In_ HWND, _Inout_ LPRECT); 5048 UINT WINAPI MapVirtualKeyA(_In_ UINT, _In_ UINT); 5049 UINT WINAPI MapVirtualKeyExA(_In_ UINT, _In_ UINT, _In_opt_ HKL); 5050 UINT WINAPI MapVirtualKeyExW(_In_ UINT, _In_ UINT, _In_opt_ HKL); 5051 UINT WINAPI MapVirtualKeyW(_In_ UINT, _In_ UINT); 5052 5053 int 5054 WINAPI 5055 MapWindowPoints( 5056 _In_opt_ HWND hWndFrom, 5057 _In_opt_ HWND hWndTo, 5058 _Inout_updates_(cPoints) LPPOINT lpPoints, 5059 _In_ UINT cPoints); 5060 5061 int WINAPI MenuItemFromPoint(_In_opt_ HWND, _In_ HMENU, _In_ POINT); 5062 BOOL WINAPI MessageBeep(_In_ UINT uType); 5063 int WINAPI MessageBoxA(_In_opt_ HWND hWnd, _In_opt_ LPCSTR lpText, _In_opt_ LPCSTR lpCaption, _In_ UINT uType); 5064 int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType); 5065 int WINAPI MessageBoxExA(_In_opt_ HWND hWnd, _In_opt_ LPCSTR lpText, _In_opt_ LPCSTR lpCaption, _In_ UINT uType, _In_ WORD wLanguageId); 5066 int WINAPI MessageBoxExW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType, _In_ WORD wLanguageId); 5067 int WINAPI MessageBoxIndirectA(_In_ CONST MSGBOXPARAMSA* lpmbp); 5068 int WINAPI MessageBoxIndirectW(_In_ CONST MSGBOXPARAMSW* lpmbp); 5069 BOOL WINAPI ModifyMenuA(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCSTR); 5070 BOOL WINAPI ModifyMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR); 5071 HMONITOR WINAPI MonitorFromPoint(_In_ POINT, _In_ DWORD); 5072 HMONITOR WINAPI MonitorFromRect(_In_ LPCRECT, _In_ DWORD); 5073 HMONITOR WINAPI MonitorFromWindow(_In_ HWND, _In_ DWORD); 5074 void WINAPI mouse_event(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ ULONG_PTR); 5075 BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL); 5076 5077 DWORD 5078 WINAPI 5079 MsgWaitForMultipleObjects( 5080 _In_ DWORD nCount, 5081 _In_reads_opt_(nCount) CONST HANDLE *pHandles, 5082 _In_ BOOL fWaitAll, 5083 _In_ DWORD dwMilliseconds, 5084 _In_ DWORD dwWakeMask); 5085 5086 DWORD 5087 WINAPI 5088 MsgWaitForMultipleObjectsEx( 5089 _In_ DWORD nCount, 5090 _In_reads_opt_(nCount) CONST HANDLE *pHandles, 5091 _In_ DWORD dwMilliseconds, 5092 _In_ DWORD dwWakeMask, 5093 _In_ DWORD dwFlags); 5094 5095 #if (WINVER >= 0x0500) 5096 void WINAPI NotifyWinEvent(_In_ DWORD, _In_ HWND, _In_ LONG, _In_ LONG); 5097 #endif 5098 DWORD WINAPI OemKeyScan(_In_ WORD); 5099 5100 BOOL 5101 WINAPI 5102 OemToCharA( 5103 _In_ LPCSTR pSrc, 5104 _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst); 5105 5106 BOOL 5107 WINAPI 5108 OemToCharBuffA( 5109 _In_ LPCSTR lpszSrc, 5110 _Out_writes_(cchDstLength) LPSTR lpszDst, 5111 _In_ DWORD cchDstLength); 5112 5113 BOOL 5114 WINAPI 5115 OemToCharBuffW( 5116 _In_ LPCSTR lpszSrc, 5117 _Out_writes_(cchDstLength) LPWSTR lpszDst, 5118 _In_ DWORD cchDstLength); 5119 5120 BOOL 5121 WINAPI 5122 OemToCharW( 5123 _In_ LPCSTR pSrc, 5124 _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPWSTR pDst); 5125 5126 BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int); 5127 BOOL WINAPI OpenClipboard(_In_opt_ HWND); 5128 HDESK WINAPI OpenDesktopA(_In_ LPCSTR, _In_ DWORD, _In_ BOOL, _In_ DWORD); 5129 HDESK WINAPI OpenDesktopW(_In_ LPCWSTR, _In_ DWORD, _In_ BOOL, _In_ DWORD); 5130 BOOL WINAPI OpenIcon(_In_ HWND); 5131 HDESK WINAPI OpenInputDesktop(_In_ DWORD, _In_ BOOL, _In_ DWORD); 5132 HWINSTA WINAPI OpenWindowStationA(_In_ LPCSTR, _In_ BOOL, _In_ DWORD); 5133 HWINSTA WINAPI OpenWindowStationW(_In_ LPCWSTR, _In_ BOOL, _In_ DWORD); 5134 BOOL WINAPI PaintDesktop(_In_ HDC); 5135 BOOL WINAPI PeekMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT); 5136 BOOL WINAPI PeekMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT); 5137 #define PostAppMessageA(t,m,w,l) PostThreadMessageA((DWORD)t,m,w,l) 5138 #define PostAppMessageW(t,m,w,l) PostThreadMessageW((DWORD)t,m,w,l) 5139 BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 5140 BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 5141 5142 __analysis_noreturn 5143 void WINAPI PostQuitMessage(_In_ int); 5144 5145 BOOL WINAPI PostThreadMessageA(_In_ DWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 5146 BOOL WINAPI PostThreadMessageW(_In_ DWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 5147 #if (_WIN32_WINNT >= 0x0501) 5148 BOOL WINAPI PrintWindow(_In_ HWND, _In_ HDC, _In_ UINT); 5149 #endif 5150 5151 UINT 5152 WINAPI 5153 PrivateExtractIconsA( 5154 _In_reads_(MAX_PATH) LPCSTR szFileName, 5155 _In_ int nIconIndex, 5156 _In_ int cxIcon, 5157 _In_ int cyIcon, 5158 _Out_writes_opt_(nIcons) HICON *phicon, 5159 _Out_writes_opt_(nIcons) UINT *piconid, 5160 _In_ UINT nIcons, 5161 _In_ UINT flags); 5162 5163 UINT 5164 WINAPI 5165 PrivateExtractIconsW( 5166 _In_reads_(MAX_PATH) LPCWSTR szFileName, 5167 _In_ int nIconIndex, 5168 _In_ int cxIcon, 5169 _In_ int cyIcon, 5170 _Out_writes_opt_(nIcons) HICON *phicon, 5171 _Out_writes_opt_(nIcons) UINT *piconid, 5172 _In_ UINT nIcons, 5173 _In_ UINT flags); 5174 5175 UINT WINAPI WINAPI PrivateExtractIconExA(LPCSTR,int,HICON*,HICON*,UINT); 5176 UINT WINAPI WINAPI PrivateExtractIconExW(LPCWSTR,int,HICON*,HICON*,UINT); 5177 BOOL WINAPI PtInRect(_In_ LPCRECT, _In_ POINT); 5178 HWND WINAPI RealChildWindowFromPoint(_In_ HWND, _In_ POINT); 5179 5180 UINT 5181 WINAPI 5182 RealGetWindowClassA( 5183 _In_ HWND hwnd, 5184 _Out_writes_to_(cchClassNameMax, return) LPSTR ptszClassName, 5185 _In_ UINT cchClassNameMax); 5186 5187 UINT 5188 WINAPI 5189 RealGetWindowClassW( 5190 _In_ HWND hwnd, 5191 _Out_writes_to_(cchClassNameMax, return) LPWSTR ptszClassName, 5192 _In_ UINT cchClassNameMax); 5193 5194 BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT); 5195 ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA*); 5196 ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW*); 5197 ATOM WINAPI RegisterClassExA(_In_ CONST WNDCLASSEXA*); 5198 ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW*); 5199 #if(_WIN32_WINNT >= 0x0501) 5200 typedef BOOLEAN (WINAPI * PREGISTERCLASSNAMEW)(LPCWSTR); 5201 #endif 5202 UINT WINAPI RegisterClipboardFormatA(_In_ LPCSTR); 5203 UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR); 5204 #if (WINVER >= 0x0500) 5205 HDEVNOTIFY WINAPI RegisterDeviceNotificationA(_In_ HANDLE, _In_ LPVOID, _In_ DWORD); 5206 HDEVNOTIFY WINAPI RegisterDeviceNotificationW(_In_ HANDLE, _In_ LPVOID, _In_ DWORD); 5207 #endif 5208 BOOL WINAPI RegisterHotKey(_In_opt_ HWND, _In_ int, _In_ UINT, _In_ UINT); 5209 BOOL WINAPI RegisterLogonProcess(DWORD,BOOL); 5210 5211 #if (_WIN32_WINNT >= 0x0501) 5212 BOOL 5213 WINAPI 5214 RegisterRawInputDevices( 5215 _In_reads_(uiNumDevices) PCRAWINPUTDEVICE pRawInputDevices, 5216 _In_ UINT uiNumDevices, 5217 _In_ UINT cbSize); 5218 #endif 5219 5220 BOOL WINAPI RegisterShellHookWindow(_In_ HWND); 5221 UINT WINAPI RegisterWindowMessageA(_In_ LPCSTR); 5222 UINT WINAPI RegisterWindowMessageW(_In_ LPCWSTR); 5223 BOOL WINAPI ReleaseCapture(void); 5224 int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC); 5225 BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT); 5226 HANDLE WINAPI RemovePropA(_In_ HWND, _In_ LPCSTR); 5227 HANDLE WINAPI RemovePropW(_In_ HWND, _In_ LPCWSTR); 5228 BOOL WINAPI ReplyMessage(_In_ LRESULT); 5229 BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT); 5230 VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM); 5231 BOOL WINAPI ScrollDC(_In_ HDC, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT); 5232 BOOL WINAPI ScrollWindow(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT); 5233 int WINAPI ScrollWindowEx(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT, _In_ UINT); 5234 LRESULT WINAPI SendDlgItemMessageA(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 5235 LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 5236 5237 #if (_WIN32_WINNT >= 0x0403) 5238 UINT 5239 WINAPI 5240 SendInput( 5241 _In_ UINT cInputs, 5242 _In_reads_(cInputs) LPINPUT pInputs, 5243 _In_ int cbSize); 5244 #endif 5245 5246 LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 5247 BOOL WINAPI SendMessageCallbackA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ SENDASYNCPROC, _In_ ULONG_PTR); 5248 BOOL WINAPI SendMessageCallbackW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ SENDASYNCPROC, _In_ ULONG_PTR); 5249 LRESULT WINAPI SendMessageTimeoutA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ UINT, _In_ UINT, _Out_opt_ PDWORD_PTR); 5250 LRESULT WINAPI SendMessageTimeoutW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ UINT, _In_ UINT, _Out_opt_ PDWORD_PTR); 5251 LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 5252 BOOL WINAPI SendNotifyMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 5253 BOOL WINAPI SendNotifyMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); 5254 HWND WINAPI SetActiveWindow(_In_ HWND); 5255 HWND WINAPI SetCapture(_In_ HWND hWnd); 5256 BOOL WINAPI SetCaretBlinkTime(_In_ UINT); 5257 BOOL WINAPI SetCaretPos(_In_ int, _In_ int); 5258 DWORD WINAPI SetClassLongA(_In_ HWND, _In_ int, _In_ LONG); 5259 DWORD WINAPI SetClassLongW(_In_ HWND, _In_ int, _In_ LONG); 5260 #ifdef _WIN64 5261 ULONG_PTR WINAPI SetClassLongPtrA(_In_ HWND, _In_ INT, _In_ LONG_PTR); 5262 ULONG_PTR WINAPI SetClassLongPtrW(_In_ HWND, _In_ INT, _In_ LONG_PTR); 5263 #else 5264 #define SetClassLongPtrA SetClassLongA 5265 #define SetClassLongPtrW SetClassLongW 5266 #endif 5267 WORD WINAPI SetClassWord(_In_ HWND, _In_ int, _In_ WORD); 5268 HANDLE WINAPI SetClipboardData(_In_ UINT, _In_opt_ HANDLE); 5269 HWND WINAPI SetClipboardViewer(_In_ HWND); 5270 HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR); 5271 BOOL WINAPI SetCursorPos(_In_ int, _In_ int); 5272 VOID WINAPI SetDebugErrorLevel(_In_ DWORD); 5273 BOOL WINAPI SetDeskWallPaper(LPCSTR); 5274 BOOL WINAPI SetDlgItemInt(_In_ HWND, _In_ int, _In_ UINT, _In_ BOOL); 5275 BOOL WINAPI SetDlgItemTextA(_In_ HWND, _In_ int, _In_ LPCSTR); 5276 BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR); 5277 BOOL WINAPI SetDoubleClickTime(_In_ UINT); 5278 HWND WINAPI SetFocus(_In_opt_ HWND); 5279 BOOL WINAPI SetForegroundWindow(_In_ HWND); 5280 BOOL WINAPI SetKeyboardState(_In_reads_(256) LPBYTE); 5281 BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU); 5282 BOOL WINAPI SetMenuContextHelpId(_In_ HMENU, _In_ DWORD); 5283 BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT); 5284 BOOL WINAPI SetMenuInfo(_In_ HMENU, _In_ LPCMENUINFO); 5285 BOOL WINAPI SetMenuItemBitmaps(_In_ HMENU, _In_ UINT, _In_ UINT, _In_opt_ HBITMAP, _In_opt_ HBITMAP); 5286 BOOL WINAPI SetMenuItemInfoA(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOA); 5287 BOOL WINAPI SetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW); 5288 LPARAM WINAPI SetMessageExtraInfo(_In_ LPARAM); 5289 BOOL WINAPI SetMessageQueue(_In_ int); 5290 HWND WINAPI SetParent(_In_ HWND, _In_opt_ HWND); 5291 #if (_WIN32_WINNT >= 0x0500) 5292 BOOL WINAPI SetProcessDefaultLayout(_In_ DWORD); 5293 #endif /* (_WIN32_WINNT >= 0x0500) */ 5294 BOOL WINAPI SetProcessWindowStation(_In_ HWINSTA); 5295 BOOL WINAPI SetPropA(_In_ HWND, _In_ LPCSTR, _In_opt_ HANDLE); 5296 BOOL WINAPI SetPropW(_In_ HWND, _In_ LPCWSTR, _In_opt_ HANDLE); 5297 BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int); 5298 BOOL WINAPI SetRectEmpty(_Out_ LPRECT); 5299 int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL); 5300 int WINAPI SetScrollPos(_In_ HWND, _In_ int, _In_ int, _In_ BOOL); 5301 BOOL WINAPI SetScrollRange(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ BOOL); 5302 5303 BOOL 5304 WINAPI 5305 SetSysColors( 5306 _In_ int cElements, 5307 _In_reads_(cElements) CONST INT * lpaElements, 5308 _In_reads_(cElements) CONST COLORREF * lpaRgbValues); 5309 5310 DWORD_PTR WINAPI SetSysColorsTemp(const COLORREF *, const HBRUSH *, DWORD_PTR); 5311 #define SetSysModalWindow(h) (NULL) 5312 BOOL WINAPI SetSystemCursor(_In_ HCURSOR, _In_ DWORD); 5313 BOOL WINAPI SetSystemMenu(HWND,HMENU); 5314 BOOL WINAPI SetThreadDesktop(_In_ HDESK); 5315 UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC); 5316 UINT_PTR WINAPI SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC); 5317 5318 BOOL 5319 WINAPI 5320 SetUserObjectInformationA( 5321 _In_ HANDLE hObj, 5322 _In_ int nIndex, 5323 _In_reads_bytes_(nLength) PVOID pvInfo, 5324 _In_ DWORD nLength); 5325 5326 BOOL 5327 WINAPI 5328 SetUserObjectInformationW( 5329 _In_ HANDLE hObj, 5330 _In_ int nIndex, 5331 _In_reads_bytes_(nLength) PVOID pvInfo, 5332 _In_ DWORD nLength); 5333 5334 BOOL WINAPI SetUserObjectSecurity(_In_ HANDLE, _In_ PSECURITY_INFORMATION, _In_ PSECURITY_DESCRIPTOR); 5335 #if (WINVER >= 0x0500) 5336 HWINEVENTHOOK WINAPI SetWinEventHook(_In_ UINT, _In_ UINT, _In_opt_ HMODULE, _In_ WINEVENTPROC, _In_ DWORD, _In_ DWORD, _In_ UINT); 5337 #endif 5338 BOOL WINAPI SetWindowContextHelpId(_In_ HWND, _In_ DWORD); 5339 LONG WINAPI SetWindowLongA(_In_ HWND, _In_ int, _In_ LONG); 5340 LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG); 5341 #ifdef _WIN64 5342 LONG_PTR WINAPI SetWindowLongPtrA(_In_ HWND, _In_ int, _In_ LONG_PTR); 5343 LONG_PTR WINAPI SetWindowLongPtrW(_In_ HWND, _In_ int, _In_ LONG_PTR); 5344 #else 5345 #define SetWindowLongPtrA SetWindowLongA 5346 #define SetWindowLongPtrW SetWindowLongW 5347 #endif 5348 BOOL WINAPI SetWindowPlacement(_In_ HWND hWnd, _In_ const WINDOWPLACEMENT*); 5349 BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT); 5350 int WINAPI SetWindowRgn(_In_ HWND, _In_opt_ HRGN, _In_ BOOL); 5351 HHOOK WINAPI SetWindowsHookA(_In_ int, _In_ HOOKPROC); 5352 HHOOK WINAPI SetWindowsHookW(_In_ int, _In_ HOOKPROC); 5353 HHOOK WINAPI SetWindowsHookExA(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD); 5354 HHOOK WINAPI SetWindowsHookExW(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD); 5355 BOOL WINAPI SetWindowTextA(_In_ HWND, _In_opt_ LPCSTR); 5356 BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR); 5357 WORD WINAPI SetWindowWord(_In_ HWND, _In_ int, _In_ WORD); 5358 BOOL WINAPI ShowCaret(_In_opt_ HWND); 5359 int WINAPI ShowCursor(_In_ BOOL); 5360 BOOL WINAPI ShowOwnedPopups(_In_ HWND, _In_ BOOL); 5361 BOOL WINAPI ShowScrollBar(_In_ HWND, _In_ int, _In_ BOOL); 5362 BOOL WINAPI ShowWindow(_In_ HWND, _In_ int); 5363 BOOL WINAPI ShowWindowAsync(_In_ HWND, _In_ int); 5364 BOOL WINAPI SubtractRect(_Out_ LPRECT, _In_ LPCRECT, _In_ LPCRECT); 5365 BOOL WINAPI SwapMouseButton(_In_ BOOL); 5366 BOOL WINAPI SwitchDesktop(_In_ HDESK); 5367 #if(_WIN32_WINNT >= 0x0500) 5368 VOID WINAPI SwitchToThisWindow(_In_ HWND, _In_ BOOL); 5369 #endif /* (_WIN32_WINNT >= 0x0500) */ 5370 BOOL WINAPI SystemParametersInfoA(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni); 5371 BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni); 5372 5373 LONG 5374 WINAPI 5375 TabbedTextOutA( 5376 _In_ HDC hdc, 5377 _In_ int x, 5378 _In_ int y, 5379 _In_reads_(chCount) LPCSTR lpString, 5380 _In_ int chCount, 5381 _In_ int nTabPositions, 5382 _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions, 5383 _In_ int nTabOrigin); 5384 5385 LONG 5386 WINAPI 5387 TabbedTextOutW( 5388 _In_ HDC hdc, 5389 _In_ int x, 5390 _In_ int y, 5391 _In_reads_(chCount) LPCWSTR lpString, 5392 _In_ int chCount, 5393 _In_ int nTabPositions, 5394 _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions, 5395 _In_ int nTabOrigin); 5396 5397 WORD 5398 WINAPI 5399 TileWindows( 5400 _In_opt_ HWND hwndParent, 5401 _In_ UINT wHow, 5402 _In_opt_ CONST RECT * lpRect, 5403 _In_ UINT cKids, 5404 _In_reads_opt_(cKids) const HWND FAR *lpKids); 5405 5406 int WINAPI ToAscii(_In_ UINT, _In_ UINT, _In_reads_opt_(256) CONST BYTE*, _Out_ LPWORD, _In_ UINT); 5407 int WINAPI ToAsciiEx(_In_ UINT, _In_ UINT, _In_reads_opt_(256) CONST BYTE*, _Out_ LPWORD, _In_ UINT, _In_opt_ HKL); 5408 5409 int 5410 WINAPI 5411 ToUnicode( 5412 _In_ UINT wVirtKey, 5413 _In_ UINT wScanCode, 5414 _In_reads_bytes_opt_(256) CONST BYTE *lpKeyState, 5415 _Out_writes_(cchBuff) LPWSTR pwszBuff, 5416 _In_ int cchBuff, 5417 _In_ UINT wFlags); 5418 5419 int 5420 WINAPI 5421 ToUnicodeEx( 5422 _In_ UINT wVirtKey, 5423 _In_ UINT wScanCode, 5424 _In_reads_bytes_(256) CONST BYTE *lpKeyState, 5425 _Out_writes_(cchBuff) LPWSTR pwszBuff, 5426 _In_ int cchBuff, 5427 _In_ UINT wFlags, 5428 _In_opt_ HKL dwhkl); 5429 5430 BOOL WINAPI TrackMouseEvent(_Inout_ LPTRACKMOUSEEVENT); 5431 BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT); 5432 BOOL WINAPI TrackPopupMenuEx(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _In_ HWND, _In_opt_ LPTPMPARAMS); 5433 int WINAPI TranslateAcceleratorA(_In_ HWND, _In_ HACCEL, _In_ LPMSG); 5434 int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG); 5435 BOOL WINAPI TranslateMDISysAccel(_In_ HWND, _In_ LPMSG); 5436 BOOL WINAPI TranslateMessage(_In_ const MSG*); 5437 BOOL WINAPI UnhookWindowsHook(_In_ int, _In_ HOOKPROC); 5438 BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK); 5439 #if (WINVER >= 0x0500) 5440 BOOL WINAPI UnhookWinEvent(_In_ HWINEVENTHOOK); 5441 #endif 5442 BOOL WINAPI UnionRect(_Out_ LPRECT, _In_ LPCRECT, _In_ LPCRECT); 5443 BOOL WINAPI UnloadKeyboardLayout(_In_ HKL); 5444 BOOL WINAPI UnregisterClassA(_In_ LPCSTR,HINSTANCE); 5445 BOOL WINAPI UnregisterClassW(_In_ LPCWSTR,HINSTANCE); 5446 #if (WINVER >= 0x0500) 5447 BOOL WINAPI UnregisterDeviceNotification(_In_ HDEVNOTIFY); 5448 #endif 5449 BOOL WINAPI UnregisterHotKey(_In_opt_ HWND, _In_ int); 5450 BOOL WINAPI UpdateWindow(_In_ HWND); 5451 #if (_WIN32_WINNT >= 0x0500) 5452 BOOL WINAPI UserHandleGrantAccess(_In_ HANDLE, _In_ HANDLE, _In_ BOOL); 5453 #endif 5454 BOOL WINAPI ValidateRect(_In_opt_ HWND, _In_opt_ LPCRECT); 5455 BOOL WINAPI ValidateRgn(_In_ HWND, _In_opt_ HRGN); 5456 SHORT WINAPI VkKeyScanA(_In_ CHAR); 5457 SHORT WINAPI VkKeyScanExA(_In_ CHAR, _In_ HKL); 5458 SHORT WINAPI VkKeyScanExW(_In_ WCHAR, _In_ HKL); 5459 SHORT WINAPI VkKeyScanW(_In_ WCHAR); 5460 DWORD WINAPI WaitForInputIdle(_In_ HANDLE, _In_ DWORD); 5461 BOOL WINAPI WaitMessage(void); 5462 HWND WINAPI WindowFromDC(_In_ HDC hDC); 5463 #if (_WIN32_WINNT >= 0x0600) 5464 HWND WINAPI WindowFromPhysicalPoint(_In_ POINT); 5465 #endif 5466 HWND WINAPI WindowFromPoint(_In_ POINT); 5467 UINT WINAPI WinExec(LPCSTR,UINT); 5468 BOOL WINAPI WinHelpA(_In_opt_ HWND, _In_opt_ LPCSTR, _In_ UINT, _In_ ULONG_PTR); 5469 BOOL WINAPI WinHelpW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_ UINT, _In_ ULONG_PTR); 5470 5471 int 5472 WINAPIV 5473 wsprintfA( 5474 _Out_ LPSTR, 5475 _In_ _Printf_format_string_ LPCSTR, 5476 ...); 5477 5478 int 5479 WINAPIV 5480 wsprintfW( 5481 _Out_ LPWSTR, 5482 _In_ _Printf_format_string_ LPCWSTR, 5483 ...); 5484 5485 int 5486 WINAPI 5487 wvsprintfA( 5488 _Out_ LPSTR, 5489 _In_ _Printf_format_string_ LPCSTR, 5490 _In_ va_list arglist); 5491 5492 int 5493 WINAPI 5494 wvsprintfW( 5495 _Out_ LPWSTR, 5496 _In_ _Printf_format_string_ LPCWSTR, 5497 _In_ va_list arglist); 5498 5499 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490) 5500 BOOL WINAPI AllowSetForegroundWindow(_In_ DWORD); 5501 BOOL WINAPI LockSetForegroundWindow(_In_ UINT); 5502 #endif 5503 #if (_WIN32_WINNT >= 0x0500) 5504 5505 BOOL WINAPI SetLayeredWindowAttributes(_In_ HWND, _In_ COLORREF, _In_ BYTE, _In_ DWORD); 5506 5507 #if defined(_WINGDI_) && !defined(NOGDI) 5508 5509 BOOL 5510 WINAPI 5511 UpdateLayeredWindow( 5512 _In_ HWND hWnd, 5513 _In_opt_ HDC hdcDst, 5514 _In_opt_ POINT* pptDst, 5515 _In_opt_ SIZE* psize, 5516 _In_opt_ HDC hdcSrc, 5517 _In_opt_ POINT* pptSrc, 5518 _In_ COLORREF crKey, 5519 _In_opt_ BLENDFUNCTION* pblend, 5520 _In_ DWORD dwFlags); 5521 5522 typedef struct tagUPDATELAYEREDWINDOWINFO { 5523 DWORD cbSize; 5524 HDC hdcDst; 5525 POINT CONST* pptDst; 5526 SIZE CONST* psize; 5527 HDC hdcSrc; 5528 POINT CONST* pptSrc; 5529 COLORREF crKey; 5530 BLENDFUNCTION CONST* pblend; 5531 DWORD dwFlags; 5532 RECT CONST* prcDirty; 5533 } UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO; 5534 5535 BOOL WINAPI UpdateLayeredWindowIndirect(_In_ HWND, _In_ const UPDATELAYEREDWINDOWINFO*); 5536 5537 #endif /* defined(_WINGDI_) && !defined(NOGDI) */ 5538 5539 #endif /* (_WIN32_WINNT >= 0x0500) */ 5540 5541 #if (_WIN32_WINNT >= 0x0501) 5542 BOOL WINAPI GetLayeredWindowAttributes(_In_ HWND, _Out_opt_ COLORREF*, _Out_opt_ BYTE*, _Out_opt_ DWORD*); 5543 #endif 5544 #ifdef UNICODE 5545 #define EDITWORDBREAKPROC EDITWORDBREAKPROCW 5546 #define PROPENUMPROC PROPENUMPROCW 5547 #define PROPENUMPROCEX PROPENUMPROCEXW 5548 #define DESKTOPENUMPROC DESKTOPENUMPROCW 5549 #define WINSTAENUMPROC WINSTAENUMPROCW 5550 #define PROPENUMPROC PROPENUMPROCW 5551 #define PROPENUMPROCEX PROPENUMPROCEXW 5552 typedef WNDCLASSW WNDCLASS,*LPWNDCLASS,*PWNDCLASS; 5553 typedef WNDCLASSEXW WNDCLASSEX,*LPWNDCLASSEX,*PWNDCLASSEX; 5554 typedef MENUITEMINFOW MENUITEMINFO,*LPMENUITEMINFO; 5555 typedef LPCMENUITEMINFOW LPCMENUITEMINFO; 5556 typedef MSGBOXPARAMSW MSGBOXPARAMS,*PMSGBOXPARAMS,*LPMSGBOXPARAMS; 5557 typedef HIGHCONTRASTW HIGHCONTRAST,*LPHIGHCONTRAST; 5558 typedef SERIALKEYSW SERIALKEYS,*LPSERIALKEYS; 5559 typedef SOUNDSENTRYW SOUNDSENTRY,*LPSOUNDSENTRY; 5560 typedef CREATESTRUCTW CREATESTRUCT, *LPCREATESTRUCT; 5561 typedef CBT_CREATEWNDW CBT_CREATEWND, *LPCBT_CREATEWND; 5562 typedef MDICREATESTRUCTW MDICREATESTRUCT,*LPMDICREATESTRUCT; 5563 typedef MULTIKEYHELPW MULTIKEYHELP,*PMULTIKEYHELP,*LPMULTIKEYHELP; 5564 typedef MONITORINFOEXW MONITORINFOEX, *LPMONITORINFOEX; 5565 #define AppendMenu AppendMenuW 5566 #define BroadcastSystemMessage BroadcastSystemMessageW 5567 #define BroadcastSystemMessageEx BroadcastSystemMessageExW 5568 #define CallMsgFilter CallMsgFilterW 5569 #define CallWindowProc CallWindowProcW 5570 #define ChangeMenu ChangeMenuW 5571 #define CharLower CharLowerW 5572 #define CharLowerBuff CharLowerBuffW 5573 #define CharNext CharNextW 5574 #define CharNextEx CharNextExW 5575 #define CharPrev CharPrevW 5576 #define CharPrevEx CharPrevExW 5577 #define CharToOem CharToOemW 5578 #define CharToOemBuff CharToOemBuffW 5579 #define CharUpper CharUpperW 5580 #define CharUpperBuff CharUpperBuffW 5581 #define CopyAcceleratorTable CopyAcceleratorTableW 5582 #define CreateAcceleratorTable CreateAcceleratorTableW 5583 #define CreateDialog CreateDialogW 5584 #define CreateDialogIndirect CreateDialogIndirectW 5585 #define CreateDialogIndirectParam CreateDialogIndirectParamW 5586 #define CreateDialogParam CreateDialogParamW 5587 #define CreateMDIWindow CreateMDIWindowW 5588 #define CreateWindow CreateWindowW 5589 #define CreateWindowEx CreateWindowExW 5590 #define CreateWindowStation CreateWindowStationW 5591 #define DefDlgProc DefDlgProcW 5592 #define DefFrameProc DefFrameProcW 5593 #define DefMDIChildProc DefMDIChildProcW 5594 #define DefWindowProc DefWindowProcW 5595 #define DialogBox DialogBoxW 5596 #define DialogBoxIndirect DialogBoxIndirectW 5597 #define DialogBoxIndirectParam DialogBoxIndirectParamW 5598 #define DialogBoxParam DialogBoxParamW 5599 #define DispatchMessage DispatchMessageW 5600 #define DlgDirList DlgDirListW 5601 #define DlgDirListComboBox DlgDirListComboBoxW 5602 #define DlgDirSelectComboBoxEx DlgDirSelectComboBoxExW 5603 #define DlgDirSelectEx DlgDirSelectExW 5604 #define DrawState DrawStateW 5605 #define DrawText DrawTextW 5606 #define DrawTextEx DrawTextExW 5607 #define EnumDesktops EnumDesktopsW 5608 #define EnumProps EnumPropsW 5609 #define EnumPropsEx EnumPropsExW 5610 #define EnumWindowStations EnumWindowStationsW 5611 #define FindWindow FindWindowW 5612 #define FindWindowEx FindWindowExW 5613 #define GetClassInfo GetClassInfoW 5614 #define GetClassInfoEx GetClassInfoExW 5615 #define GetClassLong GetClassLongW 5616 #define GetClassLongPtr GetClassLongPtrW 5617 #define GetClassName GetClassNameW 5618 #define GetClipboardFormatName GetClipboardFormatNameW 5619 #define GetDlgItemText GetDlgItemTextW 5620 #define GetKeyboardLayoutName GetKeyboardLayoutNameW 5621 #define GetKeyNameText GetKeyNameTextW 5622 #define GetMenuItemInfo GetMenuItemInfoW 5623 #define GetMenuString GetMenuStringW 5624 #define GetMessage GetMessageW 5625 #define GetMonitorInfo GetMonitorInfoW 5626 #define GetProp GetPropW 5627 #define GetRawInputDeviceInfo GetRawInputDeviceInfoW 5628 #define GetTabbedTextExtent GetTabbedTextExtentW 5629 #define GetUserObjectInformation GetUserObjectInformationW 5630 #define GetWindowLong GetWindowLongW 5631 #define GetWindowLongPtr GetWindowLongPtrW 5632 #define GetWindowText GetWindowTextW 5633 #define GetWindowTextLength GetWindowTextLengthW 5634 #define GetAltTabInfo GetAltTabInfoW 5635 #define GetWindowModuleFileName GetWindowModuleFileNameW 5636 #define GrayString GrayStringW 5637 #define InsertMenu InsertMenuW 5638 #define InsertMenuItem InsertMenuItemW 5639 #define IsCharAlpha IsCharAlphaW 5640 #define IsCharAlphaNumeric IsCharAlphaNumericW 5641 #define IsCharLower IsCharLowerW 5642 #define IsCharUpper IsCharUpperW 5643 #define IsDialogMessage IsDialogMessageW 5644 #define LoadAccelerators LoadAcceleratorsW 5645 #define LoadBitmap LoadBitmapW 5646 #define LoadCursor LoadCursorW 5647 #define LoadCursorFromFile LoadCursorFromFileW 5648 #define LoadIcon LoadIconW 5649 #define LoadImage LoadImageW 5650 #define LoadKeyboardLayout LoadKeyboardLayoutW 5651 #define LoadMenu LoadMenuW 5652 #define LoadMenuIndirect LoadMenuIndirectW 5653 #define LoadString LoadStringW 5654 #define MapVirtualKey MapVirtualKeyW 5655 #define MapVirtualKeyEx MapVirtualKeyExW 5656 #define MessageBox MessageBoxW 5657 #define MessageBoxEx MessageBoxExW 5658 #define MessageBoxIndirect MessageBoxIndirectW 5659 #define ModifyMenu ModifyMenuW 5660 #define OemToChar OemToCharW 5661 #define OemToCharBuff OemToCharBuffW 5662 #define OpenDesktop OpenDesktopW 5663 #define OpenWindowStation OpenWindowStationW 5664 #define PeekMessage PeekMessageW 5665 #define PostAppMessage PostAppMessageW 5666 #define PostMessage PostMessageW 5667 #define PostThreadMessage PostThreadMessageW 5668 #define PrivateExtractIcons PrivateExtractIconsW 5669 #define RealGetWindowClass RealGetWindowClassW 5670 #define RegisterClass RegisterClassW 5671 #define RegisterClassEx RegisterClassExW 5672 #define RegisterClipboardFormat RegisterClipboardFormatW 5673 #define RegisterDeviceNotification RegisterDeviceNotificationW 5674 #define RegisterWindowMessage RegisterWindowMessageW 5675 #define RemoveProp RemovePropW 5676 #define SendDlgItemMessage SendDlgItemMessageW 5677 #define SendMessage SendMessageW 5678 #define SendMessageCallback SendMessageCallbackW 5679 #define SendMessageTimeout SendMessageTimeoutW 5680 #define SendNotifyMessage SendNotifyMessageW 5681 #define SetClassLong SetClassLongW 5682 #define SetClassLongPtr SetClassLongPtrW 5683 #define SetDlgItemText SetDlgItemTextW 5684 #define SetMenuItemInfo SetMenuItemInfoW 5685 #define SetProp SetPropW 5686 #define SetUserObjectInformation SetUserObjectInformationW 5687 #define SetWindowLong SetWindowLongW 5688 #define SetWindowLongPtr SetWindowLongPtrW 5689 #define SetWindowsHook SetWindowsHookW 5690 #define SetWindowsHookEx SetWindowsHookExW 5691 #define SetWindowText SetWindowTextW 5692 #define SystemParametersInfo SystemParametersInfoW 5693 #define TabbedTextOut TabbedTextOutW 5694 #define TranslateAccelerator TranslateAcceleratorW 5695 #define UnregisterClass UnregisterClassW 5696 #define VkKeyScan VkKeyScanW 5697 #define VkKeyScanEx VkKeyScanExW 5698 #define WinHelp WinHelpW 5699 #define wsprintf wsprintfW 5700 #define wvsprintf wvsprintfW 5701 5702 #if defined(_WINGDI_) && !defined(NOGDI) 5703 #define ChangeDisplaySettings ChangeDisplaySettingsW 5704 #define ChangeDisplaySettingsEx ChangeDisplaySettingsExW 5705 #define CreateDesktop CreateDesktopW 5706 #define EnumDisplaySettings EnumDisplaySettingsW 5707 #define EnumDisplaySettingsEx EnumDisplaySettingsExW 5708 #define EnumDisplayDevices EnumDisplayDevicesW 5709 #endif /* _WINGDI_ && !NOGDI */ 5710 #else /* UNICODE */ 5711 #define EDITWORDBREAKPROC EDITWORDBREAKPROCA 5712 #define PROPENUMPROC PROPENUMPROCA 5713 #define PROPENUMPROCEX PROPENUMPROCEXA 5714 #define DESKTOPENUMPROC DESKTOPENUMPROCA 5715 #define WINSTAENUMPROC WINSTAENUMPROCA 5716 #define PROPENUMPROC PROPENUMPROCA 5717 #define PROPENUMPROCEX PROPENUMPROCEXA 5718 typedef WNDCLASSA WNDCLASS,*LPWNDCLASS,*PWNDCLASS; 5719 typedef WNDCLASSEXA WNDCLASSEX,*LPWNDCLASSEX,*PWNDCLASSEX; 5720 typedef MENUITEMINFOA MENUITEMINFO,*LPMENUITEMINFO; 5721 typedef LPCMENUITEMINFOA LPCMENUITEMINFO; 5722 typedef MSGBOXPARAMSA MSGBOXPARAMS,*PMSGBOXPARAMS,*LPMSGBOXPARAMS; 5723 typedef HIGHCONTRASTA HIGHCONTRAST,*LPHIGHCONTRAST; 5724 typedef SERIALKEYSA SERIALKEYS,*LPSERIALKEYS; 5725 typedef SOUNDSENTRYA SOUNDSENTRY,*LPSOUNDSENTRY; 5726 typedef CREATESTRUCTA CREATESTRUCT, *LPCREATESTRUCT; 5727 typedef CBT_CREATEWNDA CBT_CREATEWND, *LPCBT_CREATEWND; 5728 typedef MDICREATESTRUCTA MDICREATESTRUCT,*LPMDICREATESTRUCT; 5729 typedef MULTIKEYHELPA MULTIKEYHELP,*PMULTIKEYHELP,*LPMULTIKEYHELP; 5730 typedef MONITORINFOEXA MONITORINFOEX, *LPMONITORINFOEX; 5731 #define AppendMenu AppendMenuA 5732 #define BroadcastSystemMessage BroadcastSystemMessageA 5733 #define BroadcastSystemMessageEx BroadcastSystemMessageExA 5734 #define CallMsgFilter CallMsgFilterA 5735 #define CallWindowProc CallWindowProcA 5736 #define ChangeMenu ChangeMenuA 5737 #define CharLower CharLowerA 5738 #define CharLowerBuff CharLowerBuffA 5739 #define CharNext CharNextA 5740 #define CharNextEx CharNextExA 5741 #define CharPrev CharPrevA 5742 #define CharPrevEx CharPrevExA 5743 #define CharToOem CharToOemA 5744 #define CharToOemBuff CharToOemBuffA 5745 #define CharUpper CharUpperA 5746 #define CharUpperBuff CharUpperBuffA 5747 #define CopyAcceleratorTable CopyAcceleratorTableA 5748 #define CreateAcceleratorTable CreateAcceleratorTableA 5749 #define CreateDialog CreateDialogA 5750 #define CreateDialogIndirect CreateDialogIndirectA 5751 #define CreateDialogIndirectParam CreateDialogIndirectParamA 5752 #define CreateDialogParam CreateDialogParamA 5753 #define CreateMDIWindow CreateMDIWindowA 5754 #define CreateWindow CreateWindowA 5755 #define CreateWindowEx CreateWindowExA 5756 #define CreateWindowStation CreateWindowStationA 5757 #define DefDlgProc DefDlgProcA 5758 #define DefFrameProc DefFrameProcA 5759 #define DefMDIChildProc DefMDIChildProcA 5760 #define DefWindowProc DefWindowProcA 5761 #define DialogBox DialogBoxA 5762 #define DialogBoxIndirect DialogBoxIndirectA 5763 #define DialogBoxIndirectParam DialogBoxIndirectParamA 5764 #define DialogBoxParam DialogBoxParamA 5765 #define DispatchMessage DispatchMessageA 5766 #define DlgDirList DlgDirListA 5767 #define DlgDirListComboBox DlgDirListComboBoxA 5768 #define DlgDirSelectComboBoxEx DlgDirSelectComboBoxExA 5769 #define DlgDirSelectEx DlgDirSelectExA 5770 #define DrawState DrawStateA 5771 #define DrawText DrawTextA 5772 #define DrawTextEx DrawTextExA 5773 #define EnumDesktops EnumDesktopsA 5774 #define EnumProps EnumPropsA 5775 #define EnumPropsEx EnumPropsExA 5776 #define EnumWindowStations EnumWindowStationsA 5777 #define FindWindow FindWindowA 5778 #define FindWindowEx FindWindowExA 5779 #define GetClassInfo GetClassInfoA 5780 #define GetClassInfoEx GetClassInfoExA 5781 #define GetClassLong GetClassLongA 5782 #define GetClassLongPtr GetClassLongPtrA 5783 #define GetClassName GetClassNameA 5784 #define GetClipboardFormatName GetClipboardFormatNameA 5785 #define GetDlgItemText GetDlgItemTextA 5786 #define GetKeyboardLayoutName GetKeyboardLayoutNameA 5787 #define GetKeyNameText GetKeyNameTextA 5788 #define GetMenuItemInfo GetMenuItemInfoA 5789 #define GetMenuString GetMenuStringA 5790 #define GetMessage GetMessageA 5791 #define GetMonitorInfo GetMonitorInfoA 5792 #define GetProp GetPropA 5793 #define GetRawInputDeviceInfo GetRawInputDeviceInfoA 5794 #define GetTabbedTextExtent GetTabbedTextExtentA 5795 #define GetUserObjectInformation GetUserObjectInformationA 5796 #define GetWindowLong GetWindowLongA 5797 #define GetWindowLongPtr GetWindowLongPtrA 5798 #define GetWindowText GetWindowTextA 5799 #define GetWindowTextLength GetWindowTextLengthA 5800 #define GetAltTabInfo GetAltTabInfoA 5801 #define GetWindowModuleFileName GetWindowModuleFileNameA 5802 #define GrayString GrayStringA 5803 #define InsertMenu InsertMenuA 5804 #define InsertMenuItem InsertMenuItemA 5805 #define IsCharAlpha IsCharAlphaA 5806 #define IsCharAlphaNumeric IsCharAlphaNumericA 5807 #define IsCharLower IsCharLowerA 5808 #define IsCharUpper IsCharUpperA 5809 #define IsDialogMessage IsDialogMessageA 5810 #define LoadAccelerators LoadAcceleratorsA 5811 #define LoadBitmap LoadBitmapA 5812 #define LoadCursor LoadCursorA 5813 #define LoadIcon LoadIconA 5814 #define LoadCursorFromFile LoadCursorFromFileA 5815 #define LoadImage LoadImageA 5816 #define LoadKeyboardLayout LoadKeyboardLayoutA 5817 #define LoadMenu LoadMenuA 5818 #define LoadMenuIndirect LoadMenuIndirectA 5819 #define LoadString LoadStringA 5820 #define MapVirtualKey MapVirtualKeyA 5821 #define MapVirtualKeyEx MapVirtualKeyExA 5822 #define MessageBox MessageBoxA 5823 #define MessageBoxEx MessageBoxExA 5824 #define MessageBoxIndirect MessageBoxIndirectA 5825 #define ModifyMenu ModifyMenuA 5826 #define OemToChar OemToCharA 5827 #define OemToCharBuff OemToCharBuffA 5828 #define OpenDesktop OpenDesktopA 5829 #define OpenWindowStation OpenWindowStationA 5830 #define PeekMessage PeekMessageA 5831 #define PostAppMessage PostAppMessageA 5832 #define PostMessage PostMessageA 5833 #define PostThreadMessage PostThreadMessageA 5834 #define PrivateExtractIcons PrivateExtractIconsA 5835 #define RealGetWindowClass RealGetWindowClassA 5836 #define RegisterClass RegisterClassA 5837 #define RegisterClassEx RegisterClassExA 5838 #define RegisterClipboardFormat RegisterClipboardFormatA 5839 #define RegisterDeviceNotification RegisterDeviceNotificationA 5840 #define RegisterWindowMessage RegisterWindowMessageA 5841 #define RemoveProp RemovePropA 5842 #define SendDlgItemMessage SendDlgItemMessageA 5843 #define SendMessage SendMessageA 5844 #define SendMessageCallback SendMessageCallbackA 5845 #define SendMessageTimeout SendMessageTimeoutA 5846 #define SendNotifyMessage SendNotifyMessageA 5847 #define SetClassLong SetClassLongA 5848 #define SetClassLongPtr SetClassLongPtrA 5849 #define SetDlgItemText SetDlgItemTextA 5850 #define SetMenuItemInfo SetMenuItemInfoA 5851 #define SetProp SetPropA 5852 #define SetUserObjectInformation SetUserObjectInformationA 5853 #define SetWindowLong SetWindowLongA 5854 #define SetWindowLongPtr SetWindowLongPtrA 5855 #define SetWindowsHook SetWindowsHookA 5856 #define SetWindowsHookEx SetWindowsHookExA 5857 #define SetWindowText SetWindowTextA 5858 #define SystemParametersInfo SystemParametersInfoA 5859 #define TabbedTextOut TabbedTextOutA 5860 #define TranslateAccelerator TranslateAcceleratorA 5861 #define UnregisterClass UnregisterClassA 5862 #define VkKeyScan VkKeyScanA 5863 #define VkKeyScanEx VkKeyScanExA 5864 #define WinHelp WinHelpA 5865 #define wsprintf wsprintfA 5866 #define wvsprintf wvsprintfA 5867 #if defined(_WINGDI_) && !defined(NOGDI) 5868 #define ChangeDisplaySettings ChangeDisplaySettingsA 5869 #define ChangeDisplaySettingsEx ChangeDisplaySettingsExA 5870 #define CreateDesktop CreateDesktopA 5871 #define EnumDisplaySettings EnumDisplaySettingsA 5872 #define EnumDisplaySettingsEx EnumDisplaySettingsExA 5873 #define EnumDisplayDevices EnumDisplayDevicesA 5874 #endif /* _WINGDI_ && !NOGDI */ 5875 #endif /* UNICODE */ 5876 #endif /* RC_INVOKED */ 5877 5878 #ifdef _WINE 5879 #include "reactos/undocuser.h" 5880 #endif 5881 5882 #ifdef _MSC_VER 5883 #pragma warning(pop) 5884 #endif 5885 5886 #ifdef __cplusplus 5887 } 5888 #endif 5889 #endif 5890