comparison dwt/internal/win32/OS.d @ 213:36f5cb12e1a2

Update to SWT 3.4M7
author Frank Benoit <benoit@tionex.de>
date Sat, 17 May 2008 17:34:28 +0200
parents 3afcd4ddcf90
children a8fed3e56433
comparison
equal deleted inserted replaced
212:ab60f3309436 213:36f5cb12e1a2
20 import dwt.internal.Library; 20 import dwt.internal.Library;
21 import tango.sys.SharedLib : SharedLib; 21 import tango.sys.SharedLib : SharedLib;
22 import tango.sys.Common : SysError; 22 import tango.sys.Common : SysError;
23 static import tango.stdc.stdlib; 23 static import tango.stdc.stdlib;
24 24
25 import tango.stdc.string : memset; 25 import tango.stdc.string : memset, strlen;
26 import tango.stdc.stringz : toString16z; 26 import tango.stdc.stringz : toString16z;
27 import tango.text.convert.Utf : toString16; 27 import tango.text.convert.Utf : toString16;
28 import tango.io.FilePath; 28 import tango.io.FilePath;
29 static import tango.io.TempFile; 29 static import tango.io.TempFile;
30 import tango.io.File; 30 import tango.io.File;
446 public static const int AC_SRC_ALPHA = 1; 446 public static const int AC_SRC_ALPHA = 1;
447 // public static const int ACTCTX_FLAG_RESOURCE_NAME_VALID = 0x00000008; 447 // public static const int ACTCTX_FLAG_RESOURCE_NAME_VALID = 0x00000008;
448 // public static const int ACTCTX_FLAG_SET_PROCESS_DEFAULT = 0x00000010; 448 // public static const int ACTCTX_FLAG_SET_PROCESS_DEFAULT = 0x00000010;
449 public static const int ALTERNATE = 1; 449 public static const int ALTERNATE = 1;
450 public static const int ASSOCF_NOTRUNCATE = 0x00000020; 450 public static const int ASSOCF_NOTRUNCATE = 0x00000020;
451 public static const int ASSOCF_INIT_IGNOREUNKNOWN = 0x400;
451 public static const int ASSOCSTR_COMMAND = 1; 452 public static const int ASSOCSTR_COMMAND = 1;
452 public static const int ASSOCSTR_DEFAULTICON = 15; 453 public static const int ASSOCSTR_DEFAULTICON = 15;
453 public static const int ASSOCSTR_FRIENDLYAPPNAME = 4; 454 public static const int ASSOCSTR_FRIENDLYAPPNAME = 4;
454 public static const int ASSOCSTR_FRIENDLYDOCNAME = 3; 455 public static const int ASSOCSTR_FRIENDLYDOCNAME = 3;
455 public static const int AW_SLIDE = 0x00040000; 456 public static const int AW_SLIDE = 0x00040000;
459 public static const int AW_CENTER = 0x00000010; 460 public static const int AW_CENTER = 0x00000010;
460 public static const int AW_HOR_POSITIVE = 0x00000001; 461 public static const int AW_HOR_POSITIVE = 0x00000001;
461 public static const int AW_HOR_NEGATIVE = 0x00000002; 462 public static const int AW_HOR_NEGATIVE = 0x00000002;
462 public static const int AW_VER_POSITIVE = 0x00000004; 463 public static const int AW_VER_POSITIVE = 0x00000004;
463 public static const int AW_VER_NEGATIVE = 0x00000008; 464 public static const int AW_VER_NEGATIVE = 0x00000008;
465 public static const int ATTR_INPUT = 0x00;
466 public static const int ATTR_TARGET_CONVERTED = 0x01;
467 public static const int ATTR_CONVERTED = 0x02;
468 public static const int ATTR_TARGET_NOTCONVERTED = 0x03;
469 public static const int ATTR_INPUT_ERROR = 0x04;
470 public static const int ATTR_FIXEDCONVERTED = 0x05;
464 public static const int BCM_FIRST = 0x1600; 471 public static const int BCM_FIRST = 0x1600;
465 public static const int BCM_GETIDEALSIZE = BCM_FIRST + 0x1; 472 public static const int BCM_GETIDEALSIZE = BCM_FIRST + 0x1;
466 public static const int BCM_GETIMAGELIST = BCM_FIRST + 0x3; 473 public static const int BCM_GETIMAGELIST = BCM_FIRST + 0x3;
467 public static const int BCM_GETNOTE = BCM_FIRST + 0xa; 474 public static const int BCM_GETNOTE = BCM_FIRST + 0xa;
468 public static const int BCM_GETNOTELENGTH = BCM_FIRST + 0xb; 475 public static const int BCM_GETNOTELENGTH = BCM_FIRST + 0xb;
516 public static const int BP_PUSHBUTTON = 1; 523 public static const int BP_PUSHBUTTON = 1;
517 public static const int BP_RADIOBUTTON = 2; 524 public static const int BP_RADIOBUTTON = 2;
518 public static const int BP_CHECKBOX = 3; 525 public static const int BP_CHECKBOX = 3;
519 public static const int BP_GROUPBOX = 4; 526 public static const int BP_GROUPBOX = 4;
520 public static const int BST_CHECKED = 0x1; 527 public static const int BST_CHECKED = 0x1;
528 public static const int BST_INDETERMINATE = 0x2;
521 public static const int BST_UNCHECKED = 0x0; 529 public static const int BST_UNCHECKED = 0x0;
530 public static const int BS_3STATE = 0x5;
522 public static const int BS_BITMAP = 0x80; 531 public static const int BS_BITMAP = 0x80;
523 public static const int BS_CENTER = 0x300; 532 public static const int BS_CENTER = 0x300;
524 public static const int BS_CHECKBOX = 0x2; 533 public static const int BS_CHECKBOX = 0x2;
525 public static const int BS_COMMANDLINK = 0xe; 534 public static const int BS_COMMANDLINK = 0xe;
526 public static const int BS_DEFPUSHBUTTON = 0x1; 535 public static const int BS_DEFPUSHBUTTON = 0x1;
592 public static const int CB_SHOWDROPDOWN = 0x14f; 601 public static const int CB_SHOWDROPDOWN = 0x14f;
593 public static const int CBXS_NORMAL = 1; 602 public static const int CBXS_NORMAL = 1;
594 public static const int CBXS_HOT = 2; 603 public static const int CBXS_HOT = 2;
595 public static const int CBXS_PRESSED = 3; 604 public static const int CBXS_PRESSED = 3;
596 public static const int CBXS_DISABLED = 4; 605 public static const int CBXS_DISABLED = 4;
606 public static const int CCHILDREN_SCROLLBAR = 5;
597 public static const int CCM_FIRST = 0x2000; 607 public static const int CCM_FIRST = 0x2000;
598 public static const int CCM_SETBKCOLOR = 0x2001; 608 public static const int CCM_SETBKCOLOR = 0x2001;
599 public static const int CCM_SETVERSION = 0x2007; 609 public static const int CCM_SETVERSION = 0x2007;
600 public static const int CCS_NODIVIDER = 0x40; 610 public static const int CCS_NODIVIDER = 0x40;
601 public static const int CCS_NORESIZE = 0x4; 611 public static const int CCS_NORESIZE = 0x4;
649 public static const int CFM_STRIKEOUT = 0x8; 659 public static const int CFM_STRIKEOUT = 0x8;
650 public static const int CFM_UNDERLINE = 0x4; 660 public static const int CFM_UNDERLINE = 0x4;
651 public static const int CFM_WEIGHT = 0x400000; 661 public static const int CFM_WEIGHT = 0x400000;
652 public static const int CFS_POINT = 0x2; 662 public static const int CFS_POINT = 0x2;
653 public static const int CFS_RECT = 0x1; 663 public static const int CFS_RECT = 0x1;
664 public static const int CFS_CANDIDATEPOS = 0x0040;
665 public static const int CFS_EXCLUDE = 0x0080;
654 public static const int CF_EFFECTS = 0x100; 666 public static const int CF_EFFECTS = 0x100;
655 public static const int CF_INITTOLOGFONTSTRUCT = 0x40; 667 public static const int CF_INITTOLOGFONTSTRUCT = 0x40;
656 public static const int CF_SCREENFONTS = 0x1; 668 public static const int CF_SCREENFONTS = 0x1;
657 public static const int CF_TEXT = 0x1; 669 public static const int CF_TEXT = 0x1;
658 public static const int CF_UNICODETEXT = 13; 670 public static const int CF_UNICODETEXT = 13;
693 public static const int COMPLEXREGION = 0x3; 705 public static const int COMPLEXREGION = 0x3;
694 public static const int CP_ACP = 0x0; 706 public static const int CP_ACP = 0x0;
695 public static const int CP_UTF8 = 65001; 707 public static const int CP_UTF8 = 65001;
696 public static const int CP_DROPDOWNBUTTON = 1; 708 public static const int CP_DROPDOWNBUTTON = 1;
697 public static const int CP_INSTALLED = 0x1; 709 public static const int CP_INSTALLED = 0x1;
710 public static const int CPS_COMPLETE = 0x1;
698 public static const int CS_BYTEALIGNWINDOW = 0x2000; 711 public static const int CS_BYTEALIGNWINDOW = 0x2000;
699 public static const int CS_DBLCLKS = 0x8; 712 public static const int CS_DBLCLKS = 0x8;
700 public static const int CS_DROPSHADOW = 0x20000; 713 public static const int CS_DROPSHADOW = 0x20000;
701 public static const int CS_GLOBALCLASS = 0x4000; 714 public static const int CS_GLOBALCLASS = 0x4000;
702 public static const int CS_HREDRAW = 0x2; 715 public static const int CS_HREDRAW = 0x2;
707 public static const int DATE_SHORTDATE = 0x00000001; 720 public static const int DATE_SHORTDATE = 0x00000001;
708 public static const int DATE_YEARMONTH = 0x00000008; //#if(WINVER >= 0x0500) 721 public static const int DATE_YEARMONTH = 0x00000008; //#if(WINVER >= 0x0500)
709 public static const int DCX_CACHE = 0x2; 722 public static const int DCX_CACHE = 0x2;
710 public static const int DCX_CLIPCHILDREN = 0x8; 723 public static const int DCX_CLIPCHILDREN = 0x8;
711 public static const int DCX_CLIPSIBLINGS = 0x10; 724 public static const int DCX_CLIPSIBLINGS = 0x10;
725 public static const int DCX_INTERSECTRGN = 0x80;
726 public static const int DCX_WINDOW = 0x1;
712 public static const int DEFAULT_CHARSET = 0x1; 727 public static const int DEFAULT_CHARSET = 0x1;
713 public static const int DEFAULT_GUI_FONT = 0x11; 728 public static const int DEFAULT_GUI_FONT = 0x11;
714 public static const int DFCS_BUTTONCHECK = 0x0; 729 public static const int DFCS_BUTTONCHECK = 0x0;
715 public static const int DFCS_CHECKED = 0x400; 730 public static const int DFCS_CHECKED = 0x400;
716 public static const int DFCS_FLAT = 0x4000; 731 public static const int DFCS_FLAT = 0x4000;
757 public static const int DTM_GETSYSTEMTIME = DTM_FIRST + 1; 772 public static const int DTM_GETSYSTEMTIME = DTM_FIRST + 1;
758 public static const int DTM_SETFORMAT = IsUnicode ? DTM_FIRST + 50 : DTM_FIRST + 5; 773 public static const int DTM_SETFORMAT = IsUnicode ? DTM_FIRST + 50 : DTM_FIRST + 5;
759 public static const int DTM_SETSYSTEMTIME = DTM_FIRST + 2; 774 public static const int DTM_SETSYSTEMTIME = DTM_FIRST + 2;
760 public static const int DTN_FIRST = 0xFFFFFD08; 775 public static const int DTN_FIRST = 0xFFFFFD08;
761 public static const int DTN_DATETIMECHANGE = DTN_FIRST + 1; 776 public static const int DTN_DATETIMECHANGE = DTN_FIRST + 1;
777 public static const int DTN_CLOSEUP = DTN_FIRST + 7;
778 public static const int DTN_DROPDOWN = DTN_FIRST + 6;
762 public static const int DTS_LONGDATEFORMAT = 0x0004; 779 public static const int DTS_LONGDATEFORMAT = 0x0004;
763 public static const int DTS_SHORTDATECENTURYFORMAT = 0x000C; 780 public static const int DTS_SHORTDATECENTURYFORMAT = 0x000C;
764 public static const int DTS_SHORTDATEFORMAT = 0x0000; 781 public static const int DTS_SHORTDATEFORMAT = 0x0000;
765 public static const int DTS_TIMEFORMAT = 0x0009; 782 public static const int DTS_TIMEFORMAT = 0x0009;
766 public static const int DTS_UPDOWN = 0x0001; 783 public static const int DTS_UPDOWN = 0x0001;
784 public static const int DWM_BB_ENABLE = 0x1;
785 public static const int DWM_BB_BLURREGION = 0x2;
786 public static const int DWM_BB_TRANSITIONONMAXIMIZED = 0x4;
767 public static const int E_POINTER = 0x80004003; 787 public static const int E_POINTER = 0x80004003;
768 public static const int EBP_NORMALGROUPBACKGROUND = 5; 788 public static const int EBP_NORMALGROUPBACKGROUND = 5;
769 public static const int EBP_NORMALGROUPCOLLAPSE = 6; 789 public static const int EBP_NORMALGROUPCOLLAPSE = 6;
770 public static const int EBP_NORMALGROUPEXPAND = 7; 790 public static const int EBP_NORMALGROUPEXPAND = 7;
771 public static const int EBP_NORMALGROUPHEAD = 8; 791 public static const int EBP_NORMALGROUPHEAD = 8;
854 public static const int FVIRTKEY = 0x1; 874 public static const int FVIRTKEY = 0x1;
855 public static const int GBS_NORMAL = 1; 875 public static const int GBS_NORMAL = 1;
856 public static const int GBS_DISABLED = 2; 876 public static const int GBS_DISABLED = 2;
857 public static const int GCS_COMPSTR = 0x8; 877 public static const int GCS_COMPSTR = 0x8;
858 public static const int GCS_RESULTSTR = 0x800; 878 public static const int GCS_RESULTSTR = 0x800;
879 public static const int GCS_COMPATTR = 0x0010;
880 public static const int GCS_COMPCLAUSE = 0x0020;
881 public static const int GCS_CURSORPOS = 0x0080;
859 public static const int GDT_VALID = 0; 882 public static const int GDT_VALID = 0;
860 public static const int GET_FEATURE_FROM_PROCESS = 0x2; 883 public static const int GET_FEATURE_FROM_PROCESS = 0x2;
861 public static const int GLPS_CLOSED = 1; 884 public static const int GLPS_CLOSED = 1;
862 public static const int GLPS_OPENED = 2; 885 public static const int GLPS_OPENED = 2;
863 public static const int GM_ADVANCED = 2; 886 public static const int GM_ADVANCED = 2;
1024 public static const int IMAGE_ICON = 0x1; 1047 public static const int IMAGE_ICON = 0x1;
1025 public static const int IME_CMODE_FULLSHAPE = 0x8; 1048 public static const int IME_CMODE_FULLSHAPE = 0x8;
1026 public static const int IME_CMODE_KATAKANA = 0x2; 1049 public static const int IME_CMODE_KATAKANA = 0x2;
1027 public static const int IME_CMODE_NATIVE = 0x1; 1050 public static const int IME_CMODE_NATIVE = 0x1;
1028 public static const int IME_CMODE_ROMAN = 0x10; 1051 public static const int IME_CMODE_ROMAN = 0x10;
1052 public static const int IMEMOUSE_LDOWN = 1;
1029 public static const int INFINITE = 0xffffffff; 1053 public static const int INFINITE = 0xffffffff;
1030 public static const int INPUT_KEYBOARD = 1; 1054 public static const int INPUT_KEYBOARD = 1;
1031 public static const int INPUT_MOUSE = 0; 1055 public static const int INPUT_MOUSE = 0;
1032 public static const int INTERNET_OPTION_END_BROWSER_SESSION = 42; 1056 public static const int INTERNET_OPTION_END_BROWSER_SESSION = 42;
1033 public static const int KEY_ENUMERATE_SUB_KEYS = 0x8; 1057 public static const int KEY_ENUMERATE_SUB_KEYS = 0x8;
1067 public static const int LB_INITSTORAGE = 0x1a8; 1091 public static const int LB_INITSTORAGE = 0x1a8;
1068 public static const int LB_INSERTSTRING = 0x181; 1092 public static const int LB_INSERTSTRING = 0x181;
1069 public static const int LB_RESETCONTENT = 0x184; 1093 public static const int LB_RESETCONTENT = 0x184;
1070 public static const int LB_SELITEMRANGE = 0x19b; 1094 public static const int LB_SELITEMRANGE = 0x19b;
1071 public static const int LB_SELITEMRANGEEX = 0x183; 1095 public static const int LB_SELITEMRANGEEX = 0x183;
1096 public static const int LB_SETANCHORINDEX = 0xf19c;
1072 public static const int LB_SETCARETINDEX = 0x19e; 1097 public static const int LB_SETCARETINDEX = 0x19e;
1073 public static const int LB_SETCURSEL = 0x186; 1098 public static const int LB_SETCURSEL = 0x186;
1074 public static const int LB_SETHORIZONTALEXTENT = 0x194; 1099 public static const int LB_SETHORIZONTALEXTENT = 0x194;
1075 public static const int LB_SETSEL = 0x185; 1100 public static const int LB_SETSEL = 0x185;
1076 public static const int LB_SETTOPINDEX = 0x197; 1101 public static const int LB_SETTOPINDEX = 0x197;
1199 public static const int LVM_SETITEMSTATE = 0x102b; 1224 public static const int LVM_SETITEMSTATE = 0x102b;
1200 public static const int LVM_SETSELECTIONMARK = LVM_FIRST + 67; 1225 public static const int LVM_SETSELECTIONMARK = LVM_FIRST + 67;
1201 public static const int LVM_SETSELECTEDCOLUMN = LVM_FIRST + 140; 1226 public static const int LVM_SETSELECTEDCOLUMN = LVM_FIRST + 140;
1202 public static const int LVM_SETTEXTBKCOLOR = 0x1026; 1227 public static const int LVM_SETTEXTBKCOLOR = 0x1026;
1203 public static const int LVM_SETTEXTCOLOR = 0x1024; 1228 public static const int LVM_SETTEXTCOLOR = 0x1024;
1229 public static const int LVM_SETTOOLTIPS = LVM_FIRST + 74;
1230 public static const int LVM_SUBITEMHITTEST = LVM_FIRST + 57;
1204 public static const int LVNI_FOCUSED = 0x1; 1231 public static const int LVNI_FOCUSED = 0x1;
1205 public static const int LVNI_SELECTED = 0x2; 1232 public static const int LVNI_SELECTED = 0x2;
1206 public static const int LVN_BEGINDRAG = 0xffffff93; 1233 public static const int LVN_BEGINDRAG = 0xffffff93;
1207 public static const int LVN_BEGINRDRAG = 0xffffff91; 1234 public static const int LVN_BEGINRDRAG = 0xffffff91;
1208 public static const int LVN_COLUMNCLICK = 0xffffff94; 1235 public static const int LVN_COLUMNCLICK = 0xffffff94;
1266 public static const int MCM_FIRST = 0x1000; 1293 public static const int MCM_FIRST = 0x1000;
1267 public static const int MCM_GETCURSEL = MCM_FIRST + 1; 1294 public static const int MCM_GETCURSEL = MCM_FIRST + 1;
1268 public static const int MCM_SETCURSEL = MCM_FIRST + 2; 1295 public static const int MCM_SETCURSEL = MCM_FIRST + 2;
1269 public static const int MCN_FIRST = 0xFFFFFD12; 1296 public static const int MCN_FIRST = 0xFFFFFD12;
1270 public static const int MCN_SELCHANGE = MCN_FIRST + 1; 1297 public static const int MCN_SELCHANGE = MCN_FIRST + 1;
1298 public static const int MCN_SELECT = MCN_FIRST + 4;
1271 public static const int MCM_GETMINREQRECT = MCM_FIRST + 9; 1299 public static const int MCM_GETMINREQRECT = MCM_FIRST + 9;
1272 public static const int MCS_NOTODAY = 0x0010; 1300 public static const int MCS_NOTODAY = 0x0010;
1273 public static const int MDIS_ALLCHILDSTYLES = 0x0001; 1301 public static const int MDIS_ALLCHILDSTYLES = 0x0001;
1274 public static const int MFS_CHECKED = 0x8; 1302 public static const int MFS_CHECKED = 0x8;
1275 public static const int MFS_DISABLED = 0x3; 1303 public static const int MFS_DISABLED = 0x3;
1292 public static const int MF_UNCHECKED = 0x0; 1320 public static const int MF_UNCHECKED = 0x0;
1293 public static const int MIIM_BITMAP = 0x80; 1321 public static const int MIIM_BITMAP = 0x80;
1294 public static const int MIIM_DATA = 0x20; 1322 public static const int MIIM_DATA = 0x20;
1295 public static const int MIIM_ID = 0x2; 1323 public static const int MIIM_ID = 0x2;
1296 public static const int MIIM_STATE = 0x1; 1324 public static const int MIIM_STATE = 0x1;
1325 public static const int MIIM_STRING = 0x40;
1297 public static const int MIIM_SUBMENU = 0x4; 1326 public static const int MIIM_SUBMENU = 0x4;
1298 public static const int MIIM_TYPE = 0x10; 1327 public static const int MIIM_TYPE = 0x10;
1299 public static const int MIM_BACKGROUND = 0x2; 1328 public static const int MIM_BACKGROUND = 0x2;
1300 public static const int MIM_STYLE = 0x10; 1329 public static const int MIM_STYLE = 0x10;
1301 public static const int MK_ALT = 0x20; 1330 public static const int MK_ALT = 0x20;
1336 public static const int MSGF_NEXTWINDOW = 6; 1365 public static const int MSGF_NEXTWINDOW = 6;
1337 public static const int MSGF_SCROLLBAR = 5; 1366 public static const int MSGF_SCROLLBAR = 5;
1338 public static const int MSGF_SIZE = 4; 1367 public static const int MSGF_SIZE = 4;
1339 public static const int MSGF_USER = 4096; 1368 public static const int MSGF_USER = 4096;
1340 public static const int MWMO_INPUTAVAILABLE = 0x4; 1369 public static const int MWMO_INPUTAVAILABLE = 0x4;
1370 public static const int NI_COMPOSITIONSTR = 0x15;
1341 public static const int NIF_ICON = 0x00000002; 1371 public static const int NIF_ICON = 0x00000002;
1342 public static const int NIF_INFO = 0x00000010; 1372 public static const int NIF_INFO = 0x00000010;
1343 public static const int NIF_MESSAGE = 0x00000001; 1373 public static const int NIF_MESSAGE = 0x00000001;
1344 public static const int NIF_STATE = 0x00000008; 1374 public static const int NIF_STATE = 0x00000008;
1345 public static const int NIF_TIP = 0x00000004; 1375 public static const int NIF_TIP = 0x00000004;
1378 public static const int OBJID_MENU = 0xFFFFFFFD; 1408 public static const int OBJID_MENU = 0xFFFFFFFD;
1379 public static const int OBJID_WINDOW = 0x00000000; 1409 public static const int OBJID_WINDOW = 0x00000000;
1380 public static const int OBJ_BITMAP = 0x7; 1410 public static const int OBJ_BITMAP = 0x7;
1381 public static const int OBJ_FONT = 0x6; 1411 public static const int OBJ_FONT = 0x6;
1382 public static const int OBJ_PEN = 0x1; 1412 public static const int OBJ_PEN = 0x1;
1413 public static const int OBJID_HSCROLL = 0xFFFFFFFA;
1414 public static const int OBJID_VSCROLL = 0xFFFFFFFB;
1383 public static const TCHAR* OBM_CHECKBOXES = cast(TCHAR*)0x7ff7; 1415 public static const TCHAR* OBM_CHECKBOXES = cast(TCHAR*)0x7ff7;
1384 public static const int ODS_SELECTED = 0x1; 1416 public static const int ODS_SELECTED = 0x1;
1385 public static const int ODT_MENU = 0x1; 1417 public static const int ODT_MENU = 0x1;
1386 public static const int OFN_ALLOWMULTISELECT = 0x200; 1418 public static const int OFN_ALLOWMULTISELECT = 0x200;
1387 public static const int OFN_EXPLORER = 0x80000; 1419 public static const int OFN_EXPLORER = 0x80000;
1388 public static const int OFN_ENABLEHOOK = 0x20; 1420 public static const int OFN_ENABLEHOOK = 0x20;
1389 public static const int OFN_HIDEREADONLY = 0x4; 1421 public static const int OFN_HIDEREADONLY = 0x4;
1390 public static const int OFN_NOCHANGEDIR = 0x8; 1422 public static const int OFN_NOCHANGEDIR = 0x8;
1423 public static const int OFN_OVERWRITEPROMPT = 0x2;
1391 public static const int OIC_BANG = 0x7F03; 1424 public static const int OIC_BANG = 0x7F03;
1392 public static const int OIC_HAND = 0x7F01; 1425 public static const int OIC_HAND = 0x7F01;
1393 public static const int OIC_INFORMATION = 0x7F04; 1426 public static const int OIC_INFORMATION = 0x7F04;
1394 public static const int OIC_QUES = 0x7F02; 1427 public static const int OIC_QUES = 0x7F02;
1395 public static const int OIC_WINLOGO = 0x7F05; 1428 public static const int OIC_WINLOGO = 0x7F05;
1608 public static const int SM_CXBORDER = 0x5; 1641 public static const int SM_CXBORDER = 0x5;
1609 public static const int SM_CXCURSOR = 0xd; 1642 public static const int SM_CXCURSOR = 0xd;
1610 public static const int SM_CXDOUBLECLK = 36; 1643 public static const int SM_CXDOUBLECLK = 36;
1611 public static const int SM_CYDOUBLECLK = 37; 1644 public static const int SM_CYDOUBLECLK = 37;
1612 public static const int SM_CXEDGE = 0x2d; 1645 public static const int SM_CXEDGE = 0x2d;
1646 public static const int SM_CXFOCUSBORDER = 83;
1613 public static const int SM_CXHSCROLL = 0x15; 1647 public static const int SM_CXHSCROLL = 0x15;
1614 public static const int SM_CXICON = 0x0b; 1648 public static const int SM_CXICON = 0x0b;
1615 public static const int SM_CYICON = 0x0c; 1649 public static const int SM_CYICON = 0x0c;
1616 public static const int SM_CXVIRTUALSCREEN = 78; 1650 public static const int SM_CXVIRTUALSCREEN = 78;
1617 public static const int SM_CYVIRTUALSCREEN = 79; 1651 public static const int SM_CYVIRTUALSCREEN = 79;
1621 public static const int SM_XVIRTUALSCREEN = 76; 1655 public static const int SM_XVIRTUALSCREEN = 76;
1622 public static const int SM_YVIRTUALSCREEN = 77; 1656 public static const int SM_YVIRTUALSCREEN = 77;
1623 public static const int SM_CXVSCROLL = 0x2; 1657 public static const int SM_CXVSCROLL = 0x2;
1624 public static const int SM_CYBORDER = 0x6; 1658 public static const int SM_CYBORDER = 0x6;
1625 public static const int SM_CYCURSOR = 0xe; 1659 public static const int SM_CYCURSOR = 0xe;
1660 public static const int SM_CYFOCUSBORDER = 84;
1626 public static const int SM_CYHSCROLL = 0x3; 1661 public static const int SM_CYHSCROLL = 0x3;
1627 public static const int SM_CYMENU = 0xf; 1662 public static const int SM_CYMENU = 0xf;
1628 public static const int SM_CXMINTRACK = 34; 1663 public static const int SM_CXMINTRACK = 34;
1629 public static const int SM_CYMINTRACK = 35; 1664 public static const int SM_CYMINTRACK = 35;
1630 public static const int SM_CMOUSEBUTTONS = 43; 1665 public static const int SM_CMOUSEBUTTONS = 43;
1633 // public static const int SM_DBCSENABLED = 0x2A; 1668 // public static const int SM_DBCSENABLED = 0x2A;
1634 // public static const int SM_IMMENABLED = 0x52; 1669 // public static const int SM_IMMENABLED = 0x52;
1635 public static const int SPI_GETFONTSMOOTHINGTYPE = 0x200A; 1670 public static const int SPI_GETFONTSMOOTHINGTYPE = 0x200A;
1636 public static const int SPI_GETHIGHCONTRAST = 66; 1671 public static const int SPI_GETHIGHCONTRAST = 66;
1637 public static const int SPI_GETWORKAREA = 0x30; 1672 public static const int SPI_GETWORKAREA = 0x30;
1673 public static const int SPI_GETMOUSEVANISH = 0x1020;
1638 public static const int SPI_GETNONCLIENTMETRICS = 41; 1674 public static const int SPI_GETNONCLIENTMETRICS = 41;
1639 public static const int SPI_GETWHEELSCROLLLINES = 104; 1675 public static const int SPI_GETWHEELSCROLLLINES = 104;
1676 public static const int SPI_GETCARETWIDTH = 0x2006;
1640 public static const int SPI_SETSIPINFO = 224; 1677 public static const int SPI_SETSIPINFO = 224;
1641 public static const int SPI_SETHIGHCONTRAST = 67; 1678 public static const int SPI_SETHIGHCONTRAST = 67;
1642 public static const int SRCAND = 0x8800c6; 1679 public static const int SRCAND = 0x8800c6;
1643 public static const int SRCCOPY = 0xcc0020; 1680 public static const int SRCCOPY = 0xcc0020;
1644 public static const int SRCINVERT = 0x660046; 1681 public static const int SRCINVERT = 0x660046;
1654 public static const int SS_OWNERDRAW = 0xd; 1691 public static const int SS_OWNERDRAW = 0xd;
1655 public static const int SS_REALSIZEIMAGE = 0x800; 1692 public static const int SS_REALSIZEIMAGE = 0x800;
1656 public static const int SS_RIGHT = 0x2; 1693 public static const int SS_RIGHT = 0x2;
1657 public static const int STANDARD_RIGHTS_READ = 0x20000; 1694 public static const int STANDARD_RIGHTS_READ = 0x20000;
1658 public static const int STARTF_USESHOWWINDOW = 0x1; 1695 public static const int STARTF_USESHOWWINDOW = 0x1;
1696 public static const int STATE_SYSTEM_INVISIBLE = 0x00008000;
1697 public static const int STATE_SYSTEM_OFFSCREEN = 0x00010000;
1698 public static const int STATE_SYSTEM_UNAVAILABLE = 0x00000001;
1659 public static const int STD_COPY = 0x1; 1699 public static const int STD_COPY = 0x1;
1660 public static const int STD_CUT = 0x0; 1700 public static const int STD_CUT = 0x0;
1661 public static const int STD_FILENEW = 0x6; 1701 public static const int STD_FILENEW = 0x6;
1662 public static const int STD_FILEOPEN = 0x7; 1702 public static const int STD_FILEOPEN = 0x7;
1663 public static const int STD_FILESAVE = 0x8; 1703 public static const int STD_FILESAVE = 0x8;
1785 public static const int TCM_DELETEITEM = 0x1308; 1825 public static const int TCM_DELETEITEM = 0x1308;
1786 public static const int TCM_GETCURSEL = 0x130b; 1826 public static const int TCM_GETCURSEL = 0x130b;
1787 public static const int TCM_GETITEMCOUNT = 0x1304; 1827 public static const int TCM_GETITEMCOUNT = 0x1304;
1788 public static const int TCM_GETITEMRECT = 0x130a; 1828 public static const int TCM_GETITEMRECT = 0x130a;
1789 public static const int TCM_GETTOOLTIPS = 0x132d; 1829 public static const int TCM_GETTOOLTIPS = 0x132d;
1830 public static const int TCM_HITTEST = 0x130d;
1790 public static const int TCM_INSERTITEM = IsUnicode ? 0x133e : 0x1307; 1831 public static const int TCM_INSERTITEM = IsUnicode ? 0x133e : 0x1307;
1791 public static const int TCM_SETCURSEL = 0x130c; 1832 public static const int TCM_SETCURSEL = 0x130c;
1792 public static const int TCM_SETIMAGELIST = 0x1303; 1833 public static const int TCM_SETIMAGELIST = 0x1303;
1793 public static const int TCM_SETITEM = IsUnicode ? 0x133d : 0x1306; 1834 public static const int TCM_SETITEM = IsUnicode ? 0x133d : 0x1306;
1794 public static const int TCN_SELCHANGE = 0xfffffdd9; 1835 public static const int TCN_SELCHANGE = 0xfffffdd9;
1797 public static const int TCS_FOCUSNEVER = 0x8000; 1838 public static const int TCS_FOCUSNEVER = 0x8000;
1798 public static const int TCS_MULTILINE = 0x200; 1839 public static const int TCS_MULTILINE = 0x200;
1799 public static const int TCS_TABS = 0x0; 1840 public static const int TCS_TABS = 0x0;
1800 public static const int TCS_TOOLTIPS = 0x4000; 1841 public static const int TCS_TOOLTIPS = 0x4000;
1801 public static const int TECHNOLOGY = 0x2; 1842 public static const int TECHNOLOGY = 0x2;
1843 public static const int TF_ATTR_INPUT = 0;
1844 public static const int TF_ATTR_TARGET_CONVERTED = 1;
1845 public static const int TF_ATTR_CONVERTED = 2;
1846 public static const int TF_ATTR_TARGET_NOTCONVERTED = 3;
1847 public static const int TF_ATTR_INPUT_ERROR = 4;
1848 public static const int TF_ATTR_FIXEDCONVERTED = 5;
1849 public static const int TF_ATTR_OTHER = -1;
1850 public alias TF_DA_COLORTYPE.TF_CT_NONE TF_CT_NONE;
1851 public alias TF_DA_COLORTYPE.TF_CT_SYSCOLOR TF_CT_SYSCOLOR;
1852 public alias TF_DA_COLORTYPE.TF_CT_COLORREF TF_CT_COLORREF;
1853 public alias TF_DA_LINESTYLE.TF_LS_NONE TF_LS_NONE;
1854 public alias TF_DA_LINESTYLE.TF_LS_SOLID TF_LS_SOLID;
1855 public alias TF_DA_LINESTYLE.TF_LS_DOT TF_LS_DOT;
1856 public alias TF_DA_LINESTYLE.TF_LS_DASH TF_LS_DASH;
1857 public alias TF_DA_LINESTYLE.TF_LS_SQUIGGLE TF_LS_SQUIGGLE;
1802 public static const int TIME_NOSECONDS = 0x2; 1858 public static const int TIME_NOSECONDS = 0x2;
1803 public static const int TIS_NORMAL = 1; 1859 public static const int TIS_NORMAL = 1;
1804 public static const int TIS_HOT = 2; 1860 public static const int TIS_HOT = 2;
1805 public static const int TIS_SELECTED = 3; 1861 public static const int TIS_SELECTED = 3;
1806 public static const int TIS_DISABLED = 4; 1862 public static const int TIS_DISABLED = 4;
1862 public static const int TTI_INFO = 1; 1918 public static const int TTI_INFO = 1;
1863 public static const int TTI_WARNING = 2; 1919 public static const int TTI_WARNING = 2;
1864 public static const int TTI_ERROR= 3; 1920 public static const int TTI_ERROR= 3;
1865 public static const int TTM_ACTIVATE = 0x400 + 1; 1921 public static const int TTM_ACTIVATE = 0x400 + 1;
1866 public static const int TTM_ADDTOOL = IsUnicode ? 0x432 : 0x404; 1922 public static const int TTM_ADDTOOL = IsUnicode ? 0x432 : 0x404;
1923 public static const int TTM_ADJUSTRECT = 0x400 + 31;
1867 public static const int TTM_GETCURRENTTOOLA = 0x400 + 15; 1924 public static const int TTM_GETCURRENTTOOLA = 0x400 + 15;
1868 public static const int TTM_GETCURRENTTOOLW = 0x400 + 59; 1925 public static const int TTM_GETCURRENTTOOLW = 0x400 + 59;
1869 public static const int TTM_GETCURRENTTOOL = 0x400 + (IsUnicode ? 59 : 15); 1926 public static const int TTM_GETCURRENTTOOL = 0x400 + (IsUnicode ? 59 : 15);
1870 public static const int TTM_GETDELAYTIME = 0x400 + 21; 1927 public static const int TTM_GETDELAYTIME = 0x400 + 21;
1871 public static const int TTM_DELTOOL = IsUnicode ? 0x433 : 0x405; 1928 public static const int TTM_DELTOOL = IsUnicode ? 0x433 : 0x405;
1886 public static const int TTN_GETDISPINFOA = 0xfffffdf8; 1943 public static const int TTN_GETDISPINFOA = 0xfffffdf8;
1887 public static const int TTN_POP = TTN_FIRST - 2; 1944 public static const int TTN_POP = TTN_FIRST - 2;
1888 public static const int TTN_SHOW = TTN_FIRST - 1; 1945 public static const int TTN_SHOW = TTN_FIRST - 1;
1889 public static const int TTS_ALWAYSTIP = 0x1; 1946 public static const int TTS_ALWAYSTIP = 0x1;
1890 public static const int TTS_BALLOON = 0x40; 1947 public static const int TTS_BALLOON = 0x40;
1948 public static const int TTS_NOANIMATE = 0x10;
1949 public static const int TTS_NOFADE = 0x20;
1950 public static const int TTS_NOPREFIX = 0x02;
1891 public static const int TV_FIRST = 0x1100; 1951 public static const int TV_FIRST = 0x1100;
1892 public static const int TVE_COLLAPSE = 0x1; 1952 public static const int TVE_COLLAPSE = 0x1;
1893 public static const int TVE_COLLAPSERESET = 0x8000; 1953 public static const int TVE_COLLAPSERESET = 0x8000;
1894 public static const int TVE_EXPAND = 0x2; 1954 public static const int TVE_EXPAND = 0x2;
1895 public static const int TVGN_CARET = 0x9; 1955 public static const int TVGN_CARET = 0x9;
1904 public static const int TVGN_PREVIOUSVISIBLE = 0x7; 1964 public static const int TVGN_PREVIOUSVISIBLE = 0x7;
1905 public static const int TVGN_ROOT = 0x0; 1965 public static const int TVGN_ROOT = 0x0;
1906 public static const int TVHT_ONITEM = 0x46; 1966 public static const int TVHT_ONITEM = 0x46;
1907 public static const int TVHT_ONITEMBUTTON = 16; 1967 public static const int TVHT_ONITEMBUTTON = 16;
1908 public static const int TVHT_ONITEMICON = 0x2; 1968 public static const int TVHT_ONITEMICON = 0x2;
1969 public static const int TVHT_ONITEMINDENT = 0x8;
1970 public static const int TVHT_ONITEMRIGHT = 0x20;
1909 public static const int TVHT_ONITEMLABEL = 0x4; 1971 public static const int TVHT_ONITEMLABEL = 0x4;
1910 public static const int TVHT_ONITEMSTATEICON = 0x40; 1972 public static const int TVHT_ONITEMSTATEICON = 0x40;
1911 public static const int TVIF_HANDLE = 0x10; 1973 public static const int TVIF_HANDLE = 0x10;
1912 public static const int TVIF_IMAGE = 0x2; 1974 public static const int TVIF_IMAGE = 0x2;
1913 public static const int TVIF_INTEGRAL = 0x0080; 1975 public static const int TVIF_INTEGRAL = 0x0080;
1917 public static const int TVIF_TEXT = 0x1; 1979 public static const int TVIF_TEXT = 0x1;
1918 public static const int TVIS_DROPHILITED = 0x8; 1980 public static const int TVIS_DROPHILITED = 0x8;
1919 public static const int TVIS_EXPANDED = 0x20; 1981 public static const int TVIS_EXPANDED = 0x20;
1920 public static const int TVIS_SELECTED = 0x2; 1982 public static const int TVIS_SELECTED = 0x2;
1921 public static const int TVIS_STATEIMAGEMASK = 0xf000; 1983 public static const int TVIS_STATEIMAGEMASK = 0xf000;
1922 public static const int TVI_FIRST = 0xffff0001; 1984 public static const int /*long*/ TVI_FIRST = -0x0FFFF;
1923 public static const int TVI_LAST = 0xffff0002; 1985 public static const int /*long*/ TVI_LAST = -0x0FFFE;
1924 public static const int TVI_ROOT = 0xffff0000; 1986 public static const int /*long*/ TVI_ROOT = -0x10000;
1925 public static const int TVI_SORT = 0xFFFF0003; 1987 public static const int /*long*/ TVI_SORT = -0x0FFFD;
1926 public static const int TVM_CREATEDRAGIMAGE = TV_FIRST + 18; 1988 public static const int TVM_CREATEDRAGIMAGE = TV_FIRST + 18;
1927 public static const int TVM_DELETEITEM = 0x1101; 1989 public static const int TVM_DELETEITEM = 0x1101;
1928 public static const int TVM_ENSUREVISIBLE = 0x1114; 1990 public static const int TVM_ENSUREVISIBLE = 0x1114;
1929 public static const int TVM_EXPAND = 0x1102; 1991 public static const int TVM_EXPAND = 0x1102;
1930 public static const int TVM_GETBKCOLOR = 0x111f; 1992 public static const int TVM_GETBKCOLOR = 0x111f;
1990 public static const int TVS_HASBUTTONS = 0x1; 2052 public static const int TVS_HASBUTTONS = 0x1;
1991 public static const int TVS_HASLINES = 0x2; 2053 public static const int TVS_HASLINES = 0x2;
1992 public static const int TVS_LINESATROOT = 0x4; 2054 public static const int TVS_LINESATROOT = 0x4;
1993 public static const int TVS_NOHSCROLL = 0x8000; 2055 public static const int TVS_NOHSCROLL = 0x8000;
1994 public static const int TVS_NONEVENHEIGHT = 0x4000; 2056 public static const int TVS_NONEVENHEIGHT = 0x4000;
2057 public static const int TVS_NOSCROLL = 0x2000;
1995 public static const int TVS_NOTOOLTIPS = 0x80; 2058 public static const int TVS_NOTOOLTIPS = 0x80;
1996 public static const int TVS_SHOWSELALWAYS = 0x20; 2059 public static const int TVS_SHOWSELALWAYS = 0x20;
1997 public static const int TVS_TRACKSELECT = 0x200; 2060 public static const int TVS_TRACKSELECT = 0x200;
1998 public static const int UDM_GETACCEL = 0x046C; 2061 public static const int UDM_GETACCEL = 0x046C;
1999 public static const int UDM_GETRANGE32 = 0x0470; 2062 public static const int UDM_GETRANGE32 = 0x0470;
2006 public static const int UDN_DELTAPOS = -722; 2069 public static const int UDN_DELTAPOS = -722;
2007 public static const int UDS_ALIGNLEFT = 0x008; 2070 public static const int UDS_ALIGNLEFT = 0x008;
2008 public static const int UDS_ALIGNRIGHT = 0x004; 2071 public static const int UDS_ALIGNRIGHT = 0x004;
2009 public static const int UDS_AUTOBUDDY = 0x0010; 2072 public static const int UDS_AUTOBUDDY = 0x0010;
2010 public static const int UDS_WRAP = 0x0001; 2073 public static const int UDS_WRAP = 0x0001;
2074 public static const int UIS_CLEAR = 2;
2011 public static const int UIS_INITIALIZE = 3; 2075 public static const int UIS_INITIALIZE = 3;
2076 public static const int UIS_SET = 1;
2012 public static const int UISF_HIDEACCEL = 0x2; 2077 public static const int UISF_HIDEACCEL = 0x2;
2013 public static const int UISF_HIDEFOCUS = 0x1; 2078 public static const int UISF_HIDEFOCUS = 0x1;
2014 public static const TCHAR[] UPDOWN_CLASS = "msctls_updown32"; //$NON-NLS-1$ 2079 public static const TCHAR[] UPDOWN_CLASS = "msctls_updown32"; //$NON-NLS-1$
2015 public static const int USP_E_SCRIPT_NOT_IN_FONT = 0x80040200; 2080 public static const int USP_E_SCRIPT_NOT_IN_FONT = 0x80040200;
2016 public static const int VERTRES = 0xa; 2081 public static const int VERTRES = 0xa;
2045 public static const int VK_LEFT = 0x25; 2110 public static const int VK_LEFT = 0x25;
2046 public static const int VK_MBUTTON = 0x4; 2111 public static const int VK_MBUTTON = 0x4;
2047 public static const int VK_MENU = 0x12; 2112 public static const int VK_MENU = 0x12;
2048 public static const int VK_MULTIPLY = 0x6A; 2113 public static const int VK_MULTIPLY = 0x6A;
2049 public static const int VK_N = 0x4e; 2114 public static const int VK_N = 0x4e;
2050 public static const int VK_O = 0x4f;
2051 public static const int VK_NEXT = 0x22; 2115 public static const int VK_NEXT = 0x22;
2052 public static const int VK_NUMLOCK = 0x90; 2116 public static const int VK_NUMLOCK = 0x90;
2053 public static const int VK_NUMPAD0 = 0x60; 2117 public static const int VK_NUMPAD0 = 0x60;
2054 public static const int VK_NUMPAD1 = 0x61; 2118 public static const int VK_NUMPAD1 = 0x61;
2055 public static const int VK_NUMPAD2 = 0x62; 2119 public static const int VK_NUMPAD2 = 0x62;
2096 public static const int WHEEL_PAGESCROLL = 0xFFFFFFFF; 2160 public static const int WHEEL_PAGESCROLL = 0xFFFFFFFF;
2097 public static const int WHITE_BRUSH = 0; 2161 public static const int WHITE_BRUSH = 0;
2098 public static const int WM_ACTIVATE = 0x6; 2162 public static const int WM_ACTIVATE = 0x6;
2099 public static const int WM_ACTIVATEAPP = 0x1c; 2163 public static const int WM_ACTIVATEAPP = 0x1c;
2100 public static const int WM_APP = 0x8000; 2164 public static const int WM_APP = 0x8000;
2165 public static const int WM_DWMCOLORIZATIONCOLORCHANGED = 0x320;
2101 public static const int WM_CANCELMODE = 0x1f; 2166 public static const int WM_CANCELMODE = 0x1f;
2102 public static const int WM_CAPTURECHANGED = 0x0215; 2167 public static const int WM_CAPTURECHANGED = 0x0215;
2103 public static const int WM_CHANGEUISTATE = 0x0127; 2168 public static const int WM_CHANGEUISTATE = 0x0127;
2104 public static const int WM_CHAR = 0x102; 2169 public static const int WM_CHAR = 0x102;
2105 public static const int WM_CLEAR = 0x303; 2170 public static const int WM_CLEAR = 0x303;
2130 public static const int WM_HELP = 0x53; 2195 public static const int WM_HELP = 0x53;
2131 public static const int WM_HOTKEY = 0x0312; 2196 public static const int WM_HOTKEY = 0x0312;
2132 public static const int WM_HSCROLL = 0x114; 2197 public static const int WM_HSCROLL = 0x114;
2133 public static const int WM_IME_CHAR = 0x286; 2198 public static const int WM_IME_CHAR = 0x286;
2134 public static const int WM_IME_COMPOSITION = 0x10f; 2199 public static const int WM_IME_COMPOSITION = 0x10f;
2200 public static const int WM_IME_COMPOSITION_START = 0x010D;
2201 public static const int WM_IME_ENDCOMPOSITION = 0x010E;
2135 public static const int WM_INITDIALOG = 0x110; 2202 public static const int WM_INITDIALOG = 0x110;
2136 public static const int WM_INITMENUPOPUP = 0x117; 2203 public static const int WM_INITMENUPOPUP = 0x117;
2137 public static const int WM_INPUTLANGCHANGE = 0x51; 2204 public static const int WM_INPUTLANGCHANGE = 0x51;
2138 public static const int WM_KEYDOWN = 0x100; 2205 public static const int WM_KEYDOWN = 0x100;
2139 public static const int WM_KEYFIRST = 0x100; 2206 public static const int WM_KEYFIRST = 0x100;
2204 public static const int WS_CHILD = 0x40000000; 2271 public static const int WS_CHILD = 0x40000000;
2205 public static const int WS_MINIMIZE = 0x20000000; //PORTING_TODO: from dwt, why? 2272 public static const int WS_MINIMIZE = 0x20000000; //PORTING_TODO: from dwt, why?
2206 public static const int WS_CLIPCHILDREN = 0x2000000; 2273 public static const int WS_CLIPCHILDREN = 0x2000000;
2207 public static const int WS_CLIPSIBLINGS = 0x4000000; 2274 public static const int WS_CLIPSIBLINGS = 0x4000000;
2208 public static const int WS_DISABLED = 0x4000000; 2275 public static const int WS_DISABLED = 0x4000000;
2276 public static const int WS_EX_APPWINDOW = 0x40000;
2209 public static const int WS_EX_CAPTIONOKBTN = 0x80000000; 2277 public static const int WS_EX_CAPTIONOKBTN = 0x80000000;
2210 public static const int WS_EX_CLIENTEDGE = 0x200; 2278 public static const int WS_EX_CLIENTEDGE = 0x200;
2279 public static const int WS_EX_COMPOSITED = 0x2000000;
2211 public static const int WS_EX_DLGMODALFRAME = 0x1; 2280 public static const int WS_EX_DLGMODALFRAME = 0x1;
2212 public static const int WS_EX_LAYERED = 0x00080000; 2281 public static const int WS_EX_LAYERED = 0x00080000;
2213 public static const int WS_EX_LAYOUTRTL = 0x00400000; 2282 public static const int WS_EX_LAYOUTRTL = 0x00400000;
2214 public static const int WS_EX_LEFTSCROLLBAR = 0x00004000; 2283 public static const int WS_EX_LEFTSCROLLBAR = 0x00004000;
2215 public static const int WS_EX_MDICHILD = 0x00000040; 2284 public static const int WS_EX_MDICHILD = 0x00000040;
2241 2310
2242 //PORTING_LEFT 2311 //PORTING_LEFT
2243 /++ 2312 /++
2244 /** Ansi/Unicode wrappers */ 2313 /** Ansi/Unicode wrappers */
2245 2314
2246 public static final int /*long*/ AddFontResourceEx (TCHAR lpszFilename, int fl, int /*long*/ pdv) { 2315 public static const int /*long*/ AddFontResourceEx (TCHAR lpszFilename, int fl, int /*long*/ pdv) {
2247 if (IsUnicode) { 2316 if (IsUnicode) {
2248 char [] lpszFilename1 = lpszFilename is null ? null : lpszFilename.chars; 2317 char [] lpszFilename1 = lpszFilename is null ? null : lpszFilename.chars;
2249 return AddFontResourceExW (lpszFilename1, fl, pdv); 2318 return AddFontResourceExW (lpszFilename1, fl, pdv);
2250 } 2319 }
2251 byte [] lpszFilename1 = lpszFilename is null ? null : lpszFilename.bytes; 2320 byte [] lpszFilename1 = lpszFilename is null ? null : lpszFilename.bytes;
2252 return AddFontResourceExA (lpszFilename1, fl, pdv); 2321 return AddFontResourceExA (lpszFilename1, fl, pdv);
2253 } 2322 }
2254 2323
2255 public static final int /*long*/ AssocQueryString(int flags, int str, TCHAR pszAssoc, TCHAR pszExtra, TCHAR pszOut, int[] pcchOut) { 2324 public static const int /*long*/ AssocQueryString(int flags, int str, TCHAR pszAssoc, TCHAR pszExtra, TCHAR pszOut, int[] pcchOut) {
2256 if (IsUnicode) { 2325 if (IsUnicode) {
2257 char [] pszAssoc1 = pszAssoc is null ? null : pszAssoc.chars; 2326 char [] pszAssoc1 = pszAssoc is null ? null : pszAssoc.chars;
2258 char [] pszExtra1 = pszExtra is null ? null : pszExtra.chars; 2327 char [] pszExtra1 = pszExtra is null ? null : pszExtra.chars;
2259 char [] pszOut1 = pszOut is null ? null : pszOut.chars; 2328 char [] pszOut1 = pszOut is null ? null : pszOut.chars;
2260 return AssocQueryStringW (flags, str, pszAssoc1, pszExtra1, pszOut1, pcchOut); 2329 return AssocQueryStringW (flags, str, pszAssoc1, pszExtra1, pszOut1, pcchOut);
2263 byte [] pszExtra1 = pszExtra is null ? null : pszExtra.bytes; 2332 byte [] pszExtra1 = pszExtra is null ? null : pszExtra.bytes;
2264 byte [] pszOut1 = pszOut is null ? null : pszOut.bytes; 2333 byte [] pszOut1 = pszOut is null ? null : pszOut.bytes;
2265 return AssocQueryStringA (flags, str, pszAssoc1, pszExtra1, pszOut1, pcchOut); 2334 return AssocQueryStringA (flags, str, pszAssoc1, pszExtra1, pszOut1, pcchOut);
2266 } 2335 }
2267 2336
2268 public static final int /*long*/ CallWindowProc (int /*long*/ lpPrevWndFunc, int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) { 2337 public static const int /*long*/ CallWindowProc (int /*long*/ lpPrevWndFunc, int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2269 if (IsUnicode) return CallWindowProcW (lpPrevWndFunc, hWnd, Msg, wParam, lParam); 2338 if (IsUnicode) return CallWindowProcW (lpPrevWndFunc, hWnd, Msg, wParam, lParam);
2270 return CallWindowProcA (lpPrevWndFunc, hWnd, Msg, wParam, lParam); 2339 return CallWindowProcA (lpPrevWndFunc, hWnd, Msg, wParam, lParam);
2271 } 2340 }
2272 2341
2273 public static final short CharUpper (short ch) { 2342 public static final short CharUpper (short ch) {
2288 public static final BOOL ChooseFont (CHOOSEFONT chooseFont) { 2357 public static final BOOL ChooseFont (CHOOSEFONT chooseFont) {
2289 if (IsUnicode) return ChooseFontW (chooseFont); 2358 if (IsUnicode) return ChooseFontW (chooseFont);
2290 return ChooseFontA (chooseFont); 2359 return ChooseFontA (chooseFont);
2291 } 2360 }
2292 2361
2293 public static final int /*long*/ CreateActCtx (ACTCTX pActCtx) { 2362 public static const int /*long*/ CreateActCtx (ACTCTX pActCtx) {
2294 if (IsUnicode) return CreateActCtxW (pActCtx); 2363 if (IsUnicode) return CreateActCtxW (pActCtx);
2295 return CreateActCtxA (pActCtx); 2364 return CreateActCtxA (pActCtx);
2296 } 2365 }
2297 2366
2298 public static final int /*long*/ CreateAcceleratorTable (byte [] lpaccl, int cEntries) { 2367 public static const int /*long*/ CreateAcceleratorTable (byte [] lpaccl, int cEntries) {
2299 if (IsUnicode) return CreateAcceleratorTableW (lpaccl, cEntries); 2368 if (IsUnicode) return CreateAcceleratorTableW (lpaccl, cEntries);
2300 return CreateAcceleratorTableA (lpaccl, cEntries); 2369 return CreateAcceleratorTableA (lpaccl, cEntries);
2301 } 2370 }
2302 2371
2303 public static final int /*long*/ CreateDC (TCHAR lpszDriver, TCHAR lpszDevice, int /*long*/ lpszOutput, int /*long*/ lpInitData) { 2372 public static const int /*long*/ CreateDC (TCHAR lpszDriver, TCHAR lpszDevice, int /*long*/ lpszOutput, int /*long*/ lpInitData) {
2304 if (IsUnicode) { 2373 if (IsUnicode) {
2305 char [] lpszDriver1 = lpszDriver is null ? null : lpszDriver.chars; 2374 char [] lpszDriver1 = lpszDriver is null ? null : lpszDriver.chars;
2306 char [] lpszDevice1 = lpszDevice is null ? null : lpszDevice.chars; 2375 char [] lpszDevice1 = lpszDevice is null ? null : lpszDevice.chars;
2307 return CreateDCW (lpszDriver1, lpszDevice1, lpszOutput, lpInitData); 2376 return CreateDCW (lpszDriver1, lpszDevice1, lpszOutput, lpInitData);
2308 } 2377 }
2309 byte [] lpszDriver1 = lpszDriver is null ? null : lpszDriver.bytes; 2378 byte [] lpszDriver1 = lpszDriver is null ? null : lpszDriver.bytes;
2310 byte [] lpszDevice1 = lpszDevice is null ? null : lpszDevice.bytes; 2379 byte [] lpszDevice1 = lpszDevice is null ? null : lpszDevice.bytes;
2311 return CreateDCA (lpszDriver1, lpszDevice1, lpszOutput, lpInitData); 2380 return CreateDCA (lpszDriver1, lpszDevice1, lpszOutput, lpInitData);
2312 } 2381 }
2313 2382
2314 public static final int /*long*/ CreateFontIndirect (int /*long*/ lplf) { 2383 public static const int /*long*/ CreateFontIndirect (int /*long*/ lplf) {
2315 if (IsUnicode) return CreateFontIndirectW (lplf); 2384 if (IsUnicode) return CreateFontIndirectW (lplf);
2316 return CreateFontIndirectA (lplf); 2385 return CreateFontIndirectA (lplf);
2317 } 2386 }
2318 2387
2319 public static final int /*long*/ CreateFontIndirect (LOGFONT lplf) { 2388 public static const int /*long*/ CreateFontIndirect (LOGFONT lplf) {
2320 if (IsUnicode) return CreateFontIndirectW ((LOGFONTW)lplf); 2389 if (IsUnicode) return CreateFontIndirectW ((LOGFONTW)lplf);
2321 return CreateFontIndirectA ((LOGFONTA)lplf); 2390 return CreateFontIndirectA ((LOGFONTA)lplf);
2322 } 2391 }
2323 2392
2324 public static final BOOL CreateProcess (int /*long*/ lpApplicationName, int /*long*/ lpCommandLine, int /*long*/ lpProcessAttributes, int /*long*/ lpThreadAttributes, BOOL bInheritHandles, int dwCreationFlags, int /*long*/ lpEnvironment, int /*long*/ lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation) { 2393 public static final BOOL CreateProcess (int /*long*/ lpApplicationName, int /*long*/ lpCommandLine, int /*long*/ lpProcessAttributes, int /*long*/ lpThreadAttributes, BOOL bInheritHandles, int dwCreationFlags, int /*long*/ lpEnvironment, int /*long*/ lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation) {
2325 if (IsUnicode) return CreateProcessW (lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation); 2394 if (IsUnicode) return CreateProcessW (lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
2326 return CreateProcessA (lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation); 2395 return CreateProcessA (lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
2327 } 2396 }
2328 2397
2329 public static final int /*long*/ CreateWindowEx (int dwExStyle, TCHAR lpClassName, TCHAR lpWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int /*long*/ hWndParent, int /*long*/ hMenu, int /*long*/ hInstance, CREATESTRUCT lpParam) { 2398 public static const int /*long*/ CreateWindowEx (int dwExStyle, TCHAR lpClassName, TCHAR lpWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int /*long*/ hWndParent, int /*long*/ hMenu, int /*long*/ hInstance, CREATESTRUCT lpParam) {
2330 if (IsUnicode) { 2399 if (IsUnicode) {
2331 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars; 2400 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars;
2332 char [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.chars; 2401 char [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.chars;
2333 return CreateWindowExW (dwExStyle, lpClassName1, lpWindowName1, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam); 2402 return CreateWindowExW (dwExStyle, lpClassName1, lpWindowName1, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
2334 } 2403 }
2335 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes; 2404 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes;
2336 byte [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.bytes; 2405 byte [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.bytes;
2337 return CreateWindowExA (dwExStyle, lpClassName1, lpWindowName1, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam); 2406 return CreateWindowExA (dwExStyle, lpClassName1, lpWindowName1, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
2338 } 2407 }
2339 2408
2340 public static final int /*long*/ DefMDIChildProc (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) { 2409 public static const int /*long*/ DefMDIChildProc (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2341 if (IsUnicode) return DefMDIChildProcW (hWnd, Msg, wParam, lParam); 2410 if (IsUnicode) return DefMDIChildProcW (hWnd, Msg, wParam, lParam);
2342 return DefMDIChildProcA (hWnd, Msg, wParam, lParam); 2411 return DefMDIChildProcA (hWnd, Msg, wParam, lParam);
2343 } 2412 }
2344 2413
2345 public static final int /*long*/ DefFrameProc (int /*long*/ hWnd, int /*long*/ hWndMDIClient, int Msg, int /*long*/ wParam, int /*long*/ lParam) { 2414 public static const int /*long*/ DefFrameProc (int /*long*/ hWnd, int /*long*/ hWndMDIClient, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2346 if (IsUnicode) return DefFrameProcW (hWnd, hWndMDIClient, Msg, wParam, lParam); 2415 if (IsUnicode) return DefFrameProcW (hWnd, hWndMDIClient, Msg, wParam, lParam);
2347 return DefFrameProcA (hWnd, hWndMDIClient, Msg, wParam, lParam); 2416 return DefFrameProcA (hWnd, hWndMDIClient, Msg, wParam, lParam);
2348 } 2417 }
2349 public static final int /*long*/ DefWindowProc (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) { 2418 public static const int /*long*/ DefWindowProc (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2350 if (IsUnicode) return DefWindowProcW (hWnd, Msg, wParam, lParam); 2419 if (IsUnicode) return DefWindowProcW (hWnd, Msg, wParam, lParam);
2351 return DefWindowProcA (hWnd, Msg, wParam, lParam); 2420 return DefWindowProcA (hWnd, Msg, wParam, lParam);
2352 } 2421 }
2353 2422
2354 public static final int /*long*/ DispatchMessage (MSG lpmsg) { 2423 public static const int /*long*/ DispatchMessage (MSG lpmsg) {
2355 if (IsUnicode) return DispatchMessageW (lpmsg); 2424 if (IsUnicode) return DispatchMessageW (lpmsg);
2356 return DispatchMessageA (lpmsg); 2425 return DispatchMessageA (lpmsg);
2357 } 2426 }
2358 2427
2359 public static final int DragQueryFile (int /*long*/ hDrop, int iFile, TCHAR lpszFile, int cch) { 2428 public static const int DragQueryFile (int /*long*/ hDrop, int iFile, TCHAR lpszFile, int cch) {
2360 if (IsUnicode) { 2429 if (IsUnicode) {
2361 char [] lpszFile1 = lpszFile is null ? null : lpszFile.chars; 2430 char [] lpszFile1 = lpszFile is null ? null : lpszFile.chars;
2362 return DragQueryFileW (hDrop, iFile, lpszFile1, cch); 2431 return DragQueryFileW (hDrop, iFile, lpszFile1, cch);
2363 } 2432 }
2364 byte [] lpszFile1 = lpszFile is null ? null : lpszFile.bytes; 2433 byte [] lpszFile1 = lpszFile is null ? null : lpszFile.bytes;
2368 public static final BOOL DrawState (int /*long*/ hdc, int /*long*/ hbr, int /*long*/ lpOutputFunc, int /*long*/ lData, int /*long*/ wData, int x, int y, int cx, int cy, int fuFlags) { 2437 public static final BOOL DrawState (int /*long*/ hdc, int /*long*/ hbr, int /*long*/ lpOutputFunc, int /*long*/ lData, int /*long*/ wData, int x, int y, int cx, int cy, int fuFlags) {
2369 if (IsUnicode) return DrawStateW (hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy, fuFlags); 2438 if (IsUnicode) return DrawStateW (hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy, fuFlags);
2370 return DrawStateA (hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy, fuFlags); 2439 return DrawStateA (hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy, fuFlags);
2371 } 2440 }
2372 2441
2373 public static final int DrawText (int /*long*/ hDC, TCHAR lpString, int nCount, RECT lpRect, int uFormat) { 2442 public static const int DrawText (int /*long*/ hDC, TCHAR lpString, int nCount, RECT lpRect, int uFormat) {
2374 if (IsUnicode) { 2443 if (IsUnicode) {
2375 char [] lpString1 = lpString is null ? null : lpString.chars; 2444 char [] lpString1 = lpString is null ? null : lpString.chars;
2376 return DrawTextW (hDC, lpString1, nCount, lpRect, uFormat); 2445 return DrawTextW (hDC, lpString1, nCount, lpRect, uFormat);
2377 } 2446 }
2378 byte [] lpString1 = lpString is null ? null : lpString.bytes; 2447 byte [] lpString1 = lpString is null ? null : lpString.bytes;
2379 return DrawTextA (hDC, lpString1, nCount, lpRect, uFormat); 2448 return DrawTextA (hDC, lpString1, nCount, lpRect, uFormat);
2380 } 2449 }
2381 2450
2382 public static final int EnumFontFamilies (int /*long*/ hdc, TCHAR lpszFamily, int /*long*/ lpEnumFontFamProc, int /*long*/ lParam) { 2451 public static const int EnumFontFamilies (int /*long*/ hdc, TCHAR lpszFamily, int /*long*/ lpEnumFontFamProc, int /*long*/ lParam) {
2383 if (IsUnicode) { 2452 if (IsUnicode) {
2384 char [] lpszFamily1 = lpszFamily is null ? null : lpszFamily.chars; 2453 char [] lpszFamily1 = lpszFamily is null ? null : lpszFamily.chars;
2385 return EnumFontFamiliesW (hdc, lpszFamily1, lpEnumFontFamProc, lParam); 2454 return EnumFontFamiliesW (hdc, lpszFamily1, lpEnumFontFamProc, lParam);
2386 } 2455 }
2387 byte [] lpszFamily1 = lpszFamily is null ? null : lpszFamily.bytes; 2456 byte [] lpszFamily1 = lpszFamily is null ? null : lpszFamily.bytes;
2388 return EnumFontFamiliesA (hdc, lpszFamily1, lpEnumFontFamProc, lParam); 2457 return EnumFontFamiliesA (hdc, lpszFamily1, lpEnumFontFamProc, lParam);
2389 } 2458 }
2390 2459
2391 public static final int EnumFontFamiliesEx (int /*long*/ hdc, LOGFONT lpLogfont, int /*long*/ lpEnumFontFamExProc, int /*long*/ lParam, int dwFlags) { 2460 public static const int EnumFontFamiliesEx (int /*long*/ hdc, LOGFONT lpLogfont, int /*long*/ lpEnumFontFamExProc, int /*long*/ lParam, int dwFlags) {
2392 if (IsUnicode) return EnumFontFamiliesExW (hdc, (LOGFONTW)lpLogfont, lpEnumFontFamExProc, lParam, dwFlags); 2461 if (IsUnicode) return EnumFontFamiliesExW (hdc, (LOGFONTW)lpLogfont, lpEnumFontFamExProc, lParam, dwFlags);
2393 return EnumFontFamiliesExA (hdc, (LOGFONTA)lpLogfont, lpEnumFontFamExProc, lParam, dwFlags); 2462 return EnumFontFamiliesExA (hdc, (LOGFONTA)lpLogfont, lpEnumFontFamExProc, lParam, dwFlags);
2394 } 2463 }
2395 2464
2396 public static final BOOL EnumSystemLocales (int /*long*/ lpLocaleEnumProc, int dwFlags) { 2465 public static final BOOL EnumSystemLocales (int /*long*/ lpLocaleEnumProc, int dwFlags) {
2401 public static final BOOL EnumSystemLanguageGroups (int /*long*/ pLangGroupEnumProc, int dwFlags, int /*long*/ lParam) { 2470 public static final BOOL EnumSystemLanguageGroups (int /*long*/ pLangGroupEnumProc, int dwFlags, int /*long*/ lParam) {
2402 if (IsUnicode) return EnumSystemLanguageGroupsW (pLangGroupEnumProc, dwFlags, lParam); 2471 if (IsUnicode) return EnumSystemLanguageGroupsW (pLangGroupEnumProc, dwFlags, lParam);
2403 return EnumSystemLanguageGroupsA (pLangGroupEnumProc, dwFlags, lParam); 2472 return EnumSystemLanguageGroupsA (pLangGroupEnumProc, dwFlags, lParam);
2404 } 2473 }
2405 2474
2406 public static final int ExpandEnvironmentStrings (TCHAR lpSrc, TCHAR lpDst, int nSize) { 2475 public static const int ExpandEnvironmentStrings (TCHAR lpSrc, TCHAR lpDst, int nSize) {
2407 if (IsUnicode) { 2476 if (IsUnicode) {
2408 char [] lpSrc1 = lpSrc is null ? null : lpSrc.chars; 2477 char [] lpSrc1 = lpSrc is null ? null : lpSrc.chars;
2409 char [] lpDst1 = lpDst is null ? null : lpDst.chars; 2478 char [] lpDst1 = lpDst is null ? null : lpDst.chars;
2410 return ExpandEnvironmentStringsW (lpSrc1, lpDst1, nSize); 2479 return ExpandEnvironmentStringsW (lpSrc1, lpDst1, nSize);
2411 } 2480 }
2412 byte [] lpSrc1 = lpSrc is null ? null : lpSrc.bytes; 2481 byte [] lpSrc1 = lpSrc is null ? null : lpSrc.bytes;
2413 byte [] lpDst1 = lpDst is null ? null : lpDst.bytes; 2482 byte [] lpDst1 = lpDst is null ? null : lpDst.bytes;
2414 return ExpandEnvironmentStringsA (lpSrc1, lpDst1, nSize); 2483 return ExpandEnvironmentStringsA (lpSrc1, lpDst1, nSize);
2415 } 2484 }
2416 2485
2417 public static final int ExtractIconEx (TCHAR lpszFile, int nIconIndex, int /*long*/ [] phiconLarge, int /*long*/ [] phiconSmall, int nIcons) { 2486 public static const int ExtractIconEx (TCHAR lpszFile, int nIconIndex, int /*long*/ [] phiconLarge, int /*long*/ [] phiconSmall, int nIcons) {
2418 if (IsUnicode) { 2487 if (IsUnicode) {
2419 char [] lpszFile1 = lpszFile is null ? null : lpszFile.chars; 2488 char [] lpszFile1 = lpszFile is null ? null : lpszFile.chars;
2420 return ExtractIconExW (lpszFile1, nIconIndex, phiconLarge, phiconSmall, nIcons); 2489 return ExtractIconExW (lpszFile1, nIconIndex, phiconLarge, phiconSmall, nIcons);
2421 } 2490 }
2422 byte [] lpszFile1 = lpszFile is null ? null : lpszFile.bytes; 2491 byte [] lpszFile1 = lpszFile is null ? null : lpszFile.bytes;
2430 } 2499 }
2431 byte [] lpString1 = lpString is null ? null : lpString.bytes; 2500 byte [] lpString1 = lpString is null ? null : lpString.bytes;
2432 return ExtTextOutA (hdc, X, Y, fuOptions, lprc, lpString1, cbCount, lpDx); 2501 return ExtTextOutA (hdc, X, Y, fuOptions, lprc, lpString1, cbCount, lpDx);
2433 } 2502 }
2434 2503
2435 public static final int /*long*/ FindWindow (TCHAR lpClassName, TCHAR lpWindowName) { 2504 public static const int /*long*/ FindWindow (TCHAR lpClassName, TCHAR lpWindowName) {
2436 if (IsUnicode) { 2505 if (IsUnicode) {
2437 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars; 2506 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars;
2438 char [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.chars; 2507 char [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.chars;
2439 return FindWindowW (lpClassName1, lpWindowName1); 2508 return FindWindowW (lpClassName1, lpWindowName1);
2440 } 2509 }
2441 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes; 2510 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes;
2442 byte [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.bytes; 2511 byte [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.bytes;
2443 return FindWindowA (lpClassName1, lpWindowName1); 2512 return FindWindowA (lpClassName1, lpWindowName1);
2444 } 2513 }
2445 2514
2446 public static final int FormatMessage (int dwFlags, int /*long*/ lpSource, int dwMessageId, int dwLanguageId, int[] lpBuffer, int nSize, int /*long*/ Arguments) { 2515 public static const int FormatMessage (int dwFlags, int /*long*/ lpSource, int dwMessageId, int dwLanguageId, int[] lpBuffer, int nSize, int /*long*/ Arguments) {
2447 if (IsUnicode) { 2516 if (IsUnicode) {
2448 return FormatMessageW (dwFlags, lpSource, dwMessageId, dwLanguageId, lpBuffer, nSize, Arguments); 2517 return FormatMessageW (dwFlags, lpSource, dwMessageId, dwLanguageId, lpBuffer, nSize, Arguments);
2449 } 2518 }
2450 return FormatMessageA (dwFlags, lpSource, dwMessageId, dwLanguageId, lpBuffer, nSize, Arguments); 2519 return FormatMessageA (dwFlags, lpSource, dwMessageId, dwLanguageId, lpBuffer, nSize, Arguments);
2451 } 2520 }
2453 public static final BOOL GetCharABCWidths (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpabc) { 2522 public static final BOOL GetCharABCWidths (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpabc) {
2454 if (IsUnicode) return GetCharABCWidthsW (hdc,iFirstChar, iLastChar, lpabc); 2523 if (IsUnicode) return GetCharABCWidthsW (hdc,iFirstChar, iLastChar, lpabc);
2455 return GetCharABCWidthsA (hdc,iFirstChar, iLastChar, lpabc); 2524 return GetCharABCWidthsA (hdc,iFirstChar, iLastChar, lpabc);
2456 } 2525 }
2457 2526
2458 public static final int GetCharacterPlacement (int /*long*/ hdc, TCHAR lpString, int nCount, int nMaxExtent, GCP_RESULTS lpResults, int dwFlags) { 2527 public static const int GetCharacterPlacement (int /*long*/ hdc, TCHAR lpString, int nCount, int nMaxExtent, GCP_RESULTS lpResults, int dwFlags) {
2459 if (IsUnicode) { 2528 if (IsUnicode) {
2460 char [] lpString1 = lpString is null ? null : lpString.chars; 2529 char [] lpString1 = lpString is null ? null : lpString.chars;
2461 return GetCharacterPlacementW (hdc, lpString1, nCount, nMaxExtent, lpResults, dwFlags); 2530 return GetCharacterPlacementW (hdc, lpString1, nCount, nMaxExtent, lpResults, dwFlags);
2462 } 2531 }
2463 byte [] lpString1 = lpString is null ? null : lpString.bytes; 2532 byte [] lpString1 = lpString is null ? null : lpString.bytes;
2476 } 2545 }
2477 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes; 2546 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes;
2478 return GetClassInfoA (hInstance, lpClassName1, lpWndClass); 2547 return GetClassInfoA (hInstance, lpClassName1, lpWndClass);
2479 } 2548 }
2480 2549
2481 public static final int GetClassName (int /*long*/ hWnd, TCHAR lpClassName, int nMaxCount) { 2550 public static const int GetClassName (int /*long*/ hWnd, TCHAR lpClassName, int nMaxCount) {
2482 if (IsUnicode) { 2551 if (IsUnicode) {
2483 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars; 2552 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars;
2484 return GetClassNameW (hWnd, lpClassName1, nMaxCount); 2553 return GetClassNameW (hWnd, lpClassName1, nMaxCount);
2485 } 2554 }
2486 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes; 2555 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes;
2487 return GetClassNameA (hWnd, lpClassName1, nMaxCount); 2556 return GetClassNameA (hWnd, lpClassName1, nMaxCount);
2488 } 2557 }
2489 2558
2490 public static final int GetClipboardFormatName (int format, TCHAR lpszFormatName, int cchMaxCount) { 2559 public static const int GetClipboardFormatName (int format, TCHAR lpszFormatName, int cchMaxCount) {
2491 if (IsUnicode) { 2560 if (IsUnicode) {
2492 char [] lpszFormatName1 = lpszFormatName is null ? null : lpszFormatName.chars; 2561 char [] lpszFormatName1 = lpszFormatName is null ? null : lpszFormatName.chars;
2493 return GetClipboardFormatNameW (format, lpszFormatName1, cchMaxCount); 2562 return GetClipboardFormatNameW (format, lpszFormatName1, cchMaxCount);
2494 } 2563 }
2495 byte [] lpszFormatName1 = lpszFormatName is null ? null : lpszFormatName.bytes; 2564 byte [] lpszFormatName1 = lpszFormatName is null ? null : lpszFormatName.bytes;
2496 return GetClipboardFormatNameA (format, lpszFormatName1, cchMaxCount); 2565 return GetClipboardFormatNameA (format, lpszFormatName1, cchMaxCount);
2497 } 2566 }
2498 2567
2499 public static final int GetDateFormat (int Locale, int dwFlags, SYSTEMTIME lpDate, TCHAR lpFormat, TCHAR lpDateStr, int cchDate) { 2568 public static const int GetDateFormat (int Locale, int dwFlags, SYSTEMTIME lpDate, TCHAR lpFormat, TCHAR lpDateStr, int cchDate) {
2500 if (IsUnicode) { 2569 if (IsUnicode) {
2501 char [] lpString1 = lpFormat is null ? null : lpFormat.chars; 2570 char [] lpString1 = lpFormat is null ? null : lpFormat.chars;
2502 char [] lpString2 = lpDateStr is null ? null : lpDateStr.chars; 2571 char [] lpString2 = lpDateStr is null ? null : lpDateStr.chars;
2503 return GetDateFormatW (Locale, dwFlags, lpDate, lpString1, lpString2, cchDate); 2572 return GetDateFormatW (Locale, dwFlags, lpDate, lpString1, lpString2, cchDate);
2504 } 2573 }
2505 byte [] lpString1 = lpFormat is null ? null : lpFormat.bytes; 2574 byte [] lpString1 = lpFormat is null ? null : lpFormat.bytes;
2506 byte [] lpString2 = lpDateStr is null ? null : lpDateStr.bytes; 2575 byte [] lpString2 = lpDateStr is null ? null : lpDateStr.bytes;
2507 return GetDateFormatA (Locale, dwFlags, lpDate, lpString1, lpString2, cchDate); 2576 return GetDateFormatA (Locale, dwFlags, lpDate, lpString1, lpString2, cchDate);
2508 } 2577 }
2509 2578
2510 public static final int GetKeyNameText (int lParam, TCHAR lpString, int nSize) { 2579 public static const int GetKeyNameText (int lParam, TCHAR lpString, int nSize) {
2511 if (IsUnicode) { 2580 if (IsUnicode) {
2512 char [] lpString1 = lpString is null ? null : lpString.chars; 2581 char [] lpString1 = lpString is null ? null : lpString.chars;
2513 return GetKeyNameTextW (lParam, lpString1, nSize); 2582 return GetKeyNameTextW (lParam, lpString1, nSize);
2514 } 2583 }
2515 byte [] lpString1 = lpString is null ? null : lpString.bytes; 2584 byte [] lpString1 = lpString is null ? null : lpString.bytes;
2516 return GetKeyNameTextA (lParam, lpString1, nSize); 2585 return GetKeyNameTextA (lParam, lpString1, nSize);
2517 } 2586 }
2518 2587
2519 public static final int GetLocaleInfo (int Locale, int LCType, TCHAR lpLCData, int cchData) { 2588 public static const int GetLocaleInfo (int Locale, int LCType, TCHAR lpLCData, int cchData) {
2520 if (IsUnicode) { 2589 if (IsUnicode) {
2521 char [] lpLCData1 = lpLCData is null ? null : lpLCData.chars; 2590 char [] lpLCData1 = lpLCData is null ? null : lpLCData.chars;
2522 return GetLocaleInfoW (Locale, LCType, lpLCData1, cchData); 2591 return GetLocaleInfoW (Locale, LCType, lpLCData1, cchData);
2523 } 2592 }
2524 byte [] lpLCData1 = lpLCData is null ? null : lpLCData.bytes; 2593 byte [] lpLCData1 = lpLCData is null ? null : lpLCData.bytes;
2533 public static final BOOL GetMessage (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax) { 2602 public static final BOOL GetMessage (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax) {
2534 if (IsUnicode) return GetMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax); 2603 if (IsUnicode) return GetMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
2535 return GetMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax); 2604 return GetMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
2536 } 2605 }
2537 2606
2538 public static final int GetModuleFileName (int /*long*/ hModule, TCHAR lpFilename, int inSize) { 2607 public static const int GetModuleFileName (int /*long*/ hModule, TCHAR lpFilename, int inSize) {
2539 if (IsUnicode) { 2608 if (IsUnicode) {
2540 char [] lpFilename1 = lpFilename is null ? null : lpFilename.chars; 2609 char [] lpFilename1 = lpFilename is null ? null : lpFilename.chars;
2541 return GetModuleFileNameW (hModule, lpFilename1, inSize); 2610 return GetModuleFileNameW (hModule, lpFilename1, inSize);
2542 } 2611 }
2543 byte [] lpFilename1 = lpFilename is null ? null : lpFilename.bytes; 2612 byte [] lpFilename1 = lpFilename is null ? null : lpFilename.bytes;
2544 return GetModuleFileNameA (hModule, lpFilename1, inSize); 2613 return GetModuleFileNameA (hModule, lpFilename1, inSize);
2545 } 2614 }
2546 2615
2547 public static final int /*long*/ GetModuleHandle (TCHAR lpModuleName) { 2616 public static const int /*long*/ GetModuleHandle (TCHAR lpModuleName) {
2548 if (IsUnicode) { 2617 if (IsUnicode) {
2549 char [] lpModuleName1 = lpModuleName is null ? null : lpModuleName.chars; 2618 char [] lpModuleName1 = lpModuleName is null ? null : lpModuleName.chars;
2550 return GetModuleHandleW (lpModuleName1); 2619 return GetModuleHandleW (lpModuleName1);
2551 } 2620 }
2552 byte [] lpModuleName1 = lpModuleName is null ? null : lpModuleName.bytes; 2621 byte [] lpModuleName1 = lpModuleName is null ? null : lpModuleName.bytes;
2556 public static final BOOL GetMonitorInfo (int /*long*/ hmonitor, MONITORINFO lpmi) { 2625 public static final BOOL GetMonitorInfo (int /*long*/ hmonitor, MONITORINFO lpmi) {
2557 if (IsUnicode) return GetMonitorInfoW (hmonitor, lpmi); 2626 if (IsUnicode) return GetMonitorInfoW (hmonitor, lpmi);
2558 return GetMonitorInfoA (hmonitor, lpmi); 2627 return GetMonitorInfoA (hmonitor, lpmi);
2559 } 2628 }
2560 2629
2561 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, BITMAP lpvObject) { 2630 public static const int GetObject (int /*long*/ hgdiobj, int cbBuffer, BITMAP lpvObject) {
2562 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); 2631 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2563 return GetObjectA (hgdiobj, cbBuffer, lpvObject); 2632 return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2564 } 2633 }
2565 2634
2566 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, DIBSECTION lpvObject) { 2635 public static const int GetObject (int /*long*/ hgdiobj, int cbBuffer, DIBSECTION lpvObject) {
2567 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); 2636 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2568 return GetObjectA (hgdiobj, cbBuffer, lpvObject); 2637 return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2569 } 2638 }
2570 2639
2571 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, EXTLOGPEN lpvObject) { 2640 public static const int GetObject (int /*long*/ hgdiobj, int cbBuffer, EXTLOGPEN lpvObject) {
2572 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); 2641 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2573 return GetObjectA (hgdiobj, cbBuffer, lpvObject); 2642 return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2574 } 2643 }
2575 2644
2576 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGBRUSH lpvObject) { 2645 public static const int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGBRUSH lpvObject) {
2577 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); 2646 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2578 return GetObjectA (hgdiobj, cbBuffer, lpvObject); 2647 return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2579 } 2648 }
2580 2649
2581 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGFONT lpvObject) { 2650 public static const int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGFONT lpvObject) {
2582 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, (LOGFONTW)lpvObject); 2651 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, (LOGFONTW)lpvObject);
2583 return GetObjectA (hgdiobj, cbBuffer, (LOGFONTA)lpvObject); 2652 return GetObjectA (hgdiobj, cbBuffer, (LOGFONTA)lpvObject);
2584 } 2653 }
2585 2654
2586 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGPEN lpvObject) { 2655 public static const int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGPEN lpvObject) {
2587 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); 2656 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2588 return GetObjectA (hgdiobj, cbBuffer, lpvObject); 2657 return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2589 } 2658 }
2590 2659
2591 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, int /*long*/ lpvObject) { 2660 public static const int GetObject (int /*long*/ hgdiobj, int cbBuffer, int /*long*/ lpvObject) {
2592 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); 2661 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2593 return GetObjectA (hgdiobj, cbBuffer, lpvObject); 2662 return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2594 } 2663 }
2595 2664
2596 public static final BOOL GetOpenFileName (OPENFILENAME lpofn) { 2665 public static final BOOL GetOpenFileName (OPENFILENAME lpofn) {
2597 if (IsUnicode) return GetOpenFileNameW (lpofn); 2666 if (IsUnicode) return GetOpenFileNameW (lpofn);
2598 return GetOpenFileNameA (lpofn); 2667 return GetOpenFileNameA (lpofn);
2599 } 2668 }
2600 2669
2601 public static final int GetProfileString (TCHAR lpAppName, TCHAR lpKeyName, TCHAR lpDefault, TCHAR lpReturnedString, int nSize) { 2670 public static const int GetProfileString (TCHAR lpAppName, TCHAR lpKeyName, TCHAR lpDefault, TCHAR lpReturnedString, int nSize) {
2602 if (IsUnicode) { 2671 if (IsUnicode) {
2603 char [] lpAppName1 = lpAppName is null ? null : lpAppName.chars; 2672 char [] lpAppName1 = lpAppName is null ? null : lpAppName.chars;
2604 char [] lpKeyName1 = lpKeyName is null ? null : lpKeyName.chars; 2673 char [] lpKeyName1 = lpKeyName is null ? null : lpKeyName.chars;
2605 char [] lpDefault1 = lpDefault is null ? null : lpDefault.chars; 2674 char [] lpDefault1 = lpDefault is null ? null : lpDefault.chars;
2606 char [] lpReturnedString1 = lpReturnedString is null ? null : lpReturnedString.chars; 2675 char [] lpReturnedString1 = lpReturnedString is null ? null : lpReturnedString.chars;
2643 public static final BOOL GetTextMetrics (int /*long*/ hdc, TEXTMETRIC lptm) { 2712 public static final BOOL GetTextMetrics (int /*long*/ hdc, TEXTMETRIC lptm) {
2644 if (IsUnicode) return GetTextMetricsW (hdc, (TEXTMETRICW)lptm); 2713 if (IsUnicode) return GetTextMetricsW (hdc, (TEXTMETRICW)lptm);
2645 return GetTextMetricsA (hdc, (TEXTMETRICA)lptm); 2714 return GetTextMetricsA (hdc, (TEXTMETRICA)lptm);
2646 } 2715 }
2647 2716
2648 public static final int GetTimeFormat (int Locale, int dwFlags, SYSTEMTIME lpTime, TCHAR lpFormat, TCHAR lpTimeStr, int cchTime) { 2717 public static const int GetTimeFormat (int Locale, int dwFlags, SYSTEMTIME lpTime, TCHAR lpFormat, TCHAR lpTimeStr, int cchTime) {
2649 if (IsUnicode) { 2718 if (IsUnicode) {
2650 char [] lpString1 = lpFormat is null ? null : lpFormat.chars; 2719 char [] lpString1 = lpFormat is null ? null : lpFormat.chars;
2651 char [] lpString2 = lpTimeStr is null ? null : lpTimeStr.chars; 2720 char [] lpString2 = lpTimeStr is null ? null : lpTimeStr.chars;
2652 return GetTimeFormatW (Locale, dwFlags, lpTime, lpString1, lpString2, cchTime); 2721 return GetTimeFormatW (Locale, dwFlags, lpTime, lpString1, lpString2, cchTime);
2653 } 2722 }
2664 public static final BOOL GetVersionEx (OSVERSIONINFOEX lpVersionInfo) { 2733 public static final BOOL GetVersionEx (OSVERSIONINFOEX lpVersionInfo) {
2665 if (IsUnicode) return GetVersionExW ((OSVERSIONINFOEXW)lpVersionInfo); 2734 if (IsUnicode) return GetVersionExW ((OSVERSIONINFOEXW)lpVersionInfo);
2666 return GetVersionExA ((OSVERSIONINFOEXA)lpVersionInfo); 2735 return GetVersionExA ((OSVERSIONINFOEXA)lpVersionInfo);
2667 } 2736 }
2668 2737
2669 public static final int GetWindowLong (int /*long*/ hWnd, int nIndex) { 2738 public static const int GetWindowLong (int /*long*/ hWnd, int nIndex) {
2670 if (IsUnicode) return GetWindowLongW (hWnd, nIndex); 2739 if (IsUnicode) return GetWindowLongW (hWnd, nIndex);
2671 return GetWindowLongA (hWnd, nIndex); 2740 return GetWindowLongA (hWnd, nIndex);
2672 } 2741 }
2673 2742
2674 public static final int /*long*/ GetWindowLongPtr (int /*long*/ hWnd, int nIndex) { 2743 public static const int /*long*/ GetWindowLongPtr (int /*long*/ hWnd, int nIndex) {
2675 if (IsUnicode) return GetWindowLongPtrW (hWnd, nIndex); 2744 if (IsUnicode) return GetWindowLongPtrW (hWnd, nIndex);
2676 return GetWindowLongPtrA (hWnd, nIndex); 2745 return GetWindowLongPtrA (hWnd, nIndex);
2677 } 2746 }
2678 2747
2679 public static final int GetWindowText (int /*long*/ hWnd, TCHAR lpString, int nMaxCount) { 2748 public static const int GetWindowText (int /*long*/ hWnd, TCHAR lpString, int nMaxCount) {
2680 if (IsUnicode) { 2749 if (IsUnicode) {
2681 char [] lpString1 = lpString is null ? null : lpString.chars; 2750 char [] lpString1 = lpString is null ? null : lpString.chars;
2682 return GetWindowTextW (hWnd, lpString1, nMaxCount); 2751 return GetWindowTextW (hWnd, lpString1, nMaxCount);
2683 } 2752 }
2684 byte [] lpString1 = lpString is null ? null : lpString.bytes; 2753 byte [] lpString1 = lpString is null ? null : lpString.bytes;
2685 return GetWindowTextA (hWnd, lpString1, nMaxCount); 2754 return GetWindowTextA (hWnd, lpString1, nMaxCount);
2686 } 2755 }
2687 2756
2688 public static final int GetWindowTextLength (int /*long*/ hWnd) { 2757 public static const int GetWindowTextLength (int /*long*/ hWnd) {
2689 if (IsUnicode) return GetWindowTextLengthW (hWnd); 2758 if (IsUnicode) return GetWindowTextLengthW (hWnd);
2690 return GetWindowTextLengthA (hWnd); 2759 return GetWindowTextLengthA (hWnd);
2691 } 2760 }
2692 2761
2693 public static final int GlobalAddAtom (TCHAR lpString) { 2762 public static const int GlobalAddAtom (TCHAR lpString) {
2694 if (IsUnicode) { 2763 if (IsUnicode) {
2695 char [] lpString1 = lpString is null ? null : lpString.chars; 2764 char [] lpString1 = lpString is null ? null : lpString.chars;
2696 return GlobalAddAtomW (lpString1); 2765 return GlobalAddAtomW (lpString1);
2697 } 2766 }
2698 byte [] lpString1 = lpString is null ? null : lpString.bytes; 2767 byte [] lpString1 = lpString is null ? null : lpString.bytes;
2707 public static final BOOL ImmSetCompositionFont (int /*long*/ hIMC, LOGFONT lplf) { 2776 public static final BOOL ImmSetCompositionFont (int /*long*/ hIMC, LOGFONT lplf) {
2708 if (IsUnicode) return ImmSetCompositionFontW (hIMC, (LOGFONTW)lplf); 2777 if (IsUnicode) return ImmSetCompositionFontW (hIMC, (LOGFONTW)lplf);
2709 return ImmSetCompositionFontA (hIMC, (LOGFONTA)lplf); 2778 return ImmSetCompositionFontA (hIMC, (LOGFONTA)lplf);
2710 } 2779 }
2711 2780
2712 public static final int ImmGetCompositionString (int /*long*/ hIMC, int dwIndex, TCHAR lpBuf, int dwBufLen) { 2781 public static const int ImmGetCompositionString (int /*long*/ hIMC, int dwIndex, TCHAR lpBuf, int dwBufLen) {
2713 if (IsUnicode) { 2782 if (IsUnicode) {
2714 char [] lpBuf1 = lpBuf is null ? null : lpBuf.chars; 2783 char [] lpBuf1 = lpBuf is null ? null : lpBuf.chars;
2715 return ImmGetCompositionStringW (hIMC, dwIndex, lpBuf1, dwBufLen); 2784 return ImmGetCompositionStringW (hIMC, dwIndex, lpBuf1, dwBufLen);
2716 } 2785 }
2717 byte [] lpBuf1 = lpBuf is null ? null : lpBuf.bytes; 2786 byte [] lpBuf1 = lpBuf is null ? null : lpBuf.bytes;
2730 public static final BOOL InsertMenuItem (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii) { 2799 public static final BOOL InsertMenuItem (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii) {
2731 if (IsUnicode) return InsertMenuItemW (hMenu, uItem, fByPosition, lpmii); 2800 if (IsUnicode) return InsertMenuItemW (hMenu, uItem, fByPosition, lpmii);
2732 return InsertMenuItemA (hMenu, uItem, fByPosition, lpmii); 2801 return InsertMenuItemA (hMenu, uItem, fByPosition, lpmii);
2733 } 2802 }
2734 2803
2735 public static final int /*long*/ LoadBitmap (int /*long*/ hInstance, int /*long*/ lpBitmapName) { 2804 public static const int /*long*/ LoadBitmap (int /*long*/ hInstance, int /*long*/ lpBitmapName) {
2736 if (IsUnicode) return LoadBitmapW (hInstance, lpBitmapName); 2805 if (IsUnicode) return LoadBitmapW (hInstance, lpBitmapName);
2737 return LoadBitmapA (hInstance, lpBitmapName); 2806 return LoadBitmapA (hInstance, lpBitmapName);
2738 } 2807 }
2739 2808
2740 public static final int /*long*/ LoadCursor (int /*long*/ hInstance, int /*long*/ lpCursorName) { 2809 public static const int /*long*/ LoadCursor (int /*long*/ hInstance, int /*long*/ lpCursorName) {
2741 if (IsUnicode) return LoadCursorW (hInstance, lpCursorName); 2810 if (IsUnicode) return LoadCursorW (hInstance, lpCursorName);
2742 return LoadCursorA (hInstance, lpCursorName); 2811 return LoadCursorA (hInstance, lpCursorName);
2743 } 2812 }
2744 2813
2745 public static final int /*long*/ LoadIcon (int /*long*/ hInstance, int /*long*/ lpIconName) { 2814 public static const int /*long*/ LoadIcon (int /*long*/ hInstance, int /*long*/ lpIconName) {
2746 if (IsUnicode) return LoadIconW (hInstance, lpIconName); 2815 if (IsUnicode) return LoadIconW (hInstance, lpIconName);
2747 return LoadIconA (hInstance, lpIconName); 2816 return LoadIconA (hInstance, lpIconName);
2748 } 2817 }
2749 2818
2750 public static final int /*long*/ LoadImage (int /*long*/ hinst, TCHAR lpszName, int uType, int cxDesired, int cyDesired, int fuLoad) { 2819 public static const int /*long*/ LoadImage (int /*long*/ hinst, TCHAR lpszName, int uType, int cxDesired, int cyDesired, int fuLoad) {
2751 if (IsUnicode) { 2820 if (IsUnicode) {
2752 char [] lpszName1 = lpszName is null ? null : lpszName.chars; 2821 char [] lpszName1 = lpszName is null ? null : lpszName.chars;
2753 return LoadImageW (hinst, lpszName1, uType, cxDesired, cyDesired, fuLoad); 2822 return LoadImageW (hinst, lpszName1, uType, cxDesired, cyDesired, fuLoad);
2754 } 2823 }
2755 byte [] lpszName1 = lpszName is null ? null : lpszName.bytes; 2824 byte [] lpszName1 = lpszName is null ? null : lpszName.bytes;
2756 return LoadImageA (hinst, lpszName1, uType, cxDesired, cyDesired, fuLoad); 2825 return LoadImageA (hinst, lpszName1, uType, cxDesired, cyDesired, fuLoad);
2757 } 2826 }
2758 2827
2759 public static final int /*long*/ LoadImage (int /*long*/ hinst, int /*long*/ lpszName, int uType, int cxDesired, int cyDesired, int fuLoad) { 2828 public static const int /*long*/ LoadImage (int /*long*/ hinst, int /*long*/ lpszName, int uType, int cxDesired, int cyDesired, int fuLoad) {
2760 if (IsUnicode) return LoadImageW (hinst, lpszName, uType, cxDesired, cyDesired, fuLoad); 2829 if (IsUnicode) return LoadImageW (hinst, lpszName, uType, cxDesired, cyDesired, fuLoad);
2761 return LoadImageA (hinst, lpszName, uType, cxDesired, cyDesired, fuLoad); 2830 return LoadImageA (hinst, lpszName, uType, cxDesired, cyDesired, fuLoad);
2762 } 2831 }
2763 2832
2764 public static final int /*long*/ LoadLibrary (TCHAR lpLibFileName) { 2833 public static const int /*long*/ LoadLibrary (TCHAR lpLibFileName) {
2765 if (IsUnicode) { 2834 if (IsUnicode) {
2766 char [] lpLibFileName1 = lpLibFileName is null ? null : lpLibFileName.chars; 2835 char [] lpLibFileName1 = lpLibFileName is null ? null : lpLibFileName.chars;
2767 return LoadLibraryW (lpLibFileName1); 2836 return LoadLibraryW (lpLibFileName1);
2768 } 2837 }
2769 byte [] lpLibFileName1 = lpLibFileName is null ? null : lpLibFileName.bytes; 2838 byte [] lpLibFileName1 = lpLibFileName is null ? null : lpLibFileName.bytes;
2770 return LoadLibraryA (lpLibFileName1); 2839 return LoadLibraryA (lpLibFileName1);
2771 } 2840 }
2772 2841
2773 public static final int LoadString (int /*long*/ hinst, int uID, TCHAR lpBuffer, int nBufferMax) { 2842 public static const int LoadString (int /*long*/ hinst, int uID, TCHAR lpBuffer, int nBufferMax) {
2774 if (IsUnicode) { 2843 if (IsUnicode) {
2775 char [] lpBuffer1 = lpBuffer is null ? null : lpBuffer.chars; 2844 char [] lpBuffer1 = lpBuffer is null ? null : lpBuffer.chars;
2776 return LoadStringW (hinst, uID, lpBuffer1, nBufferMax); 2845 return LoadStringW (hinst, uID, lpBuffer1, nBufferMax);
2777 } 2846 }
2778 byte [] lpBuffer1 = lpBuffer is null ? null : lpBuffer.bytes; 2847 byte [] lpBuffer1 = lpBuffer is null ? null : lpBuffer.bytes;
2779 return LoadStringA (hinst, uID, lpBuffer1, nBufferMax); 2848 return LoadStringA (hinst, uID, lpBuffer1, nBufferMax);
2780 } 2849 }
2781 2850
2782 public static final int MapVirtualKey (int uCode, int uMapType) { 2851 public static const int MapVirtualKey (int uCode, int uMapType) {
2783 if (IsUnicode) return MapVirtualKeyW (uCode, uMapType); 2852 if (IsUnicode) return MapVirtualKeyW (uCode, uMapType);
2784 return MapVirtualKeyA (uCode, uMapType); 2853 return MapVirtualKeyA (uCode, uMapType);
2785 } 2854 }
2786 2855
2787 public static final int MessageBox (int /*long*/ hWnd, TCHAR lpText, TCHAR lpCaption, int uType) { 2856 public static const int MessageBox (int /*long*/ hWnd, TCHAR lpText, TCHAR lpCaption, int uType) {
2788 if (IsUnicode) { 2857 if (IsUnicode) {
2789 char [] lpText1 = lpText is null ? null : lpText.chars; 2858 char [] lpText1 = lpText is null ? null : lpText.chars;
2790 char [] lpCaption1 = lpCaption is null ? null : lpCaption.chars; 2859 char [] lpCaption1 = lpCaption is null ? null : lpCaption.chars;
2791 return MessageBoxW (hWnd, lpText1, lpCaption1, uType); 2860 return MessageBoxW (hWnd, lpText1, lpCaption1, uType);
2792 } 2861 }
2873 public static final BOOL PrintDlg (PRINTDLG lppd) { 2942 public static final BOOL PrintDlg (PRINTDLG lppd) {
2874 if (IsUnicode) return PrintDlgW (lppd); 2943 if (IsUnicode) return PrintDlgW (lppd);
2875 return PrintDlgA (lppd); 2944 return PrintDlgA (lppd);
2876 } 2945 }
2877 2946
2878 public static final int RegEnumKeyEx (int /*long*/ hKey, int dwIndex, TCHAR lpName, int [] lpcName, int [] lpReserved, TCHAR lpClass, int [] lpcClass, FILETIME lpftLastWriteTime) { 2947 public static const int RegEnumKeyEx (int /*long*/ hKey, int dwIndex, TCHAR lpName, int [] lpcName, int [] lpReserved, TCHAR lpClass, int [] lpcClass, FILETIME lpftLastWriteTime) {
2879 if (IsUnicode) { 2948 if (IsUnicode) {
2880 char [] lpName1 = lpName is null ? null : lpName.chars; 2949 char [] lpName1 = lpName is null ? null : lpName.chars;
2881 char [] lpClass1 = lpClass is null ? null : lpClass.chars; 2950 char [] lpClass1 = lpClass is null ? null : lpClass.chars;
2882 return RegEnumKeyExW (hKey, dwIndex, lpName1, lpcName, lpReserved, lpClass1, lpcClass, lpftLastWriteTime); 2951 return RegEnumKeyExW (hKey, dwIndex, lpName1, lpcName, lpReserved, lpClass1, lpcClass, lpftLastWriteTime);
2883 } 2952 }
2884 byte [] lpName1 = lpName is null ? null : lpName.bytes; 2953 byte [] lpName1 = lpName is null ? null : lpName.bytes;
2885 byte [] lpClass1 = lpClass is null ? null : lpClass.bytes; 2954 byte [] lpClass1 = lpClass is null ? null : lpClass.bytes;
2886 return RegEnumKeyExA (hKey, dwIndex, lpName1, lpcName, lpReserved, lpClass1, lpcClass, lpftLastWriteTime); 2955 return RegEnumKeyExA (hKey, dwIndex, lpName1, lpcName, lpReserved, lpClass1, lpcClass, lpftLastWriteTime);
2887 } 2956 }
2888 2957
2889 public static final int RegisterClass (WNDCLASS lpWndClass) { 2958 public static const int RegisterClass (WNDCLASS lpWndClass) {
2890 if (IsUnicode) return RegisterClassW (lpWndClass); 2959 if (IsUnicode) return RegisterClassW (lpWndClass);
2891 return RegisterClassA (lpWndClass); 2960 return RegisterClassA (lpWndClass);
2892 } 2961 }
2893 2962
2894 public static final int RegisterClipboardFormat (TCHAR lpszFormat) { 2963 public static const int RegisterClipboardFormat (TCHAR lpszFormat) {
2895 if (IsUnicode) { 2964 if (IsUnicode) {
2896 char [] lpszFormat1 = lpszFormat is null ? null : lpszFormat.chars; 2965 char [] lpszFormat1 = lpszFormat is null ? null : lpszFormat.chars;
2897 return RegisterClipboardFormatW (lpszFormat1); 2966 return RegisterClipboardFormatW (lpszFormat1);
2898 } 2967 }
2899 byte [] lpszFormat1 = lpszFormat is null ? null : lpszFormat.bytes; 2968 byte [] lpszFormat1 = lpszFormat is null ? null : lpszFormat.bytes;
2900 return RegisterClipboardFormatA (lpszFormat1); 2969 return RegisterClipboardFormatA (lpszFormat1);
2901 } 2970 }
2902 2971
2903 public static final int RegisterWindowMessage (TCHAR lpString) { 2972 public static const int RegisterWindowMessage (TCHAR lpString) {
2904 if (IsUnicode) { 2973 if (IsUnicode) {
2905 char [] lpString1 = lpString is null ? null : lpString.chars; 2974 char [] lpString1 = lpString is null ? null : lpString.chars;
2906 return RegisterWindowMessageW (lpString1); 2975 return RegisterWindowMessageW (lpString1);
2907 } 2976 }
2908 byte [] lpString1 = lpString is null ? null : lpString.bytes; 2977 byte [] lpString1 = lpString is null ? null : lpString.bytes;
2909 return RegisterWindowMessageA (lpString1); 2978 return RegisterWindowMessageA (lpString1);
2910 } 2979 }
2911 2980
2912 public static final int RegOpenKeyEx (int /*long*/ hKey, TCHAR lpSubKey, int ulOptions, int samDesired, int /*long*/[] phkResult) { 2981 public static const int RegOpenKeyEx (int /*long*/ hKey, TCHAR lpSubKey, int ulOptions, int samDesired, int /*long*/[] phkResult) {
2913 if (IsUnicode) { 2982 if (IsUnicode) {
2914 char [] lpSubKey1 = lpSubKey is null ? null : lpSubKey.chars; 2983 char [] lpSubKey1 = lpSubKey is null ? null : lpSubKey.chars;
2915 return RegOpenKeyExW (hKey, lpSubKey1, ulOptions, samDesired, phkResult); 2984 return RegOpenKeyExW (hKey, lpSubKey1, ulOptions, samDesired, phkResult);
2916 } 2985 }
2917 byte [] lpSubKey1 = lpSubKey is null ? null : lpSubKey.bytes; 2986 byte [] lpSubKey1 = lpSubKey is null ? null : lpSubKey.bytes;
2918 return RegOpenKeyExA (hKey, lpSubKey1, ulOptions, samDesired, phkResult); 2987 return RegOpenKeyExA (hKey, lpSubKey1, ulOptions, samDesired, phkResult);
2919 } 2988 }
2920 2989
2921 public static final int RegQueryInfoKey (int /*long*/ hKey, int /*long*/ lpClass, int[] lpcbClass, int /*long*/ lpReserved, int[] lpSubKeys, int[] lpcbMaxSubKeyLen, int[] lpcbMaxClassLen, int[] lpcValues, int[] lpcbMaxValueNameLen, int[] lpcbMaxValueLen, int[] lpcbSecurityDescriptor, int /*long*/ lpftLastWriteTime){ 2990 public static const int RegQueryInfoKey (int /*long*/ hKey, int /*long*/ lpClass, int[] lpcbClass, int /*long*/ lpReserved, int[] lpSubKeys, int[] lpcbMaxSubKeyLen, int[] lpcbMaxClassLen, int[] lpcValues, int[] lpcbMaxValueNameLen, int[] lpcbMaxValueLen, int[] lpcbSecurityDescriptor, int /*long*/ lpftLastWriteTime){
2922 if (IsUnicode) return RegQueryInfoKeyW (hKey, lpClass, lpcbClass, lpReserved, lpSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime); 2991 if (IsUnicode) return RegQueryInfoKeyW (hKey, lpClass, lpcbClass, lpReserved, lpSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime);
2923 return RegQueryInfoKeyA (hKey, lpClass, lpcbClass, lpReserved, lpSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime); 2992 return RegQueryInfoKeyA (hKey, lpClass, lpcbClass, lpReserved, lpSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime);
2924 } 2993 }
2925 2994
2926 public static final int RegQueryValueEx (int /*long*/ hKey, TCHAR lpValueName, int /*long*/ lpReserved, int[] lpType, TCHAR lpData, int[] lpcbData) { 2995 public static const int RegQueryValueEx (int /*long*/ hKey, TCHAR lpValueName, int /*long*/ lpReserved, int[] lpType, TCHAR lpData, int[] lpcbData) {
2927 if (IsUnicode) { 2996 if (IsUnicode) {
2928 char [] lpValueName1 = lpValueName is null ? null : lpValueName.chars; 2997 char [] lpValueName1 = lpValueName is null ? null : lpValueName.chars;
2929 char [] lpData1 = lpData is null ? null : lpData.chars; 2998 char [] lpData1 = lpData is null ? null : lpData.chars;
2930 return RegQueryValueExW (hKey, lpValueName1, lpReserved, lpType, lpData1, lpcbData); 2999 return RegQueryValueExW (hKey, lpValueName1, lpReserved, lpType, lpData1, lpcbData);
2931 } 3000 }
2932 byte [] lpValueName1 = lpValueName is null ? null : lpValueName.bytes; 3001 byte [] lpValueName1 = lpValueName is null ? null : lpValueName.bytes;
2933 byte [] lpData1 = lpData is null ? null : lpData.bytes; 3002 byte [] lpData1 = lpData is null ? null : lpData.bytes;
2934 return RegQueryValueExA (hKey, lpValueName1, lpReserved, lpType, lpData1, lpcbData); 3003 return RegQueryValueExA (hKey, lpValueName1, lpReserved, lpType, lpData1, lpcbData);
2935 } 3004 }
2936 3005
2937 public static final int RegQueryValueEx (int /*long*/ hKey, TCHAR lpValueName, int /*long*/ lpReserved, int[] lpType, int [] lpData, int[] lpcbData) { 3006 public static const int RegQueryValueEx (int /*long*/ hKey, TCHAR lpValueName, int /*long*/ lpReserved, int[] lpType, int [] lpData, int[] lpcbData) {
2938 if (IsUnicode) { 3007 if (IsUnicode) {
2939 char [] lpValueName1 = lpValueName is null ? null : lpValueName.chars; 3008 char [] lpValueName1 = lpValueName is null ? null : lpValueName.chars;
2940 return RegQueryValueExW (hKey, lpValueName1, lpReserved, lpType, lpData, lpcbData); 3009 return RegQueryValueExW (hKey, lpValueName1, lpReserved, lpType, lpData, lpcbData);
2941 } 3010 }
2942 byte [] lpValueName1 = lpValueName is null ? null : lpValueName.bytes; 3011 byte [] lpValueName1 = lpValueName is null ? null : lpValueName.bytes;
2943 return RegQueryValueExA (hKey, lpValueName1, lpReserved, lpType, lpData, lpcbData); 3012 return RegQueryValueExA (hKey, lpValueName1, lpReserved, lpType, lpData, lpcbData);
2944 } 3013 }
2945 3014
2946 public static final int /*long*/ RemoveProp (int /*long*/ hWnd, int /*long*/ lpString){ 3015 public static const int /*long*/ RemoveProp (int /*long*/ hWnd, int /*long*/ lpString){
2947 if (IsUnicode) return RemovePropW (hWnd, lpString); 3016 if (IsUnicode) return RemovePropW (hWnd, lpString);
2948 return RemovePropA (hWnd, lpString); 3017 return RemovePropA (hWnd, lpString);
2949 } 3018 }
2950 3019
2951 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCHAR lParam) { 3020 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCHAR lParam) {
2952 if (IsUnicode) { 3021 if (IsUnicode) {
2953 char [] lParam1 = lParam is null ? null : lParam.chars; 3022 char [] lParam1 = lParam is null ? null : lParam.chars;
2954 return SendMessageW (hWnd, Msg, wParam, lParam1); 3023 return SendMessageW (hWnd, Msg, wParam, lParam1);
2955 } 3024 }
2956 byte [] lParam1 = lParam is null ? null : lParam.bytes; 3025 byte [] lParam1 = lParam is null ? null : lParam.bytes;
2957 return SendMessageA (hWnd, Msg, wParam, lParam1); 3026 return SendMessageA (hWnd, Msg, wParam, lParam1);
2958 } 3027 }
2959 3028
2960 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int [] wParam, int [] lParam) { 3029 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int [] wParam, int [] lParam) {
2961 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3030 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2962 return SendMessageA (hWnd, Msg, wParam, lParam); 3031 return SendMessageA (hWnd, Msg, wParam, lParam);
2963 } 3032 }
2964 3033
2965 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SIZE lParam) { 3034 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SIZE lParam) {
2966 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3035 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2967 return SendMessageA (hWnd, Msg, wParam, lParam); 3036 return SendMessageA (hWnd, Msg, wParam, lParam);
2968 } 3037 }
2969 3038
2970 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ [] wParam, int /*long*/ lParam) { 3039 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ [] wParam, int /*long*/ lParam) {
2971 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3040 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2972 return SendMessageA (hWnd, Msg, wParam, lParam); 3041 return SendMessageA (hWnd, Msg, wParam, lParam);
2973 } 3042 }
2974 3043
2975 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int [] lParam) { 3044 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int [] lParam) {
2976 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3045 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2977 return SendMessageA (hWnd, Msg, wParam, lParam); 3046 return SendMessageA (hWnd, Msg, wParam, lParam);
2978 } 3047 }
2979 3048
2980 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, char [] lParam) { 3049 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, char [] lParam) {
2981 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3050 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2982 return SendMessageA (hWnd, Msg, wParam, lParam); 3051 return SendMessageA (hWnd, Msg, wParam, lParam);
2983 } 3052 }
2984 3053
2985 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, short [] lParam) { 3054 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, short [] lParam) {
2986 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3055 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2987 return SendMessageA (hWnd, Msg, wParam, lParam); 3056 return SendMessageA (hWnd, Msg, wParam, lParam);
2988 } 3057 }
2989 3058
2990 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) { 3059 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2991 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3060 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2992 return SendMessageA (hWnd, Msg, wParam, lParam); 3061 return SendMessageA (hWnd, Msg, wParam, lParam);
2993 } 3062 }
2994 3063
2995 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LITEM lParam) { 3064 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LITEM lParam) {
2996 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3065 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2997 return SendMessageA (hWnd, Msg, wParam, lParam); 3066 return SendMessageA (hWnd, Msg, wParam, lParam);
2998 } 3067 }
2999 3068
3000 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVCOLUMN lParam) { 3069 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVCOLUMN lParam) {
3001 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3070 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3002 return SendMessageA (hWnd, Msg, wParam, lParam); 3071 return SendMessageA (hWnd, Msg, wParam, lParam);
3003 } 3072 }
3004 3073
3005 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVHITTESTINFO lParam) { 3074 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVHITTESTINFO lParam) {
3006 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3075 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3007 return SendMessageA (hWnd, Msg, wParam, lParam); 3076 return SendMessageA (hWnd, Msg, wParam, lParam);
3008 } 3077 }
3009 3078
3010 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVITEM lParam) { 3079 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVITEM lParam) {
3011 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3080 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3012 return SendMessageA (hWnd, Msg, wParam, lParam); 3081 return SendMessageA (hWnd, Msg, wParam, lParam);
3013 } 3082 }
3014 3083
3015 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, MARGINS lParam) { 3084 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, MARGINS lParam) {
3016 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3085 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3017 return SendMessageA (hWnd, Msg, wParam, lParam); 3086 return SendMessageA (hWnd, Msg, wParam, lParam);
3018 } 3087 }
3019 3088
3020 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, POINT lParam) { 3089 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, POINT lParam) {
3021 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3090 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3022 return SendMessageA (hWnd, Msg, wParam, lParam); 3091 return SendMessageA (hWnd, Msg, wParam, lParam);
3023 } 3092 }
3024 3093
3025 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, REBARBANDINFO lParam) { 3094 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, REBARBANDINFO lParam) {
3026 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3095 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3027 return SendMessageA (hWnd, Msg, wParam, lParam); 3096 return SendMessageA (hWnd, Msg, wParam, lParam);
3028 } 3097 }
3029 3098
3030 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, RECT lParam) { 3099 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, RECT lParam) {
3031 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3100 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3032 return SendMessageA (hWnd, Msg, wParam, lParam); 3101 return SendMessageA (hWnd, Msg, wParam, lParam);
3033 } 3102 }
3034 3103
3035 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SYSTEMTIME lParam) { 3104 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SYSTEMTIME lParam) {
3036 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3105 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3037 return SendMessageA (hWnd, Msg, wParam, lParam); 3106 return SendMessageA (hWnd, Msg, wParam, lParam);
3038 } 3107 }
3039 3108
3040 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTON lParam) { 3109 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTON lParam) {
3041 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3110 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3042 return SendMessageA (hWnd, Msg, wParam, lParam); 3111 return SendMessageA (hWnd, Msg, wParam, lParam);
3043 } 3112 }
3044 3113
3045 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTONINFO lParam) { 3114 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTONINFO lParam) {
3046 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3115 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3047 return SendMessageA (hWnd, Msg, wParam, lParam); 3116 return SendMessageA (hWnd, Msg, wParam, lParam);
3048 } 3117 }
3049 3118
3050 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCITEM lParam) { 3119 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCITEM lParam) {
3051 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3120 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3052 return SendMessageA (hWnd, Msg, wParam, lParam); 3121 return SendMessageA (hWnd, Msg, wParam, lParam);
3053 } 3122 }
3054 3123
3055 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TOOLINFO lParam) { 3124 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TOOLINFO lParam) {
3056 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3125 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3057 return SendMessageA (hWnd, Msg, wParam, lParam); 3126 return SendMessageA (hWnd, Msg, wParam, lParam);
3058 } 3127 }
3059 3128
3060 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVHITTESTINFO lParam) { 3129 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVHITTESTINFO lParam) {
3061 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3130 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3062 return SendMessageA (hWnd, Msg, wParam, lParam); 3131 return SendMessageA (hWnd, Msg, wParam, lParam);
3063 } 3132 }
3064 3133
3065 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVINSERTSTRUCT lParam) { 3134 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVINSERTSTRUCT lParam) {
3066 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3135 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3067 return SendMessageA (hWnd, Msg, wParam, lParam); 3136 return SendMessageA (hWnd, Msg, wParam, lParam);
3068 } 3137 }
3069 3138
3070 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVITEM lParam) { 3139 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVITEM lParam) {
3071 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3140 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3072 return SendMessageA (hWnd, Msg, wParam, lParam); 3141 return SendMessageA (hWnd, Msg, wParam, lParam);
3073 } 3142 }
3074 3143
3075 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVSORTCB lParam) { 3144 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVSORTCB lParam) {
3076 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3145 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3077 return SendMessageA (hWnd, Msg, wParam, lParam); 3146 return SendMessageA (hWnd, Msg, wParam, lParam);
3078 } 3147 }
3079 3148
3080 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, UDACCEL lParam) { 3149 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, UDACCEL lParam) {
3081 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3150 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3082 return SendMessageA (hWnd, Msg, wParam, lParam); 3151 return SendMessageA (hWnd, Msg, wParam, lParam);
3083 } 3152 }
3084 3153
3085 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDHITTESTINFO lParam) { 3154 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDHITTESTINFO lParam) {
3086 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3155 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3087 return SendMessageA (hWnd, Msg, wParam, lParam); 3156 return SendMessageA (hWnd, Msg, wParam, lParam);
3088 } 3157 }
3089 3158
3090 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDITEM lParam) { 3159 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDITEM lParam) {
3091 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3160 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3092 return SendMessageA (hWnd, Msg, wParam, lParam); 3161 return SendMessageA (hWnd, Msg, wParam, lParam);
3093 } 3162 }
3094 3163
3095 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDLAYOUT lParam) { 3164 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDLAYOUT lParam) {
3096 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3165 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3097 return SendMessageA (hWnd, Msg, wParam, lParam); 3166 return SendMessageA (hWnd, Msg, wParam, lParam);
3098 } 3167 }
3099 3168
3100 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, BUTTON_IMAGELIST lParam) { 3169 public static const int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, BUTTON_IMAGELIST lParam) {
3101 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); 3170 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3102 return SendMessageA (hWnd, Msg, wParam, lParam); 3171 return SendMessageA (hWnd, Msg, wParam, lParam);
3103 } 3172 }
3104 3173
3105 public static final BOOL SetMenuItemInfo (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii) { 3174 public static final BOOL SetMenuItemInfo (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii) {
3110 public static BOOL SetProp (int /*long*/ hWnd, int /*long*/ lpString, int /*long*/ hData) { 3179 public static BOOL SetProp (int /*long*/ hWnd, int /*long*/ lpString, int /*long*/ hData) {
3111 if (IsUnicode) return SetPropW (hWnd, lpString, hData); 3180 if (IsUnicode) return SetPropW (hWnd, lpString, hData);
3112 return SetPropA (hWnd, lpString, hData); 3181 return SetPropA (hWnd, lpString, hData);
3113 } 3182 }
3114 3183
3115 public static final int SetWindowLong (int /*long*/ hWnd, int nIndex, int dwNewLong) { 3184 public static const int SetWindowLong (int /*long*/ hWnd, int nIndex, int dwNewLong) {
3116 if (IsUnicode) return SetWindowLongW (hWnd, nIndex, dwNewLong); 3185 if (IsUnicode) return SetWindowLongW (hWnd, nIndex, dwNewLong);
3117 return SetWindowLongA (hWnd, nIndex, dwNewLong); 3186 return SetWindowLongA (hWnd, nIndex, dwNewLong);
3118 } 3187 }
3119 3188
3120 public static final int /*long*/ SetWindowLongPtr (int /*long*/ hWnd, int nIndex, int /*long*/ dwNewLong) { 3189 public static const int /*long*/ SetWindowLongPtr (int /*long*/ hWnd, int nIndex, int /*long*/ dwNewLong) {
3121 if (IsUnicode) return SetWindowLongPtrW (hWnd, nIndex, dwNewLong); 3190 if (IsUnicode) return SetWindowLongPtrW (hWnd, nIndex, dwNewLong);
3122 return SetWindowLongPtrA (hWnd, nIndex, dwNewLong); 3191 return SetWindowLongPtrA (hWnd, nIndex, dwNewLong);
3123 } 3192 }
3124 3193
3125 public static final int /*long*/ SetWindowsHookEx (int idHook, int /*long*/ lpfn, int /*long*/ hMod, int dwThreadId) { 3194 public static const int /*long*/ SetWindowsHookEx (int idHook, int /*long*/ lpfn, int /*long*/ hMod, int dwThreadId) {
3126 if (IsUnicode) return SetWindowsHookExW (idHook, lpfn, hMod, dwThreadId); 3195 if (IsUnicode) return SetWindowsHookExW (idHook, lpfn, hMod, dwThreadId);
3127 return SetWindowsHookExA (idHook, lpfn, hMod, dwThreadId); 3196 return SetWindowsHookExA (idHook, lpfn, hMod, dwThreadId);
3128 } 3197 }
3129 3198
3130 public static final BOOL SetWindowText (int /*long*/ hWnd, TCHAR lpString) { 3199 public static final BOOL SetWindowText (int /*long*/ hWnd, TCHAR lpString) {
3134 } 3203 }
3135 byte [] lpString1 = lpString is null ? null : lpString.bytes; 3204 byte [] lpString1 = lpString is null ? null : lpString.bytes;
3136 return SetWindowTextA (hWnd, lpString1); 3205 return SetWindowTextA (hWnd, lpString1);
3137 } 3206 }
3138 3207
3139 public static final int /*long*/ SHBrowseForFolder (BROWSEINFO lpbi) { 3208 public static const int /*long*/ SHBrowseForFolder (BROWSEINFO lpbi) {
3140 if (IsUnicode) return SHBrowseForFolderW (lpbi); 3209 if (IsUnicode) return SHBrowseForFolderW (lpbi);
3141 return SHBrowseForFolderA (lpbi); 3210 return SHBrowseForFolderA (lpbi);
3142 } 3211 }
3143 3212
3144 public static final BOOL ShellExecuteEx (SHELLEXECUTEINFO lpExecInfo) { 3213 public static final BOOL ShellExecuteEx (SHELLEXECUTEINFO lpExecInfo) {
3167 } 3236 }
3168 byte [] pszPath1 = pszPath is null ? null : pszPath.bytes; 3237 byte [] pszPath1 = pszPath is null ? null : pszPath.bytes;
3169 return SHGetPathFromIDListA (pidl, pszPath1); 3238 return SHGetPathFromIDListA (pidl, pszPath1);
3170 } 3239 }
3171 3240
3172 public static final int StartDoc (int /*long*/ hdc, DOCINFO lpdi) { 3241 public static const int StartDoc (int /*long*/ hdc, DOCINFO lpdi) {
3173 if (IsUnicode) return StartDocW (hdc, lpdi); 3242 if (IsUnicode) return StartDocW (hdc, lpdi);
3174 return StartDocA (hdc, lpdi); 3243 return StartDocA (hdc, lpdi);
3175 } 3244 }
3176 3245
3177 public static final BOOL SystemParametersInfo (int uiAction, int uiParam, RECT pvParam, int fWinIni) { 3246 public static final BOOL SystemParametersInfo (int uiAction, int uiParam, RECT pvParam, int fWinIni) {
3192 public static final BOOL SystemParametersInfo (int uiAction, int uiParam, int [] pvParam, int fWinIni) { 3261 public static final BOOL SystemParametersInfo (int uiAction, int uiParam, int [] pvParam, int fWinIni) {
3193 if (IsUnicode) return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni); 3262 if (IsUnicode) return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni);
3194 return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni); 3263 return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni);
3195 } 3264 }
3196 3265
3197 public static final int TranslateAccelerator (int /*long*/ hWnd, int /*long*/ hAccTable, MSG lpMsg) { 3266 public static const int TranslateAccelerator (int /*long*/ hWnd, int /*long*/ hAccTable, MSG lpMsg) {
3198 if (IsUnicode) return TranslateAcceleratorW (hWnd, hAccTable, lpMsg); 3267 if (IsUnicode) return TranslateAcceleratorW (hWnd, hAccTable, lpMsg);
3199 return TranslateAcceleratorA (hWnd, hAccTable, lpMsg); 3268 return TranslateAcceleratorA (hWnd, hAccTable, lpMsg);
3200 } 3269 }
3201 3270
3202 public static final BOOL UnregisterClass (TCHAR lpClassName, int /*long*/ hInstance) { 3271 public static final BOOL UnregisterClass (TCHAR lpClassName, int /*long*/ hInstance) {
4024 alias WINAPI.GetStartupInfoA GetStartupInfo; 4093 alias WINAPI.GetStartupInfoA GetStartupInfo;
4025 alias WINAPI.GetTextExtentPoint32A GetTextExtentPoint32; 4094 alias WINAPI.GetTextExtentPoint32A GetTextExtentPoint32;
4026 alias WINAPI.GetTextMetricsA GetTextMetrics; 4095 alias WINAPI.GetTextMetricsA GetTextMetrics;
4027 alias WINAPI.GetVersionExA GetVersionEx; 4096 alias WINAPI.GetVersionExA GetVersionEx;
4028 alias WINAPI.GetWindowLongA GetWindowLong; 4097 alias WINAPI.GetWindowLongA GetWindowLong;
4098 alias WINAPI.GetWindowLongPtrA GetWindowLongPtr;
4029 alias WINAPI.GetWindowTextA _GetWindowText; 4099 alias WINAPI.GetWindowTextA _GetWindowText;
4030 alias WINAPI.GetWindowTextLengthA GetWindowTextLength; 4100 alias WINAPI.GetWindowTextLengthA GetWindowTextLength;
4031 alias WINAPI.GlobalAddAtomA GlobalAddAtom; 4101 alias WINAPI.GlobalAddAtomA GlobalAddAtom;
4032 // alias WINAPI.ImmGetCompositionFontA ImmGetCompositionFont; 4102 // alias WINAPI.ImmGetCompositionFontA ImmGetCompositionFont;
4033 // alias WINAPI.ImmGetCompositionStringA ImmGetCompositionString; 4103 // alias WINAPI.ImmGetCompositionStringA ImmGetCompositionString;
4060 alias WINAPI.SHGetPathFromIDListA SHGetPathFromIDList; 4130 alias WINAPI.SHGetPathFromIDListA SHGetPathFromIDList;
4061 alias WINAPI.SendMessageA SendMessage; 4131 alias WINAPI.SendMessageA SendMessage;
4062 alias WINAPI.SetMenuItemInfoA SetMenuItemInfo; 4132 alias WINAPI.SetMenuItemInfoA SetMenuItemInfo;
4063 alias WINAPI.SetPropA SetProp; 4133 alias WINAPI.SetPropA SetProp;
4064 alias WINAPI.SetWindowLongA SetWindowLong; 4134 alias WINAPI.SetWindowLongA SetWindowLong;
4135 alias WINAPI.SetWindowLongPtrA SetWindowLongPtr;
4065 alias WINAPI.SetWindowTextA SetWindowText; 4136 alias WINAPI.SetWindowTextA SetWindowText;
4066 alias WINAPI.SetWindowsHookExA SetWindowsHookEx; 4137 alias WINAPI.SetWindowsHookExA SetWindowsHookEx;
4067 alias WINAPI.ShellExecuteExA ShellExecuteEx; 4138 alias WINAPI.ShellExecuteExA ShellExecuteEx;
4068 alias WINAPI.Shell_NotifyIconA Shell_NotifyIcon; 4139 alias WINAPI.Shell_NotifyIconA Shell_NotifyIcon;
4069 alias WINAPI.StartDocA StartDoc; 4140 alias WINAPI.StartDocA StartDoc;
4127 alias WINAPI.GetStartupInfoW GetStartupInfo; 4198 alias WINAPI.GetStartupInfoW GetStartupInfo;
4128 alias WINAPI.GetTextExtentPoint32W GetTextExtentPoint32; 4199 alias WINAPI.GetTextExtentPoint32W GetTextExtentPoint32;
4129 alias WINAPI.GetTextMetricsW GetTextMetrics; 4200 alias WINAPI.GetTextMetricsW GetTextMetrics;
4130 alias WINAPI.GetVersionExW GetVersionEx; 4201 alias WINAPI.GetVersionExW GetVersionEx;
4131 alias WINAPI.GetWindowLongW GetWindowLong; 4202 alias WINAPI.GetWindowLongW GetWindowLong;
4203 alias WINAPI.GetWindowLongPtrW GetWindowLongPtr;
4132 alias WINAPI.GetWindowTextW _GetWindowText; 4204 alias WINAPI.GetWindowTextW _GetWindowText;
4133 alias WINAPI.GetWindowTextLengthW GetWindowTextLength; 4205 alias WINAPI.GetWindowTextLengthW GetWindowTextLength;
4134 alias WINAPI.GlobalAddAtomW GlobalAddAtom; 4206 alias WINAPI.GlobalAddAtomW GlobalAddAtom;
4135 // alias WINAPI.ImmGetCompositionFontW ImmGetCompositionFont; 4207 // alias WINAPI.ImmGetCompositionFontW ImmGetCompositionFont;
4136 // alias WINAPI.ImmGetCompositionStringW ImmGetCompositionString; 4208 // alias WINAPI.ImmGetCompositionStringW ImmGetCompositionString;
4162 alias WINAPI.SHBrowseForFolderW SHBrowseForFolder; 4234 alias WINAPI.SHBrowseForFolderW SHBrowseForFolder;
4163 alias WINAPI.SHGetPathFromIDListW SHGetPathFromIDList; 4235 alias WINAPI.SHGetPathFromIDListW SHGetPathFromIDList;
4164 alias WINAPI.SendMessageW SendMessage; 4236 alias WINAPI.SendMessageW SendMessage;
4165 alias WINAPI.SetMenuItemInfoW SetMenuItemInfo; 4237 alias WINAPI.SetMenuItemInfoW SetMenuItemInfo;
4166 alias WINAPI.SetWindowLongW SetWindowLong; 4238 alias WINAPI.SetWindowLongW SetWindowLong;
4239 alias WINAPI.SetWindowLongPtrW SetWindowLongPtr;
4167 alias WINAPI.SetWindowTextW SetWindowText; 4240 alias WINAPI.SetWindowTextW SetWindowText;
4168 alias WINAPI.SetWindowsHookExW SetWindowsHookEx; 4241 alias WINAPI.SetWindowsHookExW SetWindowsHookEx;
4169 alias WINAPI.SetPropW SetProp; 4242 alias WINAPI.SetPropW SetProp;
4170 alias WINAPI.ShellExecuteExW ShellExecuteEx; 4243 alias WINAPI.ShellExecuteExW ShellExecuteEx;
4171 alias WINAPI.Shell_NotifyIconW Shell_NotifyIcon; 4244 alias WINAPI.Shell_NotifyIconW Shell_NotifyIcon;
4316 //---------------------------------------------------------------------- 4389 //----------------------------------------------------------------------
4317 // Coreimm.lib (WinCE) 4390 // Coreimm.lib (WinCE)
4318 // this function vars exist primarily for link error elimination 4391 // this function vars exist primarily for link error elimination
4319 //---------------------------------------------------------------------- 4392 //----------------------------------------------------------------------
4320 public static extern(Windows) { 4393 public static extern(Windows) {
4394
4395 BOOL function(
4396 HIMC hIMC,
4397 LPCANDIDATEFORM lpCandidate
4398 ) ImmSetCandidateWindow;
4399
4321 } // public static extern(Windows) 4400 } // public static extern(Windows)
4401
4322 4402
4323 static Symbol[] Symbols_CoreImm = [ 4403 static Symbol[] Symbols_CoreImm = [
4324 ]; 4404 ];
4325 4405
4326 // user32.dll vista 4406 // user32.dll vista
4327 public static extern(Windows) BOOL function() SetProcessDPIAware; 4407 public static extern(Windows) BOOL function() SetProcessDPIAware;
4328 static Symbol[] Symbols_User32 = [ 4408 static Symbol[] Symbols_User32 = [
4329 { "SetProcessDPIAware", cast(void**)& SetProcessDPIAware, 6, 0 }, 4409 { "SetProcessDPIAware", cast(void**)& SetProcessDPIAware, 6, 0 },
4410 { "ImmSetCandidateWindow", cast(void**)& ImmSetCandidateWindow, 6, 0 },
4330 ]; 4411 ];
4331 4412
4332 // Imm32.lib 4413 // Imm32.lib
4333 public static extern(Windows) { 4414 public static extern(Windows) {
4334 HIMC function( HWND hWnd ) ImmGetContext; 4415 HIMC function( HWND hWnd ) ImmGetContext;
4352 BOOL function( HIMC hIMC, LOGFONTW* lplf ) ImmGetCompositionFont; 4433 BOOL function( HIMC hIMC, LOGFONTW* lplf ) ImmGetCompositionFont;
4353 } 4434 }
4354 BOOL function( HIMC hIMC, LPCOMPOSITIONFORM lpCompForm ) ImmSetCompositionWindow; 4435 BOOL function( HIMC hIMC, LPCOMPOSITIONFORM lpCompForm ) ImmSetCompositionWindow;
4355 BOOL function( HIMC hIMC, DWORD fdwConversion, DWORD fdwSentence ) ImmSetConversionStatus; 4436 BOOL function( HIMC hIMC, DWORD fdwConversion, DWORD fdwSentence ) ImmSetConversionStatus;
4356 BOOL function( HIMC hIMC, BOOL fOpen ) ImmSetOpenStatus; 4437 BOOL function( HIMC hIMC, BOOL fOpen ) ImmSetOpenStatus;
4357 4438 BOOL function(
4439 HIMC hIMC,
4440 DWORD dwAction,
4441 DWORD dwIndex,
4442 DWORD dwValue
4443 )ImmNotifyIME;
4444
4445 LONG function(
4446 HIMC hIMC,
4447 DWORD dwIndex,
4448 LPVOID lpBuf,
4449 DWORD dwBufLen
4450 ) ImmGetCompositionStringA;
4451
4452 LONG function(
4453 HIMC hIMC,
4454 DWORD dwIndex,
4455 LPVOID lpBuf,
4456 DWORD dwBufLen
4457 ) ImmGetCompositionStringW;
4358 } 4458 }
4359 4459
4360 static Symbol[] Symbols_Imm32 = [ 4460 static Symbol[] Symbols_Imm32 = [
4361 { "ImmAssociateContext", cast(void**)& ImmAssociateContext, 5, 1 }, 4461 { "ImmAssociateContext", cast(void**)& ImmAssociateContext, 5, 1 },
4362 { "ImmCreateContext", cast(void**)& ImmCreateContext, 5, 1 }, 4462 { "ImmCreateContext", cast(void**)& ImmCreateContext, 5, 1 },
4371 { "ImmGetCompositionFontW", cast(void**)& ImmGetCompositionFont, 5, 1 }, 4471 { "ImmGetCompositionFontW", cast(void**)& ImmGetCompositionFont, 5, 1 },
4372 { "ImmSetCompositionWindow", cast(void**)& ImmSetCompositionWindow, 5, 1 }, 4472 { "ImmSetCompositionWindow", cast(void**)& ImmSetCompositionWindow, 5, 1 },
4373 { "ImmSetConversionStatus", cast(void**)& ImmSetConversionStatus, 5, 1 }, 4473 { "ImmSetConversionStatus", cast(void**)& ImmSetConversionStatus, 5, 1 },
4374 { "ImmSetOpenStatus", cast(void**)& ImmSetOpenStatus, 5, 1 }, 4474 { "ImmSetOpenStatus", cast(void**)& ImmSetOpenStatus, 5, 1 },
4375 { "ImmDisableTextFrameService", cast(void**)& ImmDisableTextFrameService, 5, 1 }, 4475 { "ImmDisableTextFrameService", cast(void**)& ImmDisableTextFrameService, 5, 1 },
4476 { "ImmNotifyIME", cast(void**)& ImmNotifyIME, 5, 1 },
4477 { "ImmGetCompositionStringW", cast(void**)& ImmGetCompositionStringW, 5, 1 },
4478 { "ImmGetCompositionStringA", cast(void**)& ImmGetCompositionStringA, 5, 1 },
4376 ]; 4479 ];
4377 4480
4378 // kernel32 winxp/vista 4481 // kernel32 winxp/vista
4379 public static extern(Windows) { 4482 public static extern(Windows) {
4380 HANDLE function( ACTCTX* pActCtx ) CreateActCtx; 4483 HANDLE function( ACTCTX* pActCtx ) CreateActCtx;
5081 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7){ 5184 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7){
5082 Function9 fn = cast(Function9)(*cast(int **)ppVtbl)[fnNumber]; 5185 Function9 fn = cast(Function9)(*cast(int **)ppVtbl)[fnNumber];
5083 return fn(ppVtbl, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); 5186 return fn(ppVtbl, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
5084 } 5187 }
5085 5188
5086 5189 public static int LOWORD (int /*long*/ l){
5190 return l & 0xFFFF;
5191 }
5192 public static int HIWORD (int /*long*/ h){
5193 return h >> 16;
5194 }
5195 //public static bool LPtoDP (int /*long*/ hdc, POINT lpPoints, int nCount);
5196 public static int MAKEWORD(int l, int h){
5197 return ( h << 16 )|( l &0xFFFF );
5198 }
5199 public static int /*long*/ MAKEWPARAM(int l, int h);
5200 public static int /*long*/ MAKELPARAM(int l, int h);
5201 public static int /*long*/ MAKELRESULT(int l, int h);
5202 public static int GET_WHEEL_DELTA_WPARAM(int /*long*/ wParam);
5203
5204 public static int GET_X_LPARAM(int /*long*/ lp){
5205 return cast(short) (lp & 0xFFFF);
5206 }
5207
5208 public static int GET_Y_LPARAM(int /*long*/ lp){
5209 return cast(short) (lp >> 16);
5210 }
5211
5212 alias WINAPI.GetOutlineTextMetrics GetOutlineTextMetrics;
5213
5214 static bool TreeView_GetItemRect( HWND hwnd, HTREEITEM hitem, RECT* prc, bool code) {
5215 *cast(HTREEITEM *)prc = hitem;
5216 return cast(bool) SendMessage( hwnd, TVM_GETITEMRECT, code, cast(int)prc );
5217 }
5218 static int strlen( char* ptr ){
5219 return tango.stdc.string.strlen( ptr );
5220 }
5221 alias WINAPI.GetLayeredWindowAttributes GetLayeredWindowAttributes;
5222 alias WINAPI.SetLayeredWindowAttributes SetLayeredWindowAttributes;
5223
5224 static void POINTSTOPOINT( inout POINT pt, int pts) {
5225 pt.x = cast(SHORT) LOWORD(pts);
5226 pt.y = cast(SHORT) HIWORD(pts);
5227 }
5228
5229 alias WINAPI.GetScrollBarInfo GetScrollBarInfo;
5230 alias WINAPI.PrintWindow PrintWindow;
5087 } // END of OS 5231 } // END of OS
5088 5232 //-----------------------------------------------------------------------------
5089 import tango.sys.win32.CodePage : CodePage; 5233 import tango.sys.win32.CodePage : CodePage;
5090 private import tango.text.convert.Utf; 5234 private import tango.text.convert.Utf;
5091 private import tango.stdc.stringz; 5235 private import tango.stdc.stringz;
5092 5236
5093 // convert UTF-8 to MBCS 5237 // convert UTF-8 to MBCS
5291 //alias Converter.TCHARzToStr TCHARzToStr; 5435 //alias Converter.TCHARzToStr TCHARzToStr;
5292 //alias Converter.TCHARsToStr TCHARsToStr; 5436 //alias Converter.TCHARsToStr TCHARsToStr;
5293 5437
5294 5438
5295 TCHAR[] NewTCHARs( uint codepage, uint len ){ 5439 TCHAR[] NewTCHARs( uint codepage, uint len ){
5296 return new TCHAR[ len ]; 5440 auto res = new TCHAR[ len ];
5297 } 5441 res[] = '\0';
5298 5442 return res;
5299 5443 }
5300 5444
5445
5446
5447