Diff

Not logged in

Differences From Artifact [b45c73c216c900bc]:

To Artifact [71091da201e7d6e2]:


4 * Windows API header module * 4 * Windows API header module * 5 * * 5 * * 6 * Translated from MinGW Windows headers * 6 * Translated from MinGW Windows headers * 7 * * 7 * * 8 * Placed into public domain * 8 * Placed into public domain * 9 \***********************************************************************/ 9 \***********************************************************************/ 10 module win32.winuser; 10 module win32.winuser; 11 pragma(lib, "user32.lib"); | 11 pragma(lib, "user32"); 12 12 13 // Conversion Notes: 13 // Conversion Notes: 14 // The following macros were for win16 only, and are not included in this file: 14 // The following macros were for win16 only, and are not included in this file: 15 //#define EnumTaskWindows(h, f, p) EnumThreadWindows((DWORD)h, f, p) 15 //#define EnumTaskWindows(h, f, p) EnumThreadWindows((DWORD)h, f, p) 16 //#define PostAppMessageA(t, m, w, l) PostThreadMessageA((DWORD)t, m, w, l) 16 //#define PostAppMessageA(t, m, w, l) PostThreadMessageA((DWORD)t, m, w, l) 17 //#define PostAppMessageW(t, m, w, l) PostThreadMessageW((DWORD)t, m, w, l) 17 //#define PostAppMessageW(t, m, w, l) PostThreadMessageW((DWORD)t, m, w, l) 18 //#define GetSysModalWindow() (NULL) 18 //#define GetSysModalWindow() (NULL) ................................................................................................................................................................................ 26 // FIXME: clean up Windows version support 26 // FIXME: clean up Windows version support 27 27 28 template MAKEINTATOM_T(int i) { 28 template MAKEINTATOM_T(int i) { 29 const LPTSTR MAKEINTATOM_T = cast(LPTSTR) i; 29 const LPTSTR MAKEINTATOM_T = cast(LPTSTR) i; 30 } 30 } 31 31 32 const WC_DIALOG = MAKEINTATOM_T!(0x8002); 32 const WC_DIALOG = MAKEINTATOM_T!(0x8002); > 33 > 34 const FAPPCOMMAND_MOUSE = 0x8000; > 35 const FAPPCOMMAND_KEY = 0; > 36 const FAPPCOMMAND_OEM = 0x1000; > 37 const FAPPCOMMAND_MASK = 0xF000; 33 38 34 const FVIRTKEY = 1; 39 const FVIRTKEY = 1; 35 const FNOINVERT = 2; 40 const FNOINVERT = 2; 36 const FSHIFT = 4; 41 const FSHIFT = 4; 37 const FCONTROL = 8; 42 const FCONTROL = 8; 38 const FALT = 16; 43 const FALT = 16; 39 44 ................................................................................................................................................................................ 82 HCBT_CLICKSKIPPED, 87 HCBT_CLICKSKIPPED, 83 HCBT_KEYSKIPPED, 88 HCBT_KEYSKIPPED, 84 HCBT_SYSCOMMAND, 89 HCBT_SYSCOMMAND, 85 HCBT_SETFOCUS // = 9 90 HCBT_SETFOCUS // = 9 86 } 91 } 87 92 88 enum { 93 enum { 89 CF_TEXT = 1, | 94 CF_TEXT = 0x0001, 90 CF_BITMAP, 95 CF_BITMAP, 91 CF_METAFILEPICT, 96 CF_METAFILEPICT, 92 CF_SYLK, 97 CF_SYLK, 93 CF_DIF, 98 CF_DIF, 94 CF_TIFF, 99 CF_TIFF, 95 CF_OEMTEXT, 100 CF_OEMTEXT, 96 CF_DIB, 101 CF_DIB, ................................................................................................................................................................................ 98 CF_PENDATA, 103 CF_PENDATA, 99 CF_RIFF, 104 CF_RIFF, 100 CF_WAVE, 105 CF_WAVE, 101 CF_UNICODETEXT, 106 CF_UNICODETEXT, 102 CF_ENHMETAFILE, 107 CF_ENHMETAFILE, 103 CF_HDROP, 108 CF_HDROP, 104 CF_LOCALE, 109 CF_LOCALE, 105 CF_MAX, // = 17 | 110 CF_MAX, // = 0x0011 106 CF_OWNERDISPLAY = 128, | 111 CF_OWNERDISPLAY = 0x0080, 107 CF_DSPTEXT, 112 CF_DSPTEXT, 108 CF_DSPBITMAP, 113 CF_DSPBITMAP, 109 CF_DSPMETAFILEPICT, // = 131 | 114 CF_DSPMETAFILEPICT, // = 0x0083 110 CF_DSPENHMETAFILE = 142, | 115 CF_DSPENHMETAFILE = 0x008E, 111 CF_PRIVATEFIRST = 512, | 116 CF_PRIVATEFIRST = 0x0200, 112 CF_PRIVATELAST = 767, | 117 CF_PRIVATELAST = 0x02FF, 113 CF_GDIOBJFIRST = 768, | 118 CF_GDIOBJFIRST = 0x0300, 114 CF_GDIOBJLAST = 1023 | 119 CF_GDIOBJLAST = 0x03FF 115 } 120 } 116 121 117 const HKL_PREV = 0; 122 const HKL_PREV = 0; 118 const HKL_NEXT = 1; 123 const HKL_NEXT = 1; 119 124 120 const KLF_ACTIVATE = 1; 125 const KLF_ACTIVATE = 1; 121 const KLF_SUBSTITUTE_OK = 2; 126 const KLF_SUBSTITUTE_OK = 2; ................................................................................................................................................................................ 165 const BSF_IGNORECURRENTTASK = 0x00000002; 170 const BSF_IGNORECURRENTTASK = 0x00000002; 166 const BSF_FLUSHDISK = 0x00000004; 171 const BSF_FLUSHDISK = 0x00000004; 167 const BSF_NOHANG = 0x00000008; 172 const BSF_NOHANG = 0x00000008; 168 const BSF_POSTMESSAGE = 0x00000010; 173 const BSF_POSTMESSAGE = 0x00000010; 169 const BSF_FORCEIFHUNG = 0x00000020; 174 const BSF_FORCEIFHUNG = 0x00000020; 170 const BSF_NOTIMEOUTIFNOTHUNG = 0x00000040; 175 const BSF_NOTIMEOUTIFNOTHUNG = 0x00000040; 171 176 172 static if (_WIN32_WINNT >= 0x500) { < 173 const BSF_ALLOWSFW = 0x00000080; | 177 const BSF_ALLOWSFW = 0x00000080; 174 const BSF_SENDNOTIFYMESSAGE = 0x00000100; | 178 const BSF_SENDNOTIFYMESSAGE = 0x00000100; 175 } | 179 176 static if (_WIN32_WINNT >= 0x501) { 180 static if (_WIN32_WINNT >= 0x501) { 177 const BSF_RETURNHDESK = 0x00000200; 181 const BSF_RETURNHDESK = 0x00000200; 178 const BSF_LUID = 0x00000400; 182 const BSF_LUID = 0x00000400; 179 } 183 } 180 184 181 const BROADCAST_QUERY_DENY = 1112363332; 185 const BROADCAST_QUERY_DENY = 1112363332; 182 const DWORD ENUM_CURRENT_SETTINGS = -1; 186 const DWORD ENUM_CURRENT_SETTINGS = -1; ................................................................................................................................................................................ 447 451 448 const DC_ACTIVE = 0x00000001; 452 const DC_ACTIVE = 0x00000001; 449 const DC_SMALLCAP = 0x00000002; 453 const DC_SMALLCAP = 0x00000002; 450 const DC_ICON = 0x00000004; 454 const DC_ICON = 0x00000004; 451 const DC_TEXT = 0x00000008; 455 const DC_TEXT = 0x00000008; 452 const DC_INBUTTON = 0x00000010; 456 const DC_INBUTTON = 0x00000010; 453 457 454 static if (WINVER >= 0x500) { < 455 const DC_GRADIENT=0x00000020; | 458 const DC_GRADIENT = 0x00000020; 456 } < 457 static if (_WIN32_WINNT >= 0x501) { 459 static if (_WIN32_WINNT >= 0x501) { 458 const DC_BUTTONS=0x00001000; | 460 const DC_BUTTONS = 0x00001000; 459 } 461 } 460 462 461 // Where are these documented? 463 // Where are these documented? 462 //const DC_CAPTION = DC_ICON|DC_TEXT|DC_BUTTONS; 464 //const DC_CAPTION = DC_ICON|DC_TEXT|DC_BUTTONS; 463 //const DC_NC = DC_CAPTION|DC_FRAME; 465 //const DC_NC = DC_CAPTION|DC_FRAME; 464 466 465 const BDR_RAISEDOUTER = 1; 467 const BDR_RAISEDOUTER = 1; ................................................................................................................................................................................ 492 const BF_DIAGONAL_ENDBOTTOMRIGHT = BF_DIAGONAL|BF_BOTTOM|BF_RIGHT; 494 const BF_DIAGONAL_ENDBOTTOMRIGHT = BF_DIAGONAL|BF_BOTTOM|BF_RIGHT; 493 const BF_MIDDLE = 0x800; 495 const BF_MIDDLE = 0x800; 494 const BF_SOFT = 0x1000; 496 const BF_SOFT = 0x1000; 495 const BF_ADJUST = 0x2000; 497 const BF_ADJUST = 0x2000; 496 const BF_FLAT = 0x4000; 498 const BF_FLAT = 0x4000; 497 const BF_MONO = 0x8000; 499 const BF_MONO = 0x8000; 498 500 > 501 enum { 499 const DFC_CAPTION=1; | 502 DFC_CAPTION = 1, 500 const DFC_MENU=2; | 503 DFC_MENU, 501 const DFC_SCROLL=3; | 504 DFC_SCROLL, 502 const DFC_BUTTON=4; | 505 DFC_BUTTON, 503 static if (WINVER >= 0x500) { < 504 const DFC_POPUPMENU=5; | 506 DFC_POPUPMENU // = 5 505 }// WINVER >= 0x500 < > 507 } 506 508 507 const DFCS_CAPTIONCLOSE = 0; 509 const DFCS_CAPTIONCLOSE = 0; 508 const DFCS_CAPTIONMIN = 1; 510 const DFCS_CAPTIONMIN = 1; 509 const DFCS_CAPTIONMAX = 2; 511 const DFCS_CAPTIONMAX = 2; 510 const DFCS_CAPTIONRESTORE = 3; 512 const DFCS_CAPTIONRESTORE = 3; 511 const DFCS_CAPTIONHELP = 4; 513 const DFCS_CAPTIONHELP = 4; 512 514 ................................................................................................................................................................................ 528 const DFCS_BUTTONRADIOMASK = 2; 530 const DFCS_BUTTONRADIOMASK = 2; 529 const DFCS_BUTTONRADIO = 4; 531 const DFCS_BUTTONRADIO = 4; 530 const DFCS_BUTTON3STATE = 8; 532 const DFCS_BUTTON3STATE = 8; 531 const DFCS_BUTTONPUSH = 16; 533 const DFCS_BUTTONPUSH = 16; 532 const DFCS_INACTIVE = 256; 534 const DFCS_INACTIVE = 256; 533 const DFCS_PUSHED = 512; 535 const DFCS_PUSHED = 512; 534 const DFCS_CHECKED = 1024; 536 const DFCS_CHECKED = 1024; 535 static if (WINVER >= 0x500) { | 537 static if (_WIN32_WINNT >= 0x500) { 536 const DFCS_TRANSPARENT = 0x800; | 538 const DFCS_TRANSPARENT = 0x800; 537 const DFCS_HOT = 0x1000; | 539 const DFCS_HOT = 0x1000; 538 } 540 } 539 const DFCS_ADJUSTRECT = 0x2000; 541 const DFCS_ADJUSTRECT = 0x2000; 540 const DFCS_FLAT = 0x4000; 542 const DFCS_FLAT = 0x4000; 541 const DFCS_MONO = 0x8000; 543 const DFCS_MONO = 0x8000; 542 544 543 enum { 545 enum { 544 DST_COMPLEX = 0, 546 DST_COMPLEX = 0, ................................................................................................................................................................................ 705 const IDC_UPARROW = MAKEINTRESOURCE_T!(32516); 707 const IDC_UPARROW = MAKEINTRESOURCE_T!(32516); 706 const IDC_SIZENWSE = MAKEINTRESOURCE_T!(32642); 708 const IDC_SIZENWSE = MAKEINTRESOURCE_T!(32642); 707 const IDC_SIZENESW = MAKEINTRESOURCE_T!(32643); 709 const IDC_SIZENESW = MAKEINTRESOURCE_T!(32643); 708 const IDC_SIZEWE = MAKEINTRESOURCE_T!(32644); 710 const IDC_SIZEWE = MAKEINTRESOURCE_T!(32644); 709 const IDC_SIZENS = MAKEINTRESOURCE_T!(32645); 711 const IDC_SIZENS = MAKEINTRESOURCE_T!(32645); 710 const IDC_SIZEALL = MAKEINTRESOURCE_T!(32646); 712 const IDC_SIZEALL = MAKEINTRESOURCE_T!(32646); 711 const IDC_NO = MAKEINTRESOURCE_T!(32648); 713 const IDC_NO = MAKEINTRESOURCE_T!(32648); > 714 static if (_WIN32_WINNT >= 0x500) { 712 const IDC_HAND = MAKEINTRESOURCE_T!(32649); | 715 const IDC_HAND = MAKEINTRESOURCE_T!(32649); > 716 } 713 const IDC_APPSTARTING = MAKEINTRESOURCE_T!(32650); 717 const IDC_APPSTARTING = MAKEINTRESOURCE_T!(32650); 714 const IDC_HELP = MAKEINTRESOURCE_T!(32651); 718 const IDC_HELP = MAKEINTRESOURCE_T!(32651); 715 const IDC_ICON = MAKEINTRESOURCE_T!(32641); 719 const IDC_ICON = MAKEINTRESOURCE_T!(32641); 716 const IDC_SIZE = MAKEINTRESOURCE_T!(32640); 720 const IDC_SIZE = MAKEINTRESOURCE_T!(32640); 717 const IDI_APPLICATION = MAKEINTRESOURCE_T!(32512); 721 const IDI_APPLICATION = MAKEINTRESOURCE_T!(32512); 718 const IDI_HAND = MAKEINTRESOURCE_T!(32513); 722 const IDI_HAND = MAKEINTRESOURCE_T!(32513); 719 const IDI_QUESTION = MAKEINTRESOURCE_T!(32514); 723 const IDI_QUESTION = MAKEINTRESOURCE_T!(32514); 720 const IDI_EXCLAMATION = MAKEINTRESOURCE_T!(32515); 724 const IDI_EXCLAMATION = MAKEINTRESOURCE_T!(32515); 721 const IDI_ASTERISK = MAKEINTRESOURCE_T!(32516); 725 const IDI_ASTERISK = MAKEINTRESOURCE_T!(32516); 722 const IDI_WINLOGO = MAKEINTRESOURCE_T!(32517); 726 const IDI_WINLOGO = MAKEINTRESOURCE_T!(32517); > 727 static if (_WIN32_WINNT >= 0x600) { > 728 const IDI_SHIELD = MAKEINTRESOURCE_T!(32518); > 729 } > 730 723 const IDI_WARNING = IDI_EXCLAMATION; 731 const IDI_WARNING = IDI_EXCLAMATION; 724 const IDI_ERROR = IDI_HAND; 732 const IDI_ERROR = IDI_HAND; 725 const IDI_INFORMATION = IDI_ASTERISK; 733 const IDI_INFORMATION = IDI_ASTERISK; > 734 > 735 static if(_WIN32_WINNT >= 0x500) { > 736 > 737 const MNGOF_TOPGAP = 0x00000001; > 738 const MNGOF_BOTTOMGAP = 0x00000002; > 739 const MNGO_NOINTERFACE = 0x00000000; > 740 const MNGO_NOERROR = 0x00000001; > 741 > 742 } 726 743 727 const MIIM_STATE = 1; 744 const MIIM_STATE = 1; 728 const MIIM_ID = 2; 745 const MIIM_ID = 2; 729 const MIIM_SUBMENU = 4; 746 const MIIM_SUBMENU = 4; 730 const MIIM_CHECKMARKS = 8; 747 const MIIM_CHECKMARKS = 8; 731 const MIIM_TYPE = 16; 748 const MIIM_TYPE = 16; 732 const MIIM_DATA = 32; 749 const MIIM_DATA = 32; 733 const MIIM_STRING = 64; 750 const MIIM_STRING = 64; 734 const MIIM_BITMAP = 128; 751 const MIIM_BITMAP = 128; 735 const MIIM_FTYPE = 256; 752 const MIIM_FTYPE = 256; 736 753 737 static if (WINVER >= 0x500) { | 754 static if (_WIN32_WINNT >= 0x500) { 738 755 739 const MIM_MAXHEIGHT = 1; | 756 const MIM_MAXHEIGHT = 1; 740 const MIM_BACKGROUND = 2; | 757 const MIM_BACKGROUND = 2; 741 const MIM_HELPID = 4; | 758 const MIM_HELPID = 4; 742 const MIM_MENUDATA = 8; | 759 const MIM_MENUDATA = 8; 743 const MIM_STYLE = 16; | 760 const MIM_STYLE = 16; 744 const MIM_APPLYTOSUBMENUS = 0x80000000L; | 761 const MIM_APPLYTOSUBMENUS = 0x80000000L; 745 762 746 const MNS_NOCHECK = 0x80000000; | 763 const MNS_NOCHECK = 0x80000000; 747 const MNS_MODELESS = 0x40000000; | 764 const MNS_MODELESS = 0x40000000; 748 const MNS_DRAGDROP = 0x20000000; | 765 const MNS_DRAGDROP = 0x20000000; 749 const MNS_AUTODISMISS = 0x10000000; | 766 const MNS_AUTODISMISS = 0x10000000; 750 const MNS_NOTIFYBYPOS = 0x08000000; | 767 const MNS_NOTIFYBYPOS = 0x08000000; 751 const MNS_CHECKORBMP = 0x04000000; | 768 const MNS_CHECKORBMP = 0x04000000; 752 769 753 } 770 } 754 771 755 const MFT_BITMAP = 4; 772 const MFT_BITMAP = 4; 756 const MFT_MENUBARBREAK = 32; 773 const MFT_MENUBARBREAK = 32; 757 const MFT_MENUBREAK = 64; 774 const MFT_MENUBREAK = 64; 758 const MFT_OWNERDRAW = 256; 775 const MFT_OWNERDRAW = 256; ................................................................................................................................................................................ 814 const MB_DEFBUTTON3 = 512; 831 const MB_DEFBUTTON3 = 512; 815 const MB_DEFBUTTON4 = 0x300; 832 const MB_DEFBUTTON4 = 0x300; 816 const MB_ICONINFORMATION = 64; 833 const MB_ICONINFORMATION = 64; 817 const MB_ICONSTOP = 16; 834 const MB_ICONSTOP = 16; 818 const MB_OKCANCEL = 1; 835 const MB_OKCANCEL = 1; 819 const MB_RETRYCANCEL = 5; 836 const MB_RETRYCANCEL = 5; 820 837 821 static if (_WIN32_WINNT_ONLY) { < 822 static if (_WIN32_WINNT >= 0x400) { < 823 const MB_SERVICE_NOTIFICATION = 0x00200000; | 838 const MB_SERVICE_NOTIFICATION = 0x00200000; 824 } else { < 825 const MB_SERVICE_NOTIFICATION = 0x00040000; < 826 } < 827 const MB_SERVICE_NOTIFICATION_NT3X = 0x00040000; | 839 const MB_SERVICE_NOTIFICATION_NT3X = 0x00040000; 828 } < 829 840 830 const MB_SETFOREGROUND = 0x10000; 841 const MB_SETFOREGROUND = 0x10000; 831 const MB_SYSTEMMODAL = 4096; 842 const MB_SYSTEMMODAL = 4096; 832 const MB_TASKMODAL = 0x2000; 843 const MB_TASKMODAL = 0x2000; 833 const MB_YESNO = 4; 844 const MB_YESNO = 4; 834 const MB_YESNOCANCEL = 3; 845 const MB_YESNOCANCEL = 3; 835 const MB_ICONMASK = 240; 846 const MB_ICONMASK = 240; 836 const MB_DEFMASK = 3840; 847 const MB_DEFMASK = 3840; 837 const MB_MODEMASK = 0x00003000; 848 const MB_MODEMASK = 0x00003000; 838 const MB_MISCMASK = 0x0000C000; 849 const MB_MISCMASK = 0x0000C000; 839 const MB_NOFOCUS = 0x00008000; 850 const MB_NOFOCUS = 0x00008000; 840 const MB_TYPEMASK = 15; 851 const MB_TYPEMASK = 15; 841 // [Redefined] MB_TOPMOST=0x40000 852 // [Redefined] MB_TOPMOST=0x40000 842 static if (WINVER >= 0x500) { | 853 static if (_WIN32_WINNT >= 0x500) { 843 const MB_CANCELTRYCONTINUE=6; 854 const MB_CANCELTRYCONTINUE=6; 844 } 855 } 845 856 846 const IDOK = 1; 857 const IDOK = 1; 847 const IDCANCEL = 2; 858 const IDCANCEL = 2; 848 const IDABORT = 3; 859 const IDABORT = 3; 849 const IDRETRY = 4; 860 const IDRETRY = 4; 850 const IDIGNORE = 5; 861 const IDIGNORE = 5; 851 const IDYES = 6; 862 const IDYES = 6; 852 const IDNO = 7; 863 const IDNO = 7; 853 static if (WINVER >= 0x400) { | 864 static if (_WIN32_WINNT >= 0x400) { 854 const IDCLOSE = 8; | 865 const IDCLOSE = 8; 855 const IDHELP = 9; | 866 const IDHELP = 9; 856 } 867 } 857 static if (WINVER >= 0x500) { | 868 static if (_WIN32_WINNT >= 0x500) { 858 const IDTRYAGAIN = 10; | 869 const IDTRYAGAIN = 10; 859 const IDCONTINUE = 11; | 870 const IDCONTINUE = 11; 860 } 871 } 861 872 862 const GWL_EXSTYLE = -20; 873 const GWL_EXSTYLE = -20; 863 const GWL_STYLE = -16; 874 const GWL_STYLE = -16; 864 const GWL_WNDPROC = -4; 875 const GWL_WNDPROC = -4; 865 const GWLP_WNDPROC = -4; 876 const GWLP_WNDPROC = -4; 866 const GWL_HINSTANCE = -6; 877 const GWL_HINSTANCE = -6; ................................................................................................................................................................................ 1142 const OIC_WINLOGO = 32517; 1153 const OIC_WINLOGO = 32517; 1143 const OIC_WARNING = OIC_BANG; 1154 const OIC_WARNING = OIC_BANG; 1144 const OIC_ERROR = OIC_HAND; 1155 const OIC_ERROR = OIC_HAND; 1145 const OIC_INFORMATION = OIC_NOTE; 1156 const OIC_INFORMATION = OIC_NOTE; 1146 1157 1147 const HELPINFO_MENUITEM = 2; 1158 const HELPINFO_MENUITEM = 2; 1148 const HELPINFO_WINDOW = 1; 1159 const HELPINFO_WINDOW = 1; > 1160 > 1161 static if (_WIN32_WINNT >= 0x501) { > 1162 > 1163 const WTS_CONSOLE_CONNECT = 0x1; > 1164 const WTS_CONSOLE_DISCONNECT = 0x2; > 1165 const WTS_REMOTE_CONNECT = 0x3; > 1166 const WTS_REMOTE_DISCONNECT = 0x4; > 1167 const WTS_SESSION_LOGON = 0x5; > 1168 const WTS_SESSION_LOGOFF = 0x6; > 1169 const WTS_SESSION_LOCK = 0x7; > 1170 const WTS_SESSION_UNLOCK = 0x8; > 1171 const WTS_SESSION_REMOTE_CONTROL = 0x9; > 1172 > 1173 } 1149 1174 1150 const MSGF_DIALOGBOX = 0; 1175 const MSGF_DIALOGBOX = 0; 1151 const MSGF_MESSAGEBOX = 1; 1176 const MSGF_MESSAGEBOX = 1; 1152 const MSGF_MENU = 2; 1177 const MSGF_MENU = 2; 1153 const MSGF_MOVE = 3; 1178 const MSGF_MOVE = 3; 1154 const MSGF_SIZE = 4; 1179 const MSGF_SIZE = 4; 1155 const MSGF_SCROLLBAR = 5; 1180 const MSGF_SCROLLBAR = 5; ................................................................................................................................................................................ 1167 const MOUSEEVENTF_WHEEL = 0x0800; 1192 const MOUSEEVENTF_WHEEL = 0x0800; 1168 const MOUSEEVENTF_ABSOLUTE = 32768; 1193 const MOUSEEVENTF_ABSOLUTE = 32768; 1169 1194 1170 const PM_NOREMOVE = 0; 1195 const PM_NOREMOVE = 0; 1171 const PM_REMOVE = 1; 1196 const PM_REMOVE = 1; 1172 const PM_NOYIELD = 2; 1197 const PM_NOYIELD = 2; 1173 1198 1174 static if (WINVER >= 0x500) { | 1199 static if (_WIN32_WINNT >= 0x500) { 1175 const PM_QS_INPUT = (QS_INPUT << 16); 1200 const PM_QS_INPUT = (QS_INPUT << 16); 1176 const PM_QS_POSTMESSAGE = ((QS_POSTMESSAGE|QS_HOTKEY|QS_TIMER) << 16); 1201 const PM_QS_POSTMESSAGE = ((QS_POSTMESSAGE|QS_HOTKEY|QS_TIMER) << 16); 1177 const PM_QS_PAINT = (QS_PAINT << 16); 1202 const PM_QS_PAINT = (QS_PAINT << 16); 1178 const PM_QS_SENDMESSAGE = (QS_SENDMESSAGE << 16); 1203 const PM_QS_SENDMESSAGE = (QS_SENDMESSAGE << 16); 1179 } 1204 } 1180 const HWND 1205 const HWND 1181 HWND_BROADCAST = cast(HWND)0xffff, 1206 HWND_BROADCAST = cast(HWND)0xffff, ................................................................................................................................................................................ 1222 const SWP_SHOWWINDOW = 64; 1247 const SWP_SHOWWINDOW = 64; 1223 const SWP_NOOWNERZORDER = 512; 1248 const SWP_NOOWNERZORDER = 512; 1224 const SWP_NOREPOSITION = 512; 1249 const SWP_NOREPOSITION = 512; 1225 const SWP_NOSENDCHANGING = 1024; 1250 const SWP_NOSENDCHANGING = 1024; 1226 const SWP_DEFERERASE = 8192; 1251 const SWP_DEFERERASE = 8192; 1227 const SWP_ASYNCWINDOWPOS = 16384; 1252 const SWP_ASYNCWINDOWPOS = 16384; 1228 1253 > 1254 enum { // passed variously as int or WPARAM > 1255 HSHELL_WINDOWCREATED = 1, > 1256 HSHELL_WINDOWDESTROYED, 1229 const HSHELL_ACTIVATESHELLWINDOW = 3; | 1257 HSHELL_ACTIVATESHELLWINDOW, > 1258 HSHELL_WINDOWACTIVATED, 1230 const HSHELL_GETMINRECT = 5; | 1259 HSHELL_GETMINRECT, 1231 const HSHELL_LANGUAGE = 8; < 1232 const HSHELL_REDRAW = 6; | 1260 HSHELL_REDRAW, 1233 const HSHELL_TASKMAN = 7; | 1261 HSHELL_TASKMAN, > 1262 HSHELL_LANGUAGE, // = 8 > 1263 HSHELL_ENDTASK = 10, > 1264 HSHELL_ACCESSIBILITYSTATE, > 1265 HSHELL_APPCOMMAND, // = 12 1234 const HSHELL_WINDOWACTIVATED = 4; | 1266 HSHELL_RUDEAPPACTIVATED = 32772, 1235 const HSHELL_WINDOWCREATED = 1; < 1236 const HSHELL_WINDOWDESTROYED = 2; < 1237 const HSHELL_FLASH = 32774; | 1267 HSHELL_FLASH = 32774 > 1268 } 1238 1269 1239 static if (WINVER >= 0x500) { | 1270 static if (_WIN32_WINNT >= 0x501) { 1240 const SPI_SETFOREGROUNDLOCKTIMEOUT=0x2001; | 1271 enum { 1241 const SPI_GETFOREGROUNDLOCKTIMEOUT=0x2000; | 1272 HSHELL_WINDOWREPLACED = 13, > 1273 HSHELL_WINDOWREPLACING > 1274 } 1242 } 1275 } > 1276 > 1277 enum SPI_SETFOREGROUNDLOCKTIMEOUT = 0x2001; > 1278 enum SPI_GETFOREGROUNDLOCKTIMEOUT = 0x2000; 1243 1279 1244 const SPI_GETACCESSTIMEOUT=60; 1280 const SPI_GETACCESSTIMEOUT=60; 1245 const SPI_GETACTIVEWNDTRKTIMEOUT=8194; 1281 const SPI_GETACTIVEWNDTRKTIMEOUT=8194; 1246 const SPI_GETANIMATION=72; 1282 const SPI_GETANIMATION=72; 1247 const SPI_GETBEEP=1; 1283 const SPI_GETBEEP=1; 1248 const SPI_GETBORDER=5; 1284 const SPI_GETBORDER=5; 1249 const SPI_GETDEFAULTINPUTLANG=89; 1285 const SPI_GETDEFAULTINPUTLANG=89; ................................................................................................................................................................................ 1331 const SPI_SETSHOWSOUNDS=57; 1367 const SPI_SETSHOWSOUNDS=57; 1332 const SPI_SETSOUNDSENTRY=65; 1368 const SPI_SETSOUNDSENTRY=65; 1333 const SPI_SETSTICKYKEYS=59; 1369 const SPI_SETSTICKYKEYS=59; 1334 const SPI_SETTOGGLEKEYS=53; 1370 const SPI_SETTOGGLEKEYS=53; 1335 const SPI_SETWHEELSCROLLLINES=105; 1371 const SPI_SETWHEELSCROLLLINES=105; 1336 const SPI_SETWORKAREA=47; 1372 const SPI_SETWORKAREA=47; 1337 1373 1338 static if (WINVER >= 0x500) { | 1374 static if (_WIN32_WINNT >= 0x500) { 1339 const SPI_GETDESKWALLPAPER=115; 1375 const SPI_GETDESKWALLPAPER=115; 1340 const SPI_GETMOUSESPEED=112; 1376 const SPI_GETMOUSESPEED=112; 1341 const SPI_GETSCREENSAVERRUNNING=114; 1377 const SPI_GETSCREENSAVERRUNNING=114; 1342 const SPI_GETACTIVEWINDOWTRACKING=0x1000; 1378 const SPI_GETACTIVEWINDOWTRACKING=0x1000; 1343 const SPI_GETACTIVEWNDTRKZORDER=0x100C; 1379 const SPI_GETACTIVEWNDTRKZORDER=0x100C; 1344 const SPI_GETCOMBOBOXANIMATION=0x1004; 1380 const SPI_GETCOMBOBOXANIMATION=0x1004; 1345 const SPI_GETCURSORSHADOW=0x101A; 1381 const SPI_GETCURSORSHADOW=0x101A; ................................................................................................................................................................................ 1374 const SPIF_SENDWININICHANGE=2; 1410 const SPIF_SENDWININICHANGE=2; 1375 const SPIF_SENDCHANGE=2; 1411 const SPIF_SENDCHANGE=2; 1376 // [Redefined] ATF_ONOFFFEEDBACK=2 1412 // [Redefined] ATF_ONOFFFEEDBACK=2 1377 // [Redefined] ATF_TIMEOUTON=1 1413 // [Redefined] ATF_TIMEOUTON=1 1378 const WM_APP=32768; 1414 const WM_APP=32768; 1379 const WM_ACTIVATE=6; 1415 const WM_ACTIVATE=6; 1380 const WM_ACTIVATEAPP=28; 1416 const WM_ACTIVATEAPP=28; 1381 // FIXME/CHECK: Are WM_AFX {FIRST, LAST} valid for WINVER < 0x400? | 1417 // FIXME/CHECK: Are WM_AFX {FIRST, LAST} valid for _WIN32_WINNT < 0x400? 1382 const WM_AFXFIRST=864; 1418 const WM_AFXFIRST=864; 1383 const WM_AFXLAST=895; 1419 const WM_AFXLAST=895; 1384 const WM_ASKCBFORMATNAME=780; 1420 const WM_ASKCBFORMATNAME=780; 1385 const WM_CANCELJOURNAL=75; 1421 const WM_CANCELJOURNAL=75; 1386 const WM_CANCELMODE=31; 1422 const WM_CANCELMODE=31; 1387 const WM_CAPTURECHANGED=533; 1423 const WM_CAPTURECHANGED=533; 1388 const WM_CHANGECBCHAIN=781; 1424 const WM_CHANGECBCHAIN=781; ................................................................................................................................................................................ 1457 const WM_MDIMAXIMIZE=549; 1493 const WM_MDIMAXIMIZE=549; 1458 const WM_MDINEXT=548; 1494 const WM_MDINEXT=548; 1459 const WM_MDIREFRESHMENU=564; 1495 const WM_MDIREFRESHMENU=564; 1460 const WM_MDIRESTORE=547; 1496 const WM_MDIRESTORE=547; 1461 const WM_MDISETMENU=560; 1497 const WM_MDISETMENU=560; 1462 const WM_MDITILE=550; 1498 const WM_MDITILE=550; 1463 const WM_MEASUREITEM=44; 1499 const WM_MEASUREITEM=44; 1464 static if (WINVER >= 0x500) { | 1500 static if (_WIN32_WINNT >= 0x500) { 1465 const WM_UNINITMENUPOPUP=0x0125; | 1501 const WM_UNINITMENUPOPUP=0x0125; 1466 const WM_MENURBUTTONUP=290; | 1502 const WM_MENURBUTTONUP=290; 1467 const WM_MENUCOMMAND=0x0126; | 1503 const WM_MENUCOMMAND=0x0126; 1468 const WM_MENUGETOBJECT=0x0124; | 1504 const WM_MENUGETOBJECT=0x0124; 1469 const WM_MENUDRAG=0x0123; | 1505 const WM_MENUDRAG=0x0123; 1470 } 1506 } 1471 1507 1472 static if (_WIN32_WINNT >= 0x500) { 1508 static if (_WIN32_WINNT >= 0x500) { 1473 1509 1474 enum { 1510 enum { 1475 WM_CHANGEUISTATE = 0x0127, 1511 WM_CHANGEUISTATE = 0x0127, 1476 WM_UPDATEUISTATE = 0x0128, 1512 WM_UPDATEUISTATE = 0x0128, ................................................................................................................................................................................ 1572 const WM_STYLECHANGING=124; 1608 const WM_STYLECHANGING=124; 1573 const WM_SYSCHAR=262; 1609 const WM_SYSCHAR=262; 1574 const WM_SYSCOLORCHANGE=21; 1610 const WM_SYSCOLORCHANGE=21; 1575 const WM_SYSCOMMAND=274; 1611 const WM_SYSCOMMAND=274; 1576 const WM_SYSDEADCHAR=263; 1612 const WM_SYSDEADCHAR=263; 1577 const WM_SYSKEYDOWN=260; 1613 const WM_SYSKEYDOWN=260; 1578 const WM_SYSKEYUP=261; 1614 const WM_SYSKEYUP=261; > 1615 static if(_WIN32_WINNT >= 0x501) { > 1616 const WM_TABLET_FIRST=704; > 1617 const WM_TABLET_LAST=735; > 1618 } 1579 const WM_TCARD=82; 1619 const WM_TCARD=82; 1580 const WM_THEMECHANGED=794; 1620 const WM_THEMECHANGED=794; 1581 const WM_TIMECHANGE=30; 1621 const WM_TIMECHANGE=30; 1582 const WM_TIMER=275; 1622 const WM_TIMER=275; 1583 const WM_UNDO=772; 1623 const WM_UNDO=772; 1584 const WM_USER=1024; 1624 const WM_USER=1024; 1585 const WM_USERCHANGED=84; 1625 const WM_USERCHANGED=84; 1586 const WM_VKEYTOITEM=46; 1626 const WM_VKEYTOITEM=46; 1587 const WM_VSCROLL=277; 1627 const WM_VSCROLL=277; 1588 const WM_VSCROLLCLIPBOARD=778; 1628 const WM_VSCROLLCLIPBOARD=778; 1589 const WM_WINDOWPOSCHANGED=71; 1629 const WM_WINDOWPOSCHANGED=71; 1590 const WM_WINDOWPOSCHANGING=70; 1630 const WM_WINDOWPOSCHANGING=70; 1591 const WM_WININICHANGE=26; 1631 const WM_WININICHANGE=26; > 1632 static if(_WIN32_WINNT >= 0x501) { > 1633 const WM_WTSSESSION_CHANGE=689; > 1634 } 1592 const WM_INPUT=255; 1635 const WM_INPUT=255; 1593 const WM_KEYFIRST=256; 1636 const WM_KEYFIRST=256; > 1637 static if(_WIN32_WINNT >= 0x501) { > 1638 const WM_UNICHAR=265; > 1639 const WM_KEYLAST=265; > 1640 const UNICODE_NOCHAR=0xFFFF; > 1641 } else { 1594 const WM_KEYLAST=264; 1642 const WM_KEYLAST=264; > 1643 } 1595 const WM_SYNCPAINT=136; 1644 const WM_SYNCPAINT=136; 1596 const WM_MOUSEACTIVATE=33; 1645 const WM_MOUSEACTIVATE=33; 1597 const WM_MOUSEMOVE=512; 1646 const WM_MOUSEMOVE=512; 1598 const WM_LBUTTONDOWN=513; 1647 const WM_LBUTTONDOWN=513; 1599 const WM_LBUTTONUP=514; 1648 const WM_LBUTTONUP=514; 1600 const WM_LBUTTONDBLCLK=515; 1649 const WM_LBUTTONDBLCLK=515; 1601 const WM_RBUTTONDOWN=516; 1650 const WM_RBUTTONDOWN=516; ................................................................................................................................................................................ 1602 const WM_RBUTTONUP=517; 1651 const WM_RBUTTONUP=517; 1603 const WM_RBUTTONDBLCLK=518; 1652 const WM_RBUTTONDBLCLK=518; 1604 const WM_MBUTTONDOWN=519; 1653 const WM_MBUTTONDOWN=519; 1605 const WM_MBUTTONUP=520; 1654 const WM_MBUTTONUP=520; 1606 const WM_MBUTTONDBLCLK=521; 1655 const WM_MBUTTONDBLCLK=521; 1607 const WM_MOUSEWHEEL=522; 1656 const WM_MOUSEWHEEL=522; 1608 const WM_MOUSEFIRST=512; 1657 const WM_MOUSEFIRST=512; > 1658 static if (_WIN32_WINNT >= 0x600) { > 1659 const WM_XBUTTONDOWN=523; > 1660 const WM_XBUTTONUP=524; > 1661 const WM_XBUTTONDBLCLK=525; > 1662 const WM_MOUSEHWHEEL=526; > 1663 const WM_MOUSELAST=526; > 1664 } 1609 static if (_WIN32_WINNT >= 0x500) { | 1665 else static if (_WIN32_WINNT >= 0x500) { 1610 const WM_XBUTTONDOWN=523; 1666 const WM_XBUTTONDOWN=523; 1611 const WM_XBUTTONUP=524; 1667 const WM_XBUTTONUP=524; 1612 const WM_XBUTTONDBLCLK=525; 1668 const WM_XBUTTONDBLCLK=525; 1613 const WM_MOUSELAST=525; 1669 const WM_MOUSELAST=525; 1614 } else { 1670 } else { 1615 const WM_MOUSELAST=522; 1671 const WM_MOUSELAST=522; 1616 } 1672 } ................................................................................................................................................................................ 1628 } 1684 } 1629 const BM_CLICK=245; 1685 const BM_CLICK=245; 1630 const BM_GETCHECK=240; 1686 const BM_GETCHECK=240; 1631 const BM_GETIMAGE=246; 1687 const BM_GETIMAGE=246; 1632 const BM_GETSTATE=242; 1688 const BM_GETSTATE=242; 1633 const BM_SETCHECK=241; 1689 const BM_SETCHECK=241; 1634 const BM_SETIMAGE=247; 1690 const BM_SETIMAGE=247; > 1691 static if(_WIN32_WINNT >= 0x600) { > 1692 const BM_SETDONTCLICK = 248; > 1693 } 1635 const BM_SETSTATE=243; 1694 const BM_SETSTATE=243; 1636 const BM_SETSTYLE=244; 1695 const BM_SETSTYLE=244; 1637 const BN_CLICKED=0; 1696 const BN_CLICKED=0; 1638 const BN_DBLCLK=5; 1697 const BN_DBLCLK=5; 1639 const BN_DISABLE=4; 1698 const BN_DISABLE=4; 1640 const BN_DOUBLECLICKED=5; 1699 const BN_DOUBLECLICKED=5; 1641 const BN_HILITE=2; 1700 const BN_HILITE=2; ................................................................................................................................................................................ 1675 const CB_SETEXTENDEDUI=341; 1734 const CB_SETEXTENDEDUI=341; 1676 const CB_SETHORIZONTALEXTENT=350; 1735 const CB_SETHORIZONTALEXTENT=350; 1677 const CB_SETITEMDATA=337; 1736 const CB_SETITEMDATA=337; 1678 const CB_SETITEMHEIGHT=339; 1737 const CB_SETITEMHEIGHT=339; 1679 const CB_SETLOCALE=345; 1738 const CB_SETLOCALE=345; 1680 const CB_SETTOPINDEX=348; 1739 const CB_SETTOPINDEX=348; 1681 const CB_SHOWDROPDOWN=335; 1740 const CB_SHOWDROPDOWN=335; > 1741 > 1742 static if(_WIN32_WINNT >= 0x501) { > 1743 const CB_GETCOMBOBOXINFO = 356; > 1744 } 1682 1745 1683 const CBN_CLOSEUP=8; 1746 const CBN_CLOSEUP=8; 1684 const CBN_DBLCLK=2; 1747 const CBN_DBLCLK=2; 1685 const CBN_DROPDOWN=7; 1748 const CBN_DROPDOWN=7; 1686 const CBN_EDITCHANGE=5; 1749 const CBN_EDITCHANGE=5; 1687 const CBN_EDITUPDATE=6; 1750 const CBN_EDITUPDATE=6; 1688 const CBN_ERRSPACE=(-1); 1751 const CBN_ERRSPACE=(-1); ................................................................................................................................................................................ 1725 const EM_SETREADONLY=207; 1788 const EM_SETREADONLY=207; 1726 const EM_SETRECT=179; 1789 const EM_SETRECT=179; 1727 const EM_SETRECTNP=180; 1790 const EM_SETRECTNP=180; 1728 const EM_SETSEL=177; 1791 const EM_SETSEL=177; 1729 const EM_SETTABSTOPS=203; 1792 const EM_SETTABSTOPS=203; 1730 const EM_SETWORDBREAKPROC=208; 1793 const EM_SETWORDBREAKPROC=208; 1731 const EM_UNDO=199; 1794 const EM_UNDO=199; > 1795 > 1796 static if(_WIN32_WINNT >= 0x500) { > 1797 const EM_SETIMESTATUS=216; > 1798 const EM_GETIMESTATUS=217; > 1799 } 1732 1800 1733 const EN_CHANGE=768; 1801 const EN_CHANGE=768; 1734 const EN_ERRSPACE=1280; 1802 const EN_ERRSPACE=1280; 1735 const EN_HSCROLL=1537; 1803 const EN_HSCROLL=1537; 1736 const EN_KILLFOCUS=512; 1804 const EN_KILLFOCUS=512; 1737 const EN_MAXTEXT=1281; 1805 const EN_MAXTEXT=1281; 1738 const EN_SETFOCUS=256; 1806 const EN_SETFOCUS=256; ................................................................................................................................................................................ 1775 const LB_SETHORIZONTALEXTENT=404; 1843 const LB_SETHORIZONTALEXTENT=404; 1776 const LB_SETITEMDATA=410; 1844 const LB_SETITEMDATA=410; 1777 const LB_SETITEMHEIGHT=416; 1845 const LB_SETITEMHEIGHT=416; 1778 const LB_SETLOCALE=421; 1846 const LB_SETLOCALE=421; 1779 const LB_SETSEL=389; 1847 const LB_SETSEL=389; 1780 const LB_SETTABSTOPS=402; 1848 const LB_SETTABSTOPS=402; 1781 const LB_SETTOPINDEX=407; 1849 const LB_SETTOPINDEX=407; > 1850 static if(_WIN32_WINNT >= 0x501) { > 1851 const LB_GETLISTBOXINFO=434; > 1852 } 1782 1853 1783 const LBN_DBLCLK=2; 1854 const LBN_DBLCLK=2; 1784 const LBN_ERRSPACE=-2; 1855 const LBN_ERRSPACE=-2; 1785 const LBN_KILLFOCUS=5; 1856 const LBN_KILLFOCUS=5; 1786 const LBN_SELCANCEL=3; 1857 const LBN_SELCANCEL=3; 1787 const LBN_SELCHANGE=1; 1858 const LBN_SELCHANGE=1; 1788 const LBN_SETFOCUS=4; 1859 const LBN_SETFOCUS=4; ................................................................................................................................................................................ 1791 const SBM_GETPOS=225; 1862 const SBM_GETPOS=225; 1792 const SBM_GETRANGE=227; 1863 const SBM_GETRANGE=227; 1793 const SBM_GETSCROLLINFO=234; 1864 const SBM_GETSCROLLINFO=234; 1794 const SBM_SETPOS=224; 1865 const SBM_SETPOS=224; 1795 const SBM_SETRANGE=226; 1866 const SBM_SETRANGE=226; 1796 const SBM_SETRANGEREDRAW=230; 1867 const SBM_SETRANGEREDRAW=230; 1797 const SBM_SETSCROLLINFO=233; 1868 const SBM_SETSCROLLINFO=233; > 1869 static if(_WIN32_WINNT >= 0x501) { > 1870 const SBM_GETSCROLLBARINFO=235; > 1871 } > 1872 1798 const STM_GETICON=369; 1873 const STM_GETICON=369; 1799 const STM_GETIMAGE=371; 1874 const STM_GETIMAGE=371; 1800 const STM_SETICON=368; 1875 const STM_SETICON=368; 1801 const STM_SETIMAGE=370; 1876 const STM_SETIMAGE=370; 1802 const STN_CLICKED=0; 1877 const STN_CLICKED=0; 1803 const STN_DBLCLK=1; 1878 const STN_DBLCLK=1; 1804 const STN_DISABLE=3; 1879 const STN_DISABLE=3; ................................................................................................................................................................................ 2021 VK_OEM_2 = 0xBF, 2096 VK_OEM_2 = 0xBF, 2022 VK_OEM_3 = 0xC0, 2097 VK_OEM_3 = 0xC0, 2023 VK_OEM_4 = 0xDB, 2098 VK_OEM_4 = 0xDB, 2024 VK_OEM_5 = 0xDC, 2099 VK_OEM_5 = 0xDC, 2025 VK_OEM_6 = 0xDD, 2100 VK_OEM_6 = 0xDD, 2026 VK_OEM_7 = 0xDE, 2101 VK_OEM_7 = 0xDE, 2027 VK_OEM_8 = 0xDF, 2102 VK_OEM_8 = 0xDF, 2028 //static if (_WIN32_WINNT > = 0x500) { | 2103 //static if (_WIN32_WINNT > = 0x500) { 2029 VK_OEM_102 = 0xE2, 2104 VK_OEM_102 = 0xE2, 2030 //} 2105 //} 2031 VK_PROCESSKEY = 0xE5, 2106 VK_PROCESSKEY = 0xE5, 2032 //static if (_WIN32_WINNT > = 0x500) { | 2107 //static if (_WIN32_WINNT > = 0x500) { 2033 VK_PACKET = 0xE7, 2108 VK_PACKET = 0xE7, 2034 //} 2109 //} 2035 VK_ATTN = 0xF6, 2110 VK_ATTN = 0xF6, 2036 VK_CRSEL = 0xF7, 2111 VK_CRSEL = 0xF7, 2037 VK_EXSEL = 0xF8, 2112 VK_EXSEL = 0xF8, 2038 VK_EREOF = 0xF9, 2113 VK_EREOF = 0xF9, 2039 VK_PLAY = 0xFA, 2114 VK_PLAY = 0xFA, ................................................................................................................................................................................ 2052 2127 2053 const MK_LBUTTON=1; 2128 const MK_LBUTTON=1; 2054 const MK_RBUTTON=2; 2129 const MK_RBUTTON=2; 2055 const MK_SHIFT=4; 2130 const MK_SHIFT=4; 2056 const MK_CONTROL=8; 2131 const MK_CONTROL=8; 2057 const MK_MBUTTON=16; 2132 const MK_MBUTTON=16; 2058 static if (_WIN32_WINNT >= 0x500) { 2133 static if (_WIN32_WINNT >= 0x500) { 2059 const MK_XBUTTON1=32; | 2134 const MK_XBUTTON1 = 32; 2060 const MK_XBUTTON2=64; | 2135 const MK_XBUTTON2 = 64; 2061 } 2136 } 2062 const TPM_CENTERALIGN=4; 2137 const TPM_CENTERALIGN=4; 2063 const TPM_LEFTALIGN=0; 2138 const TPM_LEFTALIGN=0; 2064 const TPM_RIGHTALIGN=8; 2139 const TPM_RIGHTALIGN=8; 2065 const TPM_LEFTBUTTON=0; 2140 const TPM_LEFTBUTTON=0; 2066 const TPM_RIGHTBUTTON=2; 2141 const TPM_RIGHTBUTTON=2; 2067 const TPM_HORIZONTAL=0; 2142 const TPM_HORIZONTAL=0; 2068 const TPM_VERTICAL=64; 2143 const TPM_VERTICAL=64; 2069 const TPM_TOPALIGN=0; 2144 const TPM_TOPALIGN=0; 2070 const TPM_VCENTERALIGN=16; 2145 const TPM_VCENTERALIGN=16; 2071 const TPM_BOTTOMALIGN=32; 2146 const TPM_BOTTOMALIGN=32; 2072 const TPM_NONOTIFY=128; 2147 const TPM_NONOTIFY=128; 2073 const TPM_RETURNCMD=256; 2148 const TPM_RETURNCMD=256; 2074 static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { | 2149 static if (_WIN32_WINNT >= 0x410) { 2075 const TPM_RECURSE=1; | 2150 const TPM_RECURSE = 1; 2076 } 2151 } 2077 2152 2078 const HELP_COMMAND=0x102; 2153 const HELP_COMMAND=0x102; 2079 const HELP_CONTENTS=3; 2154 const HELP_CONTENTS=3; 2080 const HELP_CONTEXT=1; 2155 const HELP_CONTEXT=1; 2081 const HELP_CONTEXTPOPUP=8; 2156 const HELP_CONTEXTPOPUP=8; 2082 const HELP_FORCEFILE=9; 2157 const HELP_FORCEFILE=9; ................................................................................................................................................................................ 2338 const MOD_LEFT=32768; 2413 const MOD_LEFT=32768; 2339 2414 2340 const LLKHF_EXTENDED=(KF_EXTENDED >> 8); 2415 const LLKHF_EXTENDED=(KF_EXTENDED >> 8); 2341 const LLKHF_INJECTED=0x00000010; 2416 const LLKHF_INJECTED=0x00000010; 2342 const LLKHF_ALTDOWN=(KF_ALTDOWN >> 8); 2417 const LLKHF_ALTDOWN=(KF_ALTDOWN >> 8); 2343 const LLKHF_UP=(KF_UP >> 8); 2418 const LLKHF_UP=(KF_UP >> 8); 2344 2419 2345 static if (WINVER >= 0x500) { | 2420 static if (_WIN32_WINNT >= 0x500) { 2346 const FLASHW_STOP=0; | 2421 const FLASHW_STOP=0; 2347 const FLASHW_CAPTION=1; | 2422 const FLASHW_CAPTION=1; 2348 const FLASHW_TRAY=2; | 2423 const FLASHW_TRAY=2; 2349 const FLASHW_ALL=(FLASHW_CAPTION|FLASHW_TRAY); | 2424 const FLASHW_ALL=(FLASHW_CAPTION|FLASHW_TRAY); 2350 const FLASHW_TIMER=4; | 2425 const FLASHW_TIMER=4; 2351 const FLASHW_TIMERNOFG=12; | 2426 const FLASHW_TIMERNOFG=12; 2352 } 2427 } 2353 2428 2354 const CURSOR_SHOWING=0x00000001; 2429 const CURSOR_SHOWING=0x00000001; 2355 const WS_ACTIVECAPTION=0x00000001; 2430 const WS_ACTIVECAPTION=0x00000001; 2356 static if (_WIN32_WINNT >= 0x403) { 2431 static if (_WIN32_WINNT >= 0x403) { 2357 const INPUT_MOUSE=0x00000000; | 2432 const INPUT_MOUSE=0x00000000; 2358 const INPUT_KEYBOARD=0x00000001; | 2433 const INPUT_KEYBOARD=0x00000001; 2359 const INPUT_HARDWARE=0x00000002; | 2434 const INPUT_HARDWARE=0x00000002; 2360 } 2435 } 2361 static if (WINVER >= 0x400) { < 2362 const ENDSESSION_LOGOFF = 0x80000000; 2436 const ENDSESSION_LOGOFF = 0x80000000; 2363 } < 2364 2437 2365 static if (WINVER >= 0x500) { | 2438 static if (_WIN32_WINNT >= 0x500) { 2366 const CHILDID_SELF = 0; 2439 const CHILDID_SELF = 0; 2367 const OBJID_WINDOW = 0x00000000; 2440 const OBJID_WINDOW = 0x00000000; 2368 const OBJID_SYSMENU = 0xFFFFFFFF; 2441 const OBJID_SYSMENU = 0xFFFFFFFF; 2369 const OBJID_TITLEBAR = 0xFFFFFFFE; 2442 const OBJID_TITLEBAR = 0xFFFFFFFE; 2370 const OBJID_MENU = 0xFFFFFFFD; 2443 const OBJID_MENU = 0xFFFFFFFD; 2371 const OBJID_CLIENT = 0xFFFFFFFC; 2444 const OBJID_CLIENT = 0xFFFFFFFC; 2372 const OBJID_VSCROLL = 0xFFFFFFFB; 2445 const OBJID_VSCROLL = 0xFFFFFFFB; ................................................................................................................................................................................ 2464 const CONSOLE_CARET_VISIBLE = 0x00000002; 2537 const CONSOLE_CARET_VISIBLE = 0x00000002; 2465 2538 2466 const CONSOLE_APPLICATION_16BIT = 0x00000001; 2539 const CONSOLE_APPLICATION_16BIT = 0x00000001; 2467 2540 2468 } 2541 } 2469 const EVENT_MAX=0x7fffffff; 2542 const EVENT_MAX=0x7fffffff; 2470 2543 2471 }//(WINVER >= 0x500) < 2472 < 2473 static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x490)) { | 2544 }//(_WIN32_WINNT >= 0x500) 2474 const DWORD ASFW_ANY = -1; < 2475 const LSFW_LOCK = 1; < 2476 const LSFW_UNLOCK = 2; < 2477 } < 2478 2545 2479 static if (_WIN32_WINNT >= 0x500) { 2546 static if (_WIN32_WINNT >= 0x500) { > 2547 const DWORD ASFW_ANY = -1; > 2548 enum : UINT { > 2549 LSFW_LOCK = 1, > 2550 LSFW_UNLOCK > 2551 } > 2552 2480 const LWA_COLORKEY=0x01; | 2553 const LWA_COLORKEY = 0x01; 2481 const LWA_ALPHA=0x02; | 2554 const LWA_ALPHA = 0x02; 2482 const ULW_COLORKEY=0x01; | 2555 const ULW_COLORKEY = 0x01; 2483 const ULW_ALPHA=0x02; | 2556 const ULW_ALPHA = 0x02; 2484 const ULW_OPAQUE=0x04; | 2557 const ULW_OPAQUE = 0x04; 2485 } 2558 } 2486 2559 2487 const GA_PARENT = 1; 2560 const GA_PARENT = 1; 2488 const GA_ROOT = 2; 2561 const GA_ROOT = 2; 2489 const GA_ROOTOWNER = 3; 2562 const GA_ROOTOWNER = 3; 2490 2563 2491 static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { < 2492 < 2493 const MONITOR_DEFAULTTONULL = 0; < 2494 const MONITOR_DEFAULTTOPRIMARY = 1; < 2495 const MONITOR_DEFAULTTONEAREST = 2; < 2496 const MONITORINFOF_PRIMARY = 1; < 2497 < 2498 const EDS_RAWMODE = 0x00000002; < 2499 < 2500 const ISMEX_NOSEND = 0x00000000; < 2501 const ISMEX_SEND = 0x00000001; < 2502 const ISMEX_NOTIFY = 0x00000002; < 2503 const ISMEX_CALLBACK = 0x00000004; < 2504 const ISMEX_REPLIED = 0x00000008; < 2505 } < 2506 < 2507 static if (_WIN32_WINNT >= 0x500) { 2564 static if (_WIN32_WINNT >= 0x500) { 2508 const GR_GDIOBJECTS = 0; | 2565 enum : DWORD { 2509 const GR_USEROBJECTS = 1; | 2566 MONITOR_DEFAULTTONULL, > 2567 MONITOR_DEFAULTTOPRIMARY, > 2568 MONITOR_DEFAULTTONEAREST // = 2 2510 } | 2569 } > 2570 const MONITORINFOF_PRIMARY = 1; 2511 2571 2512 static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x490)) { | 2572 const EDS_RAWMODE = 0x00000002; > 2573 > 2574 const ISMEX_NOSEND = 0x00000000; > 2575 const ISMEX_SEND = 0x00000001; > 2576 const ISMEX_NOTIFY = 0x00000002; > 2577 const ISMEX_CALLBACK = 0x00000004; > 2578 const ISMEX_REPLIED = 0x00000008; > 2579 > 2580 const GR_GDIOBJECTS = 0; > 2581 const GR_USEROBJECTS = 1; > 2582 2513 const GMMP_USE_DISPLAY_POINTS = 1; | 2583 const GMMP_USE_DISPLAY_POINTS = 1; 2514 const GMMP_USE_HIGH_RESOLUTION_POINTS = 2; | 2584 const GMMP_USE_HIGH_RESOLUTION_POINTS = 2; 2515 } 2585 } 2516 2586 2517 static if (_WIN32_WINNT >= 0x501) { 2587 static if (_WIN32_WINNT >= 0x501) { 2518 const PW_CLIENTONLY = 0x00000001; | 2588 const PW_CLIENTONLY = 0x00000001; 2519 const RIM_INPUT = 0x00000000; | 2589 const RIM_INPUT = 0x00000000; 2520 const RIM_INPUTSINK = 0x00000001; | 2590 const RIM_INPUTSINK = 0x00000001; 2521 const RIM_TYPEMOUSE = 0x00000000; | 2591 const RIM_TYPEMOUSE = 0x00000000; 2522 const RIM_TYPEKEYBOARD = 0x00000001; | 2592 const RIM_TYPEKEYBOARD = 0x00000001; 2523 const RIM_TYPEHID = 0x00000002; | 2593 const RIM_TYPEHID = 0x00000002; 2524 const MOUSE_MOVE_RELATIVE = 0x00000000; | 2594 const MOUSE_MOVE_RELATIVE = 0x00000000; 2525 const MOUSE_MOVE_ABSOLUTE = 0x00000001; | 2595 const MOUSE_MOVE_ABSOLUTE = 0x00000001; 2526 const MOUSE_VIRTUAL_DESKTOP = 0x00000002; | 2596 const MOUSE_VIRTUAL_DESKTOP = 0x00000002; 2527 const MOUSE_ATTRIBUTES_CHANGED = 0x00000004; | 2597 const MOUSE_ATTRIBUTES_CHANGED = 0x00000004; 2528 const RI_MOUSE_LEFT_BUTTON_DOWN = 0x0001; | 2598 const RI_MOUSE_LEFT_BUTTON_DOWN = 0x0001; 2529 const RI_MOUSE_LEFT_BUTTON_UP = 0x0002; | 2599 const RI_MOUSE_LEFT_BUTTON_UP = 0x0002; 2530 const RI_MOUSE_RIGHT_BUTTON_DOWN = 0x0004; | 2600 const RI_MOUSE_RIGHT_BUTTON_DOWN = 0x0004; 2531 const RI_MOUSE_RIGHT_BUTTON_UP = 0x0008; | 2601 const RI_MOUSE_RIGHT_BUTTON_UP = 0x0008; 2532 const RI_MOUSE_MIDDLE_BUTTON_DOWN = 0x0010; | 2602 const RI_MOUSE_MIDDLE_BUTTON_DOWN = 0x0010; 2533 const RI_MOUSE_MIDDLE_BUTTON_UP = 0x0020; | 2603 const RI_MOUSE_MIDDLE_BUTTON_UP = 0x0020; 2534 const RI_MOUSE_BUTTON_1_DOWN = RI_MOUSE_LEFT_BUTTON_DOWN; | 2604 const RI_MOUSE_BUTTON_1_DOWN = RI_MOUSE_LEFT_BUTTON_DOWN; 2535 const RI_MOUSE_BUTTON_1_UP = RI_MOUSE_LEFT_BUTTON_UP; | 2605 const RI_MOUSE_BUTTON_1_UP = RI_MOUSE_LEFT_BUTTON_UP; 2536 const RI_MOUSE_BUTTON_2_DOWN = RI_MOUSE_RIGHT_BUTTON_DOWN; | 2606 const RI_MOUSE_BUTTON_2_DOWN = RI_MOUSE_RIGHT_BUTTON_DOWN; 2537 const RI_MOUSE_BUTTON_2_UP = RI_MOUSE_RIGHT_BUTTON_UP; | 2607 const RI_MOUSE_BUTTON_2_UP = RI_MOUSE_RIGHT_BUTTON_UP; 2538 const RI_MOUSE_BUTTON_3_DOWN = RI_MOUSE_MIDDLE_BUTTON_DOWN; | 2608 const RI_MOUSE_BUTTON_3_DOWN = RI_MOUSE_MIDDLE_BUTTON_DOWN; 2539 const RI_MOUSE_BUTTON_3_UP = RI_MOUSE_MIDDLE_BUTTON_UP; | 2609 const RI_MOUSE_BUTTON_3_UP = RI_MOUSE_MIDDLE_BUTTON_UP; 2540 const RI_MOUSE_BUTTON_4_DOWN = 0x0040; | 2610 const RI_MOUSE_BUTTON_4_DOWN = 0x0040; 2541 const RI_MOUSE_BUTTON_4_UP = 0x0080; | 2611 const RI_MOUSE_BUTTON_4_UP = 0x0080; 2542 const RI_MOUSE_BUTTON_5_DOWN = 0x0100; | 2612 const RI_MOUSE_BUTTON_5_DOWN = 0x0100; 2543 const RI_MOUSE_BUTTON_5_UP = 0x0200; | 2613 const RI_MOUSE_BUTTON_5_UP = 0x0200; 2544 const RI_MOUSE_WHEEL = 0x0400; | 2614 const RI_MOUSE_WHEEL = 0x0400; 2545 const KEYBOARD_OVERRUN_MAKE_CODE = 0x00ff; | 2615 const KEYBOARD_OVERRUN_MAKE_CODE = 0x00ff; 2546 const RI_KEY_MAKE = 0x0000; | 2616 const RI_KEY_MAKE = 0x0000; 2547 const RI_KEY_BREAK = 0x0001; | 2617 const RI_KEY_BREAK = 0x0001; 2548 const RI_KEY_E0 = 0x0002; | 2618 const RI_KEY_E0 = 0x0002; 2549 const RI_KEY_E1 = 0x0004; | 2619 const RI_KEY_E1 = 0x0004; 2550 const RI_KEY_TERMSRV_SET_LED = 0x0008; | 2620 const RI_KEY_TERMSRV_SET_LED = 0x0008; 2551 const RI_KEY_TERMSRV_SHADOW = 0x0010; | 2621 const RI_KEY_TERMSRV_SHADOW = 0x0010; 2552 | 2622 2553 const RID_INPUT = 0x10000003; | 2623 const RID_INPUT = 0x10000003; 2554 const RID_HEADER = 0x10000005; | 2624 const RID_HEADER = 0x10000005; 2555 | 2625 2556 const RIDI_PREPARSEDDATA = 0x20000005; | 2626 const RIDI_PREPARSEDDATA = 0x20000005; 2557 const RIDI_DEVICENAME = 0x20000007; | 2627 const RIDI_DEVICENAME = 0x20000007; 2558 const RIDI_DEVICEINFO = 0x2000000b; | 2628 const RIDI_DEVICEINFO = 0x2000000b; 2559 | 2629 2560 const RIDEV_REMOVE = 0x00000001; | 2630 const RIDEV_REMOVE = 0x00000001; 2561 const RIDEV_EXCLUDE = 0x00000010; | 2631 const RIDEV_EXCLUDE = 0x00000010; 2562 const RIDEV_PAGEONLY = 0x00000020; | 2632 const RIDEV_PAGEONLY = 0x00000020; 2563 const RIDEV_NOLEGACY = 0x00000030; | 2633 const RIDEV_NOLEGACY = 0x00000030; 2564 const RIDEV_INPUTSINK = 0x00000100; | 2634 const RIDEV_INPUTSINK = 0x00000100; 2565 const RIDEV_CAPTUREMOUSE = 0x00000200; | 2635 const RIDEV_CAPTUREMOUSE = 0x00000200; 2566 const RIDEV_NOHOTKEYS = 0x00000200; | 2636 const RIDEV_NOHOTKEYS = 0x00000200; 2567 const RIDEV_APPKEYS = 0x00000400; | 2637 const RIDEV_APPKEYS = 0x00000400; 2568 } 2638 } 2569 2639 2570 // Callbacks 2640 // Callbacks 2571 // --------- 2641 // --------- 2572 extern (Windows) { 2642 extern (Windows) { 2573 alias BOOL function (HWND, UINT, WPARAM, LPARAM) DLGPROC; | 2643 alias INT_PTR function (HWND, UINT, WPARAM, LPARAM) DLGPROC; 2574 alias void function (HWND, UINT, UINT, DWORD) TIMERPROC; | 2644 alias void function (HWND, UINT, UINT_PTR, DWORD) TIMERPROC; 2575 alias BOOL function (HDC, LPARAM, int) GRAYSTRINGPROC; 2645 alias BOOL function (HDC, LPARAM, int) GRAYSTRINGPROC; 2576 alias LRESULT function (int, WPARAM, LPARAM) HOOKPROC; 2646 alias LRESULT function (int, WPARAM, LPARAM) HOOKPROC; 2577 alias BOOL function (HWND, LPCSTR, HANDLE) PROPENUMPROCA; 2647 alias BOOL function (HWND, LPCSTR, HANDLE) PROPENUMPROCA; 2578 alias BOOL function (HWND, LPCWSTR, HANDLE) PROPENUMPROCW; 2648 alias BOOL function (HWND, LPCWSTR, HANDLE) PROPENUMPROCW; 2579 alias BOOL function (HWND, LPSTR, HANDLE, DWORD) PROPENUMPROCEXA; | 2649 alias BOOL function (HWND, LPSTR, HANDLE, ULONG_PTR) PROPENUMPROCEXA; 2580 alias BOOL function (HWND, LPWSTR, HANDLE, DWORD) PROPENUMPROCEXW; | 2650 alias BOOL function (HWND, LPWSTR, HANDLE, ULONG_PTR) PROPENUMPROCEXW; 2581 alias int function (LPSTR, int, int, int) EDITWORDBREAKPROCA; 2651 alias int function (LPSTR, int, int, int) EDITWORDBREAKPROCA; 2582 alias int function (LPWSTR, int, int, int) EDITWORDBREAKPROCW; 2652 alias int function (LPWSTR, int, int, int) EDITWORDBREAKPROCW; 2583 alias LRESULT function (HWND, UINT, WPARAM, LPARAM) WNDPROC; 2653 alias LRESULT function (HWND, UINT, WPARAM, LPARAM) WNDPROC; 2584 alias BOOL function (HDC, LPARAM, WPARAM, int, int) DRAWSTATEPROC; 2654 alias BOOL function (HDC, LPARAM, WPARAM, int, int) DRAWSTATEPROC; 2585 alias BOOL function (HWND, LPARAM) WNDENUMPROC; 2655 alias BOOL function (HWND, LPARAM) WNDENUMPROC; 2586 alias BOOL function (HWND, LPARAM) ENUMWINDOWSPROC; 2656 alias BOOL function (HWND, LPARAM) ENUMWINDOWSPROC; 2587 alias void function (LPHELPINFO) MSGBOXCALLBACK; 2657 alias void function (LPHELPINFO) MSGBOXCALLBACK; 2588 2658 2589 static if (WINVER >= 0x410) { | 2659 static if (_WIN32_WINNT >= 0x410) { 2590 alias BOOL function (HMONITOR, HDC, LPRECT, LPARAM) MONITORENUMP 2660 alias BOOL function (HMONITOR, HDC, LPRECT, LPARAM) MONITORENUMP 2591 } 2661 } 2592 alias BOOL function (LPSTR, LPARAM) NAMEENUMPROCA; 2662 alias BOOL function (LPSTR, LPARAM) NAMEENUMPROCA; 2593 alias BOOL function (LPWSTR, LPARAM) NAMEENUMPROCW; 2663 alias BOOL function (LPWSTR, LPARAM) NAMEENUMPROCW; 2594 alias void function (HWND, UINT, DWORD, LRESULT) SENDASYNCPROC; | 2664 alias void function (HWND, UINT, ULONG_PTR, LRESULT) SENDASYNCPROC; 2595 2665 2596 alias NAMEENUMPROCA DESKTOPENUMPROCA; 2666 alias NAMEENUMPROCA DESKTOPENUMPROCA; 2597 alias NAMEENUMPROCW DESKTOPENUMPROCW; 2667 alias NAMEENUMPROCW DESKTOPENUMPROCW; 2598 alias NAMEENUMPROCA WINSTAENUMPROCA; 2668 alias NAMEENUMPROCA WINSTAENUMPROCA; 2599 alias NAMEENUMPROCW WINSTAENUMPROCW; 2669 alias NAMEENUMPROCW WINSTAENUMPROCW; 2600 } 2670 } 2601 2671 2602 alias HANDLE HHOOK; | 2672 alias TypeDef!(HANDLE) HHOOK; 2603 alias HANDLE HDWP; | 2673 alias TypeDef!(HANDLE) HDWP; 2604 alias HANDLE HDEVNOTIFY; | 2674 alias TypeDef!(HANDLE) HDEVNOTIFY; 2605 2675 2606 struct ACCEL { 2676 struct ACCEL { 2607 BYTE fVirt; 2677 BYTE fVirt; 2608 WORD key; 2678 WORD key; 2609 WORD cmd; 2679 WORD cmd; 2610 } 2680 } 2611 alias ACCEL* LPACCEL; 2681 alias ACCEL* LPACCEL; ................................................................................................................................................................................ 2668 alias CBT_CREATEWNDW* LPCBT_CREATEWNDW; 2738 alias CBT_CREATEWNDW* LPCBT_CREATEWNDW; 2669 2739 2670 struct CBTACTIVATESTRUCT { 2740 struct CBTACTIVATESTRUCT { 2671 BOOL fMouse; 2741 BOOL fMouse; 2672 HWND hWndActive; 2742 HWND hWndActive; 2673 } 2743 } 2674 alias CBTACTIVATESTRUCT* LPCBTACTIVATESTRUCT; 2744 alias CBTACTIVATESTRUCT* LPCBTACTIVATESTRUCT; > 2745 > 2746 static if (_WIN32_WINNT >= 0x501) { > 2747 > 2748 struct WTSSESSION_NOTIFICATION > 2749 { > 2750 DWORD cbSize; > 2751 DWORD dwSessionId; > 2752 } > 2753 alias WTSSESSION_NOTIFICATION* PWTSSESSION_NOTIFICATION; > 2754 > 2755 } 2675 2756 2676 struct CLIENTCREATESTRUCT { 2757 struct CLIENTCREATESTRUCT { 2677 HANDLE hWindowMenu; 2758 HANDLE hWindowMenu; 2678 UINT idFirstChild; 2759 UINT idFirstChild; 2679 } 2760 } 2680 alias CLIENTCREATESTRUCT* LPCLIENTCREATESTRUCT; 2761 alias CLIENTCREATESTRUCT* LPCLIENTCREATESTRUCT; 2681 2762 ................................................................................................................................................................................ 2760 DWORD dwExtendedStyle; 2841 DWORD dwExtendedStyle; 2761 WORD cdit; 2842 WORD cdit; 2762 short x; 2843 short x; 2763 short y; 2844 short y; 2764 short cx; 2845 short cx; 2765 short cy; 2846 short cy; 2766 } 2847 } 2767 alias DLGTEMPLATE* LPDLGTEMPLATE, LPDLGTEMPLATEA, LPDLGTEMPLATEW; | 2848 alias DLGTEMPLATE* LPDLGTEMPLATE, LPDLGTEMPLATEA, LPDLGTEMPLATEW; 2768 alias CPtr!(DLGTEMPLATE) LPCDLGTEMPLATE; | 2849 alias const(DLGTEMPLATE)* LPCDLGTEMPLATE; 2769 2850 2770 align: 2851 align: 2771 2852 2772 struct DRAWITEMSTRUCT { 2853 struct DRAWITEMSTRUCT { 2773 UINT CtlType; 2854 UINT CtlType; 2774 UINT CtlID; 2855 UINT CtlID; 2775 UINT itemID; 2856 UINT itemID; ................................................................................................................................................................................ 2818 HBITMAP hbmMask; 2899 HBITMAP hbmMask; 2819 HBITMAP hbmColor; 2900 HBITMAP hbmColor; 2820 } 2901 } 2821 alias ICONINFO* PICONINFO; 2902 alias ICONINFO* PICONINFO; 2822 2903 2823 struct NMHDR { 2904 struct NMHDR { 2824 HWND hwndFrom; 2905 HWND hwndFrom; 2825 UINT idFrom; | 2906 UINT_PTR idFrom; 2826 UINT code; 2907 UINT code; 2827 } 2908 } 2828 alias NMHDR* LPNMHDR; 2909 alias NMHDR* LPNMHDR; 2829 2910 2830 struct WNDCLASSA { 2911 struct WNDCLASSA { 2831 UINT style; 2912 UINT style; 2832 WNDPROC lpfnWndProc; 2913 WNDPROC lpfnWndProc; ................................................................................................................................................................................ 2882 HCURSOR hCursor; 2963 HCURSOR hCursor; 2883 HBRUSH hbrBackground; 2964 HBRUSH hbrBackground; 2884 LPCWSTR lpszMenuName; 2965 LPCWSTR lpszMenuName; 2885 LPCWSTR lpszClassName; 2966 LPCWSTR lpszClassName; 2886 HICON hIconSm; 2967 HICON hIconSm; 2887 } 2968 } 2888 alias WNDCLASSEXW* LPWNDCLASSEXW, PWNDCLASSEXW; 2969 alias WNDCLASSEXW* LPWNDCLASSEXW, PWNDCLASSEXW; > 2970 > 2971 static if(_WIN32_WINNT >= 0x500) { > 2972 > 2973 struct MENUGETOBJECTINFO > 2974 { > 2975 DWORD dwFlags; > 2976 UINT uPos; > 2977 HMENU hmenu; > 2978 PVOID riid; > 2979 PVOID pvObj; > 2980 } > 2981 alias MENUGETOBJECTINFO* PMENUGETOBJECTINFO; > 2982 > 2983 } 2889 2984 2890 struct MENUITEMINFOA { 2985 struct MENUITEMINFOA { 2891 UINT cbSize = MENUITEMINFOA.sizeof; 2986 UINT cbSize = MENUITEMINFOA.sizeof; 2892 UINT fMask; 2987 UINT fMask; 2893 UINT fType; 2988 UINT fType; 2894 UINT fState; 2989 UINT fState; 2895 UINT wID; 2990 UINT wID; ................................................................................................................................................................................ 2899 DWORD dwItemData; 2994 DWORD dwItemData; 2900 LPSTR dwTypeData; 2995 LPSTR dwTypeData; 2901 UINT cch; 2996 UINT cch; 2902 static if (_WIN32_WINNT >= 0x500) { 2997 static if (_WIN32_WINNT >= 0x500) { 2903 HBITMAP hbmpItem; 2998 HBITMAP hbmpItem; 2904 } 2999 } 2905 } 3000 } 2906 alias MENUITEMINFOA* LPMENUITEMINFOA; | 3001 alias MENUITEMINFOA* LPMENUITEMINFOA; 2907 alias CPtr!(MENUITEMINFOA) LPCMENUITEMINFOA; | 3002 alias const(MENUITEMINFOA)* LPCMENUITEMINFOA; 2908 3003 2909 struct MENUITEMINFOW { 3004 struct MENUITEMINFOW { 2910 UINT cbSize = MENUITEMINFOW.sizeof; 3005 UINT cbSize = MENUITEMINFOW.sizeof; 2911 UINT fMask; 3006 UINT fMask; 2912 UINT fType; 3007 UINT fType; 2913 UINT fState; 3008 UINT fState; 2914 UINT wID; 3009 UINT wID; ................................................................................................................................................................................ 2918 DWORD dwItemData; 3013 DWORD dwItemData; 2919 LPWSTR dwTypeData; 3014 LPWSTR dwTypeData; 2920 UINT cch; 3015 UINT cch; 2921 static if (_WIN32_WINNT >= 0x500) { 3016 static if (_WIN32_WINNT >= 0x500) { 2922 HBITMAP hbmpItem; 3017 HBITMAP hbmpItem; 2923 } 3018 } 2924 } 3019 } 2925 alias MENUITEMINFOW* LPMENUITEMINFOW; | 3020 alias MENUITEMINFOW* LPMENUITEMINFOW; 2926 alias CPtr!(MENUITEMINFOW) LPCMENUITEMINFOW; | 3021 alias const(MENUITEMINFOW)* LPCMENUITEMINFOW; 2927 3022 2928 struct SCROLLINFO { 3023 struct SCROLLINFO { 2929 UINT cbSize = this.sizeof; 3024 UINT cbSize = this.sizeof; 2930 UINT fMask; 3025 UINT fMask; 2931 int nMin; 3026 int nMin; 2932 int nMax; 3027 int nMax; 2933 UINT nPage; 3028 UINT nPage; 2934 int nPos; 3029 int nPos; 2935 int nTrackPos; 3030 int nTrackPos; 2936 } 3031 } 2937 alias SCROLLINFO* LPSCROLLINFO; | 3032 alias SCROLLINFO* LPSCROLLINFO; 2938 alias CPtr!(SCROLLINFO) LPCSCROLLINFO; | 3033 alias const(SCROLLINFO)* LPCSCROLLINFO; 2939 3034 2940 struct WINDOWPLACEMENT { 3035 struct WINDOWPLACEMENT { 2941 UINT length; 3036 UINT length; 2942 UINT flags; 3037 UINT flags; 2943 UINT showCmd; 3038 UINT showCmd; 2944 POINT ptMinPosition; 3039 POINT ptMinPosition; 2945 POINT ptMaxPosition; 3040 POINT ptMaxPosition; ................................................................................................................................................................................ 2951 WORD versionNumber; 3046 WORD versionNumber; 2952 WORD offset; 3047 WORD offset; 2953 } 3048 } 2954 3049 2955 struct MENUITEMTEMPLATE { 3050 struct MENUITEMTEMPLATE { 2956 WORD mtOption; 3051 WORD mtOption; 2957 WORD mtID; 3052 WORD mtID; 2958 WCHAR mtString[1]; | 3053 WCHAR[1] mtString; 2959 } 3054 } 2960 3055 2961 alias void MENUTEMPLATE, MENUTEMPLATEA, MENUTEMPLATEW; 3056 alias void MENUTEMPLATE, MENUTEMPLATEA, MENUTEMPLATEW; 2962 3057 2963 alias MENUTEMPLATE* LPMENUTEMPLATEA, LPMENUTEMPLATEW, LPMENUTEMPLATE; 3058 alias MENUTEMPLATE* LPMENUTEMPLATEA, LPMENUTEMPLATEW, LPMENUTEMPLATE; 2964 3059 2965 struct HELPINFO { 3060 struct HELPINFO { ................................................................................................................................................................................ 3209 int cx; 3304 int cx; 3210 int cy; 3305 int cy; 3211 UINT flags; 3306 UINT flags; 3212 } 3307 } 3213 alias WINDOWPOS* PWINDOWPOS, LPWINDOWPOS; 3308 alias WINDOWPOS* PWINDOWPOS, LPWINDOWPOS; 3214 3309 3215 struct NCCALCSIZE_PARAMS { 3310 struct NCCALCSIZE_PARAMS { 3216 RECT rgrc[3]; | 3311 RECT[3] rgrc; 3217 PWINDOWPOS lppos; 3312 PWINDOWPOS lppos; 3218 } 3313 } 3219 alias NCCALCSIZE_PARAMS* LPNCCALCSIZE_PARAMS; 3314 alias NCCALCSIZE_PARAMS* LPNCCALCSIZE_PARAMS; 3220 3315 3221 struct MDICREATESTRUCTA { 3316 struct MDICREATESTRUCTA { 3222 LPCSTR szClass; 3317 LPCSTR szClass; 3223 LPCSTR szTitle; 3318 LPCSTR szTitle; ................................................................................................................................................................................ 3281 alias DROPSTRUCT* PDROPSTRUCT, LPDROPSTRUCT; 3376 alias DROPSTRUCT* PDROPSTRUCT, LPDROPSTRUCT; 3282 3377 3283 alias DWORD HELPPOLY; 3378 alias DWORD HELPPOLY; 3284 3379 3285 struct MULTIKEYHELPA { 3380 struct MULTIKEYHELPA { 3286 DWORD mkSize; 3381 DWORD mkSize; 3287 CHAR mkKeylist; 3382 CHAR mkKeylist; 3288 CHAR szKeyphrase[1]; | 3383 CHAR[1] szKeyphrase; 3289 } 3384 } 3290 alias MULTIKEYHELPA* PMULTIKEYHELPA, LPMULTIKEYHELPA; 3385 alias MULTIKEYHELPA* PMULTIKEYHELPA, LPMULTIKEYHELPA; 3291 3386 3292 struct MULTIKEYHELPW { 3387 struct MULTIKEYHELPW { 3293 DWORD mkSize; 3388 DWORD mkSize; 3294 WCHAR mkKeylist; 3389 WCHAR mkKeylist; 3295 WCHAR szKeyphrase[1]; | 3390 WCHAR[1] szKeyphrase; 3296 } 3391 } 3297 alias MULTIKEYHELPW* PMULTIKEYHELPW, LPMULTIKEYHELPW; 3392 alias MULTIKEYHELPW* PMULTIKEYHELPW, LPMULTIKEYHELPW; 3298 3393 3299 struct HELPWININFOA { 3394 struct HELPWININFOA { 3300 int wStructSize; 3395 int wStructSize; 3301 int x; 3396 int x; 3302 int y; 3397 int y; 3303 int dx; 3398 int dx; 3304 int dy; 3399 int dy; 3305 int wMax; 3400 int wMax; 3306 CHAR rgchMember[2]; | 3401 CHAR[2] rgchMember; 3307 } 3402 } 3308 alias HELPWININFOA* PHELPWININFOA, LPHELPWININFOA; 3403 alias HELPWININFOA* PHELPWININFOA, LPHELPWININFOA; 3309 3404 3310 struct HELPWININFOW { 3405 struct HELPWININFOW { 3311 int wStructSize; 3406 int wStructSize; 3312 int x; 3407 int x; 3313 int y; 3408 int y; 3314 int dx; 3409 int dx; 3315 int dy; 3410 int dy; 3316 int wMax; 3411 int wMax; 3317 WCHAR rgchMember[2]; | 3412 WCHAR[2] rgchMember; 3318 } 3413 } 3319 alias HELPWININFOW* PHELPWININFOW, LPHELPWININFOW; 3414 alias HELPWININFOW* PHELPWININFOW, LPHELPWININFOW; 3320 3415 3321 struct STYLESTRUCT { 3416 struct STYLESTRUCT { 3322 DWORD styleOld; 3417 DWORD styleOld; 3323 DWORD styleNew; 3418 DWORD styleNew; 3324 } 3419 } ................................................................................................................................................................................ 3376 DWORD fMask; 3471 DWORD fMask; 3377 DWORD dwStyle; 3472 DWORD dwStyle; 3378 UINT cyMax; 3473 UINT cyMax; 3379 HBRUSH hbrBack; 3474 HBRUSH hbrBack; 3380 DWORD dwContextHelpID; 3475 DWORD dwContextHelpID; 3381 ULONG_PTR dwMenuData; 3476 ULONG_PTR dwMenuData; 3382 } 3477 } 3383 alias MENUINFO* LPMENUINFO; | 3478 alias MENUINFO* LPMENUINFO; 3384 alias CPtr!(MENUINFO) LPCMENUINFO; | 3479 alias const(MENUINFO)* LPCMENUINFO; 3385 3480 3386 3481 3387 const CCHILDREN_SCROLLBAR=5; 3482 const CCHILDREN_SCROLLBAR=5; 3388 3483 3389 struct SCROLLBARINFO { 3484 struct SCROLLBARINFO { 3390 DWORD cbSize = this.sizeof; 3485 DWORD cbSize = this.sizeof; 3391 RECT rcScrollBar; 3486 RECT rcScrollBar; 3392 int dxyLineButton; 3487 int dxyLineButton; 3393 int xyThumbTop; 3488 int xyThumbTop; 3394 int xyThumbBottom; 3489 int xyThumbBottom; 3395 int reserved; 3490 int reserved; 3396 DWORD rgstate[CCHILDREN_SCROLLBAR+1]; | 3491 DWORD[CCHILDREN_SCROLLBAR+1] rgstate; 3397 } 3492 } 3398 alias SCROLLBARINFO* PSCROLLBARINFO, LPSCROLLBARINFO; 3493 alias SCROLLBARINFO* PSCROLLBARINFO, LPSCROLLBARINFO; 3399 3494 3400 const CCHILDREN_TITLEBAR=5; 3495 const CCHILDREN_TITLEBAR=5; 3401 3496 3402 struct TITLEBARINFO { 3497 struct TITLEBARINFO { 3403 DWORD cbSize = TITLEBARINFO.sizeof; 3498 DWORD cbSize = TITLEBARINFO.sizeof; ................................................................................................................................................................................ 3459 DWORD scanCode; 3554 DWORD scanCode; 3460 DWORD flags; 3555 DWORD flags; 3461 DWORD time; 3556 DWORD time; 3462 DWORD dwExtraInfo; 3557 DWORD dwExtraInfo; 3463 } 3558 } 3464 alias KBDLLHOOKSTRUCT* LPKBDLLHOOKSTRUCT, PKBDLLHOOKSTRUCT; 3559 alias KBDLLHOOKSTRUCT* LPKBDLLHOOKSTRUCT, PKBDLLHOOKSTRUCT; 3465 3560 3466 static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { | 3561 static if (_WIN32_WINNT >= 0x501) { 3467 < 3468 struct FLASHWINFO { | 3562 struct FLASHWINFO { 3469 UINT cbSize = this.sizeof; | 3563 UINT cbSize = this.sizeof; 3470 HWND hwnd; | 3564 HWND hwnd; 3471 DWORD dwFlags; | 3565 DWORD dwFlags; 3472 UINT uCount; | 3566 UINT uCount; 3473 DWORD dwTimeout; | 3567 DWORD dwTimeout; 3474 } | 3568 } 3475 alias FLASHWINFO* PFLASHWINFO; | 3569 alias FLASHWINFO* PFLASHWINFO; 3476 | 3570 } 3477 } | 3571 3478 < 3479 static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x490)) { | 3572 static if (_WIN32_WINNT >= 0x500) { 3480 | 3573 3481 struct MOUSEMOVEPOINT { | 3574 struct MOUSEMOVEPOINT { 3482 int x; | 3575 int x; 3483 int y; | 3576 int y; 3484 DWORD time; | 3577 DWORD time; 3485 ULONG_PTR dwExtraInfo; | 3578 ULONG_PTR dwExtraInfo; 3486 } | 3579 } 3487 alias MOUSEMOVEPOINT* PMOUSEMOVEPOINT, LPMOUSEMOVEPOINT; | 3580 alias MOUSEMOVEPOINT* PMOUSEMOVEPOINT, LPMOUSEMOVEPOINT; 3488 } 3581 } 3489 3582 3490 static if (_WIN32_WINNT >= 0x403) { 3583 static if (_WIN32_WINNT >= 0x403) { 3491 struct MOUSEINPUT { | 3584 struct MOUSEINPUT { 3492 LONG dx; | 3585 LONG dx; 3493 LONG dy; | 3586 LONG dy; 3494 DWORD mouseData; | 3587 DWORD mouseData; 3495 DWORD dwFlags; | 3588 DWORD dwFlags; 3496 DWORD time; | 3589 DWORD time; 3497 ULONG_PTR dwExtraInfo; | 3590 ULONG_PTR dwExtraInfo; 3498 } | 3591 } 3499 alias MOUSEINPUT* PMOUSEINPUT; | 3592 alias MOUSEINPUT* PMOUSEINPUT; 3500 | 3593 3501 struct KEYBDINPUT { | 3594 struct KEYBDINPUT { 3502 WORD wVk; | 3595 WORD wVk; 3503 WORD wScan; | 3596 WORD wScan; 3504 DWORD dwFlags; | 3597 DWORD dwFlags; 3505 DWORD time; | 3598 DWORD time; 3506 ULONG_PTR dwExtraInfo; | 3599 ULONG_PTR dwExtraInfo; 3507 } | 3600 } 3508 alias KEYBDINPUT* PKEYBDINPUT; | 3601 alias KEYBDINPUT* PKEYBDINPUT; 3509 | 3602 3510 struct HARDWAREINPUT { | 3603 struct HARDWAREINPUT { 3511 DWORD uMsg; | 3604 DWORD uMsg; 3512 WORD wParamL; | 3605 WORD wParamL; 3513 WORD wParamH; | 3606 WORD wParamH; 3514 } | 3607 } 3515 alias HARDWAREINPUT* PHARDWAREINPUT; | 3608 alias HARDWAREINPUT* PHARDWAREINPUT; 3516 | 3609 3517 struct INPUT { | 3610 struct INPUT { 3518 DWORD type; | 3611 DWORD type; 3519 union { | 3612 union { 3520 MOUSEINPUT mi; | 3613 MOUSEINPUT mi; 3521 KEYBDINPUT ki; | 3614 KEYBDINPUT ki; 3522 HARDWAREINPUT hi; | 3615 HARDWAREINPUT hi; 3523 } | 3616 } 3524 } | 3617 } 3525 alias INPUT* PINPUT, LPINPUT; | 3618 alias INPUT* PINPUT, LPINPUT; 3526 }// (_WIN32_WINNT >= 0x403) 3619 }// (_WIN32_WINNT >= 0x403) 3527 3620 3528 static if (WINVER >= 0x500) { | 3621 static if (_WIN32_WINNT >= 0x500) { 3529 struct GUITHREADINFO { | 3622 struct GUITHREADINFO { 3530 DWORD cbSize = this.sizeof; | 3623 DWORD cbSize = this.sizeof; 3531 DWORD flags; | 3624 DWORD flags; 3532 HWND hwndActive; | 3625 HWND hwndActive; 3533 HWND hwndFocus; | 3626 HWND hwndFocus; 3534 HWND hwndCapture; | 3627 HWND hwndCapture; 3535 HWND hwndMenuOwner; | 3628 HWND hwndMenuOwner; 3536 HWND hwndMoveSize; | 3629 HWND hwndMoveSize; 3537 HWND hwndCaret; | 3630 HWND hwndCaret; 3538 RECT rcCaret; | 3631 RECT rcCaret; 3539 } | 3632 } 3540 alias GUITHREADINFO* PGUITHREADINFO, LPGUITHREADINFO; | 3633 alias GUITHREADINFO* PGUITHREADINFO, LPGUITHREADINFO; 3541 extern (Windows) { | 3634 extern (Windows) { 3542 alias void function (HWINEVENTHOOK, DWORD, HWND, LONG, LONG, DWORD, DWORD) WINEV | 3635 alias void function (HWINEVENTHOOK, DWORD, HWND, LONG, LONG, DWO 3543 } | 3636 } 3544 3637 3545 }// (WINVER >= 0x500) | 3638 }// (_WIN32_WINNT >= 0x500) 3546 3639 3547 static if (_WIN32_WINNT >= 0x501) { 3640 static if (_WIN32_WINNT >= 0x501) { 3548 struct BSMINFO { | 3641 struct BSMINFO { 3549 UINT cbSize = this.sizeof; | 3642 UINT cbSize = this.sizeof; 3550 HDESK hdesk; | 3643 HDESK hdesk; 3551 HWND hwnd; | 3644 HWND hwnd; 3552 LUID luid; | 3645 LUID luid; 3553 } | 3646 } 3554 alias BSMINFO* PBSMINFO; | 3647 alias BSMINFO* PBSMINFO; 3555 | 3648 3556 alias HANDLE HRAWINPUT; | 3649 alias TypeDef!(HANDLE) HRAWINPUT; 3557 | 3650 3558 struct RAWINPUTHEADER { | 3651 struct RAWINPUTHEADER { 3559 DWORD dwType; | 3652 DWORD dwType; 3560 DWORD dwSize; | 3653 DWORD dwSize; 3561 HANDLE hDevice; | 3654 HANDLE hDevice; 3562 WPARAM wParam; | 3655 WPARAM wParam; 3563 } | 3656 } 3564 alias RAWINPUTHEADER* PRAWINPUTHEADER; | 3657 alias RAWINPUTHEADER* PRAWINPUTHEADER; 3565 | 3658 3566 struct RAWMOUSE { | 3659 struct RAWMOUSE { 3567 USHORT usFlags; | 3660 USHORT usFlags; 3568 union { | 3661 union { 3569 ULONG ulButtons; | 3662 ULONG ulButtons; 3570 struct { | 3663 struct { 3571 USHORT usButtonFlags; | 3664 USHORT usButtonFlags; 3572 USHORT usButtonData; | 3665 USHORT usButtonData; > 3666 } > 3667 } > 3668 ULONG ulRawButtons; > 3669 LONG lLastX; > 3670 LONG lLastY; > 3671 ULONG ulExtraInformation; > 3672 } > 3673 alias RAWMOUSE* PRAWMOUSE, LPRAWMOUSE; > 3674 > 3675 struct RAWKEYBOARD { > 3676 USHORT MakeCode; > 3677 USHORT Flags; > 3678 USHORT Reserved; > 3679 USHORT VKey; > 3680 UINT Message; > 3681 ULONG ExtraInformation; > 3682 } > 3683 alias RAWKEYBOARD* PRAWKEYBOARD, LPRAWKEYBOARD; > 3684 > 3685 struct RAWHID { > 3686 DWORD dwSizeHid; > 3687 DWORD dwCount; > 3688 BYTE bRawData; > 3689 } > 3690 alias RAWHID* PRAWHID, LPRAWHID; > 3691 > 3692 struct RAWINPUT { > 3693 RAWINPUTHEADER header; > 3694 union _data { > 3695 RAWMOUSE mouse; > 3696 RAWKEYBOARD keyboard; > 3697 RAWHID hid; 3573 } 3698 } > 3699 _data data; 3574 } | 3700 } 3575 ULONG ulRawButtons; < 3576 LONG lLastX; | 3701 alias RAWINPUT* PRAWINPUT, LPRAWINPUT; 3577 LONG lLastY; < 3578 ULONG ulExtraInformation; < 3579 } | 3702 3580 alias RAWMOUSE* PRAWMOUSE, LPRAWMOUSE; < 3581 < 3582 struct RAWKEYBOARD { | 3703 struct RAWINPUTDEVICE { 3583 USHORT MakeCode; < 3584 USHORT Flags; | 3704 USHORT usUsagePage; 3585 USHORT Reserved; < 3586 USHORT VKey; | 3705 USHORT usUsage; 3587 UINT Message; < 3588 ULONG ExtraInformation; < > 3706 DWORD dwFlags; > 3707 HWND hwndTarget; 3589 } | 3708 } 3590 alias RAWKEYBOARD* PRAWKEYBOARD, LPRAWKEYBOARD; < > 3709 alias RAWINPUTDEVICE* PRAWINPUTDEVICE, LPRAWINPUTDEVICE; > 3710 alias const(RAWINPUTDEVICE)* PCRAWINPUTDEVICE; 3591 | 3711 3592 struct RAWHID { | 3712 struct RAWINPUTDEVICELIST { > 3713 HANDLE hDevice; 3593 DWORD dwSizeHid; | 3714 DWORD dwType; > 3715 } > 3716 alias RAWINPUTDEVICELIST* PRAWINPUTDEVICELIST; > 3717 > 3718 struct RID_DEVICE_INFO_MOUSE { 3594 DWORD dwCount; | 3719 DWORD dwId; 3595 BYTE bRawData; | 3720 DWORD dwNumberOfButtons; > 3721 DWORD dwSampleRate; > 3722 BOOL fHasHorizontalWheel; 3596 } | 3723 } 3597 alias RAWHID* PRAWHID, LPRAWHID; < 3598 | 3724 3599 struct RAWINPUT { < 3600 RAWINPUTHEADER header; | 3725 struct RID_DEVICE_INFO_KEYBOARD { 3601 union _data { | 3726 DWORD dwType; 3602 RAWMOUSE mouse; | 3727 DWORD dwSubType; 3603 RAWKEYBOARD keyboard; | 3728 DWORD dwKeyboardMode; 3604 RAWHID hid; | 3729 DWORD dwNumberOfFunctionKeys; > 3730 DWORD dwNumberOfIndicators; > 3731 DWORD dwNumberOfKeysTotal; > 3732 } > 3733 > 3734 struct RID_DEVICE_INFO_HID { > 3735 DWORD dwVendorId; > 3736 DWORD dwProductId; > 3737 DWORD dwVersionNumber; > 3738 USHORT usUsagePage; > 3739 USHORT usUsage; 3605 } 3740 } 3606 _data data; < 3607 } | 3741 3608 alias RAWINPUT* PRAWINPUT, LPRAWINPUT; < 3609 < 3610 struct RAWINPUTDEVICE { < 3611 USHORT usUsagePage; < 3612 USHORT usUsage; < 3613 DWORD dwFlags; < 3614 HWND hwndTarget; < 3615 } < 3616 alias RAWINPUTDEVICE* PRAWINPUTDEVICE, LPRAWINPUTDEVICE; < 3617 alias CPtr!(RAWINPUTDEVICE) PCRAWINPUTDEVICE; < 3618 < 3619 struct RAWINPUTDEVICELIST { < 3620 HANDLE hDevice; < 3621 DWORD dwType; < 3622 } < 3623 alias RAWINPUTDEVICELIST* PRAWINPUTDEVICELIST; < 3624 < 3625 struct RID_DEVICE_INFO_MOUSE { < 3626 DWORD dwId; < 3627 DWORD dwNumberOfButtons; < 3628 DWORD dwSampleRate; < 3629 BOOL fHasHorizontalWheel; < 3630 } < 3631 < 3632 struct RID_DEVICE_INFO_KEYBOARD { < 3633 DWORD dwType; < 3634 DWORD dwSubType; < 3635 DWORD dwKeyboardMode; < 3636 DWORD dwNumberOfFunctionKeys; < 3637 DWORD dwNumberOfIndicators; < 3638 DWORD dwNumberOfKeysTotal; < 3639 } < 3640 < 3641 struct RID_DEVICE_INFO_HID { < 3642 DWORD dwVendorId; < 3643 DWORD dwProductId; < 3644 DWORD dwVersionNumber; < 3645 USHORT usUsagePage; < 3646 USHORT usUsage; < 3647 } < 3648 < 3649 struct RID_DEVICE_INFO { | 3742 struct RID_DEVICE_INFO { 3650 DWORD cbSize = this.sizeof; | 3743 DWORD cbSize = this.sizeof; 3651 DWORD dwType; | 3744 DWORD dwType; 3652 union { | 3745 union { 3653 RID_DEVICE_INFO_MOUSE mouse; | 3746 RID_DEVICE_INFO_MOUSE mouse; 3654 RID_DEVICE_INFO_KEYBOARD keyboard; | 3747 RID_DEVICE_INFO_KEYBOARD keyboard; 3655 RID_DEVICE_INFO_HID hid; | 3748 RID_DEVICE_INFO_HID hid; 3656 } | 3749 } 3657 } | 3750 } 3658 }// (_WIN32_WINNT >= 0x501) 3751 }// (_WIN32_WINNT >= 0x501) 3659 3752 3660 struct MSLLHOOKSTRUCT { 3753 struct MSLLHOOKSTRUCT { 3661 POINT pt; 3754 POINT pt; 3662 DWORD mouseData; 3755 DWORD mouseData; 3663 DWORD flags; 3756 DWORD flags; 3664 DWORD time; 3757 DWORD time; ................................................................................................................................................................................ 3677 alias CharNextA AnsiNext; 3770 alias CharNextA AnsiNext; 3678 alias CharPrevA AnsiPrev; 3771 alias CharPrevA AnsiPrev; 3679 3772 3680 alias MAKELONG MAKEWPARAM; 3773 alias MAKELONG MAKEWPARAM; 3681 alias MAKELONG MAKELPARAM; 3774 alias MAKELONG MAKELPARAM; 3682 alias MAKELONG MAKELRESULT; 3775 alias MAKELONG MAKELRESULT; 3683 3776 3684 //MACRO #define POINTSTOPOINT(p, ps) { (p).x=LOWORD(*(DWORD* )&ps); (p).y=HIWORD | 3777 //MACRO #define POINTSTOPOINT(p, ps) { (p).x=LOWORD(*(DWORD*)&ps); (p).y=HIWORD( 3685 //MACRO #define POINTTOPOINTS(p) ((POINTS)MAKELONG((p).x, (p).y)) 3778 //MACRO #define POINTTOPOINTS(p) ((POINTS)MAKELONG((p).x, (p).y)) 3686 3779 3687 extern (Windows) { 3780 extern (Windows) { 3688 3781 3689 HKL ActivateKeyboardLayout(HKL, UINT); | 3782 HKL ActivateKeyboardLayout(HKL, UINT); 3690 BOOL AdjustWindowRect(LPRECT, DWORD, BOOL); | 3783 BOOL AdjustWindowRect(LPRECT, DWORD, BOOL); 3691 BOOL AdjustWindowRectEx(LPRECT, DWORD, BOOL, DWORD); | 3784 BOOL AdjustWindowRectEx(LPRECT, DWORD, BOOL, DWORD); 3692 BOOL AnyPopup(); | 3785 BOOL AnyPopup(); 3693 BOOL AppendMenuA(HMENU, UINT, UINT_PTR, LPCSTR); | 3786 BOOL AppendMenuA(HMENU, UINT, UINT_PTR, LPCSTR); 3694 BOOL AppendMenuW(HMENU, UINT, UINT_PTR, LPCWSTR); | 3787 BOOL AppendMenuW(HMENU, UINT, UINT_PTR, LPCWSTR); 3695 UINT ArrangeIconicWindows(HWND); | 3788 UINT ArrangeIconicWindows(HWND); 3696 BOOL AttachThreadInput(DWORD, DWORD, BOOL); | 3789 BOOL AttachThreadInput(DWORD, DWORD, BOOL); 3697 HDWP BeginDeferWindowPos(int); | 3790 HDWP BeginDeferWindowPos(int); 3698 HDC BeginPaint(HWND, LPPAINTSTRUCT); | 3791 HDC BeginPaint(HWND, LPPAINTSTRUCT); 3699 BOOL BringWindowToTop(HWND); | 3792 BOOL BringWindowToTop(HWND); 3700 BOOL CallMsgFilterA(LPMSG, INT); | 3793 BOOL CallMsgFilterA(LPMSG, INT); 3701 BOOL CallMsgFilterW(LPMSG, INT); | 3794 BOOL CallMsgFilterW(LPMSG, INT); 3702 LRESULT CallNextHookEx(HHOOK, int, WPARAM, LPARAM); | 3795 LRESULT CallNextHookEx(HHOOK, int, WPARAM, LPARAM); 3703 LRESULT CallWindowProcA(WNDPROC, HWND, UINT, WPARAM, LPARAM); | 3796 LRESULT CallWindowProcA(WNDPROC, HWND, UINT, WPARAM, LPARAM); 3704 LRESULT CallWindowProcW(WNDPROC, HWND, UINT, WPARAM, LPARAM); | 3797 LRESULT CallWindowProcW(WNDPROC, HWND, UINT, WPARAM, LPARAM); 3705 WORD CascadeWindows(HWND, UINT, LPCRECT, UINT, CPtr!(HWND)); | 3798 WORD CascadeWindows(HWND, UINT, LPCRECT, UINT, const(HWND)*); 3706 BOOL ChangeClipboardChain(HWND, HWND); | 3799 BOOL ChangeClipboardChain(HWND, HWND); 3707 | 3800 3708 LONG ChangeDisplaySettingsA(PDEVMODEA, DWORD); | 3801 LONG ChangeDisplaySettingsA(PDEVMODEA, DWORD); 3709 LONG ChangeDisplaySettingsW(PDEVMODEW, DWORD); | 3802 LONG ChangeDisplaySettingsW(PDEVMODEW, DWORD); 3710 LONG ChangeDisplaySettingsExA(LPCSTR, LPDEVMODEA, HWND, DWORD, LPVOID); | 3803 LONG ChangeDisplaySettingsExA(LPCSTR, LPDEVMODEA, HWND, DWORD, LPVOID); 3711 LONG ChangeDisplaySettingsExW(LPCWSTR, LPDEVMODEW, HWND, DWORD, LPVOID); | 3804 LONG ChangeDisplaySettingsExW(LPCWSTR, LPDEVMODEW, HWND, DWORD, LPVOID); 3712 | 3805 3713 BOOL ChangeMenuA(HMENU, UINT, LPCSTR, UINT, UINT); | 3806 BOOL ChangeMenuA(HMENU, UINT, LPCSTR, UINT, UINT); 3714 BOOL ChangeMenuW(HMENU, UINT, LPCWSTR, UINT, UINT); | 3807 BOOL ChangeMenuW(HMENU, UINT, LPCWSTR, UINT, UINT); 3715 LPSTR CharLowerA(LPSTR); | 3808 LPSTR CharLowerA(LPSTR); 3716 LPWSTR CharLowerW(LPWSTR); | 3809 LPWSTR CharLowerW(LPWSTR); 3717 DWORD CharLowerBuffA(LPSTR, DWORD); | 3810 DWORD CharLowerBuffA(LPSTR, DWORD); 3718 DWORD CharLowerBuffW(LPWSTR, DWORD); | 3811 DWORD CharLowerBuffW(LPWSTR, DWORD); 3719 LPSTR CharNextA(LPCSTR); | 3812 LPSTR CharNextA(LPCSTR); 3720 LPWSTR CharNextW(LPCWSTR); | 3813 LPWSTR CharNextW(LPCWSTR); 3721 LPSTR CharNextExA(WORD, LPCSTR, DWORD); | 3814 LPSTR CharNextExA(WORD, LPCSTR, DWORD); 3722 LPWSTR CharNextExW(WORD, LPCWSTR, DWORD); | 3815 LPWSTR CharNextExW(WORD, LPCWSTR, DWORD); 3723 LPSTR CharPrevA(LPCSTR, LPCSTR); | 3816 LPSTR CharPrevA(LPCSTR, LPCSTR); 3724 LPWSTR CharPrevW(LPCWSTR, LPCWSTR); | 3817 LPWSTR CharPrevW(LPCWSTR, LPCWSTR); 3725 LPSTR CharPrevExA(WORD, LPCSTR, LPCSTR, DWORD); | 3818 LPSTR CharPrevExA(WORD, LPCSTR, LPCSTR, DWORD); 3726 LPWSTR CharPrevExW(WORD, LPCWSTR, LPCWSTR, DWORD); | 3819 LPWSTR CharPrevExW(WORD, LPCWSTR, LPCWSTR, DWORD); 3727 BOOL CharToOemA(LPCSTR, LPSTR); | 3820 BOOL CharToOemA(LPCSTR, LPSTR); 3728 BOOL CharToOemW(LPCWSTR, LPSTR); | 3821 BOOL CharToOemW(LPCWSTR, LPSTR); 3729 BOOL CharToOemBuffA(LPCSTR, LPSTR, DWORD); | 3822 BOOL CharToOemBuffA(LPCSTR, LPSTR, DWORD); 3730 BOOL CharToOemBuffW(LPCWSTR, LPSTR, DWORD); | 3823 BOOL CharToOemBuffW(LPCWSTR, LPSTR, DWORD); 3731 LPSTR CharUpperA(LPSTR); | 3824 LPSTR CharUpperA(LPSTR); 3732 LPWSTR CharUpperW(LPWSTR); | 3825 LPWSTR CharUpperW(LPWSTR); 3733 DWORD CharUpperBuffA(LPSTR, DWORD); | 3826 DWORD CharUpperBuffA(LPSTR, DWORD); 3734 DWORD CharUpperBuffW(LPWSTR, DWORD); | 3827 DWORD CharUpperBuffW(LPWSTR, DWORD); 3735 BOOL CheckDlgButton(HWND, int, UINT); | 3828 BOOL CheckDlgButton(HWND, int, UINT); 3736 DWORD CheckMenuItem(HMENU, UINT, UINT); | 3829 DWORD CheckMenuItem(HMENU, UINT, UINT); 3737 BOOL CheckMenuRadioItem(HMENU, UINT, UINT, UINT, UINT); | 3830 BOOL CheckMenuRadioItem(HMENU, UINT, UINT, UINT, UINT); 3738 BOOL CheckRadioButton(HWND, int, int, int); | 3831 BOOL CheckRadioButton(HWND, int, int, int); 3739 HWND ChildWindowFromPoint(HWND, POINT); | 3832 HWND ChildWindowFromPoint(HWND, POINT); 3740 HWND ChildWindowFromPointEx(HWND, POINT, UINT); | 3833 HWND ChildWindowFromPointEx(HWND, POINT, UINT); 3741 BOOL ClientToScreen(HWND, LPPOINT); | 3834 BOOL ClientToScreen(HWND, LPPOINT); 3742 BOOL ClipCursor(LPCRECT); | 3835 BOOL ClipCursor(LPCRECT); 3743 BOOL CloseClipboard(); | 3836 BOOL CloseClipboard(); 3744 BOOL CloseDesktop(HDESK); | 3837 BOOL CloseDesktop(HDESK); 3745 BOOL CloseWindow(HWND); | 3838 BOOL CloseWindow(HWND); 3746 BOOL CloseWindowStation(HWINSTA); | 3839 BOOL CloseWindowStation(HWINSTA); 3747 int CopyAcceleratorTableA(HACCEL, LPACCEL, int); | 3840 int CopyAcceleratorTableA(HACCEL, LPACCEL, int); 3748 int CopyAcceleratorTableW(HACCEL, LPACCEL, int); | 3841 int CopyAcceleratorTableW(HACCEL, LPACCEL, int); 3749 | 3842 3750 HICON CopyIcon(HICON); | 3843 HICON CopyIcon(HICON); 3751 HANDLE CopyImage(HANDLE, UINT, int, int, UINT); | 3844 HANDLE CopyImage(HANDLE, UINT, int, int, UINT); 3752 BOOL CopyRect(LPRECT, LPCRECT); | 3845 BOOL CopyRect(LPRECT, LPCRECT); 3753 int CountClipboardFormats(); | 3846 int CountClipboardFormats(); 3754 HACCEL CreateAcceleratorTableA(LPACCEL, int); | 3847 HACCEL CreateAcceleratorTableA(LPACCEL, int); 3755 HACCEL CreateAcceleratorTableW(LPACCEL, int); | 3848 HACCEL CreateAcceleratorTableW(LPACCEL, int); 3756 BOOL CreateCaret(HWND, HBITMAP, int, int); | 3849 BOOL CreateCaret(HWND, HBITMAP, int, int); 3757 HCURSOR CreateCursor(HINSTANCE, int, int, int, int, PCVOID, PCVOID); | 3850 HCURSOR CreateCursor(HINSTANCE, int, int, int, int, PCVOID, PCVOID); 3758 | 3851 3759 HDESK CreateDesktopA(LPCSTR, LPCSTR, LPDEVMODEA, DWORD, ACCESS_MASK, LPSECURITY_ | 3852 HDESK CreateDesktopA(LPCSTR, LPCSTR, LPDEVMODEA, DWORD, ACCESS_MASK, LPS 3760 HDESK CreateDesktopW(LPCWSTR, LPCWSTR, LPDEVMODEW, DWORD, ACCESS_MASK, LPSECURIT | 3853 HDESK CreateDesktopW(LPCWSTR, LPCWSTR, LPDEVMODEW, DWORD, ACCESS_MASK, L 3761 | 3854 3762 HWND CreateDialogParamA(HINSTANCE, LPCSTR, HWND, DLGPROC, LPARAM); | 3855 HWND CreateDialogParamA(HINSTANCE, LPCSTR, HWND, DLGPROC, LPARAM); 3763 HWND CreateDialogParamW(HINSTANCE, LPCWSTR, HWND, DLGPROC, LPARAM); | 3856 HWND CreateDialogParamW(HINSTANCE, LPCWSTR, HWND, DLGPROC, LPARAM); 3764 HWND CreateDialogIndirectParamA(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC, LPARAM | 3857 HWND CreateDialogIndirectParamA(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC 3765 HWND CreateDialogIndirectParamW(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC, LPARAM | 3858 HWND CreateDialogIndirectParamW(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC 3766 | 3859 3767 HICON CreateIcon(HINSTANCE, int, int, BYTE, BYTE, CPtr!(BYTE), BYTE*); | 3860 HICON CreateIcon(HINSTANCE, int, int, BYTE, BYTE, const(BYTE)*, BYTE*); 3768 HICON CreateIconFromResource(PBYTE, DWORD, BOOL, DWORD); | 3861 HICON CreateIconFromResource(PBYTE, DWORD, BOOL, DWORD); 3769 HICON CreateIconFromResourceEx(PBYTE, DWORD, BOOL, DWORD, int, int, UINT); | 3862 HICON CreateIconFromResourceEx(PBYTE, DWORD, BOOL, DWORD, int, int, UINT 3770 HICON CreateIconIndirect(PICONINFO); | 3863 HICON CreateIconIndirect(PICONINFO); 3771 HWND CreateMDIWindowA(LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HINSTANCE | 3864 HWND CreateMDIWindowA(LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, H 3772 HWND CreateMDIWindowW(LPCWSTR, LPCWSTR, DWORD, int, int, int, int, HWND, HINSTAN | 3865 HWND CreateMDIWindowW(LPCWSTR, LPCWSTR, DWORD, int, int, int, int, HWND, 3773 HMENU CreateMenu(); | 3866 HMENU CreateMenu(); 3774 HMENU CreatePopupMenu(); | 3867 HMENU CreatePopupMenu(); 3775 | 3868 3776 HWND CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HME | 3869 HWND CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, H 3777 HWND CreateWindowExW(DWORD, LPCWSTR, LPCWSTR, DWORD, int, int, int, int, HWND, H | 3870 HWND CreateWindowExW(DWORD, LPCWSTR, LPCWSTR, DWORD, int, int, int, int, 3778 | 3871 3779 HWINSTA CreateWindowStationA(LPSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES); | 3872 HWINSTA CreateWindowStationA(LPSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES) 3780 HWINSTA CreateWindowStationW(LPWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES); | 3873 HWINSTA CreateWindowStationW(LPWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES 3781 LRESULT DefDlgProcA(HWND, UINT, WPARAM, LPARAM); | 3874 LRESULT DefDlgProcA(HWND, UINT, WPARAM, LPARAM); 3782 LRESULT DefDlgProcW(HWND, UINT, WPARAM, LPARAM); | 3875 LRESULT DefDlgProcW(HWND, UINT, WPARAM, LPARAM); 3783 HDWP DeferWindowPos(HDWP, HWND, HWND, int, int, int, int, UINT); | 3876 HDWP DeferWindowPos(HDWP, HWND, HWND, int, int, int, int, UINT); 3784 LRESULT DefFrameProcA(HWND, HWND, UINT, WPARAM, LPARAM); | 3877 LRESULT DefFrameProcA(HWND, HWND, UINT, WPARAM, LPARAM); 3785 LRESULT DefFrameProcW(HWND, HWND, UINT, WPARAM, LPARAM); | 3878 LRESULT DefFrameProcW(HWND, HWND, UINT, WPARAM, LPARAM); 3786 | 3879 3787 LRESULT DefMDIChildProcA(HWND, UINT, WPARAM, LPARAM); | 3880 LRESULT DefMDIChildProcA(HWND, UINT, WPARAM, LPARAM); 3788 LRESULT DefMDIChildProcW(HWND, UINT, WPARAM, LPARAM); | 3881 LRESULT DefMDIChildProcW(HWND, UINT, WPARAM, LPARAM); 3789 LRESULT DefWindowProcA(HWND, UINT, WPARAM, LPARAM); | 3882 LRESULT DefWindowProcA(HWND, UINT, WPARAM, LPARAM); 3790 LRESULT DefWindowProcW(HWND, UINT, WPARAM, LPARAM); | 3883 LRESULT DefWindowProcW(HWND, UINT, WPARAM, LPARAM); 3791 BOOL DeleteMenu(HMENU, UINT, UINT); | 3884 BOOL DeleteMenu(HMENU, UINT, UINT); 3792 BOOL DeregisterShellHookWindow(HWND); | 3885 BOOL DeregisterShellHookWindow(HWND); 3793 BOOL DestroyAcceleratorTable(HACCEL); | 3886 BOOL DestroyAcceleratorTable(HACCEL); 3794 BOOL DestroyCaret(); | 3887 BOOL DestroyCaret(); 3795 BOOL DestroyCursor(HCURSOR); | 3888 BOOL DestroyCursor(HCURSOR); 3796 BOOL DestroyIcon(HICON); | 3889 BOOL DestroyIcon(HICON); 3797 BOOL DestroyMenu(HMENU); | 3890 BOOL DestroyMenu(HMENU); 3798 BOOL DestroyWindow(HWND); | 3891 BOOL DestroyWindow(HWND); 3799 | 3892 3800 int DialogBoxParamA(HINSTANCE, LPCSTR, HWND, DLGPROC, LPARAM); | 3893 INT_PTR DialogBoxParamA(HINSTANCE, LPCSTR, HWND, DLGPROC, LPARAM); 3801 int DialogBoxParamW(HINSTANCE, LPCWSTR, HWND, DLGPROC, LPARAM); | 3894 INT_PTR DialogBoxParamW(HINSTANCE, LPCWSTR, HWND, DLGPROC, LPARAM); 3802 int DialogBoxIndirectParamA(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC, LPARAM); | 3895 INT_PTR DialogBoxIndirectParamA(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC 3803 int DialogBoxIndirectParamW(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC, LPARAM); | 3896 INT_PTR DialogBoxIndirectParamW(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC 3804 3897 3805 } // extern (Windows) 3898 } // extern (Windows) 3806 3899 3807 HCURSOR CopyCursor(HCURSOR c) | 3900 HCURSOR CopyCursor()(HCURSOR c) { 3808 { < 3809 return cast(HCURSOR)CopyIcon(cast(HICON)c); 3901 return cast(HCURSOR)CopyIcon(cast(HICON)c); 3810 } 3902 } 3811 3903 3812 HWND CreateDialogA(HINSTANCE h, LPCSTR n, HWND w, DLGPROC f) | 3904 HWND CreateDialogA()(HINSTANCE h, LPCSTR n, HWND w, DLGPROC f) { 3813 { < 3814 return CreateDialogParamA(h, n, w, f, 0); 3905 return CreateDialogParamA(h, n, w, f, 0); 3815 } 3906 } 3816 3907 3817 HWND CreateDialogW(HINSTANCE h, LPCWSTR n, HWND w, DLGPROC f) | 3908 HWND CreateDialogW()(HINSTANCE h, LPCWSTR n, HWND w, DLGPROC f) { 3818 { < 3819 return CreateDialogParamW(h, n, w, f, 0); 3909 return CreateDialogParamW(h, n, w, f, 0); 3820 } 3910 } 3821 3911 3822 HWND CreateDialogIndirectA(HINSTANCE h, LPCDLGTEMPLATE t, HWND w , DLGPROC f) | 3912 HWND CreateDialogIndirectA()(HINSTANCE h, LPCDLGTEMPLATE t, HWND w, DLGPROC f) { 3823 { < 3824 return CreateDialogIndirectParamA(h, t, w, f, 0); 3913 return CreateDialogIndirectParamA(h, t, w, f, 0); 3825 } 3914 } 3826 3915 3827 HWND CreateDialogIndirectW(HINSTANCE h, LPCDLGTEMPLATE t, HWND w , DLGPROC f) | 3916 HWND CreateDialogIndirectW()(HINSTANCE h, LPCDLGTEMPLATE t, HWND w, DLGPROC f) { 3828 { < 3829 return CreateDialogIndirectParamW(h, t, w, f, 0); 3917 return CreateDialogIndirectParamW(h, t, w, f, 0); 3830 } 3918 } 3831 3919 3832 < 3833 HWND CreateWindowA(LPCSTR a, LPCSTR b, DWORD c, int d, int e, int f, int g, HWND | 3920 HWND CreateWindowA()(LPCSTR a, LPCSTR b, DWORD c, int d, int e, int f, int g, HW 3834 { < 3835 return CreateWindowExA(0, a, b, c, d, e, f, g, h, i, j, k); 3921 return CreateWindowExA(0, a, b, c, d, e, f, g, h, i, j, k); 3836 } 3922 } 3837 3923 3838 HWND CreateWindowW(LPCWSTR a, LPCWSTR b, DWORD c, int d, int e, int f, int g, HW | 3924 HWND CreateWindowW()(LPCWSTR a, LPCWSTR b, DWORD c, int d, int e, int f, int g, 3839 { < 3840 return CreateWindowExW(0, a, b, c, d, e, f, g, h, i, j, k); 3925 return CreateWindowExW(0, a, b, c, d, e, f, g, h, i, j, k); 3841 } 3926 } 3842 3927 3843 int DialogBoxA(HINSTANCE i, LPCSTR t, HWND p, DLGPROC f) | 3928 INT_PTR DialogBoxA()(HINSTANCE i, LPCSTR t, HWND p, DLGPROC f) { 3844 { < 3845 return DialogBoxParamA(i, t, p, f, 0); 3929 return DialogBoxParamA(i, t, p, f, 0); 3846 } 3930 } 3847 3931 3848 int DialogBoxW(HINSTANCE i, LPCWSTR t, HWND p, DLGPROC f) | 3932 INT_PTR DialogBoxW()(HINSTANCE i, LPCWSTR t, HWND p, DLGPROC f) { 3849 { < 3850 return DialogBoxParamW(i, t, p, f, 0); 3933 return DialogBoxParamW(i, t, p, f, 0); 3851 } 3934 } 3852 3935 3853 int DialogBoxIndirectA(HINSTANCE i, LPCDLGTEMPLATE t, HWND p, DLGPROC f) | 3936 INT_PTR DialogBoxIndirectA()(HINSTANCE i, LPCDLGTEMPLATE t, HWND p, DLGPROC f) { 3854 { < 3855 return DialogBoxIndirectParamA(i, t, p, f, 0); 3937 return DialogBoxIndirectParamA(i, t, p, f, 0); 3856 } 3938 } 3857 3939 3858 int DialogBoxIndirectW(HINSTANCE i, LPCDLGTEMPLATE t, HWND p, DLGPROC f) | 3940 INT_PTR DialogBoxIndirectW()(HINSTANCE i, LPCDLGTEMPLATE t, HWND p, DLGPROC f) { 3859 { < 3860 return DialogBoxIndirectParamW(i, t, p, f, 0); 3941 return DialogBoxIndirectParamW(i, t, p, f, 0); 3861 } 3942 } 3862 3943 3863 BOOL ExitWindows(UINT r, DWORD c) | 3944 BOOL ExitWindows()(UINT r, DWORD c) { 3864 { < 3865 return ExitWindowsEx(EWX_LOGOFF, 0); 3945 return ExitWindowsEx(EWX_LOGOFF, 0); 3866 } 3946 } 3867 alias GetWindow GetNextWindow; 3947 alias GetWindow GetNextWindow; 3868 3948 3869 extern (Windows): 3949 extern (Windows): 3870 LONG DispatchMessageA( CPtr!(MSG)); | 3950 LONG DispatchMessageA(const(MSG)*); 3871 LONG DispatchMessageW( CPtr!(MSG)); | 3951 LONG DispatchMessageW(const(MSG)*); 3872 int DlgDirListA(HWND, LPSTR, int, int, UINT); 3952 int DlgDirListA(HWND, LPSTR, int, int, UINT); 3873 int DlgDirListW(HWND, LPWSTR, int, int, UINT); 3953 int DlgDirListW(HWND, LPWSTR, int, int, UINT); 3874 int DlgDirListComboBoxA(HWND, LPSTR, int, int, UINT); 3954 int DlgDirListComboBoxA(HWND, LPSTR, int, int, UINT); 3875 int DlgDirListComboBoxW(HWND, LPWSTR, int, int, UINT); 3955 int DlgDirListComboBoxW(HWND, LPWSTR, int, int, UINT); 3876 BOOL DlgDirSelectComboBoxExA(HWND, LPSTR, int, int); 3956 BOOL DlgDirSelectComboBoxExA(HWND, LPSTR, int, int); 3877 BOOL DlgDirSelectComboBoxExW(HWND, LPWSTR, int, int); 3957 BOOL DlgDirSelectComboBoxExW(HWND, LPWSTR, int, int); 3878 BOOL DlgDirSelectExA(HWND, LPSTR, int, int); 3958 BOOL DlgDirSelectExA(HWND, LPSTR, int, int); ................................................................................................................................................................................ 3894 int DrawTextExA(HDC, LPSTR, int, LPRECT, UINT, LPDRAWTEXTPARAMS); 3974 int DrawTextExA(HDC, LPSTR, int, LPRECT, UINT, LPDRAWTEXTPARAMS); 3895 int DrawTextExW(HDC, LPWSTR, int, LPRECT, UINT, LPDRAWTEXTPARAMS); 3975 int DrawTextExW(HDC, LPWSTR, int, LPRECT, UINT, LPDRAWTEXTPARAMS); 3896 BOOL EmptyClipboard(); 3976 BOOL EmptyClipboard(); 3897 BOOL EnableMenuItem(HMENU, UINT, UINT); 3977 BOOL EnableMenuItem(HMENU, UINT, UINT); 3898 BOOL EnableScrollBar(HWND, UINT, UINT); 3978 BOOL EnableScrollBar(HWND, UINT, UINT); 3899 BOOL EnableWindow(HWND, BOOL); 3979 BOOL EnableWindow(HWND, BOOL); 3900 BOOL EndDeferWindowPos(HDWP); 3980 BOOL EndDeferWindowPos(HDWP); 3901 BOOL EndDialog(HWND, int); | 3981 BOOL EndDialog(HWND, INT_PTR); 3902 BOOL EndMenu(); 3982 BOOL EndMenu(); 3903 BOOL EndPaint(HWND, CPtr!(PAINTSTRUCT)); | 3983 BOOL EndPaint(HWND, const(PAINTSTRUCT)*); 3904 BOOL EnumChildWindows(HWND, ENUMWINDOWSPROC, LPARAM); 3984 BOOL EnumChildWindows(HWND, ENUMWINDOWSPROC, LPARAM); 3905 UINT EnumClipboardFormats(UINT); 3985 UINT EnumClipboardFormats(UINT); 3906 BOOL EnumDesktopsA(HWINSTA, DESKTOPENUMPROCA, LPARAM); 3986 BOOL EnumDesktopsA(HWINSTA, DESKTOPENUMPROCA, LPARAM); 3907 BOOL EnumDesktopsW(HWINSTA, DESKTOPENUMPROCW, LPARAM); 3987 BOOL EnumDesktopsW(HWINSTA, DESKTOPENUMPROCW, LPARAM); 3908 BOOL EnumDesktopWindows(HDESK, ENUMWINDOWSPROC, LPARAM); 3988 BOOL EnumDesktopWindows(HDESK, ENUMWINDOWSPROC, LPARAM); 3909 BOOL EnumDisplaySettingsA(LPCSTR, DWORD, PDEVMODEA); 3989 BOOL EnumDisplaySettingsA(LPCSTR, DWORD, PDEVMODEA); 3910 BOOL EnumDisplaySettingsW(LPCWSTR, DWORD, PDEVMODEW); 3990 BOOL EnumDisplaySettingsW(LPCWSTR, DWORD, PDEVMODEW); ................................................................................................................................................................................ 4057 UINT GetWindowModuleFileNameW(HWND, LPWSTR, UINT); 4137 UINT GetWindowModuleFileNameW(HWND, LPWSTR, UINT); 4058 BOOL GrayStringA(HDC, HBRUSH, GRAYSTRINGPROC, LPARAM, int, int, int, int, int); 4138 BOOL GrayStringA(HDC, HBRUSH, GRAYSTRINGPROC, LPARAM, int, int, int, int, int); 4059 BOOL GrayStringW(HDC, HBRUSH, GRAYSTRINGPROC, LPARAM, int, int, int, int, int); 4139 BOOL GrayStringW(HDC, HBRUSH, GRAYSTRINGPROC, LPARAM, int, int, int, int, int); 4060 BOOL HideCaret(HWND); 4140 BOOL HideCaret(HWND); 4061 BOOL HiliteMenuItem(HWND, HMENU, UINT, UINT); 4141 BOOL HiliteMenuItem(HWND, HMENU, UINT, UINT); 4062 BOOL InflateRect(LPRECT, int, int); 4142 BOOL InflateRect(LPRECT, int, int); 4063 BOOL InSendMessage(); 4143 BOOL InSendMessage(); 4064 BOOL InsertMenuA(HMENU, UINT, UINT, UINT, LPCSTR); | 4144 BOOL InsertMenuA(HMENU, UINT, UINT, UINT_PTR, LPCSTR); 4065 BOOL InsertMenuW(HMENU, UINT, UINT, UINT, LPCWSTR); | 4145 BOOL InsertMenuW(HMENU, UINT, UINT, UINT_PTR, LPCWSTR); 4066 BOOL InsertMenuItemA(HMENU, UINT, BOOL, LPCMENUITEMINFOA); 4146 BOOL InsertMenuItemA(HMENU, UINT, BOOL, LPCMENUITEMINFOA); 4067 BOOL InsertMenuItemW(HMENU, UINT, BOOL, LPCMENUITEMINFOW); 4147 BOOL InsertMenuItemW(HMENU, UINT, BOOL, LPCMENUITEMINFOW); 4068 INT InternalGetWindowText(HWND, LPWSTR, INT); 4148 INT InternalGetWindowText(HWND, LPWSTR, INT); 4069 BOOL IntersectRect(LPRECT, LPCRECT, LPCRECT); 4149 BOOL IntersectRect(LPRECT, LPCRECT, LPCRECT); 4070 BOOL InvalidateRect(HWND, LPCRECT, BOOL); 4150 BOOL InvalidateRect(HWND, LPCRECT, BOOL); 4071 BOOL InvalidateRgn(HWND, HRGN, BOOL); 4151 BOOL InvalidateRgn(HWND, HRGN, BOOL); 4072 BOOL InvertRect(HDC, LPCRECT); 4152 BOOL InvertRect(HDC, LPCRECT); ................................................................................................................................................................................ 4088 BOOL IsRectEmpty(LPCRECT); 4168 BOOL IsRectEmpty(LPCRECT); 4089 BOOL IsWindow(HWND); 4169 BOOL IsWindow(HWND); 4090 BOOL IsWindowEnabled(HWND); 4170 BOOL IsWindowEnabled(HWND); 4091 BOOL IsWindowUnicode(HWND); 4171 BOOL IsWindowUnicode(HWND); 4092 BOOL IsWindowVisible(HWND); 4172 BOOL IsWindowVisible(HWND); 4093 BOOL IsZoomed(HWND); 4173 BOOL IsZoomed(HWND); 4094 void keybd_event(BYTE, BYTE, DWORD, DWORD); 4174 void keybd_event(BYTE, BYTE, DWORD, DWORD); 4095 BOOL KillTimer(HWND, UINT); | 4175 BOOL KillTimer(HWND, UINT_PTR); 4096 HACCEL LoadAcceleratorsA(HINSTANCE, LPCSTR); 4176 HACCEL LoadAcceleratorsA(HINSTANCE, LPCSTR); 4097 HACCEL LoadAcceleratorsW(HINSTANCE, LPCWSTR); 4177 HACCEL LoadAcceleratorsW(HINSTANCE, LPCWSTR); 4098 HBITMAP LoadBitmapA(HINSTANCE, LPCSTR); 4178 HBITMAP LoadBitmapA(HINSTANCE, LPCSTR); 4099 HBITMAP LoadBitmapW(HINSTANCE, LPCWSTR); 4179 HBITMAP LoadBitmapW(HINSTANCE, LPCWSTR); 4100 HCURSOR LoadCursorA(HINSTANCE, LPCSTR); 4180 HCURSOR LoadCursorA(HINSTANCE, LPCSTR); 4101 HCURSOR LoadCursorFromFileA(LPCSTR); 4181 HCURSOR LoadCursorFromFileA(LPCSTR); 4102 HCURSOR LoadCursorFromFileW(LPCWSTR); 4182 HCURSOR LoadCursorFromFileW(LPCWSTR); ................................................................................................................................................................................ 4104 HICON LoadIconA(HINSTANCE, LPCSTR); 4184 HICON LoadIconA(HINSTANCE, LPCSTR); 4105 HICON LoadIconW(HINSTANCE, LPCWSTR); 4185 HICON LoadIconW(HINSTANCE, LPCWSTR); 4106 HANDLE LoadImageA(HINSTANCE, LPCSTR, UINT, int, int, UINT); 4186 HANDLE LoadImageA(HINSTANCE, LPCSTR, UINT, int, int, UINT); 4107 HANDLE LoadImageW(HINSTANCE, LPCWSTR, UINT, int, int, UINT); 4187 HANDLE LoadImageW(HINSTANCE, LPCWSTR, UINT, int, int, UINT); 4108 HKL LoadKeyboardLayoutA(LPCSTR, UINT); 4188 HKL LoadKeyboardLayoutA(LPCSTR, UINT); 4109 HKL LoadKeyboardLayoutW(LPCWSTR, UINT); 4189 HKL LoadKeyboardLayoutW(LPCWSTR, UINT); 4110 HMENU LoadMenuA(HINSTANCE, LPCSTR); 4190 HMENU LoadMenuA(HINSTANCE, LPCSTR); 4111 HMENU LoadMenuIndirectA( CPtr!(MENUTEMPLATE)); | 4191 HMENU LoadMenuIndirectA(const(MENUTEMPLATE)*); 4112 HMENU LoadMenuIndirectW( CPtr!(MENUTEMPLATE)); | 4192 HMENU LoadMenuIndirectW(const(MENUTEMPLATE)*); 4113 HMENU LoadMenuW(HINSTANCE, LPCWSTR); 4193 HMENU LoadMenuW(HINSTANCE, LPCWSTR); 4114 int LoadStringA(HINSTANCE, UINT, LPSTR, int); 4194 int LoadStringA(HINSTANCE, UINT, LPSTR, int); 4115 int LoadStringW(HINSTANCE, UINT, LPWSTR, int); 4195 int LoadStringW(HINSTANCE, UINT, LPWSTR, int); 4116 BOOL LockWindowUpdate(HWND); 4196 BOOL LockWindowUpdate(HWND); 4117 int LookupIconIdFromDirectory(PBYTE, BOOL); 4197 int LookupIconIdFromDirectory(PBYTE, BOOL); 4118 int LookupIconIdFromDirectoryEx(PBYTE, BOOL, int, int, UINT); 4198 int LookupIconIdFromDirectoryEx(PBYTE, BOOL, int, int, UINT); 4119 BOOL MapDialogRect(HWND, LPRECT); 4199 BOOL MapDialogRect(HWND, LPRECT); ................................................................................................................................................................................ 4124 int MapWindowPoints(HWND, HWND, LPPOINT, UINT); 4204 int MapWindowPoints(HWND, HWND, LPPOINT, UINT); 4125 int MenuItemFromPoint(HWND, HMENU, POINT); 4205 int MenuItemFromPoint(HWND, HMENU, POINT); 4126 BOOL MessageBeep(UINT); 4206 BOOL MessageBeep(UINT); 4127 int MessageBoxA(HWND, LPCSTR, LPCSTR, UINT); 4207 int MessageBoxA(HWND, LPCSTR, LPCSTR, UINT); 4128 int MessageBoxW(HWND, LPCWSTR, LPCWSTR, UINT); 4208 int MessageBoxW(HWND, LPCWSTR, LPCWSTR, UINT); 4129 int MessageBoxExA(HWND, LPCSTR, LPCSTR, UINT, WORD); 4209 int MessageBoxExA(HWND, LPCSTR, LPCSTR, UINT, WORD); 4130 int MessageBoxExW(HWND, LPCWSTR, LPCWSTR, UINT, WORD); 4210 int MessageBoxExW(HWND, LPCWSTR, LPCWSTR, UINT, WORD); 4131 int MessageBoxIndirectA(CPtr!(MSGBOXPARAMSA)); | 4211 int MessageBoxIndirectA(const(MSGBOXPARAMSA)*); 4132 int MessageBoxIndirectW(CPtr!(MSGBOXPARAMSW)); | 4212 int MessageBoxIndirectW(const(MSGBOXPARAMSW)*); 4133 BOOL ModifyMenuA(HMENU, UINT, UINT, UINT, LPCSTR); | 4213 BOOL ModifyMenuA(HMENU, UINT, UINT, UINT_PTR, LPCSTR); 4134 BOOL ModifyMenuW(HMENU, UINT, UINT, UINT, LPCWSTR); | 4214 BOOL ModifyMenuW(HMENU, UINT, UINT, UINT_PTR, LPCWSTR); 4135 void mouse_event(DWORD, DWORD, DWORD, DWORD, ULONG_PTR); 4215 void mouse_event(DWORD, DWORD, DWORD, DWORD, ULONG_PTR); 4136 BOOL MoveWindow(HWND, int, int, int, int, BOOL); 4216 BOOL MoveWindow(HWND, int, int, int, int, BOOL); 4137 DWORD MsgWaitForMultipleObjects(DWORD, CPtr!(HANDLE), BOOL, DWORD, DWORD); | 4217 DWORD MsgWaitForMultipleObjects(DWORD, const(HANDLE)*, BOOL, DWORD, DWORD); 4138 DWORD MsgWaitForMultipleObjectsEx(DWORD, CPtr!(HANDLE), DWORD, DWORD, DWORD); | 4218 DWORD MsgWaitForMultipleObjectsEx(DWORD, const(HANDLE)*, DWORD, DWORD, DWORD); 4139 DWORD OemKeyScan(WORD); 4219 DWORD OemKeyScan(WORD); 4140 BOOL OemToCharA(LPCSTR, LPSTR); 4220 BOOL OemToCharA(LPCSTR, LPSTR); 4141 BOOL OemToCharBuffA(LPCSTR, LPSTR, DWORD); 4221 BOOL OemToCharBuffA(LPCSTR, LPSTR, DWORD); 4142 BOOL OemToCharBuffW(LPCSTR, LPWSTR, DWORD); 4222 BOOL OemToCharBuffW(LPCSTR, LPWSTR, DWORD); 4143 BOOL OemToCharW(LPCSTR, LPWSTR); 4223 BOOL OemToCharW(LPCSTR, LPWSTR); 4144 BOOL OffsetRect(LPRECT, int, int); 4224 BOOL OffsetRect(LPRECT, int, int); 4145 BOOL OpenClipboard(HWND); 4225 BOOL OpenClipboard(HWND); ................................................................................................................................................................................ 4158 BOOL PostThreadMessageA(DWORD, UINT, WPARAM, LPARAM); 4238 BOOL PostThreadMessageA(DWORD, UINT, WPARAM, LPARAM); 4159 BOOL PostThreadMessageW(DWORD, UINT, WPARAM, LPARAM); 4239 BOOL PostThreadMessageW(DWORD, UINT, WPARAM, LPARAM); 4160 BOOL PtInRect(LPCRECT, POINT); 4240 BOOL PtInRect(LPCRECT, POINT); 4161 HWND RealChildWindowFromPoint(HWND, POINT); 4241 HWND RealChildWindowFromPoint(HWND, POINT); 4162 UINT RealGetWindowClassA(HWND, LPSTR, UINT); 4242 UINT RealGetWindowClassA(HWND, LPSTR, UINT); 4163 UINT RealGetWindowClassW(HWND, LPWSTR, UINT); 4243 UINT RealGetWindowClassW(HWND, LPWSTR, UINT); 4164 BOOL RedrawWindow(HWND, LPCRECT, HRGN, UINT); 4244 BOOL RedrawWindow(HWND, LPCRECT, HRGN, UINT); 4165 ATOM RegisterClassA(CPtr!(WNDCLASSA)); | 4245 ATOM RegisterClassA(const(WNDCLASSA)*); 4166 ATOM RegisterClassW(CPtr!(WNDCLASSW)); | 4246 ATOM RegisterClassW(const(WNDCLASSW)*); 4167 ATOM RegisterClassExA(CPtr!(WNDCLASSEXA)); | 4247 ATOM RegisterClassExA(const(WNDCLASSEXA)*); 4168 ATOM RegisterClassExW(CPtr!(WNDCLASSEXW)); | 4248 ATOM RegisterClassExW(const(WNDCLASSEXW)*); 4169 UINT RegisterClipboardFormatA(LPCSTR); 4249 UINT RegisterClipboardFormatA(LPCSTR); 4170 UINT RegisterClipboardFormatW(LPCWSTR); 4250 UINT RegisterClipboardFormatW(LPCWSTR); 4171 BOOL RegisterHotKey(HWND, int, UINT, UINT); 4251 BOOL RegisterHotKey(HWND, int, UINT, UINT); 4172 UINT RegisterWindowMessageA(LPCSTR); 4252 UINT RegisterWindowMessageA(LPCSTR); 4173 UINT RegisterWindowMessageW(LPCWSTR); 4253 UINT RegisterWindowMessageW(LPCWSTR); 4174 BOOL ReleaseCapture(); 4254 BOOL ReleaseCapture(); 4175 int ReleaseDC(HWND, HDC); 4255 int ReleaseDC(HWND, HDC); ................................................................................................................................................................................ 4212 BOOL SetKeyboardState(PBYTE); 4292 BOOL SetKeyboardState(PBYTE); 4213 BOOL SetMenu(HWND, HMENU); 4293 BOOL SetMenu(HWND, HMENU); 4214 BOOL SetMenuContextHelpId(HMENU, DWORD); 4294 BOOL SetMenuContextHelpId(HMENU, DWORD); 4215 BOOL SetMenuDefaultItem(HMENU, UINT, UINT); 4295 BOOL SetMenuDefaultItem(HMENU, UINT, UINT); 4216 BOOL SetMenuInfo(HMENU, LPCMENUINFO); 4296 BOOL SetMenuInfo(HMENU, LPCMENUINFO); 4217 BOOL SetMenuItemBitmaps(HMENU, UINT, UINT, HBITMAP, HBITMAP); 4297 BOOL SetMenuItemBitmaps(HMENU, UINT, UINT, HBITMAP, HBITMAP); 4218 BOOL SetMenuItemInfoA(HMENU, UINT, BOOL, LPCMENUITEMINFOA); 4298 BOOL SetMenuItemInfoA(HMENU, UINT, BOOL, LPCMENUITEMINFOA); 4219 BOOL SetMenuItemInfoW( HMENU, UINT, BOOL, LPCMENUITEMINFOW); | 4299 BOOL SetMenuItemInfoW(HMENU, UINT, BOOL, LPCMENUITEMINFOW); 4220 LPARAM SetMessageExtraInfo(LPARAM); 4300 LPARAM SetMessageExtraInfo(LPARAM); 4221 BOOL SetMessageQueue(int); 4301 BOOL SetMessageQueue(int); 4222 HWND SetParent(HWND, HWND); 4302 HWND SetParent(HWND, HWND); 4223 BOOL SetProcessWindowStation(HWINSTA); 4303 BOOL SetProcessWindowStation(HWINSTA); 4224 BOOL SetPropA(HWND, LPCSTR, HANDLE); 4304 BOOL SetPropA(HWND, LPCSTR, HANDLE); 4225 BOOL SetPropW(HWND, LPCWSTR, HANDLE); 4305 BOOL SetPropW(HWND, LPCWSTR, HANDLE); 4226 BOOL SetRect(LPRECT, int, int, int, int); 4306 BOOL SetRect(LPRECT, int, int, int, int); 4227 BOOL SetRectEmpty(LPRECT); 4307 BOOL SetRectEmpty(LPRECT); 4228 int SetScrollInfo(HWND, int, LPCSCROLLINFO, BOOL); 4308 int SetScrollInfo(HWND, int, LPCSCROLLINFO, BOOL); 4229 int SetScrollPos(HWND, int, int, BOOL); 4309 int SetScrollPos(HWND, int, int, BOOL); 4230 BOOL SetScrollRange(HWND, int, int, int, BOOL); 4310 BOOL SetScrollRange(HWND, int, int, int, BOOL); 4231 BOOL SetSysColors(int, CPtr!(INT) , CPtr!(COLORREF) ); | 4311 BOOL SetSysColors(int, const(INT)*, const(COLORREF)*); 4232 BOOL SetSystemCursor(HCURSOR, DWORD); 4312 BOOL SetSystemCursor(HCURSOR, DWORD); 4233 BOOL SetThreadDesktop(HDESK); 4313 BOOL SetThreadDesktop(HDESK); 4234 UINT SetTimer(HWND, UINT, UINT, TIMERPROC); | 4314 UINT_PTR SetTimer(HWND, UINT_PTR, UINT, TIMERPROC); 4235 BOOL SetUserObjectInformationA(HANDLE, int, PVOID, DWORD); 4315 BOOL SetUserObjectInformationA(HANDLE, int, PVOID, DWORD); 4236 BOOL SetUserObjectInformationW(HANDLE, int, PVOID, DWORD); 4316 BOOL SetUserObjectInformationW(HANDLE, int, PVOID, DWORD); 4237 BOOL SetUserObjectSecurity(HANDLE, PSECURITY_INFORMATION, PSECURITY_DESCRIPTOR); 4317 BOOL SetUserObjectSecurity(HANDLE, PSECURITY_INFORMATION, PSECURITY_DESCRIPTOR); 4238 BOOL SetWindowContextHelpId(HWND, DWORD); 4318 BOOL SetWindowContextHelpId(HWND, DWORD); 4239 LONG SetWindowLongA(HWND, int, LONG); 4319 LONG SetWindowLongA(HWND, int, LONG); 4240 LONG SetWindowLongW(HWND, int, LONG); 4320 LONG SetWindowLongW(HWND, int, LONG); 4241 BOOL SetWindowPlacement(HWND hWnd, CPtr!(WINDOWPLACEMENT)); | 4321 BOOL SetWindowPlacement(HWND hWnd, const(WINDOWPLACEMENT)*); 4242 BOOL SetWindowPos(HWND, HWND, int, int, int, int, UINT); 4322 BOOL SetWindowPos(HWND, HWND, int, int, int, int, UINT); 4243 int SetWindowRgn(HWND, HRGN, BOOL); 4323 int SetWindowRgn(HWND, HRGN, BOOL); 4244 HHOOK SetWindowsHookA(int, HOOKPROC); 4324 HHOOK SetWindowsHookA(int, HOOKPROC); 4245 HHOOK SetWindowsHookW(int, HOOKPROC); 4325 HHOOK SetWindowsHookW(int, HOOKPROC); 4246 HHOOK SetWindowsHookExA(int, HOOKPROC, HINSTANCE, DWORD); 4326 HHOOK SetWindowsHookExA(int, HOOKPROC, HINSTANCE, DWORD); 4247 HHOOK SetWindowsHookExW(int, HOOKPROC, HINSTANCE, DWORD); 4327 HHOOK SetWindowsHookExW(int, HOOKPROC, HINSTANCE, DWORD); 4248 BOOL SetWindowTextA(HWND, LPCSTR); 4328 BOOL SetWindowTextA(HWND, LPCSTR); ................................................................................................................................................................................ 4257 BOOL SubtractRect(LPRECT, LPCRECT, LPCRECT); 4337 BOOL SubtractRect(LPRECT, LPCRECT, LPCRECT); 4258 BOOL SwapMouseButton(BOOL); 4338 BOOL SwapMouseButton(BOOL); 4259 BOOL SwitchDesktop(HDESK); 4339 BOOL SwitchDesktop(HDESK); 4260 BOOL SystemParametersInfoA(UINT, UINT, PVOID, UINT); 4340 BOOL SystemParametersInfoA(UINT, UINT, PVOID, UINT); 4261 BOOL SystemParametersInfoW(UINT, UINT, PVOID, UINT); 4341 BOOL SystemParametersInfoW(UINT, UINT, PVOID, UINT); 4262 LONG TabbedTextOutA(HDC, int, int, LPCSTR, int, int, LPINT, int); 4342 LONG TabbedTextOutA(HDC, int, int, LPCSTR, int, int, LPINT, int); 4263 LONG TabbedTextOutW(HDC, int, int, LPCWSTR, int, int, LPINT, int); 4343 LONG TabbedTextOutW(HDC, int, int, LPCWSTR, int, int, LPINT, int); 4264 WORD TileWindows(HWND, UINT, LPCRECT, UINT, CPtr!(HWND) ); | 4344 WORD TileWindows(HWND, UINT, LPCRECT, UINT, const(HWND)*); 4265 int ToAscii(UINT, UINT, PBYTE, LPWORD, UINT); 4345 int ToAscii(UINT, UINT, PBYTE, LPWORD, UINT); 4266 int ToAsciiEx(UINT, UINT, PBYTE, LPWORD, UINT, HKL); 4346 int ToAsciiEx(UINT, UINT, PBYTE, LPWORD, UINT, HKL); 4267 int ToUnicode(UINT, UINT, PBYTE, LPWSTR, int, UINT); 4347 int ToUnicode(UINT, UINT, PBYTE, LPWSTR, int, UINT); 4268 int ToUnicodeEx(UINT, UINT, PBYTE, LPWSTR, int, UINT, HKL); 4348 int ToUnicodeEx(UINT, UINT, PBYTE, LPWSTR, int, UINT, HKL); 4269 BOOL TrackMouseEvent(LPTRACKMOUSEEVENT); 4349 BOOL TrackMouseEvent(LPTRACKMOUSEEVENT); 4270 BOOL TrackPopupMenu(HMENU, UINT, int, int, int, HWND, LPCRECT); 4350 BOOL TrackPopupMenu(HMENU, UINT, int, int, int, HWND, LPCRECT); 4271 BOOL TrackPopupMenuEx(HMENU, UINT, int, int, HWND, LPTPMPARAMS); 4351 BOOL TrackPopupMenuEx(HMENU, UINT, int, int, HWND, LPTPMPARAMS); 4272 int TranslateAcceleratorA(HWND, HACCEL, LPMSG); 4352 int TranslateAcceleratorA(HWND, HACCEL, LPMSG); 4273 int TranslateAcceleratorW(HWND, HACCEL, LPMSG); 4353 int TranslateAcceleratorW(HWND, HACCEL, LPMSG); 4274 BOOL TranslateMDISysAccel(HWND, LPMSG); 4354 BOOL TranslateMDISysAccel(HWND, LPMSG); 4275 BOOL TranslateMessage( CPtr!(MSG)); | 4355 BOOL TranslateMessage(const(MSG)*); 4276 BOOL UnhookWindowsHook(int, HOOKPROC); 4356 BOOL UnhookWindowsHook(int, HOOKPROC); 4277 BOOL UnhookWindowsHookEx(HHOOK); 4357 BOOL UnhookWindowsHookEx(HHOOK); 4278 BOOL UnionRect(LPRECT, LPCRECT, LPCRECT); 4358 BOOL UnionRect(LPRECT, LPCRECT, LPCRECT); 4279 BOOL UnloadKeyboardLayout(HKL); 4359 BOOL UnloadKeyboardLayout(HKL); 4280 BOOL UnregisterClassA(LPCSTR, HINSTANCE); 4360 BOOL UnregisterClassA(LPCSTR, HINSTANCE); 4281 BOOL UnregisterClassW(LPCWSTR, HINSTANCE); 4361 BOOL UnregisterClassW(LPCWSTR, HINSTANCE); 4282 BOOL UnregisterHotKey(HWND, int); 4362 BOOL UnregisterHotKey(HWND, int); ................................................................................................................................................................................ 4298 extern (C) { 4378 extern (C) { 4299 int wsprintfA(LPSTR, LPCSTR, ...); 4379 int wsprintfA(LPSTR, LPCSTR, ...); 4300 int wsprintfW(LPWSTR, LPCWSTR, ...); 4380 int wsprintfW(LPWSTR, LPCWSTR, ...); 4301 } 4381 } 4302 4382 4303 4383 4304 // These shouldn't be necessary for D. 4384 // These shouldn't be necessary for D. 4305 alias char* va_list_; | 4385 alias TypeDef!(char*) va_list_; 4306 int wvsprintfA(LPSTR, LPCSTR, va_list_ arglist); 4386 int wvsprintfA(LPSTR, LPCSTR, va_list_ arglist); 4307 int wvsprintfW(LPWSTR, LPCWSTR, va_list_ arglist); 4387 int wvsprintfW(LPWSTR, LPCWSTR, va_list_ arglist); 4308 4388 4309 4389 4310 static if (_WIN32_WINDOWS == 0x400) { < 4311 // On Win95, there's only one version. < 4312 int BroadcastSystemMessage(DWORD, LPDWORD, UINT, WPARAM, LPARAM); < 4313 } < 4314 static if (_WIN32_WINNT >= 0x400) { < 4315 int BroadcastSystemMessageA(DWORD, LPDWORD, UINT, WPARAM, LPARAM); 4390 int BroadcastSystemMessageA(DWORD, LPDWORD, UINT, WPARAM, LPARAM); 4316 int BroadcastSystemMessageW(DWORD, LPDWORD, UINT, WPARAM, LPARAM); 4391 int BroadcastSystemMessageW(DWORD, LPDWORD, UINT, WPARAM, LPARAM); 4317 } | 4392 4318 static if (_WIN32_WINNT >= 0x501) { | 4393 static if (_WIN32_WINNT >= 0x403) { 4319 int BroadcastSystemMessageExA(DWORD, LPDWORD, UINT, WPARAM, LPARAM, PBSMINFO); | 4394 UINT SendInput(UINT, LPINPUT, int); 4320 int BroadcastSystemMessageExW(DWORD, LPDWORD, UINT, WPARAM, LPARAM, PBSMINFO); < 4321 } 4395 } 4322 4396 4323 static if (_WIN32_WINNT >= 0x403) { | 4397 static if (_WIN32_WINNT >= 0x410) { 4324 UINT SendInput(UINT, LPINPUT, int); < 4325 } < 4326 static if (_WIN32_WINNT >= 0x500) { < 4327 BOOL AnimateWindow(HWND, DWORD, DWORD); < 4328 BOOL EndTask(HWND, BOOL, BOOL); < 4329 DWORD GetGuiResources(HANDLE, DWORD); < 4330 HWND GetShellWindow(); < 4331 BOOL GetProcessDefaultLayout(DWORD*); < 4332 BOOL IsHungAppWindow(HWND); < 4333 BOOL LockWorkStation(); < 4334 HDEVNOTIFY RegisterDeviceNotificationA(HANDLE, LPVOID, DWORD); < 4335 HDEVNOTIFY RegisterDeviceNotificationW(HANDLE, LPVOID, DWORD); < 4336 BOOL SetProcessDefaultLayout(DWORD); < 4337 void SwitchToThisWindow(HWND, BOOL); < 4338 BOOL SetLayeredWindowAttributes(HWND, COLORREF, BYTE, DWORD); < 4339 BOOL UpdateLayeredWindow(HWND, HDC, POINT*, SIZE*, HDC, POINT*, COLORREF, BLENDF < 4340 BOOL UserHandleGrantAccess(HANDLE, HANDLE, BOOL); < 4341 } < 4342 static if (_WIN32_WINNT >= 0x501) { < 4343 UINT GetRawInputBuffer(PRAWINPUT, PUINT, UINT); < 4344 UINT GetRawInputData(HRAWINPUT, UINT, LPVOID, PUINT, UINT); < 4345 UINT GetRawInputDeviceInfoA(HANDLE, UINT, LPVOID, PUINT); < 4346 UINT GetRawInputDeviceInfoW(HANDLE, UINT, LPVOID, PUINT); < 4347 UINT GetRawInputDeviceList(PRAWINPUTDEVICELIST, PUINT, UINT); < 4348 UINT GetRegisteredRawInputDevices(PRAWINPUTDEVICE, PUINT, UINT); < 4349 LRESULT DefRawInputProc(PRAWINPUT*, INT, UINT); < 4350 BOOL RegisterRawInputDevices(PCRAWINPUTDEVICE, UINT, UINT); < 4351 < 4352 BOOL IsGUIThread(BOOL); < 4353 BOOL IsWinEventHookInstalled(DWORD); < 4354 BOOL PrintWindow(HWND, HDC, UINT); < 4355 BOOL GetLayeredWindowAttributes(HWND, COLORREF*, BYTE*, DWORD*); < 4356 } < 4357 static if (WINVER >= 0x410) { < 4358 BOOL EnumDisplayMonitors(HDC, LPCRECT, MONITORENUMPROC, LPARAM); 4398 BOOL EnumDisplayMonitors(HDC, LPCRECT, MONITORENUMPROC, LPARAM); 4359 BOOL GetMonitorInfoA(HMONITOR, LPMONITORINFO); 4399 BOOL GetMonitorInfoA(HMONITOR, LPMONITORINFO); 4360 BOOL GetMonitorInfoA(HMONITOR, LPMONITORINFOEXA); 4400 BOOL GetMonitorInfoA(HMONITOR, LPMONITORINFOEXA); 4361 BOOL GetMonitorInfoW(HMONITOR, LPMONITORINFO); 4401 BOOL GetMonitorInfoW(HMONITOR, LPMONITORINFO); 4362 BOOL GetMonitorInfoW(HMONITOR, LPMONITORINFOEXW); 4402 BOOL GetMonitorInfoW(HMONITOR, LPMONITORINFOEXW); 4363 HMONITOR MonitorFromPoint(POINT, DWORD); 4403 HMONITOR MonitorFromPoint(POINT, DWORD); 4364 HMONITOR MonitorFromRect(LPCRECT, DWORD); 4404 HMONITOR MonitorFromRect(LPCRECT, DWORD); 4365 HMONITOR MonitorFromWindow(HWND, DWORD); 4405 HMONITOR MonitorFromWindow(HWND, DWORD); 4366 } 4406 } 4367 static if (WINVER >= 0x500) { < 4368 BOOL GetGUIThreadInfo(DWORD, LPGUITHREADINFO); < 4369 void NotifyWinEvent(DWORD, HWND, LONG, LONG); < 4370 HWINEVENTHOOK SetWinEventHook(UINT, UINT, HMODULE, WINEVENTPROC, DWORD, DWORD, U < 4371 BOOL UnhookWinEvent(HWINEVENTHOOK); < 4372 BOOL UnregisterDeviceNotification(HANDLE); < 4373 } | 4407 4374 static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { | 4408 static if (_WIN32_WINNT >= 0x500) { > 4409 BOOL AllowSetForegroundWindow(DWORD); > 4410 BOOL AnimateWindow(HWND, DWORD, DWORD); > 4411 BOOL EndTask(HWND, BOOL, BOOL); 4375 BOOL EnumDisplaySettingsExA(LPCSTR, DWORD, LPDEVMODEA, DWORD); | 4412 BOOL EnumDisplaySettingsExA(LPCSTR, DWORD, LPDEVMODEA, DWORD); 4376 BOOL EnumDisplaySettingsExW(LPCWSTR, DWORD, LPDEVMODEW, DWORD); | 4413 BOOL EnumDisplaySettingsExW(LPCWSTR, DWORD, LPDEVMODEW, DWORD); 4377 BOOL FlashWindowEx(PFLASHWINFO); < 4378 DWORD GetClipboardSequenceNumber(); | 4414 DWORD GetClipboardSequenceNumber(); > 4415 DWORD GetGuiResources(HANDLE, DWORD); > 4416 BOOL GetGUIThreadInfo(DWORD, LPGUITHREADINFO); > 4417 int GetMouseMovePointsEx(UINT, LPMOUSEMOVEPOINT, LPMOUSEMOVEPOINT, int, > 4418 BOOL GetProcessDefaultLayout(DWORD*); > 4419 HWND GetShellWindow(); > 4420 BOOL IsHungAppWindow(HWND); 4379 DWORD InSendMessageEx(LPVOID); | 4421 DWORD InSendMessageEx(LPVOID); > 4422 BOOL LockSetForegroundWindow(UINT); > 4423 BOOL LockWorkStation(); > 4424 void NotifyWinEvent(DWORD, HWND, LONG, LONG); > 4425 HDEVNOTIFY RegisterDeviceNotificationA(HANDLE, LPVOID, DWORD); > 4426 HDEVNOTIFY RegisterDeviceNotificationW(HANDLE, LPVOID, DWORD); > 4427 BOOL SetProcessDefaultLayout(DWORD); > 4428 HWINEVENTHOOK SetWinEventHook(UINT, UINT, HMODULE, WINEVENTPROC, DWORD, > 4429 void SwitchToThisWindow(HWND, BOOL); > 4430 BOOL SetLayeredWindowAttributes(HWND, COLORREF, BYTE, DWORD); > 4431 BOOL UpdateLayeredWindow(HWND, HDC, POINT*, SIZE*, HDC, POINT*, COLORREF > 4432 BOOL UserHandleGrantAccess(HANDLE, HANDLE, BOOL); > 4433 BOOL UnhookWinEvent(HWINEVENTHOOK); > 4434 BOOL UnregisterDeviceNotification(HANDLE); 4380 } 4435 } > 4436 4381 static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x490)) { | 4437 static if (_WIN32_WINNT >= 0x501) { 4382 BOOL AllowSetForegroundWindow(DWORD); < 4383 BOOL LockSetForegroundWindow(UINT); | 4438 int BroadcastSystemMessageExA(DWORD, LPDWORD, UINT, WPARAM, LPARAM, PBSM 4384 int GetMouseMovePointsEx(UINT, LPMOUSEMOVEPOINT, LPMOUSEMOVEPOINT, int, DWORD); | 4439 int BroadcastSystemMessageExW(DWORD, LPDWORD, UINT, WPARAM, LPARAM, PBSM > 4440 LRESULT DefRawInputProc(PRAWINPUT*, INT, UINT); > 4441 BOOL FlashWindowEx(PFLASHWINFO); > 4442 BOOL GetLayeredWindowAttributes(HWND, COLORREF*, BYTE*, DWORD*); > 4443 UINT GetRawInputBuffer(PRAWINPUT, PUINT, UINT); > 4444 UINT GetRawInputData(HRAWINPUT, UINT, LPVOID, PUINT, UINT); > 4445 UINT GetRawInputDeviceInfoA(HANDLE, UINT, LPVOID, PUINT); > 4446 UINT GetRawInputDeviceInfoW(HANDLE, UINT, LPVOID, PUINT); > 4447 UINT GetRawInputDeviceList(PRAWINPUTDEVICELIST, PUINT, UINT); > 4448 UINT GetRegisteredRawInputDevices(PRAWINPUTDEVICE, PUINT, UINT); > 4449 BOOL IsGUIThread(BOOL); > 4450 BOOL IsWinEventHookInstalled(DWORD); > 4451 BOOL PrintWindow(HWND, HDC, UINT); > 4452 BOOL RegisterRawInputDevices(PCRAWINPUTDEVICE, UINT, UINT); 4385 } 4453 } 4386 4454 4387 version (Win64) { 4455 version (Win64) { 4388 LONG_PTR GetWindowLongPtrA(HWND, int); | 4456 LONG_PTR GetWindowLongPtrA(HWND, int); 4389 LONG_PTR GetWindowLongPtrW(HWND, int); | 4457 LONG_PTR GetWindowLongPtrW(HWND, int); 4390 LONG_PTR SetWindowLongPtrA(HWND, int, LONG_PTR); | 4458 LONG_PTR SetWindowLongPtrA(HWND, int, LONG_PTR); 4391 LONG_PTR SetWindowLongPtrW(HWND, int, LONG_PTR); | 4459 LONG_PTR SetWindowLongPtrW(HWND, int, LONG_PTR); 4392 } else { 4460 } else { 4393 alias GetWindowLongA GetWindowLongPtrA; | 4461 alias GetWindowLongA GetWindowLongPtrA; 4394 alias GetWindowLongW GetWindowLongPtrW; | 4462 alias GetWindowLongW GetWindowLongPtrW; 4395 alias SetWindowLongA SetWindowLongPtrA; | 4463 alias SetWindowLongA SetWindowLongPtrA; 4396 alias SetWindowLongW SetWindowLongPtrW; | 4464 alias SetWindowLongW SetWindowLongPtrW; 4397 } 4465 } 4398 4466 4399 4467 4400 // ----- 4468 // ----- 4401 // Aliases for Unicode or Ansi 4469 // Aliases for Unicode or Ansi 4402 version(Unicode) { 4470 version(Unicode) { 4403 4471 4404 alias EDITWORDBREAKPROCW EDITWORDBREAKPROC; | 4472 alias EDITWORDBREAKPROCW EDITWORDBREAKPROC; 4405 alias PROPENUMPROCW PROPENUMPROC; | 4473 alias PROPENUMPROCW PROPENUMPROC; 4406 alias PROPENUMPROCEXW PROPENUMPROCEX; | 4474 alias PROPENUMPROCEXW PROPENUMPROCEX; 4407 alias DESKTOPENUMPROCW DESKTOPENUMPROC; | 4475 alias DESKTOPENUMPROCW DESKTOPENUMPROC; 4408 alias WINSTAENUMPROCW WINSTAENUMPROC; | 4476 alias WINSTAENUMPROCW WINSTAENUMPROC; 4409 alias MAKEINTRESOURCEW MAKEINTRESOURCE; | 4477 alias MAKEINTRESOURCEW MAKEINTRESOURCE; 4410 4478 4411 alias WNDCLASSW WNDCLASS; | 4479 alias WNDCLASSW WNDCLASS; 4412 alias WNDCLASSEXW WNDCLASSEX; | 4480 alias WNDCLASSEXW WNDCLASSEX; 4413 alias MENUITEMINFOW MENUITEMINFO; | 4481 alias MENUITEMINFOW MENUITEMINFO; 4414 alias LPCMENUITEMINFOW LPCMENUITEMINFO; | 4482 alias LPCMENUITEMINFOW LPCMENUITEMINFO; 4415 alias MSGBOXPARAMSW MSGBOXPARAMS; | 4483 alias MSGBOXPARAMSW MSGBOXPARAMS; 4416 alias HIGHCONTRASTW HIGHCONTRAST; | 4484 alias HIGHCONTRASTW HIGHCONTRAST; 4417 alias SERIALKEYSW SERIALKEYS; | 4485 alias SERIALKEYSW SERIALKEYS; 4418 alias SOUNDSENTRYW SOUNDSENTRY; | 4486 alias SOUNDSENTRYW SOUNDSENTRY; 4419 alias CREATESTRUCTW CREATESTRUCT; | 4487 alias CREATESTRUCTW CREATESTRUCT; 4420 alias CBT_CREATEWNDW CBT_CREATEWND; | 4488 alias CBT_CREATEWNDW CBT_CREATEWND; 4421 alias MDICREATESTRUCTW MDICREATESTRUCT; | 4489 alias MDICREATESTRUCTW MDICREATESTRUCT; 4422 alias MULTIKEYHELPW MULTIKEYHELP; | 4490 alias MULTIKEYHELPW MULTIKEYHELP; 4423 alias MONITORINFOEXW MONITORINFOEX; | 4491 alias MONITORINFOEXW MONITORINFOEX; 4424 alias ICONMETRICSW ICONMETRICS; | 4492 alias ICONMETRICSW ICONMETRICS; 4425 alias NONCLIENTMETRICSW NONCLIENTMETRICS; | 4493 alias NONCLIENTMETRICSW NONCLIENTMETRICS; 4426 4494 4427 alias AppendMenuW AppendMenu; | 4495 alias AppendMenuW AppendMenu; 4428 alias BroadcastSystemMessageW BroadcastSystemMessage; | 4496 alias BroadcastSystemMessageW BroadcastSystemMessage; 4429 static if (_WIN32_WINNT >= 0x501) { | 4497 static if (_WIN32_WINNT >= 0x501) { 4430 alias BroadcastSystemMessageExW BroadcastSystemMessageEx; | 4498 alias BroadcastSystemMessageExW BroadcastSystemMessageEx; 4431 } | 4499 } 4432 alias CallMsgFilterW CallMsgFilter; | 4500 alias CallMsgFilterW CallMsgFilter; 4433 alias CallWindowProcW CallWindowProc; | 4501 alias CallWindowProcW CallWindowProc; 4434 alias ChangeMenuW ChangeMenu; | 4502 alias ChangeMenuW ChangeMenu; 4435 alias CharLowerW CharLower; | 4503 alias CharLowerW CharLower; 4436 alias CharLowerBuffW CharLowerBuff; | 4504 alias CharLowerBuffW CharLowerBuff; 4437 alias CharNextW CharNext; | 4505 alias CharNextW CharNext; 4438 alias CharNextExW CharNextEx; | 4506 alias CharNextExW CharNextEx; 4439 alias CharPrevW CharPrev; | 4507 alias CharPrevW CharPrev; 4440 alias CharPrevExW CharPrevEx; | 4508 alias CharPrevExW CharPrevEx; 4441 alias CharToOemW CharToOem; | 4509 alias CharToOemW CharToOem; 4442 alias CharToOemBuffW CharToOemBuff; | 4510 alias CharToOemBuffW CharToOemBuff; 4443 alias CharUpperW CharUpper; | 4511 alias CharUpperW CharUpper; 4444 alias CharUpperBuffW CharUpperBuff; | 4512 alias CharUpperBuffW CharUpperBuff; 4445 alias CopyAcceleratorTableW CopyAcceleratorTable; | 4513 alias CopyAcceleratorTableW CopyAcceleratorTable; 4446 alias CreateAcceleratorTableW CreateAcceleratorTable; | 4514 alias CreateAcceleratorTableW CreateAcceleratorTable; 4447 alias CreateDialogW CreateDialog; | 4515 alias CreateDialogW CreateDialog; 4448 alias CreateDialogIndirectW CreateDialogIndirect; | 4516 alias CreateDialogIndirectW CreateDialogIndirect; 4449 alias CreateDialogIndirectParamW CreateDialogIndirectParam; | 4517 alias CreateDialogIndirectParamW CreateDialogIndirectParam; 4450 alias CreateDialogParamW CreateDialogParam; | 4518 alias CreateDialogParamW CreateDialogParam; 4451 alias CreateMDIWindowW CreateMDIWindow; | 4519 alias CreateMDIWindowW CreateMDIWindow; 4452 alias CreateWindowW CreateWindow; | 4520 alias CreateWindowW CreateWindow; 4453 alias CreateWindowExW CreateWindowEx; | 4521 alias CreateWindowExW CreateWindowEx; 4454 alias CreateWindowStationW CreateWindowStation; | 4522 alias CreateWindowStationW CreateWindowStation; 4455 alias DefDlgProcW DefDlgProc; | 4523 alias DefDlgProcW DefDlgProc; 4456 alias DefFrameProcW DefFrameProc; | 4524 alias DefFrameProcW DefFrameProc; 4457 alias DefMDIChildProcW DefMDIChildProc; | 4525 alias DefMDIChildProcW DefMDIChildProc; 4458 alias DefWindowProcW DefWindowProc; | 4526 alias DefWindowProcW DefWindowProc; 4459 alias DialogBoxW DialogBox; | 4527 alias DialogBoxW DialogBox; 4460 alias DialogBoxIndirectW DialogBoxIndirect; | 4528 alias DialogBoxIndirectW DialogBoxIndirect; 4461 alias DialogBoxIndirectParamW DialogBoxIndirectParam; | 4529 alias DialogBoxIndirectParamW DialogBoxIndirectParam; 4462 alias DialogBoxParamW DialogBoxParam; | 4530 alias DialogBoxParamW DialogBoxParam; 4463 alias DispatchMessageW DispatchMessage; | 4531 alias DispatchMessageW DispatchMessage; 4464 alias DlgDirListW DlgDirList; | 4532 alias DlgDirListW DlgDirList; 4465 alias DlgDirListComboBoxW DlgDirListComboBox; | 4533 alias DlgDirListComboBoxW DlgDirListComboBox; 4466 alias DlgDirSelectComboBoxExW DlgDirSelectComboBoxEx; | 4534 alias DlgDirSelectComboBoxExW DlgDirSelectComboBoxEx; 4467 alias DlgDirSelectExW DlgDirSelectEx; | 4535 alias DlgDirSelectExW DlgDirSelectEx; 4468 alias DrawStateW DrawState; | 4536 alias DrawStateW DrawState; 4469 alias DrawTextW DrawText; | 4537 alias DrawTextW DrawText; 4470 alias DrawTextExW DrawTextEx; | 4538 alias DrawTextExW DrawTextEx; 4471 alias EnumDesktopsW EnumDesktops; | 4539 alias EnumDesktopsW EnumDesktops; 4472 alias EnumPropsW EnumProps; | 4540 alias EnumPropsW EnumProps; 4473 alias EnumPropsExW EnumPropsEx; | 4541 alias EnumPropsExW EnumPropsEx; 4474 alias EnumWindowStationsW EnumWindowStations; | 4542 alias EnumWindowStationsW EnumWindowStations; 4475 alias FindWindowW FindWindow; | 4543 alias FindWindowW FindWindow; 4476 alias FindWindowExW FindWindowEx; | 4544 alias FindWindowExW FindWindowEx; 4477 alias GetClassInfoW GetClassInfo; | 4545 alias GetClassInfoW GetClassInfo; 4478 alias GetClassInfoExW GetClassInfoEx; | 4546 alias GetClassInfoExW GetClassInfoEx; 4479 alias GetClassLongW GetClassLong; | 4547 alias GetClassLongW GetClassLong; 4480 alias GetClassNameW GetClassName; | 4548 alias GetClassNameW GetClassName; 4481 alias GetClipboardFormatNameW GetClipboardFormatName; | 4549 alias GetClipboardFormatNameW GetClipboardFormatName; 4482 alias GetDlgItemTextW GetDlgItemText; | 4550 alias GetDlgItemTextW GetDlgItemText; 4483 alias GetKeyboardLayoutNameW GetKeyboardLayoutName; | 4551 alias GetKeyboardLayoutNameW GetKeyboardLayoutName; 4484 alias GetKeyNameTextW GetKeyNameText; | 4552 alias GetKeyNameTextW GetKeyNameText; 4485 alias GetMenuItemInfoW GetMenuItemInfo; | 4553 alias GetMenuItemInfoW GetMenuItemInfo; 4486 alias GetMenuStringW GetMenuString; | 4554 alias GetMenuStringW GetMenuString; 4487 alias GetMessageW GetMessage; | 4555 alias GetMessageW GetMessage; 4488 static if (WINVER >=0x410) { | 4556 static if (_WIN32_WINNT >= 0x410) { 4489 alias GetMonitorInfoW GetMonitorInfo; | 4557 alias GetMonitorInfoW GetMonitorInfo; 4490 } | 4558 } 4491 alias GetPropW GetProp; | 4559 alias GetPropW GetProp; 4492 static if (_WIN32_WINNT >= 0x501) { | 4560 static if (_WIN32_WINNT >= 0x501) { 4493 alias GetRawInputDeviceInfoW GetRawInputDeviceInfo; | 4561 alias GetRawInputDeviceInfoW GetRawInputDeviceInfo; 4494 } | 4562 } 4495 alias GetTabbedTextExtentW GetTabbedTextExtent; | 4563 alias GetTabbedTextExtentW GetTabbedTextExtent; 4496 alias GetUserObjectInformationW GetUserObjectInformation; | 4564 alias GetUserObjectInformationW GetUserObjectInformation; 4497 alias GetWindowLongW GetWindowLong; | 4565 alias GetWindowLongW GetWindowLong; 4498 alias GetWindowLongPtrW GetWindowLongPtr; | 4566 alias GetWindowLongPtrW GetWindowLongPtr; 4499 alias GetWindowTextW GetWindowText; | 4567 alias GetWindowTextW GetWindowText; 4500 alias GetWindowTextLengthW GetWindowTextLength; | 4568 alias GetWindowTextLengthW GetWindowTextLength; 4501 alias GetAltTabInfoW GetAltTabInfo; | 4569 alias GetAltTabInfoW GetAltTabInfo; 4502 alias GetWindowModuleFileNameW GetWindowModuleFileName; | 4570 alias GetWindowModuleFileNameW GetWindowModuleFileName; 4503 alias GrayStringW GrayString; | 4571 alias GrayStringW GrayString; 4504 alias InsertMenuW InsertMenu; | 4572 alias InsertMenuW InsertMenu; 4505 alias InsertMenuItemW InsertMenuItem; | 4573 alias InsertMenuItemW InsertMenuItem; 4506 alias IsCharAlphaW IsCharAlpha; | 4574 alias IsCharAlphaW IsCharAlpha; 4507 alias IsCharAlphaNumericW IsCharAlphaNumeric; | 4575 alias IsCharAlphaNumericW IsCharAlphaNumeric; 4508 alias IsCharLowerW IsCharLower; | 4576 alias IsCharLowerW IsCharLower; 4509 alias IsCharUpperW IsCharUpper; | 4577 alias IsCharUpperW IsCharUpper; 4510 alias IsDialogMessageW IsDialogMessage; | 4578 alias IsDialogMessageW IsDialogMessage; 4511 alias LoadAcceleratorsW LoadAccelerators; | 4579 alias LoadAcceleratorsW LoadAccelerators; 4512 alias LoadBitmapW LoadBitmap; | 4580 alias LoadBitmapW LoadBitmap; 4513 alias LoadCursorW LoadCursor; | 4581 alias LoadCursorW LoadCursor; 4514 alias LoadCursorFromFileW LoadCursorFromFile; | 4582 alias LoadCursorFromFileW LoadCursorFromFile; 4515 alias LoadIconW LoadIcon; | 4583 alias LoadIconW LoadIcon; 4516 alias LoadImageW LoadImage; | 4584 alias LoadImageW LoadImage; 4517 alias LoadKeyboardLayoutW LoadKeyboardLayout; | 4585 alias LoadKeyboardLayoutW LoadKeyboardLayout; 4518 alias LoadMenuW LoadMenu; | 4586 alias LoadMenuW LoadMenu; 4519 alias LoadMenuIndirectW LoadMenuIndirect; | 4587 alias LoadMenuIndirectW LoadMenuIndirect; 4520 alias LoadStringW LoadString; | 4588 alias LoadStringW LoadString; 4521 alias MapVirtualKeyW MapVirtualKey; | 4589 alias MapVirtualKeyW MapVirtualKey; 4522 alias MapVirtualKeyExW MapVirtualKeyEx; | 4590 alias MapVirtualKeyExW MapVirtualKeyEx; 4523 alias MessageBoxW MessageBox; | 4591 alias MessageBoxW MessageBox; 4524 alias MessageBoxExW MessageBoxEx; | 4592 alias MessageBoxExW MessageBoxEx; 4525 alias MessageBoxIndirectW MessageBoxIndirect; | 4593 alias MessageBoxIndirectW MessageBoxIndirect; 4526 alias ModifyMenuW ModifyMenu; | 4594 alias ModifyMenuW ModifyMenu; 4527 alias OemToCharW OemToChar; | 4595 alias OemToCharW OemToChar; 4528 alias OemToCharBuffW OemToCharBuff; | 4596 alias OemToCharBuffW OemToCharBuff; 4529 alias OpenDesktopW OpenDesktop; | 4597 alias OpenDesktopW OpenDesktop; 4530 alias OpenWindowStationW OpenWindowStation; | 4598 alias OpenWindowStationW OpenWindowStation; 4531 alias PeekMessageW PeekMessage; | 4599 alias PeekMessageW PeekMessage; 4532 alias PostMessageW PostMessage; | 4600 alias PostMessageW PostMessage; 4533 alias PostThreadMessageW PostThreadMessage; | 4601 alias PostThreadMessageW PostThreadMessage; 4534 alias RealGetWindowClassW RealGetWindowClass; | 4602 alias RealGetWindowClassW RealGetWindowClass; 4535 alias RegisterClassW RegisterClass; | 4603 alias RegisterClassW RegisterClass; 4536 alias RegisterClassExW RegisterClassEx; | 4604 alias RegisterClassExW RegisterClassEx; 4537 alias RegisterClipboardFormatW RegisterClipboardFormat; | 4605 alias RegisterClipboardFormatW RegisterClipboardFormat; 4538 static if (WINVER >= 0x500) { | 4606 static if (_WIN32_WINNT >= 0x500) { 4539 alias RegisterDeviceNotificationW RegisterDeviceNotification; | 4607 alias RegisterDeviceNotificationW RegisterDeviceNotification; 4540 } | 4608 } 4541 alias RegisterWindowMessageW RegisterWindowMessage; | 4609 alias RegisterWindowMessageW RegisterWindowMessage; 4542 alias RemovePropW RemoveProp; | 4610 alias RemovePropW RemoveProp; 4543 alias SendDlgItemMessageW SendDlgItemMessage; | 4611 alias SendDlgItemMessageW SendDlgItemMessage; 4544 alias SendMessageW SendMessage; | 4612 alias SendMessageW SendMessage; 4545 alias SendMessageCallbackW SendMessageCallback; | 4613 alias SendMessageCallbackW SendMessageCallback; 4546 alias SendMessageTimeoutW SendMessageTimeout; | 4614 alias SendMessageTimeoutW SendMessageTimeout; 4547 alias SendNotifyMessageW SendNotifyMessage; | 4615 alias SendNotifyMessageW SendNotifyMessage; 4548 alias SetClassLongW SetClassLong; | 4616 alias SetClassLongW SetClassLong; 4549 alias SetDlgItemTextW SetDlgItemText; | 4617 alias SetDlgItemTextW SetDlgItemText; 4550 alias SetMenuItemInfoW SetMenuItemInfo; | 4618 alias SetMenuItemInfoW SetMenuItemInfo; 4551 alias SetPropW SetProp; | 4619 alias SetPropW SetProp; 4552 alias SetUserObjectInformationW SetUserObjectInformation; | 4620 alias SetUserObjectInformationW SetUserObjectInformation; 4553 alias SetWindowLongW SetWindowLong; | 4621 alias SetWindowLongW SetWindowLong; 4554 alias SetWindowLongPtrW SetWindowLongPtr; | 4622 alias SetWindowLongPtrW SetWindowLongPtr; 4555 alias SetWindowsHookW SetWindowsHook; | 4623 alias SetWindowsHookW SetWindowsHook; 4556 alias SetWindowsHookExW SetWindowsHookEx; | 4624 alias SetWindowsHookExW SetWindowsHookEx; 4557 alias SetWindowTextW SetWindowText; | 4625 alias SetWindowTextW SetWindowText; 4558 alias SystemParametersInfoW SystemParametersInfo; | 4626 alias SystemParametersInfoW SystemParametersInfo; 4559 alias TabbedTextOutW TabbedTextOut; | 4627 alias TabbedTextOutW TabbedTextOut; 4560 alias TranslateAcceleratorW TranslateAccelerator; | 4628 alias TranslateAcceleratorW TranslateAccelerator; 4561 alias UnregisterClassW UnregisterClass; | 4629 alias UnregisterClassW UnregisterClass; 4562 alias VkKeyScanW VkKeyScan; | 4630 alias VkKeyScanW VkKeyScan; 4563 alias VkKeyScanExW VkKeyScanEx; | 4631 alias VkKeyScanExW VkKeyScanEx; 4564 alias WinHelpW WinHelp; | 4632 alias WinHelpW WinHelp; 4565 alias wsprintfW wsprintf; | 4633 alias wsprintfW wsprintf; 4566 alias wvsprintfW wvsprintf; | 4634 alias wvsprintfW wvsprintf; 4567 4635 4568 alias ChangeDisplaySettingsW ChangeDisplaySettings; | 4636 alias ChangeDisplaySettingsW ChangeDisplaySettings; 4569 alias ChangeDisplaySettingsExW ChangeDisplaySettingsEx; | 4637 alias ChangeDisplaySettingsExW ChangeDisplaySettingsEx; 4570 alias CreateDesktopW CreateDesktop; | 4638 alias CreateDesktopW CreateDesktop; 4571 alias EnumDisplaySettingsW EnumDisplaySettings; | 4639 alias EnumDisplaySettingsW EnumDisplaySettings; 4572 static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { | 4640 static if (_WIN32_WINNT >= 0x500) { 4573 alias EnumDisplaySettingsExW EnumDisplaySettingsEx; | 4641 alias EnumDisplaySettingsExW EnumDisplaySettingsEx; 4574 } | 4642 } 4575 alias EnumDisplayDevicesW EnumDisplayDevices; | 4643 alias EnumDisplayDevicesW EnumDisplayDevices; 4576 4644 4577 } else { // ANSI 4645 } else { // ANSI 4578 4646 4579 alias EDITWORDBREAKPROCA EDITWORDBREAKPROC; | 4647 alias EDITWORDBREAKPROCA EDITWORDBREAKPROC; 4580 alias PROPENUMPROCA PROPENUMPROC; | 4648 alias PROPENUMPROCA PROPENUMPROC; 4581 alias PROPENUMPROCEXA PROPENUMPROCEX; | 4649 alias PROPENUMPROCEXA PROPENUMPROCEX; 4582 alias DESKTOPENUMPROCA DESKTOPENUMPROC; | 4650 alias DESKTOPENUMPROCA DESKTOPENUMPROC; 4583 alias WINSTAENUMPROCA WINSTAENUMPROC; | 4651 alias WINSTAENUMPROCA WINSTAENUMPROC; 4584 alias MAKEINTRESOURCEA MAKEINTRESOURCE; | 4652 alias MAKEINTRESOURCEA MAKEINTRESOURCE; 4585 4653 4586 alias WNDCLASSA WNDCLASS; | 4654 alias WNDCLASSA WNDCLASS; 4587 alias WNDCLASSEXA WNDCLASSEX; | 4655 alias WNDCLASSEXA WNDCLASSEX; 4588 alias MENUITEMINFOA MENUITEMINFO; | 4656 alias MENUITEMINFOA MENUITEMINFO; 4589 alias LPCMENUITEMINFOA LPCMENUITEMINFO; | 4657 alias LPCMENUITEMINFOA LPCMENUITEMINFO; 4590 alias MSGBOXPARAMSA MSGBOXPARAMS; | 4658 alias MSGBOXPARAMSA MSGBOXPARAMS; 4591 alias HIGHCONTRASTA HIGHCONTRAST; | 4659 alias HIGHCONTRASTA HIGHCONTRAST; 4592 alias SERIALKEYSA SERIALKEYS; | 4660 alias SERIALKEYSA SERIALKEYS; 4593 alias SOUNDSENTRYA SOUNDSENTRY; | 4661 alias SOUNDSENTRYA SOUNDSENTRY; 4594 alias CREATESTRUCTA CREATESTRUCT; | 4662 alias CREATESTRUCTA CREATESTRUCT; 4595 alias CBT_CREATEWNDA CBT_CREATEWND; | 4663 alias CBT_CREATEWNDA CBT_CREATEWND; 4596 alias MDICREATESTRUCTA MDICREATESTRUCT; | 4664 alias MDICREATESTRUCTA MDICREATESTRUCT; 4597 alias MULTIKEYHELPA MULTIKEYHELP; | 4665 alias MULTIKEYHELPA MULTIKEYHELP; 4598 alias MONITORINFOEXA MONITORINFOEX; | 4666 alias MONITORINFOEXA MONITORINFOEX; 4599 alias ICONMETRICSA ICONMETRICS; | 4667 alias ICONMETRICSA ICONMETRICS; 4600 alias NONCLIENTMETRICSA NONCLIENTMETRICS; | 4668 alias NONCLIENTMETRICSA NONCLIENTMETRICS; 4601 4669 4602 alias AppendMenuA AppendMenu; | 4670 alias AppendMenuA AppendMenu; 4603 alias BroadcastSystemMessageA BroadcastSystemMessage; | 4671 alias BroadcastSystemMessageA BroadcastSystemMessage; 4604 static if (_WIN32_WINNT >= 0x501) { | 4672 static if (_WIN32_WINNT >= 0x501) { 4605 alias BroadcastSystemMessageExA BroadcastSystemMessageEx; | 4673 alias BroadcastSystemMessageExA BroadcastSystemMessageEx; 4606 } | 4674 } 4607 alias CallMsgFilterA CallMsgFilter; | 4675 alias CallMsgFilterA CallMsgFilter; 4608 alias CallWindowProcA CallWindowProc; | 4676 alias CallWindowProcA CallWindowProc; 4609 alias ChangeMenuA ChangeMenu; | 4677 alias ChangeMenuA ChangeMenu; 4610 alias CharLowerA CharLower; | 4678 alias CharLowerA CharLower; 4611 alias CharLowerBuffA CharLowerBuff; | 4679 alias CharLowerBuffA CharLowerBuff; 4612 alias CharNextA CharNext; | 4680 alias CharNextA CharNext; 4613 alias CharNextExA CharNextEx; | 4681 alias CharNextExA CharNextEx; 4614 alias CharPrevA CharPrev; | 4682 alias CharPrevA CharPrev; 4615 alias CharPrevExA CharPrevEx; | 4683 alias CharPrevExA CharPrevEx; 4616 alias CharToOemA CharToOem; | 4684 alias CharToOemA CharToOem; 4617 alias CharToOemBuffA CharToOemBuff; | 4685 alias CharToOemBuffA CharToOemBuff; 4618 alias CharUpperA CharUpper; | 4686 alias CharUpperA CharUpper; 4619 alias CharUpperBuffA CharUpperBuff; | 4687 alias CharUpperBuffA CharUpperBuff; 4620 alias CopyAcceleratorTableA CopyAcceleratorTable; | 4688 alias CopyAcceleratorTableA CopyAcceleratorTable; 4621 alias CreateAcceleratorTableA CreateAcceleratorTable; | 4689 alias CreateAcceleratorTableA CreateAcceleratorTable; 4622 alias CreateDialogA CreateDialog; | 4690 alias CreateDialogA CreateDialog; 4623 alias CreateDialogIndirectA CreateDialogIndirect; | 4691 alias CreateDialogIndirectA CreateDialogIndirect; 4624 alias CreateDialogIndirectParamA CreateDialogIndirectParam; | 4692 alias CreateDialogIndirectParamA CreateDialogIndirectParam; 4625 alias CreateDialogParamA CreateDialogParam; | 4693 alias CreateDialogParamA CreateDialogParam; 4626 alias CreateMDIWindowA CreateMDIWindow; | 4694 alias CreateMDIWindowA CreateMDIWindow; 4627 alias CreateWindowA CreateWindow; | 4695 alias CreateWindowA CreateWindow; 4628 alias CreateWindowExA CreateWindowEx; | 4696 alias CreateWindowExA CreateWindowEx; 4629 alias CreateWindowStationA CreateWindowStation; | 4697 alias CreateWindowStationA CreateWindowStation; 4630 alias DefDlgProcA DefDlgProc; | 4698 alias DefDlgProcA DefDlgProc; 4631 alias DefFrameProcA DefFrameProc; | 4699 alias DefFrameProcA DefFrameProc; 4632 alias DefMDIChildProcA DefMDIChildProc; | 4700 alias DefMDIChildProcA DefMDIChildProc; 4633 alias DefWindowProcA DefWindowProc; | 4701 alias DefWindowProcA DefWindowProc; 4634 alias DialogBoxA DialogBox; | 4702 alias DialogBoxA DialogBox; 4635 alias DialogBoxIndirectA DialogBoxIndirect; | 4703 alias DialogBoxIndirectA DialogBoxIndirect; 4636 alias DialogBoxIndirectParamA DialogBoxIndirectParam; | 4704 alias DialogBoxIndirectParamA DialogBoxIndirectParam; 4637 alias DialogBoxParamA DialogBoxParam; | 4705 alias DialogBoxParamA DialogBoxParam; 4638 alias DispatchMessageA DispatchMessage; | 4706 alias DispatchMessageA DispatchMessage; 4639 alias DlgDirListA DlgDirList; | 4707 alias DlgDirListA DlgDirList; 4640 alias DlgDirListComboBoxA DlgDirListComboBox; | 4708 alias DlgDirListComboBoxA DlgDirListComboBox; 4641 alias DlgDirSelectComboBoxExA DlgDirSelectComboBoxEx; | 4709 alias DlgDirSelectComboBoxExA DlgDirSelectComboBoxEx; 4642 alias DlgDirSelectExA DlgDirSelectEx; | 4710 alias DlgDirSelectExA DlgDirSelectEx; 4643 alias DrawStateA DrawState; | 4711 alias DrawStateA DrawState; 4644 alias DrawTextA DrawText; | 4712 alias DrawTextA DrawText; 4645 alias DrawTextExA DrawTextEx; | 4713 alias DrawTextExA DrawTextEx; 4646 alias EnumDesktopsA EnumDesktops; | 4714 alias EnumDesktopsA EnumDesktops; 4647 alias EnumPropsA EnumProps; | 4715 alias EnumPropsA EnumProps; 4648 alias EnumPropsExA EnumPropsEx; | 4716 alias EnumPropsExA EnumPropsEx; 4649 alias EnumWindowStationsA EnumWindowStations; | 4717 alias EnumWindowStationsA EnumWindowStations; 4650 alias FindWindowA FindWindow; | 4718 alias FindWindowA FindWindow; 4651 alias FindWindowExA FindWindowEx; | 4719 alias FindWindowExA FindWindowEx; 4652 alias GetClassInfoA GetClassInfo; | 4720 alias GetClassInfoA GetClassInfo; 4653 alias GetClassInfoExA GetClassInfoEx; | 4721 alias GetClassInfoExA GetClassInfoEx; 4654 alias GetClassLongA GetClassLong; | 4722 alias GetClassLongA GetClassLong; 4655 alias GetClassNameA GetClassName; | 4723 alias GetClassNameA GetClassName; 4656 alias GetClipboardFormatNameA GetClipboardFormatName; | 4724 alias GetClipboardFormatNameA GetClipboardFormatName; 4657 alias GetDlgItemTextA GetDlgItemText; | 4725 alias GetDlgItemTextA GetDlgItemText; 4658 alias GetKeyboardLayoutNameA GetKeyboardLayoutName; | 4726 alias GetKeyboardLayoutNameA GetKeyboardLayoutName; 4659 alias GetKeyNameTextA GetKeyNameText; | 4727 alias GetKeyNameTextA GetKeyNameText; 4660 alias GetMenuItemInfoA GetMenuItemInfo; | 4728 alias GetMenuItemInfoA GetMenuItemInfo; 4661 alias GetMenuStringA GetMenuString; | 4729 alias GetMenuStringA GetMenuString; 4662 alias GetMessageA GetMessage; | 4730 alias GetMessageA GetMessage; 4663 static if (WINVER >=0x410) { | 4731 static if (_WIN32_WINNT >= 0x410) { 4664 alias GetMonitorInfoA GetMonitorInfo; | 4732 alias GetMonitorInfoA GetMonitorInfo; 4665 } | 4733 } 4666 alias GetPropA GetProp; | 4734 alias GetPropA GetProp; 4667 static if (_WIN32_WINNT >= 0x501) { | 4735 static if (_WIN32_WINNT >= 0x501) { 4668 alias GetRawInputDeviceInfoA GetRawInputDeviceInfo; | 4736 alias GetRawInputDeviceInfoA GetRawInputDeviceInfo; 4669 } | 4737 } 4670 alias GetTabbedTextExtentA GetTabbedTextExtent; | 4738 alias GetTabbedTextExtentA GetTabbedTextExtent; 4671 alias GetUserObjectInformationA GetUserObjectInformation; | 4739 alias GetUserObjectInformationA GetUserObjectInformation; 4672 alias GetWindowLongA GetWindowLong; | 4740 alias GetWindowLongA GetWindowLong; 4673 alias GetWindowLongPtrA GetWindowLongPtr; | 4741 alias GetWindowLongPtrA GetWindowLongPtr; 4674 alias GetWindowTextA GetWindowText; | 4742 alias GetWindowTextA GetWindowText; 4675 alias GetWindowTextLengthA GetWindowTextLength; | 4743 alias GetWindowTextLengthA GetWindowTextLength; 4676 alias GetAltTabInfoA GetAltTabInfo; | 4744 alias GetAltTabInfoA GetAltTabInfo; 4677 alias GetWindowModuleFileNameA GetWindowModuleFileName; | 4745 alias GetWindowModuleFileNameA GetWindowModuleFileName; 4678 alias GrayStringA GrayString; | 4746 alias GrayStringA GrayString; 4679 alias InsertMenuA InsertMenu; | 4747 alias InsertMenuA InsertMenu; 4680 alias InsertMenuItemA InsertMenuItem; | 4748 alias InsertMenuItemA InsertMenuItem; 4681 alias IsCharAlphaA IsCharAlpha; | 4749 alias IsCharAlphaA IsCharAlpha; 4682 alias IsCharAlphaNumericA IsCharAlphaNumeric; | 4750 alias IsCharAlphaNumericA IsCharAlphaNumeric; 4683 alias IsCharLowerA IsCharLower; | 4751 alias IsCharLowerA IsCharLower; 4684 alias IsCharUpperA IsCharUpper; | 4752 alias IsCharUpperA IsCharUpper; 4685 alias IsDialogMessageA IsDialogMessage; | 4753 alias IsDialogMessageA IsDialogMessage; 4686 alias LoadAcceleratorsA LoadAccelerators; | 4754 alias LoadAcceleratorsA LoadAccelerators; 4687 alias LoadBitmapA LoadBitmap; | 4755 alias LoadBitmapA LoadBitmap; 4688 alias LoadCursorA LoadCursor; | 4756 alias LoadCursorA LoadCursor; 4689 alias LoadIconA LoadIcon; | 4757 alias LoadIconA LoadIcon; 4690 alias LoadCursorFromFileA LoadCursorFromFile; | 4758 alias LoadCursorFromFileA LoadCursorFromFile; 4691 alias LoadImageA LoadImage; | 4759 alias LoadImageA LoadImage; 4692 alias LoadKeyboardLayoutA LoadKeyboardLayout; | 4760 alias LoadKeyboardLayoutA LoadKeyboardLayout; 4693 alias LoadMenuA LoadMenu; | 4761 alias LoadMenuA LoadMenu; 4694 alias LoadMenuIndirectA LoadMenuIndirect; | 4762 alias LoadMenuIndirectA LoadMenuIndirect; 4695 alias LoadStringA LoadString; | 4763 alias LoadStringA LoadString; 4696 alias MapVirtualKeyA MapVirtualKey; | 4764 alias MapVirtualKeyA MapVirtualKey; 4697 alias MapVirtualKeyExA MapVirtualKeyEx; | 4765 alias MapVirtualKeyExA MapVirtualKeyEx; 4698 alias MessageBoxA MessageBox; | 4766 alias MessageBoxA MessageBox; 4699 alias MessageBoxExA MessageBoxEx; | 4767 alias MessageBoxExA MessageBoxEx; 4700 alias MessageBoxIndirectA MessageBoxIndirect; | 4768 alias MessageBoxIndirectA MessageBoxIndirect; 4701 alias ModifyMenuA ModifyMenu; | 4769 alias ModifyMenuA ModifyMenu; 4702 alias OemToCharA OemToChar; | 4770 alias OemToCharA OemToChar; 4703 alias OemToCharBuffA OemToCharBuff; | 4771 alias OemToCharBuffA OemToCharBuff; 4704 alias OpenDesktopA OpenDesktop; | 4772 alias OpenDesktopA OpenDesktop; 4705 alias OpenWindowStationA OpenWindowStation; | 4773 alias OpenWindowStationA OpenWindowStation; 4706 alias PeekMessageA PeekMessage; | 4774 alias PeekMessageA PeekMessage; 4707 alias PostMessageA PostMessage; | 4775 alias PostMessageA PostMessage; 4708 alias PostThreadMessageA PostThreadMessage; | 4776 alias PostThreadMessageA PostThreadMessage; 4709 alias RealGetWindowClassA RealGetWindowClass; | 4777 alias RealGetWindowClassA RealGetWindowClass; 4710 alias RegisterClassA RegisterClass; | 4778 alias RegisterClassA RegisterClass; 4711 alias RegisterClassExA RegisterClassEx; | 4779 alias RegisterClassExA RegisterClassEx; 4712 alias RegisterClipboardFormatA RegisterClipboardFormat; | 4780 alias RegisterClipboardFormatA RegisterClipboardFormat; 4713 static if (WINVER >= 0x500) { | 4781 static if (_WIN32_WINNT >= 0x500) { 4714 alias RegisterDeviceNotificationA RegisterDeviceNotification; | 4782 alias RegisterDeviceNotificationA RegisterDeviceNotification; 4715 } | 4783 } 4716 alias RegisterWindowMessageA RegisterWindowMessage; | 4784 alias RegisterWindowMessageA RegisterWindowMessage; 4717 alias RemovePropA RemoveProp; | 4785 alias RemovePropA RemoveProp; 4718 alias SendDlgItemMessageA SendDlgItemMessage; | 4786 alias SendDlgItemMessageA SendDlgItemMessage; 4719 alias SendMessageA SendMessage; | 4787 alias SendMessageA SendMessage; 4720 alias SendMessageCallbackA SendMessageCallback; | 4788 alias SendMessageCallbackA SendMessageCallback; 4721 alias SendMessageTimeoutA SendMessageTimeout; | 4789 alias SendMessageTimeoutA SendMessageTimeout; 4722 alias SendNotifyMessageA SendNotifyMessage; | 4790 alias SendNotifyMessageA SendNotifyMessage; 4723 alias SetClassLongA SetClassLong; | 4791 alias SetClassLongA SetClassLong; 4724 alias SetDlgItemTextA SetDlgItemText; | 4792 alias SetDlgItemTextA SetDlgItemText; 4725 alias SetMenuItemInfoA SetMenuItemInfo; | 4793 alias SetMenuItemInfoA SetMenuItemInfo; 4726 alias SetPropA SetProp; | 4794 alias SetPropA SetProp; 4727 alias SetUserObjectInformationA SetUserObjectInformation; | 4795 alias SetUserObjectInformationA SetUserObjectInformation; 4728 alias SetWindowLongA SetWindowLong; | 4796 alias SetWindowLongA SetWindowLong; 4729 alias SetWindowLongPtrA SetWindowLongPtr; | 4797 alias SetWindowLongPtrA SetWindowLongPtr; 4730 alias SetWindowsHookA SetWindowsHook; | 4798 alias SetWindowsHookA SetWindowsHook; 4731 alias SetWindowsHookExA SetWindowsHookEx; | 4799 alias SetWindowsHookExA SetWindowsHookEx; 4732 alias SetWindowTextA SetWindowText; | 4800 alias SetWindowTextA SetWindowText; 4733 alias SystemParametersInfoA SystemParametersInfo; | 4801 alias SystemParametersInfoA SystemParametersInfo; 4734 alias TabbedTextOutA TabbedTextOut; | 4802 alias TabbedTextOutA TabbedTextOut; 4735 alias TranslateAcceleratorA TranslateAccelerator; | 4803 alias TranslateAcceleratorA TranslateAccelerator; 4736 alias UnregisterClassA UnregisterClass; | 4804 alias UnregisterClassA UnregisterClass; 4737 alias VkKeyScanA VkKeyScan; | 4805 alias VkKeyScanA VkKeyScan; 4738 alias VkKeyScanExA VkKeyScanEx; | 4806 alias VkKeyScanExA VkKeyScanEx; 4739 alias WinHelpA WinHelp; | 4807 alias WinHelpA WinHelp; 4740 alias wsprintfA wsprintf; | 4808 alias wsprintfA wsprintf; 4741 alias wvsprintfA wvsprintf; | 4809 alias wvsprintfA wvsprintf; 4742 4810 4743 alias ChangeDisplaySettingsA ChangeDisplaySettings; | 4811 alias ChangeDisplaySettingsA ChangeDisplaySettings; 4744 alias ChangeDisplaySettingsExA ChangeDisplaySettingsEx; | 4812 alias ChangeDisplaySettingsExA ChangeDisplaySettingsEx; 4745 alias CreateDesktopA CreateDesktop; | 4813 alias CreateDesktopA CreateDesktop; 4746 alias EnumDisplaySettingsA EnumDisplaySettings; | 4814 alias EnumDisplaySettingsA EnumDisplaySettings; 4747 static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { | 4815 static if (_WIN32_WINNT >= 0x500) { 4748 alias EnumDisplaySettingsExA EnumDisplaySettingsEx; | 4816 alias EnumDisplaySettingsExA EnumDisplaySettingsEx; 4749 } | 4817 } 4750 alias EnumDisplayDevicesA EnumDisplayDevices; 4818 alias EnumDisplayDevicesA EnumDisplayDevices; 4751 } 4819 } 4752 < 4753 4820 4754 alias WNDCLASS* LPWNDCLASS, PWNDCLASS; 4821 alias WNDCLASS* LPWNDCLASS, PWNDCLASS; 4755 alias WNDCLASSEX* LPWNDCLASSEX, PWNDCLASSEX; 4822 alias WNDCLASSEX* LPWNDCLASSEX, PWNDCLASSEX; 4756 alias MENUITEMINFO* LPMENUITEMINFO; 4823 alias MENUITEMINFO* LPMENUITEMINFO; 4757 alias MSGBOXPARAMS* PMSGBOXPARAMS, LPMSGBOXPARAMS; 4824 alias MSGBOXPARAMS* PMSGBOXPARAMS, LPMSGBOXPARAMS; 4758 alias HIGHCONTRAST* LPHIGHCONTRAST; 4825 alias HIGHCONTRAST* LPHIGHCONTRAST; 4759 alias SERIALKEYS* LPSERIALKEYS; 4826 alias SERIALKEYS* LPSERIALKEYS;