KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > win32 > OS


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.internal.win32;
12
13
14 import org.eclipse.swt.internal.*;
15
16 public class OS extends C {
17     static {
18         Library.loadLibrary ("swt"); //$NON-NLS-1$
19
}
20
21     /*
22     * SWT Windows flags
23     */

24     public static final boolean IsWin32s;
25     public static final boolean IsWin95;
26     public static final boolean IsWinNT;
27     public static final boolean IsWinCE;
28     public static final boolean IsPPC;
29     public static final boolean IsHPC;
30     public static final boolean IsSP;
31     public static final boolean IsDBLocale;
32     public static final boolean IsUnicode;
33     public static final int WIN32_MAJOR, WIN32_MINOR, WIN32_VERSION;
34     public static final int COMCTL32_MAJOR, COMCTL32_MINOR, COMCTL32_VERSION;
35     public static final int SHELL32_MAJOR, SHELL32_MINOR, SHELL32_VERSION;
36
37     public static final String JavaDoc NO_MANIFEST = "org.eclipse.swt.internal.win32.OS.NO_MANIFEST";
38
39     /*
40     * Flags for Window API GetVersionEx()
41     */

42     public static final int VER_PLATFORM_WIN32s = 0;
43     public static final int VER_PLATFORM_WIN32_WINDOWS = 1;
44     public static final int VER_PLATFORM_WIN32_NT = 2;
45     public static final int VER_PLATFORM_WIN32_CE = 3;
46     
47     /* Forward references */
48     public static final int HEAP_ZERO_MEMORY = 0x8;
49     public static final int ACTCTX_FLAG_RESOURCE_NAME_VALID = 0x00000008;
50     public static final int ACTCTX_FLAG_SET_PROCESS_DEFAULT = 0x00000010;
51     public static final int MANIFEST_RESOURCE_ID = 2;
52     public static final int SM_DBCSENABLED = 0x2A;
53     public static final int SM_IMMENABLED = 0x52;
54     public static final int LANG_KOREAN = 0x12;
55     public static final int MAX_PATH = 260;
56     
57     /* Get the Windows version and the flags */
58     static {
59         /*
60         * Try the UNICODE version of GetVersionEx first
61         * and then the ANSI version. The UNICODE version
62         * is present on all versions of Windows but is not
63         * implemented on Win95/98/ME.
64         *
65         * NOTE: The value of OSVERSIONINFO.sizeof cannot
66         * be static final because it relies on the Windows
67         * platform version to be initialized and IsUnicode
68         * has not been calculated. It must be initialized
69         * here, after the platform is determined in order
70         * for the value to be correct.
71         */

72         OSVERSIONINFO info = new OSVERSIONINFOW ();
73         info.dwOSVersionInfoSize = OSVERSIONINFOW.sizeof;
74         if (!OS.GetVersionExW ((OSVERSIONINFOW)info)) {
75             info = new OSVERSIONINFOA ();
76             info.dwOSVersionInfoSize = OSVERSIONINFOA.sizeof;
77             OS.GetVersionExA ((OSVERSIONINFOA)info);
78         }
79         OSVERSIONINFO.sizeof = info.dwOSVersionInfoSize;
80         
81         IsWin32s = info.dwPlatformId == VER_PLATFORM_WIN32s;
82         IsWin95 = info.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS;
83         IsWinNT = info.dwPlatformId == VER_PLATFORM_WIN32_NT;
84         IsWinCE = info.dwPlatformId == VER_PLATFORM_WIN32_CE;
85         IsSP = IsSP();
86         IsPPC = IsPPC();
87         IsHPC = IsWinCE && !IsPPC && !IsSP;
88         WIN32_MAJOR = info.dwMajorVersion;
89         WIN32_MINOR = info.dwMinorVersion;
90         WIN32_VERSION = VERSION (WIN32_MAJOR, WIN32_MINOR);
91         IsUnicode = !IsWin32s && !IsWin95;
92
93         /* Load the manifest to force the XP Theme */
94         if (System.getProperty (NO_MANIFEST) == null) {
95             if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) {
96                 TCHAR buffer = new TCHAR (0, MAX_PATH);
97                 int /*long*/ hModule = OS.GetLibraryHandle ();
98                 while (OS.GetModuleFileName (hModule, buffer, buffer.length ()) == buffer.length ()) {
99                     buffer = new TCHAR (0, buffer.length () + MAX_PATH);
100                 }
101                 int /*long*/ hHeap = OS.GetProcessHeap ();
102                 int byteCount = buffer.length () * TCHAR.sizeof;
103                 int /*long*/ pszText = OS.HeapAlloc (hHeap, HEAP_ZERO_MEMORY, byteCount);
104                 OS.MoveMemory (pszText, buffer, byteCount);
105                 ACTCTX pActCtx = new ACTCTX ();
106                 pActCtx.cbSize = ACTCTX.sizeof;
107                 pActCtx.dwFlags = ACTCTX_FLAG_RESOURCE_NAME_VALID | ACTCTX_FLAG_SET_PROCESS_DEFAULT;
108                 pActCtx.lpSource = pszText;
109                 pActCtx.lpResourceName = MANIFEST_RESOURCE_ID;
110                 int /*long*/ hActCtx = OS.CreateActCtx (pActCtx);
111                 if (pszText != 0) OS.HeapFree (hHeap, 0, pszText);
112                 int /*long*/ [] lpCookie = new int /*long*/ [1];
113                 OS.ActivateActCtx (hActCtx, lpCookie);
114                 /*
115                 * NOTE: A single activation context is created and activated
116                 * for the entire lifetime of the program. It is deactivated
117                 * and released by Windows when the program exits.
118                 */

119             }
120         }
121         
122         /* Make the process DPI aware for Windows Vista */
123         if (OS.WIN32_VERSION >= OS.VERSION (6, 0)) OS.SetProcessDPIAware ();
124
125         /* Get the DBCS flag */
126         boolean dbcsEnabled = OS.GetSystemMetrics (SM_DBCSENABLED) != 0;
127         boolean immEnabled = OS.GetSystemMetrics (SM_IMMENABLED) != 0;
128         IsDBLocale = dbcsEnabled || immEnabled;
129         
130         /*
131         * Bug in Windows. On Korean Windows XP when the Text
132         * Services Framework support for legacy applications
133         * is enabled, certain legacy calls segment fault.
134         * For example, when ImmSetCompositionWindow() is used
135         * to move the composition window outside of the client
136         * area, Windows crashes. The fix is to disable legacy
137         * support.
138         *
139         * Note: The bug is fixed in Service Pack 2.
140         */

141         if (!OS.IsWinCE && OS.WIN32_VERSION == OS.VERSION (5, 1)) {
142             short langID = OS.GetSystemDefaultUILanguage ();
143             short primaryLang = OS.PRIMARYLANGID (langID);
144             if (primaryLang == LANG_KOREAN) {
145                 OSVERSIONINFOEX infoex = IsUnicode ? (OSVERSIONINFOEX)new OSVERSIONINFOEXW () : (OSVERSIONINFOEX)new OSVERSIONINFOEXA ();
146                 infoex.dwOSVersionInfoSize = OSVERSIONINFOEX.sizeof;
147                 GetVersionEx (infoex);
148                 if (infoex.wServicePackMajor < 2) {
149                     OS.ImmDisableTextFrameService (0);
150                 }
151             }
152         }
153     }
154     
155     /* Get the COMCTL32.DLL version */
156     static {
157         DLLVERSIONINFO dvi = new DLLVERSIONINFO ();
158         dvi.cbSize = DLLVERSIONINFO.sizeof;
159         dvi.dwMajorVersion = 4;
160         dvi.dwMinorVersion = 0;
161         TCHAR lpLibFileName = new TCHAR (0, "comctl32.dll", true); //$NON-NLS-1$
162
int /*long*/ hModule = OS.LoadLibrary (lpLibFileName);
163         if (hModule != 0) {
164             String JavaDoc name = "DllGetVersion\0"; //$NON-NLS-1$
165
byte [] lpProcName = new byte [name.length ()];
166             for (int i=0; i<lpProcName.length; i++) {
167                 lpProcName [i] = (byte) name.charAt (i);
168             }
169             int /*long*/ DllGetVersion = OS.GetProcAddress (hModule, lpProcName);
170             if (DllGetVersion != 0) OS.Call (DllGetVersion, dvi);
171             OS.FreeLibrary (hModule);
172         }
173         COMCTL32_MAJOR = dvi.dwMajorVersion;
174         COMCTL32_MINOR = dvi.dwMinorVersion;
175         COMCTL32_VERSION = VERSION (COMCTL32_MAJOR, COMCTL32_MINOR);
176     }
177     
178     /* Get the Shell32.DLL version */
179     static {
180         DLLVERSIONINFO dvi = new DLLVERSIONINFO ();
181         dvi.cbSize = DLLVERSIONINFO.sizeof;
182         dvi.dwMajorVersion = 4;
183         TCHAR lpLibFileName = new TCHAR (0, "Shell32.dll", true); //$NON-NLS-1$
184
int /*long*/ hModule = OS.LoadLibrary (lpLibFileName);
185         if (hModule != 0) {
186             String JavaDoc name = "DllGetVersion\0"; //$NON-NLS-1$
187
byte [] lpProcName = new byte [name.length ()];
188             for (int i=0; i<lpProcName.length; i++) {
189                 lpProcName [i] = (byte) name.charAt (i);
190             }
191             int /*long*/ DllGetVersion = OS.GetProcAddress (hModule, lpProcName);
192             if (DllGetVersion != 0) OS.Call (DllGetVersion, dvi);
193             OS.FreeLibrary (hModule);
194         }
195         SHELL32_MAJOR = dvi.dwMajorVersion;
196         SHELL32_MINOR = dvi.dwMinorVersion;
197         SHELL32_VERSION = VERSION (SHELL32_MAJOR, SHELL32_MINOR);
198     }
199
200     /* Flag used on WinCE */
201     static final int SYS_COLOR_INDEX_FLAG = OS.IsWinCE ? 0x40000000 : 0x0;
202
203     /*
204     * NOTE: There is a bug in JVM 1.2 where loading
205     * a class with a large number of constants causes
206     * a segment fault to occur sometime later after
207     * the class is loaded. The fix is to break the
208     * class up into a hierarchy of classes that each
209     * contain a smaller number of constants. This
210     * fix is not necessary at this time but is required
211     * when all constants are uncommented. We have not
212     * done the research to determine the limit.
213     */

214
215     /* Constants */
216     public static final int ABS_DOWNDISABLED = 8;
217     public static final int ABS_DOWNHOT = 6;
218     public static final int ABS_DOWNNORMAL = 5;
219     public static final int ABS_DOWNPRESSED = 7;
220     public static final int ABS_LEFTDISABLED = 12;
221     public static final int ABS_LEFTHOT = 10;
222     public static final int ABS_LEFTNORMAL = 9;
223     public static final int ABS_LEFTPRESSED = 11;
224     public static final int ABS_RIGHTDISABLED = 16;
225     public static final int ABS_RIGHTHOT = 14;
226     public static final int ABS_RIGHTNORMAL = 13;
227     public static final int ABS_RIGHTPRESSED = 15;
228     public static final int ABS_UPDISABLED = 4;
229     public static final int ABS_UPHOT = 2;
230     public static final int ABS_UPNORMAL = 1;
231     public static final int ABS_UPPRESSED = 3;
232     public static final int AC_SRC_OVER = 0;
233     public static final int AC_SRC_ALPHA = 1;
234 // public static final int ACTCTX_FLAG_RESOURCE_NAME_VALID = 0x00000008;
235
// public static final int ACTCTX_FLAG_SET_PROCESS_DEFAULT = 0x00000010;
236
public static final int ALTERNATE = 1;
237     public static final int ASSOCF_NOTRUNCATE = 0x00000020;
238     public static final int ASSOCSTR_COMMAND = 1;
239     public static final int ASSOCSTR_DEFAULTICON = 15;
240     public static final int ASSOCSTR_FRIENDLYAPPNAME = 4;
241     public static final int ASSOCSTR_FRIENDLYDOCNAME = 3;
242     public static final int AW_SLIDE = 0x00040000;
243     public static final int AW_ACTIVATE = 0x00020000;
244     public static final int AW_BLEND = 0x00080000;
245     public static final int AW_HIDE = 0x00010000;
246     public static final int AW_CENTER = 0x00000010;
247     public static final int AW_HOR_POSITIVE = 0x00000001;
248     public static final int AW_HOR_NEGATIVE = 0x00000002;
249     public static final int AW_VER_POSITIVE = 0x00000004;
250     public static final int AW_VER_NEGATIVE = 0x00000008;
251     public static final int BCM_FIRST = 0x1600;
252     public static final int BCM_GETIDEALSIZE = BCM_FIRST + 0x1;
253     public static final int BCM_GETIMAGELIST = BCM_FIRST + 0x3;
254     public static final int BCM_GETNOTE = BCM_FIRST + 0xa;
255     public static final int BCM_GETNOTELENGTH = BCM_FIRST + 0xb;
256     public static final int BCM_SETIMAGELIST = BCM_FIRST + 0x2;
257     public static final int BCM_SETNOTE = BCM_FIRST + 0x9;
258     public static final int BDR_RAISEDOUTER = 0x0001;
259     public static final int BDR_SUNKENOUTER = 0x0002;
260     public static final int BDR_RAISEDINNER = 0x0004;
261     public static final int BDR_SUNKENINNER = 0x0008;
262     public static final int BDR_OUTER = 0x0003;
263     public static final int BDR_INNER = 0x000c;
264     public static final int BDR_RAISED = 0x0005;
265     public static final int BDR_SUNKEN = 0x000a;
266     public static final int BFFM_INITIALIZED = 0x1;
267     public static final int BFFM_SETSELECTION = IsUnicode ? 0x467 : 0x466;
268     public static final int BFFM_VALIDATEFAILED = IsUnicode ? 0x4 : 0x3;
269     public static final int BFFM_VALIDATEFAILEDW = 0x4;
270     public static final int BFFM_VALIDATEFAILEDA = 0x3;
271     public static final int BF_ADJUST = 0x2000;
272     public static final int BF_LEFT = 0x0001;
273     public static final int BF_TOP = 0x0002;
274     public static final int BF_RIGHT = 0x0004;
275     public static final int BF_BOTTOM = 0x0008;
276     public static final int BF_RECT = (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM);
277     public static final int BIF_EDITBOX = 0x10;
278     public static final int BIF_NEWDIALOGSTYLE = 0x40;
279     public static final int BIF_RETURNONLYFSDIRS = 0x1;
280     public static final int BIF_VALIDATE = 0x20;
281     public static final int BITSPIXEL = 0xc;
282     public static final int BI_BITFIELDS = 3;
283     public static final int BI_RGB = 0;
284     public static final int BLACKNESS = 0x42;
285     public static final int BLACK_BRUSH = 4;
286     public static final int BUTTON_IMAGELIST_ALIGN_LEFT = 0;
287     public static final int BUTTON_IMAGELIST_ALIGN_RIGHT = 1;
288     public static final int BUTTON_IMAGELIST_ALIGN_CENTER = 4;
289     public static final int BM_CLICK = 0xf5;
290     public static final int BM_GETCHECK = 0xf0;
291     public static final int BM_SETCHECK = 0xf1;
292     public static final int BM_SETIMAGE = 0xf7;
293     public static final int BM_SETSTYLE = 0xf4;
294     public static final int BN_CLICKED = 0x0;
295     public static final int BN_DOUBLECLICKED = 0x5;
296     public static final int BPBF_COMPATIBLEBITMAP = 0;
297     public static final int BPBF_DIB = 1;
298     public static final int BPBF_TOPDOWNDIB = 2;
299     public static final int BPBF_TOPDOWNMONODIB = 3;
300     public static final int BPPF_ERASE = 0x0001;
301     public static final int BPPF_NOCLIP = 0x0002;
302     public static final int BPPF_NONCLIENT = 0x0004;
303     public static final int BP_PUSHBUTTON = 1;
304     public static final int BP_RADIOBUTTON = 2;
305     public static final int BP_CHECKBOX = 3;
306     public static final int BP_GROUPBOX = 4;
307     public static final int BST_CHECKED = 0x1;
308     public static final int BST_UNCHECKED = 0x0;
309     public static final int BS_BITMAP = 0x80;
310     public static final int BS_CENTER = 0x300;
311     public static final int BS_CHECKBOX = 0x2;
312     public static final int BS_COMMANDLINK = 0xe;
313     public static final int BS_DEFPUSHBUTTON = 0x1;
314     public static final int BS_FLAT = 0x8000;
315     public static final int BS_GROUPBOX = 0x7;
316     public static final int BS_ICON = 0x40;
317     public static final int BS_LEFT = 0x100;
318     public static final int BS_NOTIFY = 0x4000;
319     public static final int BS_OWNERDRAW = 0xb;
320     public static final int BS_PATTERN = 0x3;
321     public static final int BS_PUSHBUTTON = 0x0;
322     public static final int BS_PUSHLIKE = 0x1000;
323     public static final int BS_RADIOBUTTON = 0x4;
324     public static final int BS_RIGHT = 0x200;
325     public static final int BS_SOLID = 0x0;
326     public static final int BTNS_AUTOSIZE = 0x10;
327     public static final int BTNS_BUTTON = 0x0;
328     public static final int BTNS_CHECK = 0x2;
329     public static final int BTNS_CHECKGROUP = 0x6;
330     public static final int BTNS_DROPDOWN = 0x8;
331     public static final int BTNS_GROUP = 0x4;
332     public static final int BTNS_SEP = 0x1;
333     public static final int BTNS_SHOWTEXT = 0x40;
334     public static final int CBN_EDITCHANGE = 0x5;
335     public static final int CBN_KILLFOCUS = 0x4;
336     public static final int CBN_SELCHANGE = 0x1;
337     public static final int CBN_SETFOCUS = 0x3;
338     public static final int CBS_AUTOHSCROLL = 0x40;
339     public static final int CBS_DROPDOWN = 0x2;
340     public static final int CBS_DROPDOWNLIST = 0x3;
341     public static final int CBS_CHECKEDNORMAL = 5;
342     public static final int CBS_MIXEDNORMAL = 9;
343     public static final int CBS_NOINTEGRALHEIGHT = 0x400;
344     public static final int CBS_SIMPLE = 0x1;
345     public static final int CBS_UNCHECKEDNORMAL = 1;
346     public static final int CBS_CHECKEDDISABLED = 8;
347     public static final int CBS_CHECKEDHOT = 6;
348     public static final int CBS_CHECKEDPRESSED = 7;
349     public static final int CBS_MIXEDDISABLED = 0;
350     public static final int CBS_MIXEDHOT = 0;
351     public static final int CBS_MIXEDPRESSED = 0;
352     public static final int CBS_UNCHECKEDDISABLED = 4;
353     public static final int CBS_UNCHECKEDHOT = 2;
354     public static final int CBS_UNCHECKEDPRESSED = 3;
355     public static final int CB_ADDSTRING = 0x143;
356     public static final int CB_DELETESTRING = 0x144;
357     public static final int CB_ERR = 0xffffffff;
358     public static final int CB_ERRSPACE = 0xfffffffe;
359     public static final int CB_FINDSTRINGEXACT = 0x158;
360     public static final int CB_GETCOUNT = 0x146;
361     public static final int CB_GETCURSEL = 0x147;
362     public static final int CB_GETDROPPEDCONTROLRECT = 0x152;
363     public static final int CB_GETDROPPEDSTATE = 0x157;
364     public static final int CB_GETDROPPEDWIDTH = 0x015f;
365     public static final int CB_GETEDITSEL = 0x140;
366     public static final int CB_GETHORIZONTALEXTENT = 0x015d;
367     public static final int CB_GETITEMHEIGHT = 0x154;
368     public static final int CB_GETLBTEXT = 0x148;
369     public static final int CB_GETLBTEXTLEN = 0x149;
370     public static final int CB_INSERTSTRING = 0x14a;
371     public static final int CB_LIMITTEXT = 0x141;
372     public static final int CB_RESETCONTENT = 0x14b;
373     public static final int CB_SELECTSTRING = 0x14d;
374     public static final int CB_SETCURSEL = 0x14e;
375     public static final int CB_SETDROPPEDWIDTH= 0x0160;
376     public static final int CB_SETEDITSEL = 0x142;
377     public static final int CB_SETHORIZONTALEXTENT = 0x015e;
378     public static final int CB_SETITEMHEIGHT = 0x0153;
379     public static final int CB_SHOWDROPDOWN = 0x14f;
380     public static final int CBXS_NORMAL = 1;
381     public static final int CBXS_HOT = 2;
382     public static final int CBXS_PRESSED = 3;
383     public static final int CBXS_DISABLED = 4;
384     public static final int CCM_FIRST = 0x2000;
385     public static final int CCM_SETBKCOLOR = 0x2001;
386     public static final int CCM_SETVERSION = 0x2007;
387     public static final int CCS_NODIVIDER = 0x40;
388     public static final int CCS_NORESIZE = 0x4;
389     public static final int CCS_VERT = 0x80;
390     public static final int CC_ANYCOLOR = 0x100;
391     public static final int CC_ENABLEHOOK = 0x10;
392     public static final int CC_FULLOPEN = 0x2;
393     public static final int CC_RGBINIT = 0x1;
394     public static final int CDDS_POSTERASE = 0x00000004;
395     public static final int CDDS_POSTPAINT = 0x00000002;
396     public static final int CDDS_PREERASE = 0x00000003;
397     public static final int CDDS_PREPAINT = 0x00000001;
398     public static final int CDDS_ITEM = 0x00010000;
399     public static final int CDDS_ITEMPOSTPAINT = CDDS_ITEM | CDDS_POSTPAINT;
400     public static final int CDDS_ITEMPREPAINT = CDDS_ITEM | CDDS_PREPAINT;
401     public static final int CDDS_SUBITEM = 0x00020000;
402     public static final int CDDS_SUBITEMPOSTPAINT = CDDS_ITEMPOSTPAINT | CDDS_SUBITEM;
403     public static final int CDDS_SUBITEMPREPAINT = CDDS_ITEMPREPAINT | CDDS_SUBITEM;
404     public static final int CDIS_SELECTED = 0x0001;
405     public static final int CDIS_GRAYED = 0x0002;
406     public static final int CDIS_DISABLED = 0x0004;
407     public static final int CDIS_CHECKED = 0x0008;
408     public static final int CDIS_FOCUS = 0x0010;
409     public static final int CDIS_DEFAULT = 0x0020;
410     public static final int CDIS_HOT = 0x0040;
411     public static final int CDIS_MARKED = 0x0080;
412     public static final int CDIS_INDETERMINATE = 0x0100;
413     public static final int CDM_FIRST = 0x0400 + 100;
414     public static final int CDM_GETSPEC = CDM_FIRST;
415     public static final int CDN_FIRST = -601;
416     public static final int CDN_SELCHANGE = CDN_FIRST - 1;
417     public static final int CDRF_DODEFAULT = 0x00000000;
418     public static final int CDRF_DOERASE = 0x00000008;
419     public static final int CDRF_NEWFONT = 0x00000002;
420     public static final int CDRF_NOTIFYITEMDRAW = 0x00000020;
421     public static final int CDRF_NOTIFYPOSTERASE = 0x00000040;
422     public static final int CDRF_NOTIFYPOSTPAINT = 0x00000010;
423     public static final int CDRF_NOTIFYSUBITEMDRAW = 0x00000020;
424     public static final int CDRF_SKIPDEFAULT = 0x04;
425     public static final int CDRF_SKIPPOSTPAINT = 0x00000100;
426     public static final int CFE_AUTOCOLOR = 0x40000000;
427     public static final int CFE_ITALIC = 0x2;
428     public static final int CFE_STRIKEOUT = 0x8;
429     public static final int CFE_UNDERLINE = 0x4;
430     public static final int CFM_BOLD = 0x1;
431     public static final int CFM_CHARSET = 0x8000000;
432     public static final int CFM_COLOR = 0x40000000;
433     public static final int CFM_FACE = 0x20000000;
434     public static final int CFM_ITALIC = 0x2;
435     public static final int CFM_SIZE = 0x80000000;
436     public static final int CFM_STRIKEOUT = 0x8;
437     public static final int CFM_UNDERLINE = 0x4;
438     public static final int CFM_WEIGHT = 0x400000;
439     public static final int CFS_POINT = 0x2;
440     public static final int CFS_RECT = 0x1;
441     public static final int CF_EFFECTS = 0x100;
442     public static final int CF_INITTOLOGFONTSTRUCT = 0x40;
443     public static final int CF_SCREENFONTS = 0x1;
444     public static final int CF_TEXT = 0x1;
445     public static final int CF_UNICODETEXT = 13;
446     public static final int CF_USESTYLE = 0x80;
447     public static final int CLR_DEFAULT = 0xff000000;
448     public static final int CLR_INVALID = 0xffffffff;
449     public static final int CLR_NONE = 0xffffffff;
450     public static final int CLSCTX_INPROC_SERVER = 1;
451     public static final int COLORONCOLOR = 0x3;
452     public static final int COLOR_3DDKSHADOW = 0x15 | SYS_COLOR_INDEX_FLAG;
453     public static final int COLOR_3DFACE = 0xf | SYS_COLOR_INDEX_FLAG;
454     public static final int COLOR_3DHIGHLIGHT = 0x14 | SYS_COLOR_INDEX_FLAG;
455     public static final int COLOR_3DHILIGHT = 0x14 | SYS_COLOR_INDEX_FLAG;
456     public static final int COLOR_3DLIGHT = 0x16 | SYS_COLOR_INDEX_FLAG;
457     public static final int COLOR_3DSHADOW = 0x10 | SYS_COLOR_INDEX_FLAG;
458     public static final int COLOR_ACTIVECAPTION = 0x2 | SYS_COLOR_INDEX_FLAG;
459     public static final int COLOR_BTNFACE = 0xf | SYS_COLOR_INDEX_FLAG;
460     public static final int COLOR_BTNHIGHLIGHT = 0x14 | SYS_COLOR_INDEX_FLAG;
461     public static final int COLOR_BTNSHADOW = 0x10 | SYS_COLOR_INDEX_FLAG;
462     public static final int COLOR_BTNTEXT = 0x12 | SYS_COLOR_INDEX_FLAG;
463     public static final int COLOR_CAPTIONTEXT = 0x9 | SYS_COLOR_INDEX_FLAG;
464     public static final int COLOR_GRADIENTACTIVECAPTION = 0x1b | SYS_COLOR_INDEX_FLAG;
465     public static final int COLOR_GRADIENTINACTIVECAPTION = 0x1c | SYS_COLOR_INDEX_FLAG;
466     public static final int COLOR_GRAYTEXT = 0x11 | SYS_COLOR_INDEX_FLAG;
467     public static final int COLOR_HIGHLIGHT = 0xd | SYS_COLOR_INDEX_FLAG;
468     public static final int COLOR_HIGHLIGHTTEXT = 0xe | SYS_COLOR_INDEX_FLAG;
469     public static final int COLOR_HOTLIGHT = 26 | SYS_COLOR_INDEX_FLAG;
470     public static final int COLOR_INACTIVECAPTION = 0x3 | SYS_COLOR_INDEX_FLAG;
471     public static final int COLOR_INACTIVECAPTIONTEXT = 0x13 | SYS_COLOR_INDEX_FLAG;
472     public static final int COLOR_INFOBK = 0x18 | SYS_COLOR_INDEX_FLAG;
473     public static final int COLOR_INFOTEXT = 0x17 | SYS_COLOR_INDEX_FLAG;
474     public static final int COLOR_MENU = 0x4 | SYS_COLOR_INDEX_FLAG;
475     public static final int COLOR_MENUTEXT = 0x7 | SYS_COLOR_INDEX_FLAG;
476     public static final int COLOR_SCROLLBAR = 0x0 | SYS_COLOR_INDEX_FLAG;
477     public static final int COLOR_WINDOW = 0x5 | SYS_COLOR_INDEX_FLAG;
478     public static final int COLOR_WINDOWFRAME = 0x6 | SYS_COLOR_INDEX_FLAG;
479     public static final int COLOR_WINDOWTEXT = 0x8 | SYS_COLOR_INDEX_FLAG;
480     public static final int COMPLEXREGION = 0x3;
481     public static final int CP_ACP = 0x0;
482     public static final int CP_UTF8 = 65001;
483     public static final int CP_DROPDOWNBUTTON = 1;
484     public static final int CP_INSTALLED = 0x1;
485     public static final int CS_BYTEALIGNWINDOW = 0x2000;
486     public static final int CS_DBLCLKS = 0x8;
487     public static final int CS_DROPSHADOW = 0x20000;
488     public static final int CS_GLOBALCLASS = 0x4000;
489     public static final int CS_HREDRAW = 0x2;
490     public static final int CS_VREDRAW = 0x1;
491     public static final int CW_USEDEFAULT = 0x80000000;
492     public static final String JavaDoc DATETIMEPICK_CLASS = "SysDateTimePick32"; //$NON-NLS-1$
493
public static final int DATE_LONGDATE = 0x00000002;
494     public static final int DATE_SHORTDATE = 0x00000001;
495     public static final int DATE_YEARMONTH = 0x00000008; //#if(WINVER >= 0x0500)
496
public static final int DCX_CACHE = 0x2;
497     public static final int DCX_CLIPCHILDREN = 0x8;
498     public static final int DCX_CLIPSIBLINGS = 0x10;
499     public static final int DEFAULT_CHARSET = 0x1;
500     public static final int DEFAULT_GUI_FONT = 0x11;
501     public static final int DFCS_BUTTONCHECK = 0x0;
502     public static final int DFCS_CHECKED = 0x400;
503     public static final int DFCS_FLAT = 0x4000;
504     public static final int DFCS_INACTIVE = 0x100;
505     public static final int DFCS_PUSHED = 0x200;
506     public static final int DFCS_SCROLLDOWN = 0x1;
507     public static final int DFCS_SCROLLLEFT = 0x2;
508     public static final int DFCS_SCROLLRIGHT = 0x3;
509     public static final int DFCS_SCROLLUP = 0x0;
510     public static final int DFC_BUTTON = 0x4;
511     public static final int DFC_SCROLL = 0x3;
512     public static final int DIB_RGB_COLORS = 0x0;
513     public static final int DISP_E_EXCEPTION = 0x80020009;
514     public static final int DI_NORMAL = 0x3;
515     public static final int DI_NOMIRROR = 0x10;
516     public static final int DLGC_BUTTON = 0x2000;
517     public static final int DLGC_HASSETSEL = 0x8;
518     public static final int DLGC_STATIC = 0x100;
519     public static final int DLGC_WANTALLKEYS = 0x4;
520     public static final int DLGC_WANTARROWS = 0x1;
521     public static final int DLGC_WANTCHARS = 0x80;
522     public static final int DLGC_WANTTAB = 0x2;
523     public static final int DM_SETDEFID = 0x401;
524     public static final int DSS_DISABLED = 0x20;
525     public static final int DSTINVERT = 0x550009;
526     public static final int DST_BITMAP = 0x4;
527     public static final int DST_ICON = 0x3;
528     public static final int DT_BOTTOM = 0x8;
529     public static final int DT_CALCRECT = 0x400;
530     public static final int DT_CENTER = 0x1;
531     public static final int DT_EDITCONTROL = 0x2000;
532     public static final int DT_EXPANDTABS = 0x40;
533     public static final int DT_ENDELLIPSIS = 32768;
534     public static final int DT_HIDEPREFIX = 0x100000;
535     public static final int DT_LEFT = 0x0;
536     public static final int DT_NOPREFIX = 0x800;
537     public static final int DT_RASPRINTER = 0x2;
538     public static final int DT_RIGHT = 0x2;
539     public static final int DT_SINGLELINE = 0x20;
540     public static final int DT_TOP = 0;
541     public static final int DT_VCENTER = 4;
542     public static final int DT_WORDBREAK = 0x10;
543     public static final int DTM_FIRST = 0x1000;
544     public static final int DTM_GETSYSTEMTIME = DTM_FIRST + 1;
545     public static final int DTM_SETFORMAT = IsUnicode ? DTM_FIRST + 50 : DTM_FIRST + 5;
546     public static final int DTM_SETSYSTEMTIME = DTM_FIRST + 2;
547     public static final int DTN_FIRST = 0xFFFFFD08;
548     public static final int DTN_DATETIMECHANGE = DTN_FIRST + 1;
549     public static final int DTS_LONGDATEFORMAT = 0x0004;
550     public static final int DTS_SHORTDATECENTURYFORMAT = 0x000C;
551     public static final int DTS_SHORTDATEFORMAT = 0x0000;
552     public static final int DTS_TIMEFORMAT = 0x0009;
553     public static final int DTS_UPDOWN = 0x0001;
554     public static final int E_POINTER = 0x80004003;
555     public static final int EBP_NORMALGROUPBACKGROUND = 5;
556     public static final int EBP_NORMALGROUPCOLLAPSE = 6;
557     public static final int EBP_NORMALGROUPEXPAND = 7;
558     public static final int EBP_NORMALGROUPHEAD = 8;
559     public static final int EBNGC_NORMAL = 1;
560     public static final int EBNGC_HOT = 2;
561     public static final int EBNGC_PRESSED = 3;
562     public static final int EBP_HEADERBACKGROUND = 1;
563     public static final int EC_LEFTMARGIN = 0x1;
564     public static final int EC_RIGHTMARGIN = 0x2;
565     public static final int ECOOP_AND = 0x3;
566     public static final int ECOOP_OR = 0x2;
567     public static final int ECO_AUTOHSCROLL = 0x80;
568     public static final int EDGE_RAISED = (BDR_RAISEDOUTER | BDR_RAISEDINNER);
569     public static final int EDGE_SUNKEN = (BDR_SUNKENOUTER | BDR_SUNKENINNER);
570     public static final int EDGE_ETCHED = (BDR_SUNKENOUTER | BDR_RAISEDINNER);
571     public static final int EDGE_BUMP = (BDR_RAISEDOUTER | BDR_SUNKENINNER);
572     public static final int EM_CANUNDO = 0xc6;
573     public static final int EM_CHARFROMPOS = 0xd7;
574     public static final int EM_DISPLAYBAND = 0x433;
575     public static final int EM_GETFIRSTVISIBLELINE = 0xce;
576     public static final int EM_GETLIMITTEXT = 0xd5;
577     public static final int EM_GETLINE = 0xc4;
578     public static final int EM_GETLINECOUNT = 0xba;
579     public static final int EM_GETMARGINS = 0xd4;
580     public static final int EM_GETPASSWORDCHAR = 0xd2;
581     public static final int EM_GETSCROLLPOS = 0x4dd;
582     public static final int EM_GETSEL = 0xb0;
583     public static final int EM_LIMITTEXT = 0xc5;
584     public static final int EM_LINEFROMCHAR = 0xc9;
585     public static final int EM_LINEINDEX = 0xbb;
586     public static final int EM_LINELENGTH = 0xc1;
587     public static final int EM_LINESCROLL = 0xb6;
588     public static final int EM_POSFROMCHAR = 0xd6;
589     public static final int EM_REPLACESEL = 0xc2;
590     public static final int EM_SCROLLCARET = 0xb7;
591     public static final int EM_SETBKGNDCOLOR = 0x443;
592     public static final int EM_SETLIMITTEXT = 0xc5;
593     public static final int EM_SETMARGINS = 211;
594     public static final int EM_SETOPTIONS = 0x44d;
595     public static final int EM_SETPARAFORMAT = 0x447;
596     public static final int EM_SETPASSWORDCHAR = 0xcc;
597     public static final int EM_SETCUEBANNER = 0x1500 + 1;
598     public static final int EM_SETREADONLY = 0xcf;
599     public static final int EM_SETSEL = 0xb1;
600     public static final int EM_SETTABSTOPS = 0xcb;
601     public static final int EM_UNDO = 199;
602     public static final int EN_ALIGN_LTR_EC = 0x0700;
603     public static final int EN_ALIGN_RTL_EC = 0x0701;
604     public static final int EN_CHANGE = 0x300;
605     public static final int EP_EDITTEXT = 1;
606     public static final int ERROR_NO_MORE_ITEMS = 0x103;
607     public static final int ESB_DISABLE_BOTH = 0x3;
608     public static final int ESB_ENABLE_BOTH = 0x0;
609     public static final int ES_AUTOHSCROLL = 0x80;
610     public static final int ES_AUTOVSCROLL = 0x40;
611     public static final int ES_CENTER = 0x1;
612     public static final int ES_MULTILINE = 0x4;
613     public static final int ES_NOHIDESEL = 0x100;
614     public static final int ES_PASSWORD = 0x20;
615     public static final int ES_READONLY = 0x800;
616     public static final int ES_RIGHT = 0x2;
617     public static final int ETO_CLIPPED = 0x4;
618     public static final int ETS_NORMAL = 1;
619     public static final int ETS_HOT = 2;
620     public static final int ETS_SELECTED = 3;
621     public static final int ETS_DISABLED = 4;
622     public static final int ETS_FOCUSED = 5;
623     public static final int ETS_READONLY = 6;
624     public static final int EVENT_OBJECT_FOCUS = 0x8005;
625     public static final int EVENT_OBJECT_LOCATIONCHANGE = 0x800B;
626 // public static final int EVENT_OBJECT_SELECTION = 0x8006;
627
public static final int EVENT_OBJECT_SELECTIONWITHIN = 0x8009;
628     public static final int EVENT_OBJECT_VALUECHANGE = 0x800E;
629     public static final int FALT = 0x10;
630     public static final int FCONTROL = 0x8;
631     public static final int FE_FONTSMOOTHINGCLEARTYPE = 0x0002;
632     public static final int FEATURE_DISABLE_NAVIGATION_SOUNDS = 21;
633     public static final int FILE_ATTRIBUTE_NORMAL = 0x00000080;
634     public static final int FNERR_INVALIDFILENAME = 0x3002;
635     public static final int FNERR_BUFFERTOOSMALL = 0x3003;
636     public static final int FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100;
637     public static final int FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000;
638     public static final int FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200;
639     public static final int FR_PRIVATE = 0x10;
640     public static final int FSHIFT = 0x4;
641     public static final int FVIRTKEY = 0x1;
642     public static final int GBS_NORMAL = 1;
643     public static final int GBS_DISABLED = 2;
644     public static final int GCS_COMPSTR = 0x8;
645     public static final int GCS_RESULTSTR = 0x800;
646     public static final int GDT_VALID = 0;
647     public static final int GET_FEATURE_FROM_PROCESS = 0x2;
648     public static final int GLPS_CLOSED = 1;
649     public static final int GLPS_OPENED = 2;
650     public static final int GM_ADVANCED = 2;
651     public static final int GMDI_USEDISABLED = 0x1;
652     public static final int GMEM_FIXED = 0x0;
653     public static final int GMEM_ZEROINIT = 0x40;
654     public static final int GN_CONTEXTMENU = 1000;
655     public static final int GPTR = 0x40;
656     public static final int GRADIENT_FILL_RECT_H = 0x0;
657     public static final int GRADIENT_FILL_RECT_V = 0x1;
658     public static final int GTL_NUMBYTES = 0x10;
659     public static final int GTL_NUMCHARS = 0x8;
660     public static final int GTL_PRECISE = 0x2;
661     public static final int GT_DEFAULT = 0x0;
662     public static final int GUI_16BITTASK = 0x20;
663     public static final int GUI_CARETBLINKING = 0x1;
664     public static final int GUI_INMENUMODE = 0x4;
665     public static final int GUI_INMOVESIZE = 0x2;
666     public static final int GUI_POPUPMENUMODE = 0x10;
667     public static final int GUI_SYSTEMMENUMODE = 0x8;
668     public static final int GWL_EXSTYLE = 0xffffffec;
669     public static final int GWL_ID = -12;
670     public static final int GWL_HWNDPARENT = -8;
671     public static final int GWL_STYLE = 0xfffffff0;
672     public static final int GWL_USERDATA = 0xffffffeb;
673     public static final int GWL_WNDPROC = 0xfffffffc;
674     public static final int GWLP_ID = -12;
675     public static final int GWLP_HWNDPARENT = -8;
676     public static final int GWLP_USERDATA = 0xffffffeb;
677     public static final int GWLP_WNDPROC = 0xfffffffc;
678     public static final int GW_CHILD = 0x5;
679     public static final int GW_HWNDFIRST = 0x0;
680     public static final int GW_HWNDLAST = 0x1;
681     public static final int GW_HWNDNEXT = 0x2;
682     public static final int GW_HWNDPREV = 0x3;
683     public static final int GW_OWNER = 0x4;
684     public static final int HBMMENU_CALLBACK = 0xffffffff;
685     public static final int HCBT_CREATEWND = 3;
686     public static final int HCF_HIGHCONTRASTON = 0x1;
687     public static final int HDF_BITMAP = 0x2000;
688     public static final int HDF_BITMAP_ON_RIGHT = 0x1000;
689     public static final int HDF_CENTER = 2;
690     public static final int HDF_JUSTIFYMASK = 0x3;
691     public static final int HDF_IMAGE = 0x0800;
692     public static final int HDF_LEFT = 0;
693     public static final int HDF_RIGHT = 1;
694     public static final int HDF_SORTUP = 0x0400;
695     public static final int HDF_SORTDOWN = 0x0200;
696     public static final int HDI_BITMAP = 0x0010;
697     public static final int HDI_IMAGE = 32;
698     public static final int HDI_ORDER = 0x80;
699     public static final int HDI_TEXT = 0x2;
700     public static final int HDI_WIDTH = 0x1;
701     public static final int HDI_FORMAT = 0x4;
702     public static final int HDM_FIRST = 0x1200;
703     public static final int HDM_DELETEITEM = HDM_FIRST + 2;
704     public static final int HDM_GETBITMAPMARGIN = HDM_FIRST + 21;
705     public static final int HDM_GETITEMCOUNT = 0x1200;
706     public static final int HDM_GETITEMA = HDM_FIRST + 3;
707     public static final int HDM_GETITEMW = HDM_FIRST + 11;
708     public static final int HDM_GETITEM = IsUnicode ? HDM_GETITEMW : HDM_GETITEMA;
709     public static final int HDM_GETITEMRECT = HDM_FIRST + 7;
710     public static final int HDM_GETORDERARRAY = HDM_FIRST + 17;
711     public static final int HDM_HITTEST = HDM_FIRST + 6;
712     public static final int HDM_INSERTITEMA = HDM_FIRST + 1;
713     public static final int HDM_INSERTITEMW = HDM_FIRST + 10;
714     public static final int HDM_INSERTITEM = IsUnicode ? HDM_INSERTITEMW : HDM_INSERTITEMA;
715     public static final int HDM_LAYOUT = HDM_FIRST + 5;
716     public static final int HDM_ORDERTOINDEX = HDM_FIRST + 15;
717     public static final int HDM_SETIMAGELIST = HDM_FIRST + 8;
718     public static final int HDM_SETITEMA = HDM_FIRST + 4;
719     public static final int HDM_SETITEMW = HDM_FIRST + 12;
720     public static final int HDM_SETITEM = IsUnicode ? HDM_SETITEMW : HDM_SETITEMA;
721     public static final int HDM_SETORDERARRAY = HDM_FIRST + 18;
722     public static final int HDN_FIRST = 0xfffffed4;
723     public static final int HDN_BEGINDRAG = HDN_FIRST - 10;
724     public static final int HDN_BEGINTRACK = IsUnicode ? 0xfffffeba : 0xfffffece;
725     public static final int HDN_BEGINTRACKW = 0xfffffeba;
726     public static final int HDN_BEGINTRACKA = 0xfffffece;
727     public static final int HDN_DIVIDERDBLCLICKA = HDN_FIRST - 5;
728     public static final int HDN_DIVIDERDBLCLICKW = HDN_FIRST - 25;
729     public static final int HDN_DIVIDERDBLCLICK = IsUnicode ? HDN_DIVIDERDBLCLICKW : HDN_DIVIDERDBLCLICKA;
730     public static final int HDN_ENDDRAG = HDN_FIRST - 11;
731     public static final int HDN_ITEMCHANGED = IsUnicode ? 0xfffffebf : 0xfffffed3;
732     public static final int HDN_ITEMCHANGEDW = 0xfffffebf;
733     public static final int HDN_ITEMCHANGEDA = 0xfffffed3;
734     public static final int HDN_ITEMCHANGINGW = HDN_FIRST - 20;
735     public static final int HDN_ITEMCHANGINGA = HDN_FIRST;
736     public static final int HDN_ITEMCLICKW = HDN_FIRST - 22;
737     public static final int HDN_ITEMCLICKA = HDN_FIRST - 2;
738     public static final int HDN_ITEMDBLCLICKW = HDN_FIRST - 23;
739     public static final int HDN_ITEMDBLCLICKA = HDN_FIRST - 3;
740     public static final int HDN_ITEMDBLCLICK = IsUnicode ? HDN_ITEMDBLCLICKW : HDN_ITEMDBLCLICKA;
741     public static final int HDS_BUTTONS = 0x2;
742     public static final int HDS_DRAGDROP = 0x0040;
743     public static final int HDS_FULLDRAG = 0x80;
744     public static final int HDS_HIDDEN = 0x8;
745 // public static final int HEAP_ZERO_MEMORY = 0x8;
746
public static final int HELPINFO_MENUITEM = 0x2;
747     public static final int HHT_ONDIVIDER = 0x4;
748     public static final int HHT_ONDIVOPEN = 0x8;
749     public static final int HICF_ARROWKEYS = 0x2;
750     public static final int HINST_COMMCTRL = 0xffffffff;
751     public static final int HKEY_CLASSES_ROOT = 0x80000000;
752     public static final int HKEY_CURRENT_USER = 0x80000001;
753     public static final int HKEY_LOCAL_MACHINE = 0x80000002;
754     public static final int HORZRES = 0x8;
755     public static final int HTBORDER = 0x12;
756     public static final int HTCAPTION = 0x2;
757     public static final int HTCLIENT = 0x1;
758     public static final int HTERROR = -2;
759     public static final int HTHSCROLL = 0x6;
760     public static final int HTMENU = 0x5;
761     public static final int HTNOWHERE = 0x0;
762     public static final int HTSYSMENU = 0x3;
763     public static final int HTTRANSPARENT = 0xffffffff;
764     public static final int HTVSCROLL = 0x7;
765     public static final int HWND_BOTTOM = 0x1;
766     public static final int HWND_TOP = 0x0;
767     public static final int HWND_TOPMOST = 0xffffffff;
768     public static final int HWND_NOTOPMOST = -2;
769     public static final int ICC_COOL_CLASSES = 0x400;
770     public static final int ICC_DATE_CLASSES = 0x100;
771     public static final int ICM_NOTOPEN = 0x0;
772     public static final int ICON_BIG = 0x1;
773     public static final int ICON_SMALL = 0x0;
774     public static final int I_IMAGECALLBACK = -1;
775     public static final int I_IMAGENONE = -2;
776     public static final int IDABORT = 0x3;
777     public static final int IDANI_CAPTION = 3;
778     public static final int IDB_STD_SMALL_COLOR = 0x0;
779     public static final int IDC_APPSTARTING = 0x7f8a;
780     public static final int IDC_ARROW = 0x7f00;
781     public static final int IDC_CROSS = 0x7f03;
782     public static final int IDC_HAND = 0x7f89;
783     public static final int IDC_HELP = 0x7f8b;
784     public static final int IDC_IBEAM = 0x7f01;
785     public static final int IDC_NO = 0x7f88;
786     public static final int IDC_SIZE = 0x7f80;
787     public static final int IDC_SIZEALL = 0x7f86;
788     public static final int IDC_SIZENESW = 0x7f83;
789     public static final int IDC_SIZENS = 0x7f85;
790     public static final int IDC_SIZENWSE = 0x7f82;
791     public static final int IDC_SIZEWE = 0x7f84;
792     public static final int IDC_UPARROW = 0x7f04;
793     public static final int IDC_WAIT = 0x7f02;
794     public static final int IDI_APPLICATION = 32512;
795     public static final int IDNO = 0x7;
796     public static final int IDOK = 0x1;
797     public static final int IDRETRY = 0x4;
798     public static final int IDYES = 0x6;
799     public static final int ILC_COLOR = 0x0;
800     public static final int ILC_COLOR16 = 0x10;
801     public static final int ILC_COLOR24 = 0x18;
802     public static final int ILC_COLOR32 = 0x20;
803     public static final int ILC_COLOR4 = 0x4;
804     public static final int ILC_COLOR8 = 0x8;
805     public static final int ILC_MASK = 0x1;
806     public static final int ILC_MIRROR = 0x2000;
807     public static final int ILD_NORMAL = 0x0;
808     public static final int ILD_SELECTED = 0x4;
809     public static final int IMAGE_BITMAP = 0x0;
810     public static final int IMAGE_CURSOR = 0x2;
811     public static final int IMAGE_ICON = 0x1;
812     public static final int IME_CMODE_FULLSHAPE = 0x8;
813     public static final int IME_CMODE_KATAKANA = 0x2;
814     public static final int IME_CMODE_NATIVE = 0x1;
815     public static final int IME_CMODE_ROMAN = 0x10;
816     public static final int INFINITE = 0xffffffff;
817     public static final int INPUT_KEYBOARD = 1;
818     public static final int INPUT_MOUSE = 0;
819     public static final int INTERNET_OPTION_END_BROWSER_SESSION = 42;
820     public static final int KEY_ENUMERATE_SUB_KEYS = 0x8;
821     public static final int KEY_NOTIFY = 0x10;
822     public static final int KEY_QUERY_VALUE = 0x1;
823     public static final int KEY_READ = 0x20019;
824     public static final int KEYEVENTF_KEYUP = 0x0002;
825     public static final int L_MAX_URL_LENGTH = 2084;
826 // public static final int LANG_KOREAN = 0x12;
827
public static final int LANG_NEUTRAL = 0x0;
828     public static final int LANG_USER_DEFAULT = 1 << 10;
829     public static final int LAYOUT_RTL = 0x1;
830     public static final int LAYOUT_BITMAPORIENTATIONPRESERVED = 0x8;
831     public static final int LBN_DBLCLK = 0x2;
832     public static final int LBN_SELCHANGE = 0x1;
833     public static final int LBS_EXTENDEDSEL = 0x800;
834     public static final int LBS_MULTIPLESEL = 0x8;
835     public static final int LBS_NOINTEGRALHEIGHT = 0x100;
836     public static final int LBS_NOTIFY = 0x1;
837     public static final int LB_ADDSTRING = 0x180;
838     public static final int LB_DELETESTRING = 0x182;
839     public static final int LB_ERR = 0xffffffff;
840     public static final int LB_ERRSPACE = 0xfffffffe;
841     public static final int LB_FINDSTRINGEXACT = 0x1a2;
842     public static final int LB_GETCARETINDEX = 0x19f;
843     public static final int LB_GETCOUNT = 0x18b;
844     public static final int LB_GETCURSEL = 0x188;
845     public static final int LB_GETHORIZONTALEXTENT = 0x193;
846     public static final int LB_GETITEMHEIGHT = 0x1a1;
847     public static final int LB_GETITEMRECT = 0x198;
848     public static final int LB_GETSEL = 0x187;
849     public static final int LB_GETSELCOUNT = 0x190;
850     public static final int LB_GETSELITEMS = 0x191;
851     public static final int LB_GETTEXT = 0x189;
852     public static final int LB_GETTEXTLEN = 0x18a;
853     public static final int LB_GETTOPINDEX = 0x18e;
854     public static final int LB_INITSTORAGE = 0x1a8;
855     public static final int LB_INSERTSTRING = 0x181;
856     public static final int LB_RESETCONTENT = 0x184;
857     public static final int LB_SELITEMRANGE = 0x19b;
858     public static final int LB_SELITEMRANGEEX = 0x183;
859     public static final int LB_SETCARETINDEX = 0x19e;
860     public static final int LB_SETCURSEL = 0x186;
861     public static final int LB_SETHORIZONTALEXTENT = 0x194;
862     public static final int LB_SETSEL = 0x185;
863     public static final int LB_SETTOPINDEX = 0x197;
864     public static final int LF_FACESIZE = 32;
865     public static final int LGRPID_ARABIC = 0xd;
866     public static final int LGRPID_HEBREW = 0xc;
867     public static final int LGRPID_INSTALLED = 1;
868     public static final int LIF_ITEMINDEX = 0x1;
869     public static final int LIF_STATE = 0x2;
870     public static final int LIS_FOCUSED = 0x1;
871     public static final int LIS_ENABLED = 0x2;
872     public static final int LISS_HOT = 0x2;
873     public static final int LISS_SELECTED = 0x3;
874     public static final int LISS_SELECTEDNOTFOCUS = 0x5;
875     public static final int LM_GETIDEALHEIGHT = 0x701;
876     public static final int LM_SETITEM = 0x702;
877     public static final int LM_GETITEM = 0x703;
878     public static final int LCID_SUPPORTED = 0x2;
879     public static final int LOCALE_IDEFAULTANSICODEPAGE = 0x1004;
880     public static final int LOCALE_IDATE = 0x00000021;
881     public static final int LOCALE_ITIME = 0x00000023;
882     public static final int LOCALE_RETURN_NUMBER = 0x20000000; // #if(WINVER >= 0x0400)
883
public static final int LOCALE_S1159 = 0x00000028;
884     public static final int LOCALE_S2359 = 0x00000029;
885     public static final int LOCALE_SDECIMAL = 14;
886     public static final int LOCALE_SISO3166CTRYNAME = 0x5a;
887     public static final int LOCALE_SISO639LANGNAME = 0x59;
888     public static final int LOCALE_SLONGDATE = 0x00000020;
889     public static final int LOCALE_SSHORTDATE = 0x0000001F;
890     public static final int LOCALE_STIMEFORMAT = 0x00001003;
891     public static final int LOCALE_SYEARMONTH = 0x00001006; // #if(WINVER >= 0x0500)
892
public static final int LOCALE_SDAYNAME1 = 0x0000002A; // long name for Monday
893
public static final int LOCALE_SDAYNAME2 = 0x0000002B; // long name for Tuesday
894
public static final int LOCALE_SDAYNAME3 = 0x0000002C; // long name for Wednesday
895
public static final int LOCALE_SDAYNAME4 = 0x0000002D; // long name for Thursday
896
public static final int LOCALE_SDAYNAME5 = 0x0000002E; // long name for Friday
897
public static final int LOCALE_SDAYNAME6 = 0x0000002F; // long name for Saturday
898
public static final int LOCALE_SDAYNAME7 = 0x00000030; // long name for Sunday
899
public static final int LOCALE_SMONTHNAME1 = 0x00000038; // long name for January
900
public static final int LOCALE_SMONTHNAME2 = 0x00000039; // long name for February
901
public static final int LOCALE_SMONTHNAME3 = 0x0000003A; // long name for March
902
public static final int LOCALE_SMONTHNAME4 = 0x0000003B; // long name for April
903
public static final int LOCALE_SMONTHNAME5 = 0x0000003C; // long name for May
904
public static final int LOCALE_SMONTHNAME6 = 0x0000003D; // long name for June
905
public static final int LOCALE_SMONTHNAME7 = 0x0000003E; // long name for July
906
public static final int LOCALE_SMONTHNAME8 = 0x0000003F; // long name for August
907
public static final int LOCALE_SMONTHNAME9 = 0x00000040; // long name for September
908
public static final int LOCALE_SMONTHNAME10 = 0x00000041; // long name for October
909
public static final int LOCALE_SMONTHNAME11 = 0x00000042; // long name for November
910
public static final int LOCALE_SMONTHNAME12 = 0x00000043; // long name for December
911
public static final int LOCALE_USER_DEFAULT = 1024;
912     public static final int LOGPIXELSX = 0x58;
913     public static final int LOGPIXELSY = 0x5a;
914     public static final int LPSTR_TEXTCALLBACK = 0xffffffff;
915     public static final int LR_DEFAULTCOLOR = 0x0;
916     public static final int LR_SHARED = 0x8000;
917     public static final int LVCFMT_BITMAP_ON_RIGHT = 0x1000;
918     public static final int LVCFMT_CENTER = 0x2;
919     public static final int LVCFMT_IMAGE = 0x800;
920     public static final int LVCFMT_LEFT = 0x0;
921     public static final int LVCFMT_RIGHT = 0x1;
922     public static final int LVCF_FMT = 0x1;
923     public static final int LVCF_IMAGE = 0x10;
924     public static final int LVCFMT_JUSTIFYMASK = 0x3;
925     public static final int LVCF_TEXT = 0x4;
926     public static final int LVCF_WIDTH = 0x2;
927     public static final int LVHT_ONITEM = 0xe;
928     public static final int LVHT_ONITEMICON = 0x2;
929     public static final int LVHT_ONITEMLABEL = 0x4;
930     public static final int LVHT_ONITEMSTATEICON = 0x8;
931     public static final int LVIF_IMAGE = 0x2;
932     public static final int LVIF_INDENT = 0x10;
933     public static final int LVIF_STATE = 0x8;
934     public static final int LVIF_TEXT = 0x1;
935     public static final int LVIR_BOUNDS = 0x0;
936     public static final int LVIR_ICON = 0x1;
937     public static final int LVIR_LABEL = 0x2;
938     public static final int LVIR_SELECTBOUNDS = 0x3;
939     public static final int LVIS_DROPHILITED = 0x8;
940     public static final int LVIS_FOCUSED = 0x1;
941     public static final int LVIS_SELECTED = 0x2;
942     public static final int LVIS_STATEIMAGEMASK = 0xf000;
943     public static final int LVM_FIRST = 0x1000;
944     public static final int LVM_APPROXIMATEVIEWRECT = 0x1040;
945     public static final int LVM_CREATEDRAGIMAGE = LVM_FIRST + 33;
946     public static final int LVM_DELETEALLITEMS = 0x1009;
947     public static final int LVM_DELETECOLUMN = 0x101c;
948     public static final int LVM_DELETEITEM = 0x1008;
949     public static final int LVM_ENSUREVISIBLE = 0x1013;
950     public static final int LVM_GETBKCOLOR = 0x1000;
951     public static final int LVM_GETCOLUMN = IsUnicode ? 0x105f : 0x1019;
952     public static final int LVM_GETCOLUMNORDERARRAY = LVM_FIRST + 59;
953     public static final int LVM_GETCOLUMNWIDTH = 0x101d;
954     public static final int LVM_GETCOUNTPERPAGE = 0x1028;
955     public static final int LVM_GETEXTENDEDLISTVIEWSTYLE = 0x1037;
956     public static final int LVM_GETHEADER = 0x101f;
957     public static final int LVM_GETIMAGELIST = 0x1002;
958     public static final int LVM_GETITEM = IsUnicode ? 0x104b : 0x1005;
959     public static final int LVM_GETITEMW = 0x104b;
960     public static final int LVM_GETITEMA = 0x1005;
961     public static final int LVM_GETITEMCOUNT = 0x1004;
962     public static final int LVM_GETITEMRECT = 0x100e;
963     public static final int LVM_GETITEMSTATE = 0x102c;
964     public static final int LVM_GETNEXTITEM = 0x100c;
965     public static final int LVM_GETSELECTEDCOLUMN = LVM_FIRST + 174;
966     public static final int LVM_GETSELECTEDCOUNT = 0x1032;
967     public static final int LVM_GETSTRINGWIDTH = IsUnicode ? 0x1057 : 0x1011;
968     public static final int LVM_GETSUBITEMRECT = 0x1038;
969     public static final int LVM_GETTEXTCOLOR = 0x1023;
970     public static final int LVM_GETTOOLTIPS = 0x104e;
971     public static final int LVM_GETTOPINDEX = 0x1027;
972     public static final int LVM_HITTEST = 0x1012;
973     public static final int LVM_INSERTCOLUMN = IsUnicode ? 0x1061 : 0x101b;
974     public static final int LVM_INSERTITEM = IsUnicode ? 0x104d : 0x1007;
975     public static final int LVM_REDRAWITEMS = LVM_FIRST + 21;
976     public static final int LVM_SCROLL = 0x1014;
977     public static final int LVM_SETBKCOLOR = 0x1001;
978     public static final int LVM_SETCALLBACKMASK = LVM_FIRST + 11;
979     public static final int LVM_SETCOLUMN = IsUnicode ? 0x1060 : 0x101a;
980     public static final int LVM_SETCOLUMNORDERARRAY = LVM_FIRST + 58;
981     public static final int LVM_SETCOLUMNWIDTH = 0x101e;
982     public static final int LVM_SETEXTENDEDLISTVIEWSTYLE = 0x1036;
983     public static final int LVM_SETIMAGELIST = 0x1003;
984     public static final int LVM_SETITEM = IsUnicode ? 0x104c : 0x1006;
985     public static final int LVM_SETITEMCOUNT = LVM_FIRST + 47;
986     public static final int LVM_SETITEMSTATE = 0x102b;
987     public static final int LVM_SETSELECTIONMARK = LVM_FIRST + 67;
988     public static final int LVM_SETSELECTEDCOLUMN = LVM_FIRST + 140;
989     public static final int LVM_SETTEXTBKCOLOR = 0x1026;
990     public static final int LVM_SETTEXTCOLOR = 0x1024;
991     public static final int LVNI_FOCUSED = 0x1;
992     public static final int LVNI_SELECTED = 0x2;
993     public static final int LVN_BEGINDRAG = 0xffffff93;
994     public static final int LVN_BEGINRDRAG = 0xffffff91;
995     public static final int LVN_COLUMNCLICK = 0xffffff94;
996     public static final int LVN_FIRST = 0xffffff9c;
997     public static final int LVN_GETDISPINFOA = LVN_FIRST - 50;
998     public static final int LVN_GETDISPINFOW = LVN_FIRST - 77;
999     public static final int LVN_ITEMACTIVATE = 0xffffff8e;
1000    public static final int LVN_ITEMCHANGED = 0xffffff9b;
1001    public static final int LVN_MARQUEEBEGIN = 0xffffff64;
1002    public static final int LVN_ODFINDITEMA = LVN_FIRST - 52;
1003    public static final int LVN_ODFINDITEMW = LVN_FIRST - 79;
1004    public static final int LVN_ODSTATECHANGED = LVN_FIRST - 15;
1005    public static final int LVP_LISTITEM = 1;
1006    public static final int LVSCW_AUTOSIZE = 0xffffffff;
1007    public static final int LVSCW_AUTOSIZE_USEHEADER = 0xfffffffe;
1008    public static final int LVSICF_NOINVALIDATEALL = 0x1;
1009    public static final int LVSICF_NOSCROLL = 0x2;
1010    public static final int LVSIL_SMALL = 0x1;
1011    public static final int LVSIL_STATE = 0x2;
1012    public static final int LVS_EX_DOUBLEBUFFER = 0x10000;
1013    public static final int LVS_EX_FULLROWSELECT = 0x20;
1014    public static final int LVS_EX_GRIDLINES = 0x1;
1015    public static final int LVS_EX_HEADERDRAGDROP = 0x10;
1016    public static final int LVS_EX_LABELTIP = 0x4000;
1017    public static final int LVS_EX_ONECLICKACTIVATE = 0x40;
1018    public static final int LVS_EX_SUBITEMIMAGES = 0x2;
1019    public static final int LVS_EX_TRACKSELECT = 0x8;
1020    public static final int LVS_EX_TRANSPARENTBKGND = 0x800000;
1021    public static final int LVS_EX_TWOCLICKACTIVATE = 0x80;
1022    public static final int LVS_LIST = 0x3;
1023    public static final int LVS_NOCOLUMNHEADER = 0x4000;
1024    public static final int LVS_NOSCROLL = 0x2000;
1025    public static final int LVS_OWNERDATA = 0x1000;
1026    public static final int LVS_OWNERDRAWFIXED = 0x400;
1027    public static final int LVS_REPORT = 0x1;
1028    public static final int LVS_SHAREIMAGELISTS = 0x40;
1029    public static final int LVS_SHOWSELALWAYS = 0x8;
1030    public static final int LVS_SINGLESEL = 0x4;
1031    public static final int LWA_COLORKEY = 0x00000001;
1032    public static final int LWA_ALPHA = 0x00000002;
1033    public static final int MAX_LINKID_TEXT = 48;
1034// public static final int MAX_PATH = 260;
1035
public static final int MA_NOACTIVATE = 0x3;
1036// public static final int MANIFEST_RESOURCE_ID = 2;
1037
public static final int MB_ABORTRETRYIGNORE = 0x2;
1038    public static final int MB_APPLMODAL = 0x0;
1039    public static final int MB_ICONERROR = 0x10;
1040    public static final int MB_ICONINFORMATION = 0x40;
1041    public static final int MB_ICONQUESTION = 0x20;
1042    public static final int MB_ICONWARNING = 0x30;
1043    public static final int MB_OK = 0x0;
1044    public static final int MB_OKCANCEL = 0x1;
1045    public static final int MB_PRECOMPOSED = 0x1;
1046    public static final int MB_RETRYCANCEL = 0x5;
1047    public static final int MB_RTLREADING = 0x100000;
1048    public static final int MB_SYSTEMMODAL = 0x1000;
1049    public static final int MB_TASKMODAL = 0x2000;
1050    public static final int MB_TOPMOST = 0x00040000;
1051    public static final int MB_YESNO = 0x4;
1052    public static final int MB_YESNOCANCEL = 0x3;
1053    public static final int MCM_FIRST = 0x1000;
1054    public static final int MCM_GETCURSEL = MCM_FIRST + 1;
1055    public static final int MCM_SETCURSEL = MCM_FIRST + 2;
1056    public static final int MCN_FIRST = 0xFFFFFD12;
1057    public static final int MCN_SELCHANGE = MCN_FIRST + 1;
1058    public static final int MCM_GETMINREQRECT = MCM_FIRST + 9;
1059    public static final int MCS_NOTODAY = 0x0010;
1060    public static final int MDIS_ALLCHILDSTYLES = 0x0001;
1061    public static final int MFS_CHECKED = 0x8;
1062    public static final int MFS_DISABLED = 0x3;
1063    public static final int MFS_GRAYED = 0x3;
1064    public static final int MFT_RADIOCHECK = 0x200;
1065    public static final int MFT_RIGHTJUSTIFY = 0x4000;
1066    public static final int MFT_RIGHTORDER = 0x2000;
1067    public static final int MFT_SEPARATOR = 0x800;
1068    public static final int MFT_STRING = 0x0;
1069    public static final int MF_BYCOMMAND = 0x0;
1070    public static final int MF_BYPOSITION = 0x400;
1071    public static final int MF_CHECKED = 0x8;
1072    public static final int MF_DISABLED = 0x2;
1073    public static final int MF_ENABLED = 0x0;
1074    public static final int MF_GRAYED = 0x1;
1075    public static final int MF_HILITE = 0x80;
1076    public static final int MF_POPUP = 0x10;
1077    public static final int MF_SEPARATOR = 0x800;
1078    public static final int MF_SYSMENU = 0x2000;
1079    public static final int MF_UNCHECKED = 0x0;
1080    public static final int MIIM_BITMAP = 0x80;
1081    public static final int MIIM_DATA = 0x20;
1082    public static final int MIIM_ID = 0x2;
1083    public static final int MIIM_STATE = 0x1;
1084    public static final int MIIM_SUBMENU = 0x4;
1085    public static final int MIIM_TYPE = 0x10;
1086    public static final int MIM_BACKGROUND = 0x2;
1087    public static final int MIM_STYLE = 0x10;
1088    public static final int MK_ALT = 0x20;
1089    public static final int MK_CONTROL = 0x8;
1090    public static final int MK_LBUTTON = 0x1;
1091    public static final int MK_MBUTTON = 0x10;
1092    public static final int MK_RBUTTON = 0x2;
1093    public static final int MK_SHIFT = 0x4;
1094    public static final int MK_XBUTTON1 = 0x20;
1095    public static final int MK_XBUTTON2 = 0x40;
1096    public static final int MM_TEXT = 0x1;
1097    public static final int MNC_CLOSE = 0x1;
1098    public static final int MNS_CHECKORBMP = 0x4000000;
1099    public static final int MONITOR_DEFAULTTONEAREST = 0x2;
1100    public static final int MONITORINFOF_PRIMARY = 0x1;
1101    public static final String JavaDoc MONTHCAL_CLASS = "SysMonthCal32"; //$NON-NLS-1$
1102
public static final int MOUSEEVENTF_ABSOLUTE = 0x8000;
1103    public static final int MOUSEEVENTF_LEFTDOWN = 0x0002;
1104    public static final int MOUSEEVENTF_LEFTUP = 0x0004;
1105    public static final int MOUSEEVENTF_MIDDLEDOWN = 0x0020;
1106    public static final int MOUSEEVENTF_MIDDLEUP = 0x0040;
1107    public static final int MOUSEEVENTF_MOVE = 0x0001;
1108    public static final int MOUSEEVENTF_RIGHTDOWN = 0x0008;
1109    public static final int MOUSEEVENTF_RIGHTUP = 0x0010;
1110    public static final int MOUSEEVENTF_VIRTUALDESK = 0x4000;
1111    public static final int MOUSEEVENTF_WHEEL = 0x0800;
1112    public static final int MOUSEEVENTF_XDOWN = 0x0080;
1113    public static final int MOUSEEVENTF_XUP = 0x0100;
1114    public static final int MSGF_DIALOGBOX = 0;
1115    public static final int MSGF_COMMCTRL_BEGINDRAG = 0x4200;
1116    public static final int MSGF_COMMCTRL_SIZEHEADER = 0x4201;
1117    public static final int MSGF_COMMCTRL_DRAGSELECT = 0x4202;
1118    public static final int MSGF_COMMCTRL_TOOLBARCUST = 0x4203;
1119    public static final int MSGF_MAINLOOP = 8;
1120    public static final int MSGF_MENU = 2;
1121    public static final int MSGF_MOVE = 3;
1122    public static final int MSGF_MESSAGEBOX = 1;
1123    public static final int MSGF_NEXTWINDOW = 6;
1124    public static final int MSGF_SCROLLBAR = 5;
1125    public static final int MSGF_SIZE = 4;
1126    public static final int MSGF_USER = 4096;
1127    public static final int MWMO_INPUTAVAILABLE = 0x4;
1128    public static final int NIF_ICON = 0x00000002;
1129    public static final int NIF_INFO = 0x00000010;
1130    public static final int NIF_MESSAGE = 0x00000001;
1131    public static final int NIF_STATE = 0x00000008;
1132    public static final int NIF_TIP = 0x00000004;
1133    public static final int NIIF_ERROR = 0x00000003;
1134    public static final int NIIF_INFO = 0x00000001;
1135    public static final int NIIF_NONE = 0x00000000;
1136    public static final int NIIF_WARNING = 0x00000002;
1137    public static final int NIM_ADD = 0x00000000;
1138    public static final int NIM_DELETE = 0x00000002;
1139    public static final int NIM_MODIFY = 0x00000001;
1140    public static final int NIN_SELECT = 0x400 + 0;
1141    public static final int NINF_KEY = 0x1;
1142    public static final int NIN_KEYSELECT = NIN_SELECT | NINF_KEY;
1143    public static final int NIN_BALLOONSHOW = 0x400 + 2;
1144    public static final int NIN_BALLOONHIDE = 0x400 + 3;
1145    public static final int NIN_BALLOONTIMEOUT = 0x400 + 4;
1146    public static final int NIN_BALLOONUSERCLICK = 0x400 + 5;
1147    public static final int NIS_HIDDEN = 0x00000001;
1148    public static final int NM_FIRST = 0x0;
1149    public static final int NM_CLICK = 0xfffffffe;
1150    public static final int NM_CUSTOMDRAW = NM_FIRST - 12;
1151    public static final int NM_DBLCLK = 0xfffffffd;
1152    public static final int NM_RECOGNIZEGESTURE = NM_FIRST - 16;
1153    public static final int NM_RELEASEDCAPTURE = NM_FIRST - 16;
1154    public static final int NM_RETURN = 0xfffffffc;
1155    public static final int NOTIFYICONDATAA_V2_SIZE = NOTIFYICONDATAA_V2_SIZE ();
1156    public static final int NOTIFYICONDATAW_V2_SIZE = NOTIFYICONDATAW_V2_SIZE ();
1157    public static final int NOTIFYICONDATA_V2_SIZE = IsUnicode ? NOTIFYICONDATAW_V2_SIZE : NOTIFYICONDATAA_V2_SIZE;
1158    public static final int NOTSRCCOPY = 0x330008;
1159    public static final int NULLREGION = 0x1;
1160    public static final int NULL_BRUSH = 0x5;
1161    public static final int NULL_PEN = 0x8;
1162    public static final int NUMRESERVED = 106;
1163    public static final int OBJID_CARET = 0xFFFFFFF8;
1164    public static final int OBJID_CLIENT = 0xFFFFFFFC;
1165    public static final int OBJID_MENU = 0xFFFFFFFD;
1166    public static final int OBJID_WINDOW = 0x00000000;
1167    public static final int OBJ_BITMAP = 0x7;
1168    public static final int OBJ_FONT = 0x6;
1169    public static final int OBJ_PEN = 0x1;
1170    public static final int OBM_CHECKBOXES = 0x7ff7;
1171    public static final int ODS_SELECTED = 0x1;
1172    public static final int ODT_MENU = 0x1;
1173    public static final int OFN_ALLOWMULTISELECT = 0x200;
1174    public static final int OFN_EXPLORER = 0x80000;
1175    public static final int OFN_ENABLEHOOK = 0x20;
1176    public static final int OFN_HIDEREADONLY = 0x4;
1177    public static final int OFN_NOCHANGEDIR = 0x8;
1178    public static final int OIC_BANG = 0x7F03;
1179    public static final int OIC_HAND = 0x7F01;
1180    public static final int OIC_INFORMATION = 0x7F04;
1181    public static final int OIC_QUES = 0x7F02;
1182    public static final int OIC_WINLOGO = 0x7F05;
1183    public static final int OPAQUE = 0x2;
1184    public static final int PATCOPY = 0xf00021;
1185    public static final int PATINVERT = 0x5a0049;
1186    public static final int PBM_GETPOS = 0x408;
1187    public static final int PBM_GETRANGE = 0x407;
1188    public static final int PBM_GETSTATE = 0x400 + 17;
1189    public static final int PBM_SETBARCOLOR = 0x409;
1190    public static final int PBM_SETBKCOLOR = 0x2001;
1191    public static final int PBM_SETMARQUEE = 0x400 + 10;
1192    public static final int PBM_SETPOS = 0x402;
1193    public static final int PBM_SETRANGE32 = 0x406;
1194    public static final int PBM_SETSTATE = 0x400 + 16;
1195    public static final int PBM_STEPIT = 0x405;
1196    public static final int PBS_MARQUEE = 0x08;
1197    public static final int PBS_SMOOTH = 0x1;
1198    public static final int PBS_VERTICAL = 0x4;
1199    public static final int PBS_NORMAL = 1;
1200    public static final int PBS_HOT = 2;
1201    public static final int PBS_PRESSED = 3;
1202    public static final int PBS_DISABLED = 4;
1203    public static final int PBS_DEFAULTED = 5;
1204    public static final int PBST_NORMAL = 0x0001;
1205    public static final int PBST_ERROR = 0x0002;
1206    public static final int PBST_PAUSED = 0x0003;
1207    public static final int PD_ALLPAGES = 0x0;
1208    public static final int PD_COLLATE = 0x10;
1209    public static final int PD_PAGENUMS = 0x2;
1210    public static final int PD_PRINTTOFILE = 0x20;
1211    public static final int PD_RETURNDC = 0x100;
1212    public static final int PD_SELECTION = 0x1;
1213    public static final int PD_USEDEVMODECOPIESANDCOLLATE = 0x40000;
1214    public static final int PT_CLOSEFIGURE = 1;
1215    public static final int PT_LINETO = 2;
1216    public static final int PT_BEZIERTO = 4;
1217    public static final int PT_MOVETO = 6;
1218    public static final int PFM_TABSTOPS = 0x10;
1219    public static final int PHYSICALHEIGHT = 0x6f;
1220    public static final int PHYSICALOFFSETX = 0x70;
1221    public static final int PHYSICALOFFSETY = 0x71;
1222    public static final int PHYSICALWIDTH = 0x6e;
1223    public static final int PLANES = 0xe;
1224    public static final int PM_NOREMOVE = 0x0;
1225    public static final int PM_NOYIELD = 0x2;
1226    public static final int QS_HOTKEY = 0x0080;
1227    public static final int QS_KEY = 0x0001;
1228    public static final int QS_MOUSEMOVE = 0x0002;
1229    public static final int QS_MOUSEBUTTON = 0x0004;
1230    public static final int QS_MOUSE = QS_MOUSEMOVE | QS_MOUSEBUTTON;
1231    public static final int QS_INPUT = QS_KEY | QS_MOUSE;
1232    public static final int QS_POSTMESSAGE = 0x0008;
1233    public static final int QS_TIMER = 0x0010;
1234    public static final int QS_PAINT = 0x0020;
1235    public static final int QS_SENDMESSAGE = 0x0040;
1236    public static final int QS_ALLINPUT = QS_MOUSEMOVE | QS_MOUSEBUTTON | QS_KEY | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_SENDMESSAGE;
1237    public static final int PM_QS_INPUT = QS_INPUT << 16;
1238    public static final int PM_QS_POSTMESSAGE = (QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16;
1239    public static final int PM_QS_PAINT = QS_PAINT << 16;
1240    public static final int PM_QS_SENDMESSAGE = QS_SENDMESSAGE << 16;
1241    public static final int PM_REMOVE = 0x1;
1242    public static final String JavaDoc PROGRESS_CLASS = "msctls_progress32"; //$NON-NLS-1$
1243
public static final int PP_BAR = 1;
1244    public static final int PP_BARVERT = 2;
1245    public static final int PP_CHUNK = 3;
1246    public static final int PP_CHUNKVERT = 4;
1247    public static final int PRF_CHILDREN = 16;
1248    public static final int PRF_CLIENT = 0x4;
1249    public static final int PRF_ERASEBKGND = 0x8;
1250    public static final int PRF_NONCLIENT = 0x2;
1251    public static final int PROGRESSCHUNKSIZE = 2411;
1252    public static final int PROGRESSSPACESIZE = 2412;
1253    public static final int PS_DASH = 0x1;
1254    public static final int PS_DASHDOT = 0x3;
1255    public static final int PS_DASHDOTDOT = 0x4;
1256    public static final int PS_DOT = 0x2;
1257    public static final int PS_ENDCAP_FLAT = 0x200;
1258    public static final int PS_ENDCAP_SQUARE = 0x100;
1259    public static final int PS_ENDCAP_ROUND = 0x000;
1260    public static final int PS_ENDCAP_MASK = 0xF00;
1261    public static final int PS_GEOMETRIC = 0x10000;
1262    public static final int PS_JOIN_BEVEL = 0x1000;
1263    public static final int PS_JOIN_MASK = 0xF000;
1264    public static final int PS_JOIN_MITER = 0x2000;
1265    public static final int PS_JOIN_ROUND = 0x0000;
1266    public static final int PS_SOLID = 0x0;
1267    public static final int PS_STYLE_MASK = 0xf;
1268    public static final int PS_TYPE_MASK = 0x000f0000;
1269    public static final int PS_USERSTYLE = 0x7;
1270    public static final int R2_COPYPEN = 0xd;
1271    public static final int R2_XORPEN = 0x7;
1272    public static final int RASTERCAPS = 0x26;
1273    public static final int RASTER_FONTTYPE = 0x1;
1274    public static final int RBBIM_CHILD = 0x10;
1275    public static final int RBBIM_CHILDSIZE = 0x20;
1276    public static final int RBBIM_COLORS = 0x2;
1277    public static final int RBBIM_HEADERSIZE = 0x800;
1278    public static final int RBBIM_ID = 0x100;
1279    public static final int RBBIM_IDEALSIZE = 0x200;
1280    public static final int RBBIM_SIZE = 0x40;
1281    public static final int RBBIM_STYLE = 0x1;
1282    public static final int RBBIM_TEXT = 0x4;
1283    public static final int RBBS_BREAK = 0x1;
1284    public static final int RBBS_GRIPPERALWAYS = 0x80;
1285    public static final int RBBS_NOGRIPPER = 0x00000100;
1286    public static final int RBBS_USECHEVRON = 0x00000200;
1287    public static final int RBBS_VARIABLEHEIGHT = 0x40;
1288    public static final int RBN_FIRST = 0xfffffcc1;
1289    public static final int RBN_BEGINDRAG = RBN_FIRST - 4;
1290    public static final int RBN_CHILDSIZE = RBN_FIRST - 8;
1291    public static final int RBN_CHEVRONPUSHED = RBN_FIRST - 10;
1292    public static final int RBN_HEIGHTCHANGE = 0xfffffcc1;
1293    public static final int RBS_DBLCLKTOGGLE = 0x8000;
1294    public static final int RBS_BANDBORDERS = 0x400;
1295    public static final int RBS_VARHEIGHT = 0x200;
1296    public static final int RB_DELETEBAND = 0x402;
1297    public static final int RB_GETBANDBORDERS = 0x422;
1298    public static final int RB_GETBANDCOUNT = 0x40c;
1299    public static final int RB_GETBANDINFO = IsUnicode ? 0x41c : 0x41d;
1300    public static final int RB_GETBANDMARGINS = 0x428;
1301    public static final int RB_GETBARHEIGHT = 0x41b;
1302    public static final int RB_GETBKCOLOR = 0x414;
1303    public static final int RB_GETRECT = 0x409;
1304    public static final int RB_GETTEXTCOLOR = 0x416;
1305    public static final int RB_IDTOINDEX = 0x410;
1306    public static final int RB_INSERTBAND = IsUnicode ? 0x40a : 0x401;
1307    public static final int RB_MOVEBAND = 0x427;
1308    public static final int RB_SETBANDINFO = IsUnicode ? 0x40b : 0x406;
1309    public static final int RB_SETBKCOLOR = 0x413;
1310    public static final int RB_SETTEXTCOLOR = 0x415;
1311    public static final int RC_BITBLT = 0x1;
1312    public static final int RC_PALETTE = 0x100;
1313    public static final int RDW_ALLCHILDREN = 0x80;
1314    public static final int RDW_ERASE = 0x4;
1315    public static final int RDW_FRAME = 0x400;
1316    public static final int RDW_INVALIDATE = 0x1;
1317    public static final int RDW_UPDATENOW = 0x100;
1318    public static final int READ_CONTROL = 0x20000;
1319    public static final String JavaDoc REBARCLASSNAME = "ReBarWindow32"; //$NON-NLS-1$
1320
public static final int RGN_AND = 0x1;
1321    public static final int RGN_COPY = 5;
1322    public static final int RGN_DIFF = 0x4;
1323    public static final int RGN_ERROR = 0;
1324    public static final int RGN_OR = 0x2;
1325    public static final int RP_BAND = 3;
1326    public static final int SBP_ARROWBTN = 0x1;
1327    public static final int SBP_THUMBBTNHORZ = 2;
1328    public static final int SBP_THUMBBTNVERT = 3;
1329    public static final int SBP_LOWERTRACKHORZ = 4;
1330    public static final int SBP_UPPERTRACKHORZ = 5;
1331    public static final int SBP_LOWERTRACKVERT = 6;
1332    public static final int SBP_UPPERTRACKVERT = 7;
1333    public static final int SBP_GRIPPERHORZ = 8;
1334    public static final int SBP_GRIPPERVERT = 9;
1335    public static final int SBP_SIZEBOX = 10;
1336    public static final int SBS_HORZ = 0x0;
1337    public static final int SBS_VERT = 0x1;
1338    public static final int SB_BOTH = 0x3;
1339    public static final int SB_BOTTOM = 0x7;
1340    public static final int SB_CTL = 0x2;
1341    public static final int SB_ENDSCROLL = 0x8;
1342    public static final int SB_HORZ = 0x0;
1343    public static final int SB_LINEDOWN = 0x1;
1344    public static final int SB_LINEUP = 0x0;
1345    public static final int SB_PAGEDOWN = 0x3;
1346    public static final int SB_PAGEUP = 0x2;
1347    public static final int SB_THUMBPOSITION = 0x4;
1348    public static final int SB_THUMBTRACK = 0x5;
1349    public static final int SB_TOP = 0x6;
1350    public static final int SB_VERT = 0x1;
1351    public static final int SCF_ALL = 0x4;
1352    public static final int SCF_DEFAULT = 0x0;
1353    public static final int SCF_SELECTION = 0x1;
1354    public static final int SC_CLOSE = 0xf060;
1355    public static final int SC_HSCROLL = 0xf080;
1356    public static final int SC_KEYMENU = 0xf100;
1357    public static final int SC_MAXIMIZE = 0xf030;
1358    public static final int SC_MINIMIZE = 0xf020;
1359    public static final int SC_NEXTWINDOW = 0xF040;
1360    public static final int SC_RESTORE = 0xf120;
1361    public static final int SC_SIZE = 0xf000;
1362    public static final int SC_TASKLIST = 0xf130;
1363    public static final int SC_VSCROLL = 0xf070;
1364    public static final int SCRBS_NORMAL = 1;
1365    public static final int SCRBS_HOT = 2;
1366    public static final int SCRBS_PRESSED = 3;
1367    public static final int SCRBS_DISABLED = 4;
1368    public static final int SEM_FAILCRITICALERRORS = 0x1;
1369    public static final int SET_FEATURE_ON_PROCESS = 0x2;
1370    public static final int SF_RTF = 0x2;
1371    public static final int SHCMBF_HIDDEN = 0x2;
1372    public static final int SHCMBM_OVERRIDEKEY = 0x400 + 403;
1373    public static final int SHCMBM_SETSUBMENU = 0x590;
1374    public static final int SHCMBM_GETSUBMENU = 0x591;
1375    public static final int SHGFI_ICON = 0x000000100;
1376    public static final int SHGFI_SMALLICON= 0x1;
1377    public static final int SHGFI_USEFILEATTRIBUTES = 0x000000010;
1378    public static final int SHMBOF_NODEFAULT = 0x1;
1379    public static final int SHMBOF_NOTIFY = 0x2;
1380    public static final int SHRG_RETURNCMD = 0x1;
1381    public static final int SIF_ALL = 0x17;
1382    public static final int SIF_DISABLENOSCROLL = 0x8;
1383    public static final int SIF_PAGE = 0x2;
1384    public static final int SIF_POS = 0x4;
1385    public static final int SIF_RANGE = 0x1;
1386    public static final int SIF_TRACKPOS = 0x10;
1387    public static final int SIP_DOWN = 1;
1388    public static final int SIP_UP = 0;
1389    public static final int SIPF_ON = 0x1;
1390    public static final int SIZE_RESTORED = 0;
1391    public static final int SIZE_MINIMIZED = 1;
1392    public static final int SIZE_MAXIMIZED = 2;
1393    public static final int SIZEPALETTE = 104;
1394    public static final int SM_CMONITORS = 80;
1395    public static final int SM_CXBORDER = 0x5;
1396    public static final int SM_CXCURSOR = 0xd;
1397    public static final int SM_CXDOUBLECLK = 36;
1398    public static final int SM_CYDOUBLECLK = 37;
1399    public static final int SM_CXEDGE = 0x2d;
1400    public static final int SM_CXHSCROLL = 0x15;
1401    public static final int SM_CXICON = 0x0b;
1402    public static final int SM_CYICON = 0x0c;
1403    public static final int SM_CXVIRTUALSCREEN = 78;
1404    public static final int SM_CYVIRTUALSCREEN = 79;
1405    public static final int SM_CXSMICON = 49;
1406    public static final int SM_CYSMICON = 50;
1407    public static final int SM_CXSCREEN = 0x0;
1408    public static final int SM_XVIRTUALSCREEN = 76;
1409    public static final int SM_YVIRTUALSCREEN = 77;
1410    public static final int SM_CXVSCROLL = 0x2;
1411    public static final int SM_CYBORDER = 0x6;
1412    public static final int SM_CYCURSOR = 0xe;
1413    public static final int SM_CYHSCROLL = 0x3;
1414    public static final int SM_CYMENU = 0xf;
1415    public static final int SM_CXMINTRACK = 34;
1416    public static final int SM_CYMINTRACK = 35;
1417    public static final int SM_CMOUSEBUTTONS = 43;
1418    public static final int SM_CYSCREEN = 0x1;
1419    public static final int SM_CYVSCROLL = 0x14;
1420// public static final int SM_DBCSENABLED = 0x2A;
1421
// public static final int SM_IMMENABLED = 0x52;
1422
public static final int SPI_GETFONTSMOOTHINGTYPE = 0x200A;
1423    public static final int SPI_GETHIGHCONTRAST = 66;
1424    public static final int SPI_GETWORKAREA = 0x30;
1425    public static final int SPI_GETNONCLIENTMETRICS = 41;
1426    public static final int SPI_GETWHEELSCROLLLINES = 104;
1427    public static final int SPI_SETSIPINFO = 224;
1428    public static final int SPI_SETHIGHCONTRAST = 67;
1429    public static final int SRCAND = 0x8800c6;
1430    public static final int SRCCOPY = 0xcc0020;
1431    public static final int SRCINVERT = 0x660046;
1432    public static final int SRCPAINT = 0xee0086;
1433    public static final int SS_BITMAP = 0xe;
1434    public static final int SS_CENTER = 0x1;
1435    public static final int SS_CENTERIMAGE = 0x200;
1436    public static final int SS_EDITCONTROL = 0x2000;
1437    public static final int SS_ICON = 0x3;
1438    public static final int SS_LEFT = 0x0;
1439    public static final int SS_LEFTNOWORDWRAP = 0xc;
1440    public static final int SS_NOTIFY = 0x100;
1441    public static final int SS_OWNERDRAW = 0xd;
1442    public static final int SS_REALSIZEIMAGE = 0x800;
1443    public static final int SS_RIGHT = 0x2;
1444    public static final int STANDARD_RIGHTS_READ = 0x20000;
1445    public static final int STARTF_USESHOWWINDOW = 0x1;
1446    public static final int STD_COPY = 0x1;
1447    public static final int STD_CUT = 0x0;
1448    public static final int STD_FILENEW = 0x6;
1449    public static final int STD_FILEOPEN = 0x7;
1450    public static final int STD_FILESAVE = 0x8;
1451    public static final int STD_PASTE = 0x2;
1452    public static final int STM_GETIMAGE = 0x173;
1453    public static final int STM_SETIMAGE = 0x172;
1454    public static final int SWP_ASYNCWINDOWPOS = 0x4000;
1455    public static final int SWP_DRAWFRAME = 0x20;
1456    public static final int SWP_NOACTIVATE = 0x10;
1457    public static final int SWP_NOCOPYBITS = 0x100;
1458    public static final int SWP_NOMOVE = 0x2;
1459    public static final int SWP_NOREDRAW = 0x8;
1460    public static final int SWP_NOSIZE = 0x1;
1461    public static final int SWP_NOZORDER = 0x4;
1462    public static final int SW_ERASE = 0x4;
1463    public static final int SW_HIDE = 0x0;
1464    public static final int SW_INVALIDATE = 0x2;
1465    public static final int SW_MINIMIZE = 0x6;
1466    public static final int SW_PARENTOPENING = 0x3;
1467    public static final int SW_RESTORE = IsWinCE ? 0xd : 0x9;
1468    public static final int SW_SCROLLCHILDREN = 0x1;
1469    public static final int SW_SHOW = 0x5;
1470    public static final int SW_SHOWMAXIMIZED = IsWinCE ? 0xb : 0x3;
1471    public static final int SW_SHOWMINIMIZED = 0x2;
1472    public static final int SW_SHOWMINNOACTIVE = 0x7;
1473    public static final int SW_SHOWNA = 0x8;
1474    public static final int SW_SHOWNOACTIVATE = 0x4;
1475    public static final int SYNCHRONIZE = 0x100000;
1476    public static final int SYSRGN = 0x4;
1477    public static final int SYSTEM_FONT = 0xd;
1478    public static final int S_OK = 0x0;
1479    public static final int TABP_TABITEM = 1;
1480    public static final int TABP_TABITEMLEFTEDGE = 2;
1481    public static final int TABP_TABITEMRIGHTEDGE = 3;
1482    public static final int TABP_TABITEMBOTHEDGE = 4;
1483    public static final int TABP_TOPTABITEM = 5;
1484    public static final int TABP_TOPTABITEMLEFTEDGE = 6;
1485    public static final int TABP_TOPTABITEMRIGHTEDGE = 7;
1486    public static final int TABP_TOPTABITEMBOTHEDGE = 8;
1487    public static final int TABP_PANE = 9;
1488    public static final int TABP_BODY = 10;
1489    public static final int TBIF_COMMAND = 0x20;
1490    public static final int TBIF_STATE = 0x4;
1491    public static final int TBIF_IMAGE = 0x1;
1492    public static final int TBIF_LPARAM = 0x10;
1493    public static final int TBIF_SIZE = 0x40;
1494    public static final int TBIF_STYLE = 0x8;
1495    public static final int TBIF_TEXT = 0x2;
1496    public static final int TB_GETEXTENDEDSTYLE = 0x400 + 85;
1497    public static final int TBM_GETLINESIZE = 0x418;
1498    public static final int TBM_GETPAGESIZE = 0x416;
1499    public static final int TBM_GETPOS = 0x400;
1500    public static final int TBM_GETRANGEMAX = 0x402;
1501    public static final int TBM_GETRANGEMIN = 0x401;
1502    public static final int TBM_GETTHUMBRECT = 0x419;
1503    public static final int TBM_SETLINESIZE = 0x417;
1504    public static final int TBM_SETPAGESIZE = 0x415;
1505    public static final int TBM_SETPOS = 0x405;
1506    public static final int TBM_SETRANGEMAX = 0x408;
1507    public static final int TBM_SETRANGEMIN = 0x407;
1508    public static final int TBM_SETTICFREQ = 0x414;
1509    public static final int TBN_DROPDOWN = 0xfffffd3a;
1510    public static final int TBN_FIRST = 0xfffffd44;
1511    public static final int TBN_HOTITEMCHANGE = 0xFFFFFD37;
1512    public static final int TBSTATE_CHECKED = 0x1;
1513    public static final int TBSTATE_PRESSED = 0x02;
1514    public static final int TBSTYLE_CUSTOMERASE = 0x2000;
1515    public static final int TBSTYLE_DROPDOWN = 0x8;
1516    public static final int TBSTATE_ENABLED = 0x4;
1517    public static final int TBSTYLE_AUTOSIZE = 0x10;
1518    public static final int TBSTYLE_EX_DOUBLEBUFFER = 0x80;
1519    public static final int TBSTYLE_EX_DRAWDDARROWS = 0x1;
1520    public static final int TBSTYLE_EX_HIDECLIPPEDBUTTONS = 0x10;
1521    public static final int TBSTYLE_EX_MIXEDBUTTONS = 0x8;
1522    public static final int TBSTYLE_FLAT = 0x800;
1523    public static final int TBSTYLE_LIST = 0x1000;
1524    public static final int TBSTYLE_TOOLTIPS = 0x100;
1525    public static final int TBSTYLE_TRANSPARENT = 0x8000;
1526    public static final int TBSTYLE_WRAPABLE = 0x200;
1527    public static final int TBS_AUTOTICKS = 0x1;
1528    public static final int TBS_BOTH = 0x8;
1529    public static final int TBS_DOWNISLEFT = 0x0400;
1530    public static final int TBS_HORZ = 0x0;
1531    public static final int TBS_VERT = 0x2;
1532    public static final int TB_ADDSTRING = IsUnicode ? 0x44d : 0x41c;
1533    public static final int TB_AUTOSIZE = 0x421;
1534    public static final int TB_BUTTONCOUNT = 0x418;
1535    public static final int TB_BUTTONSTRUCTSIZE = 0x41e;
1536    public static final int TB_COMMANDTOINDEX = 0x419;
1537    public static final int TB_DELETEBUTTON = 0x416;
1538    public static final int TB_ENDTRACK = 0x8;
1539    public static final int TB_GETBUTTON = 0x417;
1540    public static final int TB_GETBUTTONINFO = IsUnicode ? 0x43f : 0x441;
1541    public static final int TB_GETBUTTONSIZE = 0x43a;
1542    public static final int TB_GETBUTTONTEXT = IsUnicode ? 0x44b : 0x42d;
1543    public static final int TB_GETDISABLEDIMAGELIST = 0x437;
1544    public static final int TB_GETHOTIMAGELIST = 0x435;
1545    public static final int TB_GETHOTITEM = 0x0400 + 71;
1546    public static final int TB_GETIMAGELIST = 0x431;
1547    public static final int TB_GETITEMRECT = 0x41d;
1548    public static final int TB_GETPADDING = 0x0400 + 86;
1549    public static final int TB_GETROWS = 0x428;
1550    public static final int TB_GETSTATE = 0x412;
1551    public static final int TB_GETTOOLTIPS = 0x423;
1552    public static final int TB_INSERTBUTTON = IsUnicode ? 0x443 : 0x415;
1553    public static final int TB_LOADIMAGES = 0x432;
1554    public static final int TB_MAPACCELERATOR = 0x0400 + (IsUnicode ? 90 : 78);
1555    public static final int TB_SETBITMAPSIZE = 0x420;
1556    public static final int TB_SETBUTTONINFO = IsUnicode ? 0x440 : 0x442;
1557    public static final int TB_SETBUTTONSIZE = 0x41f;
1558    public static final int TB_SETDISABLEDIMAGELIST = 0x436;
1559    public static final int TB_SETEXTENDEDSTYLE = 0x454;
1560    public static final int TB_SETHOTIMAGELIST = 0x434;
1561    public static final int TB_SETHOTITEM = 0x0400 + 72;
1562    public static final int TB_SETIMAGELIST = 0x430;
1563    public static final int TB_SETPARENT = 0x400 + 37;
1564    public static final int TB_SETROWS = 0x427;
1565    public static final int TB_SETSTATE = 0x411;
1566    public static final int TB_THUMBPOSITION = 0x4;
1567    public static final int TCIF_IMAGE = 0x2;
1568    public static final int TCIF_TEXT = 0x1;
1569    public static final int TCI_SRCCHARSET = 0x1;
1570    public static final int TCI_SRCCODEPAGE = 0x2;
1571    public static final int TCM_ADJUSTRECT = 0x1328;
1572    public static final int TCM_DELETEITEM = 0x1308;
1573    public static final int TCM_GETCURSEL = 0x130b;
1574    public static final int TCM_GETITEMCOUNT = 0x1304;
1575    public static final int TCM_GETITEMRECT = 0x130a;
1576    public static final int TCM_GETTOOLTIPS = 0x132d;
1577    public static final int TCM_INSERTITEM = IsUnicode ? 0x133e : 0x1307;
1578    public static final int TCM_SETCURSEL = 0x130c;
1579    public static final int TCM_SETIMAGELIST = 0x1303;
1580    public static final int TCM_SETITEM = IsUnicode ? 0x133d : 0x1306;
1581    public static final int TCN_SELCHANGE = 0xfffffdd9;
1582    public static final int TCN_SELCHANGING = 0xfffffdd8;
1583    public static final int TCS_BOTTOM = 0x0002;
1584    public static final int TCS_FOCUSNEVER = 0x8000;
1585    public static final int TCS_MULTILINE = 0x200;
1586    public static final int TCS_TABS = 0x0;
1587    public static final int TCS_TOOLTIPS = 0x4000;
1588    public static final int TECHNOLOGY = 0x2;
1589    public static final int TIME_NOSECONDS = 0x2;
1590    public static final int TIS_NORMAL = 1;
1591    public static final int TIS_HOT = 2;
1592    public static final int TIS_SELECTED = 3;
1593    public static final int TIS_DISABLED = 4;
1594    public static final int TIS_FOCUSED = 5;
1595    public static final int TKP_TRACK = 1;
1596    public static final int TKP_TRACKVERT = 2;
1597    public static final int TKP_THUMB = 3;
1598    public static final int TKP_THUMBBOTTOM = 4;
1599    public static final int TKP_THUMBTOP = 5;
1600    public static final int TKP_THUMBVERT = 6;
1601    public static final int TKP_THUMBLEFT = 7;
1602    public static final int TKP_THUMBRIGHT = 8;
1603    public static final int TKP_TICS = 9;
1604    public static final int TKP_TICSVERT = 10;
1605    public static final int TME_HOVER = 0x1;
1606    public static final int TME_LEAVE = 0x2;
1607    public static final int TME_QUERY = 0x40000000;
1608    public static final int TMPF_VECTOR = 0x2;
1609    public static final int TMT_CONTENTMARGINS = 3602;
1610    public static final String JavaDoc TOOLBARCLASSNAME = "ToolbarWindow32"; //$NON-NLS-1$
1611
public static final String JavaDoc TOOLTIPS_CLASS = "tooltips_class32"; //$NON-NLS-1$
1612
public static final int TP_BUTTON = 1;
1613    public static final int TP_DROPDOWNBUTTON = 2;
1614    public static final int TP_SPLITBUTTON = 3;
1615    public static final int TP_SPLITBUTTONDROPDOWN = 4;
1616    public static final int TP_SEPARATOR = 5;
1617    public static final int TP_SEPARATORVERT = 6;
1618    public static final int TPM_LEFTALIGN = 0x0;
1619    public static final int TPM_LEFTBUTTON = 0x0;
1620    public static final int TPM_RIGHTBUTTON = 0x2;
1621    public static final int TPM_RIGHTALIGN = 0x8;
1622    public static final String JavaDoc TRACKBAR_CLASS = "msctls_trackbar32"; //$NON-NLS-1$
1623
public static final int TRANSPARENT = 0x1;
1624    public static final int TREIS_DISABLED = 4;
1625    public static final int TREIS_HOT = 2;
1626    public static final int TREIS_NORMAL = 1;
1627    public static final int TREIS_SELECTED = 3;
1628    public static final int TREIS_SELECTEDNOTFOCUS = 5;
1629    public static final int TS_MIN = 0;
1630    public static final int TS_TRUE = 1;
1631    public static final int TS_DRAW = 2;
1632    public static final int TS_NORMAL = 1;
1633    public static final int TS_HOT = 2;
1634    public static final int TS_PRESSED = 3;
1635    public static final int TS_DISABLED = 4;
1636    public static final int TS_CHECKED = 5;
1637    public static final int TS_HOTCHECKED = 6;
1638    public static final int TTDT_AUTOMATIC = 0;
1639    public static final int TTDT_RESHOW = 1;
1640    public static final int TTDT_AUTOPOP = 2;
1641    public static final int TTDT_INITIAL = 3;
1642    public static final int TTF_ABSOLUTE = 0x80;
1643    public static final int TTF_IDISHWND = 0x1;
1644    public static final int TTF_SUBCLASS = 0x10;
1645    public static final int TTF_RTLREADING = 0x4;
1646    public static final int TTF_TRACK = 0x20;
1647    public static final int TTF_TRANSPARENT = 0x100;
1648    public static final int TTI_NONE = 0;
1649    public static final int TTI_INFO = 1;
1650    public static final int TTI_WARNING = 2;
1651    public static final int TTI_ERROR= 3;
1652    public static final int TTM_ACTIVATE = 0x400 + 1;
1653    public static final int TTM_ADDTOOL = IsUnicode ? 0x432 : 0x404;
1654    public static final int TTM_GETCURRENTTOOLA = 0x400 + 15;
1655    public static final int TTM_GETCURRENTTOOLW = 0x400 + 59;
1656    public static final int TTM_GETCURRENTTOOL = 0x400 + (IsUnicode ? 59 : 15);
1657    public static final int TTM_GETDELAYTIME = 0x400 + 21;
1658    public static final int TTM_DELTOOL = IsUnicode ? 0x433 : 0x405;
1659    public static final int TTM_GETTOOLINFO = 0x400 + (IsUnicode ? 53 : 8);
1660    public static final int TTM_NEWTOOLRECT = 0x400 + (IsUnicode ? 52 : 6);
1661    public static final int TTM_POP = 0x400 + 28;
1662    public static final int TTM_SETDELAYTIME = 0x400 + 3;
1663    public static final int TTM_SETMAXTIPWIDTH = 0x418;
1664    public static final int TTM_SETTITLEA = 0x400 + 32;
1665    public static final int TTM_SETTITLEW = 0x400 + 33;
1666    public static final int TTM_SETTITLE = 0x400 + (IsUnicode ? 33 : 32);
1667    public static final int TTM_TRACKPOSITION = 1042;
1668    public static final int TTM_TRACKACTIVATE = 1041;
1669    public static final int TTM_UPDATE = 0x41D;
1670    public static final int TTN_FIRST = 0xfffffdf8;
1671    public static final int TTN_GETDISPINFO = IsUnicode ? 0xfffffdee : 0xfffffdf8;
1672    public static final int TTN_GETDISPINFOW = 0xfffffdee;
1673    public static final int TTN_GETDISPINFOA = 0xfffffdf8;
1674    public static final int TTN_POP = TTN_FIRST - 2;
1675    public static final int TTN_SHOW = TTN_FIRST - 1;
1676    public static final int TTS_ALWAYSTIP = 0x1;
1677    public static final int TTS_BALLOON = 0x40;
1678    public static final int TV_FIRST = 0x1100;
1679    public static final int TVE_COLLAPSE = 0x1;
1680    public static final int TVE_COLLAPSERESET = 0x8000;
1681    public static final int TVE_EXPAND = 0x2;
1682    public static final int TVGN_CARET = 0x9;
1683    public static final int TVGN_CHILD = 0x4;
1684    public static final int TVGN_DROPHILITED = 0x8;
1685    public static final int TVGN_FIRSTVISIBLE = 0x5;
1686    public static final int TVGN_LASTVISIBLE = 0xa;
1687    public static final int TVGN_NEXT = 0x1;
1688    public static final int TVGN_NEXTVISIBLE = 0x6;
1689    public static final int TVGN_PARENT = 0x3;
1690    public static final int TVGN_PREVIOUS = 0x2;
1691    public static final int TVGN_PREVIOUSVISIBLE = 0x7;
1692    public static final int TVGN_ROOT = 0x0;
1693    public static final int TVHT_ONITEM = 0x46;
1694    public static final int TVHT_ONITEMBUTTON = 16;
1695    public static final int TVHT_ONITEMICON = 0x2;
1696    public static final int TVHT_ONITEMLABEL = 0x4;
1697    public static final int TVHT_ONITEMSTATEICON = 0x40;
1698    public static final int TVIF_HANDLE = 0x10;
1699    public static final int TVIF_IMAGE = 0x2;
1700    public static final int TVIF_INTEGRAL = 0x0080;
1701    public static final int TVIF_PARAM = 0x4;
1702    public static final int TVIF_SELECTEDIMAGE = 0x20;
1703    public static final int TVIF_STATE = 0x8;
1704    public static final int TVIF_TEXT = 0x1;
1705    public static final int TVIS_DROPHILITED = 0x8;
1706    public static final int TVIS_EXPANDED = 0x20;
1707    public static final int TVIS_SELECTED = 0x2;
1708    public static final int TVIS_STATEIMAGEMASK = 0xf000;
1709    public static final int TVI_FIRST = 0xffff0001;
1710    public static final int TVI_LAST = 0xffff0002;
1711    public static final int TVI_ROOT = 0xffff0000;
1712    public static final int TVI_SORT = 0xFFFF0003;
1713    public static final int TVM_CREATEDRAGIMAGE = TV_FIRST + 18;
1714    public static final int TVM_DELETEITEM = 0x1101;
1715    public static final int TVM_ENSUREVISIBLE = 0x1114;
1716    public static final int TVM_EXPAND = 0x1102;
1717    public static final int TVM_GETBKCOLOR = 0x111f;
1718    public static final int TVM_GETCOUNT = 0x1105;
1719    public static final int TVM_GETEXTENDEDSTYLE = TV_FIRST + 45;
1720    public static final int TVM_GETIMAGELIST = 0x1108;
1721    public static final int TVM_GETITEM = IsUnicode ? 0x113e : 0x110c;
1722    public static final int TVM_GETITEMHEIGHT = 0x111c;
1723    public static final int TVM_GETITEMRECT = 0x1104;
1724    public static final int TVM_GETITEMSTATE = TV_FIRST + 39;
1725    public static final int TVM_GETNEXTITEM = 0x110a;
1726    public static final int TVM_GETTEXTCOLOR = 0x1120;
1727    public static final int TVM_GETTOOLTIPS = TV_FIRST + 25;
1728    public static final int TVM_GETVISIBLECOUNT = TV_FIRST + 16;
1729    public static final int TVM_HITTEST = 0x1111;
1730    public static final int TVM_INSERTITEM = IsUnicode ? 0x1132 : 0x1100;
1731    public static final int TVM_MAPACCIDTOHTREEITEM = TV_FIRST + 42;
1732    public static final int TVM_MAPHTREEITEMTOACCID = TV_FIRST + 43;
1733    public static final int TVM_SELECTITEM = 0x110b;
1734    public static final int TVM_SETBKCOLOR = 0x111d;
1735    public static final int TVM_SETEXTENDEDSTYLE = TV_FIRST + 44;
1736    public static final int TVM_SETIMAGELIST = 0x1109;
1737    public static final int TVM_SETINSERTMARK = 0x111a;
1738    public static final int TVM_SETITEM = IsUnicode ? 0x113f : 0x110d;
1739    public static final int TVM_SETITEMHEIGHT = TV_FIRST + 27;
1740    public static final int TVM_SETSCROLLTIME = TV_FIRST + 33;
1741    public static final int TVM_SETTEXTCOLOR = 0x111e;
1742    public static final int TVM_SORTCHILDREN = TV_FIRST + 19;
1743    public static final int TVM_SORTCHILDRENCB = TV_FIRST + 21;
1744    public static final int TVN_BEGINDRAGW = 0xfffffe38;
1745    public static final int TVN_BEGINDRAGA = 0xfffffe69;
1746    public static final int TVN_BEGINRDRAGW = 0xfffffe37;
1747    public static final int TVN_BEGINRDRAGA = 0xfffffe68;
1748    public static final int TVN_FIRST = 0xfffffe70;
1749    public static final int TVN_GETDISPINFOA = TVN_FIRST - 3;
1750    public static final int TVN_GETDISPINFOW = TVN_FIRST - 52;
1751    public static final int TVN_ITEMCHANGINGW = TVN_FIRST - 17;
1752    public static final int TVN_ITEMCHANGINGA = TVN_FIRST - 16;
1753    public static final int TVN_ITEMEXPANDEDA = TVN_FIRST -6;
1754    public static final int TVN_ITEMEXPANDEDW = TVN_FIRST - 55;
1755    public static final int TVN_ITEMEXPANDINGW = 0xfffffe3a;
1756    public static final int TVN_ITEMEXPANDINGA = 0xfffffe6b;
1757    public static final int TVN_SELCHANGEDW = 0xfffffe3d;
1758    public static final int TVN_SELCHANGEDA = 0xfffffe6e;
1759    public static final int TVN_SELCHANGINGW = 0xfffffe3e;
1760    public static final int TVN_SELCHANGINGA = 0xfffffe6f;
1761    public static final int TVP_GLYPH = 2;
1762    public static final int TVP_TREEITEM = 1;
1763    public static final int TVSIL_NORMAL = 0x0;
1764    public static final int TVSIL_STATE = 0x2;
1765    public static final int TVS_DISABLEDRAGDROP = 0x10;
1766    public static final int TVS_EX_AUTOHSCROLL = 0x0020;
1767    public static final int TVS_EX_DOUBLEBUFFER = 0x0004;
1768    public static final int TVS_EX_DIMMEDCHECKBOXES = 0x0200;
1769    public static final int TVS_EX_DRAWIMAGEASYNC = 0x0400;
1770    public static final int TVS_EX_EXCLUSIONCHECKBOXES = 0x0100;
1771    public static final int TVS_EX_FADEINOUTEXPANDOS = 0x0040;
1772    public static final int TVS_EX_MULTISELECT = 0x0002;
1773    public static final int TVS_EX_NOINDENTSTATE = 0x0008;
1774    public static final int TVS_EX_PARTIALCHECKBOXES = 0x0080;
1775    public static final int TVS_EX_RICHTOOLTIP = 0x0010;
1776    public static final int TVS_FULLROWSELECT = 0x1000;
1777    public static final int TVS_HASBUTTONS = 0x1;
1778    public static final int TVS_HASLINES = 0x2;
1779    public static final int TVS_LINESATROOT = 0x4;
1780    public static final int TVS_NOHSCROLL = 0x8000;
1781    public static final int TVS_NONEVENHEIGHT = 0x4000;
1782    public static final int TVS_NOTOOLTIPS = 0x80;
1783    public static final int TVS_SHOWSELALWAYS = 0x20;
1784    public static final int TVS_TRACKSELECT = 0x200;
1785    public static final int UDM_GETACCEL = 0x046C;
1786    public static final int UDM_GETRANGE32 = 0x0470;
1787    public static final int UDM_GETPOS = 0x468;
1788    public static final int UDM_GETPOS32 = 0x0472;
1789    public static final int UDM_SETACCEL = 0x046B;
1790    public static final int UDM_SETRANGE32 = 0x046f;
1791    public static final int UDM_SETPOS = 0x467;
1792    public static final int UDM_SETPOS32 = 0x0471;
1793    public static final int UDN_DELTAPOS = -722;
1794    public static final int UDS_ALIGNLEFT = 0x008;
1795    public static final int UDS_ALIGNRIGHT = 0x004;
1796    public static final int UDS_AUTOBUDDY = 0x0010;
1797    public static final int UDS_WRAP = 0x0001;
1798    public static final int UIS_INITIALIZE = 3;
1799    public static final int UISF_HIDEACCEL = 0x2;
1800    public static final int UISF_HIDEFOCUS = 0x1;
1801    public static final String JavaDoc UPDOWN_CLASS = "msctls_updown32"; //$NON-NLS-1$
1802
public static final int USP_E_SCRIPT_NOT_IN_FONT = 0x80040200;
1803    public static final int VERTRES = 0xa;
1804    public static final int VK_BACK = 0x8;
1805    public static final int VK_CANCEL = 0x3;
1806    public static final int VK_CAPITAL = 0x14;
1807    public static final int VK_CONTROL = 0x11;
1808    public static final int VK_DECIMAL = 0x6E;
1809    public static final int VK_DELETE = 0x2e;
1810    public static final int VK_DIVIDE = 0x6f;
1811    public static final int VK_DOWN = 0x28;
1812    public static final int VK_END = 0x23;
1813    public static final int VK_ESCAPE = 0x1b;
1814    public static final int VK_F1 = 0x70;
1815    public static final int VK_F10 = 0x79;
1816    public static final int VK_F11 = 0x7a;
1817    public static final int VK_F12 = 0x7b;
1818    public static final int VK_F13 = 0x7c;
1819    public static final int VK_F14 = 0x7d;
1820    public static final int VK_F15 = 0x7e;
1821    public static final int VK_F2 = 0x71;
1822    public static final int VK_F3 = 0x72;
1823    public static final int VK_F4 = 0x73;
1824    public static final int VK_F5 = 0x74;
1825    public static final int VK_F6 = 0x75;
1826    public static final int VK_F7 = 0x76;
1827    public static final int VK_F8 = 0x77;
1828    public static final int VK_F9 = 0x78;
1829    public static final int VK_HOME = 0x24;
1830    public static final int VK_INSERT = 0x2d;
1831    public static final int VK_LBUTTON = 0x1;
1832    public static final int VK_LEFT = 0x25;
1833    public static final int VK_MBUTTON = 0x4;
1834    public static final int VK_MENU = 0x12;
1835    public static final int VK_MULTIPLY = 0x6A;
1836    public static final int VK_N = 0x4e;
1837    public static final int VK_O = 0x4f;
1838    public static final int VK_NEXT = 0x22;
1839    public static final int VK_NUMLOCK = 0x90;
1840    public static final int VK_NUMPAD0 = 0x60;
1841    public static final int VK_NUMPAD1 = 0x61;
1842    public static final int VK_NUMPAD2 = 0x62;
1843    public static final int VK_NUMPAD3 = 0x63;
1844    public static final int VK_NUMPAD4 = 0x64;
1845    public static final int VK_NUMPAD5 = 0x65;
1846    public static final int VK_NUMPAD6 = 0x66;
1847    public static final int VK_NUMPAD7 = 0x67;
1848    public static final int VK_NUMPAD8 = 0x68;
1849    public static final int VK_NUMPAD9 = 0x69;
1850    public static final int VK_PAUSE = 0x13;
1851    public static final int VK_PRIOR = 0x21;
1852    public static final int VK_RBUTTON = 0x2;
1853    public static final int VK_RETURN = 0xd;
1854    public static final int VK_RIGHT = 0x27;
1855    public static final int VK_SCROLL = 0x91;
1856    public static final int VK_SEPARATOR = 0x6C;
1857    public static final int VK_SHIFT = 0x10;
1858    public static final int VK_SNAPSHOT = 0x2C;
1859    public static final int VK_SPACE = 0x20;
1860    public static final int VK_SUBTRACT = 0x6D;
1861    public static final int VK_TAB = 0x9;
1862    public static final int VK_UP = 0x26;
1863    public static final int VK_XBUTTON1 = 0x05;
1864    public static final int VK_XBUTTON2 = 0x06;
1865    public static final int VK_ADD = 0x6B;
1866    public static final int VK_APP1 = 0xc1;
1867    public static final int VK_APP2 = 0xc2;
1868    public static final int VK_APP3 = 0xc3;
1869    public static final int VK_APP4 = 0xc4;
1870    public static final int VK_APP5 = 0xc5;
1871    public static final int VK_APP6 = 0xc6;
1872    public static final String JavaDoc WC_HEADER = "SysHeader32"; //$NON-NLS-1$
1873
public static final String JavaDoc WC_LINK = "SysLink"; //$NON-NLS-1$
1874
public static final String JavaDoc WC_LISTVIEW = "SysListView32"; //$NON-NLS-1$
1875
public static final String JavaDoc WC_TABCONTROL = "SysTabControl32"; //$NON-NLS-1$
1876
public static final String JavaDoc WC_TREEVIEW = "SysTreeView32"; //$NON-NLS-1$
1877
public static final int WINDING = 2;
1878    public static final int WH_CBT = 5;
1879    public static final int WH_GETMESSAGE = 0x3;
1880    public static final int WH_MSGFILTER = 0xFFFFFFFF;
1881    public static final int WH_FOREGROUNDIDLE = 11;
1882    public static final int WHEEL_DELTA = 120;
1883    public static final int WHEEL_PAGESCROLL = 0xFFFFFFFF;
1884    public static final int WHITE_BRUSH = 0;
1885    public static final int WM_ACTIVATE = 0x6;
1886    public static final int WM_ACTIVATEAPP = 0x1c;
1887    public static final int WM_APP = 0x8000;
1888    public static final int WM_CANCELMODE = 0x1f;
1889    public static final int WM_CAPTURECHANGED = 0x0215;
1890    public static final int WM_CHANGEUISTATE = 0x0127;
1891    public static final int WM_CHAR = 0x102;
1892    public static final int WM_CLEAR = 0x303;
1893    public static final int WM_CLOSE = 0x10;
1894    public static final int WM_COMMAND = 0x111;
1895    public static final int WM_CONTEXTMENU = 0x7b;
1896    public static final int WM_COPY = 0x301;
1897    public static final int WM_CREATE = 0x0001;
1898    public static final int WM_CTLCOLORBTN = 0x135;
1899    public static final int WM_CTLCOLORDLG = 0x136;
1900    public static final int WM_CTLCOLOREDIT = 0x133;
1901    public static final int WM_CTLCOLORLISTBOX = 0x134;
1902    public static final int WM_CTLCOLORMSGBOX = 0x132;
1903    public static final int WM_CTLCOLORSCROLLBAR = 0x137;
1904    public static final int WM_CTLCOLORSTATIC = 0x138;
1905    public static final int WM_CUT = 0x300;
1906    public static final int WM_DEADCHAR = 0x103;
1907    public static final int WM_DESTROY = 0x2;
1908    public static final int WM_DRAWITEM = 0x2b;
1909    public static final int WM_ENDSESSION = 0x16;
1910    public static final int WM_ENTERIDLE = 0x121;
1911    public static final int WM_ERASEBKGND = 0x14;
1912    public static final int WM_GETDLGCODE = 0x87;
1913    public static final int WM_GETFONT = 0x31;
1914// public static final int WM_GETICON = 0x7f;
1915
public static final int WM_GETOBJECT = 0x003D;
1916    public static final int WM_GETMINMAXINFO = 0x0024;
1917    public static final int WM_HELP = 0x53;
1918    public static final int WM_HOTKEY = 0x0312;
1919    public static final int WM_HSCROLL = 0x114;
1920    public static final int WM_IME_CHAR = 0x286;
1921    public static final int WM_IME_COMPOSITION = 0x10f;
1922    public static final int WM_INITDIALOG = 0x110;
1923    public static final int WM_INITMENUPOPUP = 0x117;
1924    public static final int WM_INPUTLANGCHANGE = 0x51;
1925    public static final int WM_KEYDOWN = 0x100;
1926    public static final int WM_KEYFIRST = 0x100;
1927    public static final int WM_KEYLAST = 0x108;
1928    public static final int WM_KEYUP = 0x101;
1929    public static final int WM_KILLFOCUS = 0x8;
1930    public static final int WM_LBUTTONDBLCLK = 0x203;
1931    public static final int WM_LBUTTONDOWN = 0x201;
1932    public static final int WM_LBUTTONUP = 0x202;
1933    public static final int WM_MBUTTONDBLCLK = 0x209;
1934    public static final int WM_MBUTTONDOWN = 0x207;
1935    public static final int WM_MBUTTONUP = 0x208;
1936    public static final int WM_MEASUREITEM = 0x2c;
1937    public static final int WM_MENUCHAR = 0x120;
1938    public static final int WM_MENUSELECT = 0x11f;
1939    public static final int WM_MOUSEACTIVATE = 0x21;
1940    public static final int WM_MOUSEFIRST = 0x200;
1941    public static final int WM_MOUSEHOVER = 0x2a1;
1942    public static final int WM_MOUSELEAVE = 0x2a3;
1943    public static final int WM_MOUSEMOVE = 0x200;
1944    public static final int WM_MOUSEWHEEL = 0x20a;
1945    public static final int WM_MOUSELAST = 0x20d;
1946    public static final int WM_MOVE = 0x3;
1947    public static final int WM_NCACTIVATE = 0x86;
1948    public static final int WM_NCCALCSIZE = 0x83;
1949    public static final int WM_NCHITTEST = 0x84;
1950    public static final int WM_NCLBUTTONDOWN = 0x00A1;
1951    public static final int WM_NCPAINT = 0x85;
1952    public static final int WM_NOTIFY = 0x4e;
1953    public static final int WM_NULL = 0x0;
1954    public static final int WM_PAINT = 0xf;
1955    public static final int WM_PALETTECHANGED = 0x311;
1956    public static final int WM_PARENTNOTIFY = 0x0210;
1957    public static final int WM_PASTE = 0x302;
1958    public static final int WM_PRINT = 0x0317;
1959    public static final int WM_PRINTCLIENT = 0x0318;
1960    public static final int WM_QUERYENDSESSION = 0x11;
1961    public static final int WM_QUERYNEWPALETTE = 0x30f;
1962    public static final int WM_QUERYOPEN = 0x13;
1963    public static final int WM_QUERYUISTATE = 0x129;
1964    public static final int WM_RBUTTONDBLCLK = 0x206;
1965    public static final int WM_RBUTTONDOWN = 0x204;
1966    public static final int WM_RBUTTONUP = 0x205;
1967    public static final int WM_SETCURSOR = 0x20;
1968    public static final int WM_SETFOCUS = 0x7;
1969    public static final int WM_SETFONT = 0x30;
1970    public static final int WM_SETICON = 0x80;
1971    public static final int WM_SETREDRAW = 0xb;
1972    public static final int WM_SETTEXT = 12;
1973    public static final int WM_SETTINGCHANGE = 0x1A;
1974    public static final int WM_SHOWWINDOW = 0x18;
1975    public static final int WM_SIZE = 0x5;
1976    public static final int WM_SYSCHAR = 0x106;
1977    public static final int WM_SYSCOLORCHANGE = 0x15;
1978    public static final int WM_SYSCOMMAND = 0x112;
1979    public static final int WM_SYSKEYDOWN = 0x104;
1980    public static final int WM_SYSKEYUP = 0x105;
1981    public static final int WM_TIMER = 0x113;
1982    public static final int WM_THEMECHANGED = 0x031a;
1983    public static final int WM_UNDO = 0x304;
1984    public static final int WM_UPDATEUISTATE = 0x0128;
1985    public static final int WM_USER = 0x400;
1986    public static final int WM_VSCROLL = 0x115;
1987    public static final int WM_WINDOWPOSCHANGED = 0x47;
1988    public static final int WM_WINDOWPOSCHANGING = 0x46;
1989    public static final int WS_BORDER = 0x800000;
1990    public static final int WS_CAPTION = 0xc00000;
1991    public static final int WS_CHILD = 0x40000000;
1992    public static final int WS_CLIPCHILDREN = 0x2000000;
1993    public static final int WS_CLIPSIBLINGS = 0x4000000;
1994    public static final int WS_DISABLED = 0x4000000;
1995    public static final int WS_EX_CAPTIONOKBTN = 0x80000000;
1996    public static final int WS_EX_CLIENTEDGE = 0x200;
1997    public static final int WS_EX_DLGMODALFRAME = 0x1;
1998    public static final int WS_EX_LAYERED = 0x00080000;
1999    public static final int WS_EX_LAYOUTRTL = 0x00400000;
2000    public static final int WS_EX_LEFTSCROLLBAR = 0x00004000;
2001    public static final int WS_EX_MDICHILD = 0x00000040;
2002    public static final int WS_EX_NOINHERITLAYOUT = 0x00100000;
2003    public static final int WS_EX_NOACTIVATE = 0x08000000;
2004    public static final int WS_EX_RIGHT = 0x00001000;
2005    public static final int WS_EX_RTLREADING = 0x00002000;
2006    public static final int WS_EX_STATICEDGE = 0x20000;
2007    public static final int WS_EX_TOOLWINDOW = 0x80;
2008    public static final int WS_EX_TOPMOST = 0x8;
2009    public static final int WS_EX_TRANSPARENT = 0x20;
2010    public static final int WS_HSCROLL = 0x100000;
2011    public static final int WS_MAXIMIZEBOX = IsWinCE ? 0x20000 : 0x10000;
2012    public static final int WS_MINIMIZEBOX = IsWinCE ? 0x10000 : 0x20000;
2013    public static final int WS_OVERLAPPED = IsWinCE ? WS_BORDER | WS_CAPTION : 0x0;
2014    public static final int WS_OVERLAPPEDWINDOW = 0xcf0000;
2015    public static final int WS_POPUP = 0x80000000;
2016    public static final int WS_SYSMENU = 0x80000;
2017    public static final int WS_TABSTOP = 0x10000;
2018    public static final int WS_THICKFRAME = 0x40000;
2019    public static final int WS_VISIBLE = 0x10000000;
2020    public static final int WS_VSCROLL = 0x200000;
2021    public static final int WM_XBUTTONDOWN = 0x020B;
2022    public static final int WM_XBUTTONUP = 0x020C;
2023    public static final int WM_XBUTTONDBLCLK = 0x020D;
2024    public static final int XBUTTON1 = 0x1;
2025    public static final int XBUTTON2 = 0x2;
2026    
2027public static int VERSION (int major, int minor) {
2028    return major << 16 | minor;
2029}
2030
2031/** 64 bit */
2032public static final native int ACCEL_sizeof ();
2033public static final native int ACTCTX_sizeof ();
2034public static final native int BITMAP_sizeof ();
2035public static final native int BITMAPINFOHEADER_sizeof ();
2036public static final native int BLENDFUNCTION_sizeof ();
2037public static final native int BP_PAINTPARAMS_sizeof ();
2038public static final native int BROWSEINFO_sizeof ();
2039public static final native int BUTTON_IMAGELIST_sizeof ();
2040public static final native int CHOOSECOLOR_sizeof ();
2041public static final native int CHOOSEFONT_sizeof ();
2042public static final native int COMBOBOXINFO_sizeof ();
2043public static final native int COMPOSITIONFORM_sizeof ();
2044public static final native int CREATESTRUCT_sizeof ();
2045public static final native int DIBSECTION_sizeof ();
2046public static final native int DLLVERSIONINFO_sizeof ();
2047public static final native int DOCINFO_sizeof ();
2048public static final native int DRAWITEMSTRUCT_sizeof ();
2049public static final native int DROPFILES_sizeof ();
2050public static final native int EXTLOGPEN_sizeof ();
2051public static final native int FILETIME_sizeof ();
2052public static final native int GCP_RESULTS_sizeof ();
2053public static final native int GRADIENT_RECT_sizeof ();
2054public static final native int GUITHREADINFO_sizeof ();
2055public static final native int HDITEM_sizeof ();
2056public static final native int HDLAYOUT_sizeof ();
2057public static final native int HDHITTESTINFO_sizeof ();
2058public static final native int HELPINFO_sizeof ();
2059public static final native int HIGHCONTRAST_sizeof ();
2060public static final native int ICONINFO_sizeof ();
2061public static final native int INITCOMMONCONTROLSEX_sizeof ();
2062public static final native int INPUT_sizeof ();
2063public static final native int KEYBDINPUT_sizeof ();
2064public static final native int LITEM_sizeof ();
2065public static final native int LOGBRUSH_sizeof ();
2066public static final native int LOGFONTA_sizeof ();
2067public static final native int LOGFONTW_sizeof ();
2068public static final native int LOGPEN_sizeof ();
2069public static final native int LVCOLUMN_sizeof ();
2070public static final native int LVHITTESTINFO_sizeof ();
2071public static final native int LVITEM_sizeof ();
2072public static final native int MARGINS_sizeof ();
2073public static final native int MEASUREITEMSTRUCT_sizeof ();
2074public static final native int MENUBARINFO_sizeof ();
2075public static final native int MENUINFO_sizeof ();
2076public static final native int MENUITEMINFO_sizeof ();
2077public static final native int MINMAXINFO_sizeof ();
2078public static final native int MOUSEINPUT_sizeof ();
2079public static final native int MONITORINFO_sizeof ();
2080public static final native int MSG_sizeof ();
2081public static final native int NMCUSTOMDRAW_sizeof ();
2082public static final native int NMHDR_sizeof ();
2083public static final native int NMHEADER_sizeof ();
2084public static final native int NMLINK_sizeof ();
2085public static final native int NMLISTVIEW_sizeof ();
2086public static final native int NMLVCUSTOMDRAW_sizeof ();
2087public static final native int NMLVDISPINFO_sizeof ();
2088public static final native int NMLVFINDITEM_sizeof ();
2089public static final native int NMLVODSTATECHANGE_sizeof ();
2090public static final native int NMREBARCHEVRON_sizeof ();
2091public static final native int NMREBARCHILDSIZE_sizeof ();
2092public static final native int NMRGINFO_sizeof ();
2093public static final native int NMTBHOTITEM_sizeof ();
2094public static final native int NMTOOLBAR_sizeof ();
2095public static final native int NMTTDISPINFOA_sizeof ();
2096public static final native int NMTTDISPINFOW_sizeof ();
2097public static final native int NMTVCUSTOMDRAW_sizeof ();
2098public static final native int NMTVDISPINFO_sizeof ();
2099public static final native int NMTVITEMCHANGE_sizeof ();
2100public static final native int NMUPDOWN_sizeof ();
2101public static final native int NONCLIENTMETRICSA_sizeof ();
2102public static final native int NONCLIENTMETRICSW_sizeof ();
2103public static final native int NOTIFYICONDATAA_V2_SIZE ();
2104public static final native int NOTIFYICONDATAW_V2_SIZE ();
2105public static final native int OFNOTIFY_sizeof ();
2106public static final native int OPENFILENAME_sizeof ();
2107public static final native int OSVERSIONINFOA_sizeof ();
2108public static final native int OSVERSIONINFOW_sizeof ();
2109public static final native int OSVERSIONINFOEXA_sizeof ();
2110public static final native int OSVERSIONINFOEXW_sizeof ();
2111public static final native int PAINTSTRUCT_sizeof ();
2112public static final native int POINT_sizeof ();
2113public static final native int PRINTDLG_sizeof ();
2114public static final native int PROCESS_INFORMATION_sizeof ();
2115public static final native int REBARBANDINFO_sizeof ();
2116public static final native int RECT_sizeof ();
2117public static final native int SCRIPT_ANALYSIS_sizeof ();
2118public static final native int SCRIPT_CONTROL_sizeof ();
2119public static final native int SCRIPT_DIGITSUBSTITUTE_sizeof ();
2120public static final native int SCRIPT_FONTPROPERTIES_sizeof ();
2121public static final native int SCRIPT_ITEM_sizeof ();
2122public static final native int SCRIPT_LOGATTR_sizeof ();
2123public static final native int SCRIPT_PROPERTIES_sizeof ();
2124public static final native int SCRIPT_STATE_sizeof ();
2125public static final native int SCROLLINFO_sizeof ();
2126public static final native int SHACTIVATEINFO_sizeof ();
2127public static final native int SHELLEXECUTEINFO_sizeof ();
2128public static final native int SHFILEINFOA_sizeof ();
2129public static final native int SHFILEINFOW_sizeof ();
2130public static final native int SHMENUBARINFO_sizeof ();
2131public static final native int SHRGINFO_sizeof ();
2132public static final native int SIPINFO_sizeof ();
2133public static final native int SIZE_sizeof ();
2134public static final native int STARTUPINFO_sizeof ();
2135public static final native int SYSTEMTIME_sizeof ();
2136public static final native int TBBUTTON_sizeof ();
2137public static final native int TBBUTTONINFO_sizeof ();
2138public static final native int TCITEM_sizeof ();
2139public static final native int TEXTMETRICA_sizeof ();
2140public static final native int TEXTMETRICW_sizeof ();
2141public static final native int TOOLINFO_sizeof ();
2142public static final native int TRACKMOUSEEVENT_sizeof ();
2143public static final native int TRIVERTEX_sizeof ();
2144public static final native int TVHITTESTINFO_sizeof ();
2145public static final native int TVINSERTSTRUCT_sizeof ();
2146public static final native int TVITEM_sizeof ();
2147public static final native int TVITEMEX_sizeof ();
2148public static final native int TVSORTCB_sizeof ();
2149public static final native int UDACCEL_sizeof ();
2150public static final native int WINDOWPLACEMENT_sizeof ();
2151public static final native int WINDOWPOS_sizeof ();
2152public static final native int WNDCLASS_sizeof ();
2153
2154/** Ansi/Unicode wrappers */
2155
2156public static final int /*long*/ AddFontResourceEx (TCHAR lpszFilename, int fl, int /*long*/ pdv) {
2157    if (IsUnicode) {
2158        char [] lpszFilename1 = lpszFilename == null ? null : lpszFilename.chars;
2159        return AddFontResourceExW (lpszFilename1, fl, pdv);
2160    }
2161    byte [] lpszFilename1 = lpszFilename == null ? null : lpszFilename.bytes;
2162    return AddFontResourceExA (lpszFilename1, fl, pdv);
2163}
2164
2165public static final int /*long*/ AssocQueryString(int flags, int str, TCHAR pszAssoc, TCHAR pszExtra, TCHAR pszOut, int[] pcchOut) {
2166    if (IsUnicode) {
2167        char [] pszAssoc1 = pszAssoc == null ? null : pszAssoc.chars;
2168        char [] pszExtra1 = pszExtra == null ? null : pszExtra.chars;
2169        char [] pszOut1 = pszOut == null ? null : pszOut.chars;
2170        return AssocQueryStringW (flags, str, pszAssoc1, pszExtra1, pszOut1, pcchOut);
2171    }
2172    byte [] pszAssoc1 = pszAssoc == null ? null : pszAssoc.bytes;
2173    byte [] pszExtra1 = pszExtra == null ? null : pszExtra.bytes;
2174    byte [] pszOut1 = pszOut == null ? null : pszOut.bytes;
2175    return AssocQueryStringA (flags, str, pszAssoc1, pszExtra1, pszOut1, pcchOut);
2176}
2177
2178public static final int /*long*/ CallWindowProc (int /*long*/ lpPrevWndFunc, int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2179    if (IsUnicode) return CallWindowProcW (lpPrevWndFunc, hWnd, Msg, wParam, lParam);
2180    return CallWindowProcA (lpPrevWndFunc, hWnd, Msg, wParam, lParam);
2181}
2182
2183public static final short CharUpper (short ch) {
2184    if (IsUnicode) return CharUpperW (ch);
2185    return CharUpperA (ch);
2186}
2187
2188public static final short CharLower (short ch) {
2189    if (IsUnicode) return CharLowerW (ch);
2190    return CharLowerA (ch);
2191}
2192
2193public static final boolean ChooseColor (CHOOSECOLOR lpcc) {
2194    if (IsUnicode) return ChooseColorW (lpcc);
2195    return ChooseColorA (lpcc);
2196}
2197
2198public static final boolean ChooseFont (CHOOSEFONT chooseFont) {
2199    if (IsUnicode) return ChooseFontW (chooseFont);
2200    return ChooseFontA (chooseFont);
2201}
2202
2203public static final int /*long*/ CreateActCtx (ACTCTX pActCtx) {
2204    if (IsUnicode) return CreateActCtxW (pActCtx);
2205    return CreateActCtxA (pActCtx);
2206}
2207
2208public static final int /*long*/ CreateAcceleratorTable (byte [] lpaccl, int cEntries) {
2209    if (IsUnicode) return CreateAcceleratorTableW (lpaccl, cEntries);
2210    return CreateAcceleratorTableA (lpaccl, cEntries);
2211}
2212
2213public static final int /*long*/ CreateDC (TCHAR lpszDriver, TCHAR lpszDevice, int /*long*/ lpszOutput, int /*long*/ lpInitData) {
2214    if (IsUnicode) {
2215        char [] lpszDriver1 = lpszDriver == null ? null : lpszDriver.chars;
2216        char [] lpszDevice1 = lpszDevice == null ? null : lpszDevice.chars;
2217        return CreateDCW (lpszDriver1, lpszDevice1, lpszOutput, lpInitData);
2218    }
2219    byte [] lpszDriver1 = lpszDriver == null ? null : lpszDriver.bytes;
2220    byte [] lpszDevice1 = lpszDevice == null ? null : lpszDevice.bytes;
2221    return CreateDCA (lpszDriver1, lpszDevice1, lpszOutput, lpInitData);
2222}
2223
2224public static final int /*long*/ CreateFontIndirect (int /*long*/ lplf) {
2225    if (IsUnicode) return CreateFontIndirectW (lplf);
2226    return CreateFontIndirectA (lplf);
2227}
2228
2229public static final int /*long*/ CreateFontIndirect (LOGFONT lplf) {
2230    if (IsUnicode) return CreateFontIndirectW ((LOGFONTW)lplf);
2231    return CreateFontIndirectA ((LOGFONTA)lplf);
2232}
2233
2234public static final boolean CreateProcess (int /*long*/ lpApplicationName, int /*long*/ lpCommandLine, int /*long*/ lpProcessAttributes, int /*long*/ lpThreadAttributes, boolean bInheritHandles, int dwCreationFlags, int /*long*/ lpEnvironment, int /*long*/ lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation) {
2235    if (IsUnicode) return CreateProcessW (lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
2236    return CreateProcessA (lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
2237}
2238
2239public 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) {
2240    if (IsUnicode) {
2241        char [] lpClassName1 = lpClassName == null ? null : lpClassName.chars;
2242        char [] lpWindowName1 = lpWindowName == null ? null : lpWindowName.chars;
2243        return CreateWindowExW (dwExStyle, lpClassName1, lpWindowName1, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
2244    }
2245    byte [] lpClassName1 = lpClassName == null ? null : lpClassName.bytes;
2246    byte [] lpWindowName1 = lpWindowName == null ? null : lpWindowName.bytes;
2247    return CreateWindowExA (dwExStyle, lpClassName1, lpWindowName1, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
2248}
2249
2250public static final int /*long*/ DefMDIChildProc (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2251    if (IsUnicode) return DefMDIChildProcW (hWnd, Msg, wParam, lParam);
2252    return DefMDIChildProcA (hWnd, Msg, wParam, lParam);
2253}
2254
2255public static final int /*long*/ DefFrameProc (int /*long*/ hWnd, int /*long*/ hWndMDIClient, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2256    if (IsUnicode) return DefFrameProcW (hWnd, hWndMDIClient, Msg, wParam, lParam);
2257    return DefFrameProcA (hWnd, hWndMDIClient, Msg, wParam, lParam);
2258}
2259public static final int /*long*/ DefWindowProc (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2260    if (IsUnicode) return DefWindowProcW (hWnd, Msg, wParam, lParam);
2261    return DefWindowProcA (hWnd, Msg, wParam, lParam);
2262}
2263
2264public static final int /*long*/ DispatchMessage (MSG lpmsg) {
2265    if (IsUnicode) return DispatchMessageW (lpmsg);
2266    return DispatchMessageA (lpmsg);
2267}
2268
2269public static final int DragQueryFile (int /*long*/ hDrop, int iFile, TCHAR lpszFile, int cch) {
2270    if (IsUnicode) {
2271        char [] lpszFile1 = lpszFile == null ? null : lpszFile.chars;
2272        return DragQueryFileW (hDrop, iFile, lpszFile1, cch);
2273    }
2274    byte [] lpszFile1 = lpszFile == null ? null : lpszFile.bytes;
2275    return DragQueryFileA (hDrop, iFile, lpszFile1, cch);
2276}
2277
2278public static final boolean 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) {
2279    if (IsUnicode) return DrawStateW (hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy, fuFlags);
2280    return DrawStateA (hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy, fuFlags);
2281}
2282
2283public static final int DrawText (int /*long*/ hDC, TCHAR lpString, int nCount, RECT lpRect, int uFormat) {
2284    if (IsUnicode) {
2285        char [] lpString1 = lpString == null ? null : lpString.chars;
2286        return DrawTextW (hDC, lpString1, nCount, lpRect, uFormat);
2287    }
2288    byte [] lpString1 = lpString == null ? null : lpString.bytes;
2289    return DrawTextA (hDC, lpString1, nCount, lpRect, uFormat);
2290}
2291
2292public static final int EnumFontFamilies (int /*long*/ hdc, TCHAR lpszFamily, int /*long*/ lpEnumFontFamProc, int /*long*/ lParam) {
2293    if (IsUnicode) {
2294        char [] lpszFamily1 = lpszFamily == null ? null : lpszFamily.chars;
2295        return EnumFontFamiliesW (hdc, lpszFamily1, lpEnumFontFamProc, lParam);
2296    }
2297    byte [] lpszFamily1 = lpszFamily == null ? null : lpszFamily.bytes;
2298    return EnumFontFamiliesA (hdc, lpszFamily1, lpEnumFontFamProc, lParam);
2299}
2300
2301public static final int EnumFontFamiliesEx (int /*long*/ hdc, LOGFONT lpLogfont, int /*long*/ lpEnumFontFamExProc, int /*long*/ lParam, int dwFlags) {
2302    if (IsUnicode) return EnumFontFamiliesExW (hdc, (LOGFONTW)lpLogfont, lpEnumFontFamExProc, lParam, dwFlags);
2303    return EnumFontFamiliesExA (hdc, (LOGFONTA)lpLogfont, lpEnumFontFamExProc, lParam, dwFlags);
2304}
2305
2306public static final boolean EnumSystemLocales (int /*long*/ lpLocaleEnumProc, int dwFlags) {
2307    if (IsUnicode) return EnumSystemLocalesW (lpLocaleEnumProc, dwFlags);
2308    return EnumSystemLocalesA (lpLocaleEnumProc, dwFlags);
2309}
2310
2311public static final boolean EnumSystemLanguageGroups (int /*long*/ pLangGroupEnumProc, int dwFlags, int /*long*/ lParam) {
2312    if (IsUnicode) return EnumSystemLanguageGroupsW (pLangGroupEnumProc, dwFlags, lParam);
2313    return EnumSystemLanguageGroupsA (pLangGroupEnumProc, dwFlags, lParam);
2314}
2315
2316public static final int ExpandEnvironmentStrings (TCHAR lpSrc, TCHAR lpDst, int nSize) {
2317    if (IsUnicode) {
2318        char [] lpSrc1 = lpSrc == null ? null : lpSrc.chars;
2319        char [] lpDst1 = lpDst == null ? null : lpDst.chars;
2320        return ExpandEnvironmentStringsW (lpSrc1, lpDst1, nSize);
2321    }
2322    byte [] lpSrc1 = lpSrc == null ? null : lpSrc.bytes;
2323    byte [] lpDst1 = lpDst == null ? null : lpDst.bytes;
2324    return ExpandEnvironmentStringsA (lpSrc1, lpDst1, nSize);
2325}
2326
2327public static final int ExtractIconEx (TCHAR lpszFile, int nIconIndex, int /*long*/ [] phiconLarge, int /*long*/ [] phiconSmall, int nIcons) {
2328    if (IsUnicode) {
2329        char [] lpszFile1 = lpszFile == null ? null : lpszFile.chars;
2330        return ExtractIconExW (lpszFile1, nIconIndex, phiconLarge, phiconSmall, nIcons);
2331    }
2332    byte [] lpszFile1 = lpszFile == null ? null : lpszFile.bytes;
2333    return ExtractIconExA (lpszFile1, nIconIndex, phiconLarge, phiconSmall, nIcons);
2334}
2335
2336public static final boolean ExtTextOut(int /*long*/ hdc, int X, int Y, int fuOptions, RECT lprc, TCHAR lpString, int cbCount, int[] lpDx) {
2337    if (IsUnicode) {
2338        char [] lpString1 = lpString == null ? null : lpString.chars;
2339        return ExtTextOutW (hdc, X, Y, fuOptions, lprc, lpString1, cbCount, lpDx);
2340    }
2341    byte [] lpString1 = lpString == null ? null : lpString.bytes;
2342    return ExtTextOutA (hdc, X, Y, fuOptions, lprc, lpString1, cbCount, lpDx);
2343}
2344
2345public static final int /*long*/ FindWindow (TCHAR lpClassName, TCHAR lpWindowName) {
2346    if (IsUnicode) {
2347        char [] lpClassName1 = lpClassName == null ? null : lpClassName.chars;
2348        char [] lpWindowName1 = lpWindowName == null ? null : lpWindowName.chars;
2349        return FindWindowW (lpClassName1, lpWindowName1);
2350    }
2351    byte [] lpClassName1 = lpClassName == null ? null : lpClassName.bytes;
2352    byte [] lpWindowName1 = lpWindowName == null ? null : lpWindowName.bytes;
2353    return FindWindowA (lpClassName1, lpWindowName1);
2354}
2355
2356public static final int FormatMessage (int dwFlags, int /*long*/ lpSource, int dwMessageId, int dwLanguageId, int[] lpBuffer, int nSize, int /*long*/ Arguments) {
2357    if (IsUnicode) {
2358        return FormatMessageW (dwFlags, lpSource, dwMessageId, dwLanguageId, lpBuffer, nSize, Arguments);
2359    }
2360    return FormatMessageA (dwFlags, lpSource, dwMessageId, dwLanguageId, lpBuffer, nSize, Arguments);
2361}
2362
2363public static final boolean GetCharABCWidths (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpabc) {
2364    if (IsUnicode) return GetCharABCWidthsW (hdc,iFirstChar, iLastChar, lpabc);
2365    return GetCharABCWidthsA (hdc,iFirstChar, iLastChar, lpabc);
2366}
2367
2368public static final int GetCharacterPlacement (int /*long*/ hdc, TCHAR lpString, int nCount, int nMaxExtent, GCP_RESULTS lpResults, int dwFlags) {
2369    if (IsUnicode) {
2370        char [] lpString1 = lpString == null ? null : lpString.chars;
2371        return GetCharacterPlacementW (hdc, lpString1, nCount, nMaxExtent, lpResults, dwFlags);
2372    }
2373    byte [] lpString1 = lpString == null ? null : lpString.bytes;
2374    return GetCharacterPlacementA (hdc, lpString1, nCount, nMaxExtent, lpResults, dwFlags);
2375}
2376
2377public static final boolean GetCharWidth (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpabc) {
2378    if (IsUnicode) return GetCharWidthW (hdc,iFirstChar, iLastChar, lpabc);
2379    return GetCharWidthA (hdc,iFirstChar, iLastChar, lpabc);
2380}
2381
2382public static final boolean GetClassInfo (int /*long*/ hInstance, TCHAR lpClassName, WNDCLASS lpWndClass) {
2383    if (IsUnicode) {
2384        char [] lpClassName1 = lpClassName == null ? null : lpClassName.chars;
2385        return GetClassInfoW (hInstance, lpClassName1, lpWndClass);
2386    }
2387    byte [] lpClassName1 = lpClassName == null ? null : lpClassName.bytes;
2388    return GetClassInfoA (hInstance, lpClassName1, lpWndClass);
2389}
2390
2391public static final int GetClassName (int /*long*/ hWnd, TCHAR lpClassName, int nMaxCount) {
2392    if (IsUnicode) {
2393        char [] lpClassName1 = lpClassName == null ? null : lpClassName.chars;
2394        return GetClassNameW (hWnd, lpClassName1, nMaxCount);
2395    }
2396    byte [] lpClassName1 = lpClassName == null ? null : lpClassName.bytes;
2397    return GetClassNameA (hWnd, lpClassName1, nMaxCount);
2398}
2399
2400public static final int GetClipboardFormatName (int format, TCHAR lpszFormatName, int cchMaxCount) {
2401    if (IsUnicode) {
2402        char [] lpszFormatName1 = lpszFormatName == null ? null : lpszFormatName.chars;
2403        return GetClipboardFormatNameW (format, lpszFormatName1, cchMaxCount);
2404    }
2405    byte [] lpszFormatName1 = lpszFormatName == null ? null : lpszFormatName.bytes;
2406    return GetClipboardFormatNameA (format, lpszFormatName1, cchMaxCount);
2407}
2408
2409public static final int GetDateFormat (int Locale, int dwFlags, SYSTEMTIME lpDate, TCHAR lpFormat, TCHAR lpDateStr, int cchDate) {
2410    if (IsUnicode) {
2411        char [] lpString1 = lpFormat == null ? null : lpFormat.chars;
2412        char [] lpString2 = lpDateStr == null ? null : lpDateStr.chars;
2413        return GetDateFormatW (Locale, dwFlags, lpDate, lpString1, lpString2, cchDate);
2414    }
2415    byte [] lpString1 = lpFormat == null ? null : lpFormat.bytes;
2416    byte [] lpString2 = lpDateStr == null ? null : lpDateStr.bytes;
2417    return GetDateFormatA (Locale, dwFlags, lpDate, lpString1, lpString2, cchDate);
2418}
2419
2420public static final int GetKeyNameText (int lParam, TCHAR lpString, int nSize) {
2421    if (IsUnicode) {
2422        char [] lpString1 = lpString == null ? null : lpString.chars;
2423        return GetKeyNameTextW (lParam, lpString1, nSize);
2424    }
2425    byte [] lpString1 = lpString == null ? null : lpString.bytes;
2426    return GetKeyNameTextA (lParam, lpString1, nSize);
2427}
2428
2429public static final int GetLocaleInfo (int Locale, int LCType, TCHAR lpLCData, int cchData) {
2430    if (IsUnicode) {
2431        char [] lpLCData1 = lpLCData == null ? null : lpLCData.chars;
2432        return GetLocaleInfoW (Locale, LCType, lpLCData1, cchData);
2433    }
2434    byte [] lpLCData1 = lpLCData == null ? null : lpLCData.bytes;
2435    return GetLocaleInfoA (Locale, LCType, lpLCData1, cchData);
2436}
2437
2438public static final boolean GetMenuItemInfo (int /*long*/ hMenu, int uItem, boolean fByPosition, MENUITEMINFO lpmii) {
2439    if (IsUnicode) return GetMenuItemInfoW (hMenu, uItem, fByPosition, lpmii);
2440    return GetMenuItemInfoA (hMenu, uItem, fByPosition, lpmii);
2441}
2442
2443public static final boolean GetMessage (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax) {
2444    if (IsUnicode) return GetMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
2445    return GetMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
2446}
2447
2448public static final int GetModuleFileName (int /*long*/ hModule, TCHAR lpFilename, int inSize) {
2449    if (IsUnicode) {
2450        char [] lpFilename1 = lpFilename == null ? null : lpFilename.chars;
2451        return GetModuleFileNameW (hModule, lpFilename1, inSize);
2452    }
2453    byte [] lpFilename1 = lpFilename == null ? null : lpFilename.bytes;
2454    return GetModuleFileNameA (hModule, lpFilename1, inSize);
2455}
2456
2457public static final int /*long*/ GetModuleHandle (TCHAR lpModuleName) {
2458    if (IsUnicode) {
2459        char [] lpModuleName1 = lpModuleName == null ? null : lpModuleName.chars;
2460        return GetModuleHandleW (lpModuleName1);
2461    }
2462    byte [] lpModuleName1 = lpModuleName == null ? null : lpModuleName.bytes;
2463    return GetModuleHandleA (lpModuleName1);
2464}
2465
2466public static final boolean GetMonitorInfo (int /*long*/ hmonitor, MONITORINFO lpmi) {
2467    if (IsUnicode) return GetMonitorInfoW (hmonitor, lpmi);
2468    return GetMonitorInfoA (hmonitor, lpmi);
2469}
2470
2471public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, BITMAP lpvObject) {
2472    if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2473    return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2474}
2475
2476public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, DIBSECTION lpvObject) {
2477    if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2478    return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2479}
2480
2481public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, EXTLOGPEN lpvObject) {
2482    if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2483    return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2484}
2485
2486public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGBRUSH lpvObject) {
2487    if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2488    return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2489}
2490
2491public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGFONT lpvObject) {
2492    if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, (LOGFONTW)lpvObject);
2493    return GetObjectA (hgdiobj, cbBuffer, (LOGFONTA)lpvObject);
2494}
2495
2496public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGPEN lpvObject) {
2497    if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2498    return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2499}
2500
2501public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, int /*long*/ lpvObject) {
2502    if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject);
2503    return GetObjectA (hgdiobj, cbBuffer, lpvObject);
2504}
2505
2506public static final boolean GetOpenFileName (OPENFILENAME lpofn) {
2507    if (IsUnicode) return GetOpenFileNameW (lpofn);
2508    return GetOpenFileNameA (lpofn);
2509}
2510
2511public static final int GetProfileString (TCHAR lpAppName, TCHAR lpKeyName, TCHAR lpDefault, TCHAR lpReturnedString, int nSize) {
2512    if (IsUnicode) {
2513        char [] lpAppName1 = lpAppName == null ? null : lpAppName.chars;
2514        char [] lpKeyName1 = lpKeyName == null ? null : lpKeyName.chars;
2515        char [] lpDefault1 = lpDefault == null ? null : lpDefault.chars;
2516        char [] lpReturnedString1 = lpReturnedString == null ? null : lpReturnedString.chars;
2517        return GetProfileStringW (lpAppName1, lpKeyName1, lpDefault1, lpReturnedString1, nSize);
2518    }
2519    byte [] lpAppName1 = lpAppName == null ? null : lpAppName.bytes;
2520    byte [] lpKeyName1 = lpKeyName == null ? null : lpKeyName.bytes;
2521    byte [] lpDefault1 = lpDefault == null ? null : lpDefault.bytes;
2522    byte [] lpReturnedString1 = lpReturnedString == null ? null : lpReturnedString.bytes;
2523    return GetProfileStringA (lpAppName1, lpKeyName1, lpDefault1, lpReturnedString1, nSize);
2524}
2525
2526public static int /*long*/ GetProp (int /*long*/ hWnd, int /*long*/ lpString) {
2527    if (IsUnicode) return GetPropW (hWnd, lpString);
2528    return GetPropA (hWnd, lpString);
2529}
2530
2531public static final boolean GetSaveFileName (OPENFILENAME lpofn) {
2532    if (IsUnicode) return GetSaveFileNameW (lpofn);
2533    return GetSaveFileNameA (lpofn);
2534}
2535
2536public static final void GetStartupInfo (STARTUPINFO lpStartupInfo) {
2537    if (IsUnicode) {
2538        GetStartupInfoW (lpStartupInfo);
2539    } else {
2540        GetStartupInfoA (lpStartupInfo);
2541    }
2542}
2543
2544public static final boolean GetTextExtentPoint32 (int /*long*/ hdc, TCHAR lpString, int cbString, SIZE lpSize) {
2545    if (IsUnicode) {
2546        char [] lpString1 = lpString == null ? null : lpString.chars;
2547        return GetTextExtentPoint32W (hdc, lpString1, cbString, lpSize);
2548    }
2549    byte [] lpString1 = lpString == null ? null : lpString.bytes;
2550    return GetTextExtentPoint32A (hdc, lpString1, cbString, lpSize);
2551}
2552
2553public static final boolean GetTextMetrics (int /*long*/ hdc, TEXTMETRIC lptm) {
2554    if (IsUnicode) return GetTextMetricsW (hdc, (TEXTMETRICW)lptm);
2555    return GetTextMetricsA (hdc, (TEXTMETRICA)lptm);
2556}
2557
2558public static final int GetTimeFormat (int Locale, int dwFlags, SYSTEMTIME lpTime, TCHAR lpFormat, TCHAR lpTimeStr, int cchTime) {
2559    if (IsUnicode) {
2560        char [] lpString1 = lpFormat == null ? null : lpFormat.chars;
2561        char [] lpString2 = lpTimeStr == null ? null : lpTimeStr.chars;
2562        return GetTimeFormatW (Locale, dwFlags, lpTime, lpString1, lpString2, cchTime);
2563    }
2564    byte [] lpString1 = lpFormat == null ? null : lpFormat.bytes;
2565    byte [] lpString2 = lpTimeStr == null ? null : lpTimeStr.bytes;
2566    return GetTimeFormatA (Locale, dwFlags, lpTime, lpString1, lpString2, cchTime);
2567}
2568
2569public static final boolean GetVersionEx (OSVERSIONINFO lpVersionInfo) {
2570    if (IsUnicode) return GetVersionExW ((OSVERSIONINFOW)lpVersionInfo);
2571    return GetVersionExA ((OSVERSIONINFOA)lpVersionInfo);
2572}
2573
2574public static final boolean GetVersionEx (OSVERSIONINFOEX lpVersionInfo) {
2575    if (IsUnicode) return GetVersionExW ((OSVERSIONINFOEXW)lpVersionInfo);
2576    return GetVersionExA ((OSVERSIONINFOEXA)lpVersionInfo);
2577}
2578
2579public static final int GetWindowLong (int /*long*/ hWnd, int nIndex) {
2580    if (IsUnicode) return GetWindowLongW (hWnd, nIndex);
2581    return GetWindowLongA (hWnd, nIndex);
2582}
2583
2584public static final int /*long*/ GetWindowLongPtr (int /*long*/ hWnd, int nIndex) {
2585    if (IsUnicode) return GetWindowLongPtrW (hWnd, nIndex);
2586    return GetWindowLongPtrA (hWnd, nIndex);
2587}
2588
2589public static final int GetWindowText (int /*long*/ hWnd, TCHAR lpString, int nMaxCount) {
2590    if (IsUnicode) {
2591        char [] lpString1 = lpString == null ? null : lpString.chars;
2592        return GetWindowTextW (hWnd, lpString1, nMaxCount);
2593    }
2594    byte [] lpString1 = lpString == null ? null : lpString.bytes;
2595    return GetWindowTextA (hWnd, lpString1, nMaxCount);
2596}
2597
2598public static final int GetWindowTextLength (int /*long*/ hWnd) {
2599    if (IsUnicode) return GetWindowTextLengthW (hWnd);
2600    return GetWindowTextLengthA (hWnd);
2601}
2602
2603public static final int GlobalAddAtom (TCHAR lpString) {
2604    if (IsUnicode) {
2605        char [] lpString1 = lpString == null ? null : lpString.chars;
2606        return GlobalAddAtomW (lpString1);
2607    }
2608    byte [] lpString1 = lpString == null ? null : lpString.bytes;
2609    return GlobalAddAtomA (lpString1);
2610}
2611
2612public static final boolean ImmGetCompositionFont (int /*long*/ hIMC, LOGFONT lplf) {
2613    if (IsUnicode) return ImmGetCompositionFontW (hIMC, (LOGFONTW)lplf);
2614    return ImmGetCompositionFontA (hIMC, (LOGFONTA)lplf);
2615}
2616
2617public static final boolean ImmSetCompositionFont (int /*long*/ hIMC, LOGFONT lplf) {
2618    if (IsUnicode) return ImmSetCompositionFontW (hIMC, (LOGFONTW)lplf);
2619    return ImmSetCompositionFontA (hIMC, (LOGFONTA)lplf);
2620}
2621
2622public static final int ImmGetCompositionString (int /*long*/ hIMC, int dwIndex, TCHAR lpBuf, int dwBufLen) {
2623    if (IsUnicode) {
2624        char [] lpBuf1 = lpBuf == null ? null : lpBuf.chars;
2625        return ImmGetCompositionStringW (hIMC, dwIndex, lpBuf1, dwBufLen);
2626    }
2627    byte [] lpBuf1 = lpBuf == null ? null : lpBuf.bytes;
2628    return ImmGetCompositionStringA (hIMC, dwIndex, lpBuf1, dwBufLen);
2629}
2630
2631public static final boolean InsertMenu (int /*long*/ hMenu, int uPosition, int uFlags, int /*long*/ uIDNewItem, TCHAR lpNewItem) {
2632    if (IsUnicode) {
2633        char [] lpNewItem1 = lpNewItem == null ? null : lpNewItem.chars;
2634        return InsertMenuW (hMenu, uPosition, uFlags, uIDNewItem, lpNewItem1);
2635    }
2636    byte [] lpNewItem1 = lpNewItem == null ? null : lpNewItem.bytes;
2637    return InsertMenuA (hMenu, uPosition, uFlags, uIDNewItem, lpNewItem1);
2638}
2639
2640public static final boolean InsertMenuItem (int /*long*/ hMenu, int uItem, boolean fByPosition, MENUITEMINFO lpmii) {
2641    if (IsUnicode) return InsertMenuItemW (hMenu, uItem, fByPosition, lpmii);
2642    return InsertMenuItemA (hMenu, uItem, fByPosition, lpmii);
2643}
2644
2645public static final int /*long*/ LoadBitmap (int /*long*/ hInstance, int /*long*/ lpBitmapName) {
2646    if (IsUnicode) return LoadBitmapW (hInstance, lpBitmapName);
2647    return LoadBitmapA (hInstance, lpBitmapName);
2648}
2649
2650public static final int /*long*/ LoadCursor (int /*long*/ hInstance, int /*long*/ lpCursorName) {
2651    if (IsUnicode) return LoadCursorW (hInstance, lpCursorName);
2652    return LoadCursorA (hInstance, lpCursorName);
2653}
2654
2655public static final int /*long*/ LoadIcon (int /*long*/ hInstance, int /*long*/ lpIconName) {
2656    if (IsUnicode) return LoadIconW (hInstance, lpIconName);
2657    return LoadIconA (hInstance, lpIconName);
2658}
2659
2660public static final int /*long*/ LoadImage (int /*long*/ hinst, TCHAR lpszName, int uType, int cxDesired, int cyDesired, int fuLoad) {
2661    if (IsUnicode) {
2662        char [] lpszName1 = lpszName == null ? null : lpszName.chars;
2663        return LoadImageW (hinst, lpszName1, uType, cxDesired, cyDesired, fuLoad);
2664    }
2665    byte [] lpszName1 = lpszName == null ? null : lpszName.bytes;
2666    return LoadImageA (hinst, lpszName1, uType, cxDesired, cyDesired, fuLoad);
2667}
2668
2669public static final int /*long*/ LoadImage (int /*long*/ hinst, int /*long*/ lpszName, int uType, int cxDesired, int cyDesired, int fuLoad) {
2670    if (IsUnicode) return LoadImageW (hinst, lpszName, uType, cxDesired, cyDesired, fuLoad);
2671    return LoadImageA (hinst, lpszName, uType, cxDesired, cyDesired, fuLoad);
2672}
2673
2674public static final int /*long*/ LoadLibrary (TCHAR lpLibFileName) {
2675    if (IsUnicode) {
2676        char [] lpLibFileName1 = lpLibFileName == null ? null : lpLibFileName.chars;
2677        return LoadLibraryW (lpLibFileName1);
2678    }
2679    byte [] lpLibFileName1 = lpLibFileName == null ? null : lpLibFileName.bytes;
2680    return LoadLibraryA (lpLibFileName1);
2681}
2682
2683public static final int LoadString (int /*long*/ hinst, int uID, TCHAR lpBuffer, int nBufferMax) {
2684    if (IsUnicode) {
2685        char [] lpBuffer1 = lpBuffer == null ? null : lpBuffer.chars;
2686        return LoadStringW (hinst, uID, lpBuffer1, nBufferMax);
2687    }
2688    byte [] lpBuffer1 = lpBuffer == null ? null : lpBuffer.bytes;
2689    return LoadStringA (hinst, uID, lpBuffer1, nBufferMax);
2690}
2691
2692public static final int MapVirtualKey (int uCode, int uMapType) {
2693    if (IsUnicode) return MapVirtualKeyW (uCode, uMapType);
2694    return MapVirtualKeyA (uCode, uMapType);
2695}
2696
2697public static final int MessageBox (int /*long*/ hWnd, TCHAR lpText, TCHAR lpCaption, int uType) {
2698    if (IsUnicode) {
2699        char [] lpText1 = lpText == null ? null : lpText.chars;
2700        char [] lpCaption1 = lpCaption == null ? null : lpCaption.chars;
2701        return MessageBoxW (hWnd, lpText1, lpCaption1, uType);
2702    }
2703    byte [] lpText1 = lpText == null ? null : lpText.bytes;
2704    byte [] lpCaption1 = lpCaption == null ? null : lpCaption.bytes;
2705    return MessageBoxA (hWnd, lpText1, lpCaption1, uType);
2706}
2707
2708public static final void MoveMemory (int /*long*/ Destination, TCHAR Source, int Length) {
2709    if (IsUnicode) {
2710        char [] Source1 = Source == null ? null : Source.chars;
2711        MoveMemory (Destination, Source1, Length);
2712    } else {
2713        byte [] Source1 = Source == null ? null : Source.bytes;
2714        MoveMemory (Destination, Source1, Length);
2715    }
2716}
2717
2718public static final void MoveMemory (TCHAR Destination, int /*long*/ Source, int Length) {
2719    if (IsUnicode) {
2720        char [] Destination1 = Destination == null ? null : Destination.chars;
2721        MoveMemory (Destination1, Source, Length);
2722    } else {
2723        byte [] Destination1 = Destination == null ? null : Destination.bytes;
2724        MoveMemory (Destination1, Source, Length);
2725    }
2726}
2727
2728public static final void MoveMemory (int /*long*/ Destination, LOGFONT Source, int Length) {
2729    if (IsUnicode) {
2730        MoveMemory (Destination, (LOGFONTW)Source, Length);
2731    } else {
2732        MoveMemory (Destination, (LOGFONTA)Source, Length);
2733    }
2734}
2735
2736public static final void MoveMemory (LOGFONT Destination, int /*long*/ Source, int Length) {
2737    if (IsUnicode) {
2738        MoveMemory ((LOGFONTW)Destination, Source, Length);
2739    } else {
2740        MoveMemory ((LOGFONTA)Destination, Source, Length);
2741    }
2742}
2743
2744public static final void MoveMemory (int /*long*/ Destination, NMTTDISPINFO Source, int Length) {
2745    if (IsUnicode) {
2746        MoveMemory (Destination, (NMTTDISPINFOW)Source, Length);
2747    } else {
2748        MoveMemory (Destination, (NMTTDISPINFOA)Source, Length);
2749    }
2750}
2751
2752public static final void MoveMemory (NMTTDISPINFO Destination, int /*long*/ Source, int Length) {
2753    if (IsUnicode) {
2754        MoveMemory ((NMTTDISPINFOW)Destination, Source, Length);
2755    } else {
2756        MoveMemory ((NMTTDISPINFOA)Destination, Source, Length);
2757    }
2758}
2759
2760public static final void MoveMemory (TEXTMETRIC Destination, int /*long*/ Source, int Length) {
2761    if (IsUnicode) {
2762        MoveMemory ((TEXTMETRICW)Destination, Source, Length);
2763    } else {
2764        MoveMemory ((TEXTMETRICA)Destination, Source, Length);
2765    }
2766}
2767
2768public static final boolean PeekMessage (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg) {
2769    if (IsUnicode) return PeekMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
2770    return PeekMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
2771}
2772
2773public static final boolean PostMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2774    if (IsUnicode) return PostMessageW (hWnd, Msg, wParam, lParam);
2775    return PostMessageA (hWnd, Msg, wParam, lParam);
2776}
2777
2778public static final boolean PostThreadMessage (int idThread, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2779    if (IsUnicode) return PostThreadMessageW (idThread, Msg, wParam, lParam);
2780    return PostThreadMessageA (idThread, Msg, wParam, lParam);
2781}
2782
2783public static final boolean PrintDlg (PRINTDLG lppd) {
2784    if (IsUnicode) return PrintDlgW (lppd);
2785    return PrintDlgA (lppd);
2786}
2787
2788public static final int RegEnumKeyEx (int /*long*/ hKey, int dwIndex, TCHAR lpName, int [] lpcName, int [] lpReserved, TCHAR lpClass, int [] lpcClass, FILETIME lpftLastWriteTime) {
2789    if (IsUnicode) {
2790        char [] lpName1 = lpName == null ? null : lpName.chars;
2791        char [] lpClass1 = lpClass == null ? null : lpClass.chars;
2792        return RegEnumKeyExW (hKey, dwIndex, lpName1, lpcName, lpReserved, lpClass1, lpcClass, lpftLastWriteTime);
2793    }
2794    byte [] lpName1 = lpName == null ? null : lpName.bytes;
2795    byte [] lpClass1 = lpClass == null ? null : lpClass.bytes;
2796    return RegEnumKeyExA (hKey, dwIndex, lpName1, lpcName, lpReserved, lpClass1, lpcClass, lpftLastWriteTime);
2797}
2798
2799public static final int RegisterClass (WNDCLASS lpWndClass) {
2800    if (IsUnicode) return RegisterClassW (lpWndClass);
2801    return RegisterClassA (lpWndClass);
2802}
2803
2804public static final int RegisterClipboardFormat (TCHAR lpszFormat) {
2805    if (IsUnicode) {
2806        char [] lpszFormat1 = lpszFormat == null ? null : lpszFormat.chars;
2807        return RegisterClipboardFormatW (lpszFormat1);
2808    }
2809    byte [] lpszFormat1 = lpszFormat == null ? null : lpszFormat.bytes;
2810    return RegisterClipboardFormatA (lpszFormat1);
2811}
2812
2813public static final int RegisterWindowMessage (TCHAR lpString) {
2814    if (IsUnicode) {
2815        char [] lpString1 = lpString == null ? null : lpString.chars;
2816        return RegisterWindowMessageW (lpString1);
2817    }
2818    byte [] lpString1 = lpString == null ? null : lpString.bytes;
2819    return RegisterWindowMessageA (lpString1);
2820}
2821
2822public static final int RegOpenKeyEx (int /*long*/ hKey, TCHAR lpSubKey, int ulOptions, int samDesired, int /*long*/[] phkResult) {
2823    if (IsUnicode) {
2824        char [] lpSubKey1 = lpSubKey == null ? null : lpSubKey.chars;
2825        return RegOpenKeyExW (hKey, lpSubKey1, ulOptions, samDesired, phkResult);
2826    }
2827    byte [] lpSubKey1 = lpSubKey == null ? null : lpSubKey.bytes;
2828    return RegOpenKeyExA (hKey, lpSubKey1, ulOptions, samDesired, phkResult);
2829}
2830
2831public 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){
2832    if (IsUnicode) return RegQueryInfoKeyW (hKey, lpClass, lpcbClass, lpReserved, lpSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime);
2833    return RegQueryInfoKeyA (hKey, lpClass, lpcbClass, lpReserved, lpSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime);
2834}
2835
2836public static final int RegQueryValueEx (int /*long*/ hKey, TCHAR lpValueName, int /*long*/ lpReserved, int[] lpType, TCHAR lpData, int[] lpcbData) {
2837    if (IsUnicode) {
2838        char [] lpValueName1 = lpValueName == null ? null : lpValueName.chars;
2839        char [] lpData1 = lpData == null ? null : lpData.chars;
2840        return RegQueryValueExW (hKey, lpValueName1, lpReserved, lpType, lpData1, lpcbData);
2841    }
2842    byte [] lpValueName1 = lpValueName == null ? null : lpValueName.bytes;
2843    byte [] lpData1 = lpData == null ? null : lpData.bytes;
2844    return RegQueryValueExA (hKey, lpValueName1, lpReserved, lpType, lpData1, lpcbData);
2845}
2846
2847public static final int RegQueryValueEx (int /*long*/ hKey, TCHAR lpValueName, int /*long*/ lpReserved, int[] lpType, int [] lpData, int[] lpcbData) {
2848    if (IsUnicode) {
2849        char [] lpValueName1 = lpValueName == null ? null : lpValueName.chars;
2850        return RegQueryValueExW (hKey, lpValueName1, lpReserved, lpType, lpData, lpcbData);
2851    }
2852    byte [] lpValueName1 = lpValueName == null ? null : lpValueName.bytes;
2853    return RegQueryValueExA (hKey, lpValueName1, lpReserved, lpType, lpData, lpcbData);
2854}
2855
2856public static final int /*long*/ RemoveProp (int /*long*/ hWnd, int /*long*/ lpString){
2857    if (IsUnicode) return RemovePropW (hWnd, lpString);
2858    return RemovePropA (hWnd, lpString);
2859}
2860
2861public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCHAR lParam) {
2862    if (IsUnicode) {
2863        char [] lParam1 = lParam == null ? null : lParam.chars;
2864        return SendMessageW (hWnd, Msg, wParam, lParam1);
2865    }
2866    byte [] lParam1 = lParam == null ? null : lParam.bytes;
2867    return SendMessageA (hWnd, Msg, wParam, lParam1);
2868}
2869
2870public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int [] wParam, int [] lParam) {
2871    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2872    return SendMessageA (hWnd, Msg, wParam, lParam);
2873}
2874
2875public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SIZE lParam) {
2876    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2877    return SendMessageA (hWnd, Msg, wParam, lParam);
2878}
2879
2880public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ [] wParam, int /*long*/ lParam) {
2881    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2882    return SendMessageA (hWnd, Msg, wParam, lParam);
2883}
2884
2885public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int [] lParam) {
2886    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2887    return SendMessageA (hWnd, Msg, wParam, lParam);
2888}
2889
2890public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, char [] lParam) {
2891    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2892    return SendMessageA (hWnd, Msg, wParam, lParam);
2893}
2894
2895public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, short [] lParam) {
2896    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2897    return SendMessageA (hWnd, Msg, wParam, lParam);
2898}
2899
2900public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) {
2901    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2902    return SendMessageA (hWnd, Msg, wParam, lParam);
2903}
2904
2905public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LITEM lParam) {
2906    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2907    return SendMessageA (hWnd, Msg, wParam, lParam);
2908}
2909
2910public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVCOLUMN lParam) {
2911    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2912    return SendMessageA (hWnd, Msg, wParam, lParam);
2913}
2914
2915public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVHITTESTINFO lParam) {
2916    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2917    return SendMessageA (hWnd, Msg, wParam, lParam);
2918}
2919
2920public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVITEM lParam) {
2921    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2922    return SendMessageA (hWnd, Msg, wParam, lParam);
2923}
2924
2925public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, MARGINS lParam) {
2926    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2927    return SendMessageA (hWnd, Msg, wParam, lParam);
2928}
2929
2930public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, POINT lParam) {
2931    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2932    return SendMessageA (hWnd, Msg, wParam, lParam);
2933}
2934
2935public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, REBARBANDINFO lParam) {
2936    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2937    return SendMessageA (hWnd, Msg, wParam, lParam);
2938}
2939
2940public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, RECT lParam) {
2941    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2942    return SendMessageA (hWnd, Msg, wParam, lParam);
2943}
2944
2945public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SYSTEMTIME lParam) {
2946    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2947    return SendMessageA (hWnd, Msg, wParam, lParam);
2948}
2949
2950public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTON lParam) {
2951    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2952    return SendMessageA (hWnd, Msg, wParam, lParam);
2953}
2954
2955public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTONINFO lParam) {
2956    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2957    return SendMessageA (hWnd, Msg, wParam, lParam);
2958}
2959
2960public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCITEM lParam) {
2961    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2962    return SendMessageA (hWnd, Msg, wParam, lParam);
2963}
2964
2965public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TOOLINFO lParam) {
2966    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2967    return SendMessageA (hWnd, Msg, wParam, lParam);
2968}
2969
2970public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVHITTESTINFO lParam) {
2971    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2972    return SendMessageA (hWnd, Msg, wParam, lParam);
2973}
2974
2975public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVINSERTSTRUCT lParam) {
2976    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2977    return SendMessageA (hWnd, Msg, wParam, lParam);
2978}
2979
2980public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVITEM lParam) {
2981    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2982    return SendMessageA (hWnd, Msg, wParam, lParam);
2983}
2984
2985public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVSORTCB lParam) {
2986    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2987    return SendMessageA (hWnd, Msg, wParam, lParam);
2988}
2989
2990public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, UDACCEL lParam) {
2991    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2992    return SendMessageA (hWnd, Msg, wParam, lParam);
2993}
2994
2995public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDHITTESTINFO lParam) {
2996    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
2997    return SendMessageA (hWnd, Msg, wParam, lParam);
2998}
2999
3000public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDITEM lParam) {
3001    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3002    return SendMessageA (hWnd, Msg, wParam, lParam);
3003}
3004
3005public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDLAYOUT lParam) {
3006    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3007    return SendMessageA (hWnd, Msg, wParam, lParam);
3008}
3009
3010public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, BUTTON_IMAGELIST lParam) {
3011    if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam);
3012    return SendMessageA (hWnd, Msg, wParam, lParam);
3013}
3014
3015public static final boolean SetMenuItemInfo (int /*long*/ hMenu, int uItem, boolean fByPosition, MENUITEMINFO lpmii) {
3016    if (IsUnicode) return SetMenuItemInfoW (hMenu, uItem, fByPosition, lpmii);
3017    return SetMenuItemInfoA (hMenu, uItem, fByPosition, lpmii);
3018}
3019
3020public static boolean SetProp (int /*long*/ hWnd, int /*long*/ lpString, int /*long*/ hData) {
3021    if (IsUnicode) return SetPropW (hWnd, lpString, hData);
3022    return SetPropA (hWnd, lpString, hData);
3023}
3024
3025public static final int SetWindowLong (int /*long*/ hWnd, int nIndex, int dwNewLong) {
3026    if (IsUnicode) return SetWindowLongW (hWnd, nIndex, dwNewLong);
3027    return SetWindowLongA (hWnd, nIndex, dwNewLong);
3028}
3029
3030public static final int /*long*/ SetWindowLongPtr (int /*long*/ hWnd, int nIndex, int /*long*/ dwNewLong) {
3031    if (IsUnicode) return SetWindowLongPtrW (hWnd, nIndex, dwNewLong);
3032    return SetWindowLongPtrA (hWnd, nIndex, dwNewLong);
3033}
3034
3035public static final int /*long*/ SetWindowsHookEx (int idHook, int /*long*/ lpfn, int /*long*/ hMod, int dwThreadId) {
3036    if (IsUnicode) return SetWindowsHookExW (idHook, lpfn, hMod, dwThreadId);
3037    return SetWindowsHookExA (idHook, lpfn, hMod, dwThreadId);
3038}
3039
3040public static final boolean SetWindowText (int /*long*/ hWnd, TCHAR lpString) {
3041    if (IsUnicode) {
3042        char [] lpString1 = lpString == null ? null : lpString.chars;
3043        return SetWindowTextW (hWnd, lpString1);
3044    }
3045    byte [] lpString1 = lpString == null ? null : lpString.bytes;
3046    return SetWindowTextA (hWnd, lpString1);
3047}
3048
3049public static final int /*long*/ SHBrowseForFolder (BROWSEINFO lpbi) {
3050    if (IsUnicode) return SHBrowseForFolderW (lpbi);
3051    return SHBrowseForFolderA (lpbi);
3052}
3053
3054public static final boolean ShellExecuteEx (SHELLEXECUTEINFO lpExecInfo) {
3055    if (IsUnicode) return ShellExecuteExW (lpExecInfo);
3056    return ShellExecuteExA (lpExecInfo);
3057}
3058
3059public static int /*long*/ SHGetFileInfo (TCHAR pszPath, int dwFileAttributes, SHFILEINFO psfi, int cbFileInfo, int uFlags) {
3060    if (IsUnicode) {
3061        char [] pszPath1 = pszPath == null ? null : pszPath.chars;
3062        return SHGetFileInfoW (pszPath1, dwFileAttributes, (SHFILEINFOW) psfi, cbFileInfo, uFlags);
3063    }
3064    byte [] pszPath1 = pszPath == null ? null : pszPath.bytes;
3065    return SHGetFileInfoA (pszPath1, dwFileAttributes, (SHFILEINFOA) psfi, cbFileInfo, uFlags);
3066}
3067
3068public static final boolean Shell_NotifyIcon (int dwMessage, NOTIFYICONDATA lpData) {
3069    if (IsUnicode) return Shell_NotifyIconW (dwMessage, (NOTIFYICONDATAW)lpData);
3070    return Shell_NotifyIconA (dwMessage, (NOTIFYICONDATAA)lpData);
3071}
3072
3073public static final boolean SHGetPathFromIDList (int /*long*/ pidl, TCHAR pszPath) {
3074    if (IsUnicode) {
3075        char [] pszPath1 = pszPath == null ? null : pszPath.chars;
3076        return SHGetPathFromIDListW (pidl, pszPath1);
3077    }
3078    byte [] pszPath1 = pszPath == null ? null : pszPath.bytes;
3079    return SHGetPathFromIDListA (pidl, pszPath1);
3080}
3081
3082public static final int StartDoc (int /*long*/ hdc, DOCINFO lpdi) {
3083    if (IsUnicode) return StartDocW (hdc, lpdi);
3084    return StartDocA (hdc, lpdi);
3085}
3086
3087public static final boolean SystemParametersInfo (int uiAction, int uiParam, RECT pvParam, int fWinIni) {
3088    if (IsUnicode) return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni);
3089    return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni);
3090}
3091
3092public static final boolean SystemParametersInfo (int uiAction, int uiParam, HIGHCONTRAST pvParam, int fWinIni) {
3093    if (IsUnicode) return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni);
3094    return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni);
3095}
3096
3097public static final boolean SystemParametersInfo (int uiAction, int uiParam, NONCLIENTMETRICS pvParam, int fWinIni) {
3098    if (IsUnicode) return SystemParametersInfoW (uiAction, uiParam, (NONCLIENTMETRICSW)pvParam, fWinIni);
3099    return SystemParametersInfoA (uiAction, uiParam, (NONCLIENTMETRICSA)pvParam, fWinIni);
3100}
3101
3102public static final boolean SystemParametersInfo (int uiAction, int uiParam, int [] pvParam, int fWinIni) {
3103    if (IsUnicode) return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni);
3104    return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni);
3105}
3106
3107public static final int TranslateAccelerator (int /*long*/ hWnd, int /*long*/ hAccTable, MSG lpMsg) {
3108    if (IsUnicode) return TranslateAcceleratorW (hWnd, hAccTable, lpMsg);
3109    return TranslateAcceleratorA (hWnd, hAccTable, lpMsg);
3110}
3111
3112public static final boolean UnregisterClass (TCHAR lpClassName, int /*long*/ hInstance) {
3113    if (IsUnicode) {
3114        char [] lpClassName1 = lpClassName == null ? null : lpClassName.chars;
3115        return UnregisterClassW (lpClassName1, hInstance);
3116    }
3117    byte [] lpClassName1 = lpClassName == null ? null : lpClassName.bytes;
3118    return UnregisterClassA (lpClassName1, hInstance);
3119}
3120
3121public static final short VkKeyScan (short ch) {
3122    if (IsUnicode) return VkKeyScanW (ch);
3123    return VkKeyScanA (ch);
3124}
3125
3126/** Natives */
3127public static final native int AbortDoc (int /*long*/ hdc);
3128public static final native boolean ActivateActCtx (int /*long*/ hActCtx, int /*long*/ [] lpCookie);
3129public static final native int /*long*/ ActivateKeyboardLayout(int /*long*/ hkl, int Flags);
3130public static final native int AddFontResourceExW(char[] lpszFilename, int fl, int /*long*/ pdv);
3131public static final native int AddFontResourceExA(byte[] lpszFilename, int fl, int /*long*/ pdv);
3132public static final native boolean AdjustWindowRectEx (RECT lpRect, int dwStyle, boolean bMenu, int dwExStyle);
3133public static final native boolean AlphaBlend(int /*long*/ hdcDest, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest, int /*long*/ hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, BLENDFUNCTION blendFunction);
3134public static final native boolean AnimateWindow(int /*long*/ hwnd, int dwTime, int dwFlags);
3135public static final native boolean Arc (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nXStartArc, int nYStartArc, int nXEndArc, int nYEndArc);
3136public static final native int AssocQueryStringA(int flags, int str, byte[] pszAssoc, byte[] pszExtra, byte[] pszOut, int[] pcchOut);
3137public static final native int AssocQueryStringW(int flags, int str, char[] pszAssoc, char[] pszExtra, char[] pszOut, int[] pcchOut);
3138public static final native boolean AttachThreadInput (int idAttach, int idAttachTo, boolean fAttach);
3139public static final native int /*long*/ BeginBufferedPaint (int /*long*/ hdcTarget, RECT prcTarget, int dwFormat, BP_PAINTPARAMS pPaintParams, int /*long*/ [] phdc);
3140public static final native int /*long*/ BeginDeferWindowPos (int nNumWindows);
3141public static final native int /*long*/ BeginPaint (int /*long*/ hWnd, PAINTSTRUCT lpPaint);
3142public static final native boolean BeginPath(int /*long*/ hdc);
3143public static final native boolean BitBlt (int /*long*/ hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, int /*long*/ hdcSrc, int nXSrc, int nYSrc, int dwRop);
3144public static final native boolean BringWindowToTop (int /*long*/ hWnd);
3145public static final native int BufferedPaintInit ();
3146public static final native int BufferedPaintSetAlpha (int /*long*/ hBufferedPaint, RECT prc, byte alpha);
3147public static final native int BufferedPaintUnInit ();
3148public static final native int Call (int /*long*/ address, DLLVERSIONINFO arg0);
3149public static final native int /*long*/ CallNextHookEx(int /*long*/ hhk, int nCode, int /*long*/ wParam, int /*long*/ lParam);
3150public static final native int /*long*/ CallWindowProcW (int /*long*/ lpPrevWndFunc, int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3151public static final native int /*long*/ CallWindowProcA (int /*long*/ lpPrevWndFunc, int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3152public static final native short CharLowerW (short ch);
3153public static final native short CharLowerA (short ch);
3154public static final native short CharUpperW (short ch);
3155public static final native short CharUpperA (short ch);
3156public static final native boolean CheckMenuItem (int /*long*/ hmenu, int uIDCheckItem, int uCheck);
3157public static final native boolean ChooseColorW (CHOOSECOLOR lpcc);
3158public static final native boolean ChooseColorA (CHOOSECOLOR lpcc);
3159public static final native boolean ChooseFontW (CHOOSEFONT chooseFont);
3160public static final native boolean ChooseFontA (CHOOSEFONT chooseFont);
3161public static final native boolean ClientToScreen (int /*long*/ hWnd, POINT lpPoint);
3162public static final native boolean CloseClipboard ();
3163public static final native boolean CloseHandle (int /*long*/ hObject);
3164public static final native int CloseThemeData (int /*long*/ hTheme);
3165public static final native int CoCreateInstance (byte[] rclsid, int /*long*/ pUnkOuter, int dwClsContext, byte[] riid, int /*long*/[] ppv);
3166public static final native int CoInternetIsFeatureEnabled (int FeatureEntry, int dwFlags);
3167public static final native int CoInternetSetFeatureEnabled (int FeatureEntry, int dwFlags, boolean fEnable);
3168public static final native int CombineRgn (int /*long*/ hrgnDest, int /*long*/ hrgnSrc1, int /*long*/ hrgnSrc2, int fnCombineMode);
3169public static final native boolean CommandBar_AddAdornments (int /*long*/ hwndCB, int dwFlags, int dwReserved);
3170public static final native int /*long*/ CommandBar_Create (int /*long*/ hInst, int /*long*/ hwndParent, int idCmdBar);
3171public static final native void CommandBar_Destroy (int /*long*/ hwndCB);
3172public static final native boolean CommandBar_DrawMenuBar (int /*long*/ hwndCB, int iButton);
3173public static final native int CommandBar_Height (int /*long*/ hdnwCB);
3174public static final native boolean CommandBar_InsertMenubarEx (int /*long*/ hwndCB, int /*long*/ hInst, int /*long*/ pszMenu, int iButton);
3175public static final native boolean CommandBar_Show (int /*long*/ hwndCB, boolean fShow);
3176public static final native int CommDlgExtendedError ();
3177public static final native int /*long*/ CopyImage (int /*long*/ hImage, int uType, int cxDesired, int cyDesired, int fuFlags);
3178public static final native int /*long*/ CreateAcceleratorTableW (byte [] lpaccl, int cEntries);
3179public static final native int /*long*/ CreateAcceleratorTableA (byte [] lpaccl, int cEntries);
3180public static final native int /*long*/ CreateActCtxW (ACTCTX pActCtx);
3181public static final native int /*long*/ CreateActCtxA (ACTCTX pActCtx);
3182public static final native int /*long*/ CreateBitmap (int nWidth, int nHeight, int cPlanes, int cBitsPerPel, byte [] lpvBits);
3183public static final native boolean CreateCaret (int /*long*/ hWnd, int /*long*/ hBitmap, int nWidth, int nHeight);
3184public static final native int /*long*/ CreateCompatibleBitmap (int /*long*/ hdc, int nWidth, int nHeight);
3185public static final native int /*long*/ CreateCompatibleDC (int /*long*/ hdc);
3186public static final native int /*long*/ CreateCursor (int /*long*/ hInst, int xHotSpot, int yHotSpot, int nWidth, int nHeight, byte [] pvANDPlane, byte [] pvXORPlane);
3187public static final native int /*long*/ CreateDCW (char [] lpszDriver, char [] lpszDevice, int /*long*/ lpszOutput, int /*long*/ lpInitData);
3188public static final native int /*long*/ CreateDCA (byte [] lpszDriver, byte [] lpszDevice, int /*long*/ lpszOutput, int /*long*/ lpInitData);
3189public static final native int /*long*/ CreateDIBSection(int /*long*/ hdc, byte[] pbmi, int iUsage, int /*long*/[] ppvBits, int /*long*/ hSection, int dwOffset);
3190public static final native int /*long*/ CreateFontIndirectW (int /*long*/ lplf);
3191public static final native int /*long*/ CreateFontIndirectA (int /*long*/ lplf);
3192public static final native int /*long*/ CreateFontIndirectW (LOGFONTW lplf);
3193public static final native int /*long*/ CreateFontIndirectA (LOGFONTA lplf);
3194public static final native int /*long*/ CreateIconIndirect (ICONINFO lplf);
3195public static final native int /*long*/ CreateMenu ();
3196public static final native int /*long*/ CreatePalette (byte[] logPalette);
3197public static final native int /*long*/ CreatePatternBrush (int /*long*/ colorRef);
3198public static final native int /*long*/ CreatePen (int fnPenStyle, int nWidth, int crColor);
3199public static final native int /*long*/ CreatePolygonRgn(int[] lppt, int cPoints, int fnPolyFillMode);
3200public static final native int /*long*/ CreatePopupMenu ();
3201public static final native boolean CreateProcessW (int /*long*/ lpApplicationName, int /*long*/ lpCommandLine, int /*long*/ lpProcessAttributes, int /*long*/ lpThreadAttributes, boolean bInheritHandles, int dwCreationFlags, int /*long*/ lpEnvironment, int /*long*/ lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation);
3202public static final native boolean CreateProcessA (int /*long*/ lpApplicationName, int /*long*/ lpCommandLine, int /*long*/ lpProcessAttributes, int /*long*/ lpThreadAttributes, boolean bInheritHandles, int dwCreationFlags, int /*long*/ lpEnvironment, int /*long*/ lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation);
3203public static final native int /*long*/ CreateRectRgn (int left, int top, int right, int bottom);
3204public static final native int /*long*/ CreateSolidBrush (int colorRef);
3205public static final native int CreateStreamOnHGlobal(int /*long*/ hGlobal, boolean fDeleteOnRelease, int /*long*/[] ppstm);
3206public static final native int /*long*/ CreateWindowExW (int dwExStyle, char [] lpClassName, char [] lpWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int /*long*/ hWndParent, int /*long*/ hMenu, int /*long*/ hInstance, CREATESTRUCT lpParam);
3207public static final native int /*long*/ CreateWindowExA (int dwExStyle, byte [] lpClassName, byte [] lpWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int /*long*/ hWndParent, int /*long*/ hMenu, int /*long*/ hInstance, CREATESTRUCT lpParam);
3208public static final native int /*long*/ DeferWindowPos (int /*long*/ hWinPosInfo, int /*long*/ hWnd, int /*long*/ hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags);
3209public static final native int /*long*/ DefMDIChildProcW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3210public static final native int /*long*/ DefMDIChildProcA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3211public static final native int /*long*/ DefFrameProcW (int /*long*/ hWnd, int /*long*/ hWndMDIClient, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3212public static final native int /*long*/ DefFrameProcA (int /*long*/ hWnd, int /*long*/ hWndMDIClient, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3213public static final native int /*long*/ DefWindowProcW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3214public static final native int /*long*/ DefWindowProcA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3215public static final native boolean DeleteDC (int /*long*/ hdc);
3216public static final native boolean DeleteMenu (int /*long*/ hMenu, int uPosition, int uFlags);
3217public static final native boolean DeleteObject (int /*long*/ hGdiObj);
3218public static final native boolean DestroyAcceleratorTable (int /*long*/ hAccel);
3219public static final native boolean DestroyCaret ();
3220public static final native boolean DestroyCursor (int /*long*/ hCursor);
3221public static final native boolean DestroyIcon (int /*long*/ hIcon);
3222public static final native boolean DestroyMenu (int /*long*/ hMenu);
3223public static final native boolean DestroyWindow (int /*long*/ hWnd);
3224public static final native int /*long*/ DispatchMessageW (MSG lpmsg);
3225public static final native int /*long*/ DispatchMessageA (MSG lpmsg);
3226public static final native boolean DragDetect (int /*long*/ hwnd, POINT pt);
3227public static final native void DragFinish (int /*long*/ hDrop);
3228public static final native int DragQueryFileA (int /*long*/ hDrop, int iFile, byte[] lpszFile, int cch);
3229public static final native int DragQueryFileW (int /*long*/ hDrop, int iFile, char[] lpszFile, int cch);
3230public static final native boolean DrawAnimatedRects (int /*long*/ hwnd, int idAni, RECT lprcFrom, RECT lprcTo);
3231public static final native boolean DrawEdge (int /*long*/ hdc, RECT qrc, int edge, int grfFlags);
3232public static final native boolean DrawFocusRect (int /*long*/ hDC, RECT lpRect);
3233public static final native boolean DrawFrameControl (int /*long*/ hdc, RECT lprc, int uType, int uState);
3234public static final native boolean DrawIconEx (int /*long*/ hdc, int xLeft, int yTop, int /*long*/ hIcon, int cxWidth, int cyWidth, int istepIfAniCur, int /*long*/ hbrFlickerFreeDraw, int diFlags);
3235public static final native boolean DrawMenuBar (int /*long*/ hWnd);
3236public static final native boolean DrawStateW (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);
3237public static final native boolean DrawStateA (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);
3238public static final native int DrawTextW (int /*long*/ hDC, char [] lpString, int nCount, RECT lpRect, int uFormat);
3239public static final native int DrawTextA (int /*long*/ hDC, byte [] lpString, int nCount, RECT lpRect, int uFormat);
3240public static final native int DrawThemeBackground (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT pRect, RECT pClipRect);
3241public static final native int DrawThemeEdge (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT pDestRect, int uEdge, int uFlags, RECT pContentRect);
3242public static final native int DrawThemeIcon (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT pRect, int /*long*/ himl, int iImageIndex);
3243public static final native int DrawThemeParentBackground (int /*long*/ hwnd, int /*long*/ hdc, RECT prc);
3244public static final native int DrawThemeText (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, char[] pszText, int iCharCount, int dwTextFlags, int dwTextFlags2, RECT pRect);
3245public static final native int DwmExtendFrameIntoClientArea (int /*long*/ hWnd, MARGINS pMarInset);
3246public static final native boolean Ellipse (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
3247public static final native boolean EnableMenuItem (int /*long*/ hMenu, int uIDEnableItem, int uEnable);
3248public static final native boolean EnableScrollBar (int /*long*/ hWnd, int wSBflags, int wArrows);
3249public static final native boolean EnableWindow (int /*long*/ hWnd, boolean bEnable);
3250public static final native boolean EnumSystemLanguageGroupsW(int /*long*/ pLangGroupEnumProc, int dwFlags, int /*long*/ lParam);
3251public static final native boolean EnumSystemLanguageGroupsA(int /*long*/ pLangGroupEnumProc, int dwFlags, int /*long*/ lParam);
3252public static final native boolean EnumSystemLocalesW (int /*long*/ lpLocaleEnumProc, int dwFlags);
3253public static final native boolean EnumSystemLocalesA (int /*long*/ lpLocaleEnumProc, int dwFlags);
3254public static final native boolean EndDeferWindowPos (int /*long*/ hWinPosInfo);
3255public static final native int EndBufferedPaint (int /*long*/ hBufferedPaint, boolean fUpdateTarget);
3256public static final native int EndDoc (int /*long*/ hdc);
3257public static final native int EndPage (int /*long*/ hdc);
3258public static final native int EndPaint (int /*long*/ hWnd, PAINTSTRUCT lpPaint);
3259public static final native boolean EndPath(int /*long*/ hdc);
3260public static final native boolean EnumDisplayMonitors (int /*long*/ hdc, RECT lprcClip, int /*long*/ lpfnEnum, int dwData);
3261public static final native int EnumFontFamiliesW (int /*long*/ hdc, char [] lpszFamily, int /*long*/ lpEnumFontFamProc, int /*long*/ lParam);
3262public static final native int EnumFontFamiliesA (int /*long*/ hdc, byte [] lpszFamily, int /*long*/ lpEnumFontFamProc, int /*long*/ lParam);
3263public static final native int EnumFontFamiliesExW (int /*long*/ hdc, LOGFONTW lpLogfont, int /*long*/ lpEnumFontFamExProc, int /*long*/ lParam, int dwFlags);
3264public static final native int EnumFontFamiliesExA (int /*long*/ hdc, LOGFONTA lpLogfont, int /*long*/ lpEnumFontFamExProc, int /*long*/ lParam, int dwFlags);
3265public static final native boolean EqualRect (RECT lprc1, RECT lprc2);
3266public static final native boolean EqualRgn (int /*long*/ hSrcRgn1, int /*long*/ hSrcRgn2);
3267public static final native int ExcludeClipRect (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
3268public static final native int ExpandEnvironmentStringsW (char [] lpSrc, char [] lsDst, int nSize);
3269public static final native int ExpandEnvironmentStringsA (byte [] lpSrc, byte [] lsDst, int nSize);
3270public static final native int /*long*/ ExtCreatePen (int dwPenStyle, int dwWidth, LOGBRUSH lplb, int dwStyleCount, int[] lpStyle);
3271public static final native int /*long*/ ExtCreateRegion (float[] lpXform, int nCount, int[] lpRgnData);
3272public static final native boolean ExtTextOutW (int /*long*/ hdc, int X, int Y, int fuOptions, RECT lprc, char[] lpString, int cbCount, int[] lpDx);
3273public static final native boolean ExtTextOutA (int /*long*/ hdc, int X, int Y, int fuOptions, RECT lprc, byte[] lpString, int cbCount, int[] lpDx);
3274public static final native int ExtractIconExW (char [] lpszFile, int nIconIndex, int /*long*/ [] phiconLarge, int /*long*/ [] phiconSmall, int nIcons);
3275public static final native int ExtractIconExA (byte [] lpszFile, int nIconIndex, int /*long*/ [] phiconLarge, int /*long*/ [] phiconSmall, int nIcons);
3276public static final native int FillRect (int /*long*/ hDC, RECT lprc, int /*long*/ hbr);
3277public static final native boolean FillPath (int /*long*/ hdc);
3278public static final native int /*long*/ FindWindowA (byte [] lpClassName, byte [] lpWindowName);
3279public static final native int /*long*/ FindWindowW (char [] lpClassName, char [] lpWindowName);
3280public static final native int FormatMessageA (int dwFlags, int /*long*/ lpSource, int dwMessageId, int dwLanguageId, int[] lpBuffer, int nSize, int /*long*/ Arguments);
3281public static final native int FormatMessageW (int dwFlags, int /*long*/ lpSource, int dwMessageId, int dwLanguageId, int[] lpBuffer, int nSize, int /*long*/ Arguments);
3282public static final native boolean FreeLibrary (int /*long*/ hLibModule);
3283public static final native int GdiSetBatchLimit (int dwLimit);
3284public static final native int GetACP ();
3285public static final native short GetAsyncKeyState (int nVirtKey);
3286public static final native int /*long*/ GetActiveWindow ();
3287public static final native int GetBkColor (int /*long*/ hDC);
3288public static final native int /*long*/ GetCapture ();
3289public static final native boolean GetCaretPos (POINT lpPoint);
3290public static final native boolean GetCharABCWidthsA (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpabc);
3291public static final native boolean GetCharABCWidthsW (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpabc);
3292public static final native int GetCharacterPlacementW (int /*long*/ hdc, char[] lpString, int nCount, int nMaxExtent, GCP_RESULTS lpResults, int dwFlags);
3293public static final native int GetCharacterPlacementA (int /*long*/ hdc, byte[] lpString, int nCount, int nMaxExtent, GCP_RESULTS lpResults, int dwFlags);
3294public static final native boolean GetCharWidthA (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpBuffer);
3295public static final native boolean GetCharWidthW (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpBuffer);
3296public static final native boolean GetClassInfoW (int /*long*/ hInstance, char [] lpClassName, WNDCLASS lpWndClass);
3297public static final native boolean GetClassInfoA (int /*long*/ hInstance, byte [] lpClassName, WNDCLASS lpWndClass);
3298public static final native int GetClassNameW (int /*long*/ hWnd, char [] lpClassName, int nMaxCount);
3299public static final native int GetClassNameA (int /*long*/ hWnd, byte [] lpClassName, int nMaxCount);
3300public static final native boolean GetClientRect (int /*long*/ hWnd, RECT lpRect);
3301public static final native int /*long*/ GetClipboardData (int uFormat);
3302public static final native int GetClipboardFormatNameA (int format, byte[] lpszFormatName, int cchMaxCount);
3303public static final native int GetClipboardFormatNameW (int format, char[] lpszFormatName, int cchMaxCount);
3304public static final native int GetClipBox (int /*long*/ hdc, RECT lprc);
3305public static final native int GetClipRgn (int /*long*/ hdc, int /*long*/ hrgn);
3306public static final native boolean GetComboBoxInfo (int /*long*/ hwndCombo, COMBOBOXINFO pcbi);
3307public static final native int /*long*/ GetCurrentObject (int /*long*/ hdc, int uObjectType);
3308public static final native int GetCurrentProcessId ();
3309public static final native int GetCurrentThreadId ();
3310public static final native int /*long*/ GetCursor ();
3311public static final native boolean GetCursorPos (POINT lpPoint);
3312public static final native int GetDateFormatW(int Locale, int dwFlags, SYSTEMTIME lpDate, char [] lpFormat, char [] lpDateStr, int cchDate);
3313public static final native int GetDateFormatA(int Locale, int dwFlags, SYSTEMTIME lpDate, byte [] lpFormat, byte [] lpDateStr, int cchDate);
3314public static final native int /*long*/ GetDC (int /*long*/ hwnd);
3315public static final native int /*long*/ GetDCEx (int /*long*/ hWnd, int /*long*/ hrgnClip, int flags);
3316public static final native int /*long*/ GetDesktopWindow ();
3317public static final native int GetDeviceCaps (int /*long*/ hdc, int nIndex);
3318public static final native int GetDialogBaseUnits ();
3319public static final native int GetDIBColorTable (int /*long*/ hdc, int uStartIndex, int cEntries, byte[] pColors);
3320public static final native int GetDIBits (int /*long*/ hdc, int /*long*/ hbmp, int uStartScan, int cScanLines, int /*long*/ lpvBits, byte[] lpbi, int uUsage);
3321public static final native int /*long*/ GetDlgItem (int /*long*/ hDlg, int nIDDlgItem);
3322public static final native int GetDoubleClickTime ();
3323public static final native int /*long*/ GetFocus ();
3324public static final native int GetFontLanguageInfo (int /*long*/ hdc);
3325public static final native int /*long*/ GetForegroundWindow ();
3326public static final native boolean GetGUIThreadInfo (int idThread, GUITHREADINFO lpgui);
3327public static final native boolean GetIconInfo (int /*long*/ hIcon, ICONINFO piconinfo);
3328public static final native int GetKeyboardLayoutList (int nBuff, int /*long*/ [] lpList);
3329public static final native int /*long*/ GetKeyboardLayout (int idThread);
3330public static final native short GetKeyState (int nVirtKey);
3331public static final native boolean GetKeyboardState (byte [] lpKeyState);
3332public static final native int GetKeyNameTextW (int lParam, char [] lpString, int nSize);
3333public static final native int GetKeyNameTextA (int lParam, byte [] lpString, int nSize);
3334public static final native int /*long*/ GetLastActivePopup (int /*long*/ hWnd);
3335public static final native int GetLastError ();
3336public static final native int GetLayout (int /*long*/ hdc);
3337/* returns the instance handle to the swt library */
3338public static final native int /*long*/ GetLibraryHandle ();
3339public static final native int GetLocaleInfoW (int Locale, int LCType, char [] lpLCData, int cchData);
3340public static final native int GetLocaleInfoA (int Locale, int LCType, byte [] lpLCData, int cchData);
3341public static final native int /*long*/ GetMenu (int /*long*/ hWnd);
3342public static final native boolean GetMenuBarInfo (int /*long*/ hWnd, int idObject, int idItem, MENUBARINFO pmbi);
3343public static final native int GetMenuDefaultItem (int /*long*/ hMenu, int fByPos, int gmdiFlags);
3344public static final native boolean GetMenuInfo (int /*long*/ hmenu, MENUINFO lpcmi);
3345public static final native int GetMenuItemCount (int /*long*/ hMenu);
3346public static final native boolean GetMenuItemInfoW (int /*long*/ hMenu, int uItem, boolean fByPosition, MENUITEMINFO lpmii);
3347public static final native boolean GetMenuItemInfoA (int /*long*/ hMenu, int uItem, boolean fByPosition, MENUITEMINFO lpmii);
3348public static final native boolean GetMenuItemRect (int /*long*/ hWnd, int /*long*/ hMenu, int uItem, RECT lprcItem);
3349public static final native boolean GetMessageW (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax);
3350public static final native boolean GetMessageA (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax);
3351public static final native int GetMessagePos ();
3352public static final native int GetMessageTime ();
3353public static final native int GetMetaRgn (int /*long*/ hdc, int /*long*/ hrgn);
3354public static final native int GetThemeColor (int /*long*/ hTheme, int iPartId, int iStateId, int iPropId, int[] pColor);
3355public static final native int GetThemeTextExtent (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, char[] pszText, int iCharCount, int dwTextFlags, RECT pBoundingRect, RECT pExtentRect);
3356public static final native int GetTextCharset (int /*long*/ hdc);
3357public static final native int GetTickCount ();
3358public static final native int GetModuleFileNameW (int /*long*/ hModule, char [] lpFilename, int inSize);
3359public static final native int GetModuleFileNameA (int /*long*/ hModule, byte [] lpFilename, int inSize);
3360public static final native int /*long*/ GetModuleHandleW (char [] lpModuleName);
3361public static final native int /*long*/ GetModuleHandleA (byte [] lpModuleName);
3362public static final native boolean GetMonitorInfoW (int /*long*/ hmonitor, MONITORINFO lpmi);
3363public static final native boolean GetMonitorInfoA (int /*long*/ hmonitor, MONITORINFO lpmi);
3364public static final native int GetNearestPaletteIndex (int /*long*/ hPal, int crColor);
3365public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, BITMAP lpvObject);
3366public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, BITMAP lpvObject);
3367public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, DIBSECTION lpvObject);
3368public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, DIBSECTION lpvObject);
3369public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, EXTLOGPEN lpvObject);
3370public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, EXTLOGPEN lpvObject);
3371public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, LOGBRUSH lpvObject);
3372public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, LOGBRUSH lpvObject);
3373public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, LOGFONTA lpvObject);
3374public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, LOGFONTW lpvObject);
3375public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, LOGPEN lpvObject);
3376public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, LOGPEN lpvObject);
3377public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, int /*long*/ lpvObject);
3378public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, int /*long*/ lpvObject);
3379public static final native boolean GetOpenFileNameW (OPENFILENAME lpofn);
3380public static final native boolean GetOpenFileNameA (OPENFILENAME lpofn);
3381public static final native int GetPath (int /*long*/ hdc, int[] lpPoints, byte[] lpTypes, int nSize);
3382public static final native int GetPaletteEntries (int /*long*/ hPalette, int iStartIndex, int nEntries, byte[] logPalette);
3383public static final native int /*long*/ GetParent (int /*long*/ hWnd);
3384public static final native int GetPixel (int /*long*/ hdc, int x, int y);
3385public static final native int GetPolyFillMode (int /*long*/ hdc);
3386public static final native int /*long*/ GetProcAddress (int /*long*/ hModule, byte [] lpProcName);
3387public static final native int /*long*/ GetProcessHeap ();
3388public static final native int GetProcessHeaps (int NumberOfHeaps, int /*long*/[] ProcessHeaps);
3389public static final native int GetProfileStringW (char [] lpAppName, char [] lpKeyName, char [] lpDefault, char [] lpReturnedString, int nSize);
3390public static final native int GetProfileStringA (byte [] lpAppName, byte [] lpKeyName, byte [] lpDefault, byte [] lpReturnedString, int nSize);
3391public static final native int /*long*/ GetPropW (int /*long*/ hWnd, int /*long*/ lpString);
3392public static final native int /*long*/ GetPropA (int /*long*/ hWnd, int /*long*/ lpString);
3393public static final native int GetRandomRgn (int /*long*/ hdc, int /*long*/ hrgn, int iNum);
3394public static final native int GetRegionData (int /*long*/ hRgn, int dwCount, int [] lpRgnData);
3395public static final native int GetRgnBox (int /*long*/ hrgn, RECT lprc);
3396public static final native int GetROP2 (int /*long*/ hdc);
3397public static final native boolean GetSaveFileNameW (OPENFILENAME lpofn);
3398public static final native boolean GetSaveFileNameA (OPENFILENAME lpofn);
3399public static final native boolean GetScrollInfo (int /*long*/ hwnd, int flags, SCROLLINFO info);
3400public static final native void GetStartupInfoW (STARTUPINFO lpStartupInfo);
3401public static final native void GetStartupInfoA (STARTUPINFO lpStartupInfo);
3402public static final native int /*long*/ GetStockObject (int fnObject);
3403public static final native int GetSysColor (int nIndex);
3404public static final native int /*long*/ GetSysColorBrush (int nIndex);
3405public static final native short GetSystemDefaultUILanguage ();
3406public static final native int /*long*/ GetSystemMenu (int /*long*/ hWnd, boolean bRevert);
3407public static final native int GetSystemMetrics (int nIndex);
3408public static final native int GetSystemPaletteEntries (int /*long*/ hdc, int iStartIndex, int nEntries, byte[] lppe);
3409public static final native int GetTextColor (int /*long*/ hDC);
3410public static final native boolean GetTextExtentPoint32W (int /*long*/ hdc, char [] lpString, int cbString, SIZE lpSize);
3411public static final native boolean GetTextExtentPoint32A (int /*long*/ hdc, byte [] lpString, int cbString, SIZE lpSize);
3412public static final native boolean GetTextMetricsW (int /*long*/ hdc, TEXTMETRICW lptm);
3413public static final native boolean GetTextMetricsA (int /*long*/ hdc, TEXTMETRICA lptm);
3414public static final native int GetThemeInt (int /*long*/ hTheme, int iPartId, int iStateId, int iPropId, int[] piVal);
3415public static final native int GetThemeMargins (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, int iPropId, RECT prc, MARGINS pMargins);
3416public static final native int GetThemeBackgroundContentRect (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT pBoundingRect, RECT pContentRect);
3417public static final native int GetThemeBackgroundExtent (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT pContentRect, RECT pExtentRect);
3418public static final native int GetThemePartSize (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT prc, int eSize, SIZE psz);
3419public static final native int GetThemeMetric (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, int iPropId, int[] piVal);
3420public static final native int GetThemeRect (int /*long*/ hTheme, int iPartId, int iStateId, int iPropId, RECT pRect);
3421public static final native int GetThemeSysSize (int /*long*/ hTheme, int iSizeID);
3422public static final native int GetTimeFormatW(int Locale, int dwFlags, SYSTEMTIME lpTime, char [] lpFormat, char [] lpTimeStr, int cchTime);
3423public static final native int GetTimeFormatA(int Locale, int dwFlags, SYSTEMTIME lpTime, byte [] lpFormat, byte [] lpTimeStr, int cchTime);
3424public static final native boolean GetUpdateRect (int /*long*/ hWnd, RECT lpRect, boolean bErase);
3425public static final native int GetUpdateRgn (int /*long*/ hWnd, int /*long*/ hRgn, boolean bErase);
3426public static final native boolean GetVersionExW (OSVERSIONINFOEXW lpVersionInfo);
3427public static final native boolean GetVersionExA (OSVERSIONINFOEXA lpVersionInfo);
3428public static final native boolean GetVersionExW (OSVERSIONINFOW lpVersionInfo);
3429public static final native boolean GetVersionExA (OSVERSIONINFOA lpVersionInfo);
3430public static final native int /*long*/ GetWindow (int /*long*/ hWnd, int uCmd);
3431public static final native int GetWindowLongW (int /*long*/ hWnd, int nIndex);
3432public static final native int GetWindowLongA (int /*long*/ hWnd, int nIndex);
3433public static final native int /*long*/ GetWindowLongPtrW (int /*long*/ hWnd, int nIndex);
3434public static final native int /*long*/ GetWindowLongPtrA (int /*long*/ hWnd, int nIndex);
3435public static final native int /*long*/ GetWindowDC (int /*long*/ hWnd);
3436public static final native boolean GetWindowOrgEx (int /*long*/ hdc, POINT lpPoint);
3437public static final native boolean GetWindowPlacement (int /*long*/ hWnd, WINDOWPLACEMENT lpwndpl);
3438public static final native boolean GetWindowRect (int /*long*/ hWnd, RECT lpRect);
3439public static final native int GetWindowRgn (int /*long*/ hWnd, int /*long*/ hRgn);
3440public static final native int GetWindowTextW (int /*long*/ hWnd, char [] lpString, int nMaxCount);
3441public static final native int GetWindowTextA (int /*long*/ hWnd, byte [] lpString, int nMaxCount);
3442public static final native int GetWindowTextLengthW (int /*long*/ hWnd);
3443public static final native int GetWindowTextLengthA (int /*long*/ hWnd);
3444public static final native int GetWindowTheme (int /*long*/ hWnd);
3445public static final native int GetWindowThreadProcessId (int /*long*/ hWnd, int [] lpdwProcessId);
3446public static final native boolean GetWorldTransform (int /*long*/ hdc, float[] lpXform);
3447public static final native int GlobalAddAtomW (char [] lpString);
3448public static final native int GlobalAddAtomA (byte [] lpString);
3449public static final native int /*long*/ GlobalAlloc (int uFlags, int dwBytes);
3450public static final native int /*long*/ GlobalFree (int /*long*/ hMem);
3451public static final native int /*long*/ GlobalLock (int /*long*/ hMem);
3452public static final native int GlobalSize (int /*long*/ hMem);
3453public static final native boolean GlobalUnlock (int /*long*/ hMem);
3454public static final native boolean GradientFill (int /*long*/ hdc, int /*long*/ pVertex, int dwNumVertex, int /*long*/ pMesh, int dwNumMesh, int dwMode);
3455public static final native int /*long*/ HeapAlloc (int /*long*/ hHeap, int dwFlags, int dwBytes);
3456public static final native boolean HeapFree (int /*long*/ hHeap, int dwFlags, int /*long*/ lpMem);
3457public static final native boolean HeapValidate (int /*long*/ hHeap, int dwFlags, int /*long*/ lpMem);
3458public static final native boolean HideCaret (int /*long*/ hWnd);
3459public static final native int HitTestThemeBackground (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, int dwOptions, RECT pRect, int /*long*/ hrgn, POINT ptTest, short[] pwHitTestCode);
3460public static final native int IIDFromString (char[] lpsz, byte[] lpiid);
3461public static final native int ImageList_Add (int /*long*/ himl, int /*long*/ hbmImage, int /*long*/ hbmMask);
3462public static final native int ImageList_AddMasked (int /*long*/ himl, int /*long*/ hbmImage, int crMask);
3463public static final native boolean ImageList_BeginDrag (int /*long*/ himl, int iTrack, int dxHotspot, int dyHotspot);
3464public static final native int /*long*/ ImageList_Create (int cx, int cy, int flags, int cInitial, int cGrow);
3465public static final native boolean ImageList_Destroy (int /*long*/ himl);
3466public static final native boolean ImageList_DragEnter (int /*long*/ hwndLock, int x, int y);
3467public static final native boolean ImageList_DragLeave (int /*long*/ hwndLock);
3468public static final native boolean ImageList_DragMove (int x, int y);
3469public static final native boolean ImageList_DragShowNolock (boolean fShow);
3470public static final native boolean ImageList_Draw (int /*long*/ himl, int i, int /*long*/ hdcDst, int x, int y, int fStyle);
3471public static final native void ImageList_EndDrag ();
3472public static final native int /*long*/ ImageList_GetDragImage (POINT ppt, POINT pptHotspot);
3473public static final native int /*long*/ ImageList_GetIcon (int /*long*/ himl, int i, int flags);
3474public static final native boolean ImageList_GetIconSize (int /*long*/ himl, int [] cx, int [] cy);
3475public static final native int ImageList_GetImageCount (int /*long*/ himl);
3476public static final native boolean ImageList_Remove (int /*long*/ himl, int i);
3477public static final native boolean ImageList_Replace (int /*long*/ himl, int i, int /*long*/ hbmImage, int /*long*/ hbmMask);
3478public static final native int ImageList_ReplaceIcon (int /*long*/ himl, int i, int /*long*/ hicon);
3479public static final native boolean ImageList_SetIconSize (int /*long*/ himl, int cx, int cy);
3480public static final native int /*long*/ ImmAssociateContext (int /*long*/ hWnd, int /*long*/ hIMC);
3481public static final native int /*long*/ ImmCreateContext ();
3482public static final native boolean ImmDestroyContext (int /*long*/ hIMC);
3483public static final native boolean ImmDisableTextFrameService (int idThread);
3484public static final native boolean ImmGetCompositionFontW (int /*long*/ hIMC, LOGFONTW lplf);
3485public static final native boolean ImmGetCompositionFontA (int /*long*/ hIMC, LOGFONTA lplf);
3486public static final native int ImmGetCompositionStringW (int /*long*/ hIMC, int dwIndex, char [] lpBuf, int dwBufLen);
3487public static final native int ImmGetCompositionStringA (int /*long*/ hIMC, int dwIndex, byte [] lpBuf, int dwBufLen);
3488public static final native int /*long*/ ImmGetContext (int /*long*/ hWnd);
3489public static final native boolean ImmGetConversionStatus (int /*long*/ hIMC, int [] lpfdwConversion, int [] lpfdwSentence);
3490public static final native int /*long*/ ImmGetDefaultIMEWnd (int /*long*/ hWnd);
3491public static final native boolean ImmGetOpenStatus (int /*long*/ hIMC);
3492public static final native boolean ImmReleaseContext (int /*long*/ hWnd, int /*long*/ hIMC);
3493public static final native boolean ImmSetCompositionFontW (int /*long*/ hIMC, LOGFONTW lplf);
3494public static final native boolean ImmSetCompositionFontA (int /*long*/ hIMC, LOGFONTA lplf);
3495public static final native boolean ImmSetCompositionWindow (int /*long*/ hIMC, COMPOSITIONFORM lpCompForm);
3496public static final native boolean ImmSetConversionStatus (int /*long*/ hIMC, int fdwConversion, int dwSentence);
3497public static final native boolean ImmSetOpenStatus (int /*long*/ hIMC, boolean fOpen);
3498public static final native void InitCommonControls ();
3499public static final native boolean InitCommonControlsEx (INITCOMMONCONTROLSEX lpInitCtrls);
3500public static final native boolean InsertMenuW (int /*long*/ hMenu, int uPosition, int uFlags, int /*long*/ uIDNewItem, char [] lpNewItem);
3501public static final native boolean InsertMenuA (int /*long*/ hMenu, int uPosition, int uFlags, int /*long*/ uIDNewItem, byte [] lpNewItem);
3502public static final native boolean InsertMenuItemW (int /*long*/ hMenu, int uItem, boolean fByPosition, MENUITEMINFO lpmii);
3503public static final native boolean InsertMenuItemA (int /*long*/ hMenu, int uItem, boolean fByPosition, MENUITEMINFO lpmii);
3504public static final native boolean InternetSetOption (int /*long*/ hInternet, int dwOption, int /*long*/ lpBuffer, int dwBufferLength);
3505public static final native int IntersectClipRect (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
3506public static final native boolean IntersectRect (RECT lprcDst, RECT lprcSrc1, RECT lprcSrc2);
3507public static final native boolean InvalidateRect (int /*long*/ hWnd, RECT lpRect, boolean bErase);
3508public static final native boolean InvalidateRgn (int /*long*/ hWnd, int /*long*/ hRgn, boolean bErase);
3509public static final native boolean IsAppThemed ();
3510public static final native boolean IsBadReadPtr (int /*long*/ lp, int ucb);
3511public static final native boolean IsBadWritePtr (int /*long*/ lp, int ucb);
3512public static final native boolean IsDBCSLeadByte (byte TestChar);
3513public static final native boolean IsHungAppWindow (int /*long*/ hWnd);
3514public static final native boolean IsIconic (int /*long*/ hWnd);
3515public static final native boolean IsPPC ();
3516public static final native boolean IsSP ();
3517public static final native boolean IsWindowEnabled (int /*long*/ hWnd);
3518public static final native boolean IsWindowVisible (int /*long*/ hWnd);
3519public static final native boolean IsZoomed (int /*long*/ hWnd);
3520public static final native boolean KillTimer (int /*long*/ hWnd, int /*long*/ uIDEvent);
3521public static final native boolean LineTo (int /*long*/ hdc, int x1, int x2);
3522public static final native int /*long*/ LoadBitmapW (int /*long*/ hInstance, int /*long*/ lpBitmapName);
3523public static final native int /*long*/ LoadBitmapA (int /*long*/ hInstance, int /*long*/ lpBitmapName);
3524public static final native int /*long*/ LoadCursorW (int /*long*/ hInstance, int /*long*/ lpCursorName);
3525public static final native int /*long*/ LoadCursorA (int /*long*/ hInstance, int /*long*/ lpCursorName);
3526public static final native int /*long*/ LoadIconW (int /*long*/ hInstance, int /*long*/ lpIconName);
3527public static final native int /*long*/ LoadIconA (int /*long*/ hInstance, int /*long*/ lpIconName);
3528public static final native int /*long*/ LoadImageW (int /*long*/ hinst, char [] lpszName, int uType, int cxDesired, int cyDesired, int fuLoad);
3529public static final native int /*long*/ LoadImageA (int /*long*/ hinst, byte [] lpszName, int uType, int cxDesired, int cyDesired, int fuLoad);
3530public static final native int /*long*/ LoadImageW (int /*long*/ hinst, int /*long*/ lpszName, int uType, int cxDesired, int cyDesired, int fuLoad);
3531public static final native int /*long*/ LoadImageA (int /*long*/ hinst, int /*long*/ lpszName, int uType, int cxDesired, int cyDesired, int fuLoad);
3532public static final native int LoadStringW (int /*long*/ hinst, int uID, char [] lpBuffer, int nBufferMax);
3533public static final native int LoadStringA (int /*long*/ hinst, int uID, byte [] lpBuffer, int nBufferMax);
3534public static final native int /*long*/ LoadLibraryW (char [] lpLibFileName);
3535public static final native int /*long*/ LoadLibraryA (byte [] lpLibFileName);
3536public static final native int /*long*/ LocalFree (int /*long*/ hMem);
3537public static final native boolean LockWindowUpdate (int /*long*/ hWndLock);
3538public static final native int MapVirtualKeyW (int uCode, int uMapType);
3539public static final native int MapVirtualKeyA (int uCode, int uMapType);
3540public static final native int MapWindowPoints (int /*long*/ hWndFrom, int /*long*/ hWndTo, POINT lpPoints, int cPoints);
3541public static final native int MapWindowPoints (int /*long*/ hWndFrom, int /*long*/ hWndTo, RECT lpPoints, int cPoints);
3542public static final native boolean MCIWndRegisterClass ();
3543public static final native boolean MessageBeep (int uType);
3544public static final native int MessageBoxW (int /*long*/ hWnd, char [] lpText, char [] lpCaption, int uType);
3545public static final native int MessageBoxA (int /*long*/ hWnd, byte [] lpText, byte [] lpCaption, int uType);
3546public static final native int /*long*/ MonitorFromWindow (int /*long*/ hwnd, int dwFlags);
3547public static final native void MoveMemory (char[] Destination, int /*long*/ SourcePtr, int Length);
3548public static final native void MoveMemory (byte [] Destination, int /*long*/ Source, int Length);
3549public static final native void MoveMemory (byte [] Destination, ACCEL Source, int Length);
3550public static final native void MoveMemory (byte [] Destination, BITMAPINFOHEADER Source, int Length);
3551public static final native void MoveMemory (int [] Destination, int /*long*/ Source, int Length);
3552public static final native void MoveMemory (long [] Destination, int /*long*/ SourcePtr, int Length);
3553public static final native void MoveMemory (double[] Destination, int /*long*/ SourcePtr, int Length);
3554public static final native void MoveMemory (float[] Destination, int /*long*/ SourcePtr, int Length);
3555public static final native void MoveMemory (short[] Destination, int /*long*/ SourcePtr, int Length);
3556public static final native void MoveMemory (int /*long*/ Destination, byte [] Source, int Length);
3557public static final native void MoveMemory (int /*long*/ Destination, char [] Source, int Length);
3558public static final native void MoveMemory (int /*long*/ Destination, int [] Source, int Length);
3559public static final native void MoveMemory (int /*long*/ Destination, GRADIENT_RECT Source, int Length);
3560public static final native void MoveMemory (int /*long*/ Destination, LOGFONTW Source, int Length);
3561public static final native void MoveMemory (int /*long*/ Destination, LOGFONTA Source, int Length);
3562public static final native void MoveMemory (int /*long*/ Destination, MEASUREITEMSTRUCT Source, int Length);
3563public static final native void MoveMemory (int /*long*/ Destination, MINMAXINFO Source, int Length);
3564public static final native void MoveMemory (int /*long*/ Destination, MSG Source, int Length);
3565public static final native void MoveMemory (int /*long*/ Destination, UDACCEL Source, int Length);
3566public static final native void MoveMemory (int /*long*/ Destination, NMTTDISPINFOW Source, int Length);
3567public static final native void MoveMemory (int /*long*/ Destination, NMTTDISPINFOA Source, int Length);
3568public static final native void MoveMemory (int /*long*/ Destination, OPENFILENAME Source, int Length);
3569public static final native void MoveMemory (int /*long*/ Destination, RECT Source, int Length);
3570public static final native void MoveMemory (int /*long*/ Destination, TRIVERTEX Source, int Length);
3571public static final native void MoveMemory (int /*long*/ Destination, WINDOWPOS Source, int Length);
3572public static final native void MoveMemory (BITMAPINFOHEADER Destination, byte [] Source, int Length);
3573public static final native void MoveMemory (DRAWITEMSTRUCT Destination, int /*long*/ Source, int Length);
3574public static final native void MoveMemory (EXTLOGPEN Destination, int /*long*/ Source, int Length);
3575public static final native void MoveMemory (HDITEM Destination, int /*long*/ Source, int Length);
3576public static final native void MoveMemory (HELPINFO Destination, int /*long*/ Source, int Length);
3577public static final native void MoveMemory (LOGFONTW Destination, int /*long*/ Source, int Length);
3578public static final native void MoveMemory (LOGFONTA Destination, int /*long*/ Source, int Length);
3579public static final native void MoveMemory (MEASUREITEMSTRUCT Destination, int /*long*/ Source, int Length);
3580public static final native void MoveMemory (MINMAXINFO Destination, int /*long*/ Source, int Length);
3581public static final native void MoveMemory (OFNOTIFY Destination, int /*long*/ Source, int Length);
3582public static final native void MoveMemory (OPENFILENAME Destination, int /*long*/ Source, int Length);
3583public static final native void MoveMemory (POINT Destination, int /*long*/ Source, int Length);
3584public static final native void MoveMemory (NMHDR Destination, int /*long*/ Source, int Length);
3585public static final native void MoveMemory (NMRGINFO Destination, int /*long*/ Source, int Length);
3586public static final native void MoveMemory (NMCUSTOMDRAW Destination, int /*long*/ Source, int Length);
3587public static final native void MoveMemory (NMLVCUSTOMDRAW Destination, int /*long*/ Source, int Length);
3588public static final native void MoveMemory (NMTBHOTITEM Destination, int /*long*/ Source, int Length);
3589public static final native void MoveMemory (NMTVCUSTOMDRAW Destination, int /*long*/ Source, int Length);
3590public static final native void MoveMemory (NMTVITEMCHANGE Destination, int /*long*/ Source, int Length);
3591public static final native void MoveMemory (NMUPDOWN Destination, int /*long*/ Source, int Length);
3592public static final native void MoveMemory (int /*long*/ Destination, NMLVCUSTOMDRAW Source, int Length);
3593public static final native void MoveMemory (int /*long*/ Destination, NMTVCUSTOMDRAW Source, int Length);
3594public static final native void MoveMemory (int /*long*/ Destination, NMLVDISPINFO Source, int Length);
3595public static final native void MoveMemory (int /*long*/ Destination, NMTVDISPINFO Source, int Length);
3596public static final native void MoveMemory (NMLVDISPINFO Destination, int /*long*/ Source, int Length);
3597public static final native void MoveMemory (NMTVDISPINFO Destination, int /*long*/ Source, int Length);
3598public static final native void MoveMemory (NMLVFINDITEM Destination, int /*long*/ Source, int Length);
3599public static final native void MoveMemory (NMLVODSTATECHANGE Destination, int /*long*/ Source, int Length);
3600public static final native void MoveMemory (NMHEADER Destination, int /*long*/ Source, int Length);
3601public static final native void MoveMemory (NMLINK Destination, int /*long*/ Source, int Length);
3602public static final native void MoveMemory (NMLISTVIEW Destination, int /*long*/ Source, int Length);
3603public static final native void MoveMemory (NMREBARCHILDSIZE Destination, int /*long*/ Source, int Length);
3604public static final native void MoveMemory (NMREBARCHEVRON Destination, int /*long*/ Source, int Length);
3605public static final native void MoveMemory (NMTOOLBAR Destination, int /*long*/ Source, int Length);
3606public static final native void MoveMemory (NMTTDISPINFOW Destination, int /*long*/ Source, int Length);
3607public static final native void MoveMemory (NMTTDISPINFOA Destination, int /*long*/ Source, int Length);
3608public static final native void MoveMemory (RECT Destination, int /*long*/[] Source, int Length);
3609public static final native void MoveMemory (TEXTMETRICW Destination, int /*long*/ Source, int Length);
3610public static final native void MoveMemory (TEXTMETRICA Destination, int /*long*/ Source, int Length);
3611public static final native void MoveMemory (TVITEM Destination, int /*long*/ Source, int Length);
3612public static final native void MoveMemory (WINDOWPOS Destination, int /*long*/ Source, int Length);
3613public static final native void MoveMemory (MSG Destination, int /*long*/ Source, int Length);
3614public static final native void MoveMemory (UDACCEL Destination, int /*long*/ Source, int Length);
3615public static final native void MoveMemory (int /*long*/ Destination, DROPFILES Source, int Length);
3616public static final native void MoveMemory (int /*long*/ DestinationPtr, double[] Source, int Length);
3617public static final native void MoveMemory (int /*long*/ DestinationPtr, float[] Source, int Length);
3618public static final native void MoveMemory (int /*long*/ DestinationPtr, long[] Source, int Length);
3619public static final native void MoveMemory (int /*long*/ DestinationPtr, short[] Source, int Length);
3620public static final native void MoveMemory (SCRIPT_ITEM Destination, int /*long*/ SourcePtr, int Length);
3621public static final native void MoveMemory (SCRIPT_LOGATTR Destination, int /*long*/ SourcePtr, int Length);
3622public static final native void MoveMemory (SCRIPT_PROPERTIES Destination, int /*long*/ SourcePtr, int Length);
3623public static final native void MoveMemory (int /*long*/ Destination, KEYBDINPUT Source, int Length);
3624public static final native void MoveMemory (int /*long*/ Destination, MOUSEINPUT Source, int Length);
3625public static final native boolean MoveToEx (int /*long*/ hdc, int x1, int x2, int /*long*/ lPoint);
3626public static final native int MsgWaitForMultipleObjectsEx (int nCount, int /*long*/ pHandles, int dwMilliseconds, int dwWakeMask, int dwFlags);
3627public static final native int MultiByteToWideChar (int CodePage, int dwFlags, byte [] lpMultiByteStr, int cchMultiByte, char [] lpWideCharStr, int cchWideChar);
3628public static final native int MultiByteToWideChar (int CodePage, int dwFlags, int /*long*/ lpMultiByteStr, int cchMultiByte, char [] lpWideCharStr, int cchWideChar);
3629public static final native void NotifyWinEvent (int event, int /*long*/ hwnd, int idObject, int idChild);
3630public static final native boolean OffsetRect (RECT lprc, int dx, int dy);
3631public static final native int OffsetRgn (int /*long*/ hrgn, int nXOffset, int nYOffset);
3632public static final native int OleInitialize (int /*long*/ pvReserved);
3633public static final native void OleUninitialize ();
3634public static final native boolean OpenClipboard (int /*long*/ hWndNewOwner);
3635public static final native int /*long*/ OpenThemeData (int /*long*/ hwnd, char[] pszClassList);
3636public static final native boolean PatBlt (int /*long*/ hdc, int x1, int x2, int w, int h, int rop);
3637public static final native boolean PeekMessageW (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg);
3638public static final native boolean PeekMessageA (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg);
3639public static final native boolean Pie (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nXStartArc, int nYStartArc, int nXEndArc, int nYEndArc);
3640public static final native boolean Polygon (int /*long*/ hdc, int [] points, int nPoints);
3641public static final native boolean Polyline (int /*long*/ hdc, int[] points, int nPoints);
3642public static final native boolean PostMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3643public static final native boolean PostMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3644public static final native boolean PostThreadMessageW (int idThread, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3645public static final native boolean PostThreadMessageA (int idThread, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3646public static final native short PRIMARYLANGID (short lgid);
3647public static final native boolean PrintDlgW (PRINTDLG lppd);
3648public static final native boolean PrintDlgA (PRINTDLG lppd);
3649public static final native boolean PrintWindow (int /*long*/ hwnd, int /*long*/ hdcBlt, int nFlags);
3650public static final native boolean PtInRect (RECT rect, POINT pt);
3651public static final native boolean PtInRegion (int /*long*/ hrgn, int X, int Y);
3652public static final native int RealizePalette (int /*long*/ hDC);
3653public static final native boolean Rectangle (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
3654public static final native boolean RectInRegion (int /*long*/ hrgn, RECT lprc);
3655public static final native boolean RedrawWindow (int /*long*/ hWnd, RECT lprcUpdate, int /*long*/ hrgnUpdate, int flags);
3656public static final native int RegCloseKey (int /*long*/ hKey);
3657public static final native int RegEnumKeyExW (int /*long*/ hKey, int dwIndex, char [] lpName, int [] lpcName, int [] lpReserved, char [] lpClass, int [] lpcClass, FILETIME lpftLastWriteTime);
3658public static final native int RegEnumKeyExA (int /*long*/ hKey, int dwIndex, byte [] lpName, int [] lpcName, int [] lpReserved, byte [] lpClass, int [] lpcClass, FILETIME lpftLastWriteTime);
3659public static final native int RegisterClassW (WNDCLASS lpWndClass);
3660public static final native int RegisterClassA (WNDCLASS lpWndClass);
3661public static final native int RegisterWindowMessageW (char [] lpString);
3662public static final native int RegisterWindowMessageA (byte [] lpString);
3663public static final native int RegisterClipboardFormatA (byte[] lpszFormat);
3664public static final native int RegisterClipboardFormatW (char[] lpszFormat);
3665public static final native int RegOpenKeyExW (int /*long*/ hKey, char[] lpSubKey, int ulOptions, int samDesired, int /*long*/[] phkResult);
3666public static final native int RegOpenKeyExA (int /*long*/ hKey, byte[] lpSubKey, int ulOptions, int samDesired, int /*long*/[] phkResult);
3667public static final native int RegQueryInfoKeyW (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);
3668public static final native int RegQueryInfoKeyA (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);
3669public static final native int RegQueryValueExW (int /*long*/ hKey, char[] lpValueName, int /*long*/ lpReserved, int[] lpType, char [] lpData, int[] lpcbData);
3670public static final native int RegQueryValueExW (int /*long*/ hKey, char[] lpValueName, int /*long*/ lpReserved, int[] lpType, int [] lpData, int[] lpcbData);
3671public static final native int RegQueryValueExA (int /*long*/ hKey, byte[] lpValueName, int /*long*/ lpReserved, int[] lpType, byte [] lpData, int[] lpcbData);
3672public static final native int RegQueryValueExA (int /*long*/ hKey, byte[] lpValueName, int /*long*/ lpReserved, int[] lpType, int [] lpData, int[] lpcbData);
3673public static final native boolean ReleaseCapture ();
3674public static final native int ReleaseDC (int /*long*/ hWnd, int /*long*/ hDC);
3675public static final native boolean RemoveMenu (int /*long*/ hMenu, int uPosition, int uFlags);
3676public static final native int /*long*/ RemovePropA (int /*long*/ hWnd, int /*long*/ lpString);
3677public static final native int /*long*/ RemovePropW (int /*long*/ hWnd, int /*long*/ lpString);
3678public static final native boolean RestoreDC (int /*long*/ hdc, int nSavedDC);
3679public static final native boolean RoundRect (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nWidth, int nHeight);
3680public static final native int SaveDC (int /*long*/ hdc);
3681public static final native boolean ScreenToClient (int /*long*/ hWnd, POINT lpPoint);
3682public static final native int ScriptApplyDigitSubstitution (SCRIPT_DIGITSUBSTITUTE psds, SCRIPT_CONTROL psc, SCRIPT_STATE pss);
3683public static final native int ScriptBreak (char[] pwcChars, int cChars, SCRIPT_ANALYSIS psa, int /*long*/ psla);
3684public static final native int ScriptGetProperties (int /*long*/[] ppSp, int[] piNumScripts);
3685public static final native int ScriptCacheGetHeight (int /*long*/ hdc, int /*long*/ psc, int[] tmHeight);
3686public static final native int ScriptCPtoX (int iCP, boolean fTrailing, int cChars, int cGlyphs, int /*long*/ pwLogClust, int /*long*/ psva, int /*long*/ piAdvance, SCRIPT_ANALYSIS psa, int[] piX);
3687public static final native int ScriptFreeCache (int /*long*/ psc);
3688public static final native int ScriptGetFontProperties (int /*long*/ hdc, int /*long*/ psc, SCRIPT_FONTPROPERTIES sfp);
3689public static final native int ScriptGetLogicalWidths (SCRIPT_ANALYSIS psa, int cChars, int cGlyphs, int /*long*/ piGlyphWidth, int /*long*/ pwLogClust, int /*long*/ psva, int[] piDx);
3690public static final native int ScriptItemize (char[] pwcInChars, int cInChars, int cMaxItems, SCRIPT_CONTROL psControl, SCRIPT_STATE psState, int /*long*/ pItems, int[] pcItems);
3691public static final native int ScriptJustify (int /*long*/ psva, int /*long*/ piAdvance, int cGlyphs, int iDx, int iMinKashida, int /*long*/ piJustify);
3692public static final native int ScriptLayout (int cRuns, byte[] pbLevel, int[] piVisualToLogical, int[] piLogicalToVisual);
3693public static final native int ScriptPlace (int /*long*/ hdc, int /*long*/ psc, int /*long*/ pwGlyphs, int cGlyphs, int /*long*/ psva, SCRIPT_ANALYSIS psa, int /*long*/ piAdvance, int /*long*/ pGoffset, int[] pABC);
3694public static final native int ScriptRecordDigitSubstitution (int Locale, SCRIPT_DIGITSUBSTITUTE psds);
3695public static final native int ScriptShape (int /*long*/ hdc, int /*long*/ psc, char[] pwcChars, int cChars, int cMaxGlyphs, SCRIPT_ANALYSIS psa, int /*long*/ pwOutGlyphs, int /*long*/ pwLogClust, int /*long*/ psva, int[] pcGlyphs);
3696public static final native int ScriptTextOut (int /*long*/ hdc, int /*long*/ psc, int x, int y, int fuOptions, RECT lprc, SCRIPT_ANALYSIS psa, int /*long*/ pwcReserved, int iReserved, int /*long*/ pwGlyphs, int cGlyphs, int /*long*/ piAdvance, int /*long*/ piJustify, int /*long*/ pGoffset);
3697public static final native int ScriptXtoCP (int iX, int cChars, int cGlyphs, int /*long*/ pwLogClust, int /*long*/ psva, int /*long*/ piAdvance, SCRIPT_ANALYSIS psa, int[] piCP, int[] piTrailing);
3698public static final native int ScrollWindowEx (int /*long*/ hWnd, int dx, int dy, RECT prcScroll, RECT prcClip, int /*long*/ hrgnUpdate, RECT prcUpdate, int flags);
3699public static final native int SelectClipRgn (int /*long*/ hdc, int /*long*/ hrgn);
3700public static final native int /*long*/ SelectObject (int /*long*/ hDC, int /*long*/ HGDIObj);
3701public static final native int /*long*/ SelectPalette (int /*long*/ hDC, int /*long*/ hpal, boolean bForceBackground);
3702public static final native int SendInput (int nInputs, int /*long*/ pInputs, int cbSize);
3703public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int [] wParam, int [] lParam);
3704public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ [] wParam, int /*long*/ lParam);
3705public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, char [] lParam);
3706public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int [] lParam);
3707public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, short [] lParam);
3708public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3709public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVCOLUMN lParam);
3710public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVHITTESTINFO lParam);
3711public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LITEM lParam);
3712public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVITEM lParam);
3713public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, MARGINS lParam);
3714public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, POINT lParam);
3715public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, REBARBANDINFO lParam);
3716public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, RECT lParam);
3717public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SYSTEMTIME lParam);
3718public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTON lParam);
3719public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTONINFO lParam);
3720public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCITEM lParam);
3721public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TOOLINFO lParam);
3722public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVHITTESTINFO lParam);
3723public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVINSERTSTRUCT lParam);
3724public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVITEM lParam);
3725public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVSORTCB lParam);
3726public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, UDACCEL lParam);
3727public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDHITTESTINFO lParam);
3728public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDITEM lParam);
3729public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDLAYOUT lParam);
3730public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, BUTTON_IMAGELIST lParam);
3731public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SIZE lParam);
3732public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int [] wParam, int [] lParam);
3733public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ [] wParam, int /*long*/ lParam);
3734public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, byte [] lParam);
3735public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int [] lParam);
3736public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, short [] lParam);
3737public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, char [] lParam);
3738public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam);
3739public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVCOLUMN lParam);
3740public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVHITTESTINFO lParam);
3741public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LITEM lParam);
3742public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVITEM lParam);
3743public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, MARGINS lParam);
3744public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, POINT lParam);
3745public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, REBARBANDINFO lParam);
3746public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, RECT lParam);
3747public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SYSTEMTIME lParam);
3748public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTON lParam);
3749public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTONINFO lParam);
3750public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCITEM lParam);
3751public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TOOLINFO lParam);
3752public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVHITTESTINFO lParam);
3753public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVINSERTSTRUCT lParam);
3754public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVITEM lParam);
3755public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVSORTCB lParam);
3756public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, UDACCEL lParam);
3757public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDHITTESTINFO lParam);
3758public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDITEM lParam);
3759public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDLAYOUT lParam);
3760public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, BUTTON_IMAGELIST lParam);
3761public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SIZE lParam);
3762public static final native int /*long*/ SetActiveWindow (int /*long*/ hWnd);
3763public static final native int SetBkColor (int /*long*/ hdc, int colorRef);
3764public static final native int SetBkMode (int /*long*/ hdc, int mode);
3765public static final native boolean SetBrushOrgEx (int /*long*/ hdc, int nXOrg, int nYOrg, POINT lppt);
3766public static final native int /*long*/ SetCapture (int /*long*/ hWnd);
3767public static final native boolean SetCaretPos (int X, int Y);
3768public static final native int /*long*/ SetClipboardData (int uFormat, int /*long*/ hMem);
3769public static final native int /*long*/ SetCursor (int /*long*/ hCursor);
3770public static final native boolean SetCursorPos (int X, int Y);
3771public static final native int SetDIBColorTable (int /*long*/ hdc, int uStartIndex, int cEntries, byte[] pColors);
3772public static final native int SetErrorMode (int uMode);
3773public static final native int /*long*/ SetFocus (int /*long*/ hWnd);
3774public static final native boolean SetForegroundWindow (int /*long*/ hWnd);
3775public static final native int SetGraphicsMode (int /*long*/ hdc, int iMode);
3776public static final native boolean SetLayeredWindowAttributes(int /*long*/ hwnd, int crKey, byte bAlpha, int dwFlags);
3777public static final native int SetLayout (int /*long*/ hdc, int dwLayout);
3778public static final native boolean SetMenu (int /*long*/ hWnd, int /*long*/ hMenu);
3779public static final native boolean SetMenuDefaultItem (int /*long*/ hMenu, int uItem, int fByPos);
3780public static final native boolean SetMenuInfo (int /*long*/ hmenu, MENUINFO lpcmi);
3781public static final native boolean SetMenuItemInfoW (int /*long*/ hMenu, int uItem, boolean fByPosition, MENUITEMINFO lpmii);
3782public static final native boolean SetMenuItemInfoA (int /*long*/ hMenu, int uItem, boolean fByPosition, MENUITEMINFO lpmii);
3783public static final native int SetMetaRgn (int /*long*/ hdc);
3784public static final native int SetPaletteEntries (int /*long*/ hPal, int iStart, int cEntries, byte[] lppe);
3785public static final native int /*long*/ SetParent (int /*long*/ hWndChild, int /*long*/ hWndNewParent);
3786public static final native int SetPixel (int /*long*/ hdc, int X, int Y, int crColor);
3787public static final native int SetPolyFillMode (int /*long*/ hdc, int iPolyFillMode);
3788public static final native boolean SetProcessDPIAware ();
3789public static final native boolean SetRect (RECT lprc, int xLeft, int yTop, int xRight, int yBottom);
3790public static final native boolean SetRectRgn (int /*long*/ hrgn, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
3791public static final native int SetROP2 (int /*long*/ hdc, int fnDrawMode);
3792public static final native boolean SetScrollInfo (int /*long*/ hwnd, int flags, SCROLLINFO info, boolean fRedraw);
3793public static final native int SetStretchBltMode (int /*long*/ hdc, int iStretchMode);
3794public static final native boolean SetPropW (int /*long*/ hWnd, int /*long*/ lpString, int /*long*/ hData);
3795public static final native boolean SetPropA (int /*long*/ hWnd, int /*long*/ lpString, int /*long*/ hData);
3796public static final native int SetTextAlign (int /*long*/ hdc, int fMode);
3797public static final native int SetTextColor (int /*long*/ hdc, int colorRef);
3798public static final native int /*long*/ SetTimer (int /*long*/ hWnd, int /*long*/ nIDEvent, int Elapse, int /*long*/ lpTimerFunc);
3799public static final native int SetWindowLongW (int /*long*/ hWnd, int nIndex, int dwNewLong);
3800public static final native int SetWindowLongA (int /*long*/ hWnd, int nIndex, int dwNewLong);
3801public static final native int /*long*/ SetWindowLongPtrW (int /*long*/ hWnd, int nIndex, int /*long*/ dwNewLong);
3802public static final native int /*long*/ SetWindowLongPtrA (int /*long*/ hWnd, int nIndex, int /*long*/ dwNewLong);
3803public static final native boolean SetWindowOrgEx (int /*long*/ hdc, int X, int Y, POINT lpPoint);
3804public static final native boolean SetWindowPlacement (int /*long*/ hWnd, WINDOWPLACEMENT lpwndpl);
3805public static final native boolean SetWindowPos(int /*long*/ hWnd, int /*long*/ hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags);
3806public static final native int SetWindowRgn (int /*long*/ hWnd, int /*long*/ hRgn, boolean bRedraw);
3807public static final native boolean SetWindowTextW (int /*long*/ hWnd, char [] lpString);
3808public static final native boolean SetWindowTextA (int /*long*/ hWnd, byte [] lpString);
3809public static final native int SetWindowTheme (int /*long*/ hwnd, char [] pszSubAppName, char [] pszSubIdList);
3810public static final native int /*long*/ SetWindowsHookExW (int idHook, int /*long*/ lpfn, int /*long*/ hMod, int dwThreadId);
3811public static final native int /*long*/ SetWindowsHookExA (int idHook, int /*long*/ lpfn, int /*long*/ hMod, int dwThreadId);
3812public static final native boolean SetWorldTransform(int /*long*/ hdc, float[] lpXform);
3813public static final native int /*long*/ SHBrowseForFolderW (BROWSEINFO lpbi);
3814public static final native int /*long*/ SHBrowseForFolderA (BROWSEINFO lpbi);
3815public static final native boolean SHCreateMenuBar (SHMENUBARINFO pmb);
3816public static final native int /*long*/ SHGetFileInfoW (char [] pszPath, int dwFileAttributes, SHFILEINFOW psfi, int cbFileInfo, int uFlags);
3817public static final native int /*long*/ SHGetFileInfoA (byte [] pszPath, int dwFileAttributes, SHFILEINFOA psfi, int cbFileInfo, int uFlags);
3818public static final native boolean SHHandleWMSettingChange (int /*long*/ hwnd, int /*long*/ wParam, int /*long*/ lParam, SHACTIVATEINFO psai);
3819public static final native int SHRecognizeGesture (SHRGINFO shrg);
3820public static final native void SHSendBackToFocusWindow (int uMsg, int /*long*/ wp, int /*long*/ lp);
3821public static final native boolean SHSipPreference (int /*long*/ hwnd, int st);
3822public static final native boolean ShellExecuteExW (SHELLEXECUTEINFO lpExecInfo);
3823public static final native boolean ShellExecuteExA (SHELLEXECUTEINFO lpExecInfo);
3824public static final native boolean Shell_NotifyIconA (int dwMessage, NOTIFYICONDATAA lpData);
3825public static final native boolean Shell_NotifyIconW (int dwMessage, NOTIFYICONDATAW lpData);
3826public static final native int SHGetMalloc (int /*long*/ [] ppMalloc);
3827public static final native boolean SHGetPathFromIDListW (int /*long*/ pidl, char [] pszPath);
3828public static final native boolean SHGetPathFromIDListA (int /*long*/ pidl, byte [] pszPath);
3829public static final native boolean SHSetAppKeyWndAssoc (byte bVk, int /*long*/ hwnd);
3830public static final native boolean ShowCaret (int /*long*/ hWnd);
3831public static final native boolean ShowOwnedPopups (int /*long*/ hWnd, boolean fShow);
3832public static final native boolean ShowScrollBar (int /*long*/ hWnd, int wBar, boolean bShow);
3833public static final native boolean ShowWindow (int /*long*/ hWnd, int nCmdShow);
3834public static final native boolean SipGetInfo (SIPINFO pSipInfo);
3835public static final native int StartDocW (int /*long*/ hdc, DOCINFO lpdi);
3836public static final native int StartDocA (int /*long*/ hdc, DOCINFO lpdi);
3837public static final native int StartPage (int /*long*/ hdc);
3838public static final native boolean StretchBlt (int /*long*/ hdcDest, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest, int /*long*/ hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, int dwRop);
3839public static final native boolean StrokePath (int /*long*/ hdc);
3840public static final native boolean SystemParametersInfoW (int uiAction, int uiParam, HIGHCONTRAST pvParam, int fWinIni);
3841public static final native boolean SystemParametersInfoA (int uiAction, int uiParam, HIGHCONTRAST pvParam, int fWinIni);
3842public static final native boolean SystemParametersInfoW (int uiAction, int uiParam, RECT pvParam, int fWinIni);
3843public static final native boolean SystemParametersInfoA (int uiAction, int uiParam, RECT pvParam, int fWinIni);
3844public static final native boolean SystemParametersInfoW (int uiAction, int uiParam, NONCLIENTMETRICSW pvParam, int fWinIni);
3845public static final native boolean SystemParametersInfoA (int uiAction, int uiParam, NONCLIENTMETRICSA pvParam, int fWinIni);
3846public static final native boolean SystemParametersInfoW (int uiAction, int uiParam, int [] pvParam, int fWinIni);
3847public static final native boolean SystemParametersInfoA (int uiAction, int uiParam, int [] pvParam, int fWinIni);
3848public static final native int ToAscii (int uVirtKey, int uScanCode, byte [] lpKeyState, short [] lpChar, int uFlags);
3849public static final native int ToUnicode (int wVirtKey, int wScanCode, byte [] lpKeyState, char [] pwszBuff, int cchBuff, int wFlags);
3850public static final native boolean TrackMouseEvent (TRACKMOUSEEVENT lpEventTrack);
3851public static final native boolean TrackPopupMenu (int /*long*/ hMenu, int uFlags, int x, int y, int nReserved, int /*long*/ hWnd, RECT prcRect);
3852public static final native int TranslateAcceleratorW (int /*long*/ hWnd, int /*long*/ hAccTable, MSG lpMsg);
3853public static final native int TranslateAcceleratorA (int /*long*/ hWnd, int /*long*/ hAccTable, MSG lpMsg);
3854public static final native boolean TranslateCharsetInfo (int /*long*/ lpSrc, int [] lpCs, int dwFlags);
3855public static final native boolean TranslateMDISysAccel (int /*long*/ hWndClient, MSG lpMsg);
3856public static final native boolean TranslateMessage (MSG lpmsg);
3857public static final native boolean TransparentBlt (int /*long*/ hdcDest, int nXOriginDest, int nYOriginDest, int nWidthDest, int hHeightDest, int /*long*/ hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, int crTransparent);
3858public static final native boolean TransparentImage (int /*long*/ hdcDest, int DstX, int DstY, int DstCx, int DstCy,int /*long*/ hSrc, int SrcX, int SrcY, int SrcCx, int SrcCy, int TransparentColor);
3859public static final native boolean UnhookWindowsHookEx (int /*long*/ hhk);
3860public static final native boolean UnregisterClassW (char [] lpClassName, int /*long*/ hInstance);
3861public static final native boolean UnregisterClassA (byte [] lpClassName, int /*long*/ hInstance);
3862public static final native boolean UpdateWindow (int /*long*/ hWnd);
3863public static final native boolean ValidateRect (int /*long*/ hWnd, RECT lpRect);
3864public static final native short VkKeyScanW (short ch);
3865public static final native short VkKeyScanA (short ch);
3866
3867public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl);
3868
3869public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, int arg0);
3870public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, long arg0);
3871
3872public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, int arg0, int arg1, int arg2, int[] arg3);
3873public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, long arg0, long arg1, int arg2, long[] arg3);
3874public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, int arg0, long arg1, int arg2, long[] arg3);
3875public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, long arg0, int arg1, int arg2, long[] arg3);
3876
3877public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, char[] arg0, int arg1, int arg2, int[] arg3, int[] arg4);
3878
3879public static final native boolean WaitMessage ();
3880public static final native int WideCharToMultiByte (int CodePage, int dwFlags, char [] lpWideCharStr, int cchWideChar, byte [] lpMultiByteStr, int cchMultiByte, byte [] lpDefaultChar, boolean [] lpUsedDefaultChar);
3881public static final native int WideCharToMultiByte (int CodePage, int dwFlags, char [] lpWideCharStr, int cchWideChar, int /*long*/ lpMultiByteStr, int cchMultiByte, byte [] lpDefaultChar, boolean [] lpUsedDefaultChar);
3882public static final native int /*long*/ WindowFromDC (int /*long*/ hDC);
3883public static final native int /*long*/ WindowFromPoint (POINT lpPoint);
3884public static final native int wcslen (int /*long*/ string);
3885}
3886
Popular Tags