Mercurial > projects > dwt-win
annotate dwt/internal/win32/OS.d @ 167:49d8d2e0faba
merge
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 21 Feb 2008 17:55:01 +0100 |
parents | dc6fc0d3f303 07ed83d51a19 |
children | 52c185ec49e8 |
rev | line source |
---|---|
19 | 1 /******************************************************************************* |
3 | 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 | |
23 | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | |
3 | 12 *******************************************************************************/ |
13 module dwt.internal.win32.OS; | |
14 | |
15 public import dwt.internal.win32.WINTYPES; | |
16 private import dwt.internal.win32.WINAPI; | |
15 | 17 alias dwt.internal.win32.WINAPI WINAPI; |
3 | 18 |
19 import dwt.internal.C; | |
20 import dwt.internal.Library; | |
79 | 21 import tango.sys.SharedLib : SharedLib; |
94 | 22 static import tango.stdc.stdlib; |
23 | |
106
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
24 import tango.stdc.string : memset; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
25 import tango.stdc.stringz : toString16z; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
26 import tango.text.convert.Utf : toString16; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
27 import tango.io.FilePath; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
28 static import tango.io.TempFile; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
29 import tango.io.File; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
30 |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
31 |
79 | 32 import tango.util.log.Trace; |
121
e3b3f0fc0c7b
Fix removing the temp file and use the conduit from tango.io.Tempfile. Thanks doob for investigating here.
Frank Benoit <benoit@tionex.de>
parents:
108
diff
changeset
|
33 import tango.io.Console; |
91 | 34 void trace(int line ){ |
94 | 35 //Trace.formatln( "OS {}", line ); |
91 | 36 } |
30 | 37 |
38 // declare of Callback functions | |
39 extern (Windows) | |
40 { | |
41 alias int function() Function0; | |
42 alias int function(void*) Function1; | |
43 alias int function(void*, int) Function2; | |
44 alias int function(void*, int, int) Function3; | |
45 alias int function(void*, int, int, int) Function4; | |
46 alias int function(void*, int, int, int, int) Function5; | |
47 alias int function(void*, int, int, int, int, int) Function6; | |
48 alias int function(void*, int, int, int, int, int, int) Function7; | |
49 alias int function(void*, int, int, int, int, int, int, int) Function8; | |
50 alias int function(void*, int, int, int, int, int, int, int, int) Function9; | |
51 } | |
52 | |
53 | |
77 | 54 /* |
55 Compile time versions | |
56 ANSI | |
57 WinCE | |
58 | |
59 OS.IsUnicode | |
60 OS.IsWinCE | |
61 | |
62 OS.IsHPC | |
63 | |
64 OS.IsSP | |
65 OS.IsPPC | |
66 OS.IsWin95 | |
67 OS.IsWinNT | |
68 | |
69 */ | |
70 | |
108
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
71 public class LDWTRESULT { |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
72 public int value; |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
73 // initalize ONE and ZERO in static OS.this(); |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
74 public static LDWTRESULT ONE; |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
75 public static LDWTRESULT ZERO; |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
76 public this (int value) { this.value = value; } |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
77 } |
30 | 78 |
79 | |
3 | 80 public class OS : C { |
15 | 81 |
79 | 82 struct Symbol { |
83 char[] name; | |
84 void** symbol; | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
85 int major; |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
86 int minor; |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
87 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
88 static void loadLib( Symbol[] symbols, char[] libname ){ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
89 if (auto lib = SharedLib.load(libname)) { |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
90 foreach( inout s; symbols ){ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
91 if( OS.WIN32_VERSION >= OS.VERSION( s.major, s.minor )){ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
92 *s.symbol = lib.getSymbol( s.name.ptr ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
93 if( s.symbol is null ){ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
94 Trace.formatln( "{}: Symbol '{}' not found", libname, s.name ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
95 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
96 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
97 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
98 } else { |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
99 Trace.formatln( "Could not load the library {}", libname ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
100 } |
79 | 101 } |
102 | |
37 | 103 public static HINSTANCE GetLibraryHandle(){ |
104 //PORTING_FIXME: GetLibraryHandle | |
105 // is the hInstance of the DLL or null, if not a DLL. | |
106 // At the moment DWT is statically linked but this needs to be fixed | |
107 return null; | |
108 } | |
109 | |
78 | 110 // macro from winnt.h |
111 public static int PRIMARYLANGID( int lgid ){ | |
112 return lgid & 0x3FF; | |
113 } | |
37 | 114 |
15 | 115 private static int getNOTIFYICONDATAA_V2_SIZE (){ |
116 // hm, NOTIFYICONDATAA.dwInfoFlags.offsetof did not compile | |
117 return IsWinCE ? NOTIFYICONDATAA.sizeof : cast(int)(&(cast(NOTIFYICONDATAA*)null).dwInfoFlags) + int.sizeof; | |
118 } | |
119 | |
120 private static int getNOTIFYICONDATAW_V2_SIZE (){ | |
121 return IsWinCE ? NOTIFYICONDATAW.sizeof : cast(int)(&(cast(NOTIFYICONDATAW*)null).dwInfoFlags) + int.sizeof; | |
122 } | |
123 | |
3 | 124 /* |
125 * DWT Windows flags | |
126 */ | |
127 public static BOOL IsWin32s; | |
128 public static BOOL IsWin95; | |
129 public static BOOL IsWinNT; | |
130 | |
77 | 131 version(WinCE) { |
3 | 132 public const static BOOL IsWinCE = true; |
77 | 133 public static const BOOL IsHPC = false; //todo |
134 } | |
135 else { | |
3 | 136 public const static BOOL IsWinCE = false; |
77 | 137 public static const BOOL IsHPC = false; |
3 | 138 } |
139 | |
77 | 140 public static const BOOL IsPPC = false; |
39 | 141 |
142 // PORTING_FIXME, is it Windows WFSP? | |
77 | 143 public static const BOOL IsSP = false; |
39 | 144 |
3 | 145 public static const BOOL IsDBLocale; |
146 | |
147 version(ANSI) { | |
148 public const BOOL IsUnicode = false; | |
149 }else{ | |
150 public const BOOL IsUnicode = true; | |
151 } | |
152 | |
153 public static const int WIN32_MAJOR, WIN32_MINOR, WIN32_VERSION; | |
154 public static const int COMCTL32_MAJOR, COMCTL32_MINOR, COMCTL32_VERSION; | |
155 public static const int SHELL32_MAJOR, SHELL32_MINOR, SHELL32_VERSION; | |
156 | |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
157 public static const char[] NO_MANIFEST = "dwt.internal.win32.OS.NO_MANIFEST"; |
3 | 158 |
159 | |
160 /* | |
161 * Flags for Window API GetVersionEx() | |
162 */ | |
163 public static const int VER_PLATFORM_WIN32s = 0; | |
164 public static const int VER_PLATFORM_WIN32_WINDOWS = 1; | |
165 public static const int VER_PLATFORM_WIN32_NT = 2; | |
166 public static const int VER_PLATFORM_WIN32_CE = 3; | |
19 | 167 |
3 | 168 /* Forward references */ |
169 public static const int HEAP_ZERO_MEMORY = 0x8; | |
170 public static const int ACTCTX_FLAG_RESOURCE_NAME_VALID = 0x00000008; | |
171 public static const int ACTCTX_FLAG_SET_PROCESS_DEFAULT = 0x00000010; | |
172 public static const int MANIFEST_RESOURCE_ID = 2; | |
173 public static const int SM_DBCSENABLED = 0x2A; | |
174 public static const int SM_IMMENABLED = 0x52; | |
175 public static const int LANG_KOREAN = 0x12; | |
176 public static const int MAX_PATH = 260; | |
15 | 177 |
82 | 178 // static this(){ |
179 // NOTIFYICONDATAA_V2_SIZE = getNOTIFYICONDATAA_V2_SIZE (); | |
180 // NOTIFYICONDATAW_V2_SIZE = getNOTIFYICONDATAW_V2_SIZE (); | |
181 // NOTIFYICONDATA_V2_SIZE = IsUnicode ? getNOTIFYICONDATAW_V2_SIZE : getNOTIFYICONDATAA_V2_SIZE; | |
182 // OSVERSIONINFO info; | |
183 // IsWin32s = (info.dwPlatformId is VER_PLATFORM_WIN32s); | |
184 // IsWin95 = (info.dwPlatformId is VER_PLATFORM_WIN32_WINDOWS); | |
185 // IsWinNT = (info.dwPlatformId is VER_PLATFORM_WIN32_NT); | |
186 // //IsSP_ = false; | |
187 // //IsPPC_ = false; | |
188 // //IsHPC = false; | |
189 // IsDBLocale = false; | |
190 // WIN32_MAJOR = info.dwMajorVersion; | |
191 // WIN32_MINOR = info.dwMinorVersion; | |
192 // WIN32_VERSION = VERSION (WIN32_MAJOR, WIN32_MINOR); | |
193 // //IsUnicode = !IsWin32s && !IsWin95; | |
194 // DLLVERSIONINFO dvi; | |
195 // COMCTL32_MAJOR = dvi.dwMajorVersion; | |
196 // COMCTL32_MINOR = dvi.dwMinorVersion; | |
197 // COMCTL32_VERSION = VERSION (COMCTL32_MAJOR, COMCTL32_MINOR); | |
198 // SHELL32_MAJOR = dvi.dwMajorVersion; | |
199 // SHELL32_MINOR = dvi.dwMinorVersion; | |
200 // SHELL32_VERSION = VERSION (SHELL32_MAJOR, SHELL32_MINOR); | |
201 // } | |
202 | |
3 | 203 /* Get the Windows version and the flags */ |
204 public static this() { | |
108
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
205 LDWTRESULT.ONE = new LDWTRESULT(1); |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
206 LDWTRESULT.ZERO = new LDWTRESULT(0); |
3 | 207 /* |
208 * Try the UNICODE version of GetVersionEx first | |
209 * and then the ANSI version. The UNICODE version | |
210 * is present on all versions of Windows but is not | |
211 * implemented on Win95/98/ME. | |
19 | 212 * |
3 | 213 * NOTE: The value of OSVERSIONINFO.sizeof cannot |
214 * be static final because it relies on the Windows | |
215 * platform version to be initialized and IsUnicode | |
216 * has not been calculated. It must be initialized | |
217 * here, after the platform is determined in order | |
218 * for the value to be correct. | |
219 */ | |
220 OSVERSIONINFO info; | |
221 info.dwOSVersionInfoSize = OSVERSIONINFO.sizeof; | |
222 if(!OS.GetVersionEx(&info)){ | |
82 | 223 MessageBoxA(null, "DWT Unicode version applications can't run in a non-Unicode platform !", "Error", MB_OK|MB_ICONERROR); |
224 tango.stdc.stdlib.exit(-1); | |
3 | 225 } |
226 //OSVERSIONINFO info = new OSVERSIONINFOW (); | |
227 //info.dwOSVersionInfoSize = OSVERSIONINFOW.sizeof; | |
228 //if (!OS.GetVersionExW ((OSVERSIONINFOW)info)) { | |
229 // info = new OSVERSIONINFOA (); | |
230 // info.dwOSVersionInfoSize = OSVERSIONINFOA.sizeof; | |
231 // OS.GetVersionExA ((OSVERSIONINFOA)info); | |
232 //} | |
233 //OSVERSIONINFO.sizeof = info.dwOSVersionInfoSize; | |
234 | |
235 IsWin32s = (info.dwPlatformId is VER_PLATFORM_WIN32s); | |
236 IsWin95 = (info.dwPlatformId is VER_PLATFORM_WIN32_WINDOWS); | |
237 IsWinNT = (info.dwPlatformId is VER_PLATFORM_WIN32_NT); | |
82 | 238 //PORTING_CHANGE: made by version |
239 //IsWinCE = (info.dwPlatformId is VER_PLATFORM_WIN32_CE); | |
240 //PORTING_CHANGE: made by version | |
241 //IsSP = IsSP(); | |
242 //PORTING_CHANGE: made by version | |
243 //IsPPC = IsPPC(); | |
244 version(WinCE) { | |
245 IsHPC = IsWinCE && !IsPPC && !IsSP; | |
246 } | |
3 | 247 WIN32_MAJOR = info.dwMajorVersion; |
248 WIN32_MINOR = info.dwMinorVersion; | |
249 WIN32_VERSION = VERSION (WIN32_MAJOR, WIN32_MINOR); | |
82 | 250 |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
251 // when to load uxtheme |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
252 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) { |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
253 loadLib( Symbols_UxTheme, `UxTheme.dll` ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
254 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
255 if (OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) { |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
256 loadLib( Symbols_CoreImm, `Coreimm.dll` ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
257 } |
91 | 258 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) { |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
259 loadLib( Symbols_User32, `User32.dll` ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
260 } |
94 | 261 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (4, 0)) { |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
262 loadLib( Symbols_Imm32, `Imm32.dll` ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
263 } |
91 | 264 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) { |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
265 loadLib( Symbols_Kernel32, `Kernel32.dll` ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
266 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
267 |
82 | 268 //PORTING_CHANGE: made by version |
269 //IsUnicode = !IsWin32s && !IsWin95; | |
121
e3b3f0fc0c7b
Fix removing the temp file and use the conduit from tango.io.Tempfile. Thanks doob for investigating here.
Frank Benoit <benoit@tionex.de>
parents:
108
diff
changeset
|
270 |
3 | 271 /* Load the manifest to force the XP Theme */ |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
272 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
273 enableVisualStyles(); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
274 |
3 | 275 /* Make the process DPI aware for Windows Vista */ |
276 if (OS.WIN32_VERSION >= OS.VERSION (6, 0)) OS.SetProcessDPIAware (); | |
277 | |
278 /* Get the DBCS flag */ | |
279 BOOL dbcsEnabled = OS.GetSystemMetrics (SM_DBCSENABLED) !is 0; | |
280 BOOL immEnabled = OS.GetSystemMetrics (SM_IMMENABLED) !is 0; | |
281 IsDBLocale = dbcsEnabled || immEnabled; | |
19 | 282 |
3 | 283 /* |
284 * Bug in Windows. On Korean Windows XP when the Text | |
285 * Services Framework support for legacy applications | |
286 * is enabled, certain legacy calls segment fault. | |
287 * For example, when ImmSetCompositionWindow() is used | |
288 * to move the composition window outside of the client | |
289 * area, Windows crashes. The fix is to disable legacy | |
290 * support. | |
19 | 291 * |
3 | 292 * Note: The bug is fixed in Service Pack 2. |
293 */ | |
294 if (!OS.IsWinCE && OS.WIN32_VERSION is OS.VERSION (5, 1)) { | |
295 short langID = OS.GetSystemDefaultUILanguage (); | |
296 short primaryLang = OS.PRIMARYLANGID (langID); | |
297 if (primaryLang is LANG_KOREAN) { | |
82 | 298 OSVERSIONINFOEX infoex; |
3 | 299 infoex.dwOSVersionInfoSize = OSVERSIONINFOEX.sizeof; |
82 | 300 GetVersionEx (cast(OSVERSIONINFO*) &infoex ); |
3 | 301 if (infoex.wServicePackMajor < 2) { |
302 OS.ImmDisableTextFrameService (0); | |
303 } | |
304 } | |
305 } | |
82 | 306 |
307 /* Get the COMCTL32.DLL version */ | |
308 DLLVERSIONINFO dvi; | |
3 | 309 dvi.cbSize = DLLVERSIONINFO.sizeof; |
310 dvi.dwMajorVersion = 4; | |
311 dvi.dwMinorVersion = 0; | |
82 | 312 //PORTING_CHANGE: comctl is loaded automatically |
313 //TCHAR lpLibFileName = new TCHAR (0, "comctl32.dll", true); //$NON-NLS-1$ | |
314 //int /*long*/ hModule = OS.LoadLibrary (lpLibFileName); | |
315 if (auto lib = SharedLib.load( `comctl32.dll`) ) { | |
3 | 316 char[] name = "DllGetVersion\0"; //$NON-NLS-1$ |
82 | 317 void* DllGetVersion = lib.getSymbol(name.ptr); |
318 if (DllGetVersion !is null){ | |
319 alias extern(Windows) void function(DLLVERSIONINFO*) TDllVersion; | |
320 TDllVersion f = cast( TDllVersion )DllGetVersion; | |
321 f(&dvi); | |
3 | 322 } |
82 | 323 lib.unload(); |
3 | 324 } |
325 COMCTL32_MAJOR = dvi.dwMajorVersion; | |
326 COMCTL32_MINOR = dvi.dwMinorVersion; | |
327 COMCTL32_VERSION = VERSION (COMCTL32_MAJOR, COMCTL32_MINOR); | |
82 | 328 |
329 /* Get the Shell32.DLL version */ | |
330 dvi = DLLVERSIONINFO.init; | |
3 | 331 dvi.cbSize = DLLVERSIONINFO.sizeof; |
332 dvi.dwMajorVersion = 4; | |
82 | 333 //TCHAR lpLibFileName = new TCHAR (0, "Shell32.dll", true); //$NON-NLS-1$ |
334 //int /*long*/ hModule = OS.LoadLibrary (lpLibFileName); | |
335 if ( auto lib = SharedLib.load( `Shell32.dll`)) { | |
3 | 336 char[] name = "DllGetVersion\0"; //$NON-NLS-1$ |
82 | 337 void* DllGetVersion = lib.getSymbol(name.ptr); |
338 if (DllGetVersion !is null){ | |
339 alias extern(Windows) void function(DLLVERSIONINFO*) TDllVersion; | |
340 TDllVersion f = cast( TDllVersion )DllGetVersion; | |
341 f(&dvi); | |
3 | 342 } |
82 | 343 lib.unload(); |
3 | 344 } |
345 SHELL32_MAJOR = dvi.dwMajorVersion; | |
346 SHELL32_MINOR = dvi.dwMinorVersion; | |
347 SHELL32_VERSION = VERSION (SHELL32_MAJOR, SHELL32_MINOR); | |
348 } | |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
349 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
350 /************************************************************************** |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
351 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
352 **************************************************************************/ |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
353 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
354 public static void enableVisualStyles() |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
355 { |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
356 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) { |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
357 const char[] manifest = |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
358 `<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
359 <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
360 <assemblyIdentity |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
361 version="1.0.0.0" |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
362 processorArchitecture="X86" |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
363 name="dwt" |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
364 type="win32"/> |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
365 <description>D Widget Toolkit</description> |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
366 <dependency> |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
367 <dependentAssembly> |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
368 <assemblyIdentity type="win32" |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
369 name="Microsoft.Windows.Common-Controls" |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
370 version="6.0.0.0" processorArchitecture="X86" |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
371 publicKeyToken="6595b64144ccf1df" |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
372 language="*"/> |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
373 </dependentAssembly> |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
374 </dependency> |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
375 </assembly>`; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
376 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
377 scope temp = new tango.io.TempFile.TempFile(tango.io.TempFile.TempFile.Permanent); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
378 temp.write(manifest); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
379 temp.detach(); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
380 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
381 ACTCTX actctx; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
382 actctx.cbSize = actctx.sizeof; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
383 actctx.dwFlags = 0; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
384 actctx.lpSource = StrToTCHARz( 0, temp.toString ); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
385 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
386 // Create the activation context |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
387 HANDLE hActCtx = OS.CreateActCtx(&actctx); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
388 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
389 // Did we fail creating the activation context? |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
390 if (hActCtx is INVALID_HANDLE_VALUE){ |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
391 Trace.formatln("The Activation Context could not be created"); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
392 } else { |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
393 // Activate the context and make use of it |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
394 ULONG_PTR ulpActivationCookie; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
395 if (!OS.ActivateActCtx(hActCtx, &ulpActivationCookie)){ |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
396 Trace.formatln("The Activation Context failed to load"); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
397 } |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
398 } |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
399 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
400 temp.path.remove(); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
401 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
402 /+ |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
403 //if (System.getProperty (NO_MANIFEST) is null) { |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
404 TCHAR[] buffer = new TCHAR[ MAX_PATH ]; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
405 HANDLE hModule = OS.GetLibraryHandle (); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
406 while (OS.GetModuleFileName (hModule, buffer.ptr, buffer.length ) is buffer.length ) { |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
407 buffer.length = buffer.length + MAX_PATH; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
408 } |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
409 auto hHeap = OS.GetProcessHeap (); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
410 int byteCount = buffer.length * TCHAR.sizeof; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
411 TCHAR* pszText = cast(TCHAR*) OS.HeapAlloc (hHeap, HEAP_ZERO_MEMORY, byteCount); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
412 OS.MoveMemory (pszText, buffer.ptr, byteCount); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
413 ACTCTX pActCtx; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
414 pActCtx.cbSize = ACTCTX.sizeof; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
415 pActCtx.dwFlags = ACTCTX_FLAG_RESOURCE_NAME_VALID | ACTCTX_FLAG_SET_PROCESS_DEFAULT; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
416 pActCtx.lpSource = pszText; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
417 pActCtx.lpResourceName = cast(TCHAR*)MANIFEST_RESOURCE_ID; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
418 HANDLE hActCtx = OS.CreateActCtx (&pActCtx); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
419 if (pszText !is null) OS.HeapFree (hHeap, 0, pszText); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
420 uint lpCookie; |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
421 OS.ActivateActCtx (hActCtx, &lpCookie); |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
422 /* |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
423 * NOTE: A single activation context is created and activated |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
424 * for the entire lifetime of the program. It is deactivated |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
425 * and released by Windows when the program exits. |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
426 */ |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
427 //} |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
428 +/ |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
429 } |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
430 } |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
431 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
432 /************************************************************************** |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
433 |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
434 **************************************************************************/ |
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
435 |
3 | 436 /* Flag used on WinCE */ |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
437 |
3 | 438 static const int SYS_COLOR_INDEX_FLAG = OS.IsWinCE ? 0x40000000 : 0x0; |
439 | |
440 /* | |
19 | 441 * NOTE: There is a bug in JVM 1.2 where loading |
3 | 442 * a class with a large number of constants causes |
443 * a segment fault to occur sometime later after | |
444 * the class is loaded. The fix is to break the | |
445 * class up into a hierarchy of classes that each | |
446 * contain a smaller number of constants. This | |
447 * fix is not necessary at this time but is required | |
448 * when all constants are uncommented. We have not | |
449 * done the research to determine the limit. | |
450 */ | |
451 | |
452 /* Constants */ | |
453 public static const int ABS_DOWNDISABLED = 8; | |
454 public static const int ABS_DOWNHOT = 6; | |
455 public static const int ABS_DOWNNORMAL = 5; | |
456 public static const int ABS_DOWNPRESSED = 7; | |
457 public static const int ABS_LEFTDISABLED = 12; | |
458 public static const int ABS_LEFTHOT = 10; | |
459 public static const int ABS_LEFTNORMAL = 9; | |
460 public static const int ABS_LEFTPRESSED = 11; | |
461 public static const int ABS_RIGHTDISABLED = 16; | |
462 public static const int ABS_RIGHTHOT = 14; | |
463 public static const int ABS_RIGHTNORMAL = 13; | |
464 public static const int ABS_RIGHTPRESSED = 15; | |
465 public static const int ABS_UPDISABLED = 4; | |
466 public static const int ABS_UPHOT = 2; | |
467 public static const int ABS_UPNORMAL = 1; | |
468 public static const int ABS_UPPRESSED = 3; | |
469 public static const int AC_SRC_OVER = 0; | |
470 public static const int AC_SRC_ALPHA = 1; | |
471 // public static const int ACTCTX_FLAG_RESOURCE_NAME_VALID = 0x00000008; | |
472 // public static const int ACTCTX_FLAG_SET_PROCESS_DEFAULT = 0x00000010; | |
473 public static const int ALTERNATE = 1; | |
474 public static const int ASSOCF_NOTRUNCATE = 0x00000020; | |
475 public static const int ASSOCSTR_COMMAND = 1; | |
476 public static const int ASSOCSTR_DEFAULTICON = 15; | |
477 public static const int ASSOCSTR_FRIENDLYAPPNAME = 4; | |
478 public static const int ASSOCSTR_FRIENDLYDOCNAME = 3; | |
479 public static const int AW_SLIDE = 0x00040000; | |
480 public static const int AW_ACTIVATE = 0x00020000; | |
481 public static const int AW_BLEND = 0x00080000; | |
482 public static const int AW_HIDE = 0x00010000; | |
483 public static const int AW_CENTER = 0x00000010; | |
484 public static const int AW_HOR_POSITIVE = 0x00000001; | |
485 public static const int AW_HOR_NEGATIVE = 0x00000002; | |
486 public static const int AW_VER_POSITIVE = 0x00000004; | |
487 public static const int AW_VER_NEGATIVE = 0x00000008; | |
488 public static const int BCM_FIRST = 0x1600; | |
489 public static const int BCM_GETIDEALSIZE = BCM_FIRST + 0x1; | |
490 public static const int BCM_GETIMAGELIST = BCM_FIRST + 0x3; | |
491 public static const int BCM_GETNOTE = BCM_FIRST + 0xa; | |
492 public static const int BCM_GETNOTELENGTH = BCM_FIRST + 0xb; | |
493 public static const int BCM_SETIMAGELIST = BCM_FIRST + 0x2; | |
494 public static const int BCM_SETNOTE = BCM_FIRST + 0x9; | |
495 public static const int BDR_RAISEDOUTER = 0x0001; | |
496 public static const int BDR_SUNKENOUTER = 0x0002; | |
497 public static const int BDR_RAISEDINNER = 0x0004; | |
498 public static const int BDR_SUNKENINNER = 0x0008; | |
499 public static const int BDR_OUTER = 0x0003; | |
500 public static const int BDR_INNER = 0x000c; | |
501 public static const int BDR_RAISED = 0x0005; | |
502 public static const int BDR_SUNKEN = 0x000a; | |
503 public static const int BFFM_INITIALIZED = 0x1; | |
504 public static const int BFFM_SETSELECTION = IsUnicode ? 0x467 : 0x466; | |
505 public static const int BFFM_VALIDATEFAILED = IsUnicode ? 0x4 : 0x3; | |
506 public static const int BFFM_VALIDATEFAILEDW = 0x4; | |
507 public static const int BFFM_VALIDATEFAILEDA = 0x3; | |
19 | 508 public static const int BF_ADJUST = 0x2000; |
3 | 509 public static const int BF_LEFT = 0x0001; |
510 public static const int BF_TOP = 0x0002; | |
511 public static const int BF_RIGHT = 0x0004; | |
512 public static const int BF_BOTTOM = 0x0008; | |
513 public static const int BF_RECT = (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM); | |
514 public static const int BIF_EDITBOX = 0x10; | |
515 public static const int BIF_NEWDIALOGSTYLE = 0x40; | |
516 public static const int BIF_RETURNONLYFSDIRS = 0x1; | |
517 public static const int BIF_VALIDATE = 0x20; | |
518 public static const int BITSPIXEL = 0xc; | |
519 public static const int BI_BITFIELDS = 3; | |
520 public static const int BI_RGB = 0; | |
521 public static const int BLACKNESS = 0x42; | |
522 public static const int BLACK_BRUSH = 4; | |
523 public static const int BUTTON_IMAGELIST_ALIGN_LEFT = 0; | |
524 public static const int BUTTON_IMAGELIST_ALIGN_RIGHT = 1; | |
525 public static const int BUTTON_IMAGELIST_ALIGN_CENTER = 4; | |
526 public static const int BM_CLICK = 0xf5; | |
527 public static const int BM_GETCHECK = 0xf0; | |
528 public static const int BM_SETCHECK = 0xf1; | |
529 public static const int BM_SETIMAGE = 0xf7; | |
530 public static const int BM_SETSTYLE = 0xf4; | |
531 public static const int BN_CLICKED = 0x0; | |
532 public static const int BN_DOUBLECLICKED = 0x5; | |
533 public static const int BPBF_COMPATIBLEBITMAP = 0; | |
534 public static const int BPBF_DIB = 1; | |
535 public static const int BPBF_TOPDOWNDIB = 2; | |
536 public static const int BPBF_TOPDOWNMONODIB = 3; | |
537 public static const int BPPF_ERASE = 0x0001; | |
538 public static const int BPPF_NOCLIP = 0x0002; | |
539 public static const int BPPF_NONCLIENT = 0x0004; | |
540 public static const int BP_PUSHBUTTON = 1; | |
541 public static const int BP_RADIOBUTTON = 2; | |
542 public static const int BP_CHECKBOX = 3; | |
543 public static const int BP_GROUPBOX = 4; | |
544 public static const int BST_CHECKED = 0x1; | |
545 public static const int BST_UNCHECKED = 0x0; | |
546 public static const int BS_BITMAP = 0x80; | |
547 public static const int BS_CENTER = 0x300; | |
548 public static const int BS_CHECKBOX = 0x2; | |
549 public static const int BS_COMMANDLINK = 0xe; | |
550 public static const int BS_DEFPUSHBUTTON = 0x1; | |
551 public static const int BS_FLAT = 0x8000; | |
552 public static const int BS_GROUPBOX = 0x7; | |
553 public static const int BS_ICON = 0x40; | |
554 public static const int BS_LEFT = 0x100; | |
555 public static const int BS_NOTIFY = 0x4000; | |
556 public static const int BS_OWNERDRAW = 0xb; | |
557 public static const int BS_PATTERN = 0x3; | |
558 public static const int BS_PUSHBUTTON = 0x0; | |
559 public static const int BS_PUSHLIKE = 0x1000; | |
560 public static const int BS_RADIOBUTTON = 0x4; | |
561 public static const int BS_RIGHT = 0x200; | |
562 public static const int BS_SOLID = 0x0; | |
563 public static const int BTNS_AUTOSIZE = 0x10; | |
564 public static const int BTNS_BUTTON = 0x0; | |
565 public static const int BTNS_CHECK = 0x2; | |
566 public static const int BTNS_CHECKGROUP = 0x6; | |
567 public static const int BTNS_DROPDOWN = 0x8; | |
568 public static const int BTNS_GROUP = 0x4; | |
569 public static const int BTNS_SEP = 0x1; | |
570 public static const int BTNS_SHOWTEXT = 0x40; | |
571 public static const int CBN_EDITCHANGE = 0x5; | |
572 public static const int CBN_KILLFOCUS = 0x4; | |
573 public static const int CBN_SELCHANGE = 0x1; | |
574 public static const int CBN_SETFOCUS = 0x3; | |
575 public static const int CBS_AUTOHSCROLL = 0x40; | |
576 public static const int CBS_DROPDOWN = 0x2; | |
577 public static const int CBS_DROPDOWNLIST = 0x3; | |
578 public static const int CBS_CHECKEDNORMAL = 5; | |
579 public static const int CBS_MIXEDNORMAL = 9; | |
580 public static const int CBS_NOINTEGRALHEIGHT = 0x400; | |
581 public static const int CBS_SIMPLE = 0x1; | |
582 public static const int CBS_UNCHECKEDNORMAL = 1; | |
583 public static const int CBS_CHECKEDDISABLED = 8; | |
584 public static const int CBS_CHECKEDHOT = 6; | |
585 public static const int CBS_CHECKEDPRESSED = 7; | |
586 public static const int CBS_MIXEDDISABLED = 0; | |
587 public static const int CBS_MIXEDHOT = 0; | |
588 public static const int CBS_MIXEDPRESSED = 0; | |
589 public static const int CBS_UNCHECKEDDISABLED = 4; | |
590 public static const int CBS_UNCHECKEDHOT = 2; | |
591 public static const int CBS_UNCHECKEDPRESSED = 3; | |
592 public static const int CB_ADDSTRING = 0x143; | |
593 public static const int CB_DELETESTRING = 0x144; | |
594 public static const int CB_ERR = 0xffffffff; | |
595 public static const int CB_ERRSPACE = 0xfffffffe; | |
596 public static const int CB_FINDSTRINGEXACT = 0x158; | |
597 public static const int CB_GETCOUNT = 0x146; | |
598 public static const int CB_GETCURSEL = 0x147; | |
599 public static const int CB_GETDROPPEDCONTROLRECT = 0x152; | |
600 public static const int CB_GETDROPPEDSTATE = 0x157; | |
601 public static const int CB_GETDROPPEDWIDTH = 0x015f; | |
602 public static const int CB_GETEDITSEL = 0x140; | |
603 public static const int CB_GETHORIZONTALEXTENT = 0x015d; | |
604 public static const int CB_GETITEMHEIGHT = 0x154; | |
605 public static const int CB_GETLBTEXT = 0x148; | |
606 public static const int CB_GETLBTEXTLEN = 0x149; | |
607 public static const int CB_INSERTSTRING = 0x14a; | |
608 public static const int CB_LIMITTEXT = 0x141; | |
609 public static const int CB_RESETCONTENT = 0x14b; | |
610 public static const int CB_SELECTSTRING = 0x14d; | |
611 public static const int CB_SETCURSEL = 0x14e; | |
612 public static const int CB_SETDROPPEDWIDTH= 0x0160; | |
613 public static const int CB_SETEDITSEL = 0x142; | |
614 public static const int CB_SETHORIZONTALEXTENT = 0x015e; | |
615 public static const int CB_SETITEMHEIGHT = 0x0153; | |
616 public static const int CB_SHOWDROPDOWN = 0x14f; | |
617 public static const int CBXS_NORMAL = 1; | |
618 public static const int CBXS_HOT = 2; | |
619 public static const int CBXS_PRESSED = 3; | |
620 public static const int CBXS_DISABLED = 4; | |
621 public static const int CCM_FIRST = 0x2000; | |
622 public static const int CCM_SETBKCOLOR = 0x2001; | |
623 public static const int CCM_SETVERSION = 0x2007; | |
624 public static const int CCS_NODIVIDER = 0x40; | |
625 public static const int CCS_NORESIZE = 0x4; | |
626 public static const int CCS_VERT = 0x80; | |
627 public static const int CC_ANYCOLOR = 0x100; | |
628 public static const int CC_ENABLEHOOK = 0x10; | |
629 public static const int CC_FULLOPEN = 0x2; | |
630 public static const int CC_RGBINIT = 0x1; | |
631 public static const int CDDS_POSTERASE = 0x00000004; | |
632 public static const int CDDS_POSTPAINT = 0x00000002; | |
633 public static const int CDDS_PREERASE = 0x00000003; | |
634 public static const int CDDS_PREPAINT = 0x00000001; | |
635 public static const int CDDS_ITEM = 0x00010000; | |
636 public static const int CDDS_ITEMPOSTPAINT = CDDS_ITEM | CDDS_POSTPAINT; | |
637 public static const int CDDS_ITEMPREPAINT = CDDS_ITEM | CDDS_PREPAINT; | |
638 public static const int CDDS_SUBITEM = 0x00020000; | |
639 public static const int CDDS_SUBITEMPOSTPAINT = CDDS_ITEMPOSTPAINT | CDDS_SUBITEM; | |
640 public static const int CDDS_SUBITEMPREPAINT = CDDS_ITEMPREPAINT | CDDS_SUBITEM; | |
641 public static const int CDIS_SELECTED = 0x0001; | |
642 public static const int CDIS_GRAYED = 0x0002; | |
643 public static const int CDIS_DISABLED = 0x0004; | |
644 public static const int CDIS_CHECKED = 0x0008; | |
645 public static const int CDIS_FOCUS = 0x0010; | |
646 public static const int CDIS_DEFAULT = 0x0020; | |
647 public static const int CDIS_HOT = 0x0040; | |
648 public static const int CDIS_MARKED = 0x0080; | |
649 public static const int CDIS_INDETERMINATE = 0x0100; | |
650 public static const int CDM_FIRST = 0x0400 + 100; | |
651 public static const int CDM_GETSPEC = CDM_FIRST; | |
652 public static const int CDN_FIRST = -601; | |
653 public static const int CDN_SELCHANGE = CDN_FIRST - 1; | |
654 public static const int CDRF_DODEFAULT = 0x00000000; | |
655 public static const int CDRF_DOERASE = 0x00000008; | |
656 public static const int CDRF_NEWFONT = 0x00000002; | |
657 public static const int CDRF_NOTIFYITEMDRAW = 0x00000020; | |
658 public static const int CDRF_NOTIFYPOSTERASE = 0x00000040; | |
659 public static const int CDRF_NOTIFYPOSTPAINT = 0x00000010; | |
660 public static const int CDRF_NOTIFYSUBITEMDRAW = 0x00000020; | |
661 public static const int CDRF_SKIPDEFAULT = 0x04; | |
662 public static const int CDRF_SKIPPOSTPAINT = 0x00000100; | |
663 public static const int CFE_AUTOCOLOR = 0x40000000; | |
664 public static const int CFE_ITALIC = 0x2; | |
665 public static const int CFE_STRIKEOUT = 0x8; | |
666 public static const int CFE_UNDERLINE = 0x4; | |
667 public static const int CFM_BOLD = 0x1; | |
668 public static const int CFM_CHARSET = 0x8000000; | |
669 public static const int CFM_COLOR = 0x40000000; | |
670 public static const int CFM_FACE = 0x20000000; | |
671 public static const int CFM_ITALIC = 0x2; | |
672 public static const int CFM_SIZE = 0x80000000; | |
673 public static const int CFM_STRIKEOUT = 0x8; | |
674 public static const int CFM_UNDERLINE = 0x4; | |
675 public static const int CFM_WEIGHT = 0x400000; | |
676 public static const int CFS_POINT = 0x2; | |
677 public static const int CFS_RECT = 0x1; | |
678 public static const int CF_EFFECTS = 0x100; | |
679 public static const int CF_INITTOLOGFONTSTRUCT = 0x40; | |
680 public static const int CF_SCREENFONTS = 0x1; | |
681 public static const int CF_TEXT = 0x1; | |
682 public static const int CF_UNICODETEXT = 13; | |
683 public static const int CF_USESTYLE = 0x80; | |
684 public static const int CLR_DEFAULT = 0xff000000; | |
685 public static const int CLR_INVALID = 0xffffffff; | |
686 public static const int CLR_NONE = 0xffffffff; | |
687 public static const int CLSCTX_INPROC_SERVER = 1; | |
688 public static const int COLORONCOLOR = 0x3; | |
689 public static const int COLOR_3DDKSHADOW = 0x15 | SYS_COLOR_INDEX_FLAG; | |
690 public static const int COLOR_3DFACE = 0xf | SYS_COLOR_INDEX_FLAG; | |
691 public static const int COLOR_3DHIGHLIGHT = 0x14 | SYS_COLOR_INDEX_FLAG; | |
692 public static const int COLOR_3DHILIGHT = 0x14 | SYS_COLOR_INDEX_FLAG; | |
693 public static const int COLOR_3DLIGHT = 0x16 | SYS_COLOR_INDEX_FLAG; | |
694 public static const int COLOR_3DSHADOW = 0x10 | SYS_COLOR_INDEX_FLAG; | |
695 public static const int COLOR_ACTIVECAPTION = 0x2 | SYS_COLOR_INDEX_FLAG; | |
696 public static const int COLOR_BTNFACE = 0xf | SYS_COLOR_INDEX_FLAG; | |
697 public static const int COLOR_BTNHIGHLIGHT = 0x14 | SYS_COLOR_INDEX_FLAG; | |
698 public static const int COLOR_BTNSHADOW = 0x10 | SYS_COLOR_INDEX_FLAG; | |
699 public static const int COLOR_BTNTEXT = 0x12 | SYS_COLOR_INDEX_FLAG; | |
700 public static const int COLOR_CAPTIONTEXT = 0x9 | SYS_COLOR_INDEX_FLAG; | |
701 public static const int COLOR_GRADIENTACTIVECAPTION = 0x1b | SYS_COLOR_INDEX_FLAG; | |
702 public static const int COLOR_GRADIENTINACTIVECAPTION = 0x1c | SYS_COLOR_INDEX_FLAG; | |
703 public static const int COLOR_GRAYTEXT = 0x11 | SYS_COLOR_INDEX_FLAG; | |
704 public static const int COLOR_HIGHLIGHT = 0xd | SYS_COLOR_INDEX_FLAG; | |
705 public static const int COLOR_HIGHLIGHTTEXT = 0xe | SYS_COLOR_INDEX_FLAG; | |
706 public static const int COLOR_HOTLIGHT = 26 | SYS_COLOR_INDEX_FLAG; | |
707 public static const int COLOR_INACTIVECAPTION = 0x3 | SYS_COLOR_INDEX_FLAG; | |
708 public static const int COLOR_INACTIVECAPTIONTEXT = 0x13 | SYS_COLOR_INDEX_FLAG; | |
709 public static const int COLOR_INFOBK = 0x18 | SYS_COLOR_INDEX_FLAG; | |
710 public static const int COLOR_INFOTEXT = 0x17 | SYS_COLOR_INDEX_FLAG; | |
711 public static const int COLOR_MENU = 0x4 | SYS_COLOR_INDEX_FLAG; | |
712 public static const int COLOR_MENUTEXT = 0x7 | SYS_COLOR_INDEX_FLAG; | |
713 public static const int COLOR_SCROLLBAR = 0x0 | SYS_COLOR_INDEX_FLAG; | |
714 public static const int COLOR_WINDOW = 0x5 | SYS_COLOR_INDEX_FLAG; | |
715 public static const int COLOR_WINDOWFRAME = 0x6 | SYS_COLOR_INDEX_FLAG; | |
716 public static const int COLOR_WINDOWTEXT = 0x8 | SYS_COLOR_INDEX_FLAG; | |
717 public static const int COMPLEXREGION = 0x3; | |
718 public static const int CP_ACP = 0x0; | |
719 public static const int CP_UTF8 = 65001; | |
720 public static const int CP_DROPDOWNBUTTON = 1; | |
721 public static const int CP_INSTALLED = 0x1; | |
722 public static const int CS_BYTEALIGNWINDOW = 0x2000; | |
723 public static const int CS_DBLCLKS = 0x8; | |
724 public static const int CS_DROPSHADOW = 0x20000; | |
725 public static const int CS_GLOBALCLASS = 0x4000; | |
726 public static const int CS_HREDRAW = 0x2; | |
727 public static const int CS_VREDRAW = 0x1; | |
728 public static const int CW_USEDEFAULT = 0x80000000; | |
165 | 729 public static const TCHAR[] DATETIMEPICK_CLASS = "SysDateTimePick32"; //$NON-NLS-1$ |
3 | 730 public static const int DATE_LONGDATE = 0x00000002; |
731 public static const int DATE_SHORTDATE = 0x00000001; | |
732 public static const int DATE_YEARMONTH = 0x00000008; //#if(WINVER >= 0x0500) | |
733 public static const int DCX_CACHE = 0x2; | |
734 public static const int DCX_CLIPCHILDREN = 0x8; | |
735 public static const int DCX_CLIPSIBLINGS = 0x10; | |
736 public static const int DEFAULT_CHARSET = 0x1; | |
737 public static const int DEFAULT_GUI_FONT = 0x11; | |
738 public static const int DFCS_BUTTONCHECK = 0x0; | |
739 public static const int DFCS_CHECKED = 0x400; | |
740 public static const int DFCS_FLAT = 0x4000; | |
741 public static const int DFCS_INACTIVE = 0x100; | |
742 public static const int DFCS_PUSHED = 0x200; | |
743 public static const int DFCS_SCROLLDOWN = 0x1; | |
744 public static const int DFCS_SCROLLLEFT = 0x2; | |
745 public static const int DFCS_SCROLLRIGHT = 0x3; | |
746 public static const int DFCS_SCROLLUP = 0x0; | |
747 public static const int DFC_BUTTON = 0x4; | |
748 public static const int DFC_SCROLL = 0x3; | |
749 public static const int DIB_RGB_COLORS = 0x0; | |
750 public static const int DISP_E_EXCEPTION = 0x80020009; | |
751 public static const int DI_NORMAL = 0x3; | |
752 public static const int DI_NOMIRROR = 0x10; | |
753 public static const int DLGC_BUTTON = 0x2000; | |
754 public static const int DLGC_HASSETSEL = 0x8; | |
755 public static const int DLGC_STATIC = 0x100; | |
756 public static const int DLGC_WANTALLKEYS = 0x4; | |
757 public static const int DLGC_WANTARROWS = 0x1; | |
758 public static const int DLGC_WANTCHARS = 0x80; | |
759 public static const int DLGC_WANTTAB = 0x2; | |
760 public static const int DM_SETDEFID = 0x401; | |
761 public static const int DSS_DISABLED = 0x20; | |
762 public static const int DSTINVERT = 0x550009; | |
763 public static const int DST_BITMAP = 0x4; | |
764 public static const int DST_ICON = 0x3; | |
765 public static const int DT_BOTTOM = 0x8; | |
766 public static const int DT_CALCRECT = 0x400; | |
767 public static const int DT_CENTER = 0x1; | |
768 public static const int DT_EDITCONTROL = 0x2000; | |
769 public static const int DT_EXPANDTABS = 0x40; | |
770 public static const int DT_ENDELLIPSIS = 32768; | |
771 public static const int DT_HIDEPREFIX = 0x100000; | |
772 public static const int DT_LEFT = 0x0; | |
773 public static const int DT_NOPREFIX = 0x800; | |
774 public static const int DT_RASPRINTER = 0x2; | |
775 public static const int DT_RIGHT = 0x2; | |
776 public static const int DT_SINGLELINE = 0x20; | |
777 public static const int DT_TOP = 0; | |
778 public static const int DT_VCENTER = 4; | |
779 public static const int DT_WORDBREAK = 0x10; | |
780 public static const int DTM_FIRST = 0x1000; | |
19 | 781 public static const int DTM_GETSYSTEMTIME = DTM_FIRST + 1; |
3 | 782 public static const int DTM_SETFORMAT = IsUnicode ? DTM_FIRST + 50 : DTM_FIRST + 5; |
783 public static const int DTM_SETSYSTEMTIME = DTM_FIRST + 2; | |
784 public static const int DTN_FIRST = 0xFFFFFD08; | |
785 public static const int DTN_DATETIMECHANGE = DTN_FIRST + 1; | |
786 public static const int DTS_LONGDATEFORMAT = 0x0004; | |
787 public static const int DTS_SHORTDATECENTURYFORMAT = 0x000C; | |
788 public static const int DTS_SHORTDATEFORMAT = 0x0000; | |
789 public static const int DTS_TIMEFORMAT = 0x0009; | |
790 public static const int DTS_UPDOWN = 0x0001; | |
791 public static const int E_POINTER = 0x80004003; | |
792 public static const int EBP_NORMALGROUPBACKGROUND = 5; | |
793 public static const int EBP_NORMALGROUPCOLLAPSE = 6; | |
794 public static const int EBP_NORMALGROUPEXPAND = 7; | |
795 public static const int EBP_NORMALGROUPHEAD = 8; | |
796 public static const int EBNGC_NORMAL = 1; | |
797 public static const int EBNGC_HOT = 2; | |
798 public static const int EBNGC_PRESSED = 3; | |
799 public static const int EBP_HEADERBACKGROUND = 1; | |
800 public static const int EC_LEFTMARGIN = 0x1; | |
801 public static const int EC_RIGHTMARGIN = 0x2; | |
802 public static const int ECOOP_AND = 0x3; | |
803 public static const int ECOOP_OR = 0x2; | |
804 public static const int ECO_AUTOHSCROLL = 0x80; | |
805 public static const int EDGE_RAISED = (BDR_RAISEDOUTER | BDR_RAISEDINNER); | |
806 public static const int EDGE_SUNKEN = (BDR_SUNKENOUTER | BDR_SUNKENINNER); | |
807 public static const int EDGE_ETCHED = (BDR_SUNKENOUTER | BDR_RAISEDINNER); | |
808 public static const int EDGE_BUMP = (BDR_RAISEDOUTER | BDR_SUNKENINNER); | |
809 public static const int EM_CANUNDO = 0xc6; | |
810 public static const int EM_CHARFROMPOS = 0xd7; | |
811 public static const int EM_DISPLAYBAND = 0x433; | |
812 public static const int EM_GETFIRSTVISIBLELINE = 0xce; | |
813 public static const int EM_GETLIMITTEXT = 0xd5; | |
814 public static const int EM_GETLINE = 0xc4; | |
815 public static const int EM_GETLINECOUNT = 0xba; | |
816 public static const int EM_GETMARGINS = 0xd4; | |
817 public static const int EM_GETPASSWORDCHAR = 0xd2; | |
818 public static const int EM_GETSCROLLPOS = 0x4dd; | |
819 public static const int EM_GETSEL = 0xb0; | |
820 public static const int EM_LIMITTEXT = 0xc5; | |
821 public static const int EM_LINEFROMCHAR = 0xc9; | |
822 public static const int EM_LINEINDEX = 0xbb; | |
823 public static const int EM_LINELENGTH = 0xc1; | |
824 public static const int EM_LINESCROLL = 0xb6; | |
825 public static const int EM_POSFROMCHAR = 0xd6; | |
826 public static const int EM_REPLACESEL = 0xc2; | |
827 public static const int EM_SCROLLCARET = 0xb7; | |
828 public static const int EM_SETBKGNDCOLOR = 0x443; | |
829 public static const int EM_SETLIMITTEXT = 0xc5; | |
830 public static const int EM_SETMARGINS = 211; | |
831 public static const int EM_SETOPTIONS = 0x44d; | |
832 public static const int EM_SETPARAFORMAT = 0x447; | |
833 public static const int EM_SETPASSWORDCHAR = 0xcc; | |
834 public static const int EM_SETCUEBANNER = 0x1500 + 1; | |
835 public static const int EM_SETREADONLY = 0xcf; | |
836 public static const int EM_SETSEL = 0xb1; | |
837 public static const int EM_SETTABSTOPS = 0xcb; | |
838 public static const int EM_UNDO = 199; | |
839 public static const int EN_ALIGN_LTR_EC = 0x0700; | |
840 public static const int EN_ALIGN_RTL_EC = 0x0701; | |
841 public static const int EN_CHANGE = 0x300; | |
842 public static const int EP_EDITTEXT = 1; | |
843 public static const int ERROR_NO_MORE_ITEMS = 0x103; | |
844 public static const int ESB_DISABLE_BOTH = 0x3; | |
845 public static const int ESB_ENABLE_BOTH = 0x0; | |
846 public static const int ES_AUTOHSCROLL = 0x80; | |
847 public static const int ES_AUTOVSCROLL = 0x40; | |
848 public static const int ES_CENTER = 0x1; | |
849 public static const int ES_MULTILINE = 0x4; | |
850 public static const int ES_NOHIDESEL = 0x100; | |
851 public static const int ES_PASSWORD = 0x20; | |
852 public static const int ES_READONLY = 0x800; | |
853 public static const int ES_RIGHT = 0x2; | |
854 public static const int ETO_CLIPPED = 0x4; | |
855 public static const int ETS_NORMAL = 1; | |
856 public static const int ETS_HOT = 2; | |
857 public static const int ETS_SELECTED = 3; | |
858 public static const int ETS_DISABLED = 4; | |
859 public static const int ETS_FOCUSED = 5; | |
860 public static const int ETS_READONLY = 6; | |
861 public static const int EVENT_OBJECT_FOCUS = 0x8005; | |
862 public static const int EVENT_OBJECT_LOCATIONCHANGE = 0x800B; | |
863 // public static const int EVENT_OBJECT_SELECTION = 0x8006; | |
864 public static const int EVENT_OBJECT_SELECTIONWITHIN = 0x8009; | |
865 public static const int EVENT_OBJECT_VALUECHANGE = 0x800E; | |
866 public static const int FALT = 0x10; | |
867 public static const int FCONTROL = 0x8; | |
868 public static const int FE_FONTSMOOTHINGCLEARTYPE = 0x0002; | |
869 public static const int FEATURE_DISABLE_NAVIGATION_SOUNDS = 21; | |
19 | 870 public static const int FILE_ATTRIBUTE_NORMAL = 0x00000080; |
3 | 871 public static const int FNERR_INVALIDFILENAME = 0x3002; |
872 public static const int FNERR_BUFFERTOOSMALL = 0x3003; | |
873 public static const int FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100; | |
874 public static const int FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000; | |
875 public static const int FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200; | |
876 public static const int FR_PRIVATE = 0x10; | |
877 public static const int FSHIFT = 0x4; | |
878 public static const int FVIRTKEY = 0x1; | |
879 public static const int GBS_NORMAL = 1; | |
880 public static const int GBS_DISABLED = 2; | |
881 public static const int GCS_COMPSTR = 0x8; | |
882 public static const int GCS_RESULTSTR = 0x800; | |
883 public static const int GDT_VALID = 0; | |
884 public static const int GET_FEATURE_FROM_PROCESS = 0x2; | |
885 public static const int GLPS_CLOSED = 1; | |
886 public static const int GLPS_OPENED = 2; | |
887 public static const int GM_ADVANCED = 2; | |
888 public static const int GMDI_USEDISABLED = 0x1; | |
889 public static const int GMEM_FIXED = 0x0; | |
890 public static const int GMEM_ZEROINIT = 0x40; | |
891 public static const int GN_CONTEXTMENU = 1000; | |
892 public static const int GPTR = 0x40; | |
893 public static const int GRADIENT_FILL_RECT_H = 0x0; | |
894 public static const int GRADIENT_FILL_RECT_V = 0x1; | |
895 public static const int GTL_NUMBYTES = 0x10; | |
896 public static const int GTL_NUMCHARS = 0x8; | |
897 public static const int GTL_PRECISE = 0x2; | |
898 public static const int GT_DEFAULT = 0x0; | |
899 public static const int GUI_16BITTASK = 0x20; | |
900 public static const int GUI_CARETBLINKING = 0x1; | |
901 public static const int GUI_INMENUMODE = 0x4; | |
902 public static const int GUI_INMOVESIZE = 0x2; | |
903 public static const int GUI_POPUPMENUMODE = 0x10; | |
904 public static const int GUI_SYSTEMMENUMODE = 0x8; | |
905 public static const int GWL_EXSTYLE = 0xffffffec; | |
906 public static const int GWL_ID = -12; | |
907 public static const int GWL_HWNDPARENT = -8; | |
908 public static const int GWL_STYLE = 0xfffffff0; | |
909 public static const int GWL_USERDATA = 0xffffffeb; | |
910 public static const int GWL_WNDPROC = 0xfffffffc; | |
911 public static const int GWLP_ID = -12; | |
912 public static const int GWLP_HWNDPARENT = -8; | |
913 public static const int GWLP_USERDATA = 0xffffffeb; | |
914 public static const int GWLP_WNDPROC = 0xfffffffc; | |
915 public static const int GW_CHILD = 0x5; | |
916 public static const int GW_HWNDFIRST = 0x0; | |
917 public static const int GW_HWNDLAST = 0x1; | |
918 public static const int GW_HWNDNEXT = 0x2; | |
919 public static const int GW_HWNDPREV = 0x3; | |
920 public static const int GW_OWNER = 0x4; | |
56 | 921 public static const HBITMAP HBMMENU_CALLBACK = cast(HBITMAP) 0xffffffff; |
3 | 922 public static const int HCBT_CREATEWND = 3; |
923 public static const int HCF_HIGHCONTRASTON = 0x1; | |
924 public static const int HDF_BITMAP = 0x2000; | |
925 public static const int HDF_BITMAP_ON_RIGHT = 0x1000; | |
926 public static const int HDF_CENTER = 2; | |
927 public static const int HDF_JUSTIFYMASK = 0x3; | |
928 public static const int HDF_IMAGE = 0x0800; | |
929 public static const int HDF_LEFT = 0; | |
930 public static const int HDF_RIGHT = 1; | |
931 public static const int HDF_SORTUP = 0x0400; | |
932 public static const int HDF_SORTDOWN = 0x0200; | |
933 public static const int HDI_BITMAP = 0x0010; | |
934 public static const int HDI_IMAGE = 32; | |
935 public static const int HDI_ORDER = 0x80; | |
936 public static const int HDI_TEXT = 0x2; | |
937 public static const int HDI_WIDTH = 0x1; | |
938 public static const int HDI_FORMAT = 0x4; | |
939 public static const int HDM_FIRST = 0x1200; | |
940 public static const int HDM_DELETEITEM = HDM_FIRST + 2; | |
941 public static const int HDM_GETBITMAPMARGIN = HDM_FIRST + 21; | |
942 public static const int HDM_GETITEMCOUNT = 0x1200; | |
943 public static const int HDM_GETITEMA = HDM_FIRST + 3; | |
944 public static const int HDM_GETITEMW = HDM_FIRST + 11; | |
945 public static const int HDM_GETITEM = IsUnicode ? HDM_GETITEMW : HDM_GETITEMA; | |
946 public static const int HDM_GETITEMRECT = HDM_FIRST + 7; | |
947 public static const int HDM_GETORDERARRAY = HDM_FIRST + 17; | |
948 public static const int HDM_HITTEST = HDM_FIRST + 6; | |
949 public static const int HDM_INSERTITEMA = HDM_FIRST + 1; | |
950 public static const int HDM_INSERTITEMW = HDM_FIRST + 10; | |
951 public static const int HDM_INSERTITEM = IsUnicode ? HDM_INSERTITEMW : HDM_INSERTITEMA; | |
952 public static const int HDM_LAYOUT = HDM_FIRST + 5; | |
953 public static const int HDM_ORDERTOINDEX = HDM_FIRST + 15; | |
954 public static const int HDM_SETIMAGELIST = HDM_FIRST + 8; | |
955 public static const int HDM_SETITEMA = HDM_FIRST + 4; | |
956 public static const int HDM_SETITEMW = HDM_FIRST + 12; | |
957 public static const int HDM_SETITEM = IsUnicode ? HDM_SETITEMW : HDM_SETITEMA; | |
958 public static const int HDM_SETORDERARRAY = HDM_FIRST + 18; | |
959 public static const int HDN_FIRST = 0xfffffed4; | |
960 public static const int HDN_BEGINDRAG = HDN_FIRST - 10; | |
961 public static const int HDN_BEGINTRACK = IsUnicode ? 0xfffffeba : 0xfffffece; | |
962 public static const int HDN_BEGINTRACKW = 0xfffffeba; | |
963 public static const int HDN_BEGINTRACKA = 0xfffffece; | |
964 public static const int HDN_DIVIDERDBLCLICKA = HDN_FIRST - 5; | |
965 public static const int HDN_DIVIDERDBLCLICKW = HDN_FIRST - 25; | |
966 public static const int HDN_DIVIDERDBLCLICK = IsUnicode ? HDN_DIVIDERDBLCLICKW : HDN_DIVIDERDBLCLICKA; | |
967 public static const int HDN_ENDDRAG = HDN_FIRST - 11; | |
968 public static const int HDN_ITEMCHANGED = IsUnicode ? 0xfffffebf : 0xfffffed3; | |
969 public static const int HDN_ITEMCHANGEDW = 0xfffffebf; | |
970 public static const int HDN_ITEMCHANGEDA = 0xfffffed3; | |
971 public static const int HDN_ITEMCHANGINGW = HDN_FIRST - 20; | |
972 public static const int HDN_ITEMCHANGINGA = HDN_FIRST; | |
973 public static const int HDN_ITEMCLICKW = HDN_FIRST - 22; | |
974 public static const int HDN_ITEMCLICKA = HDN_FIRST - 2; | |
975 public static const int HDN_ITEMDBLCLICKW = HDN_FIRST - 23; | |
976 public static const int HDN_ITEMDBLCLICKA = HDN_FIRST - 3; | |
977 public static const int HDN_ITEMDBLCLICK = IsUnicode ? HDN_ITEMDBLCLICKW : HDN_ITEMDBLCLICKA; | |
978 public static const int HDS_BUTTONS = 0x2; | |
979 public static const int HDS_DRAGDROP = 0x0040; | |
980 public static const int HDS_FULLDRAG = 0x80; | |
981 public static const int HDS_HIDDEN = 0x8; | |
982 // public static const int HEAP_ZERO_MEMORY = 0x8; | |
983 public static const int HELPINFO_MENUITEM = 0x2; | |
984 public static const int HHT_ONDIVIDER = 0x4; | |
985 public static const int HHT_ONDIVOPEN = 0x8; | |
986 public static const int HICF_ARROWKEYS = 0x2; | |
987 public static const int HINST_COMMCTRL = 0xffffffff; | |
988 public static const int HKEY_CLASSES_ROOT = 0x80000000; | |
989 public static const int HKEY_CURRENT_USER = 0x80000001; | |
990 public static const int HKEY_LOCAL_MACHINE = 0x80000002; | |
991 public static const int HORZRES = 0x8; | |
992 public static const int HTBORDER = 0x12; | |
993 public static const int HTCAPTION = 0x2; | |
994 public static const int HTCLIENT = 0x1; | |
995 public static const int HTERROR = -2; | |
996 public static const int HTHSCROLL = 0x6; | |
997 public static const int HTMENU = 0x5; | |
998 public static const int HTNOWHERE = 0x0; | |
999 public static const int HTSYSMENU = 0x3; | |
1000 public static const int HTTRANSPARENT = 0xffffffff; | |
1001 public static const int HTVSCROLL = 0x7; | |
1002 public static const int HWND_BOTTOM = 0x1; | |
1003 public static const int HWND_TOP = 0x0; | |
1004 public static const int HWND_TOPMOST = 0xffffffff; | |
1005 public static const int HWND_NOTOPMOST = -2; | |
1006 public static const int ICC_COOL_CLASSES = 0x400; | |
1007 public static const int ICC_DATE_CLASSES = 0x100; | |
1008 public static const int ICM_NOTOPEN = 0x0; | |
1009 public static const int ICON_BIG = 0x1; | |
1010 public static const int ICON_SMALL = 0x0; | |
1011 public static const int I_IMAGECALLBACK = -1; | |
1012 public static const int I_IMAGENONE = -2; | |
1013 public static const int IDABORT = 0x3; | |
1014 public static const int IDANI_CAPTION = 3; | |
1015 public static const int IDB_STD_SMALL_COLOR = 0x0; | |
1016 public static const int IDC_APPSTARTING = 0x7f8a; | |
1017 public static const int IDC_ARROW = 0x7f00; | |
1018 public static const int IDC_CROSS = 0x7f03; | |
47 | 1019 public static const TCHAR* IDC_HAND = cast(TCHAR*) 0x7f89; |
3 | 1020 public static const int IDC_HELP = 0x7f8b; |
1021 public static const int IDC_IBEAM = 0x7f01; | |
1022 public static const int IDC_NO = 0x7f88; | |
1023 public static const int IDC_SIZE = 0x7f80; | |
1024 public static const int IDC_SIZEALL = 0x7f86; | |
1025 public static const int IDC_SIZENESW = 0x7f83; | |
1026 public static const int IDC_SIZENS = 0x7f85; | |
1027 public static const int IDC_SIZENWSE = 0x7f82; | |
1028 public static const int IDC_SIZEWE = 0x7f84; | |
1029 public static const int IDC_UPARROW = 0x7f04; | |
1030 public static const int IDC_WAIT = 0x7f02; | |
1031 public static const int IDI_APPLICATION = 32512; | |
1032 public static const int IDNO = 0x7; | |
1033 public static const int IDOK = 0x1; | |
1034 public static const int IDRETRY = 0x4; | |
1035 public static const int IDYES = 0x6; | |
1036 public static const int ILC_COLOR = 0x0; | |
1037 public static const int ILC_COLOR16 = 0x10; | |
1038 public static const int ILC_COLOR24 = 0x18; | |
1039 public static const int ILC_COLOR32 = 0x20; | |
1040 public static const int ILC_COLOR4 = 0x4; | |
1041 public static const int ILC_COLOR8 = 0x8; | |
1042 public static const int ILC_MASK = 0x1; | |
1043 public static const int ILC_MIRROR = 0x2000; | |
1044 public static const int ILD_NORMAL = 0x0; | |
1045 public static const int ILD_SELECTED = 0x4; | |
1046 public static const int IMAGE_BITMAP = 0x0; | |
1047 public static const int IMAGE_CURSOR = 0x2; | |
1048 public static const int IMAGE_ICON = 0x1; | |
1049 public static const int IME_CMODE_FULLSHAPE = 0x8; | |
1050 public static const int IME_CMODE_KATAKANA = 0x2; | |
1051 public static const int IME_CMODE_NATIVE = 0x1; | |
1052 public static const int IME_CMODE_ROMAN = 0x10; | |
1053 public static const int INFINITE = 0xffffffff; | |
1054 public static const int INPUT_KEYBOARD = 1; | |
1055 public static const int INPUT_MOUSE = 0; | |
1056 public static const int INTERNET_OPTION_END_BROWSER_SESSION = 42; | |
1057 public static const int KEY_ENUMERATE_SUB_KEYS = 0x8; | |
1058 public static const int KEY_NOTIFY = 0x10; | |
1059 public static const int KEY_QUERY_VALUE = 0x1; | |
1060 public static const int KEY_READ = 0x20019; | |
1061 public static const int KEYEVENTF_KEYUP = 0x0002; | |
1062 public static const int L_MAX_URL_LENGTH = 2084; | |
1063 // public static const int LANG_KOREAN = 0x12; | |
1064 public static const int LANG_NEUTRAL = 0x0; | |
1065 public static const int LANG_USER_DEFAULT = 1 << 10; | |
1066 public static const int LAYOUT_RTL = 0x1; | |
1067 public static const int LBN_DBLCLK = 0x2; | |
1068 public static const int LBN_SELCHANGE = 0x1; | |
1069 public static const int LBS_EXTENDEDSEL = 0x800; | |
1070 public static const int LBS_MULTIPLESEL = 0x8; | |
1071 public static const int LBS_NOINTEGRALHEIGHT = 0x100; | |
1072 public static const int LBS_NOTIFY = 0x1; | |
1073 public static const int LB_ADDSTRING = 0x180; | |
1074 public static const int LB_DELETESTRING = 0x182; | |
1075 public static const int LB_ERR = 0xffffffff; | |
1076 public static const int LB_ERRSPACE = 0xfffffffe; | |
1077 public static const int LB_FINDSTRINGEXACT = 0x1a2; | |
1078 public static const int LB_GETCARETINDEX = 0x19f; | |
1079 public static const int LB_GETCOUNT = 0x18b; | |
1080 public static const int LB_GETCURSEL = 0x188; | |
1081 public static const int LB_GETHORIZONTALEXTENT = 0x193; | |
1082 public static const int LB_GETITEMHEIGHT = 0x1a1; | |
1083 public static const int LB_GETITEMRECT = 0x198; | |
1084 public static const int LB_GETSEL = 0x187; | |
1085 public static const int LB_GETSELCOUNT = 0x190; | |
1086 public static const int LB_GETSELITEMS = 0x191; | |
1087 public static const int LB_GETTEXT = 0x189; | |
1088 public static const int LB_GETTEXTLEN = 0x18a; | |
1089 public static const int LB_GETTOPINDEX = 0x18e; | |
1090 public static const int LB_INITSTORAGE = 0x1a8; | |
1091 public static const int LB_INSERTSTRING = 0x181; | |
1092 public static const int LB_RESETCONTENT = 0x184; | |
1093 public static const int LB_SELITEMRANGE = 0x19b; | |
1094 public static const int LB_SELITEMRANGEEX = 0x183; | |
1095 public static const int LB_SETCARETINDEX = 0x19e; | |
1096 public static const int LB_SETCURSEL = 0x186; | |
1097 public static const int LB_SETHORIZONTALEXTENT = 0x194; | |
1098 public static const int LB_SETSEL = 0x185; | |
1099 public static const int LB_SETTOPINDEX = 0x197; | |
1100 public static const int LF_FACESIZE = 32; | |
1101 public static const int LGRPID_ARABIC = 0xd; | |
1102 public static const int LGRPID_HEBREW = 0xc; | |
1103 public static const int LGRPID_INSTALLED = 1; | |
1104 public static const int LIF_ITEMINDEX = 0x1; | |
1105 public static const int LIF_STATE = 0x2; | |
1106 public static const int LIS_FOCUSED = 0x1; | |
1107 public static const int LIS_ENABLED = 0x2; | |
1108 public static const int LISS_HOT = 0x2; | |
1109 public static const int LISS_SELECTED = 0x3; | |
1110 public static const int LISS_SELECTEDNOTFOCUS = 0x5; | |
1111 public static const int LM_GETIDEALHEIGHT = 0x701; | |
1112 public static const int LM_SETITEM = 0x702; | |
1113 public static const int LM_GETITEM = 0x703; | |
1114 public static const int LCID_SUPPORTED = 0x2; | |
1115 public static const int LOCALE_IDEFAULTANSICODEPAGE = 0x1004; | |
1116 public static const int LOCALE_IDATE = 0x00000021; | |
1117 public static const int LOCALE_ITIME = 0x00000023; | |
1118 public static const int LOCALE_RETURN_NUMBER = 0x20000000; // #if(WINVER >= 0x0400) | |
19 | 1119 public static const int LOCALE_S1159 = 0x00000028; |
1120 public static const int LOCALE_S2359 = 0x00000029; | |
1121 public static const int LOCALE_SDECIMAL = 14; | |
3 | 1122 public static const int LOCALE_SISO3166CTRYNAME = 0x5a; |
1123 public static const int LOCALE_SISO639LANGNAME = 0x59; | |
1124 public static const int LOCALE_SLONGDATE = 0x00000020; | |
1125 public static const int LOCALE_SSHORTDATE = 0x0000001F; | |
1126 public static const int LOCALE_STIMEFORMAT = 0x00001003; | |
1127 public static const int LOCALE_SYEARMONTH = 0x00001006; // #if(WINVER >= 0x0500) | |
1128 public static const int LOCALE_SDAYNAME1 = 0x0000002A; // long name for Monday | |
1129 public static const int LOCALE_SDAYNAME2 = 0x0000002B; // long name for Tuesday | |
1130 public static const int LOCALE_SDAYNAME3 = 0x0000002C; // long name for Wednesday | |
1131 public static const int LOCALE_SDAYNAME4 = 0x0000002D; // long name for Thursday | |
1132 public static const int LOCALE_SDAYNAME5 = 0x0000002E; // long name for Friday | |
1133 public static const int LOCALE_SDAYNAME6 = 0x0000002F; // long name for Saturday | |
1134 public static const int LOCALE_SDAYNAME7 = 0x00000030; // long name for Sunday | |
1135 public static const int LOCALE_SMONTHNAME1 = 0x00000038; // long name for January | |
1136 public static const int LOCALE_SMONTHNAME2 = 0x00000039; // long name for February | |
1137 public static const int LOCALE_SMONTHNAME3 = 0x0000003A; // long name for March | |
1138 public static const int LOCALE_SMONTHNAME4 = 0x0000003B; // long name for April | |
1139 public static const int LOCALE_SMONTHNAME5 = 0x0000003C; // long name for May | |
1140 public static const int LOCALE_SMONTHNAME6 = 0x0000003D; // long name for June | |
1141 public static const int LOCALE_SMONTHNAME7 = 0x0000003E; // long name for July | |
1142 public static const int LOCALE_SMONTHNAME8 = 0x0000003F; // long name for August | |
1143 public static const int LOCALE_SMONTHNAME9 = 0x00000040; // long name for September | |
1144 public static const int LOCALE_SMONTHNAME10 = 0x00000041; // long name for October | |
1145 public static const int LOCALE_SMONTHNAME11 = 0x00000042; // long name for November | |
1146 public static const int LOCALE_SMONTHNAME12 = 0x00000043; // long name for December | |
1147 public static const int LOCALE_USER_DEFAULT = 1024; | |
1148 public static const int LOGPIXELSX = 0x58; | |
1149 public static const int LOGPIXELSY = 0x5a; | |
40 | 1150 public static const TCHAR* LPSTR_TEXTCALLBACK = cast(TCHAR*)0xffffffff; |
3 | 1151 public static const int LR_DEFAULTCOLOR = 0x0; |
1152 public static const int LR_SHARED = 0x8000; | |
1153 public static const int LVCFMT_BITMAP_ON_RIGHT = 0x1000; | |
1154 public static const int LVCFMT_CENTER = 0x2; | |
1155 public static const int LVCFMT_IMAGE = 0x800; | |
1156 public static const int LVCFMT_LEFT = 0x0; | |
1157 public static const int LVCFMT_RIGHT = 0x1; | |
1158 public static const int LVCF_FMT = 0x1; | |
1159 public static const int LVCF_IMAGE = 0x10; | |
1160 public static const int LVCFMT_JUSTIFYMASK = 0x3; | |
1161 public static const int LVCF_TEXT = 0x4; | |
1162 public static const int LVCF_WIDTH = 0x2; | |
1163 public static const int LVHT_ONITEM = 0xe; | |
1164 public static const int LVHT_ONITEMICON = 0x2; | |
1165 public static const int LVHT_ONITEMLABEL = 0x4; | |
1166 public static const int LVHT_ONITEMSTATEICON = 0x8; | |
1167 public static const int LVIF_IMAGE = 0x2; | |
1168 public static const int LVIF_INDENT = 0x10; | |
1169 public static const int LVIF_STATE = 0x8; | |
1170 public static const int LVIF_TEXT = 0x1; | |
1171 public static const int LVIR_BOUNDS = 0x0; | |
1172 public static const int LVIR_ICON = 0x1; | |
1173 public static const int LVIR_LABEL = 0x2; | |
1174 public static const int LVIR_SELECTBOUNDS = 0x3; | |
1175 public static const int LVIS_DROPHILITED = 0x8; | |
1176 public static const int LVIS_FOCUSED = 0x1; | |
1177 public static const int LVIS_SELECTED = 0x2; | |
1178 public static const int LVIS_STATEIMAGEMASK = 0xf000; | |
1179 public static const int LVM_FIRST = 0x1000; | |
1180 public static const int LVM_APPROXIMATEVIEWRECT = 0x1040; | |
1181 public static const int LVM_CREATEDRAGIMAGE = LVM_FIRST + 33; | |
1182 public static const int LVM_DELETEALLITEMS = 0x1009; | |
1183 public static const int LVM_DELETECOLUMN = 0x101c; | |
1184 public static const int LVM_DELETEITEM = 0x1008; | |
1185 public static const int LVM_ENSUREVISIBLE = 0x1013; | |
1186 public static const int LVM_GETBKCOLOR = 0x1000; | |
1187 public static const int LVM_GETCOLUMN = IsUnicode ? 0x105f : 0x1019; | |
1188 public static const int LVM_GETCOLUMNORDERARRAY = LVM_FIRST + 59; | |
1189 public static const int LVM_GETCOLUMNWIDTH = 0x101d; | |
1190 public static const int LVM_GETCOUNTPERPAGE = 0x1028; | |
1191 public static const int LVM_GETEXTENDEDLISTVIEWSTYLE = 0x1037; | |
1192 public static const int LVM_GETHEADER = 0x101f; | |
1193 public static const int LVM_GETIMAGELIST = 0x1002; | |
1194 public static const int LVM_GETITEM = IsUnicode ? 0x104b : 0x1005; | |
1195 public static const int LVM_GETITEMW = 0x104b; | |
1196 public static const int LVM_GETITEMA = 0x1005; | |
1197 public static const int LVM_GETITEMCOUNT = 0x1004; | |
1198 public static const int LVM_GETITEMRECT = 0x100e; | |
1199 public static const int LVM_GETITEMSTATE = 0x102c; | |
1200 public static const int LVM_GETNEXTITEM = 0x100c; | |
1201 public static const int LVM_GETSELECTEDCOLUMN = LVM_FIRST + 174; | |
1202 public static const int LVM_GETSELECTEDCOUNT = 0x1032; | |
1203 public static const int LVM_GETSTRINGWIDTH = IsUnicode ? 0x1057 : 0x1011; | |
1204 public static const int LVM_GETSUBITEMRECT = 0x1038; | |
1205 public static const int LVM_GETTEXTCOLOR = 0x1023; | |
1206 public static const int LVM_GETTOOLTIPS = 0x104e; | |
1207 public static const int LVM_GETTOPINDEX = 0x1027; | |
1208 public static const int LVM_HITTEST = 0x1012; | |
1209 public static const int LVM_INSERTCOLUMN = IsUnicode ? 0x1061 : 0x101b; | |
1210 public static const int LVM_INSERTITEM = IsUnicode ? 0x104d : 0x1007; | |
1211 public static const int LVM_REDRAWITEMS = LVM_FIRST + 21; | |
1212 public static const int LVM_SCROLL = 0x1014; | |
1213 public static const int LVM_SETBKCOLOR = 0x1001; | |
1214 public static const int LVM_SETCALLBACKMASK = LVM_FIRST + 11; | |
1215 public static const int LVM_SETCOLUMN = IsUnicode ? 0x1060 : 0x101a; | |
1216 public static const int LVM_SETCOLUMNORDERARRAY = LVM_FIRST + 58; | |
1217 public static const int LVM_SETCOLUMNWIDTH = 0x101e; | |
1218 public static const int LVM_SETEXTENDEDLISTVIEWSTYLE = 0x1036; | |
1219 public static const int LVM_SETIMAGELIST = 0x1003; | |
1220 public static const int LVM_SETITEM = IsUnicode ? 0x104c : 0x1006; | |
1221 public static const int LVM_SETITEMCOUNT = LVM_FIRST + 47; | |
1222 public static const int LVM_SETITEMSTATE = 0x102b; | |
1223 public static const int LVM_SETSELECTIONMARK = LVM_FIRST + 67; | |
1224 public static const int LVM_SETSELECTEDCOLUMN = LVM_FIRST + 140; | |
1225 public static const int LVM_SETTEXTBKCOLOR = 0x1026; | |
1226 public static const int LVM_SETTEXTCOLOR = 0x1024; | |
1227 public static const int LVNI_FOCUSED = 0x1; | |
1228 public static const int LVNI_SELECTED = 0x2; | |
1229 public static const int LVN_BEGINDRAG = 0xffffff93; | |
1230 public static const int LVN_BEGINRDRAG = 0xffffff91; | |
1231 public static const int LVN_COLUMNCLICK = 0xffffff94; | |
1232 public static const int LVN_FIRST = 0xffffff9c; | |
1233 public static const int LVN_GETDISPINFOA = LVN_FIRST - 50; | |
1234 public static const int LVN_GETDISPINFOW = LVN_FIRST - 77; | |
1235 public static const int LVN_ITEMACTIVATE = 0xffffff8e; | |
1236 public static const int LVN_ITEMCHANGED = 0xffffff9b; | |
1237 public static const int LVN_MARQUEEBEGIN = 0xffffff64; | |
1238 public static const int LVN_ODFINDITEMA = LVN_FIRST - 52; | |
1239 public static const int LVN_ODFINDITEMW = LVN_FIRST - 79; | |
1240 public static const int LVN_ODSTATECHANGED = LVN_FIRST - 15; | |
1241 public static const int LVP_LISTITEM = 1; | |
1242 public static const int LVSCW_AUTOSIZE = 0xffffffff; | |
1243 public static const int LVSCW_AUTOSIZE_USEHEADER = 0xfffffffe; | |
1244 public static const int LVSICF_NOINVALIDATEALL = 0x1; | |
1245 public static const int LVSICF_NOSCROLL = 0x2; | |
1246 public static const int LVSIL_SMALL = 0x1; | |
1247 public static const int LVSIL_STATE = 0x2; | |
1248 public static const int LVS_EX_DOUBLEBUFFER = 0x10000; | |
1249 public static const int LVS_EX_FULLROWSELECT = 0x20; | |
1250 public static const int LVS_EX_GRIDLINES = 0x1; | |
1251 public static const int LVS_EX_HEADERDRAGDROP = 0x10; | |
1252 public static const int LVS_EX_LABELTIP = 0x4000; | |
1253 public static const int LVS_EX_ONECLICKACTIVATE = 0x40; | |
1254 public static const int LVS_EX_SUBITEMIMAGES = 0x2; | |
1255 public static const int LVS_EX_TRACKSELECT = 0x8; | |
1256 public static const int LVS_EX_TRANSPARENTBKGND = 0x800000; | |
1257 public static const int LVS_EX_TWOCLICKACTIVATE = 0x80; | |
1258 public static const int LVS_LIST = 0x3; | |
1259 public static const int LVS_NOCOLUMNHEADER = 0x4000; | |
1260 public static const int LVS_NOSCROLL = 0x2000; | |
1261 public static const int LVS_OWNERDATA = 0x1000; | |
1262 public static const int LVS_OWNERDRAWFIXED = 0x400; | |
1263 public static const int LVS_REPORT = 0x1; | |
1264 public static const int LVS_SHAREIMAGELISTS = 0x40; | |
1265 public static const int LVS_SHOWSELALWAYS = 0x8; | |
1266 public static const int LVS_SINGLESEL = 0x4; | |
1267 public static const int LWA_COLORKEY = 0x00000001; | |
1268 public static const int LWA_ALPHA = 0x00000002; | |
1269 public static const int MAX_LINKID_TEXT = 48; | |
1270 // public static const int MAX_PATH = 260; | |
1271 public static const int MA_NOACTIVATE = 0x3; | |
1272 // public static const int MANIFEST_RESOURCE_ID = 2; | |
1273 public static const int MB_ABORTRETRYIGNORE = 0x2; | |
1274 public static const int MB_APPLMODAL = 0x0; | |
1275 public static const int MB_ICONERROR = 0x10; | |
1276 public static const int MB_ICONINFORMATION = 0x40; | |
1277 public static const int MB_ICONQUESTION = 0x20; | |
1278 public static const int MB_ICONWARNING = 0x30; | |
1279 public static const int MB_OK = 0x0; | |
1280 public static const int MB_OKCANCEL = 0x1; | |
1281 public static const int MB_PRECOMPOSED = 0x1; | |
1282 public static const int MB_RETRYCANCEL = 0x5; | |
1283 public static const int MB_RTLREADING = 0x100000; | |
1284 public static const int MB_SYSTEMMODAL = 0x1000; | |
1285 public static const int MB_TASKMODAL = 0x2000; | |
1286 public static const int MB_TOPMOST = 0x00040000; | |
1287 public static const int MB_YESNO = 0x4; | |
1288 public static const int MB_YESNOCANCEL = 0x3; | |
1289 public static const int MCM_FIRST = 0x1000; | |
1290 public static const int MCM_GETCURSEL = MCM_FIRST + 1; | |
1291 public static const int MCM_SETCURSEL = MCM_FIRST + 2; | |
1292 public static const int MCN_FIRST = 0xFFFFFD12; | |
19 | 1293 public static const int MCN_SELCHANGE = MCN_FIRST + 1; |
3 | 1294 public static const int MCM_GETMINREQRECT = MCM_FIRST + 9; |
1295 public static const int MCS_NOTODAY = 0x0010; | |
1296 public static const int MDIS_ALLCHILDSTYLES = 0x0001; | |
1297 public static const int MFS_CHECKED = 0x8; | |
1298 public static const int MFS_DISABLED = 0x3; | |
1299 public static const int MFS_GRAYED = 0x3; | |
1300 public static const int MFT_RADIOCHECK = 0x200; | |
1301 public static const int MFT_RIGHTJUSTIFY = 0x4000; | |
19 | 1302 public static const int MFT_RIGHTORDER = 0x2000; |
3 | 1303 public static const int MFT_SEPARATOR = 0x800; |
1304 public static const int MFT_STRING = 0x0; | |
1305 public static const int MF_BYCOMMAND = 0x0; | |
1306 public static const int MF_BYPOSITION = 0x400; | |
1307 public static const int MF_CHECKED = 0x8; | |
1308 public static const int MF_DISABLED = 0x2; | |
1309 public static const int MF_ENABLED = 0x0; | |
1310 public static const int MF_GRAYED = 0x1; | |
1311 public static const int MF_HILITE = 0x80; | |
1312 public static const int MF_POPUP = 0x10; | |
1313 public static const int MF_SEPARATOR = 0x800; | |
1314 public static const int MF_SYSMENU = 0x2000; | |
1315 public static const int MF_UNCHECKED = 0x0; | |
1316 public static const int MIIM_BITMAP = 0x80; | |
1317 public static const int MIIM_DATA = 0x20; | |
1318 public static const int MIIM_ID = 0x2; | |
1319 public static const int MIIM_STATE = 0x1; | |
1320 public static const int MIIM_SUBMENU = 0x4; | |
1321 public static const int MIIM_TYPE = 0x10; | |
1322 public static const int MIM_BACKGROUND = 0x2; | |
1323 public static const int MIM_STYLE = 0x10; | |
1324 public static const int MK_ALT = 0x20; | |
1325 public static const int MK_CONTROL = 0x8; | |
1326 public static const int MK_LBUTTON = 0x1; | |
1327 public static const int MK_MBUTTON = 0x10; | |
1328 public static const int MK_RBUTTON = 0x2; | |
1329 public static const int MK_SHIFT = 0x4; | |
1330 public static const int MK_XBUTTON1 = 0x20; | |
1331 public static const int MK_XBUTTON2 = 0x40; | |
1332 public static const int MM_TEXT = 0x1; | |
1333 public static const int MNC_CLOSE = 0x1; | |
1334 public static const int MNS_CHECKORBMP = 0x4000000; | |
1335 public static const int MONITOR_DEFAULTTONEAREST = 0x2; | |
1336 public static const int MONITORINFOF_PRIMARY = 0x1; | |
165 | 1337 public static const TCHAR[] MONTHCAL_CLASS = "SysMonthCal32"; //$NON-NLS-1$ |
3 | 1338 public static const int MOUSEEVENTF_ABSOLUTE = 0x8000; |
19 | 1339 public static const int MOUSEEVENTF_LEFTDOWN = 0x0002; |
1340 public static const int MOUSEEVENTF_LEFTUP = 0x0004; | |
1341 public static const int MOUSEEVENTF_MIDDLEDOWN = 0x0020; | |
1342 public static const int MOUSEEVENTF_MIDDLEUP = 0x0040; | |
3 | 1343 public static const int MOUSEEVENTF_MOVE = 0x0001; |
19 | 1344 public static const int MOUSEEVENTF_RIGHTDOWN = 0x0008; |
3 | 1345 public static const int MOUSEEVENTF_RIGHTUP = 0x0010; |
1346 public static const int MOUSEEVENTF_VIRTUALDESK = 0x4000; | |
1347 public static const int MOUSEEVENTF_WHEEL = 0x0800; | |
1348 public static const int MOUSEEVENTF_XDOWN = 0x0080; | |
1349 public static const int MOUSEEVENTF_XUP = 0x0100; | |
1350 public static const int MSGF_DIALOGBOX = 0; | |
1351 public static const int MSGF_COMMCTRL_BEGINDRAG = 0x4200; | |
1352 public static const int MSGF_COMMCTRL_SIZEHEADER = 0x4201; | |
1353 public static const int MSGF_COMMCTRL_DRAGSELECT = 0x4202; | |
1354 public static const int MSGF_COMMCTRL_TOOLBARCUST = 0x4203; | |
1355 public static const int MSGF_MAINLOOP = 8; | |
1356 public static const int MSGF_MENU = 2; | |
1357 public static const int MSGF_MOVE = 3; | |
1358 public static const int MSGF_MESSAGEBOX = 1; | |
1359 public static const int MSGF_NEXTWINDOW = 6; | |
1360 public static const int MSGF_SCROLLBAR = 5; | |
1361 public static const int MSGF_SIZE = 4; | |
1362 public static const int MSGF_USER = 4096; | |
1363 public static const int MWMO_INPUTAVAILABLE = 0x4; | |
1364 public static const int NIF_ICON = 0x00000002; | |
1365 public static const int NIF_INFO = 0x00000010; | |
1366 public static const int NIF_MESSAGE = 0x00000001; | |
1367 public static const int NIF_STATE = 0x00000008; | |
1368 public static const int NIF_TIP = 0x00000004; | |
1369 public static const int NIIF_ERROR = 0x00000003; | |
1370 public static const int NIIF_INFO = 0x00000001; | |
1371 public static const int NIIF_NONE = 0x00000000; | |
1372 public static const int NIIF_WARNING = 0x00000002; | |
1373 public static const int NIM_ADD = 0x00000000; | |
1374 public static const int NIM_DELETE = 0x00000002; | |
1375 public static const int NIM_MODIFY = 0x00000001; | |
1376 public static const int NIN_SELECT = 0x400 + 0; | |
1377 public static const int NINF_KEY = 0x1; | |
1378 public static const int NIN_KEYSELECT = NIN_SELECT | NINF_KEY; | |
1379 public static const int NIN_BALLOONSHOW = 0x400 + 2; | |
1380 public static const int NIN_BALLOONHIDE = 0x400 + 3; | |
1381 public static const int NIN_BALLOONTIMEOUT = 0x400 + 4; | |
1382 public static const int NIN_BALLOONUSERCLICK = 0x400 + 5; | |
1383 public static const int NIS_HIDDEN = 0x00000001; | |
1384 public static const int NM_FIRST = 0x0; | |
1385 public static const int NM_CLICK = 0xfffffffe; | |
1386 public static const int NM_CUSTOMDRAW = NM_FIRST - 12; | |
1387 public static const int NM_DBLCLK = 0xfffffffd; | |
1388 public static const int NM_RECOGNIZEGESTURE = NM_FIRST - 16; | |
1389 public static const int NM_RELEASEDCAPTURE = NM_FIRST - 16; | |
1390 public static const int NM_RETURN = 0xfffffffc; | |
15 | 1391 public static int NOTIFYICONDATAA_V2_SIZE; |
1392 public static int NOTIFYICONDATAW_V2_SIZE; | |
1393 public static int NOTIFYICONDATA_V2_SIZE; | |
3 | 1394 public static const int NOTSRCCOPY = 0x330008; |
1395 public static const int NULLREGION = 0x1; | |
1396 public static const int NULL_BRUSH = 0x5; | |
1397 public static const int NULL_PEN = 0x8; | |
1398 public static const int NUMRESERVED = 106; | |
1399 public static const int OBJID_CARET = 0xFFFFFFF8; | |
1400 public static const int OBJID_CLIENT = 0xFFFFFFFC; | |
1401 public static const int OBJID_MENU = 0xFFFFFFFD; | |
1402 public static const int OBJID_WINDOW = 0x00000000; | |
1403 public static const int OBJ_BITMAP = 0x7; | |
1404 public static const int OBJ_FONT = 0x6; | |
1405 public static const int OBJ_PEN = 0x1; | |
41 | 1406 public static const TCHAR* OBM_CHECKBOXES = cast(TCHAR*)0x7ff7; |
3 | 1407 public static const int ODS_SELECTED = 0x1; |
1408 public static const int ODT_MENU = 0x1; | |
1409 public static const int OFN_ALLOWMULTISELECT = 0x200; | |
1410 public static const int OFN_EXPLORER = 0x80000; | |
1411 public static const int OFN_ENABLEHOOK = 0x20; | |
1412 public static const int OFN_HIDEREADONLY = 0x4; | |
1413 public static const int OFN_NOCHANGEDIR = 0x8; | |
1414 public static const int OIC_BANG = 0x7F03; | |
1415 public static const int OIC_HAND = 0x7F01; | |
1416 public static const int OIC_INFORMATION = 0x7F04; | |
1417 public static const int OIC_QUES = 0x7F02; | |
1418 public static const int OIC_WINLOGO = 0x7F05; | |
1419 public static const int OPAQUE = 0x2; | |
1420 public static const int PATCOPY = 0xf00021; | |
1421 public static const int PATINVERT = 0x5a0049; | |
1422 public static const int PBM_GETPOS = 0x408; | |
1423 public static const int PBM_GETRANGE = 0x407; | |
1424 public static const int PBM_GETSTATE = 0x400 + 17; | |
1425 public static const int PBM_SETBARCOLOR = 0x409; | |
1426 public static const int PBM_SETBKCOLOR = 0x2001; | |
1427 public static const int PBM_SETMARQUEE = 0x400 + 10; | |
1428 public static const int PBM_SETPOS = 0x402; | |
1429 public static const int PBM_SETRANGE32 = 0x406; | |
1430 public static const int PBM_SETSTATE = 0x400 + 16; | |
1431 public static const int PBM_STEPIT = 0x405; | |
1432 public static const int PBS_MARQUEE = 0x08; | |
1433 public static const int PBS_SMOOTH = 0x1; | |
1434 public static const int PBS_VERTICAL = 0x4; | |
1435 public static const int PBS_NORMAL = 1; | |
1436 public static const int PBS_HOT = 2; | |
19 | 1437 public static const int PBS_PRESSED = 3; |
3 | 1438 public static const int PBS_DISABLED = 4; |
1439 public static const int PBS_DEFAULTED = 5; | |
1440 public static const int PBST_NORMAL = 0x0001; | |
1441 public static const int PBST_ERROR = 0x0002; | |
1442 public static const int PBST_PAUSED = 0x0003; | |
1443 public static const int PD_ALLPAGES = 0x0; | |
1444 public static const int PD_COLLATE = 0x10; | |
1445 public static const int PD_PAGENUMS = 0x2; | |
1446 public static const int PD_PRINTTOFILE = 0x20; | |
1447 public static const int PD_RETURNDC = 0x100; | |
1448 public static const int PD_SELECTION = 0x1; | |
1449 public static const int PD_USEDEVMODECOPIESANDCOLLATE = 0x40000; | |
1450 public static const int PT_CLOSEFIGURE = 1; | |
1451 public static const int PT_LINETO = 2; | |
1452 public static const int PT_BEZIERTO = 4; | |
1453 public static const int PT_MOVETO = 6; | |
1454 public static const int PFM_TABSTOPS = 0x10; | |
1455 public static const int PHYSICALHEIGHT = 0x6f; | |
1456 public static const int PHYSICALOFFSETX = 0x70; | |
1457 public static const int PHYSICALOFFSETY = 0x71; | |
1458 public static const int PHYSICALWIDTH = 0x6e; | |
1459 public static const int PLANES = 0xe; | |
1460 public static const int PM_NOREMOVE = 0x0; | |
1461 public static const int PM_NOYIELD = 0x2; | |
1462 public static const int QS_HOTKEY = 0x0080; | |
1463 public static const int QS_KEY = 0x0001; | |
1464 public static const int QS_MOUSEMOVE = 0x0002; | |
1465 public static const int QS_MOUSEBUTTON = 0x0004; | |
1466 public static const int QS_MOUSE = QS_MOUSEMOVE | QS_MOUSEBUTTON; | |
1467 public static const int QS_INPUT = QS_KEY | QS_MOUSE; | |
1468 public static const int QS_POSTMESSAGE = 0x0008; | |
1469 public static const int QS_TIMER = 0x0010; | |
1470 public static const int QS_PAINT = 0x0020; | |
1471 public static const int QS_SENDMESSAGE = 0x0040; | |
1472 public static const int QS_ALLINPUT = QS_MOUSEMOVE | QS_MOUSEBUTTON | QS_KEY | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_SENDMESSAGE; | |
1473 public static const int PM_QS_INPUT = QS_INPUT << 16; | |
1474 public static const int PM_QS_POSTMESSAGE = (QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16; | |
1475 public static const int PM_QS_PAINT = QS_PAINT << 16; | |
1476 public static const int PM_QS_SENDMESSAGE = QS_SENDMESSAGE << 16; | |
1477 public static const int PM_REMOVE = 0x1; | |
61 | 1478 public static const TCHAR[] PROGRESS_CLASS = "msctls_progress32"; //$NON-NLS-1$ |
3 | 1479 public static const int PP_BAR = 1; |
1480 public static const int PP_BARVERT = 2; | |
1481 public static const int PP_CHUNK = 3; | |
1482 public static const int PP_CHUNKVERT = 4; | |
1483 public static const int PRF_CHILDREN = 16; | |
1484 public static const int PRF_CLIENT = 0x4; | |
1485 public static const int PRF_ERASEBKGND = 0x8; | |
1486 public static const int PRF_NONCLIENT = 0x2; | |
1487 public static const int PROGRESSCHUNKSIZE = 2411; | |
1488 public static const int PROGRESSSPACESIZE = 2412; | |
1489 public static const int PS_DASH = 0x1; | |
1490 public static const int PS_DASHDOT = 0x3; | |
1491 public static const int PS_DASHDOTDOT = 0x4; | |
1492 public static const int PS_DOT = 0x2; | |
1493 public static const int PS_ENDCAP_FLAT = 0x200; | |
1494 public static const int PS_ENDCAP_SQUARE = 0x100; | |
1495 public static const int PS_ENDCAP_ROUND = 0x000; | |
1496 public static const int PS_ENDCAP_MASK = 0xF00; | |
1497 public static const int PS_GEOMETRIC = 0x10000; | |
1498 public static const int PS_JOIN_BEVEL = 0x1000; | |
1499 public static const int PS_JOIN_MASK = 0xF000; | |
1500 public static const int PS_JOIN_MITER = 0x2000; | |
1501 public static const int PS_JOIN_ROUND = 0x0000; | |
1502 public static const int PS_SOLID = 0x0; | |
1503 public static const int PS_STYLE_MASK = 0xf; | |
1504 public static const int PS_TYPE_MASK = 0x000f0000; | |
1505 public static const int PS_USERSTYLE = 0x7; | |
1506 public static const int R2_COPYPEN = 0xd; | |
1507 public static const int R2_XORPEN = 0x7; | |
1508 public static const int RASTERCAPS = 0x26; | |
1509 public static const int RASTER_FONTTYPE = 0x1; | |
1510 public static const int RBBIM_CHILD = 0x10; | |
1511 public static const int RBBIM_CHILDSIZE = 0x20; | |
1512 public static const int RBBIM_COLORS = 0x2; | |
1513 public static const int RBBIM_HEADERSIZE = 0x800; | |
1514 public static const int RBBIM_ID = 0x100; | |
1515 public static const int RBBIM_IDEALSIZE = 0x200; | |
1516 public static const int RBBIM_SIZE = 0x40; | |
1517 public static const int RBBIM_STYLE = 0x1; | |
1518 public static const int RBBIM_TEXT = 0x4; | |
1519 public static const int RBBS_BREAK = 0x1; | |
1520 public static const int RBBS_GRIPPERALWAYS = 0x80; | |
1521 public static const int RBBS_NOGRIPPER = 0x00000100; | |
1522 public static const int RBBS_USECHEVRON = 0x00000200; | |
1523 public static const int RBBS_VARIABLEHEIGHT = 0x40; | |
1524 public static const int RBN_FIRST = 0xfffffcc1; | |
1525 public static const int RBN_BEGINDRAG = RBN_FIRST - 4; | |
1526 public static const int RBN_CHILDSIZE = RBN_FIRST - 8; | |
1527 public static const int RBN_CHEVRONPUSHED = RBN_FIRST - 10; | |
1528 public static const int RBN_HEIGHTCHANGE = 0xfffffcc1; | |
1529 public static const int RBS_DBLCLKTOGGLE = 0x8000; | |
1530 public static const int RBS_BANDBORDERS = 0x400; | |
1531 public static const int RBS_VARHEIGHT = 0x200; | |
1532 public static const int RB_DELETEBAND = 0x402; | |
1533 public static const int RB_GETBANDBORDERS = 0x422; | |
1534 public static const int RB_GETBANDCOUNT = 0x40c; | |
1535 public static const int RB_GETBANDINFO = IsUnicode ? 0x41c : 0x41d; | |
1536 public static const int RB_GETBANDMARGINS = 0x428; | |
1537 public static const int RB_GETBARHEIGHT = 0x41b; | |
1538 public static const int RB_GETBKCOLOR = 0x414; | |
1539 public static const int RB_GETRECT = 0x409; | |
1540 public static const int RB_GETTEXTCOLOR = 0x416; | |
1541 public static const int RB_IDTOINDEX = 0x410; | |
1542 public static const int RB_INSERTBAND = IsUnicode ? 0x40a : 0x401; | |
1543 public static const int RB_MOVEBAND = 0x427; | |
1544 public static const int RB_SETBANDINFO = IsUnicode ? 0x40b : 0x406; | |
1545 public static const int RB_SETBKCOLOR = 0x413; | |
1546 public static const int RB_SETTEXTCOLOR = 0x415; | |
1547 public static const int RC_BITBLT = 0x1; | |
1548 public static const int RC_PALETTE = 0x100; | |
1549 public static const int RDW_ALLCHILDREN = 0x80; | |
1550 public static const int RDW_ERASE = 0x4; | |
1551 public static const int RDW_FRAME = 0x400; | |
1552 public static const int RDW_INVALIDATE = 0x1; | |
1553 public static const int RDW_UPDATENOW = 0x100; | |
1554 public static const int READ_CONTROL = 0x20000; | |
45 | 1555 public static const TCHAR[] REBARCLASSNAME = "ReBarWindow32"; //$NON-NLS-1$ |
3 | 1556 public static const int RGN_AND = 0x1; |
1557 public static const int RGN_COPY = 5; | |
1558 public static const int RGN_DIFF = 0x4; | |
1559 public static const int RGN_ERROR = 0; | |
1560 public static const int RGN_OR = 0x2; | |
1561 public static const int RP_BAND = 3; | |
1562 public static const int SBP_ARROWBTN = 0x1; | |
1563 public static const int SBP_THUMBBTNHORZ = 2; | |
1564 public static const int SBP_THUMBBTNVERT = 3; | |
1565 public static const int SBP_LOWERTRACKHORZ = 4; | |
1566 public static const int SBP_UPPERTRACKHORZ = 5; | |
1567 public static const int SBP_LOWERTRACKVERT = 6; | |
1568 public static const int SBP_UPPERTRACKVERT = 7; | |
1569 public static const int SBP_GRIPPERHORZ = 8; | |
1570 public static const int SBP_GRIPPERVERT = 9; | |
1571 public static const int SBP_SIZEBOX = 10; | |
1572 public static const int SBS_HORZ = 0x0; | |
1573 public static const int SBS_VERT = 0x1; | |
1574 public static const int SB_BOTH = 0x3; | |
1575 public static const int SB_BOTTOM = 0x7; | |
1576 public static const int SB_CTL = 0x2; | |
1577 public static const int SB_ENDSCROLL = 0x8; | |
1578 public static const int SB_HORZ = 0x0; | |
1579 public static const int SB_LINEDOWN = 0x1; | |
1580 public static const int SB_LINEUP = 0x0; | |
1581 public static const int SB_PAGEDOWN = 0x3; | |
1582 public static const int SB_PAGEUP = 0x2; | |
1583 public static const int SB_THUMBPOSITION = 0x4; | |
1584 public static const int SB_THUMBTRACK = 0x5; | |
1585 public static const int SB_TOP = 0x6; | |
1586 public static const int SB_VERT = 0x1; | |
1587 public static const int SCF_ALL = 0x4; | |
1588 public static const int SCF_DEFAULT = 0x0; | |
1589 public static const int SCF_SELECTION = 0x1; | |
1590 public static const int SC_CLOSE = 0xf060; | |
1591 public static const int SC_HSCROLL = 0xf080; | |
1592 public static const int SC_KEYMENU = 0xf100; | |
1593 public static const int SC_MAXIMIZE = 0xf030; | |
1594 public static const int SC_MINIMIZE = 0xf020; | |
1595 public static const int SC_NEXTWINDOW = 0xF040; | |
1596 public static const int SC_RESTORE = 0xf120; | |
1597 public static const int SC_SIZE = 0xf000; | |
1598 public static const int SC_TASKLIST = 0xf130; | |
1599 public static const int SC_VSCROLL = 0xf070; | |
1600 public static const int SCRBS_NORMAL = 1; | |
1601 public static const int SCRBS_HOT = 2; | |
1602 public static const int SCRBS_PRESSED = 3; | |
1603 public static const int SCRBS_DISABLED = 4; | |
1604 public static const int SEM_FAILCRITICALERRORS = 0x1; | |
1605 public static const int SET_FEATURE_ON_PROCESS = 0x2; | |
1606 public static const int SF_RTF = 0x2; | |
1607 public static const int SHCMBF_HIDDEN = 0x2; | |
1608 public static const int SHCMBM_OVERRIDEKEY = 0x400 + 403; | |
1609 public static const int SHCMBM_SETSUBMENU = 0x590; | |
1610 public static const int SHCMBM_GETSUBMENU = 0x591; | |
1611 public static const int SHGFI_ICON = 0x000000100; | |
1612 public static const int SHGFI_SMALLICON= 0x1; | |
1613 public static const int SHGFI_USEFILEATTRIBUTES = 0x000000010; | |
1614 public static const int SHMBOF_NODEFAULT = 0x1; | |
1615 public static const int SHMBOF_NOTIFY = 0x2; | |
1616 public static const int SHRG_RETURNCMD = 0x1; | |
1617 public static const int SIF_ALL = 0x17; | |
1618 public static const int SIF_DISABLENOSCROLL = 0x8; | |
1619 public static const int SIF_PAGE = 0x2; | |
1620 public static const int SIF_POS = 0x4; | |
1621 public static const int SIF_RANGE = 0x1; | |
1622 public static const int SIF_TRACKPOS = 0x10; | |
1623 public static const int SIP_DOWN = 1; | |
1624 public static const int SIP_UP = 0; | |
1625 public static const int SIPF_ON = 0x1; | |
1626 public static const int SIZE_RESTORED = 0; | |
1627 public static const int SIZE_MINIMIZED = 1; | |
1628 public static const int SIZE_MAXIMIZED = 2; | |
1629 public static const int SIZEPALETTE = 104; | |
1630 public static const int SM_CMONITORS = 80; | |
1631 public static const int SM_CXBORDER = 0x5; | |
1632 public static const int SM_CXCURSOR = 0xd; | |
1633 public static const int SM_CXDOUBLECLK = 36; | |
1634 public static const int SM_CYDOUBLECLK = 37; | |
1635 public static const int SM_CXEDGE = 0x2d; | |
1636 public static const int SM_CXHSCROLL = 0x15; | |
1637 public static const int SM_CXICON = 0x0b; | |
1638 public static const int SM_CYICON = 0x0c; | |
1639 public static const int SM_CXVIRTUALSCREEN = 78; | |
1640 public static const int SM_CYVIRTUALSCREEN = 79; | |
1641 public static const int SM_CXSMICON = 49; | |
1642 public static const int SM_CYSMICON = 50; | |
1643 public static const int SM_CXSCREEN = 0x0; | |
1644 public static const int SM_XVIRTUALSCREEN = 76; | |
1645 public static const int SM_YVIRTUALSCREEN = 77; | |
1646 public static const int SM_CXVSCROLL = 0x2; | |
1647 public static const int SM_CYBORDER = 0x6; | |
1648 public static const int SM_CYCURSOR = 0xe; | |
1649 public static const int SM_CYHSCROLL = 0x3; | |
1650 public static const int SM_CYMENU = 0xf; | |
1651 public static const int SM_CXMINTRACK = 34; | |
1652 public static const int SM_CYMINTRACK = 35; | |
1653 public static const int SM_CMOUSEBUTTONS = 43; | |
1654 public static const int SM_CYSCREEN = 0x1; | |
1655 public static const int SM_CYVSCROLL = 0x14; | |
1656 // public static const int SM_DBCSENABLED = 0x2A; | |
1657 // public static const int SM_IMMENABLED = 0x52; | |
1658 public static const int SPI_GETFONTSMOOTHINGTYPE = 0x200A; | |
1659 public static const int SPI_GETHIGHCONTRAST = 66; | |
1660 public static const int SPI_GETWORKAREA = 0x30; | |
1661 public static const int SPI_GETNONCLIENTMETRICS = 41; | |
1662 public static const int SPI_GETWHEELSCROLLLINES = 104; | |
1663 public static const int SPI_SETSIPINFO = 224; | |
1664 public static const int SPI_SETHIGHCONTRAST = 67; | |
1665 public static const int SRCAND = 0x8800c6; | |
1666 public static const int SRCCOPY = 0xcc0020; | |
1667 public static const int SRCINVERT = 0x660046; | |
1668 public static const int SRCPAINT = 0xee0086; | |
1669 public static const int SS_BITMAP = 0xe; | |
1670 public static const int SS_CENTER = 0x1; | |
1671 public static const int SS_CENTERIMAGE = 0x200; | |
1672 public static const int SS_EDITCONTROL = 0x2000; | |
1673 public static const int SS_ICON = 0x3; | |
1674 public static const int SS_LEFT = 0x0; | |
1675 public static const int SS_LEFTNOWORDWRAP = 0xc; | |
1676 public static const int SS_NOTIFY = 0x100; | |
1677 public static const int SS_OWNERDRAW = 0xd; | |
1678 public static const int SS_REALSIZEIMAGE = 0x800; | |
1679 public static const int SS_RIGHT = 0x2; | |
1680 public static const int STANDARD_RIGHTS_READ = 0x20000; | |
1681 public static const int STARTF_USESHOWWINDOW = 0x1; | |
1682 public static const int STD_COPY = 0x1; | |
1683 public static const int STD_CUT = 0x0; | |
1684 public static const int STD_FILENEW = 0x6; | |
1685 public static const int STD_FILEOPEN = 0x7; | |
1686 public static const int STD_FILESAVE = 0x8; | |
1687 public static const int STD_PASTE = 0x2; | |
1688 public static const int STM_GETIMAGE = 0x173; | |
1689 public static const int STM_SETIMAGE = 0x172; | |
1690 public static const int SWP_ASYNCWINDOWPOS = 0x4000; | |
1691 public static const int SWP_DRAWFRAME = 0x20; | |
1692 public static const int SWP_NOACTIVATE = 0x10; | |
1693 public static const int SWP_NOCOPYBITS = 0x100; | |
1694 public static const int SWP_NOMOVE = 0x2; | |
1695 public static const int SWP_NOREDRAW = 0x8; | |
1696 public static const int SWP_NOSIZE = 0x1; | |
1697 public static const int SWP_NOZORDER = 0x4; | |
1698 public static const int SW_ERASE = 0x4; | |
1699 public static const int SW_HIDE = 0x0; | |
1700 public static const int SW_INVALIDATE = 0x2; | |
1701 public static const int SW_MINIMIZE = 0x6; | |
1702 public static const int SW_PARENTOPENING = 0x3; | |
1703 public static const int SW_RESTORE = IsWinCE ? 0xd : 0x9; | |
1704 public static const int SW_SCROLLCHILDREN = 0x1; | |
1705 public static const int SW_SHOW = 0x5; | |
1706 public static const int SW_SHOWMAXIMIZED = IsWinCE ? 0xb : 0x3; | |
1707 public static const int SW_SHOWMINIMIZED = 0x2; | |
1708 public static const int SW_SHOWMINNOACTIVE = 0x7; | |
1709 public static const int SW_SHOWNA = 0x8; | |
1710 public static const int SW_SHOWNOACTIVATE = 0x4; | |
1711 public static const int SYNCHRONIZE = 0x100000; | |
1712 public static const int SYSRGN = 0x4; | |
1713 public static const int SYSTEM_FONT = 0xd; | |
1714 public static const int S_OK = 0x0; | |
1715 public static const int TABP_TABITEM = 1; | |
1716 public static const int TABP_TABITEMLEFTEDGE = 2; | |
1717 public static const int TABP_TABITEMRIGHTEDGE = 3; | |
1718 public static const int TABP_TABITEMBOTHEDGE = 4; | |
1719 public static const int TABP_TOPTABITEM = 5; | |
1720 public static const int TABP_TOPTABITEMLEFTEDGE = 6; | |
1721 public static const int TABP_TOPTABITEMRIGHTEDGE = 7; | |
1722 public static const int TABP_TOPTABITEMBOTHEDGE = 8; | |
1723 public static const int TABP_PANE = 9; | |
1724 public static const int TABP_BODY = 10; | |
1725 public static const int TBIF_COMMAND = 0x20; | |
1726 public static const int TBIF_STATE = 0x4; | |
1727 public static const int TBIF_IMAGE = 0x1; | |
1728 public static const int TBIF_LPARAM = 0x10; | |
1729 public static const int TBIF_SIZE = 0x40; | |
1730 public static const int TBIF_STYLE = 0x8; | |
1731 public static const int TBIF_TEXT = 0x2; | |
1732 public static const int TB_GETEXTENDEDSTYLE = 0x400 + 85; | |
1733 public static const int TBM_GETLINESIZE = 0x418; | |
1734 public static const int TBM_GETPAGESIZE = 0x416; | |
1735 public static const int TBM_GETPOS = 0x400; | |
1736 public static const int TBM_GETRANGEMAX = 0x402; | |
1737 public static const int TBM_GETRANGEMIN = 0x401; | |
1738 public static const int TBM_GETTHUMBRECT = 0x419; | |
1739 public static const int TBM_SETLINESIZE = 0x417; | |
1740 public static const int TBM_SETPAGESIZE = 0x415; | |
1741 public static const int TBM_SETPOS = 0x405; | |
1742 public static const int TBM_SETRANGEMAX = 0x408; | |
1743 public static const int TBM_SETRANGEMIN = 0x407; | |
1744 public static const int TBM_SETTICFREQ = 0x414; | |
1745 public static const int TBN_DROPDOWN = 0xfffffd3a; | |
1746 public static const int TBN_FIRST = 0xfffffd44; | |
1747 public static const int TBN_HOTITEMCHANGE = 0xFFFFFD37; | |
1748 public static const int TBSTATE_CHECKED = 0x1; | |
1749 public static const int TBSTATE_PRESSED = 0x02; | |
1750 public static const int TBSTYLE_CUSTOMERASE = 0x2000; | |
1751 public static const int TBSTYLE_DROPDOWN = 0x8; | |
1752 public static const int TBSTATE_ENABLED = 0x4; | |
1753 public static const int TBSTYLE_AUTOSIZE = 0x10; | |
19 | 1754 public static const int TBSTYLE_EX_DOUBLEBUFFER = 0x80; |
3 | 1755 public static const int TBSTYLE_EX_DRAWDDARROWS = 0x1; |
1756 public static const int TBSTYLE_EX_HIDECLIPPEDBUTTONS = 0x10; | |
1757 public static const int TBSTYLE_EX_MIXEDBUTTONS = 0x8; | |
1758 public static const int TBSTYLE_FLAT = 0x800; | |
1759 public static const int TBSTYLE_LIST = 0x1000; | |
1760 public static const int TBSTYLE_TOOLTIPS = 0x100; | |
1761 public static const int TBSTYLE_TRANSPARENT = 0x8000; | |
1762 public static const int TBSTYLE_WRAPABLE = 0x200; | |
1763 public static const int TBS_AUTOTICKS = 0x1; | |
1764 public static const int TBS_BOTH = 0x8; | |
1765 public static const int TBS_DOWNISLEFT = 0x0400; | |
1766 public static const int TBS_HORZ = 0x0; | |
1767 public static const int TBS_VERT = 0x2; | |
1768 public static const int TB_ADDSTRING = IsUnicode ? 0x44d : 0x41c; | |
1769 public static const int TB_AUTOSIZE = 0x421; | |
1770 public static const int TB_BUTTONCOUNT = 0x418; | |
1771 public static const int TB_BUTTONSTRUCTSIZE = 0x41e; | |
1772 public static const int TB_COMMANDTOINDEX = 0x419; | |
1773 public static const int TB_DELETEBUTTON = 0x416; | |
1774 public static const int TB_ENDTRACK = 0x8; | |
1775 public static const int TB_GETBUTTON = 0x417; | |
1776 public static const int TB_GETBUTTONINFO = IsUnicode ? 0x43f : 0x441; | |
1777 public static const int TB_GETBUTTONSIZE = 0x43a; | |
1778 public static const int TB_GETBUTTONTEXT = IsUnicode ? 0x44b : 0x42d; | |
1779 public static const int TB_GETDISABLEDIMAGELIST = 0x437; | |
1780 public static const int TB_GETHOTIMAGELIST = 0x435; | |
1781 public static const int TB_GETHOTITEM = 0x0400 + 71; | |
1782 public static const int TB_GETIMAGELIST = 0x431; | |
1783 public static const int TB_GETITEMRECT = 0x41d; | |
1784 public static const int TB_GETPADDING = 0x0400 + 86; | |
1785 public static const int TB_GETROWS = 0x428; | |
1786 public static const int TB_GETSTATE = 0x412; | |
1787 public static const int TB_GETTOOLTIPS = 0x423; | |
1788 public static const int TB_INSERTBUTTON = IsUnicode ? 0x443 : 0x415; | |
1789 public static const int TB_LOADIMAGES = 0x432; | |
1790 public static const int TB_MAPACCELERATOR = 0x0400 + (IsUnicode ? 90 : 78); | |
1791 public static const int TB_SETBITMAPSIZE = 0x420; | |
1792 public static const int TB_SETBUTTONINFO = IsUnicode ? 0x440 : 0x442; | |
1793 public static const int TB_SETBUTTONSIZE = 0x41f; | |
1794 public static const int TB_SETDISABLEDIMAGELIST = 0x436; | |
1795 public static const int TB_SETEXTENDEDSTYLE = 0x454; | |
1796 public static const int TB_SETHOTIMAGELIST = 0x434; | |
1797 public static const int TB_SETHOTITEM = 0x0400 + 72; | |
1798 public static const int TB_SETIMAGELIST = 0x430; | |
1799 public static const int TB_SETPARENT = 0x400 + 37; | |
1800 public static const int TB_SETROWS = 0x427; | |
1801 public static const int TB_SETSTATE = 0x411; | |
1802 public static const int TB_THUMBPOSITION = 0x4; | |
1803 public static const int TCIF_IMAGE = 0x2; | |
1804 public static const int TCIF_TEXT = 0x1; | |
1805 public static const int TCI_SRCCHARSET = 0x1; | |
1806 public static const int TCI_SRCCODEPAGE = 0x2; | |
1807 public static const int TCM_ADJUSTRECT = 0x1328; | |
1808 public static const int TCM_DELETEITEM = 0x1308; | |
1809 public static const int TCM_GETCURSEL = 0x130b; | |
1810 public static const int TCM_GETITEMCOUNT = 0x1304; | |
1811 public static const int TCM_GETITEMRECT = 0x130a; | |
1812 public static const int TCM_GETTOOLTIPS = 0x132d; | |
1813 public static const int TCM_INSERTITEM = IsUnicode ? 0x133e : 0x1307; | |
1814 public static const int TCM_SETCURSEL = 0x130c; | |
1815 public static const int TCM_SETIMAGELIST = 0x1303; | |
1816 public static const int TCM_SETITEM = IsUnicode ? 0x133d : 0x1306; | |
1817 public static const int TCN_SELCHANGE = 0xfffffdd9; | |
1818 public static const int TCN_SELCHANGING = 0xfffffdd8; | |
1819 public static const int TCS_BOTTOM = 0x0002; | |
1820 public static const int TCS_FOCUSNEVER = 0x8000; | |
1821 public static const int TCS_MULTILINE = 0x200; | |
1822 public static const int TCS_TABS = 0x0; | |
1823 public static const int TCS_TOOLTIPS = 0x4000; | |
1824 public static const int TECHNOLOGY = 0x2; | |
1825 public static const int TIME_NOSECONDS = 0x2; | |
1826 public static const int TIS_NORMAL = 1; | |
1827 public static const int TIS_HOT = 2; | |
1828 public static const int TIS_SELECTED = 3; | |
1829 public static const int TIS_DISABLED = 4; | |
1830 public static const int TIS_FOCUSED = 5; | |
1831 public static const int TKP_TRACK = 1; | |
1832 public static const int TKP_TRACKVERT = 2; | |
1833 public static const int TKP_THUMB = 3; | |
1834 public static const int TKP_THUMBBOTTOM = 4; | |
1835 public static const int TKP_THUMBTOP = 5; | |
1836 public static const int TKP_THUMBVERT = 6; | |
1837 public static const int TKP_THUMBLEFT = 7; | |
1838 public static const int TKP_THUMBRIGHT = 8; | |
1839 public static const int TKP_TICS = 9; | |
1840 public static const int TKP_TICSVERT = 10; | |
1841 public static const int TME_HOVER = 0x1; | |
1842 public static const int TME_LEAVE = 0x2; | |
1843 public static const int TME_QUERY = 0x40000000; | |
1844 public static const int TMPF_VECTOR = 0x2; | |
1845 public static const int TMT_CONTENTMARGINS = 3602; | |
67
3f4e6a4ecc09
Table, TableItem, TableColumn
Frank Benoit <benoit@tionex.de>
parents:
65
diff
changeset
|
1846 public static const TCHAR[] TOOLBARCLASSNAME = "ToolbarWindow32"; //$NON-NLS-1$ |
3f4e6a4ecc09
Table, TableItem, TableColumn
Frank Benoit <benoit@tionex.de>
parents:
65
diff
changeset
|
1847 public static const TCHAR[] TOOLTIPS_CLASS = "tooltips_class32"; //$NON-NLS-1$ |
3 | 1848 public static const int TP_BUTTON = 1; |
1849 public static const int TP_DROPDOWNBUTTON = 2; | |
1850 public static const int TP_SPLITBUTTON = 3; | |
1851 public static const int TP_SPLITBUTTONDROPDOWN = 4; | |
1852 public static const int TP_SEPARATOR = 5; | |
1853 public static const int TP_SEPARATORVERT = 6; | |
1854 public static const int TPM_LEFTALIGN = 0x0; | |
1855 public static const int TPM_LEFTBUTTON = 0x0; | |
1856 public static const int TPM_RIGHTBUTTON = 0x2; | |
1857 public static const int TPM_RIGHTALIGN = 0x8; | |
63 | 1858 public static const TCHAR[] TRACKBAR_CLASS = "msctls_trackbar32"; //$NON-NLS-1$ |
3 | 1859 public static const int TRANSPARENT = 0x1; |
1860 public static const int TREIS_DISABLED = 4; | |
1861 public static const int TREIS_HOT = 2; | |
1862 public static const int TREIS_NORMAL = 1; | |
1863 public static const int TREIS_SELECTED = 3; | |
1864 public static const int TREIS_SELECTEDNOTFOCUS = 5; | |
1865 public static const int TS_MIN = 0; | |
1866 public static const int TS_TRUE = 1; | |
1867 public static const int TS_DRAW = 2; | |
1868 public static const int TS_NORMAL = 1; | |
1869 public static const int TS_HOT = 2; | |
1870 public static const int TS_PRESSED = 3; | |
1871 public static const int TS_DISABLED = 4; | |
1872 public static const int TS_CHECKED = 5; | |
1873 public static const int TS_HOTCHECKED = 6; | |
1874 public static const int TTDT_AUTOMATIC = 0; | |
1875 public static const int TTDT_RESHOW = 1; | |
1876 public static const int TTDT_AUTOPOP = 2; | |
1877 public static const int TTDT_INITIAL = 3; | |
1878 public static const int TTF_ABSOLUTE = 0x80; | |
1879 public static const int TTF_IDISHWND = 0x1; | |
1880 public static const int TTF_SUBCLASS = 0x10; | |
1881 public static const int TTF_RTLREADING = 0x4; | |
1882 public static const int TTF_TRACK = 0x20; | |
1883 public static const int TTF_TRANSPARENT = 0x100; | |
1884 public static const int TTI_NONE = 0; | |
1885 public static const int TTI_INFO = 1; | |
1886 public static const int TTI_WARNING = 2; | |
1887 public static const int TTI_ERROR= 3; | |
1888 public static const int TTM_ACTIVATE = 0x400 + 1; | |
1889 public static const int TTM_ADDTOOL = IsUnicode ? 0x432 : 0x404; | |
1890 public static const int TTM_GETCURRENTTOOLA = 0x400 + 15; | |
1891 public static const int TTM_GETCURRENTTOOLW = 0x400 + 59; | |
1892 public static const int TTM_GETCURRENTTOOL = 0x400 + (IsUnicode ? 59 : 15); | |
1893 public static const int TTM_GETDELAYTIME = 0x400 + 21; | |
1894 public static const int TTM_DELTOOL = IsUnicode ? 0x433 : 0x405; | |
1895 public static const int TTM_GETTOOLINFO = 0x400 + (IsUnicode ? 53 : 8); | |
1896 public static const int TTM_NEWTOOLRECT = 0x400 + (IsUnicode ? 52 : 6); | |
19 | 1897 public static const int TTM_POP = 0x400 + 28; |
3 | 1898 public static const int TTM_SETDELAYTIME = 0x400 + 3; |
1899 public static const int TTM_SETMAXTIPWIDTH = 0x418; | |
1900 public static const int TTM_SETTITLEA = 0x400 + 32; | |
1901 public static const int TTM_SETTITLEW = 0x400 + 33; | |
1902 public static const int TTM_SETTITLE = 0x400 + (IsUnicode ? 33 : 32); | |
1903 public static const int TTM_TRACKPOSITION = 1042; | |
1904 public static const int TTM_TRACKACTIVATE = 1041; | |
1905 public static const int TTM_UPDATE = 0x41D; | |
1906 public static const int TTN_FIRST = 0xfffffdf8; | |
1907 public static const int TTN_GETDISPINFO = IsUnicode ? 0xfffffdee : 0xfffffdf8; | |
1908 public static const int TTN_GETDISPINFOW = 0xfffffdee; | |
1909 public static const int TTN_GETDISPINFOA = 0xfffffdf8; | |
1910 public static const int TTN_POP = TTN_FIRST - 2; | |
1911 public static const int TTN_SHOW = TTN_FIRST - 1; | |
1912 public static const int TTS_ALWAYSTIP = 0x1; | |
1913 public static const int TTS_BALLOON = 0x40; | |
1914 public static const int TV_FIRST = 0x1100; | |
1915 public static const int TVE_COLLAPSE = 0x1; | |
1916 public static const int TVE_COLLAPSERESET = 0x8000; | |
1917 public static const int TVE_EXPAND = 0x2; | |
1918 public static const int TVGN_CARET = 0x9; | |
1919 public static const int TVGN_CHILD = 0x4; | |
1920 public static const int TVGN_DROPHILITED = 0x8; | |
1921 public static const int TVGN_FIRSTVISIBLE = 0x5; | |
1922 public static const int TVGN_LASTVISIBLE = 0xa; | |
1923 public static const int TVGN_NEXT = 0x1; | |
1924 public static const int TVGN_NEXTVISIBLE = 0x6; | |
1925 public static const int TVGN_PARENT = 0x3; | |
1926 public static const int TVGN_PREVIOUS = 0x2; | |
1927 public static const int TVGN_PREVIOUSVISIBLE = 0x7; | |
1928 public static const int TVGN_ROOT = 0x0; | |
1929 public static const int TVHT_ONITEM = 0x46; | |
1930 public static const int TVHT_ONITEMBUTTON = 16; | |
1931 public static const int TVHT_ONITEMICON = 0x2; | |
1932 public static const int TVHT_ONITEMLABEL = 0x4; | |
1933 public static const int TVHT_ONITEMSTATEICON = 0x40; | |
1934 public static const int TVIF_HANDLE = 0x10; | |
1935 public static const int TVIF_IMAGE = 0x2; | |
1936 public static const int TVIF_INTEGRAL = 0x0080; | |
1937 public static const int TVIF_PARAM = 0x4; | |
1938 public static const int TVIF_SELECTEDIMAGE = 0x20; | |
1939 public static const int TVIF_STATE = 0x8; | |
1940 public static const int TVIF_TEXT = 0x1; | |
1941 public static const int TVIS_DROPHILITED = 0x8; | |
1942 public static const int TVIS_EXPANDED = 0x20; | |
1943 public static const int TVIS_SELECTED = 0x2; | |
1944 public static const int TVIS_STATEIMAGEMASK = 0xf000; | |
1945 public static const int TVI_FIRST = 0xffff0001; | |
1946 public static const int TVI_LAST = 0xffff0002; | |
1947 public static const int TVI_ROOT = 0xffff0000; | |
1948 public static const int TVI_SORT = 0xFFFF0003; | |
1949 public static const int TVM_CREATEDRAGIMAGE = TV_FIRST + 18; | |
1950 public static const int TVM_DELETEITEM = 0x1101; | |
1951 public static const int TVM_ENSUREVISIBLE = 0x1114; | |
1952 public static const int TVM_EXPAND = 0x1102; | |
1953 public static const int TVM_GETBKCOLOR = 0x111f; | |
1954 public static const int TVM_GETCOUNT = 0x1105; | |
1955 public static const int TVM_GETEXTENDEDSTYLE = TV_FIRST + 45; | |
1956 public static const int TVM_GETIMAGELIST = 0x1108; | |
1957 public static const int TVM_GETITEM = IsUnicode ? 0x113e : 0x110c; | |
1958 public static const int TVM_GETITEMHEIGHT = 0x111c; | |
1959 public static const int TVM_GETITEMRECT = 0x1104; | |
1960 public static const int TVM_GETITEMSTATE = TV_FIRST + 39; | |
1961 public static const int TVM_GETNEXTITEM = 0x110a; | |
1962 public static const int TVM_GETTEXTCOLOR = 0x1120; | |
1963 public static const int TVM_GETTOOLTIPS = TV_FIRST + 25; | |
1964 public static const int TVM_GETVISIBLECOUNT = TV_FIRST + 16; | |
1965 public static const int TVM_HITTEST = 0x1111; | |
1966 public static const int TVM_INSERTITEM = IsUnicode ? 0x1132 : 0x1100; | |
1967 public static const int TVM_MAPACCIDTOHTREEITEM = TV_FIRST + 42; | |
1968 public static const int TVM_MAPHTREEITEMTOACCID = TV_FIRST + 43; | |
1969 public static const int TVM_SELECTITEM = 0x110b; | |
1970 public static const int TVM_SETBKCOLOR = 0x111d; | |
1971 public static const int TVM_SETEXTENDEDSTYLE = TV_FIRST + 44; | |
1972 public static const int TVM_SETIMAGELIST = 0x1109; | |
1973 public static const int TVM_SETINSERTMARK = 0x111a; | |
1974 public static const int TVM_SETITEM = IsUnicode ? 0x113f : 0x110d; | |
1975 public static const int TVM_SETITEMHEIGHT = TV_FIRST + 27; | |
1976 public static const int TVM_SETSCROLLTIME = TV_FIRST + 33; | |
1977 public static const int TVM_SETTEXTCOLOR = 0x111e; | |
1978 public static const int TVM_SORTCHILDREN = TV_FIRST + 19; | |
1979 public static const int TVM_SORTCHILDRENCB = TV_FIRST + 21; | |
1980 public static const int TVN_BEGINDRAGW = 0xfffffe38; | |
1981 public static const int TVN_BEGINDRAGA = 0xfffffe69; | |
1982 public static const int TVN_BEGINRDRAGW = 0xfffffe37; | |
1983 public static const int TVN_BEGINRDRAGA = 0xfffffe68; | |
1984 public static const int TVN_FIRST = 0xfffffe70; | |
1985 public static const int TVN_GETDISPINFOA = TVN_FIRST - 3; | |
1986 public static const int TVN_GETDISPINFOW = TVN_FIRST - 52; | |
1987 public static const int TVN_ITEMCHANGINGW = TVN_FIRST - 17; | |
1988 public static const int TVN_ITEMCHANGINGA = TVN_FIRST - 16; | |
1989 public static const int TVN_ITEMEXPANDEDA = TVN_FIRST -6; | |
1990 public static const int TVN_ITEMEXPANDEDW = TVN_FIRST - 55; | |
1991 public static const int TVN_ITEMEXPANDINGW = 0xfffffe3a; | |
1992 public static const int TVN_ITEMEXPANDINGA = 0xfffffe6b; | |
1993 public static const int TVN_SELCHANGEDW = 0xfffffe3d; | |
1994 public static const int TVN_SELCHANGEDA = 0xfffffe6e; | |
1995 public static const int TVN_SELCHANGINGW = 0xfffffe3e; | |
1996 public static const int TVN_SELCHANGINGA = 0xfffffe6f; | |
1997 public static const int TVP_GLYPH = 2; | |
1998 public static const int TVP_TREEITEM = 1; | |
1999 public static const int TVSIL_NORMAL = 0x0; | |
2000 public static const int TVSIL_STATE = 0x2; | |
2001 public static const int TVS_DISABLEDRAGDROP = 0x10; | |
2002 public static const int TVS_EX_AUTOHSCROLL = 0x0020; | |
2003 public static const int TVS_EX_DOUBLEBUFFER = 0x0004; | |
2004 public static const int TVS_EX_DIMMEDCHECKBOXES = 0x0200; | |
2005 public static const int TVS_EX_DRAWIMAGEASYNC = 0x0400; | |
2006 public static const int TVS_EX_EXCLUSIONCHECKBOXES = 0x0100; | |
2007 public static const int TVS_EX_FADEINOUTEXPANDOS = 0x0040; | |
2008 public static const int TVS_EX_MULTISELECT = 0x0002; | |
2009 public static const int TVS_EX_NOINDENTSTATE = 0x0008; | |
2010 public static const int TVS_EX_PARTIALCHECKBOXES = 0x0080; | |
2011 public static const int TVS_EX_RICHTOOLTIP = 0x0010; | |
2012 public static const int TVS_FULLROWSELECT = 0x1000; | |
2013 public static const int TVS_HASBUTTONS = 0x1; | |
2014 public static const int TVS_HASLINES = 0x2; | |
2015 public static const int TVS_LINESATROOT = 0x4; | |
2016 public static const int TVS_NOHSCROLL = 0x8000; | |
2017 public static const int TVS_NONEVENHEIGHT = 0x4000; | |
2018 public static const int TVS_NOTOOLTIPS = 0x80; | |
2019 public static const int TVS_SHOWSELALWAYS = 0x20; | |
2020 public static const int TVS_TRACKSELECT = 0x200; | |
2021 public static const int UDM_GETACCEL = 0x046C; | |
2022 public static const int UDM_GETRANGE32 = 0x0470; | |
2023 public static const int UDM_GETPOS = 0x468; | |
2024 public static const int UDM_GETPOS32 = 0x0472; | |
2025 public static const int UDM_SETACCEL = 0x046B; | |
2026 public static const int UDM_SETRANGE32 = 0x046f; | |
2027 public static const int UDM_SETPOS = 0x467; | |
2028 public static const int UDM_SETPOS32 = 0x0471; | |
2029 public static const int UDN_DELTAPOS = -722; | |
2030 public static const int UDS_ALIGNLEFT = 0x008; | |
2031 public static const int UDS_ALIGNRIGHT = 0x004; | |
2032 public static const int UDS_AUTOBUDDY = 0x0010; | |
2033 public static const int UDS_WRAP = 0x0001; | |
2034 public static const int UIS_INITIALIZE = 3; | |
2035 public static const int UISF_HIDEACCEL = 0x2; | |
2036 public static const int UISF_HIDEFOCUS = 0x1; | |
65 | 2037 public static const TCHAR[] UPDOWN_CLASS = "msctls_updown32"; //$NON-NLS-1$ |
3 | 2038 public static const int USP_E_SCRIPT_NOT_IN_FONT = 0x80040200; |
2039 public static const int VERTRES = 0xa; | |
2040 public static const int VK_BACK = 0x8; | |
2041 public static const int VK_CANCEL = 0x3; | |
2042 public static const int VK_CAPITAL = 0x14; | |
2043 public static const int VK_CONTROL = 0x11; | |
2044 public static const int VK_DECIMAL = 0x6E; | |
2045 public static const int VK_DELETE = 0x2e; | |
2046 public static const int VK_DIVIDE = 0x6f; | |
2047 public static const int VK_DOWN = 0x28; | |
2048 public static const int VK_END = 0x23; | |
2049 public static const int VK_ESCAPE = 0x1b; | |
2050 public static const int VK_F1 = 0x70; | |
2051 public static const int VK_F10 = 0x79; | |
2052 public static const int VK_F11 = 0x7a; | |
2053 public static const int VK_F12 = 0x7b; | |
2054 public static const int VK_F13 = 0x7c; | |
2055 public static const int VK_F14 = 0x7d; | |
2056 public static const int VK_F15 = 0x7e; | |
2057 public static const int VK_F2 = 0x71; | |
2058 public static const int VK_F3 = 0x72; | |
2059 public static const int VK_F4 = 0x73; | |
2060 public static const int VK_F5 = 0x74; | |
2061 public static const int VK_F6 = 0x75; | |
2062 public static const int VK_F7 = 0x76; | |
2063 public static const int VK_F8 = 0x77; | |
2064 public static const int VK_F9 = 0x78; | |
2065 public static const int VK_HOME = 0x24; | |
2066 public static const int VK_INSERT = 0x2d; | |
2067 public static const int VK_LBUTTON = 0x1; | |
2068 public static const int VK_LEFT = 0x25; | |
2069 public static const int VK_MBUTTON = 0x4; | |
2070 public static const int VK_MENU = 0x12; | |
2071 public static const int VK_MULTIPLY = 0x6A; | |
2072 public static const int VK_N = 0x4e; | |
2073 public static const int VK_O = 0x4f; | |
2074 public static const int VK_NEXT = 0x22; | |
2075 public static const int VK_NUMLOCK = 0x90; | |
2076 public static const int VK_NUMPAD0 = 0x60; | |
2077 public static const int VK_NUMPAD1 = 0x61; | |
2078 public static const int VK_NUMPAD2 = 0x62; | |
2079 public static const int VK_NUMPAD3 = 0x63; | |
2080 public static const int VK_NUMPAD4 = 0x64; | |
2081 public static const int VK_NUMPAD5 = 0x65; | |
2082 public static const int VK_NUMPAD6 = 0x66; | |
2083 public static const int VK_NUMPAD7 = 0x67; | |
2084 public static const int VK_NUMPAD8 = 0x68; | |
2085 public static const int VK_NUMPAD9 = 0x69; | |
2086 public static const int VK_PAUSE = 0x13; | |
2087 public static const int VK_PRIOR = 0x21; | |
2088 public static const int VK_RBUTTON = 0x2; | |
2089 public static const int VK_RETURN = 0xd; | |
2090 public static const int VK_RIGHT = 0x27; | |
2091 public static const int VK_SCROLL = 0x91; | |
2092 public static const int VK_SEPARATOR = 0x6C; | |
2093 public static const int VK_SHIFT = 0x10; | |
2094 public static const int VK_SNAPSHOT = 0x2C; | |
2095 public static const int VK_SPACE = 0x20; | |
2096 public static const int VK_SUBTRACT = 0x6D; | |
2097 public static const int VK_TAB = 0x9; | |
2098 public static const int VK_UP = 0x26; | |
2099 public static const int VK_XBUTTON1 = 0x05; | |
2100 public static const int VK_XBUTTON2 = 0x06; | |
2101 public static const int VK_ADD = 0x6B; | |
2102 public static const int VK_APP1 = 0xc1; | |
2103 public static const int VK_APP2 = 0xc2; | |
2104 public static const int VK_APP3 = 0xc3; | |
2105 public static const int VK_APP4 = 0xc4; | |
2106 public static const int VK_APP5 = 0xc5; | |
2107 public static const int VK_APP6 = 0xc6; | |
52 | 2108 public static const TCHAR[] WC_HEADER = "SysHeader32"; //$NON-NLS-1$ |
2109 public static const TCHAR[] WC_LINK = "SysLink"; //$NON-NLS-1$ | |
2110 public static const TCHAR[] WC_LISTVIEW = "SysListView32"; //$NON-NLS-1$ | |
2111 public static const TCHAR[] WC_TABCONTROL = "SysTabControl32"; //$NON-NLS-1$ | |
2112 public static const TCHAR[] WC_TREEVIEW = "SysTreeView32"; //$NON-NLS-1$ | |
3 | 2113 public static const int WINDING = 2; |
2114 public static const int WH_CBT = 5; | |
2115 public static const int WH_GETMESSAGE = 0x3; | |
2116 public static const int WH_MSGFILTER = 0xFFFFFFFF; | |
2117 public static const int WH_FOREGROUNDIDLE = 11; | |
2118 public static const int WHEEL_DELTA = 120; | |
2119 public static const int WHEEL_PAGESCROLL = 0xFFFFFFFF; | |
2120 public static const int WHITE_BRUSH = 0; | |
2121 public static const int WM_ACTIVATE = 0x6; | |
2122 public static const int WM_ACTIVATEAPP = 0x1c; | |
2123 public static const int WM_APP = 0x8000; | |
2124 public static const int WM_CANCELMODE = 0x1f; | |
2125 public static const int WM_CAPTURECHANGED = 0x0215; | |
2126 public static const int WM_CHANGEUISTATE = 0x0127; | |
2127 public static const int WM_CHAR = 0x102; | |
2128 public static const int WM_CLEAR = 0x303; | |
2129 public static const int WM_CLOSE = 0x10; | |
2130 public static const int WM_COMMAND = 0x111; | |
2131 public static const int WM_CONTEXTMENU = 0x7b; | |
2132 public static const int WM_COPY = 0x301; | |
19 | 2133 public static const int WM_CREATE = 0x0001; |
3 | 2134 public static const int WM_CTLCOLORBTN = 0x135; |
2135 public static const int WM_CTLCOLORDLG = 0x136; | |
2136 public static const int WM_CTLCOLOREDIT = 0x133; | |
2137 public static const int WM_CTLCOLORLISTBOX = 0x134; | |
2138 public static const int WM_CTLCOLORMSGBOX = 0x132; | |
2139 public static const int WM_CTLCOLORSCROLLBAR = 0x137; | |
2140 public static const int WM_CTLCOLORSTATIC = 0x138; | |
2141 public static const int WM_CUT = 0x300; | |
2142 public static const int WM_DEADCHAR = 0x103; | |
2143 public static const int WM_DESTROY = 0x2; | |
2144 public static const int WM_DRAWITEM = 0x2b; | |
2145 public static const int WM_ENDSESSION = 0x16; | |
2146 public static const int WM_ENTERIDLE = 0x121; | |
2147 public static const int WM_ERASEBKGND = 0x14; | |
2148 public static const int WM_GETDLGCODE = 0x87; | |
2149 public static const int WM_GETFONT = 0x31; | |
2150 // public static const int WM_GETICON = 0x7f; | |
2151 public static const int WM_GETOBJECT = 0x003D; | |
2152 public static const int WM_GETMINMAXINFO = 0x0024; | |
2153 public static const int WM_HELP = 0x53; | |
2154 public static const int WM_HOTKEY = 0x0312; | |
2155 public static const int WM_HSCROLL = 0x114; | |
2156 public static const int WM_IME_CHAR = 0x286; | |
2157 public static const int WM_IME_COMPOSITION = 0x10f; | |
2158 public static const int WM_INITDIALOG = 0x110; | |
2159 public static const int WM_INITMENUPOPUP = 0x117; | |
2160 public static const int WM_INPUTLANGCHANGE = 0x51; | |
2161 public static const int WM_KEYDOWN = 0x100; | |
2162 public static const int WM_KEYFIRST = 0x100; | |
2163 public static const int WM_KEYLAST = 0x108; | |
2164 public static const int WM_KEYUP = 0x101; | |
2165 public static const int WM_KILLFOCUS = 0x8; | |
2166 public static const int WM_LBUTTONDBLCLK = 0x203; | |
2167 public static const int WM_LBUTTONDOWN = 0x201; | |
2168 public static const int WM_LBUTTONUP = 0x202; | |
2169 public static const int WM_MBUTTONDBLCLK = 0x209; | |
2170 public static const int WM_MBUTTONDOWN = 0x207; | |
2171 public static const int WM_MBUTTONUP = 0x208; | |
2172 public static const int WM_MEASUREITEM = 0x2c; | |
2173 public static const int WM_MENUCHAR = 0x120; | |
2174 public static const int WM_MENUSELECT = 0x11f; | |
2175 public static const int WM_MOUSEACTIVATE = 0x21; | |
2176 public static const int WM_MOUSEFIRST = 0x200; | |
2177 public static const int WM_MOUSEHOVER = 0x2a1; | |
2178 public static const int WM_MOUSELEAVE = 0x2a3; | |
2179 public static const int WM_MOUSEMOVE = 0x200; | |
2180 public static const int WM_MOUSEWHEEL = 0x20a; | |
2181 public static const int WM_MOUSELAST = 0x20d; | |
2182 public static const int WM_MOVE = 0x3; | |
2183 public static const int WM_NCACTIVATE = 0x86; | |
2184 public static const int WM_NCCALCSIZE = 0x83; | |
2185 public static const int WM_NCHITTEST = 0x84; | |
2186 public static const int WM_NCLBUTTONDOWN = 0x00A1; | |
2187 public static const int WM_NCPAINT = 0x85; | |
2188 public static const int WM_NOTIFY = 0x4e; | |
2189 public static const int WM_NULL = 0x0; | |
2190 public static const int WM_PAINT = 0xf; | |
2191 public static const int WM_PALETTECHANGED = 0x311; | |
2192 public static const int WM_PARENTNOTIFY = 0x0210; | |
2193 public static const int WM_PASTE = 0x302; | |
2194 public static const int WM_PRINT = 0x0317; | |
2195 public static const int WM_PRINTCLIENT = 0x0318; | |
2196 public static const int WM_QUERYENDSESSION = 0x11; | |
2197 public static const int WM_QUERYNEWPALETTE = 0x30f; | |
2198 public static const int WM_QUERYOPEN = 0x13; | |
2199 public static const int WM_QUERYUISTATE = 0x129; | |
2200 public static const int WM_RBUTTONDBLCLK = 0x206; | |
2201 public static const int WM_RBUTTONDOWN = 0x204; | |
2202 public static const int WM_RBUTTONUP = 0x205; | |
2203 public static const int WM_SETCURSOR = 0x20; | |
2204 public static const int WM_SETFOCUS = 0x7; | |
2205 public static const int WM_SETFONT = 0x30; | |
2206 public static const int WM_SETICON = 0x80; | |
2207 public static const int WM_SETREDRAW = 0xb; | |
2208 public static const int WM_SETTEXT = 12; | |
2209 public static const int WM_SETTINGCHANGE = 0x1A; | |
2210 public static const int WM_SHOWWINDOW = 0x18; | |
2211 public static const int WM_SIZE = 0x5; | |
2212 public static const int WM_SYSCHAR = 0x106; | |
2213 public static const int WM_SYSCOLORCHANGE = 0x15; | |
2214 public static const int WM_SYSCOMMAND = 0x112; | |
2215 public static const int WM_SYSKEYDOWN = 0x104; | |
2216 public static const int WM_SYSKEYUP = 0x105; | |
2217 public static const int WM_TIMER = 0x113; | |
2218 public static const int WM_THEMECHANGED = 0x031a; | |
2219 public static const int WM_UNDO = 0x304; | |
2220 public static const int WM_UPDATEUISTATE = 0x0128; | |
2221 public static const int WM_USER = 0x400; | |
2222 public static const int WM_VSCROLL = 0x115; | |
2223 public static const int WM_WINDOWPOSCHANGED = 0x47; | |
2224 public static const int WM_WINDOWPOSCHANGING = 0x46; | |
2225 public static const int WS_BORDER = 0x800000; | |
2226 public static const int WS_CAPTION = 0xc00000; | |
2227 public static const int WS_CHILD = 0x40000000; | |
15 | 2228 public static const int WS_MINIMIZE = 0x20000000; //PORTING_TODO: from dwt, why? |
3 | 2229 public static const int WS_CLIPCHILDREN = 0x2000000; |
2230 public static const int WS_CLIPSIBLINGS = 0x4000000; | |
2231 public static const int WS_DISABLED = 0x4000000; | |
2232 public static const int WS_EX_CAPTIONOKBTN = 0x80000000; | |
2233 public static const int WS_EX_CLIENTEDGE = 0x200; | |
2234 public static const int WS_EX_DLGMODALFRAME = 0x1; | |
2235 public static const int WS_EX_LAYERED = 0x00080000; | |
2236 public static const int WS_EX_LAYOUTRTL = 0x00400000; | |
2237 public static const int WS_EX_LEFTSCROLLBAR = 0x00004000; | |
2238 public static const int WS_EX_MDICHILD = 0x00000040; | |
2239 public static const int WS_EX_NOINHERITLAYOUT = 0x00100000; | |
2240 public static const int WS_EX_NOACTIVATE = 0x08000000; | |
2241 public static const int WS_EX_RIGHT = 0x00001000; | |
2242 public static const int WS_EX_RTLREADING = 0x00002000; | |
2243 public static const int WS_EX_STATICEDGE = 0x20000; | |
2244 public static const int WS_EX_TOOLWINDOW = 0x80; | |
2245 public static const int WS_EX_TOPMOST = 0x8; | |
2246 public static const int WS_EX_TRANSPARENT = 0x20; | |
2247 public static const int WS_HSCROLL = 0x100000; | |
2248 public static const int WS_MAXIMIZEBOX = IsWinCE ? 0x20000 : 0x10000; | |
2249 public static const int WS_MINIMIZEBOX = IsWinCE ? 0x10000 : 0x20000; | |
2250 public static const int WS_OVERLAPPED = IsWinCE ? WS_BORDER | WS_CAPTION : 0x0; | |
2251 public static const int WS_OVERLAPPEDWINDOW = 0xcf0000; | |
2252 public static const int WS_POPUP = 0x80000000; | |
2253 public static const int WS_SYSMENU = 0x80000; | |
2254 public static const int WS_TABSTOP = 0x10000; | |
2255 public static const int WS_THICKFRAME = 0x40000; | |
2256 public static const int WS_VISIBLE = 0x10000000; | |
2257 public static const int WS_VSCROLL = 0x200000; | |
2258 public static const int WM_XBUTTONDOWN = 0x020B; | |
2259 public static const int WM_XBUTTONUP = 0x020C; | |
2260 public static const int WM_XBUTTONDBLCLK = 0x020D; | |
2261 public static const int XBUTTON1 = 0x1; | |
2262 public static const int XBUTTON2 = 0x2; | |
19 | 2263 |
15 | 2264 |
2265 //PORTING_LEFT | |
2266 /++ | |
3 | 2267 /** Ansi/Unicode wrappers */ |
2268 | |
2269 public static final int /*long*/ AddFontResourceEx (TCHAR lpszFilename, int fl, int /*long*/ pdv) { | |
2270 if (IsUnicode) { | |
2271 char [] lpszFilename1 = lpszFilename is null ? null : lpszFilename.chars; | |
2272 return AddFontResourceExW (lpszFilename1, fl, pdv); | |
2273 } | |
2274 byte [] lpszFilename1 = lpszFilename is null ? null : lpszFilename.bytes; | |
2275 return AddFontResourceExA (lpszFilename1, fl, pdv); | |
2276 } | |
2277 | |
2278 public static final int /*long*/ AssocQueryString(int flags, int str, TCHAR pszAssoc, TCHAR pszExtra, TCHAR pszOut, int[] pcchOut) { | |
2279 if (IsUnicode) { | |
2280 char [] pszAssoc1 = pszAssoc is null ? null : pszAssoc.chars; | |
2281 char [] pszExtra1 = pszExtra is null ? null : pszExtra.chars; | |
2282 char [] pszOut1 = pszOut is null ? null : pszOut.chars; | |
2283 return AssocQueryStringW (flags, str, pszAssoc1, pszExtra1, pszOut1, pcchOut); | |
2284 } | |
2285 byte [] pszAssoc1 = pszAssoc is null ? null : pszAssoc.bytes; | |
2286 byte [] pszExtra1 = pszExtra is null ? null : pszExtra.bytes; | |
2287 byte [] pszOut1 = pszOut is null ? null : pszOut.bytes; | |
2288 return AssocQueryStringA (flags, str, pszAssoc1, pszExtra1, pszOut1, pcchOut); | |
2289 } | |
2290 | |
2291 public static final int /*long*/ CallWindowProc (int /*long*/ lpPrevWndFunc, int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) { | |
2292 if (IsUnicode) return CallWindowProcW (lpPrevWndFunc, hWnd, Msg, wParam, lParam); | |
2293 return CallWindowProcA (lpPrevWndFunc, hWnd, Msg, wParam, lParam); | |
2294 } | |
2295 | |
2296 public static final short CharUpper (short ch) { | |
2297 if (IsUnicode) return CharUpperW (ch); | |
2298 return CharUpperA (ch); | |
2299 } | |
2300 | |
2301 public static final short CharLower (short ch) { | |
2302 if (IsUnicode) return CharLowerW (ch); | |
2303 return CharLowerA (ch); | |
2304 } | |
2305 | |
2306 public static final BOOL ChooseColor (CHOOSECOLOR lpcc) { | |
2307 if (IsUnicode) return ChooseColorW (lpcc); | |
2308 return ChooseColorA (lpcc); | |
2309 } | |
2310 | |
2311 public static final BOOL ChooseFont (CHOOSEFONT chooseFont) { | |
2312 if (IsUnicode) return ChooseFontW (chooseFont); | |
2313 return ChooseFontA (chooseFont); | |
2314 } | |
2315 | |
2316 public static final int /*long*/ CreateActCtx (ACTCTX pActCtx) { | |
2317 if (IsUnicode) return CreateActCtxW (pActCtx); | |
2318 return CreateActCtxA (pActCtx); | |
2319 } | |
2320 | |
2321 public static final int /*long*/ CreateAcceleratorTable (byte [] lpaccl, int cEntries) { | |
2322 if (IsUnicode) return CreateAcceleratorTableW (lpaccl, cEntries); | |
2323 return CreateAcceleratorTableA (lpaccl, cEntries); | |
2324 } | |
2325 | |
2326 public static final int /*long*/ CreateDC (TCHAR lpszDriver, TCHAR lpszDevice, int /*long*/ lpszOutput, int /*long*/ lpInitData) { | |
2327 if (IsUnicode) { | |
2328 char [] lpszDriver1 = lpszDriver is null ? null : lpszDriver.chars; | |
2329 char [] lpszDevice1 = lpszDevice is null ? null : lpszDevice.chars; | |
2330 return CreateDCW (lpszDriver1, lpszDevice1, lpszOutput, lpInitData); | |
2331 } | |
2332 byte [] lpszDriver1 = lpszDriver is null ? null : lpszDriver.bytes; | |
2333 byte [] lpszDevice1 = lpszDevice is null ? null : lpszDevice.bytes; | |
2334 return CreateDCA (lpszDriver1, lpszDevice1, lpszOutput, lpInitData); | |
2335 } | |
2336 | |
2337 public static final int /*long*/ CreateFontIndirect (int /*long*/ lplf) { | |
2338 if (IsUnicode) return CreateFontIndirectW (lplf); | |
2339 return CreateFontIndirectA (lplf); | |
2340 } | |
2341 | |
2342 public static final int /*long*/ CreateFontIndirect (LOGFONT lplf) { | |
2343 if (IsUnicode) return CreateFontIndirectW ((LOGFONTW)lplf); | |
2344 return CreateFontIndirectA ((LOGFONTA)lplf); | |
2345 } | |
2346 | |
2347 public static final BOOL CreateProcess (int /*long*/ lpApplicationName, int /*long*/ lpCommandLine, int /*long*/ lpProcessAttributes, int /*long*/ lpThreadAttributes, BOOL bInheritHandles, int dwCreationFlags, int /*long*/ lpEnvironment, int /*long*/ lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation) { | |
2348 if (IsUnicode) return CreateProcessW (lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation); | |
2349 return CreateProcessA (lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation); | |
2350 } | |
2351 | |
2352 public static final int /*long*/ CreateWindowEx (int dwExStyle, TCHAR lpClassName, TCHAR lpWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int /*long*/ hWndParent, int /*long*/ hMenu, int /*long*/ hInstance, CREATESTRUCT lpParam) { | |
2353 if (IsUnicode) { | |
2354 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars; | |
2355 char [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.chars; | |
2356 return CreateWindowExW (dwExStyle, lpClassName1, lpWindowName1, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam); | |
2357 } | |
2358 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes; | |
2359 byte [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.bytes; | |
2360 return CreateWindowExA (dwExStyle, lpClassName1, lpWindowName1, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam); | |
2361 } | |
2362 | |
2363 public static final int /*long*/ DefMDIChildProc (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) { | |
2364 if (IsUnicode) return DefMDIChildProcW (hWnd, Msg, wParam, lParam); | |
2365 return DefMDIChildProcA (hWnd, Msg, wParam, lParam); | |
2366 } | |
2367 | |
2368 public static final int /*long*/ DefFrameProc (int /*long*/ hWnd, int /*long*/ hWndMDIClient, int Msg, int /*long*/ wParam, int /*long*/ lParam) { | |
2369 if (IsUnicode) return DefFrameProcW (hWnd, hWndMDIClient, Msg, wParam, lParam); | |
2370 return DefFrameProcA (hWnd, hWndMDIClient, Msg, wParam, lParam); | |
2371 } | |
2372 public static final int /*long*/ DefWindowProc (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) { | |
2373 if (IsUnicode) return DefWindowProcW (hWnd, Msg, wParam, lParam); | |
2374 return DefWindowProcA (hWnd, Msg, wParam, lParam); | |
2375 } | |
2376 | |
2377 public static final int /*long*/ DispatchMessage (MSG lpmsg) { | |
2378 if (IsUnicode) return DispatchMessageW (lpmsg); | |
2379 return DispatchMessageA (lpmsg); | |
2380 } | |
2381 | |
2382 public static final int DragQueryFile (int /*long*/ hDrop, int iFile, TCHAR lpszFile, int cch) { | |
2383 if (IsUnicode) { | |
2384 char [] lpszFile1 = lpszFile is null ? null : lpszFile.chars; | |
2385 return DragQueryFileW (hDrop, iFile, lpszFile1, cch); | |
2386 } | |
2387 byte [] lpszFile1 = lpszFile is null ? null : lpszFile.bytes; | |
2388 return DragQueryFileA (hDrop, iFile, lpszFile1, cch); | |
2389 } | |
2390 | |
2391 public static final BOOL DrawState (int /*long*/ hdc, int /*long*/ hbr, int /*long*/ lpOutputFunc, int /*long*/ lData, int /*long*/ wData, int x, int y, int cx, int cy, int fuFlags) { | |
2392 if (IsUnicode) return DrawStateW (hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy, fuFlags); | |
2393 return DrawStateA (hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy, fuFlags); | |
2394 } | |
2395 | |
2396 public static final int DrawText (int /*long*/ hDC, TCHAR lpString, int nCount, RECT lpRect, int uFormat) { | |
2397 if (IsUnicode) { | |
2398 char [] lpString1 = lpString is null ? null : lpString.chars; | |
2399 return DrawTextW (hDC, lpString1, nCount, lpRect, uFormat); | |
2400 } | |
2401 byte [] lpString1 = lpString is null ? null : lpString.bytes; | |
2402 return DrawTextA (hDC, lpString1, nCount, lpRect, uFormat); | |
2403 } | |
2404 | |
2405 public static final int EnumFontFamilies (int /*long*/ hdc, TCHAR lpszFamily, int /*long*/ lpEnumFontFamProc, int /*long*/ lParam) { | |
2406 if (IsUnicode) { | |
2407 char [] lpszFamily1 = lpszFamily is null ? null : lpszFamily.chars; | |
2408 return EnumFontFamiliesW (hdc, lpszFamily1, lpEnumFontFamProc, lParam); | |
2409 } | |
2410 byte [] lpszFamily1 = lpszFamily is null ? null : lpszFamily.bytes; | |
2411 return EnumFontFamiliesA (hdc, lpszFamily1, lpEnumFontFamProc, lParam); | |
2412 } | |
2413 | |
2414 public static final int EnumFontFamiliesEx (int /*long*/ hdc, LOGFONT lpLogfont, int /*long*/ lpEnumFontFamExProc, int /*long*/ lParam, int dwFlags) { | |
2415 if (IsUnicode) return EnumFontFamiliesExW (hdc, (LOGFONTW)lpLogfont, lpEnumFontFamExProc, lParam, dwFlags); | |
2416 return EnumFontFamiliesExA (hdc, (LOGFONTA)lpLogfont, lpEnumFontFamExProc, lParam, dwFlags); | |
2417 } | |
2418 | |
2419 public static final BOOL EnumSystemLocales (int /*long*/ lpLocaleEnumProc, int dwFlags) { | |
2420 if (IsUnicode) return EnumSystemLocalesW (lpLocaleEnumProc, dwFlags); | |
2421 return EnumSystemLocalesA (lpLocaleEnumProc, dwFlags); | |
2422 } | |
2423 | |
2424 public static final BOOL EnumSystemLanguageGroups (int /*long*/ pLangGroupEnumProc, int dwFlags, int /*long*/ lParam) { | |
2425 if (IsUnicode) return EnumSystemLanguageGroupsW (pLangGroupEnumProc, dwFlags, lParam); | |
2426 return EnumSystemLanguageGroupsA (pLangGroupEnumProc, dwFlags, lParam); | |
2427 } | |
2428 | |
2429 public static final int ExpandEnvironmentStrings (TCHAR lpSrc, TCHAR lpDst, int nSize) { | |
2430 if (IsUnicode) { | |
2431 char [] lpSrc1 = lpSrc is null ? null : lpSrc.chars; | |
2432 char [] lpDst1 = lpDst is null ? null : lpDst.chars; | |
2433 return ExpandEnvironmentStringsW (lpSrc1, lpDst1, nSize); | |
2434 } | |
2435 byte [] lpSrc1 = lpSrc is null ? null : lpSrc.bytes; | |
2436 byte [] lpDst1 = lpDst is null ? null : lpDst.bytes; | |
2437 return ExpandEnvironmentStringsA (lpSrc1, lpDst1, nSize); | |
2438 } | |
2439 | |
2440 public static final int ExtractIconEx (TCHAR lpszFile, int nIconIndex, int /*long*/ [] phiconLarge, int /*long*/ [] phiconSmall, int nIcons) { | |
2441 if (IsUnicode) { | |
2442 char [] lpszFile1 = lpszFile is null ? null : lpszFile.chars; | |
2443 return ExtractIconExW (lpszFile1, nIconIndex, phiconLarge, phiconSmall, nIcons); | |
2444 } | |
2445 byte [] lpszFile1 = lpszFile is null ? null : lpszFile.bytes; | |
2446 return ExtractIconExA (lpszFile1, nIconIndex, phiconLarge, phiconSmall, nIcons); | |
2447 } | |
2448 | |
2449 public static final BOOL ExtTextOut(int /*long*/ hdc, int X, int Y, int fuOptions, RECT lprc, TCHAR lpString, int cbCount, int[] lpDx) { | |
2450 if (IsUnicode) { | |
2451 char [] lpString1 = lpString is null ? null : lpString.chars; | |
2452 return ExtTextOutW (hdc, X, Y, fuOptions, lprc, lpString1, cbCount, lpDx); | |
2453 } | |
2454 byte [] lpString1 = lpString is null ? null : lpString.bytes; | |
2455 return ExtTextOutA (hdc, X, Y, fuOptions, lprc, lpString1, cbCount, lpDx); | |
2456 } | |
2457 | |
2458 public static final int /*long*/ FindWindow (TCHAR lpClassName, TCHAR lpWindowName) { | |
2459 if (IsUnicode) { | |
2460 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars; | |
2461 char [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.chars; | |
19 | 2462 return FindWindowW (lpClassName1, lpWindowName1); |
3 | 2463 } |
2464 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes; | |
2465 byte [] lpWindowName1 = lpWindowName is null ? null : lpWindowName.bytes; | |
2466 return FindWindowA (lpClassName1, lpWindowName1); | |
2467 } | |
2468 | |
2469 public static final int FormatMessage (int dwFlags, int /*long*/ lpSource, int dwMessageId, int dwLanguageId, int[] lpBuffer, int nSize, int /*long*/ Arguments) { | |
2470 if (IsUnicode) { | |
19 | 2471 return FormatMessageW (dwFlags, lpSource, dwMessageId, dwLanguageId, lpBuffer, nSize, Arguments); |
3 | 2472 } |
2473 return FormatMessageA (dwFlags, lpSource, dwMessageId, dwLanguageId, lpBuffer, nSize, Arguments); | |
2474 } | |
2475 | |
2476 public static final BOOL GetCharABCWidths (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpabc) { | |
2477 if (IsUnicode) return GetCharABCWidthsW (hdc,iFirstChar, iLastChar, lpabc); | |
2478 return GetCharABCWidthsA (hdc,iFirstChar, iLastChar, lpabc); | |
2479 } | |
2480 | |
2481 public static final int GetCharacterPlacement (int /*long*/ hdc, TCHAR lpString, int nCount, int nMaxExtent, GCP_RESULTS lpResults, int dwFlags) { | |
2482 if (IsUnicode) { | |
2483 char [] lpString1 = lpString is null ? null : lpString.chars; | |
2484 return GetCharacterPlacementW (hdc, lpString1, nCount, nMaxExtent, lpResults, dwFlags); | |
2485 } | |
2486 byte [] lpString1 = lpString is null ? null : lpString.bytes; | |
19 | 2487 return GetCharacterPlacementA (hdc, lpString1, nCount, nMaxExtent, lpResults, dwFlags); |
3 | 2488 } |
2489 | |
2490 public static final BOOL GetCharWidth (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpabc) { | |
2491 if (IsUnicode) return GetCharWidthW (hdc,iFirstChar, iLastChar, lpabc); | |
2492 return GetCharWidthA (hdc,iFirstChar, iLastChar, lpabc); | |
2493 } | |
2494 | |
2495 public static final BOOL GetClassInfo (int /*long*/ hInstance, TCHAR lpClassName, WNDCLASS lpWndClass) { | |
2496 if (IsUnicode) { | |
2497 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars; | |
2498 return GetClassInfoW (hInstance, lpClassName1, lpWndClass); | |
2499 } | |
2500 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes; | |
2501 return GetClassInfoA (hInstance, lpClassName1, lpWndClass); | |
2502 } | |
2503 | |
2504 public static final int GetClassName (int /*long*/ hWnd, TCHAR lpClassName, int nMaxCount) { | |
2505 if (IsUnicode) { | |
2506 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars; | |
2507 return GetClassNameW (hWnd, lpClassName1, nMaxCount); | |
2508 } | |
2509 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes; | |
2510 return GetClassNameA (hWnd, lpClassName1, nMaxCount); | |
2511 } | |
2512 | |
2513 public static final int GetClipboardFormatName (int format, TCHAR lpszFormatName, int cchMaxCount) { | |
2514 if (IsUnicode) { | |
2515 char [] lpszFormatName1 = lpszFormatName is null ? null : lpszFormatName.chars; | |
2516 return GetClipboardFormatNameW (format, lpszFormatName1, cchMaxCount); | |
2517 } | |
2518 byte [] lpszFormatName1 = lpszFormatName is null ? null : lpszFormatName.bytes; | |
2519 return GetClipboardFormatNameA (format, lpszFormatName1, cchMaxCount); | |
2520 } | |
2521 | |
2522 public static final int GetDateFormat (int Locale, int dwFlags, SYSTEMTIME lpDate, TCHAR lpFormat, TCHAR lpDateStr, int cchDate) { | |
2523 if (IsUnicode) { | |
2524 char [] lpString1 = lpFormat is null ? null : lpFormat.chars; | |
2525 char [] lpString2 = lpDateStr is null ? null : lpDateStr.chars; | |
2526 return GetDateFormatW (Locale, dwFlags, lpDate, lpString1, lpString2, cchDate); | |
2527 } | |
2528 byte [] lpString1 = lpFormat is null ? null : lpFormat.bytes; | |
2529 byte [] lpString2 = lpDateStr is null ? null : lpDateStr.bytes; | |
2530 return GetDateFormatA (Locale, dwFlags, lpDate, lpString1, lpString2, cchDate); | |
2531 } | |
2532 | |
2533 public static final int GetKeyNameText (int lParam, TCHAR lpString, int nSize) { | |
2534 if (IsUnicode) { | |
2535 char [] lpString1 = lpString is null ? null : lpString.chars; | |
2536 return GetKeyNameTextW (lParam, lpString1, nSize); | |
2537 } | |
2538 byte [] lpString1 = lpString is null ? null : lpString.bytes; | |
2539 return GetKeyNameTextA (lParam, lpString1, nSize); | |
2540 } | |
2541 | |
2542 public static final int GetLocaleInfo (int Locale, int LCType, TCHAR lpLCData, int cchData) { | |
2543 if (IsUnicode) { | |
2544 char [] lpLCData1 = lpLCData is null ? null : lpLCData.chars; | |
2545 return GetLocaleInfoW (Locale, LCType, lpLCData1, cchData); | |
2546 } | |
2547 byte [] lpLCData1 = lpLCData is null ? null : lpLCData.bytes; | |
2548 return GetLocaleInfoA (Locale, LCType, lpLCData1, cchData); | |
2549 } | |
2550 | |
2551 public static final BOOL GetMenuItemInfo (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii) { | |
2552 if (IsUnicode) return GetMenuItemInfoW (hMenu, uItem, fByPosition, lpmii); | |
2553 return GetMenuItemInfoA (hMenu, uItem, fByPosition, lpmii); | |
2554 } | |
2555 | |
2556 public static final BOOL GetMessage (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax) { | |
2557 if (IsUnicode) return GetMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax); | |
2558 return GetMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax); | |
2559 } | |
2560 | |
2561 public static final int GetModuleFileName (int /*long*/ hModule, TCHAR lpFilename, int inSize) { | |
2562 if (IsUnicode) { | |
2563 char [] lpFilename1 = lpFilename is null ? null : lpFilename.chars; | |
2564 return GetModuleFileNameW (hModule, lpFilename1, inSize); | |
2565 } | |
2566 byte [] lpFilename1 = lpFilename is null ? null : lpFilename.bytes; | |
2567 return GetModuleFileNameA (hModule, lpFilename1, inSize); | |
2568 } | |
2569 | |
2570 public static final int /*long*/ GetModuleHandle (TCHAR lpModuleName) { | |
2571 if (IsUnicode) { | |
2572 char [] lpModuleName1 = lpModuleName is null ? null : lpModuleName.chars; | |
2573 return GetModuleHandleW (lpModuleName1); | |
2574 } | |
2575 byte [] lpModuleName1 = lpModuleName is null ? null : lpModuleName.bytes; | |
2576 return GetModuleHandleA (lpModuleName1); | |
2577 } | |
2578 | |
2579 public static final BOOL GetMonitorInfo (int /*long*/ hmonitor, MONITORINFO lpmi) { | |
2580 if (IsUnicode) return GetMonitorInfoW (hmonitor, lpmi); | |
2581 return GetMonitorInfoA (hmonitor, lpmi); | |
2582 } | |
2583 | |
2584 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, BITMAP lpvObject) { | |
2585 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); | |
2586 return GetObjectA (hgdiobj, cbBuffer, lpvObject); | |
2587 } | |
2588 | |
2589 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, DIBSECTION lpvObject) { | |
2590 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); | |
2591 return GetObjectA (hgdiobj, cbBuffer, lpvObject); | |
2592 } | |
2593 | |
2594 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, EXTLOGPEN lpvObject) { | |
2595 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); | |
2596 return GetObjectA (hgdiobj, cbBuffer, lpvObject); | |
2597 } | |
2598 | |
2599 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGBRUSH lpvObject) { | |
2600 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); | |
2601 return GetObjectA (hgdiobj, cbBuffer, lpvObject); | |
2602 } | |
2603 | |
2604 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGFONT lpvObject) { | |
2605 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, (LOGFONTW)lpvObject); | |
2606 return GetObjectA (hgdiobj, cbBuffer, (LOGFONTA)lpvObject); | |
2607 } | |
2608 | |
2609 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, LOGPEN lpvObject) { | |
2610 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); | |
2611 return GetObjectA (hgdiobj, cbBuffer, lpvObject); | |
2612 } | |
2613 | |
2614 public static final int GetObject (int /*long*/ hgdiobj, int cbBuffer, int /*long*/ lpvObject) { | |
2615 if (IsUnicode) return GetObjectW (hgdiobj, cbBuffer, lpvObject); | |
2616 return GetObjectA (hgdiobj, cbBuffer, lpvObject); | |
2617 } | |
2618 | |
2619 public static final BOOL GetOpenFileName (OPENFILENAME lpofn) { | |
2620 if (IsUnicode) return GetOpenFileNameW (lpofn); | |
2621 return GetOpenFileNameA (lpofn); | |
2622 } | |
2623 | |
2624 public static final int GetProfileString (TCHAR lpAppName, TCHAR lpKeyName, TCHAR lpDefault, TCHAR lpReturnedString, int nSize) { | |
2625 if (IsUnicode) { | |
2626 char [] lpAppName1 = lpAppName is null ? null : lpAppName.chars; | |
2627 char [] lpKeyName1 = lpKeyName is null ? null : lpKeyName.chars; | |
2628 char [] lpDefault1 = lpDefault is null ? null : lpDefault.chars; | |
2629 char [] lpReturnedString1 = lpReturnedString is null ? null : lpReturnedString.chars; | |
2630 return GetProfileStringW (lpAppName1, lpKeyName1, lpDefault1, lpReturnedString1, nSize); | |
2631 } | |
2632 byte [] lpAppName1 = lpAppName is null ? null : lpAppName.bytes; | |
2633 byte [] lpKeyName1 = lpKeyName is null ? null : lpKeyName.bytes; | |
2634 byte [] lpDefault1 = lpDefault is null ? null : lpDefault.bytes; | |
2635 byte [] lpReturnedString1 = lpReturnedString is null ? null : lpReturnedString.bytes; | |
2636 return GetProfileStringA (lpAppName1, lpKeyName1, lpDefault1, lpReturnedString1, nSize); | |
2637 } | |
2638 | |
2639 public static int /*long*/ GetProp (int /*long*/ hWnd, int /*long*/ lpString) { | |
2640 if (IsUnicode) return GetPropW (hWnd, lpString); | |
2641 return GetPropA (hWnd, lpString); | |
2642 } | |
2643 | |
2644 public static final BOOL GetSaveFileName (OPENFILENAME lpofn) { | |
2645 if (IsUnicode) return GetSaveFileNameW (lpofn); | |
2646 return GetSaveFileNameA (lpofn); | |
2647 } | |
2648 | |
2649 public static final void GetStartupInfo (STARTUPINFO lpStartupInfo) { | |
2650 if (IsUnicode) { | |
2651 GetStartupInfoW (lpStartupInfo); | |
2652 } else { | |
2653 GetStartupInfoA (lpStartupInfo); | |
2654 } | |
2655 } | |
2656 | |
2657 public static final BOOL GetTextExtentPoint32 (int /*long*/ hdc, TCHAR lpString, int cbString, SIZE lpSize) { | |
2658 if (IsUnicode) { | |
2659 char [] lpString1 = lpString is null ? null : lpString.chars; | |
2660 return GetTextExtentPoint32W (hdc, lpString1, cbString, lpSize); | |
2661 } | |
2662 byte [] lpString1 = lpString is null ? null : lpString.bytes; | |
19 | 2663 return GetTextExtentPoint32A (hdc, lpString1, cbString, lpSize); |
3 | 2664 } |
2665 | |
2666 public static final BOOL GetTextMetrics (int /*long*/ hdc, TEXTMETRIC lptm) { | |
2667 if (IsUnicode) return GetTextMetricsW (hdc, (TEXTMETRICW)lptm); | |
2668 return GetTextMetricsA (hdc, (TEXTMETRICA)lptm); | |
2669 } | |
2670 | |
2671 public static final int GetTimeFormat (int Locale, int dwFlags, SYSTEMTIME lpTime, TCHAR lpFormat, TCHAR lpTimeStr, int cchTime) { | |
2672 if (IsUnicode) { | |
2673 char [] lpString1 = lpFormat is null ? null : lpFormat.chars; | |
2674 char [] lpString2 = lpTimeStr is null ? null : lpTimeStr.chars; | |
2675 return GetTimeFormatW (Locale, dwFlags, lpTime, lpString1, lpString2, cchTime); | |
2676 } | |
2677 byte [] lpString1 = lpFormat is null ? null : lpFormat.bytes; | |
2678 byte [] lpString2 = lpTimeStr is null ? null : lpTimeStr.bytes; | |
2679 return GetTimeFormatA (Locale, dwFlags, lpTime, lpString1, lpString2, cchTime); | |
2680 } | |
2681 | |
2682 public static final BOOL GetVersionEx (OSVERSIONINFO lpVersionInfo) { | |
2683 if (IsUnicode) return GetVersionExW ((OSVERSIONINFOW)lpVersionInfo); | |
2684 return GetVersionExA ((OSVERSIONINFOA)lpVersionInfo); | |
2685 } | |
2686 | |
2687 public static final BOOL GetVersionEx (OSVERSIONINFOEX lpVersionInfo) { | |
2688 if (IsUnicode) return GetVersionExW ((OSVERSIONINFOEXW)lpVersionInfo); | |
2689 return GetVersionExA ((OSVERSIONINFOEXA)lpVersionInfo); | |
2690 } | |
2691 | |
2692 public static final int GetWindowLong (int /*long*/ hWnd, int nIndex) { | |
2693 if (IsUnicode) return GetWindowLongW (hWnd, nIndex); | |
2694 return GetWindowLongA (hWnd, nIndex); | |
2695 } | |
2696 | |
2697 public static final int /*long*/ GetWindowLongPtr (int /*long*/ hWnd, int nIndex) { | |
2698 if (IsUnicode) return GetWindowLongPtrW (hWnd, nIndex); | |
2699 return GetWindowLongPtrA (hWnd, nIndex); | |
2700 } | |
2701 | |
2702 public static final int GetWindowText (int /*long*/ hWnd, TCHAR lpString, int nMaxCount) { | |
2703 if (IsUnicode) { | |
2704 char [] lpString1 = lpString is null ? null : lpString.chars; | |
2705 return GetWindowTextW (hWnd, lpString1, nMaxCount); | |
2706 } | |
2707 byte [] lpString1 = lpString is null ? null : lpString.bytes; | |
2708 return GetWindowTextA (hWnd, lpString1, nMaxCount); | |
2709 } | |
2710 | |
2711 public static final int GetWindowTextLength (int /*long*/ hWnd) { | |
2712 if (IsUnicode) return GetWindowTextLengthW (hWnd); | |
2713 return GetWindowTextLengthA (hWnd); | |
2714 } | |
2715 | |
2716 public static final int GlobalAddAtom (TCHAR lpString) { | |
2717 if (IsUnicode) { | |
2718 char [] lpString1 = lpString is null ? null : lpString.chars; | |
2719 return GlobalAddAtomW (lpString1); | |
2720 } | |
2721 byte [] lpString1 = lpString is null ? null : lpString.bytes; | |
2722 return GlobalAddAtomA (lpString1); | |
2723 } | |
2724 | |
2725 public static final BOOL ImmGetCompositionFont (int /*long*/ hIMC, LOGFONT lplf) { | |
2726 if (IsUnicode) return ImmGetCompositionFontW (hIMC, (LOGFONTW)lplf); | |
2727 return ImmGetCompositionFontA (hIMC, (LOGFONTA)lplf); | |
2728 } | |
2729 | |
2730 public static final BOOL ImmSetCompositionFont (int /*long*/ hIMC, LOGFONT lplf) { | |
2731 if (IsUnicode) return ImmSetCompositionFontW (hIMC, (LOGFONTW)lplf); | |
2732 return ImmSetCompositionFontA (hIMC, (LOGFONTA)lplf); | |
2733 } | |
2734 | |
2735 public static final int ImmGetCompositionString (int /*long*/ hIMC, int dwIndex, TCHAR lpBuf, int dwBufLen) { | |
2736 if (IsUnicode) { | |
2737 char [] lpBuf1 = lpBuf is null ? null : lpBuf.chars; | |
2738 return ImmGetCompositionStringW (hIMC, dwIndex, lpBuf1, dwBufLen); | |
2739 } | |
2740 byte [] lpBuf1 = lpBuf is null ? null : lpBuf.bytes; | |
2741 return ImmGetCompositionStringA (hIMC, dwIndex, lpBuf1, dwBufLen); | |
2742 } | |
2743 | |
2744 public static final BOOL InsertMenu (int /*long*/ hMenu, int uPosition, int uFlags, int /*long*/ uIDNewItem, TCHAR lpNewItem) { | |
2745 if (IsUnicode) { | |
2746 char [] lpNewItem1 = lpNewItem is null ? null : lpNewItem.chars; | |
2747 return InsertMenuW (hMenu, uPosition, uFlags, uIDNewItem, lpNewItem1); | |
2748 } | |
2749 byte [] lpNewItem1 = lpNewItem is null ? null : lpNewItem.bytes; | |
19 | 2750 return InsertMenuA (hMenu, uPosition, uFlags, uIDNewItem, lpNewItem1); |
3 | 2751 } |
2752 | |
2753 public static final BOOL InsertMenuItem (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii) { | |
2754 if (IsUnicode) return InsertMenuItemW (hMenu, uItem, fByPosition, lpmii); | |
2755 return InsertMenuItemA (hMenu, uItem, fByPosition, lpmii); | |
2756 } | |
2757 | |
2758 public static final int /*long*/ LoadBitmap (int /*long*/ hInstance, int /*long*/ lpBitmapName) { | |
2759 if (IsUnicode) return LoadBitmapW (hInstance, lpBitmapName); | |
2760 return LoadBitmapA (hInstance, lpBitmapName); | |
2761 } | |
2762 | |
2763 public static final int /*long*/ LoadCursor (int /*long*/ hInstance, int /*long*/ lpCursorName) { | |
2764 if (IsUnicode) return LoadCursorW (hInstance, lpCursorName); | |
2765 return LoadCursorA (hInstance, lpCursorName); | |
2766 } | |
2767 | |
2768 public static final int /*long*/ LoadIcon (int /*long*/ hInstance, int /*long*/ lpIconName) { | |
2769 if (IsUnicode) return LoadIconW (hInstance, lpIconName); | |
2770 return LoadIconA (hInstance, lpIconName); | |
2771 } | |
2772 | |
2773 public static final int /*long*/ LoadImage (int /*long*/ hinst, TCHAR lpszName, int uType, int cxDesired, int cyDesired, int fuLoad) { | |
2774 if (IsUnicode) { | |
2775 char [] lpszName1 = lpszName is null ? null : lpszName.chars; | |
2776 return LoadImageW (hinst, lpszName1, uType, cxDesired, cyDesired, fuLoad); | |
2777 } | |
2778 byte [] lpszName1 = lpszName is null ? null : lpszName.bytes; | |
2779 return LoadImageA (hinst, lpszName1, uType, cxDesired, cyDesired, fuLoad); | |
2780 } | |
2781 | |
2782 public static final int /*long*/ LoadImage (int /*long*/ hinst, int /*long*/ lpszName, int uType, int cxDesired, int cyDesired, int fuLoad) { | |
2783 if (IsUnicode) return LoadImageW (hinst, lpszName, uType, cxDesired, cyDesired, fuLoad); | |
2784 return LoadImageA (hinst, lpszName, uType, cxDesired, cyDesired, fuLoad); | |
2785 } | |
2786 | |
2787 public static final int /*long*/ LoadLibrary (TCHAR lpLibFileName) { | |
2788 if (IsUnicode) { | |
2789 char [] lpLibFileName1 = lpLibFileName is null ? null : lpLibFileName.chars; | |
2790 return LoadLibraryW (lpLibFileName1); | |
2791 } | |
2792 byte [] lpLibFileName1 = lpLibFileName is null ? null : lpLibFileName.bytes; | |
2793 return LoadLibraryA (lpLibFileName1); | |
2794 } | |
2795 | |
2796 public static final int LoadString (int /*long*/ hinst, int uID, TCHAR lpBuffer, int nBufferMax) { | |
2797 if (IsUnicode) { | |
2798 char [] lpBuffer1 = lpBuffer is null ? null : lpBuffer.chars; | |
2799 return LoadStringW (hinst, uID, lpBuffer1, nBufferMax); | |
2800 } | |
2801 byte [] lpBuffer1 = lpBuffer is null ? null : lpBuffer.bytes; | |
2802 return LoadStringA (hinst, uID, lpBuffer1, nBufferMax); | |
2803 } | |
2804 | |
2805 public static final int MapVirtualKey (int uCode, int uMapType) { | |
2806 if (IsUnicode) return MapVirtualKeyW (uCode, uMapType); | |
2807 return MapVirtualKeyA (uCode, uMapType); | |
2808 } | |
2809 | |
2810 public static final int MessageBox (int /*long*/ hWnd, TCHAR lpText, TCHAR lpCaption, int uType) { | |
2811 if (IsUnicode) { | |
2812 char [] lpText1 = lpText is null ? null : lpText.chars; | |
2813 char [] lpCaption1 = lpCaption is null ? null : lpCaption.chars; | |
2814 return MessageBoxW (hWnd, lpText1, lpCaption1, uType); | |
2815 } | |
2816 byte [] lpText1 = lpText is null ? null : lpText.bytes; | |
2817 byte [] lpCaption1 = lpCaption is null ? null : lpCaption.bytes; | |
2818 return MessageBoxA (hWnd, lpText1, lpCaption1, uType); | |
2819 } | |
2820 | |
2821 public static final void MoveMemory (int /*long*/ Destination, TCHAR Source, int Length) { | |
2822 if (IsUnicode) { | |
2823 char [] Source1 = Source is null ? null : Source.chars; | |
2824 MoveMemory (Destination, Source1, Length); | |
2825 } else { | |
2826 byte [] Source1 = Source is null ? null : Source.bytes; | |
2827 MoveMemory (Destination, Source1, Length); | |
2828 } | |
2829 } | |
2830 | |
2831 public static final void MoveMemory (TCHAR Destination, int /*long*/ Source, int Length) { | |
2832 if (IsUnicode) { | |
2833 char [] Destination1 = Destination is null ? null : Destination.chars; | |
2834 MoveMemory (Destination1, Source, Length); | |
2835 } else { | |
2836 byte [] Destination1 = Destination is null ? null : Destination.bytes; | |
2837 MoveMemory (Destination1, Source, Length); | |
2838 } | |
2839 } | |
2840 | |
2841 public static final void MoveMemory (int /*long*/ Destination, LOGFONT Source, int Length) { | |
2842 if (IsUnicode) { | |
2843 MoveMemory (Destination, (LOGFONTW)Source, Length); | |
2844 } else { | |
2845 MoveMemory (Destination, (LOGFONTA)Source, Length); | |
2846 } | |
2847 } | |
2848 | |
2849 public static final void MoveMemory (LOGFONT Destination, int /*long*/ Source, int Length) { | |
2850 if (IsUnicode) { | |
2851 MoveMemory ((LOGFONTW)Destination, Source, Length); | |
2852 } else { | |
2853 MoveMemory ((LOGFONTA)Destination, Source, Length); | |
2854 } | |
2855 } | |
2856 | |
2857 public static final void MoveMemory (int /*long*/ Destination, NMTTDISPINFO Source, int Length) { | |
2858 if (IsUnicode) { | |
2859 MoveMemory (Destination, (NMTTDISPINFOW)Source, Length); | |
2860 } else { | |
2861 MoveMemory (Destination, (NMTTDISPINFOA)Source, Length); | |
2862 } | |
2863 } | |
2864 | |
2865 public static final void MoveMemory (NMTTDISPINFO Destination, int /*long*/ Source, int Length) { | |
2866 if (IsUnicode) { | |
2867 MoveMemory ((NMTTDISPINFOW)Destination, Source, Length); | |
2868 } else { | |
2869 MoveMemory ((NMTTDISPINFOA)Destination, Source, Length); | |
2870 } | |
2871 } | |
2872 | |
2873 public static final void MoveMemory (TEXTMETRIC Destination, int /*long*/ Source, int Length) { | |
2874 if (IsUnicode) { | |
2875 MoveMemory ((TEXTMETRICW)Destination, Source, Length); | |
2876 } else { | |
2877 MoveMemory ((TEXTMETRICA)Destination, Source, Length); | |
2878 } | |
2879 } | |
2880 | |
2881 public static final BOOL PeekMessage (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg) { | |
2882 if (IsUnicode) return PeekMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg); | |
2883 return PeekMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg); | |
2884 } | |
2885 | |
2886 public static final BOOL PostMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) { | |
2887 if (IsUnicode) return PostMessageW (hWnd, Msg, wParam, lParam); | |
2888 return PostMessageA (hWnd, Msg, wParam, lParam); | |
2889 } | |
2890 | |
2891 public static final BOOL PostThreadMessage (int idThread, int Msg, int /*long*/ wParam, int /*long*/ lParam) { | |
2892 if (IsUnicode) return PostThreadMessageW (idThread, Msg, wParam, lParam); | |
2893 return PostThreadMessageA (idThread, Msg, wParam, lParam); | |
2894 } | |
2895 | |
2896 public static final BOOL PrintDlg (PRINTDLG lppd) { | |
2897 if (IsUnicode) return PrintDlgW (lppd); | |
2898 return PrintDlgA (lppd); | |
2899 } | |
2900 | |
2901 public static final int RegEnumKeyEx (int /*long*/ hKey, int dwIndex, TCHAR lpName, int [] lpcName, int [] lpReserved, TCHAR lpClass, int [] lpcClass, FILETIME lpftLastWriteTime) { | |
2902 if (IsUnicode) { | |
2903 char [] lpName1 = lpName is null ? null : lpName.chars; | |
2904 char [] lpClass1 = lpClass is null ? null : lpClass.chars; | |
2905 return RegEnumKeyExW (hKey, dwIndex, lpName1, lpcName, lpReserved, lpClass1, lpcClass, lpftLastWriteTime); | |
2906 } | |
2907 byte [] lpName1 = lpName is null ? null : lpName.bytes; | |
2908 byte [] lpClass1 = lpClass is null ? null : lpClass.bytes; | |
2909 return RegEnumKeyExA (hKey, dwIndex, lpName1, lpcName, lpReserved, lpClass1, lpcClass, lpftLastWriteTime); | |
2910 } | |
2911 | |
2912 public static final int RegisterClass (WNDCLASS lpWndClass) { | |
2913 if (IsUnicode) return RegisterClassW (lpWndClass); | |
2914 return RegisterClassA (lpWndClass); | |
2915 } | |
2916 | |
2917 public static final int RegisterClipboardFormat (TCHAR lpszFormat) { | |
2918 if (IsUnicode) { | |
2919 char [] lpszFormat1 = lpszFormat is null ? null : lpszFormat.chars; | |
2920 return RegisterClipboardFormatW (lpszFormat1); | |
2921 } | |
2922 byte [] lpszFormat1 = lpszFormat is null ? null : lpszFormat.bytes; | |
2923 return RegisterClipboardFormatA (lpszFormat1); | |
2924 } | |
2925 | |
2926 public static final int RegisterWindowMessage (TCHAR lpString) { | |
2927 if (IsUnicode) { | |
2928 char [] lpString1 = lpString is null ? null : lpString.chars; | |
2929 return RegisterWindowMessageW (lpString1); | |
2930 } | |
2931 byte [] lpString1 = lpString is null ? null : lpString.bytes; | |
2932 return RegisterWindowMessageA (lpString1); | |
2933 } | |
2934 | |
2935 public static final int RegOpenKeyEx (int /*long*/ hKey, TCHAR lpSubKey, int ulOptions, int samDesired, int /*long*/[] phkResult) { | |
2936 if (IsUnicode) { | |
2937 char [] lpSubKey1 = lpSubKey is null ? null : lpSubKey.chars; | |
2938 return RegOpenKeyExW (hKey, lpSubKey1, ulOptions, samDesired, phkResult); | |
2939 } | |
2940 byte [] lpSubKey1 = lpSubKey is null ? null : lpSubKey.bytes; | |
2941 return RegOpenKeyExA (hKey, lpSubKey1, ulOptions, samDesired, phkResult); | |
2942 } | |
2943 | |
2944 public static final int RegQueryInfoKey (int /*long*/ hKey, int /*long*/ lpClass, int[] lpcbClass, int /*long*/ lpReserved, int[] lpSubKeys, int[] lpcbMaxSubKeyLen, int[] lpcbMaxClassLen, int[] lpcValues, int[] lpcbMaxValueNameLen, int[] lpcbMaxValueLen, int[] lpcbSecurityDescriptor, int /*long*/ lpftLastWriteTime){ | |
2945 if (IsUnicode) return RegQueryInfoKeyW (hKey, lpClass, lpcbClass, lpReserved, lpSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime); | |
2946 return RegQueryInfoKeyA (hKey, lpClass, lpcbClass, lpReserved, lpSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime); | |
2947 } | |
2948 | |
2949 public static final int RegQueryValueEx (int /*long*/ hKey, TCHAR lpValueName, int /*long*/ lpReserved, int[] lpType, TCHAR lpData, int[] lpcbData) { | |
2950 if (IsUnicode) { | |
2951 char [] lpValueName1 = lpValueName is null ? null : lpValueName.chars; | |
2952 char [] lpData1 = lpData is null ? null : lpData.chars; | |
2953 return RegQueryValueExW (hKey, lpValueName1, lpReserved, lpType, lpData1, lpcbData); | |
2954 } | |
2955 byte [] lpValueName1 = lpValueName is null ? null : lpValueName.bytes; | |
2956 byte [] lpData1 = lpData is null ? null : lpData.bytes; | |
2957 return RegQueryValueExA (hKey, lpValueName1, lpReserved, lpType, lpData1, lpcbData); | |
2958 } | |
2959 | |
2960 public static final int RegQueryValueEx (int /*long*/ hKey, TCHAR lpValueName, int /*long*/ lpReserved, int[] lpType, int [] lpData, int[] lpcbData) { | |
2961 if (IsUnicode) { | |
2962 char [] lpValueName1 = lpValueName is null ? null : lpValueName.chars; | |
2963 return RegQueryValueExW (hKey, lpValueName1, lpReserved, lpType, lpData, lpcbData); | |
2964 } | |
2965 byte [] lpValueName1 = lpValueName is null ? null : lpValueName.bytes; | |
2966 return RegQueryValueExA (hKey, lpValueName1, lpReserved, lpType, lpData, lpcbData); | |
2967 } | |
2968 | |
2969 public static final int /*long*/ RemoveProp (int /*long*/ hWnd, int /*long*/ lpString){ | |
2970 if (IsUnicode) return RemovePropW (hWnd, lpString); | |
2971 return RemovePropA (hWnd, lpString); | |
2972 } | |
2973 | |
2974 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCHAR lParam) { | |
2975 if (IsUnicode) { | |
2976 char [] lParam1 = lParam is null ? null : lParam.chars; | |
2977 return SendMessageW (hWnd, Msg, wParam, lParam1); | |
2978 } | |
2979 byte [] lParam1 = lParam is null ? null : lParam.bytes; | |
2980 return SendMessageA (hWnd, Msg, wParam, lParam1); | |
2981 } | |
2982 | |
2983 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int [] wParam, int [] lParam) { | |
2984 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
2985 return SendMessageA (hWnd, Msg, wParam, lParam); | |
2986 } | |
2987 | |
2988 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SIZE lParam) { | |
2989 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
2990 return SendMessageA (hWnd, Msg, wParam, lParam); | |
2991 } | |
2992 | |
2993 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ [] wParam, int /*long*/ lParam) { | |
2994 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
2995 return SendMessageA (hWnd, Msg, wParam, lParam); | |
2996 } | |
2997 | |
2998 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int [] lParam) { | |
2999 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3000 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3001 } | |
3002 | |
3003 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, char [] lParam) { | |
3004 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3005 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3006 } | |
3007 | |
3008 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, short [] lParam) { | |
3009 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3010 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3011 } | |
3012 | |
3013 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam) { | |
3014 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3015 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3016 } | |
3017 | |
3018 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LITEM lParam) { | |
3019 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3020 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3021 } | |
3022 | |
3023 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVCOLUMN lParam) { | |
3024 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3025 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3026 } | |
3027 | |
3028 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVHITTESTINFO lParam) { | |
3029 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3030 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3031 } | |
3032 | |
3033 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVITEM lParam) { | |
3034 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3035 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3036 } | |
3037 | |
3038 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, MARGINS lParam) { | |
3039 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3040 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3041 } | |
3042 | |
3043 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, POINT lParam) { | |
3044 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3045 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3046 } | |
3047 | |
3048 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, REBARBANDINFO lParam) { | |
3049 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3050 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3051 } | |
3052 | |
3053 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, RECT lParam) { | |
3054 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3055 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3056 } | |
3057 | |
3058 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SYSTEMTIME lParam) { | |
3059 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3060 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3061 } | |
3062 | |
3063 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTON lParam) { | |
3064 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3065 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3066 } | |
3067 | |
3068 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTONINFO lParam) { | |
3069 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3070 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3071 } | |
3072 | |
3073 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCITEM lParam) { | |
3074 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3075 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3076 } | |
3077 | |
3078 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TOOLINFO lParam) { | |
3079 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3080 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3081 } | |
3082 | |
3083 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVHITTESTINFO lParam) { | |
3084 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3085 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3086 } | |
3087 | |
3088 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVINSERTSTRUCT lParam) { | |
3089 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3090 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3091 } | |
3092 | |
3093 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVITEM lParam) { | |
3094 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3095 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3096 } | |
3097 | |
3098 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVSORTCB lParam) { | |
3099 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3100 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3101 } | |
3102 | |
3103 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, UDACCEL lParam) { | |
3104 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3105 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3106 } | |
3107 | |
3108 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDHITTESTINFO lParam) { | |
3109 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3110 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3111 } | |
3112 | |
3113 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDITEM lParam) { | |
3114 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3115 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3116 } | |
3117 | |
3118 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDLAYOUT lParam) { | |
3119 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3120 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3121 } | |
3122 | |
3123 public static final int /*long*/ SendMessage (int /*long*/ hWnd, int Msg, int /*long*/ wParam, BUTTON_IMAGELIST lParam) { | |
3124 if (IsUnicode) return SendMessageW (hWnd, Msg, wParam, lParam); | |
3125 return SendMessageA (hWnd, Msg, wParam, lParam); | |
3126 } | |
3127 | |
3128 public static final BOOL SetMenuItemInfo (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii) { | |
3129 if (IsUnicode) return SetMenuItemInfoW (hMenu, uItem, fByPosition, lpmii); | |
3130 return SetMenuItemInfoA (hMenu, uItem, fByPosition, lpmii); | |
3131 } | |
3132 | |
3133 public static BOOL SetProp (int /*long*/ hWnd, int /*long*/ lpString, int /*long*/ hData) { | |
3134 if (IsUnicode) return SetPropW (hWnd, lpString, hData); | |
3135 return SetPropA (hWnd, lpString, hData); | |
3136 } | |
3137 | |
3138 public static final int SetWindowLong (int /*long*/ hWnd, int nIndex, int dwNewLong) { | |
3139 if (IsUnicode) return SetWindowLongW (hWnd, nIndex, dwNewLong); | |
3140 return SetWindowLongA (hWnd, nIndex, dwNewLong); | |
3141 } | |
3142 | |
3143 public static final int /*long*/ SetWindowLongPtr (int /*long*/ hWnd, int nIndex, int /*long*/ dwNewLong) { | |
3144 if (IsUnicode) return SetWindowLongPtrW (hWnd, nIndex, dwNewLong); | |
3145 return SetWindowLongPtrA (hWnd, nIndex, dwNewLong); | |
3146 } | |
3147 | |
3148 public static final int /*long*/ SetWindowsHookEx (int idHook, int /*long*/ lpfn, int /*long*/ hMod, int dwThreadId) { | |
3149 if (IsUnicode) return SetWindowsHookExW (idHook, lpfn, hMod, dwThreadId); | |
3150 return SetWindowsHookExA (idHook, lpfn, hMod, dwThreadId); | |
3151 } | |
3152 | |
3153 public static final BOOL SetWindowText (int /*long*/ hWnd, TCHAR lpString) { | |
3154 if (IsUnicode) { | |
3155 char [] lpString1 = lpString is null ? null : lpString.chars; | |
3156 return SetWindowTextW (hWnd, lpString1); | |
3157 } | |
3158 byte [] lpString1 = lpString is null ? null : lpString.bytes; | |
3159 return SetWindowTextA (hWnd, lpString1); | |
3160 } | |
3161 | |
3162 public static final int /*long*/ SHBrowseForFolder (BROWSEINFO lpbi) { | |
3163 if (IsUnicode) return SHBrowseForFolderW (lpbi); | |
3164 return SHBrowseForFolderA (lpbi); | |
3165 } | |
3166 | |
3167 public static final BOOL ShellExecuteEx (SHELLEXECUTEINFO lpExecInfo) { | |
3168 if (IsUnicode) return ShellExecuteExW (lpExecInfo); | |
3169 return ShellExecuteExA (lpExecInfo); | |
3170 } | |
3171 | |
3172 public static int /*long*/ SHGetFileInfo (TCHAR pszPath, int dwFileAttributes, SHFILEINFO psfi, int cbFileInfo, int uFlags) { | |
3173 if (IsUnicode) { | |
3174 char [] pszPath1 = pszPath is null ? null : pszPath.chars; | |
3175 return SHGetFileInfoW (pszPath1, dwFileAttributes, (SHFILEINFOW) psfi, cbFileInfo, uFlags); | |
3176 } | |
3177 byte [] pszPath1 = pszPath is null ? null : pszPath.bytes; | |
3178 return SHGetFileInfoA (pszPath1, dwFileAttributes, (SHFILEINFOA) psfi, cbFileInfo, uFlags); | |
3179 } | |
3180 | |
3181 public static final BOOL Shell_NotifyIcon (int dwMessage, NOTIFYICONDATA lpData) { | |
3182 if (IsUnicode) return Shell_NotifyIconW (dwMessage, (NOTIFYICONDATAW)lpData); | |
3183 return Shell_NotifyIconA (dwMessage, (NOTIFYICONDATAA)lpData); | |
3184 } | |
3185 | |
3186 public static final BOOL SHGetPathFromIDList (int /*long*/ pidl, TCHAR pszPath) { | |
3187 if (IsUnicode) { | |
3188 char [] pszPath1 = pszPath is null ? null : pszPath.chars; | |
3189 return SHGetPathFromIDListW (pidl, pszPath1); | |
3190 } | |
3191 byte [] pszPath1 = pszPath is null ? null : pszPath.bytes; | |
3192 return SHGetPathFromIDListA (pidl, pszPath1); | |
3193 } | |
3194 | |
3195 public static final int StartDoc (int /*long*/ hdc, DOCINFO lpdi) { | |
3196 if (IsUnicode) return StartDocW (hdc, lpdi); | |
3197 return StartDocA (hdc, lpdi); | |
3198 } | |
3199 | |
3200 public static final BOOL SystemParametersInfo (int uiAction, int uiParam, RECT pvParam, int fWinIni) { | |
3201 if (IsUnicode) return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni); | |
3202 return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni); | |
3203 } | |
3204 | |
3205 public static final BOOL SystemParametersInfo (int uiAction, int uiParam, HIGHCONTRAST pvParam, int fWinIni) { | |
3206 if (IsUnicode) return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni); | |
3207 return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni); | |
3208 } | |
3209 | |
3210 public static final BOOL SystemParametersInfo (int uiAction, int uiParam, NONCLIENTMETRICS pvParam, int fWinIni) { | |
3211 if (IsUnicode) return SystemParametersInfoW (uiAction, uiParam, (NONCLIENTMETRICSW)pvParam, fWinIni); | |
3212 return SystemParametersInfoA (uiAction, uiParam, (NONCLIENTMETRICSA)pvParam, fWinIni); | |
3213 } | |
3214 | |
3215 public static final BOOL SystemParametersInfo (int uiAction, int uiParam, int [] pvParam, int fWinIni) { | |
3216 if (IsUnicode) return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni); | |
3217 return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni); | |
3218 } | |
3219 | |
3220 public static final int TranslateAccelerator (int /*long*/ hWnd, int /*long*/ hAccTable, MSG lpMsg) { | |
3221 if (IsUnicode) return TranslateAcceleratorW (hWnd, hAccTable, lpMsg); | |
3222 return TranslateAcceleratorA (hWnd, hAccTable, lpMsg); | |
3223 } | |
3224 | |
3225 public static final BOOL UnregisterClass (TCHAR lpClassName, int /*long*/ hInstance) { | |
3226 if (IsUnicode) { | |
3227 char [] lpClassName1 = lpClassName is null ? null : lpClassName.chars; | |
3228 return UnregisterClassW (lpClassName1, hInstance); | |
3229 } | |
3230 byte [] lpClassName1 = lpClassName is null ? null : lpClassName.bytes; | |
3231 return UnregisterClassA (lpClassName1, hInstance); | |
3232 } | |
3233 | |
3234 public static final short VkKeyScan (short ch) { | |
3235 if (IsUnicode) return VkKeyScanW (ch); | |
3236 return VkKeyScanA (ch); | |
3237 } | |
3238 | |
3239 /** Natives */ | |
3240 public static final native int AbortDoc (int /*long*/ hdc); | |
3241 public static final native BOOL ActivateActCtx (int /*long*/ hActCtx, int /*long*/ [] lpCookie); | |
3242 public static final native int /*long*/ ActivateKeyboardLayout(int /*long*/ hkl, int Flags); | |
3243 public static final native int AddFontResourceExW(char[] lpszFilename, int fl, int /*long*/ pdv); | |
3244 public static final native int AddFontResourceExA(byte[] lpszFilename, int fl, int /*long*/ pdv); | |
3245 public static final native BOOL AdjustWindowRectEx (RECT lpRect, int dwStyle, BOOL bMenu, int dwExStyle); | |
3246 public static final native BOOL 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); | |
3247 public static final native BOOL AnimateWindow(int /*long*/ hwnd, int dwTime, int dwFlags); | |
3248 public static final native BOOL Arc (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nXStartArc, int nYStartArc, int nXEndArc, int nYEndArc); | |
3249 public static final native int AssocQueryStringA(int flags, int str, byte[] pszAssoc, byte[] pszExtra, byte[] pszOut, int[] pcchOut); | |
3250 public static final native int AssocQueryStringW(int flags, int str, char[] pszAssoc, char[] pszExtra, char[] pszOut, int[] pcchOut); | |
3251 public static final native BOOL AttachThreadInput (int idAttach, int idAttachTo, BOOL fAttach); | |
3252 public static final native int /*long*/ BeginBufferedPaint (int /*long*/ hdcTarget, RECT prcTarget, int dwFormat, BP_PAINTPARAMS pPaintParams, int /*long*/ [] phdc); | |
3253 public static final native int /*long*/ BeginDeferWindowPos (int nNumWindows); | |
3254 public static final native int /*long*/ BeginPaint (int /*long*/ hWnd, PAINTSTRUCT lpPaint); | |
3255 public static final native BOOL BeginPath(int /*long*/ hdc); | |
3256 public static final native BOOL BitBlt (int /*long*/ hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, int /*long*/ hdcSrc, int nXSrc, int nYSrc, int dwRop); | |
3257 public static final native BOOL BringWindowToTop (int /*long*/ hWnd); | |
3258 public static final native int BufferedPaintInit (); | |
3259 public static final native int BufferedPaintSetAlpha (int /*long*/ hBufferedPaint, RECT prc, byte alpha); | |
3260 public static final native int BufferedPaintUnInit (); | |
3261 public static final native int Call (int /*long*/ address, DLLVERSIONINFO arg0); | |
3262 public static final native int /*long*/ CallNextHookEx(int /*long*/ hhk, int nCode, int /*long*/ wParam, int /*long*/ lParam); | |
3263 public static final native int /*long*/ CallWindowProcW (int /*long*/ lpPrevWndFunc, int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3264 public static final native int /*long*/ CallWindowProcA (int /*long*/ lpPrevWndFunc, int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3265 public static final native short CharLowerW (short ch); | |
3266 public static final native short CharLowerA (short ch); | |
3267 public static final native short CharUpperW (short ch); | |
3268 public static final native short CharUpperA (short ch); | |
19 | 3269 public static final native BOOL CheckMenuItem (int /*long*/ hmenu, int uIDCheckItem, int uCheck); |
3 | 3270 public static final native BOOL ChooseColorW (CHOOSECOLOR lpcc); |
3271 public static final native BOOL ChooseColorA (CHOOSECOLOR lpcc); | |
3272 public static final native BOOL ChooseFontW (CHOOSEFONT chooseFont); | |
3273 public static final native BOOL ChooseFontA (CHOOSEFONT chooseFont); | |
3274 public static final native BOOL ClientToScreen (int /*long*/ hWnd, POINT lpPoint); | |
3275 public static final native BOOL CloseClipboard (); | |
3276 public static final native BOOL CloseHandle (int /*long*/ hObject); | |
3277 public static final native int CloseThemeData (int /*long*/ hTheme); | |
3278 public static final native int CoCreateInstance (byte[] rclsid, int /*long*/ pUnkOuter, int dwClsContext, byte[] riid, int /*long*/[] ppv); | |
3279 public static final native int CoInternetIsFeatureEnabled (int FeatureEntry, int dwFlags); | |
3280 public static final native int CoInternetSetFeatureEnabled (int FeatureEntry, int dwFlags, BOOL fEnable); | |
3281 public static final native int CombineRgn (int /*long*/ hrgnDest, int /*long*/ hrgnSrc1, int /*long*/ hrgnSrc2, int fnCombineMode); | |
3282 public static final native BOOL CommandBar_AddAdornments (int /*long*/ hwndCB, int dwFlags, int dwReserved); | |
3283 public static final native int /*long*/ CommandBar_Create (int /*long*/ hInst, int /*long*/ hwndParent, int idCmdBar); | |
3284 public static final native void CommandBar_Destroy (int /*long*/ hwndCB); | |
3285 public static final native BOOL CommandBar_DrawMenuBar (int /*long*/ hwndCB, int iButton); | |
3286 public static final native int CommandBar_Height (int /*long*/ hdnwCB); | |
3287 public static final native BOOL CommandBar_InsertMenubarEx (int /*long*/ hwndCB, int /*long*/ hInst, int /*long*/ pszMenu, int iButton); | |
3288 public static final native BOOL CommandBar_Show (int /*long*/ hwndCB, BOOL fShow); | |
3289 public static final native int CommDlgExtendedError (); | |
3290 public static final native int /*long*/ CopyImage (int /*long*/ hImage, int uType, int cxDesired, int cyDesired, int fuFlags); | |
19 | 3291 public static final native int /*long*/ CreateAcceleratorTableW (byte [] lpaccl, int cEntries); |
3 | 3292 public static final native int /*long*/ CreateAcceleratorTableA (byte [] lpaccl, int cEntries); |
3293 public static final native int /*long*/ CreateActCtxW (ACTCTX pActCtx); | |
3294 public static final native int /*long*/ CreateActCtxA (ACTCTX pActCtx); | |
3295 public static final native int /*long*/ CreateBitmap (int nWidth, int nHeight, int cPlanes, int cBitsPerPel, byte [] lpvBits); | |
3296 public static final native BOOL CreateCaret (int /*long*/ hWnd, int /*long*/ hBitmap, int nWidth, int nHeight); | |
3297 public static final native int /*long*/ CreateCompatibleBitmap (int /*long*/ hdc, int nWidth, int nHeight); | |
3298 public static final native int /*long*/ CreateCompatibleDC (int /*long*/ hdc); | |
3299 public static final native int /*long*/ CreateCursor (int /*long*/ hInst, int xHotSpot, int yHotSpot, int nWidth, int nHeight, byte [] pvANDPlane, byte [] pvXORPlane); | |
19 | 3300 public static final native int /*long*/ CreateDCW (char [] lpszDriver, char [] lpszDevice, int /*long*/ lpszOutput, int /*long*/ lpInitData); |
3301 public static final native int /*long*/ CreateDCA (byte [] lpszDriver, byte [] lpszDevice, int /*long*/ lpszOutput, int /*long*/ lpInitData); | |
3 | 3302 public static final native int /*long*/ CreateDIBSection(int /*long*/ hdc, byte[] pbmi, int iUsage, int /*long*/[] ppvBits, int /*long*/ hSection, int dwOffset); |
3303 public static final native int /*long*/ CreateFontIndirectW (int /*long*/ lplf); | |
3304 public static final native int /*long*/ CreateFontIndirectA (int /*long*/ lplf); | |
3305 public static final native int /*long*/ CreateFontIndirectW (LOGFONTW lplf); | |
3306 public static final native int /*long*/ CreateFontIndirectA (LOGFONTA lplf); | |
3307 public static final native int /*long*/ CreateIconIndirect (ICONINFO lplf); | |
3308 public static final native int /*long*/ CreateMenu (); | |
3309 public static final native int /*long*/ CreatePalette (byte[] logPalette); | |
3310 public static final native int /*long*/ CreatePatternBrush (int /*long*/ colorRef); | |
3311 public static final native int /*long*/ CreatePen (int fnPenStyle, int nWidth, int crColor); | |
3312 public static final native int /*long*/ CreatePolygonRgn(int[] lppt, int cPoints, int fnPolyFillMode); | |
3313 public static final native int /*long*/ CreatePopupMenu (); | |
3314 public static final native BOOL CreateProcessW (int /*long*/ lpApplicationName, int /*long*/ lpCommandLine, int /*long*/ lpProcessAttributes, int /*long*/ lpThreadAttributes, BOOL bInheritHandles, int dwCreationFlags, int /*long*/ lpEnvironment, int /*long*/ lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation); | |
3315 public static final native BOOL CreateProcessA (int /*long*/ lpApplicationName, int /*long*/ lpCommandLine, int /*long*/ lpProcessAttributes, int /*long*/ lpThreadAttributes, BOOL bInheritHandles, int dwCreationFlags, int /*long*/ lpEnvironment, int /*long*/ lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation); | |
3316 public static final native int /*long*/ CreateRectRgn (int left, int top, int right, int bottom); | |
3317 public static final native int /*long*/ CreateSolidBrush (int colorRef); | |
3318 public static final native int CreateStreamOnHGlobal(int /*long*/ hGlobal, BOOL fDeleteOnRelease, int /*long*/[] ppstm); | |
3319 public 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); | |
3320 public 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); | |
3321 public 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); | |
3322 public static final native int /*long*/ DefMDIChildProcW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3323 public static final native int /*long*/ DefMDIChildProcA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3324 public static final native int /*long*/ DefFrameProcW (int /*long*/ hWnd, int /*long*/ hWndMDIClient, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3325 public static final native int /*long*/ DefFrameProcA (int /*long*/ hWnd, int /*long*/ hWndMDIClient, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3326 public static final native int /*long*/ DefWindowProcW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3327 public static final native int /*long*/ DefWindowProcA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3328 public static final native BOOL DeleteDC (int /*long*/ hdc); | |
3329 public static final native BOOL DeleteMenu (int /*long*/ hMenu, int uPosition, int uFlags); | |
3330 public static final native BOOL DeleteObject (int /*long*/ hGdiObj); | |
3331 public static final native BOOL DestroyAcceleratorTable (int /*long*/ hAccel); | |
3332 public static final native BOOL DestroyCaret (); | |
3333 public static final native BOOL DestroyCursor (int /*long*/ hCursor); | |
3334 public static final native BOOL DestroyIcon (int /*long*/ hIcon); | |
3335 public static final native BOOL DestroyMenu (int /*long*/ hMenu); | |
3336 public static final native BOOL DestroyWindow (int /*long*/ hWnd); | |
3337 public static final native int /*long*/ DispatchMessageW (MSG lpmsg); | |
3338 public static final native int /*long*/ DispatchMessageA (MSG lpmsg); | |
3339 public static final native BOOL DragDetect (int /*long*/ hwnd, POINT pt); | |
3340 public static final native void DragFinish (int /*long*/ hDrop); | |
3341 public static final native int DragQueryFileA (int /*long*/ hDrop, int iFile, byte[] lpszFile, int cch); | |
3342 public static final native int DragQueryFileW (int /*long*/ hDrop, int iFile, char[] lpszFile, int cch); | |
3343 public static final native BOOL DrawAnimatedRects (int /*long*/ hwnd, int idAni, RECT lprcFrom, RECT lprcTo); | |
3344 public static final native BOOL DrawEdge (int /*long*/ hdc, RECT qrc, int edge, int grfFlags); | |
3345 public static final native BOOL DrawFocusRect (int /*long*/ hDC, RECT lpRect); | |
3346 public static final native BOOL DrawFrameControl (int /*long*/ hdc, RECT lprc, int uType, int uState); | |
3347 public static final native BOOL DrawIconEx (int /*long*/ hdc, int xLeft, int yTop, int /*long*/ hIcon, int cxWidth, int cyWidth, int istepIfAniCur, int /*long*/ hbrFlickerFreeDraw, int diFlags); | |
3348 public static final native BOOL DrawMenuBar (int /*long*/ hWnd); | |
3349 public static final native BOOL 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); | |
3350 public static final native BOOL 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); | |
3351 public static final native int DrawTextW (int /*long*/ hDC, char [] lpString, int nCount, RECT lpRect, int uFormat); | |
3352 public static final native int DrawTextA (int /*long*/ hDC, byte [] lpString, int nCount, RECT lpRect, int uFormat); | |
3353 public static final native int DrawThemeBackground (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT pRect, RECT pClipRect); | |
3354 public static final native int DrawThemeEdge (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT pDestRect, int uEdge, int uFlags, RECT pContentRect); | |
3355 public static final native int DrawThemeIcon (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT pRect, int /*long*/ himl, int iImageIndex); | |
3356 public static final native int DrawThemeParentBackground (int /*long*/ hwnd, int /*long*/ hdc, RECT prc); | |
3357 public 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); | |
19 | 3358 public static final native int DwmExtendFrameIntoClientArea (int /*long*/ hWnd, MARGINS pMarInset); |
3 | 3359 public static final native BOOL Ellipse (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect); |
3360 public static final native BOOL EnableMenuItem (int /*long*/ hMenu, int uIDEnableItem, int uEnable); | |
3361 public static final native BOOL EnableScrollBar (int /*long*/ hWnd, int wSBflags, int wArrows); | |
3362 public static final native BOOL EnableWindow (int /*long*/ hWnd, BOOL bEnable); | |
3363 public static final native BOOL EnumSystemLanguageGroupsW(int /*long*/ pLangGroupEnumProc, int dwFlags, int /*long*/ lParam); | |
3364 public static final native BOOL EnumSystemLanguageGroupsA(int /*long*/ pLangGroupEnumProc, int dwFlags, int /*long*/ lParam); | |
3365 public static final native BOOL EnumSystemLocalesW (int /*long*/ lpLocaleEnumProc, int dwFlags); | |
3366 public static final native BOOL EnumSystemLocalesA (int /*long*/ lpLocaleEnumProc, int dwFlags); | |
3367 public static final native BOOL EndDeferWindowPos (int /*long*/ hWinPosInfo); | |
3368 public static final native int EndBufferedPaint (int /*long*/ hBufferedPaint, BOOL fUpdateTarget); | |
3369 public static final native int EndDoc (int /*long*/ hdc); | |
3370 public static final native int EndPage (int /*long*/ hdc); | |
3371 public static final native int EndPaint (int /*long*/ hWnd, PAINTSTRUCT lpPaint); | |
3372 public static final native BOOL EndPath(int /*long*/ hdc); | |
3373 public static final native BOOL EnumDisplayMonitors (int /*long*/ hdc, RECT lprcClip, int /*long*/ lpfnEnum, int dwData); | |
3374 public static final native int EnumFontFamiliesW (int /*long*/ hdc, char [] lpszFamily, int /*long*/ lpEnumFontFamProc, int /*long*/ lParam); | |
3375 public static final native int EnumFontFamiliesA (int /*long*/ hdc, byte [] lpszFamily, int /*long*/ lpEnumFontFamProc, int /*long*/ lParam); | |
3376 public static final native int EnumFontFamiliesExW (int /*long*/ hdc, LOGFONTW lpLogfont, int /*long*/ lpEnumFontFamExProc, int /*long*/ lParam, int dwFlags); | |
3377 public static final native int EnumFontFamiliesExA (int /*long*/ hdc, LOGFONTA lpLogfont, int /*long*/ lpEnumFontFamExProc, int /*long*/ lParam, int dwFlags); | |
3378 public static final native BOOL EqualRect (RECT lprc1, RECT lprc2); | |
3379 public static final native BOOL EqualRgn (int /*long*/ hSrcRgn1, int /*long*/ hSrcRgn2); | |
3380 public static final native int ExcludeClipRect (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect); | |
3381 public static final native int ExpandEnvironmentStringsW (char [] lpSrc, char [] lsDst, int nSize); | |
3382 public static final native int ExpandEnvironmentStringsA (byte [] lpSrc, byte [] lsDst, int nSize); | |
3383 public static final native int /*long*/ ExtCreatePen (int dwPenStyle, int dwWidth, LOGBRUSH lplb, int dwStyleCount, int[] lpStyle); | |
3384 public static final native int /*long*/ ExtCreateRegion (float[] lpXform, int nCount, int[] lpRgnData); | |
3385 public static final native BOOL ExtTextOutW (int /*long*/ hdc, int X, int Y, int fuOptions, RECT lprc, char[] lpString, int cbCount, int[] lpDx); | |
3386 public static final native BOOL ExtTextOutA (int /*long*/ hdc, int X, int Y, int fuOptions, RECT lprc, byte[] lpString, int cbCount, int[] lpDx); | |
3387 public static final native int ExtractIconExW (char [] lpszFile, int nIconIndex, int /*long*/ [] phiconLarge, int /*long*/ [] phiconSmall, int nIcons); | |
3388 public static final native int ExtractIconExA (byte [] lpszFile, int nIconIndex, int /*long*/ [] phiconLarge, int /*long*/ [] phiconSmall, int nIcons); | |
3389 public static final native int FillRect (int /*long*/ hDC, RECT lprc, int /*long*/ hbr); | |
3390 public static final native BOOL FillPath (int /*long*/ hdc); | |
3391 public static final native int /*long*/ FindWindowA (byte [] lpClassName, byte [] lpWindowName); | |
3392 public static final native int /*long*/ FindWindowW (char [] lpClassName, char [] lpWindowName); | |
3393 public static final native int FormatMessageA (int dwFlags, int /*long*/ lpSource, int dwMessageId, int dwLanguageId, int[] lpBuffer, int nSize, int /*long*/ Arguments); | |
3394 public static final native int FormatMessageW (int dwFlags, int /*long*/ lpSource, int dwMessageId, int dwLanguageId, int[] lpBuffer, int nSize, int /*long*/ Arguments); | |
3395 public static final native BOOL FreeLibrary (int /*long*/ hLibModule); | |
3396 public static final native int GdiSetBatchLimit (int dwLimit); | |
3397 public static final native int GetACP (); | |
3398 public static final native short GetAsyncKeyState (int nVirtKey); | |
3399 public static final native int /*long*/ GetActiveWindow (); | |
3400 public static final native int GetBkColor (int /*long*/ hDC); | |
3401 public static final native int /*long*/ GetCapture (); | |
3402 public static final native BOOL GetCaretPos (POINT lpPoint); | |
3403 public static final native BOOL GetCharABCWidthsA (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpabc); | |
3404 public static final native BOOL GetCharABCWidthsW (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpabc); | |
3405 public static final native int GetCharacterPlacementW (int /*long*/ hdc, char[] lpString, int nCount, int nMaxExtent, GCP_RESULTS lpResults, int dwFlags); | |
3406 public static final native int GetCharacterPlacementA (int /*long*/ hdc, byte[] lpString, int nCount, int nMaxExtent, GCP_RESULTS lpResults, int dwFlags); | |
3407 public static final native BOOL GetCharWidthA (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpBuffer); | |
3408 public static final native BOOL GetCharWidthW (int /*long*/ hdc, int iFirstChar, int iLastChar, int [] lpBuffer); | |
3409 public static final native BOOL GetClassInfoW (int /*long*/ hInstance, char [] lpClassName, WNDCLASS lpWndClass); | |
3410 public static final native BOOL GetClassInfoA (int /*long*/ hInstance, byte [] lpClassName, WNDCLASS lpWndClass); | |
3411 public static final native int GetClassNameW (int /*long*/ hWnd, char [] lpClassName, int nMaxCount); | |
3412 public static final native int GetClassNameA (int /*long*/ hWnd, byte [] lpClassName, int nMaxCount); | |
3413 public static final native BOOL GetClientRect (int /*long*/ hWnd, RECT lpRect); | |
3414 public static final native int /*long*/ GetClipboardData (int uFormat); | |
3415 public static final native int GetClipboardFormatNameA (int format, byte[] lpszFormatName, int cchMaxCount); | |
3416 public static final native int GetClipboardFormatNameW (int format, char[] lpszFormatName, int cchMaxCount); | |
3417 public static final native int GetClipBox (int /*long*/ hdc, RECT lprc); | |
3418 public static final native int GetClipRgn (int /*long*/ hdc, int /*long*/ hrgn); | |
3419 public static final native BOOL GetComboBoxInfo (int /*long*/ hwndCombo, COMBOBOXINFO pcbi); | |
3420 public static final native int /*long*/ GetCurrentObject (int /*long*/ hdc, int uObjectType); | |
3421 public static final native int GetCurrentProcessId (); | |
3422 public static final native int GetCurrentThreadId (); | |
3423 public static final native int /*long*/ GetCursor (); | |
3424 public static final native BOOL GetCursorPos (POINT lpPoint); | |
3425 public static final native int GetDateFormatW(int Locale, int dwFlags, SYSTEMTIME lpDate, char [] lpFormat, char [] lpDateStr, int cchDate); | |
3426 public static final native int GetDateFormatA(int Locale, int dwFlags, SYSTEMTIME lpDate, byte [] lpFormat, byte [] lpDateStr, int cchDate); | |
3427 public static final native int /*long*/ GetDC (int /*long*/ hwnd); | |
3428 public static final native int /*long*/ GetDCEx (int /*long*/ hWnd, int /*long*/ hrgnClip, int flags); | |
3429 public static final native int /*long*/ GetDesktopWindow (); | |
3430 public static final native int GetDeviceCaps (int /*long*/ hdc, int nIndex); | |
3431 public static final native int GetDialogBaseUnits (); | |
3432 public static final native int GetDIBColorTable (int /*long*/ hdc, int uStartIndex, int cEntries, byte[] pColors); | |
3433 public static final native int GetDIBits (int /*long*/ hdc, int /*long*/ hbmp, int uStartScan, int cScanLines, int /*long*/ lpvBits, byte[] lpbi, int uUsage); | |
3434 public static final native int /*long*/ GetDlgItem (int /*long*/ hDlg, int nIDDlgItem); | |
3435 public static final native int GetDoubleClickTime (); | |
3436 public static final native int /*long*/ GetFocus (); | |
3437 public static final native int GetFontLanguageInfo (int /*long*/ hdc); | |
3438 public static final native int /*long*/ GetForegroundWindow (); | |
3439 public static final native BOOL GetGUIThreadInfo (int idThread, GUITHREADINFO lpgui); | |
3440 public static final native BOOL GetIconInfo (int /*long*/ hIcon, ICONINFO piconinfo); | |
3441 public static final native int GetKeyboardLayoutList (int nBuff, int /*long*/ [] lpList); | |
3442 public static final native int /*long*/ GetKeyboardLayout (int idThread); | |
3443 public static final native short GetKeyState (int nVirtKey); | |
3444 public static final native BOOL GetKeyboardState (byte [] lpKeyState); | |
3445 public static final native int GetKeyNameTextW (int lParam, char [] lpString, int nSize); | |
3446 public static final native int GetKeyNameTextA (int lParam, byte [] lpString, int nSize); | |
3447 public static final native int /*long*/ GetLastActivePopup (int /*long*/ hWnd); | |
3448 public static final native int GetLastError (); | |
3449 public static final native int GetLayout (int /*long*/ hdc); | |
3450 /* returns the instance handle to the swt library */ | |
3451 public static final native int /*long*/ GetLibraryHandle (); | |
3452 public static final native int GetLocaleInfoW (int Locale, int LCType, char [] lpLCData, int cchData); | |
3453 public static final native int GetLocaleInfoA (int Locale, int LCType, byte [] lpLCData, int cchData); | |
3454 public static final native int /*long*/ GetMenu (int /*long*/ hWnd); | |
3455 public static final native BOOL GetMenuBarInfo (int /*long*/ hWnd, int idObject, int idItem, MENUBARINFO pmbi); | |
3456 public static final native int GetMenuDefaultItem (int /*long*/ hMenu, int fByPos, int gmdiFlags); | |
3457 public static final native BOOL GetMenuInfo (int /*long*/ hmenu, MENUINFO lpcmi); | |
3458 public static final native int GetMenuItemCount (int /*long*/ hMenu); | |
3459 public static final native BOOL GetMenuItemInfoW (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii); | |
3460 public static final native BOOL GetMenuItemInfoA (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii); | |
3461 public static final native BOOL GetMenuItemRect (int /*long*/ hWnd, int /*long*/ hMenu, int uItem, RECT lprcItem); | |
3462 public static final native BOOL GetMessageW (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax); | |
3463 public static final native BOOL GetMessageA (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax); | |
3464 public static final native int GetMessagePos (); | |
3465 public static final native int GetMessageTime (); | |
3466 public static final native int GetMetaRgn (int /*long*/ hdc, int /*long*/ hrgn); | |
3467 public static final native int GetThemeColor (int /*long*/ hTheme, int iPartId, int iStateId, int iPropId, int[] pColor); | |
3468 public 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); | |
3469 public static final native int GetTextCharset (int /*long*/ hdc); | |
3470 public static final native int GetTickCount (); | |
3471 public static final native int GetModuleFileNameW (int /*long*/ hModule, char [] lpFilename, int inSize); | |
3472 public static final native int GetModuleFileNameA (int /*long*/ hModule, byte [] lpFilename, int inSize); | |
3473 public static final native int /*long*/ GetModuleHandleW (char [] lpModuleName); | |
3474 public static final native int /*long*/ GetModuleHandleA (byte [] lpModuleName); | |
3475 public static final native BOOL GetMonitorInfoW (int /*long*/ hmonitor, MONITORINFO lpmi); | |
3476 public static final native BOOL GetMonitorInfoA (int /*long*/ hmonitor, MONITORINFO lpmi); | |
3477 public static final native int GetNearestPaletteIndex (int /*long*/ hPal, int crColor); | |
3478 public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, BITMAP lpvObject); | |
3479 public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, BITMAP lpvObject); | |
3480 public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, DIBSECTION lpvObject); | |
3481 public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, DIBSECTION lpvObject); | |
3482 public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, EXTLOGPEN lpvObject); | |
3483 public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, EXTLOGPEN lpvObject); | |
3484 public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, LOGBRUSH lpvObject); | |
3485 public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, LOGBRUSH lpvObject); | |
3486 public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, LOGFONTA lpvObject); | |
3487 public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, LOGFONTW lpvObject); | |
3488 public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, LOGPEN lpvObject); | |
3489 public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, LOGPEN lpvObject); | |
3490 public static final native int GetObjectA (int /*long*/ hgdiobj, int cbBuffer, int /*long*/ lpvObject); | |
3491 public static final native int GetObjectW (int /*long*/ hgdiobj, int cbBuffer, int /*long*/ lpvObject); | |
3492 public static final native BOOL GetOpenFileNameW (OPENFILENAME lpofn); | |
3493 public static final native BOOL GetOpenFileNameA (OPENFILENAME lpofn); | |
3494 public static final native int GetPath (int /*long*/ hdc, int[] lpPoints, byte[] lpTypes, int nSize); | |
3495 public static final native int GetPaletteEntries (int /*long*/ hPalette, int iStartIndex, int nEntries, byte[] logPalette); | |
3496 public static final native int /*long*/ GetParent (int /*long*/ hWnd); | |
3497 public static final native int GetPixel (int /*long*/ hdc, int x, int y); | |
3498 public static final native int GetPolyFillMode (int /*long*/ hdc); | |
3499 public static final native int /*long*/ GetProcAddress (int /*long*/ hModule, byte [] lpProcName); | |
3500 public static final native int /*long*/ GetProcessHeap (); | |
3501 public static final native int GetProcessHeaps (int NumberOfHeaps, int /*long*/[] ProcessHeaps); | |
3502 public static final native int GetProfileStringW (char [] lpAppName, char [] lpKeyName, char [] lpDefault, char [] lpReturnedString, int nSize); | |
3503 public static final native int GetProfileStringA (byte [] lpAppName, byte [] lpKeyName, byte [] lpDefault, byte [] lpReturnedString, int nSize); | |
3504 public static final native int /*long*/ GetPropW (int /*long*/ hWnd, int /*long*/ lpString); | |
3505 public static final native int /*long*/ GetPropA (int /*long*/ hWnd, int /*long*/ lpString); | |
3506 public static final native int GetRandomRgn (int /*long*/ hdc, int /*long*/ hrgn, int iNum); | |
3507 public static final native int GetRegionData (int /*long*/ hRgn, int dwCount, int [] lpRgnData); | |
3508 public static final native int GetRgnBox (int /*long*/ hrgn, RECT lprc); | |
3509 public static final native int GetROP2 (int /*long*/ hdc); | |
3510 public static final native BOOL GetSaveFileNameW (OPENFILENAME lpofn); | |
3511 public static final native BOOL GetSaveFileNameA (OPENFILENAME lpofn); | |
3512 public static final native BOOL GetScrollInfo (int /*long*/ hwnd, int flags, SCROLLINFO info); | |
3513 public static final native void GetStartupInfoW (STARTUPINFO lpStartupInfo); | |
3514 public static final native void GetStartupInfoA (STARTUPINFO lpStartupInfo); | |
3515 public static final native int /*long*/ GetStockObject (int fnObject); | |
3516 public static final native int GetSysColor (int nIndex); | |
3517 public static final native int /*long*/ GetSysColorBrush (int nIndex); | |
3518 public static final native short GetSystemDefaultUILanguage (); | |
3519 public static final native int /*long*/ GetSystemMenu (int /*long*/ hWnd, BOOL bRevert); | |
3520 public static final native int GetSystemMetrics (int nIndex); | |
3521 public static final native int GetSystemPaletteEntries (int /*long*/ hdc, int iStartIndex, int nEntries, byte[] lppe); | |
3522 public static final native int GetTextColor (int /*long*/ hDC); | |
3523 public static final native BOOL GetTextExtentPoint32W (int /*long*/ hdc, char [] lpString, int cbString, SIZE lpSize); | |
3524 public static final native BOOL GetTextExtentPoint32A (int /*long*/ hdc, byte [] lpString, int cbString, SIZE lpSize); | |
3525 public static final native BOOL GetTextMetricsW (int /*long*/ hdc, TEXTMETRICW lptm); | |
3526 public static final native BOOL GetTextMetricsA (int /*long*/ hdc, TEXTMETRICA lptm); | |
3527 public static final native int GetThemeInt (int /*long*/ hTheme, int iPartId, int iStateId, int iPropId, int[] piVal); | |
3528 public static final native int GetThemeMargins (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, int iPropId, RECT prc, MARGINS pMargins); | |
3529 public static final native int GetThemeBackgroundContentRect (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT pBoundingRect, RECT pContentRect); | |
3530 public static final native int GetThemeBackgroundExtent (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT pContentRect, RECT pExtentRect); | |
3531 public static final native int GetThemePartSize (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, RECT prc, int eSize, SIZE psz); | |
3532 public static final native int GetThemeMetric (int /*long*/ hTheme, int /*long*/ hdc, int iPartId, int iStateId, int iPropId, int[] piVal); | |
3533 public static final native int GetThemeRect (int /*long*/ hTheme, int iPartId, int iStateId, int iPropId, RECT pRect); | |
3534 public static final native int GetThemeSysSize (int /*long*/ hTheme, int iSizeID); | |
3535 public static final native int GetTimeFormatW(int Locale, int dwFlags, SYSTEMTIME lpTime, char [] lpFormat, char [] lpTimeStr, int cchTime); | |
3536 public static final native int GetTimeFormatA(int Locale, int dwFlags, SYSTEMTIME lpTime, byte [] lpFormat, byte [] lpTimeStr, int cchTime); | |
3537 public static final native BOOL GetUpdateRect (int /*long*/ hWnd, RECT lpRect, BOOL bErase); | |
3538 public static final native int GetUpdateRgn (int /*long*/ hWnd, int /*long*/ hRgn, BOOL bErase); | |
3539 public static final native BOOL GetVersionExW (OSVERSIONINFOEXW lpVersionInfo); | |
3540 public static final native BOOL GetVersionExA (OSVERSIONINFOEXA lpVersionInfo); | |
3541 public static final native BOOL GetVersionExW (OSVERSIONINFOW lpVersionInfo); | |
3542 public static final native BOOL GetVersionExA (OSVERSIONINFOA lpVersionInfo); | |
3543 public static final native int /*long*/ GetWindow (int /*long*/ hWnd, int uCmd); | |
3544 public static final native int GetWindowLongW (int /*long*/ hWnd, int nIndex); | |
3545 public static final native int GetWindowLongA (int /*long*/ hWnd, int nIndex); | |
3546 public static final native int /*long*/ GetWindowLongPtrW (int /*long*/ hWnd, int nIndex); | |
3547 public static final native int /*long*/ GetWindowLongPtrA (int /*long*/ hWnd, int nIndex); | |
3548 public static final native int /*long*/ GetWindowDC (int /*long*/ hWnd); | |
3549 public static final native BOOL GetWindowOrgEx (int /*long*/ hdc, POINT lpPoint); | |
3550 public static final native BOOL GetWindowPlacement (int /*long*/ hWnd, WINDOWPLACEMENT lpwndpl); | |
3551 public static final native BOOL GetWindowRect (int /*long*/ hWnd, RECT lpRect); | |
3552 public static final native int GetWindowRgn (int /*long*/ hWnd, int /*long*/ hRgn); | |
3553 public static final native int GetWindowTextW (int /*long*/ hWnd, char [] lpString, int nMaxCount); | |
3554 public static final native int GetWindowTextA (int /*long*/ hWnd, byte [] lpString, int nMaxCount); | |
3555 public static final native int GetWindowTextLengthW (int /*long*/ hWnd); | |
3556 public static final native int GetWindowTextLengthA (int /*long*/ hWnd); | |
3557 public static final native int GetWindowTheme (int /*long*/ hWnd); | |
3558 public static final native int GetWindowThreadProcessId (int /*long*/ hWnd, int [] lpdwProcessId); | |
3559 public static final native BOOL GetWorldTransform (int /*long*/ hdc, float[] lpXform); | |
3560 public static final native int GlobalAddAtomW (char [] lpString); | |
3561 public static final native int GlobalAddAtomA (byte [] lpString); | |
3562 public static final native int /*long*/ GlobalAlloc (int uFlags, int dwBytes); | |
3563 public static final native int /*long*/ GlobalFree (int /*long*/ hMem); | |
3564 public static final native int /*long*/ GlobalLock (int /*long*/ hMem); | |
3565 public static final native int GlobalSize (int /*long*/ hMem); | |
3566 public static final native BOOL GlobalUnlock (int /*long*/ hMem); | |
3567 public static final native BOOL GradientFill (int /*long*/ hdc, int /*long*/ pVertex, int dwNumVertex, int /*long*/ pMesh, int dwNumMesh, int dwMode); | |
3568 public static final native int /*long*/ HeapAlloc (int /*long*/ hHeap, int dwFlags, int dwBytes); | |
3569 public static final native BOOL HeapFree (int /*long*/ hHeap, int dwFlags, int /*long*/ lpMem); | |
3570 public static final native BOOL HeapValidate (int /*long*/ hHeap, int dwFlags, int /*long*/ lpMem); | |
3571 public static final native BOOL HideCaret (int /*long*/ hWnd); | |
3572 public 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); | |
3573 public static final native int IIDFromString (char[] lpsz, byte[] lpiid); | |
3574 public static final native int ImageList_Add (int /*long*/ himl, int /*long*/ hbmImage, int /*long*/ hbmMask); | |
3575 public static final native int ImageList_AddMasked (int /*long*/ himl, int /*long*/ hbmImage, int crMask); | |
3576 public static final native BOOL ImageList_BeginDrag (int /*long*/ himl, int iTrack, int dxHotspot, int dyHotspot); | |
3577 public static final native int /*long*/ ImageList_Create (int cx, int cy, int flags, int cInitial, int cGrow); | |
3578 public static final native BOOL ImageList_Destroy (int /*long*/ himl); | |
3579 public static final native BOOL ImageList_DragEnter (int /*long*/ hwndLock, int x, int y); | |
3580 public static final native BOOL ImageList_DragLeave (int /*long*/ hwndLock); | |
3581 public static final native BOOL ImageList_DragMove (int x, int y); | |
3582 public static final native BOOL ImageList_DragShowNolock (BOOL fShow); | |
3583 public static final native BOOL ImageList_Draw (int /*long*/ himl, int i, int /*long*/ hdcDst, int x, int y, int fStyle); | |
3584 public static final native void ImageList_EndDrag (); | |
3585 public static final native int /*long*/ ImageList_GetDragImage (POINT ppt, POINT pptHotspot); | |
3586 public static final native int /*long*/ ImageList_GetIcon (int /*long*/ himl, int i, int flags); | |
19 | 3587 public static final native BOOL ImageList_GetIconSize (int /*long*/ himl, int [] cx, int [] cy); |
3 | 3588 public static final native int ImageList_GetImageCount (int /*long*/ himl); |
3589 public static final native BOOL ImageList_Remove (int /*long*/ himl, int i); | |
3590 public static final native BOOL ImageList_Replace (int /*long*/ himl, int i, int /*long*/ hbmImage, int /*long*/ hbmMask); | |
3591 public static final native int ImageList_ReplaceIcon (int /*long*/ himl, int i, int /*long*/ hicon); | |
3592 public static final native BOOL ImageList_SetIconSize (int /*long*/ himl, int cx, int cy); | |
3593 public static final native int /*long*/ ImmAssociateContext (int /*long*/ hWnd, int /*long*/ hIMC); | |
3594 public static final native int /*long*/ ImmCreateContext (); | |
3595 public static final native BOOL ImmDestroyContext (int /*long*/ hIMC); | |
3596 public static final native BOOL ImmDisableTextFrameService (int idThread); | |
3597 public static final native BOOL ImmGetCompositionFontW (int /*long*/ hIMC, LOGFONTW lplf); | |
3598 public static final native BOOL ImmGetCompositionFontA (int /*long*/ hIMC, LOGFONTA lplf); | |
3599 public static final native int ImmGetCompositionStringW (int /*long*/ hIMC, int dwIndex, char [] lpBuf, int dwBufLen); | |
3600 public static final native int ImmGetCompositionStringA (int /*long*/ hIMC, int dwIndex, byte [] lpBuf, int dwBufLen); | |
3601 public static final native int /*long*/ ImmGetContext (int /*long*/ hWnd); | |
3602 public static final native BOOL ImmGetConversionStatus (int /*long*/ hIMC, int [] lpfdwConversion, int [] lpfdwSentence); | |
3603 public static final native int /*long*/ ImmGetDefaultIMEWnd (int /*long*/ hWnd); | |
3604 public static final native BOOL ImmGetOpenStatus (int /*long*/ hIMC); | |
3605 public static final native BOOL ImmReleaseContext (int /*long*/ hWnd, int /*long*/ hIMC); | |
3606 public static final native BOOL ImmSetCompositionFontW (int /*long*/ hIMC, LOGFONTW lplf); | |
3607 public static final native BOOL ImmSetCompositionFontA (int /*long*/ hIMC, LOGFONTA lplf); | |
3608 public static final native BOOL ImmSetCompositionWindow (int /*long*/ hIMC, COMPOSITIONFORM lpCompForm); | |
3609 public static final native BOOL ImmSetConversionStatus (int /*long*/ hIMC, int fdwConversion, int dwSentence); | |
3610 public static final native BOOL ImmSetOpenStatus (int /*long*/ hIMC, BOOL fOpen); | |
3611 public static final native void InitCommonControls (); | |
3612 public static final native BOOL InitCommonControlsEx (INITCOMMONCONTROLSEX lpInitCtrls); | |
3613 public static final native BOOL InsertMenuW (int /*long*/ hMenu, int uPosition, int uFlags, int /*long*/ uIDNewItem, char [] lpNewItem); | |
3614 public static final native BOOL InsertMenuA (int /*long*/ hMenu, int uPosition, int uFlags, int /*long*/ uIDNewItem, byte [] lpNewItem); | |
3615 public static final native BOOL InsertMenuItemW (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii); | |
3616 public static final native BOOL InsertMenuItemA (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii); | |
3617 public static final native BOOL InternetSetOption (int /*long*/ hInternet, int dwOption, int /*long*/ lpBuffer, int dwBufferLength); | |
3618 public static final native int IntersectClipRect (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect); | |
3619 public static final native BOOL IntersectRect (RECT lprcDst, RECT lprcSrc1, RECT lprcSrc2); | |
3620 public static final native BOOL InvalidateRect (int /*long*/ hWnd, RECT lpRect, BOOL bErase); | |
3621 public static final native BOOL InvalidateRgn (int /*long*/ hWnd, int /*long*/ hRgn, BOOL bErase); | |
3622 public static final native BOOL IsAppThemed (); | |
3623 public static final native BOOL IsBadReadPtr (int /*long*/ lp, int ucb); | |
3624 public static final native BOOL IsBadWritePtr (int /*long*/ lp, int ucb); | |
3625 public static final native BOOL IsDBCSLeadByte (byte TestChar); | |
3626 public static final native BOOL IsHungAppWindow (int /*long*/ hWnd); | |
3627 public static final native BOOL IsIconic (int /*long*/ hWnd); | |
3628 public static final native BOOL IsPPC (); | |
3629 public static final native BOOL IsSP (); | |
3630 public static final native BOOL IsWindowEnabled (int /*long*/ hWnd); | |
3631 public static final native BOOL IsWindowVisible (int /*long*/ hWnd); | |
3632 public static final native BOOL IsZoomed (int /*long*/ hWnd); | |
3633 public static final native BOOL KillTimer (int /*long*/ hWnd, int /*long*/ uIDEvent); | |
3634 public static final native BOOL LineTo (int /*long*/ hdc, int x1, int x2); | |
3635 public static final native int /*long*/ LoadBitmapW (int /*long*/ hInstance, int /*long*/ lpBitmapName); | |
3636 public static final native int /*long*/ LoadBitmapA (int /*long*/ hInstance, int /*long*/ lpBitmapName); | |
3637 public static final native int /*long*/ LoadCursorW (int /*long*/ hInstance, int /*long*/ lpCursorName); | |
3638 public static final native int /*long*/ LoadCursorA (int /*long*/ hInstance, int /*long*/ lpCursorName); | |
3639 public static final native int /*long*/ LoadIconW (int /*long*/ hInstance, int /*long*/ lpIconName); | |
3640 public static final native int /*long*/ LoadIconA (int /*long*/ hInstance, int /*long*/ lpIconName); | |
3641 public static final native int /*long*/ LoadImageW (int /*long*/ hinst, char [] lpszName, int uType, int cxDesired, int cyDesired, int fuLoad); | |
3642 public static final native int /*long*/ LoadImageA (int /*long*/ hinst, byte [] lpszName, int uType, int cxDesired, int cyDesired, int fuLoad); | |
3643 public static final native int /*long*/ LoadImageW (int /*long*/ hinst, int /*long*/ lpszName, int uType, int cxDesired, int cyDesired, int fuLoad); | |
3644 public static final native int /*long*/ LoadImageA (int /*long*/ hinst, int /*long*/ lpszName, int uType, int cxDesired, int cyDesired, int fuLoad); | |
3645 public static final native int LoadStringW (int /*long*/ hinst, int uID, char [] lpBuffer, int nBufferMax); | |
3646 public static final native int LoadStringA (int /*long*/ hinst, int uID, byte [] lpBuffer, int nBufferMax); | |
3647 public static final native int /*long*/ LoadLibraryW (char [] lpLibFileName); | |
3648 public static final native int /*long*/ LoadLibraryA (byte [] lpLibFileName); | |
3649 public static final native int /*long*/ LocalFree (int /*long*/ hMem); | |
3650 public static final native BOOL LockWindowUpdate (int /*long*/ hWndLock); | |
3651 public static final native int MapVirtualKeyW (int uCode, int uMapType); | |
3652 public static final native int MapVirtualKeyA (int uCode, int uMapType); | |
3653 public static final native int MapWindowPoints (int /*long*/ hWndFrom, int /*long*/ hWndTo, POINT lpPoints, int cPoints); | |
3654 public static final native int MapWindowPoints (int /*long*/ hWndFrom, int /*long*/ hWndTo, RECT lpPoints, int cPoints); | |
3655 public static final native BOOL MCIWndRegisterClass (); | |
3656 public static final native BOOL MessageBeep (int uType); | |
3657 public static final native int MessageBoxW (int /*long*/ hWnd, char [] lpText, char [] lpCaption, int uType); | |
3658 public static final native int MessageBoxA (int /*long*/ hWnd, byte [] lpText, byte [] lpCaption, int uType); | |
3659 public static final native int /*long*/ MonitorFromWindow (int /*long*/ hwnd, int dwFlags); | |
3660 public static final native void MoveMemory (char[] Destination, int /*long*/ SourcePtr, int Length); | |
3661 public static final native void MoveMemory (byte [] Destination, int /*long*/ Source, int Length); | |
3662 public static final native void MoveMemory (byte [] Destination, ACCEL Source, int Length); | |
3663 public static final native void MoveMemory (byte [] Destination, BITMAPINFOHEADER Source, int Length); | |
3664 public static final native void MoveMemory (int [] Destination, int /*long*/ Source, int Length); | |
3665 public static final native void MoveMemory (long [] Destination, int /*long*/ SourcePtr, int Length); | |
3666 public static final native void MoveMemory (double[] Destination, int /*long*/ SourcePtr, int Length); | |
3667 public static final native void MoveMemory (float[] Destination, int /*long*/ SourcePtr, int Length); | |
3668 public static final native void MoveMemory (short[] Destination, int /*long*/ SourcePtr, int Length); | |
3669 public static final native void MoveMemory (int /*long*/ Destination, byte [] Source, int Length); | |
3670 public static final native void MoveMemory (int /*long*/ Destination, char [] Source, int Length); | |
3671 public static final native void MoveMemory (int /*long*/ Destination, int [] Source, int Length); | |
3672 public static final native void MoveMemory (int /*long*/ Destination, GRADIENT_RECT Source, int Length); | |
3673 public static final native void MoveMemory (int /*long*/ Destination, LOGFONTW Source, int Length); | |
3674 public static final native void MoveMemory (int /*long*/ Destination, LOGFONTA Source, int Length); | |
3675 public static final native void MoveMemory (int /*long*/ Destination, MEASUREITEMSTRUCT Source, int Length); | |
3676 public static final native void MoveMemory (int /*long*/ Destination, MINMAXINFO Source, int Length); | |
3677 public static final native void MoveMemory (int /*long*/ Destination, MSG Source, int Length); | |
3678 public static final native void MoveMemory (int /*long*/ Destination, UDACCEL Source, int Length); | |
3679 public static final native void MoveMemory (int /*long*/ Destination, NMTTDISPINFOW Source, int Length); | |
3680 public static final native void MoveMemory (int /*long*/ Destination, NMTTDISPINFOA Source, int Length); | |
3681 public static final native void MoveMemory (int /*long*/ Destination, OPENFILENAME Source, int Length); | |
3682 public static final native void MoveMemory (int /*long*/ Destination, RECT Source, int Length); | |
3683 public static final native void MoveMemory (int /*long*/ Destination, TRIVERTEX Source, int Length); | |
3684 public static final native void MoveMemory (int /*long*/ Destination, WINDOWPOS Source, int Length); | |
3685 public static final native void MoveMemory (BITMAPINFOHEADER Destination, byte [] Source, int Length); | |
3686 public static final native void MoveMemory (DRAWITEMSTRUCT Destination, int /*long*/ Source, int Length); | |
3687 public static final native void MoveMemory (EXTLOGPEN Destination, int /*long*/ Source, int Length); | |
3688 public static final native void MoveMemory (HDITEM Destination, int /*long*/ Source, int Length); | |
3689 public static final native void MoveMemory (HELPINFO Destination, int /*long*/ Source, int Length); | |
3690 public static final native void MoveMemory (LOGFONTW Destination, int /*long*/ Source, int Length); | |
3691 public static final native void MoveMemory (LOGFONTA Destination, int /*long*/ Source, int Length); | |
3692 public static final native void MoveMemory (MEASUREITEMSTRUCT Destination, int /*long*/ Source, int Length); | |
3693 public static final native void MoveMemory (MINMAXINFO Destination, int /*long*/ Source, int Length); | |
3694 public static final native void MoveMemory (OFNOTIFY Destination, int /*long*/ Source, int Length); | |
3695 public static final native void MoveMemory (OPENFILENAME Destination, int /*long*/ Source, int Length); | |
3696 public static final native void MoveMemory (POINT Destination, int /*long*/ Source, int Length); | |
3697 public static final native void MoveMemory (NMHDR Destination, int /*long*/ Source, int Length); | |
3698 public static final native void MoveMemory (NMRGINFO Destination, int /*long*/ Source, int Length); | |
3699 public static final native void MoveMemory (NMCUSTOMDRAW Destination, int /*long*/ Source, int Length); | |
3700 public static final native void MoveMemory (NMLVCUSTOMDRAW Destination, int /*long*/ Source, int Length); | |
3701 public static final native void MoveMemory (NMTBHOTITEM Destination, int /*long*/ Source, int Length); | |
3702 public static final native void MoveMemory (NMTVCUSTOMDRAW Destination, int /*long*/ Source, int Length); | |
3703 public static final native void MoveMemory (NMTVITEMCHANGE Destination, int /*long*/ Source, int Length); | |
3704 public static final native void MoveMemory (NMUPDOWN Destination, int /*long*/ Source, int Length); | |
3705 public static final native void MoveMemory (int /*long*/ Destination, NMLVCUSTOMDRAW Source, int Length); | |
3706 public static final native void MoveMemory (int /*long*/ Destination, NMTVCUSTOMDRAW Source, int Length); | |
3707 public static final native void MoveMemory (int /*long*/ Destination, NMLVDISPINFO Source, int Length); | |
3708 public static final native void MoveMemory (int /*long*/ Destination, NMTVDISPINFO Source, int Length); | |
3709 public static final native void MoveMemory (NMLVDISPINFO Destination, int /*long*/ Source, int Length); | |
3710 public static final native void MoveMemory (NMTVDISPINFO Destination, int /*long*/ Source, int Length); | |
3711 public static final native void MoveMemory (NMLVFINDITEM Destination, int /*long*/ Source, int Length); | |
3712 public static final native void MoveMemory (NMLVODSTATECHANGE Destination, int /*long*/ Source, int Length); | |
3713 public static final native void MoveMemory (NMHEADER Destination, int /*long*/ Source, int Length); | |
3714 public static final native void MoveMemory (NMLINK Destination, int /*long*/ Source, int Length); | |
3715 public static final native void MoveMemory (NMLISTVIEW Destination, int /*long*/ Source, int Length); | |
3716 public static final native void MoveMemory (NMREBARCHILDSIZE Destination, int /*long*/ Source, int Length); | |
3717 public static final native void MoveMemory (NMREBARCHEVRON Destination, int /*long*/ Source, int Length); | |
3718 public static final native void MoveMemory (NMTOOLBAR Destination, int /*long*/ Source, int Length); | |
3719 public static final native void MoveMemory (NMTTDISPINFOW Destination, int /*long*/ Source, int Length); | |
3720 public static final native void MoveMemory (NMTTDISPINFOA Destination, int /*long*/ Source, int Length); | |
3721 public static final native void MoveMemory (RECT Destination, int /*long*/[] Source, int Length); | |
3722 public static final native void MoveMemory (TEXTMETRICW Destination, int /*long*/ Source, int Length); | |
3723 public static final native void MoveMemory (TEXTMETRICA Destination, int /*long*/ Source, int Length); | |
3724 public static final native void MoveMemory (TVITEM Destination, int /*long*/ Source, int Length); | |
3725 public static final native void MoveMemory (WINDOWPOS Destination, int /*long*/ Source, int Length); | |
3726 public static final native void MoveMemory (MSG Destination, int /*long*/ Source, int Length); | |
3727 public static final native void MoveMemory (UDACCEL Destination, int /*long*/ Source, int Length); | |
3728 public static final native void MoveMemory (int /*long*/ Destination, DROPFILES Source, int Length); | |
3729 public static final native void MoveMemory (int /*long*/ DestinationPtr, double[] Source, int Length); | |
3730 public static final native void MoveMemory (int /*long*/ DestinationPtr, float[] Source, int Length); | |
3731 public static final native void MoveMemory (int /*long*/ DestinationPtr, long[] Source, int Length); | |
3732 public static final native void MoveMemory (int /*long*/ DestinationPtr, short[] Source, int Length); | |
3733 public static final native void MoveMemory (SCRIPT_ITEM Destination, int /*long*/ SourcePtr, int Length); | |
3734 public static final native void MoveMemory (SCRIPT_LOGATTR Destination, int /*long*/ SourcePtr, int Length); | |
3735 public static final native void MoveMemory (SCRIPT_PROPERTIES Destination, int /*long*/ SourcePtr, int Length); | |
3736 public static final native void MoveMemory (int /*long*/ Destination, KEYBDINPUT Source, int Length); | |
3737 public static final native void MoveMemory (int /*long*/ Destination, MOUSEINPUT Source, int Length); | |
3738 public static final native BOOL MoveToEx (int /*long*/ hdc, int x1, int x2, int /*long*/ lPoint); | |
3739 public static final native int MsgWaitForMultipleObjectsEx (int nCount, int /*long*/ pHandles, int dwMilliseconds, int dwWakeMask, int dwFlags); | |
15 | 3740 //alias WINAPI.MultiByteToWideChar MultiByteToWideChar; |
3 | 3741 public static final native void NotifyWinEvent (int event, int /*long*/ hwnd, int idObject, int idChild); |
3742 public static final native BOOL OffsetRect (RECT lprc, int dx, int dy); | |
3743 public static final native int OffsetRgn (int /*long*/ hrgn, int nXOffset, int nYOffset); | |
3744 public static final native int OleInitialize (int /*long*/ pvReserved); | |
3745 public static final native void OleUninitialize (); | |
3746 public static final native BOOL OpenClipboard (int /*long*/ hWndNewOwner); | |
3747 public static final native int /*long*/ OpenThemeData (int /*long*/ hwnd, char[] pszClassList); | |
3748 public static final native BOOL PatBlt (int /*long*/ hdc, int x1, int x2, int w, int h, int rop); | |
3749 public static final native BOOL PeekMessageW (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg); | |
3750 public static final native BOOL PeekMessageA (MSG lpMsg, int /*long*/ hWnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg); | |
3751 public static final native BOOL Pie (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nXStartArc, int nYStartArc, int nXEndArc, int nYEndArc); | |
3752 public static final native BOOL Polygon (int /*long*/ hdc, int [] points, int nPoints); | |
3753 public static final native BOOL Polyline (int /*long*/ hdc, int[] points, int nPoints); | |
3754 public static final native BOOL PostMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3755 public static final native BOOL PostMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3756 public static final native BOOL PostThreadMessageW (int idThread, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3757 public static final native BOOL PostThreadMessageA (int idThread, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3758 public static final native short PRIMARYLANGID (short lgid); | |
3759 public static final native BOOL PrintDlgW (PRINTDLG lppd); | |
3760 public static final native BOOL PrintDlgA (PRINTDLG lppd); | |
3761 public static final native BOOL PrintWindow (int /*long*/ hwnd, int /*long*/ hdcBlt, int nFlags); | |
3762 public static final native BOOL PtInRect (RECT rect, POINT pt); | |
3763 public static final native BOOL PtInRegion (int /*long*/ hrgn, int X, int Y); | |
3764 public static final native int RealizePalette (int /*long*/ hDC); | |
3765 public static final native BOOL Rectangle (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect); | |
3766 public static final native BOOL RectInRegion (int /*long*/ hrgn, RECT lprc); | |
3767 public static final native BOOL RedrawWindow (int /*long*/ hWnd, RECT lprcUpdate, int /*long*/ hrgnUpdate, int flags); | |
3768 public static final native int RegCloseKey (int /*long*/ hKey); | |
3769 public static final native int RegEnumKeyExW (int /*long*/ hKey, int dwIndex, char [] lpName, int [] lpcName, int [] lpReserved, char [] lpClass, int [] lpcClass, FILETIME lpftLastWriteTime); | |
3770 public static final native int RegEnumKeyExA (int /*long*/ hKey, int dwIndex, byte [] lpName, int [] lpcName, int [] lpReserved, byte [] lpClass, int [] lpcClass, FILETIME lpftLastWriteTime); | |
3771 public static final native int RegisterClassW (WNDCLASS lpWndClass); | |
3772 public static final native int RegisterClassA (WNDCLASS lpWndClass); | |
3773 public static final native int RegisterWindowMessageW (char [] lpString); | |
3774 public static final native int RegisterWindowMessageA (byte [] lpString); | |
19 | 3775 public static final native int RegisterClipboardFormatA (byte[] lpszFormat); |
3776 public static final native int RegisterClipboardFormatW (char[] lpszFormat); | |
3 | 3777 public static final native int RegOpenKeyExW (int /*long*/ hKey, char[] lpSubKey, int ulOptions, int samDesired, int /*long*/[] phkResult); |
3778 public static final native int RegOpenKeyExA (int /*long*/ hKey, byte[] lpSubKey, int ulOptions, int samDesired, int /*long*/[] phkResult); | |
3779 public 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); | |
3780 public 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); | |
3781 public static final native int RegQueryValueExW (int /*long*/ hKey, char[] lpValueName, int /*long*/ lpReserved, int[] lpType, char [] lpData, int[] lpcbData); | |
3782 public static final native int RegQueryValueExW (int /*long*/ hKey, char[] lpValueName, int /*long*/ lpReserved, int[] lpType, int [] lpData, int[] lpcbData); | |
3783 public static final native int RegQueryValueExA (int /*long*/ hKey, byte[] lpValueName, int /*long*/ lpReserved, int[] lpType, byte [] lpData, int[] lpcbData); | |
3784 public static final native int RegQueryValueExA (int /*long*/ hKey, byte[] lpValueName, int /*long*/ lpReserved, int[] lpType, int [] lpData, int[] lpcbData); | |
3785 public static final native BOOL ReleaseCapture (); | |
3786 public static final native int ReleaseDC (int /*long*/ hWnd, int /*long*/ hDC); | |
3787 public static final native BOOL RemoveMenu (int /*long*/ hMenu, int uPosition, int uFlags); | |
3788 public static final native int /*long*/ RemovePropA (int /*long*/ hWnd, int /*long*/ lpString); | |
3789 public static final native int /*long*/ RemovePropW (int /*long*/ hWnd, int /*long*/ lpString); | |
3790 public static final native BOOL RestoreDC (int /*long*/ hdc, int nSavedDC); | |
3791 public static final native BOOL RoundRect (int /*long*/ hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nWidth, int nHeight); | |
3792 public static final native int SaveDC (int /*long*/ hdc); | |
3793 public static final native BOOL ScreenToClient (int /*long*/ hWnd, POINT lpPoint); | |
3794 public static final native int ScriptApplyDigitSubstitution (SCRIPT_DIGITSUBSTITUTE psds, SCRIPT_CONTROL psc, SCRIPT_STATE pss); | |
3795 public static final native int ScriptBreak (char[] pwcChars, int cChars, SCRIPT_ANALYSIS psa, int /*long*/ psla); | |
3796 public static final native int ScriptGetProperties (int /*long*/[] ppSp, int[] piNumScripts); | |
3797 public static final native int ScriptCacheGetHeight (int /*long*/ hdc, int /*long*/ psc, int[] tmHeight); | |
3798 public static final native int ScriptCPtoX (int iCP, BOOL fTrailing, int cChars, int cGlyphs, int /*long*/ pwLogClust, int /*long*/ psva, int /*long*/ piAdvance, SCRIPT_ANALYSIS psa, int[] piX); | |
3799 public static final native int ScriptFreeCache (int /*long*/ psc); | |
3800 public static final native int ScriptGetFontProperties (int /*long*/ hdc, int /*long*/ psc, SCRIPT_FONTPROPERTIES sfp); | |
3801 public static final native int ScriptGetLogicalWidths (SCRIPT_ANALYSIS psa, int cChars, int cGlyphs, int /*long*/ piGlyphWidth, int /*long*/ pwLogClust, int /*long*/ psva, int[] piDx); | |
3802 public static final native int ScriptItemize (char[] pwcInChars, int cInChars, int cMaxItems, SCRIPT_CONTROL psControl, SCRIPT_STATE psState, int /*long*/ pItems, int[] pcItems); | |
3803 public static final native int ScriptJustify (int /*long*/ psva, int /*long*/ piAdvance, int cGlyphs, int iDx, int iMinKashida, int /*long*/ piJustify); | |
3804 public static final native int ScriptLayout (int cRuns, byte[] pbLevel, int[] piVisualToLogical, int[] piLogicalToVisual); | |
3805 public 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); | |
3806 public static final native int ScriptRecordDigitSubstitution (int Locale, SCRIPT_DIGITSUBSTITUTE psds); | |
3807 public 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); | |
3808 public 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); | |
3809 public 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); | |
3810 public static final native int ScrollWindowEx (int /*long*/ hWnd, int dx, int dy, RECT prcScroll, RECT prcClip, int /*long*/ hrgnUpdate, RECT prcUpdate, int flags); | |
3811 public static final native int SelectClipRgn (int /*long*/ hdc, int /*long*/ hrgn); | |
3812 public static final native int /*long*/ SelectObject (int /*long*/ hDC, int /*long*/ HGDIObj); | |
3813 public static final native int /*long*/ SelectPalette (int /*long*/ hDC, int /*long*/ hpal, BOOL bForceBackground); | |
3814 public static final native int SendInput (int nInputs, int /*long*/ pInputs, int cbSize); | |
3815 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int [] wParam, int [] lParam); | |
3816 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ [] wParam, int /*long*/ lParam); | |
3817 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, char [] lParam); | |
3818 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int [] lParam); | |
3819 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, short [] lParam); | |
3820 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3821 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVCOLUMN lParam); | |
3822 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVHITTESTINFO lParam); | |
3823 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LITEM lParam); | |
3824 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVITEM lParam); | |
3825 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, MARGINS lParam); | |
3826 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, POINT lParam); | |
3827 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, REBARBANDINFO lParam); | |
3828 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, RECT lParam); | |
3829 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SYSTEMTIME lParam); | |
3830 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTON lParam); | |
3831 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTONINFO lParam); | |
3832 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCITEM lParam); | |
3833 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TOOLINFO lParam); | |
3834 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVHITTESTINFO lParam); | |
3835 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVINSERTSTRUCT lParam); | |
3836 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVITEM lParam); | |
3837 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVSORTCB lParam); | |
3838 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, UDACCEL lParam); | |
3839 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDHITTESTINFO lParam); | |
3840 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDITEM lParam); | |
3841 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDLAYOUT lParam); | |
3842 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, BUTTON_IMAGELIST lParam); | |
3843 public static final native int /*long*/ SendMessageW (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SIZE lParam); | |
3844 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int [] wParam, int [] lParam); | |
3845 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ [] wParam, int /*long*/ lParam); | |
3846 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, byte [] lParam); | |
3847 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int [] lParam); | |
3848 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, short [] lParam); | |
3849 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, char [] lParam); | |
3850 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, int /*long*/ lParam); | |
3851 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVCOLUMN lParam); | |
3852 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVHITTESTINFO lParam); | |
3853 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LITEM lParam); | |
3854 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, LVITEM lParam); | |
3855 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, MARGINS lParam); | |
3856 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, POINT lParam); | |
3857 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, REBARBANDINFO lParam); | |
3858 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, RECT lParam); | |
3859 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SYSTEMTIME lParam); | |
3860 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTON lParam); | |
3861 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TBBUTTONINFO lParam); | |
3862 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TCITEM lParam); | |
3863 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TOOLINFO lParam); | |
3864 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVHITTESTINFO lParam); | |
3865 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVINSERTSTRUCT lParam); | |
3866 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVITEM lParam); | |
3867 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, TVSORTCB lParam); | |
3868 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, UDACCEL lParam); | |
3869 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDHITTESTINFO lParam); | |
3870 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDITEM lParam); | |
3871 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, HDLAYOUT lParam); | |
3872 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, BUTTON_IMAGELIST lParam); | |
3873 public static final native int /*long*/ SendMessageA (int /*long*/ hWnd, int Msg, int /*long*/ wParam, SIZE lParam); | |
3874 public static final native int /*long*/ SetActiveWindow (int /*long*/ hWnd); | |
3875 public static final native int SetBkColor (int /*long*/ hdc, int colorRef); | |
3876 public static final native int SetBkMode (int /*long*/ hdc, int mode); | |
3877 public static final native BOOL SetBrushOrgEx (int /*long*/ hdc, int nXOrg, int nYOrg, POINT lppt); | |
3878 public static final native int /*long*/ SetCapture (int /*long*/ hWnd); | |
3879 public static final native BOOL SetCaretPos (int X, int Y); | |
3880 public static final native int /*long*/ SetClipboardData (int uFormat, int /*long*/ hMem); | |
3881 public static final native int /*long*/ SetCursor (int /*long*/ hCursor); | |
3882 public static final native BOOL SetCursorPos (int X, int Y); | |
3883 public static final native int SetDIBColorTable (int /*long*/ hdc, int uStartIndex, int cEntries, byte[] pColors); | |
3884 public static final native int SetErrorMode (int uMode); | |
3885 public static final native int /*long*/ SetFocus (int /*long*/ hWnd); | |
3886 public static final native BOOL SetForegroundWindow (int /*long*/ hWnd); | |
3887 public static final native int SetGraphicsMode (int /*long*/ hdc, int iMode); | |
3888 public static final native BOOL SetLayeredWindowAttributes(int /*long*/ hwnd, int crKey, byte bAlpha, int dwFlags); | |
3889 public static final native int SetLayout (int /*long*/ hdc, int dwLayout); | |
3890 public static final native BOOL SetMenu (int /*long*/ hWnd, int /*long*/ hMenu); | |
3891 public static final native BOOL SetMenuDefaultItem (int /*long*/ hMenu, int uItem, int fByPos); | |
3892 public static final native BOOL SetMenuInfo (int /*long*/ hmenu, MENUINFO lpcmi); | |
3893 public static final native BOOL SetMenuItemInfoW (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii); | |
3894 public static final native BOOL SetMenuItemInfoA (int /*long*/ hMenu, int uItem, BOOL fByPosition, MENUITEMINFO lpmii); | |
3895 public static final native int SetMetaRgn (int /*long*/ hdc); | |
3896 public static final native int SetPaletteEntries (int /*long*/ hPal, int iStart, int cEntries, byte[] lppe); | |
3897 public static final native int /*long*/ SetParent (int /*long*/ hWndChild, int /*long*/ hWndNewParent); | |
3898 public static final native int SetPixel (int /*long*/ hdc, int X, int Y, int crColor); | |
3899 public static final native int SetPolyFillMode (int /*long*/ hdc, int iPolyFillMode); | |
3900 public static final native BOOL SetProcessDPIAware (); | |
3901 public static final native BOOL SetRect (RECT lprc, int xLeft, int yTop, int xRight, int yBottom); | |
3902 public static final native BOOL SetRectRgn (int /*long*/ hrgn, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect); | |
3903 public static final native int SetROP2 (int /*long*/ hdc, int fnDrawMode); | |
3904 public static final native BOOL SetScrollInfo (int /*long*/ hwnd, int flags, SCROLLINFO info, BOOL fRedraw); | |
3905 public static final native int SetStretchBltMode (int /*long*/ hdc, int iStretchMode); | |
3906 public static final native BOOL SetPropW (int /*long*/ hWnd, int /*long*/ lpString, int /*long*/ hData); | |
3907 public static final native BOOL SetPropA (int /*long*/ hWnd, int /*long*/ lpString, int /*long*/ hData); | |
3908 public static final native int SetTextAlign (int /*long*/ hdc, int fMode); | |
3909 public static final native int SetTextColor (int /*long*/ hdc, int colorRef); | |
3910 public static final native int /*long*/ SetTimer (int /*long*/ hWnd, int /*long*/ nIDEvent, int Elapse, int /*long*/ lpTimerFunc); | |
3911 public static final native int SetWindowLongW (int /*long*/ hWnd, int nIndex, int dwNewLong); | |
3912 public static final native int SetWindowLongA (int /*long*/ hWnd, int nIndex, int dwNewLong); | |
3913 public static final native int /*long*/ SetWindowLongPtrW (int /*long*/ hWnd, int nIndex, int /*long*/ dwNewLong); | |
3914 public static final native int /*long*/ SetWindowLongPtrA (int /*long*/ hWnd, int nIndex, int /*long*/ dwNewLong); | |
3915 public static final native BOOL SetWindowOrgEx (int /*long*/ hdc, int X, int Y, POINT lpPoint); | |
3916 public static final native BOOL SetWindowPlacement (int /*long*/ hWnd, WINDOWPLACEMENT lpwndpl); | |
3917 public static final native BOOL SetWindowPos(int /*long*/ hWnd, int /*long*/ hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags); | |
3918 public static final native int SetWindowRgn (int /*long*/ hWnd, int /*long*/ hRgn, BOOL bRedraw); | |
3919 public static final native BOOL SetWindowTextW (int /*long*/ hWnd, char [] lpString); | |
3920 public static final native BOOL SetWindowTextA (int /*long*/ hWnd, byte [] lpString); | |
3921 public static final native int SetWindowTheme (int /*long*/ hwnd, char [] pszSubAppName, char [] pszSubIdList); | |
3922 public static final native int /*long*/ SetWindowsHookExW (int idHook, int /*long*/ lpfn, int /*long*/ hMod, int dwThreadId); | |
3923 public static final native int /*long*/ SetWindowsHookExA (int idHook, int /*long*/ lpfn, int /*long*/ hMod, int dwThreadId); | |
3924 public static final native BOOL SetWorldTransform(int /*long*/ hdc, float[] lpXform); | |
3925 public static final native int /*long*/ SHBrowseForFolderW (BROWSEINFO lpbi); | |
3926 public static final native int /*long*/ SHBrowseForFolderA (BROWSEINFO lpbi); | |
3927 public static final native BOOL SHCreateMenuBar (SHMENUBARINFO pmb); | |
3928 public static final native int /*long*/ SHGetFileInfoW (char [] pszPath, int dwFileAttributes, SHFILEINFOW psfi, int cbFileInfo, int uFlags); | |
3929 public static final native int /*long*/ SHGetFileInfoA (byte [] pszPath, int dwFileAttributes, SHFILEINFOA psfi, int cbFileInfo, int uFlags); | |
3930 public static final native BOOL SHHandleWMSettingChange (int /*long*/ hwnd, int /*long*/ wParam, int /*long*/ lParam, SHACTIVATEINFO psai); | |
3931 public static final native int SHRecognizeGesture (SHRGINFO shrg); | |
3932 public static final native void SHSendBackToFocusWindow (int uMsg, int /*long*/ wp, int /*long*/ lp); | |
3933 public static final native BOOL SHSipPreference (int /*long*/ hwnd, int st); | |
3934 public static final native BOOL ShellExecuteExW (SHELLEXECUTEINFO lpExecInfo); | |
3935 public static final native BOOL ShellExecuteExA (SHELLEXECUTEINFO lpExecInfo); | |
3936 public static final native BOOL Shell_NotifyIconA (int dwMessage, NOTIFYICONDATAA lpData); | |
3937 public static final native BOOL Shell_NotifyIconW (int dwMessage, NOTIFYICONDATAW lpData); | |
3938 public static final native int SHGetMalloc (int /*long*/ [] ppMalloc); | |
3939 public static final native BOOL SHGetPathFromIDListW (int /*long*/ pidl, char [] pszPath); | |
3940 public static final native BOOL SHGetPathFromIDListA (int /*long*/ pidl, byte [] pszPath); | |
3941 public static final native BOOL SHSetAppKeyWndAssoc (byte bVk, int /*long*/ hwnd); | |
3942 public static final native BOOL ShowCaret (int /*long*/ hWnd); | |
3943 public static final native BOOL ShowOwnedPopups (int /*long*/ hWnd, BOOL fShow); | |
3944 public static final native BOOL ShowScrollBar (int /*long*/ hWnd, int wBar, BOOL bShow); | |
3945 public static final native BOOL ShowWindow (int /*long*/ hWnd, int nCmdShow); | |
3946 public static final native BOOL SipGetInfo (SIPINFO pSipInfo); | |
3947 public static final native int StartDocW (int /*long*/ hdc, DOCINFO lpdi); | |
3948 public static final native int StartDocA (int /*long*/ hdc, DOCINFO lpdi); | |
3949 public static final native int StartPage (int /*long*/ hdc); | |
3950 public static final native BOOL 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); | |
3951 public static final native BOOL StrokePath (int /*long*/ hdc); | |
3952 public static final native BOOL SystemParametersInfoW (int uiAction, int uiParam, HIGHCONTRAST pvParam, int fWinIni); | |
3953 public static final native BOOL SystemParametersInfoA (int uiAction, int uiParam, HIGHCONTRAST pvParam, int fWinIni); | |
3954 public static final native BOOL SystemParametersInfoW (int uiAction, int uiParam, RECT pvParam, int fWinIni); | |
3955 public static final native BOOL SystemParametersInfoA (int uiAction, int uiParam, RECT pvParam, int fWinIni); | |
3956 public static final native BOOL SystemParametersInfoW (int uiAction, int uiParam, NONCLIENTMETRICSW pvParam, int fWinIni); | |
3957 public static final native BOOL SystemParametersInfoA (int uiAction, int uiParam, NONCLIENTMETRICSA pvParam, int fWinIni); | |
3958 public static final native BOOL SystemParametersInfoW (int uiAction, int uiParam, int [] pvParam, int fWinIni); | |
3959 public static final native BOOL SystemParametersInfoA (int uiAction, int uiParam, int [] pvParam, int fWinIni); | |
3960 public static final native int ToAscii (int uVirtKey, int uScanCode, byte [] lpKeyState, short [] lpChar, int uFlags); | |
3961 public static final native int ToUnicode (int wVirtKey, int wScanCode, byte [] lpKeyState, char [] pwszBuff, int cchBuff, int wFlags); | |
3962 public static final native BOOL TrackMouseEvent (TRACKMOUSEEVENT lpEventTrack); | |
3963 public static final native BOOL TrackPopupMenu (int /*long*/ hMenu, int uFlags, int x, int y, int nReserved, int /*long*/ hWnd, RECT prcRect); | |
3964 public static final native int TranslateAcceleratorW (int /*long*/ hWnd, int /*long*/ hAccTable, MSG lpMsg); | |
3965 public static final native int TranslateAcceleratorA (int /*long*/ hWnd, int /*long*/ hAccTable, MSG lpMsg); | |
3966 public static final native BOOL TranslateCharsetInfo (int /*long*/ lpSrc, int [] lpCs, int dwFlags); | |
3967 public static final native BOOL TranslateMDISysAccel (int /*long*/ hWndClient, MSG lpMsg); | |
3968 public static final native BOOL TranslateMessage (MSG lpmsg); | |
3969 public static final native BOOL 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); | |
3970 public static final native BOOL 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); | |
3971 public static final native BOOL UnhookWindowsHookEx (int /*long*/ hhk); | |
3972 public static final native BOOL UnregisterClassW (char [] lpClassName, int /*long*/ hInstance); | |
3973 public static final native BOOL UnregisterClassA (byte [] lpClassName, int /*long*/ hInstance); | |
3974 public static final native BOOL UpdateWindow (int /*long*/ hWnd); | |
3975 public static final native BOOL ValidateRect (int /*long*/ hWnd, RECT lpRect); | |
3976 public static final native short VkKeyScanW (short ch); | |
3977 public static final native short VkKeyScanA (short ch); | |
3978 | |
3979 public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl); | |
3980 | |
3981 public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, int arg0); | |
3982 public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, long arg0); | |
3983 | |
3984 public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, int arg0, int arg1, int arg2, int[] arg3); | |
3985 public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, long arg0, long arg1, int arg2, long[] arg3); | |
3986 public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, int arg0, long arg1, int arg2, long[] arg3); | |
3987 public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, long arg0, int arg1, int arg2, long[] arg3); | |
3988 | |
3989 public static final native int VtblCall (int fnNumber, int /*long*/ ppVtbl, char[] arg0, int arg1, int arg2, int[] arg3, int[] arg4); | |
3990 | |
3991 ++/ | |
15 | 3992 |
3993 /** Ansi/Unicode wrappers */ | |
3994 // Unicode/Ansi alias | |
3995 version(ANSI) { | |
19 | 3996 alias WINAPI.AddFontResourceExA AddFontResourceEx; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3997 alias WINAPI.CallWindowProcA CallWindowProc; |
15 | 3998 alias WINAPI.CharLowerA CharLower; |
3999 alias WINAPI.CharUpperA CharUpper; | |
4000 alias WINAPI.ChooseColorA ChooseColor; | |
4001 alias WINAPI.ChooseFontA ChooseFont; | |
4002 alias WINAPI.CreateAcceleratorTableA CreateAcceleratorTable; | |
4003 alias WINAPI.CreateDCA CreateDC; | |
4004 alias WINAPI.CreateEventA CreateEvent; | |
4005 alias WINAPI.CreateFileA CreateFile; | |
4006 alias WINAPI.CreateFontIndirectA CreateFontIndirect; | |
4007 alias WINAPI.CreateWindowExA CreateWindowEx; | |
4008 alias WINAPI.DefFrameProcA DefFrameProc; | |
4009 alias WINAPI.DefMDIChildProcA DefMDIChildProc; | |
4010 alias WINAPI.DefWindowProcA DefWindowProc; | |
4011 alias WINAPI.DeleteFileA DeleteFile; | |
4012 alias WINAPI.DispatchMessageA DispatchMessage; | |
4013 alias WINAPI.DragQueryFileA DragQueryFile; | |
4014 alias WINAPI.DrawStateA DrawState; | |
4015 alias WINAPI.DrawTextA DrawText; | |
4016 alias WINAPI.EnumFontFamiliesExA EnumFontFamiliesEx; | |
4017 alias WINAPI.EnumFontFamiliesA EnumFontFamilies; | |
4018 alias WINAPI.EnumSystemLanguageGroupsA EnumSystemLanguageGroups; | |
4019 alias WINAPI.EnumSystemLocalesA EnumSystemLocales; | |
4020 alias WINAPI.ExpandEnvironmentStringsA ExpandEnvironmentStrings; | |
4021 alias WINAPI.ExtTextOutA ExtTextOut; | |
4022 alias WINAPI.ExtractIconExA ExtractIconEx; | |
4023 alias WINAPI.FindResourceA FindResource; | |
4024 alias WINAPI.FindWindowA FindWindow; | |
4025 alias WINAPI.FormatMessageA FormatMessage; | |
4026 alias WINAPI.GetCharABCWidthsA GetCharABCWidths; | |
4027 alias WINAPI.GetCharWidthA GetCharWidth; | |
4028 alias WINAPI.GetCharacterPlacementA GetCharacterPlacement; | |
4029 alias WINAPI.GetClassInfoA GetClassInfo; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4030 alias WINAPI.GetClassNameA GetClassName; |
15 | 4031 alias WINAPI.GetClipboardFormatNameA GetClipboardFormatName; |
165 | 4032 alias WINAPI.GetDateFormatA GetDateFormat; |
4033 alias WINAPI.GetTimeFormatA GetTimeFormat; | |
15 | 4034 alias WINAPI.GetKeyNameTextA GetKeyNameText; |
4035 alias WINAPI.GetLocaleInfoA GetLocaleInfo; | |
4036 alias WINAPI.GetMenuItemInfoA GetMenuItemInfo; | |
4037 alias WINAPI.GetMessageA GetMessage; | |
4038 alias WINAPI.GetModuleFileNameA GetModuleFileName; | |
4039 alias WINAPI.GetModuleHandleA GetModuleHandle; | |
4040 alias WINAPI.GetMonitorInfoA GetMonitorInfo; | |
4041 alias WINAPI.GetObjectA GetObject; | |
4042 alias WINAPI.GetOpenFileNameA GetOpenFileName; | |
4043 alias WINAPI.GetProfileStringA _GetProfileString; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4044 alias WINAPI.GetPropA GetProp; |
15 | 4045 alias WINAPI.GetSaveFileNameA GetSaveFileName; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4046 alias WINAPI.GetStartupInfoA GetStartupInfo; |
15 | 4047 alias WINAPI.GetTextExtentPoint32A GetTextExtentPoint32; |
4048 alias WINAPI.GetTextMetricsA GetTextMetrics; | |
4049 alias WINAPI.GetVersionExA GetVersionEx; | |
4050 alias WINAPI.GetWindowLongA GetWindowLong; | |
4051 alias WINAPI.GetWindowTextA _GetWindowText; | |
4052 alias WINAPI.GetWindowTextLengthA GetWindowTextLength; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4053 alias WINAPI.GlobalAddAtomA GlobalAddAtom; |
78 | 4054 // alias WINAPI.ImmGetCompositionFontA ImmGetCompositionFont; |
4055 // alias WINAPI.ImmGetCompositionStringA ImmGetCompositionString; | |
4056 // alias WINAPI.ImmSetCompositionFontA ImmSetCompositionFont; | |
15 | 4057 alias WINAPI.InsertMenuA InsertMenu; |
4058 alias WINAPI.InsertMenuItemA InsertMenuItem; | |
4059 alias WINAPI.LoadBitmapA LoadBitmap; | |
4060 alias WINAPI.LoadCursorA LoadCursor; | |
4061 alias WINAPI.LoadIconA LoadIcon; | |
4062 alias WINAPI.LoadImageA LoadImage; | |
4063 alias WINAPI.LoadLibraryA LoadLibrary; | |
4064 alias WINAPI.LoadStringA LoadString; | |
4065 alias WINAPI.MapVirtualKeyA MapVirtualKey; | |
4066 alias WINAPI.MessageBoxA MessageBox; | |
4067 alias WINAPI.OutputDebugStringA OutputDebugString; | |
4068 alias WINAPI.PeekMessageA PeekMessage; | |
4069 alias WINAPI.PostMessageA PostMessage; | |
4070 alias WINAPI.PostThreadMessageA PostThreadMessage; | |
4071 alias WINAPI.PrintDlgA PrintDlg; | |
4072 alias WINAPI.RegEnumKeyExA RegEnumKeyEx; | |
4073 alias WINAPI.RegOpenKeyExA RegOpenKeyEx; | |
4074 alias WINAPI.RegQueryInfoKeyA RegQueryInfoKey; | |
4075 alias WINAPI.RegQueryValueExA RegQueryValueEx; | |
4076 alias WINAPI.RegisterClassA RegisterClass; | |
4077 alias WINAPI.RegisterClipboardFormatA RegisterClipboardFormat; | |
97 | 4078 alias WINAPI.RegOpenKeyExA RegOpenKeyEx; |
15 | 4079 alias WINAPI.RegisterWindowMessageA RegisterWindowMessage; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4080 alias WINAPI.RemovePropA RemoveProp; |
15 | 4081 alias WINAPI.SHBrowseForFolderA SHBrowseForFolder; |
4082 alias WINAPI.SHGetPathFromIDListA SHGetPathFromIDList; | |
4083 alias WINAPI.SendMessageA SendMessage; | |
4084 alias WINAPI.SetMenuItemInfoA SetMenuItemInfo; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4085 alias WINAPI.SetPropA SetProp; |
15 | 4086 alias WINAPI.SetWindowLongA SetWindowLong; |
4087 alias WINAPI.SetWindowTextA SetWindowText; | |
4088 alias WINAPI.SetWindowsHookExA SetWindowsHookEx; | |
4089 alias WINAPI.ShellExecuteExA ShellExecuteEx; | |
4090 alias WINAPI.Shell_NotifyIconA Shell_NotifyIcon; | |
4091 alias WINAPI.StartDocA StartDoc; | |
4092 alias WINAPI.SystemParametersInfoA SystemParametersInfo; | |
4093 alias WINAPI.TranslateAcceleratorA TranslateAccelerator; | |
4094 alias WINAPI.UnregisterClassA UnregisterClass; | |
4095 alias WINAPI.VkKeyScanA VkKeyScan; | |
4096 }else{ | |
19 | 4097 alias WINAPI.AddFontResourceExW AddFontResourceEx; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4098 alias WINAPI.CallWindowProcW CallWindowProc; |
15 | 4099 alias WINAPI.CharLowerW CharLower; |
4100 alias WINAPI.CharUpperW CharUpper; | |
4101 alias WINAPI.ChooseColorW ChooseColor; | |
4102 alias WINAPI.ChooseFontW ChooseFont; | |
4103 alias WINAPI.CreateAcceleratorTableW CreateAcceleratorTable; | |
4104 alias WINAPI.CreateDCW CreateDC; | |
4105 alias WINAPI.CreateEventW CreateEvent; | |
4106 alias WINAPI.CreateFileW CreateFile; | |
4107 alias WINAPI.CreateFontIndirectW CreateFontIndirect; | |
4108 alias WINAPI.CreateWindowExW CreateWindowEx; | |
4109 alias WINAPI.DefFrameProcW DefFrameProc; | |
4110 alias WINAPI.DefMDIChildProcW DefMDIChildProc; | |
4111 alias WINAPI.DefWindowProcW DefWindowProc; | |
4112 alias WINAPI.DeleteFileW DeleteFile; | |
4113 alias WINAPI.DispatchMessageW DispatchMessage; | |
4114 alias WINAPI.DragQueryFileW DragQueryFile; | |
4115 alias WINAPI.DrawStateW DrawState; | |
4116 alias WINAPI.DrawTextW DrawText; | |
4117 alias WINAPI.EnumFontFamiliesExW EnumFontFamiliesEx; | |
4118 alias WINAPI.EnumFontFamiliesW EnumFontFamilies; | |
4119 alias WINAPI.EnumSystemLanguageGroupsW EnumSystemLanguageGroups; | |
4120 alias WINAPI.EnumSystemLocalesW EnumSystemLocales; | |
4121 alias WINAPI.ExpandEnvironmentStringsW ExpandEnvironmentStrings; | |
4122 alias WINAPI.ExtTextOutW ExtTextOut; | |
4123 alias WINAPI.ExtractIconExW ExtractIconEx; | |
4124 alias WINAPI.FindResourceW FindResource; | |
4125 alias WINAPI.FindWindowW FindWindow; | |
4126 alias WINAPI.FormatMessageW FormatMessage; | |
4127 alias WINAPI.GetCharABCWidthsW GetCharABCWidths; | |
4128 alias WINAPI.GetCharWidthW GetCharWidth; | |
4129 alias WINAPI.GetCharacterPlacementW GetCharacterPlacement; | |
4130 alias WINAPI.GetClassInfoW GetClassInfo; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4131 alias WINAPI.GetClassNameW GetClassName; |
15 | 4132 alias WINAPI.GetClipboardFormatNameW GetClipboardFormatName; |
165 | 4133 alias WINAPI.GetDateFormatW GetDateFormat; |
4134 alias WINAPI.GetTimeFormatW GetTimeFormat; | |
15 | 4135 alias WINAPI.GetKeyNameTextW GetKeyNameText; |
4136 alias WINAPI.GetLocaleInfoW GetLocaleInfo; | |
4137 alias WINAPI.GetMenuItemInfoW GetMenuItemInfo; | |
4138 alias WINAPI.GetMessageW GetMessage; | |
4139 alias WINAPI.GetModuleFileNameW GetModuleFileName; | |
4140 alias WINAPI.GetModuleHandleW GetModuleHandle; | |
4141 alias WINAPI.GetMonitorInfoW GetMonitorInfo; | |
4142 alias WINAPI.GetObjectW GetObject; | |
4143 alias WINAPI.GetOpenFileNameW GetOpenFileName; | |
4144 alias WINAPI.GetProfileStringW _GetProfileString; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4145 alias WINAPI.GetPropW GetProp; |
15 | 4146 alias WINAPI.GetSaveFileNameW GetSaveFileName; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4147 alias WINAPI.GetStartupInfoW GetStartupInfo; |
15 | 4148 alias WINAPI.GetTextExtentPoint32W GetTextExtentPoint32; |
4149 alias WINAPI.GetTextMetricsW GetTextMetrics; | |
4150 alias WINAPI.GetVersionExW GetVersionEx; | |
4151 alias WINAPI.GetWindowLongW GetWindowLong; | |
4152 alias WINAPI.GetWindowTextW _GetWindowText; | |
4153 alias WINAPI.GetWindowTextLengthW GetWindowTextLength; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4154 alias WINAPI.GlobalAddAtomW GlobalAddAtom; |
78 | 4155 // alias WINAPI.ImmGetCompositionFontW ImmGetCompositionFont; |
4156 // alias WINAPI.ImmGetCompositionStringW ImmGetCompositionString; | |
4157 // alias WINAPI.ImmSetCompositionFontW ImmSetCompositionFont; | |
15 | 4158 alias WINAPI.InsertMenuW InsertMenu; |
4159 alias WINAPI.InsertMenuItemW InsertMenuItem; | |
4160 alias WINAPI.LoadBitmapW LoadBitmap; | |
4161 alias WINAPI.LoadCursorW LoadCursor; | |
4162 alias WINAPI.LoadIconW LoadIcon; | |
4163 alias WINAPI.LoadImageW LoadImage; | |
4164 alias WINAPI.LoadLibraryW LoadLibrary; | |
4165 alias WINAPI.LoadStringW LoadString; | |
4166 alias WINAPI.MapVirtualKeyW MapVirtualKey; | |
4167 alias WINAPI.MessageBoxW MessageBox; | |
4168 alias WINAPI.OutputDebugStringW OutputDebugString; | |
4169 alias WINAPI.PeekMessageW PeekMessage; | |
4170 alias WINAPI.PostMessageW PostMessage; | |
4171 alias WINAPI.PostThreadMessageW PostThreadMessage; | |
4172 alias WINAPI.PrintDlgW PrintDlg; | |
4173 alias WINAPI.RegEnumKeyExW RegEnumKeyEx; | |
4174 alias WINAPI.RegOpenKeyExW RegOpenKeyEx; | |
4175 alias WINAPI.RegQueryInfoKeyW RegQueryInfoKey; | |
4176 alias WINAPI.RegQueryValueExW RegQueryValueEx; | |
4177 alias WINAPI.RegisterClassW RegisterClass; | |
4178 alias WINAPI.RegisterClipboardFormatW RegisterClipboardFormat; | |
97 | 4179 alias WINAPI.RegOpenKeyExW RegOpenKeyEx; |
15 | 4180 alias WINAPI.RegisterWindowMessageW RegisterWindowMessage; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4181 alias WINAPI.RemovePropW RemoveProp; |
15 | 4182 alias WINAPI.SHBrowseForFolderW SHBrowseForFolder; |
4183 alias WINAPI.SHGetPathFromIDListW SHGetPathFromIDList; | |
4184 alias WINAPI.SendMessageW SendMessage; | |
4185 alias WINAPI.SetMenuItemInfoW SetMenuItemInfo; | |
4186 alias WINAPI.SetWindowLongW SetWindowLong; | |
4187 alias WINAPI.SetWindowTextW SetWindowText; | |
4188 alias WINAPI.SetWindowsHookExW SetWindowsHookEx; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4189 alias WINAPI.SetPropW SetProp; |
15 | 4190 alias WINAPI.ShellExecuteExW ShellExecuteEx; |
4191 alias WINAPI.Shell_NotifyIconW Shell_NotifyIcon; | |
4192 alias WINAPI.StartDocW StartDoc; | |
4193 alias WINAPI.SystemParametersInfoW SystemParametersInfo; | |
4194 alias WINAPI.TranslateAcceleratorW TranslateAccelerator; | |
4195 alias WINAPI.UnregisterClassW UnregisterClass; | |
4196 alias WINAPI.VkKeyScanW VkKeyScan; | |
3 | 4197 } |
19 | 4198 |
4199 | |
4200 | |
4201 | |
78 | 4202 // ---------------------------------------------------------------------------- |
4203 // UxTheme dummies until dynamic loading is in place. | |
4204 // ---------------------------------------------------------------------------- | |
79 | 4205 public static extern(Windows) { |
4206 BOOL function ( | |
4207 ) IsAppThemed; | |
4208 | |
4209 HRESULT function( | |
78 | 4210 HTHEME hTheme, |
4211 HDC hdc, | |
4212 int iPartId, | |
4213 int iStateId, | |
4214 RECT *pRect, | |
4215 RECT *pClipRect | |
79 | 4216 ) DrawThemeBackground; |
4217 | |
4218 HRESULT function( | |
78 | 4219 HTHEME hTheme, |
4220 HDC hdc, | |
4221 int iPartId, | |
4222 int iStateId, | |
4223 LPCRECT pDestRect, | |
4224 UINT uEdge, | |
4225 UINT uFlags, | |
4226 LPRECT pContentRect | |
79 | 4227 ) DrawThemeEdge; |
4228 | |
4229 HRESULT function( | |
78 | 4230 HTHEME hTheme, |
4231 HDC hdc, | |
4232 int iPartId, | |
4233 int iStateId, | |
4234 LPCRECT pRect, | |
4235 HIMAGELIST himl, | |
4236 int iImageIndex | |
79 | 4237 ) DrawThemeIcon; |
4238 | |
4239 HRESULT function( | |
78 | 4240 HWND hwnd, |
4241 HDC hdc, | |
4242 RECT *prc | |
79 | 4243 ) DrawThemeParentBackground; |
4244 | |
4245 HRESULT function( | |
78 | 4246 HTHEME hTheme, |
4247 HDC hdc, | |
4248 int iPartId, | |
4249 int iStateId, | |
4250 LPCWSTR pszText, | |
4251 int iCharCount, | |
4252 DWORD dwTextFlags, | |
4253 DWORD dwTextFlags2, | |
4254 LPCRECT pRect | |
79 | 4255 ) DrawThemeText; |
4256 | |
4257 HTHEME function( | |
78 | 4258 HWND hwnd, |
4259 LPCWSTR pszClassList | |
79 | 4260 ) OpenThemeData; |
4261 | |
4262 HRESULT function( | |
4263 )BufferedPaintInit; | |
4264 | |
4265 HRESULT function( | |
78 | 4266 HTHEME hTheme |
79 | 4267 ) CloseThemeData; |
4268 | |
4269 HRESULT function( | |
4270 ) BufferedPaintUnInit; | |
4271 | |
4272 HPAINTBUFFER function( | |
78 | 4273 HDC hdcTarget, |
4274 RECT *prcTarget, | |
4275 uint/+BP_BUFFERFORMAT+/ dwFormat, | |
4276 void*/+BP_PAINTPARAMS+/ pPaintParams, | |
4277 HDC *phdc | |
79 | 4278 ) BeginBufferedPaint; |
4279 | |
4280 HRESULT function( | |
78 | 4281 HPAINTBUFFER hBufferedPaint, |
4282 BOOL fUpdateTarget | |
79 | 4283 ) EndBufferedPaint; |
4284 | |
4285 HRESULT function( | |
78 | 4286 HTHEME hTheme, |
4287 HDC hdc, | |
4288 int iPartId, | |
4289 int iStateId, | |
4290 LPCWSTR pszText, | |
4291 int iCharCount, | |
4292 DWORD dwTextFlags, | |
4293 LPCRECT pBoundingRect, | |
4294 LPRECT pExtentRect | |
79 | 4295 ) GetThemeTextExtent; |
4296 | |
4297 HRESULT function( | |
78 | 4298 HWND hwnd, |
4299 LPCWSTR pszSubAppName, | |
4300 LPCWSTR pszSubIdList | |
79 | 4301 ) SetWindowTheme; |
4302 | |
4303 } // public static | |
4304 | |
4305 static Symbol[] Symbols_UxTheme = [ | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4306 { "IsAppThemed", cast(void**)& IsAppThemed, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4307 { "DrawThemeBackground", cast(void**)& DrawThemeBackground, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4308 { "DrawThemeEdge", cast(void**)& DrawThemeEdge, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4309 { "DrawThemeIcon", cast(void**)& DrawThemeIcon, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4310 { "DrawThemeParentBackground", cast(void**)& DrawThemeParentBackground, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4311 { "DrawThemeText", cast(void**)& DrawThemeText, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4312 { "OpenThemeData", cast(void**)& OpenThemeData, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4313 { "CloseThemeData", cast(void**)& CloseThemeData, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4314 { "GetThemeTextExtent", cast(void**)& GetThemeTextExtent, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4315 { "SetWindowTheme", cast(void**)& SetWindowTheme, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4316 { "BufferedPaintUnInit", cast(void**)& BufferedPaintUnInit, 6, 0 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4317 { "BufferedPaintInit", cast(void**)& BufferedPaintInit, 6, 0 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4318 { "BeginBufferedPaint", cast(void**)& BeginBufferedPaint, 6, 0 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4319 { "EndBufferedPaint", cast(void**)& EndBufferedPaint, 6, 0 }, |
79 | 4320 ]; |
4321 | |
4322 static void loadLib_UxTheme(){ | |
4323 if (auto lib = SharedLib.load(`uxtheme.dll`)) { | |
4324 foreach( inout s; Symbols_UxTheme ){ | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4325 if( OS.WIN32_VERSION >= OS.VERSION( s.major, s.minor )){ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4326 *s.symbol = lib.getSymbol( s.name.ptr ); |
163 | 4327 if( *s.symbol is null ){ |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4328 Trace.formatln("UxTheme.dll: Symbol '{}' not found", s.name ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4329 } |
79 | 4330 } |
4331 } | |
4332 } else { | |
4333 Trace.formatln("Could not load the library UxTheme.dll"); | |
78 | 4334 } |
79 | 4335 } |
78 | 4336 //---------------------------------------------------------------------- |
4337 // Coreimm.lib (WinCE) | |
79 | 4338 // this function vars exist primarily for link error elimination |
78 | 4339 //---------------------------------------------------------------------- |
4340 public static extern(Windows) { | |
79 | 4341 } // public static extern(Windows) |
4342 | |
4343 static Symbol[] Symbols_CoreImm = [ | |
4344 ]; | |
4345 | |
82 | 4346 // user32.dll vista |
4347 public static extern(Windows) BOOL function() SetProcessDPIAware; | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4348 static Symbol[] Symbols_User32 = [ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4349 { "SetProcessDPIAware", cast(void**)& SetProcessDPIAware, 6, 0 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4350 ]; |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4351 |
82 | 4352 // Imm32.lib |
94 | 4353 public static extern(Windows) { |
4354 HIMC function( HWND hWnd ) ImmGetContext; | |
4355 BOOL function( DWORD idThread ) ImmDisableTextFrameService; | |
4356 HIMC function( HWND hWnd, HIMC hIMC ) ImmAssociateContext; | |
4357 | |
4358 HIMC function() ImmCreateContext; | |
4359 int function( HIMC hIMC ) ImmDestroyContext; | |
4360 BOOL function( HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence ) ImmGetConversionStatus; | |
4361 HWND function( HWND hWnd ) ImmGetDefaultIMEWnd; | |
4362 BOOL function( HIMC hIMC ) ImmGetOpenStatus; | |
4363 BOOL function( HWND hWnd, HIMC hIMC ) ImmReleaseContext; | |
4364 version(ANSI) { | |
4365 BOOL function( HIMC hIMC, LOGFONTA* lplf ) ImmSetCompositionFont; | |
4366 LONG function( HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen ) ImmGetCompositionString; | |
4367 BOOL function( HIMC hIMC, LPLOGFONTA lplf ) ImmGetCompositionFont; | |
4368 | |
4369 } else { | |
4370 BOOL function( HIMC hIMC, LOGFONTW* lplf ) ImmSetCompositionFont; | |
4371 LONG function( HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen ) ImmGetCompositionString; | |
4372 BOOL function( HIMC hIMC, LOGFONTW* lplf ) ImmGetCompositionFont; | |
4373 } | |
4374 BOOL function( HIMC hIMC, LPCOMPOSITIONFORM lpCompForm ) ImmSetCompositionWindow; | |
4375 BOOL function( HIMC hIMC, DWORD fdwConversion, DWORD fdwSentence ) ImmSetConversionStatus; | |
4376 BOOL function( HIMC hIMC, BOOL fOpen ) ImmSetOpenStatus; | |
4377 | |
4378 } | |
4379 | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4380 static Symbol[] Symbols_Imm32 = [ |
94 | 4381 { "ImmAssociateContext", cast(void**)& ImmAssociateContext, 5, 1 }, |
4382 { "ImmCreateContext", cast(void**)& ImmCreateContext, 5, 1 }, | |
4383 { "ImmDestroyContext", cast(void**)& ImmDestroyContext, 5, 1 }, | |
4384 { "ImmGetContext", cast(void**)& ImmGetContext, 5, 1 }, | |
4385 { "ImmGetConversionStatus", cast(void**)& ImmGetConversionStatus, 5, 1 }, | |
4386 { "ImmGetDefaultIMEWnd", cast(void**)& ImmGetDefaultIMEWnd, 5, 1 }, | |
4387 { "ImmGetOpenStatus", cast(void**)& ImmGetOpenStatus, 5, 1 }, | |
4388 { "ImmReleaseContext", cast(void**)& ImmReleaseContext, 5, 1 }, | |
4389 { "ImmSetCompositionFontW", cast(void**)& ImmSetCompositionFont, 5, 1 }, | |
4390 { "ImmGetCompositionStringW", cast(void**)& ImmGetCompositionString, 5, 1 }, | |
4391 { "ImmGetCompositionFontW", cast(void**)& ImmGetCompositionFont, 5, 1 }, | |
4392 { "ImmSetCompositionWindow", cast(void**)& ImmSetCompositionWindow, 5, 1 }, | |
4393 { "ImmSetConversionStatus", cast(void**)& ImmSetConversionStatus, 5, 1 }, | |
4394 { "ImmSetOpenStatus", cast(void**)& ImmSetOpenStatus, 5, 1 }, | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4395 { "ImmDisableTextFrameService", cast(void**)& ImmDisableTextFrameService, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4396 ]; |
82 | 4397 |
4398 // kernel32 winxp/vista | |
4399 public static extern(Windows) { | |
4400 HANDLE function( ACTCTX* pActCtx ) CreateActCtx; | |
4401 BOOL function( HACTCTX hActCtx, uint* lpCookie ) ActivateActCtx; | |
4402 } | |
92 | 4403 version(ANSI){ |
4404 }else{ | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4405 static Symbol[] Symbols_Kernel32 = [ |
92 | 4406 { "CreateActCtxW", cast(void**)& CreateActCtx, 5, 1 }, |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4407 { "ActivateActCtx", cast(void**)& ActivateActCtx, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4408 ]; |
92 | 4409 } |
4410 | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
4411 |
78 | 4412 //------------------------------------------------------------------------ |
15 | 4413 /** All Natives */ |
4414 alias WINAPI.AbortDoc AbortDoc; | |
4415 alias WINAPI.ActivateKeyboardLayout ActivateKeyboardLayout; | |
4416 alias WINAPI.AdjustWindowRectEx AdjustWindowRectEx; | |
24 | 4417 alias WINAPI.AlphaBlend AlphaBlend; |
15 | 4418 alias WINAPI.Arc Arc; |
4419 alias WINAPI.BeginDeferWindowPos BeginDeferWindowPos; | |
4420 alias WINAPI.BeginPaint BeginPaint; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4421 alias WINAPI.BeginPath BeginPath; |
15 | 4422 alias WINAPI.BitBlt BitBlt; |
4423 alias WINAPI.BringWindowToTop BringWindowToTop; | |
4424 alias WINAPI.CallNextHookEx CallNextHookEx; | |
4425 alias WINAPI.CallWindowProcA CallWindowProcA; | |
4426 alias WINAPI.CallWindowProcW CallWindowProcW; | |
4427 alias WINAPI.CharLowerA CharLowerA; | |
4428 alias WINAPI.CharLowerW CharLowerW; | |
4429 alias WINAPI.CharUpperA CharUpperA; | |
4430 alias WINAPI.CharUpperW CharUpperW; | |
4431 alias WINAPI.CheckMenuItem CheckMenuItem; | |
4432 alias WINAPI.ChooseColorA ChooseColorA; | |
4433 alias WINAPI.ChooseColorW ChooseColorW; | |
4434 alias WINAPI.ChooseFontA ChooseFontA; | |
4435 alias WINAPI.ChooseFontW ChooseFontW; | |
4436 alias WINAPI.ClientToScreen ClientToScreen; | |
4437 alias WINAPI.CloseHandle CloseHandle; | |
4438 alias WINAPI.CloseClipboard CloseClipboard; | |
4439 alias WINAPI.CombineRgn CombineRgn; | |
4440 alias WINAPI.CommDlgExtendedError CommDlgExtendedError; | |
4441 | |
4442 version(WinCE){ | |
4443 alias WINAPI.CommandBar_AddAdornments CommandBar_AddAdornments; | |
4444 alias WINAPI.CommandBar_Create CommandBar_Create; | |
4445 alias WINAPI.CommandBar_Destroy CommandBar_Destroy; | |
4446 alias WINAPI.CommandBar_DrawMenuBar CommandBar_DrawMenuBar; | |
4447 alias WINAPI.CommandBar_Height CommandBar_Height; | |
4448 alias WINAPI.CommandBar_InsertMenubarEx CommandBar_InsertMenubarEx; | |
4449 alias WINAPI.CommandBar_Show CommandBar_Show; | |
4450 } | |
4451 | |
4452 alias WINAPI.CopyImage CopyImage; | |
4453 alias WINAPI.CreateAcceleratorTableA CreateAcceleratorTableA; | |
4454 alias WINAPI.CreateAcceleratorTableW CreateAcceleratorTableW; | |
4455 alias WINAPI.CreateBitmap CreateBitmap; | |
4456 alias WINAPI.CreateCaret CreateCaret; | |
4457 alias WINAPI.CreateCompatibleBitmap CreateCompatibleBitmap; | |
4458 alias WINAPI.CreateCompatibleDC CreateCompatibleDC; | |
4459 alias WINAPI.CreateCursor CreateCursor; | |
4460 alias WINAPI.CreateDCA CreateDCA; | |
4461 alias WINAPI.CreateDCW CreateDCW; | |
4462 alias WINAPI.CreateDIBSection CreateDIBSection; | |
4463 alias WINAPI.CreateEventA CreateEventA; | |
4464 alias WINAPI.CreateEventW CreateEventW; | |
4465 alias WINAPI.CreateFileA CreateFileA; | |
4466 alias WINAPI.CreateFileW CreateFileW; | |
4467 alias WINAPI.CreateFontIndirectA CreateFontIndirectA; | |
4468 alias WINAPI.CreateFontIndirectW CreateFontIndirectW; | |
4469 alias WINAPI.CreateIconIndirect CreateIconIndirect; | |
4470 alias WINAPI.CreateMenu CreateMenu; | |
4471 alias WINAPI.CreatePalette CreatePalette; | |
4472 alias WINAPI.CreatePatternBrush CreatePatternBrush; | |
4473 alias WINAPI.CreatePen CreatePen; | |
4474 alias WINAPI.CreatePolygonRgn CreatePolygonRgn; | |
4475 alias WINAPI.CreatePopupMenu CreatePopupMenu; | |
4476 alias WINAPI.CreateRectRgn CreateRectRgn; | |
4477 alias WINAPI.CreateSolidBrush CreateSolidBrush; | |
4478 alias WINAPI.CreateWindowExA CreateWindowExA; | |
4479 alias WINAPI.CreateWindowExW CreateWindowExW; | |
4480 alias WINAPI.DefFrameProcA DefFrameProcA; | |
4481 alias WINAPI.DefFrameProcW DefFrameProcW; | |
4482 alias WINAPI.DefMDIChildProcA DefMDIChildProcA; | |
4483 alias WINAPI.DefMDIChildProcW DefMDIChildProcW; | |
4484 alias WINAPI.DefWindowProcA DefWindowProcA; | |
4485 alias WINAPI.DefWindowProcW DefWindowProcW; | |
4486 alias WINAPI.DeferWindowPos DeferWindowPos; | |
4487 alias WINAPI.DeleteDC DeleteDC; | |
4488 alias WINAPI.DeleteMenu DeleteMenu; | |
4489 alias WINAPI.DeleteObject DeleteObject; | |
4490 alias WINAPI.DestroyAcceleratorTable DestroyAcceleratorTable; | |
4491 alias WINAPI.DestroyCaret DestroyCaret; | |
4492 alias WINAPI.DestroyCursor DestroyCursor; | |
4493 alias WINAPI.DestroyIcon DestroyIcon; | |
4494 alias WINAPI.DestroyMenu DestroyMenu; | |
4495 alias WINAPI.DestroyWindow DestroyWindow; | |
4496 alias WINAPI.DispatchMessageA DispatchMessageA; | |
4497 alias WINAPI.DispatchMessageW DispatchMessageW; | |
4498 alias WINAPI.DragDetect DragDetect; | |
4499 alias WINAPI.DragFinish DragFinish; | |
4500 alias WINAPI.DragQueryFileA DragQueryFileA; | |
4501 alias WINAPI.DragQueryFileW DragQueryFileW; | |
4502 alias WINAPI.DrawEdge DrawEdge; | |
4503 alias WINAPI.DrawFocusRect DrawFocusRect; | |
4504 alias WINAPI.DrawFrameControl DrawFrameControl; | |
4505 alias WINAPI.DrawIconEx DrawIconEx; | |
4506 alias WINAPI.DrawMenuBar DrawMenuBar; | |
4507 alias WINAPI.DrawStateA DrawStateA; | |
4508 alias WINAPI.DrawStateW DrawStateW; | |
4509 alias WINAPI.DrawTextA DrawTextA; | |
4510 alias WINAPI.DrawTextW DrawTextW; | |
4511 alias WINAPI.Ellipse Ellipse; | |
4512 alias WINAPI.EnableMenuItem EnableMenuItem; | |
4513 alias WINAPI.EnableScrollBar EnableScrollBar; | |
4514 alias WINAPI.EnableWindow EnableWindow; | |
4515 alias WINAPI.EndDeferWindowPos EndDeferWindowPos; | |
4516 alias WINAPI.EndDoc EndDoc; | |
4517 alias WINAPI.EndPage EndPage; | |
4518 alias WINAPI.EndPaint EndPaint; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4519 alias WINAPI.EndPath EndPath; |
15 | 4520 alias WINAPI.EnumDisplayMonitors EnumDisplayMonitors; |
4521 alias WINAPI.EnumFontFamiliesA EnumFontFamiliesA; | |
4522 alias WINAPI.EnumFontFamiliesExA EnumFontFamiliesExA; | |
4523 alias WINAPI.EnumFontFamiliesExW EnumFontFamiliesExW; | |
4524 alias WINAPI.EnumFontFamiliesW EnumFontFamiliesW; | |
4525 alias WINAPI.EnumSystemLanguageGroupsA EnumSystemLanguageGroupsA; | |
4526 alias WINAPI.EnumSystemLanguageGroupsW EnumSystemLanguageGroupsW; | |
4527 alias WINAPI.EnumSystemLocalesA EnumSystemLocalesA; | |
4528 alias WINAPI.EnumSystemLocalesW EnumSystemLocalesW; | |
4529 alias WINAPI.EqualRect EqualRect; | |
4530 alias WINAPI.EqualRgn EqualRgn; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4531 alias WINAPI.ExcludeClipRect ExcludeClipRect; |
15 | 4532 alias WINAPI.ExpandEnvironmentStringsA ExpandEnvironmentStringsA; |
4533 alias WINAPI.ExpandEnvironmentStringsW ExpandEnvironmentStringsW; | |
4534 alias WINAPI.ExtTextOutA ExtTextOutA; | |
4535 alias WINAPI.ExtTextOutW ExtTextOutW; | |
4536 alias WINAPI.ExtractIconExA ExtractIconExA; | |
4537 alias WINAPI.ExtractIconExW ExtractIconExW; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4538 alias WINAPI.ExtCreatePen ExtCreatePen; |
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4539 alias WINAPI.ExtCreateRegion ExtCreateRegion; |
15 | 4540 alias WINAPI.FillRect FillRect; |
4541 alias WINAPI.FindResourceA FindResourceA; | |
4542 alias WINAPI.FindResourceW FindResourceW; | |
4543 alias WINAPI.FindWindowA FindWindowA; | |
4544 alias WINAPI.FindWindowW FindWindowW; | |
4545 alias WINAPI.FormatMessageA FormatMessageA; | |
4546 alias WINAPI.FormatMessageW FormatMessageW; | |
4547 alias WINAPI.FreeLibrary FreeLibrary; | |
4548 alias WINAPI.GdiSetBatchLimit GdiSetBatchLimit; | |
4549 alias WINAPI.GetACP GetACP; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4550 alias WINAPI.GetAsyncKeyState GetAsyncKeyState; |
15 | 4551 alias WINAPI.GetActiveWindow GetActiveWindow; |
4552 alias WINAPI.GetBkColor GetBkColor; | |
4553 alias WINAPI.GetCapture GetCapture; | |
4554 alias WINAPI.GetCaretPos GetCaretPos; | |
4555 alias WINAPI.GetCharABCWidthsA GetCharABCWidthsA; | |
4556 alias WINAPI.GetCharABCWidthsW GetCharABCWidthsW; | |
4557 alias WINAPI.GetCharWidthA GetCharWidthA; | |
4558 alias WINAPI.GetCharWidthW GetCharWidthW; | |
4559 alias WINAPI.GetCharacterPlacementA GetCharacterPlacementA; | |
4560 alias WINAPI.GetCharacterPlacementW GetCharacterPlacementW; | |
4561 alias WINAPI.GetClassInfoA GetClassInfoA; | |
4562 alias WINAPI.GetClassInfoW GetClassInfoW; | |
4563 alias WINAPI.GetClientRect GetClientRect; | |
4564 alias WINAPI.GetClipBox GetClipBox; | |
4565 alias WINAPI.GetClipRgn GetClipRgn; | |
4566 alias WINAPI.GetClipboardData GetClipboardData; | |
4567 alias WINAPI.GetClipboardFormatNameA GetClipboardFormatNameA; | |
4568 alias WINAPI.GetClipboardFormatNameW GetClipboardFormatNameW; | |
4569 alias WINAPI.GetComboBoxInfo GetComboBoxInfo; | |
4570 alias WINAPI.GetCurrentObject GetCurrentObject; | |
4571 alias WINAPI.GetCurrentProcessId GetCurrentProcessId; | |
4572 alias WINAPI.GetCurrentThreadId GetCurrentThreadId; | |
4573 alias WINAPI.GetCursor GetCursor; | |
4574 alias WINAPI.GetCursorPos GetCursorPos; | |
4575 alias WINAPI.GetDC GetDC; | |
4576 alias WINAPI.GetDCEx GetDCEx; | |
4577 alias WINAPI.GetDIBColorTable GetDIBColorTable; | |
4578 alias WINAPI.GetDIBits GetDIBits; | |
4579 alias WINAPI.GetDesktopWindow GetDesktopWindow; | |
4580 alias WINAPI.GetDeviceCaps GetDeviceCaps; | |
4581 alias WINAPI.GetDialogBaseUnits GetDialogBaseUnits; | |
4582 alias WINAPI.GetDlgItem GetDlgItem; | |
4583 alias WINAPI.GetDoubleClickTime GetDoubleClickTime; | |
4584 alias WINAPI.GetFocus GetFocus; | |
4585 alias WINAPI.GetFontLanguageInfo GetFontLanguageInfo; | |
4586 alias WINAPI.GetGUIThreadInfo GetGUIThreadInfo; | |
4587 alias WINAPI.GetIconInfo GetIconInfo; | |
4588 alias WINAPI.GetKeyNameTextA GetKeyNameTextA; | |
4589 alias WINAPI.GetKeyNameTextW GetKeyNameTextW; | |
4590 alias WINAPI.GetKeyState GetKeyState; | |
4591 alias WINAPI.GetKeyboardLayout GetKeyboardLayout; | |
4592 alias WINAPI.GetKeyboardLayoutList GetKeyboardLayoutList; | |
4593 alias WINAPI.GetKeyboardState GetKeyboardState; | |
4594 alias WINAPI.GetLastActivePopup GetLastActivePopup; | |
4595 alias WINAPI.GetLastError GetLastError; | |
4596 alias WINAPI.GetLayout GetLayout; | |
4597 alias WINAPI.GetLocaleInfoA GetLocaleInfoA; | |
4598 alias WINAPI.GetLocaleInfoW GetLocaleInfoW; | |
4599 alias WINAPI.GetMenu GetMenu; | |
4600 alias WINAPI.GetMenuBarInfo GetMenuBarInfo; | |
4601 alias WINAPI.GetMenuDefaultItem GetMenuDefaultItem; | |
4602 alias WINAPI.GetMenuInfo GetMenuInfo; | |
4603 alias WINAPI.GetMenuItemCount GetMenuItemCount; | |
4604 alias WINAPI.GetMenuItemInfoA GetMenuItemInfoA; | |
4605 alias WINAPI.GetMenuItemInfoW GetMenuItemInfoW; | |
4606 alias WINAPI.GetMenuItemRect GetMenuItemRect; | |
4607 alias WINAPI.GetMessageA GetMessageA; | |
4608 alias WINAPI.GetMessagePos GetMessagePos; | |
4609 alias WINAPI.GetMessageTime GetMessageTime; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4610 alias WINAPI.GetMetaRgn GetMetaRgn; |
15 | 4611 alias WINAPI.GetMessageW GetMessageW; |
4612 alias WINAPI.GetModuleFileNameA GetModuleFileNameA; | |
4613 alias WINAPI.GetModuleFileNameW GetModuleFileNameW; | |
4614 alias WINAPI.GetModuleHandleA GetModuleHandleA; | |
4615 alias WINAPI.GetModuleHandleW GetModuleHandleW; | |
4616 alias WINAPI.GetMonitorInfoA GetMonitorInfoA; | |
4617 alias WINAPI.GetMonitorInfoW GetMonitorInfoW; | |
4618 alias WINAPI.GetNearestPaletteIndex GetNearestPaletteIndex; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4619 alias WINAPI.GetPath GetPath; |
15 | 4620 alias WINAPI.GetObjectA GetObjectA; |
4621 alias WINAPI.GetObjectW GetObjectW; | |
4622 alias WINAPI.GetOpenFileNameA GetOpenFileNameA; | |
4623 alias WINAPI.GetOpenFileNameW GetOpenFileNameW; | |
4624 alias WINAPI.GetPaletteEntries GetPaletteEntries; | |
4625 alias WINAPI.GetParent GetParent; | |
4626 alias WINAPI.GetPixel GetPixel; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4627 alias WINAPI.GetPolyFillMode GetPolyFillMode; |
15 | 4628 alias WINAPI.GetProcAddress GetProcAddress; |
4629 alias WINAPI.GetProcessHeap GetProcessHeap; | |
4630 alias WINAPI.GetProfileStringA GetProfileStringA; | |
4631 alias WINAPI.GetProfileStringW GetProfileStringW; | |
4632 alias WINAPI.GetROP2 GetROP2; | |
4633 alias WINAPI.GetRandomRgn GetRandomRgn; | |
4634 alias WINAPI.GetRegionData GetRegionData; | |
4635 alias WINAPI.GetRgnBox GetRgnBox; | |
4636 alias WINAPI.GetSaveFileNameA GetSaveFileNameA; | |
4637 alias WINAPI.GetSaveFileNameW GetSaveFileNameW; | |
4638 alias WINAPI.GetScrollInfo GetScrollInfo; | |
4639 alias WINAPI.GetStockObject GetStockObject; | |
4640 alias WINAPI.GetSysColor GetSysColor; | |
4641 alias WINAPI.GetSysColorBrush GetSysColorBrush; | |
38 | 4642 alias WINAPI.GetSystemDefaultUILanguage GetSystemDefaultUILanguage; |
15 | 4643 alias WINAPI.GetSystemMenu GetSystemMenu; |
4644 alias WINAPI.GetSystemMetrics GetSystemMetrics; | |
4645 alias WINAPI.GetSystemPaletteEntries GetSystemPaletteEntries; | |
4646 alias WINAPI.GetTextCharset GetTextCharset; | |
4647 alias WINAPI.GetTextColor GetTextColor; | |
4648 alias WINAPI.GetTextExtentPoint32A GetTextExtentPoint32A; | |
4649 alias WINAPI.GetTextExtentPoint32W GetTextExtentPoint32W; | |
4650 alias WINAPI.GetTextMetricsA GetTextMetricsA; | |
4651 alias WINAPI.GetTextMetricsW GetTextMetricsW; | |
4652 alias WINAPI.GetTickCount GetTickCount; | |
4653 alias WINAPI.GetUpdateRect GetUpdateRect; | |
4654 alias WINAPI.GetUpdateRgn GetUpdateRgn; | |
4655 alias WINAPI.GetVersion GetVersion; | |
4656 alias WINAPI.GetVersionExA GetVersionExA; | |
4657 alias WINAPI.GetVersionExW GetVersionExW; | |
4658 alias WINAPI.GetWindow GetWindow; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4659 alias WINAPI.GetWindowDC GetWindowDC; |
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4660 alias WINAPI.GetWindowOrgEx GetWindowOrgEx; |
15 | 4661 alias WINAPI.GetWindowLongA GetWindowLongA; |
4662 alias WINAPI.GetWindowLongW GetWindowLongW; | |
4663 alias WINAPI.GetWindowPlacement GetWindowPlacement; | |
4664 alias WINAPI.GetWindowRect GetWindowRect; | |
4665 alias WINAPI.GetWindowRgn GetWindowRgn; | |
4666 alias WINAPI.GetWindowTextA GetWindowTextA; | |
4667 alias WINAPI.GetWindowTextLengthA GetWindowTextLengthA; | |
4668 alias WINAPI.GetWindowTextLengthW GetWindowTextLengthW; | |
4669 alias WINAPI.GetWindowTextW GetWindowTextW; | |
4670 alias WINAPI.GetWindowThreadProcessId GetWindowThreadProcessId; | |
4671 alias WINAPI.GlobalAlloc GlobalAlloc; | |
4672 alias WINAPI.GlobalFree GlobalFree; | |
4673 alias WINAPI.GlobalLock GlobalLock; | |
4674 alias WINAPI.GlobalSize GlobalSize; | |
4675 alias WINAPI.GlobalUnlock GlobalUnlock; | |
4676 alias WINAPI.GradientFill GradientFill; | |
4677 alias WINAPI.HeapAlloc HeapAlloc; | |
4678 alias WINAPI.HeapFree HeapFree; | |
4679 alias WINAPI.HideCaret HideCaret; | |
28 | 4680 alias WINAPI.IIDFromString IIDFromString; |
15 | 4681 alias WINAPI.ImageList_Add ImageList_Add; |
4682 alias WINAPI.ImageList_AddMasked ImageList_AddMasked; | |
136 | 4683 alias WINAPI.ImageList_BeginDrag ImageList_BeginDrag; |
15 | 4684 alias WINAPI.ImageList_Create ImageList_Create; |
4685 alias WINAPI.ImageList_Destroy ImageList_Destroy; | |
136 | 4686 alias WINAPI.ImageList_DragEnter ImageList_DragEnter; |
4687 alias WINAPI.ImageList_DragLeave ImageList_DragLeave; | |
4688 alias WINAPI.ImageList_DragMove ImageList_DragMove; | |
137 | 4689 alias WINAPI.ImageList_DragShowNolock ImageList_DragShowNolock; |
143 | 4690 alias WINAPI.ImageList_Draw ImageList_Draw; |
136 | 4691 alias WINAPI.ImageList_EndDrag ImageList_EndDrag; |
15 | 4692 alias WINAPI.ImageList_GetIcon ImageList_GetIcon; |
4693 alias WINAPI.ImageList_GetIconSize ImageList_GetIconSize; | |
4694 alias WINAPI.ImageList_GetImageCount ImageList_GetImageCount; | |
4695 alias WINAPI.ImageList_Remove ImageList_Remove; | |
4696 alias WINAPI.ImageList_Replace ImageList_Replace; | |
4697 alias WINAPI.ImageList_ReplaceIcon ImageList_ReplaceIcon; | |
4698 alias WINAPI.ImageList_SetIconSize ImageList_SetIconSize; | |
78 | 4699 // alias WINAPI.ImmAssociateContext ImmAssociateContext; |
4700 // alias WINAPI.ImmCreateContext ImmCreateContext; | |
4701 // alias WINAPI.ImmDestroyContext ImmDestroyContext; | |
4702 // alias WINAPI.ImmGetCompositionFontA ImmGetCompositionFontA; | |
4703 // alias WINAPI.ImmGetCompositionFontW ImmGetCompositionFontW; | |
4704 // alias WINAPI.ImmGetCompositionStringA ImmGetCompositionStringA; | |
4705 // alias WINAPI.ImmGetCompositionStringW ImmGetCompositionStringW; | |
4706 // alias WINAPI.ImmGetContext ImmGetContext; | |
4707 // alias WINAPI.ImmGetConversionStatus ImmGetConversionStatus; | |
4708 // alias WINAPI.ImmGetDefaultIMEWnd ImmGetDefaultIMEWnd; | |
4709 // alias WINAPI.ImmGetOpenStatus ImmGetOpenStatus; | |
4710 // alias WINAPI.ImmReleaseContext ImmReleaseContext; | |
4711 // alias WINAPI.ImmSetCompositionFontA ImmSetCompositionFontA; | |
4712 // alias WINAPI.ImmSetCompositionFontW ImmSetCompositionFontW; | |
4713 // alias WINAPI.ImmSetOpenStatus ImmSetOpenStatus; | |
15 | 4714 alias WINAPI.InitCommonControls InitCommonControls; |
4715 alias WINAPI.InitCommonControlsEx InitCommonControlsEx; | |
4716 alias WINAPI.InsertMenuA InsertMenuA; | |
4717 alias WINAPI.InsertMenuItemA InsertMenuItemA; | |
4718 alias WINAPI.InsertMenuItemW InsertMenuItemW; | |
4719 alias WINAPI.InsertMenuW InsertMenuW; | |
4720 alias WINAPI.InterlockedDecrement InterlockedDecrement; | |
4721 alias WINAPI.InterlockedIncrement InterlockedIncrement; | |
75 | 4722 alias WINAPI.IntersectClipRect IntersectClipRect; |
15 | 4723 alias WINAPI.IntersectRect IntersectRect; |
4724 alias WINAPI.InvalidateRect InvalidateRect; | |
4725 alias WINAPI.InvalidateRgn InvalidateRgn; | |
4726 alias WINAPI.IsDBCSLeadByte IsDBCSLeadByte; | |
33 | 4727 alias WINAPI.IsHungAppWindow IsHungAppWindow; |
15 | 4728 alias WINAPI.IsIconic IsIconic; |
4729 alias WINAPI.IsWindow IsWindow; | |
4730 alias WINAPI.IsWindowEnabled IsWindowEnabled; | |
4731 alias WINAPI.IsWindowVisible IsWindowVisible; | |
4732 alias WINAPI.IsZoomed IsZoomed; | |
4733 alias WINAPI.KillTimer KillTimer; | |
4734 alias WINAPI.LineTo LineTo; | |
4735 alias WINAPI.LoadBitmapA LoadBitmapA; | |
4736 alias WINAPI.LoadBitmapW LoadBitmapW; | |
4737 alias WINAPI.LoadCursorA LoadCursorA; | |
4738 alias WINAPI.LoadCursorW LoadCursorW; | |
4739 alias WINAPI.LoadIconA LoadIconA; | |
4740 alias WINAPI.LoadIconW LoadIconW; | |
4741 alias WINAPI.LoadImageA LoadImageA; | |
4742 alias WINAPI.LoadImageW LoadImageW; | |
4743 alias WINAPI.LoadLibraryA LoadLibraryA; | |
4744 alias WINAPI.LoadLibraryW LoadLibraryW; | |
4745 alias WINAPI.LoadResource LoadResource; | |
4746 alias WINAPI.LoadStringA LoadStringA; | |
4747 alias WINAPI.LoadStringW LoadStringW; | |
4748 alias WINAPI.LocalFree LocalFree; | |
4749 alias WINAPI.LockResource LockResource; | |
4750 alias WINAPI.MapVirtualKeyA MapVirtualKeyA; | |
4751 alias WINAPI.MapVirtualKeyW MapVirtualKeyW; | |
4752 alias WINAPI.MapWindowPoints MapWindowPoints; | |
4753 alias WINAPI.MessageBeep MessageBeep; | |
4754 alias WINAPI.MessageBoxA MessageBoxA; | |
4755 alias WINAPI.MessageBoxW MessageBoxW; | |
4756 alias WINAPI.MonitorFromWindow MonitorFromWindow; | |
4757 alias WINAPI.MoveToEx MoveToEx; | |
4758 alias WINAPI.MsgWaitForMultipleObjectsEx MsgWaitForMultipleObjectsEx; | |
4759 alias WINAPI.MultiByteToWideChar MultiByteToWideChar; | |
4760 alias WINAPI.NotifyWinEvent NotifyWinEvent; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4761 alias WINAPI.OffsetRect OffsetRect; |
15 | 4762 alias WINAPI.OffsetRgn OffsetRgn; |
4763 //alias WINAPI.OleInitialize OleInitialize; | |
4764 //alias WINAPI.OleUninitialize OleUninitialize; | |
4765 alias WINAPI.OpenClipboard OpenClipboard; | |
4766 alias WINAPI.OutputDebugStringA OutputDebugStringA; | |
4767 alias WINAPI.OutputDebugStringW OutputDebugStringW; | |
4768 alias WINAPI.PatBlt PatBlt; | |
4769 alias WINAPI.PeekMessageA PeekMessageA; | |
4770 alias WINAPI.PeekMessageW PeekMessageW; | |
4771 alias WINAPI.Pie Pie; | |
4772 alias WINAPI.Polygon Polygon; | |
4773 alias WINAPI.Polyline Polyline; | |
4774 alias WINAPI.PostMessageA PostMessageA; | |
4775 alias WINAPI.PostMessageW PostMessageW; | |
4776 alias WINAPI.PostThreadMessageA PostThreadMessageA; | |
4777 alias WINAPI.PostThreadMessageW PostThreadMessageW; | |
4778 alias WINAPI.PrintDlgA PrintDlgA; | |
4779 alias WINAPI.PrintDlgW PrintDlgW; | |
4780 alias WINAPI.PtInRect PtInRect; | |
4781 alias WINAPI.PtInRegion PtInRegion; | |
4782 alias WINAPI.RealizePalette RealizePalette; | |
25 | 4783 alias WINAPI.Rectangle Rectangle; |
15 | 4784 alias WINAPI.RectInRegion RectInRegion; |
4785 // <Shawn> Renamed : may conflict with dwt.graphics.rectangle.Rectangle | |
19 | 4786 alias WINAPI.Rectangle _Rectangle; |
15 | 4787 alias WINAPI.RedrawWindow RedrawWindow; |
4788 alias WINAPI.RegCloseKey RegCloseKey; | |
4789 alias WINAPI.RegEnumKeyExA RegEnumKeyExA; | |
4790 alias WINAPI.RegEnumKeyExW RegEnumKeyExW; | |
4791 alias WINAPI.RegOpenKeyExA RegOpenKeyExA; | |
4792 alias WINAPI.RegOpenKeyExW RegOpenKeyExW; | |
4793 alias WINAPI.RegQueryInfoKeyA RegQueryInfoKeyA; | |
4794 alias WINAPI.RegQueryInfoKeyW RegQueryInfoKeyW; | |
4795 alias WINAPI.RegQueryValueExA RegQueryValueExA; | |
4796 alias WINAPI.RegQueryValueExW RegQueryValueExW; | |
4797 alias WINAPI.RegisterClassA RegisterClassA; | |
4798 alias WINAPI.RegisterClassW RegisterClassW; | |
4799 alias WINAPI.RegisterClipboardFormatA RegisterClipboardFormatA; | |
4800 alias WINAPI.RegisterClipboardFormatW RegisterClipboardFormatW; | |
4801 alias WINAPI.RegisterWindowMessageA RegisterWindowMessageA; | |
4802 alias WINAPI.RegisterWindowMessageW RegisterWindowMessageW; | |
4803 alias WINAPI.ReleaseCapture ReleaseCapture; | |
4804 alias WINAPI.ReleaseDC ReleaseDC; | |
4805 alias WINAPI.RemoveMenu RemoveMenu; | |
4806 alias WINAPI.RestoreDC RestoreDC; | |
4807 alias WINAPI.RoundRect RoundRect; | |
4808 alias WINAPI.RtlMoveMemory MoveMemory; | |
4809 alias WINAPI.SHBrowseForFolderA SHBrowseForFolderA; | |
4810 alias WINAPI.SHBrowseForFolderW SHBrowseForFolderW; | |
4811 version(WinCE){ | |
4812 alias WINAPI.SHCreateMenuBar SHCreateMenuBar; | |
4813 } | |
4814 alias WINAPI.SHGetMalloc SHGetMalloc; | |
4815 alias WINAPI.SHGetPathFromIDListA SHGetPathFromIDListA; | |
4816 alias WINAPI.SHGetPathFromIDListW SHGetPathFromIDListW; | |
4817 version(WinCE) | |
4818 { | |
4819 alias WINAPI.SHHandleWMSettingChange SHHandleWMSettingChange; | |
4820 alias WINAPI.SHRecognizeGesture SHRecognizeGesture; | |
4821 alias WINAPI.SHSendBackToFocusWindow SHSendBackToFocusWindow; | |
4822 alias WINAPI.SHSetAppKeyWndAssoc SHSetAppKeyWndAssoc; | |
4823 alias WINAPI.SHSipPreference SHSipPreference; | |
4824 } | |
4825 alias WINAPI.SaveDC SaveDC; | |
4826 alias WINAPI.ScreenToClient ScreenToClient; | |
30 | 4827 alias WINAPI.ScriptApplyDigitSubstitution ScriptApplyDigitSubstitution; |
15 | 4828 alias WINAPI.ScriptBreak ScriptBreak; |
4829 alias WINAPI.ScriptCPtoX ScriptCPtoX; | |
4830 alias WINAPI.ScriptCacheGetHeight ScriptCacheGetHeight; | |
4831 alias WINAPI.ScriptFreeCache ScriptFreeCache; | |
4832 alias WINAPI.ScriptGetFontProperties ScriptGetFontProperties; | |
4833 alias WINAPI.ScriptGetLogicalWidths ScriptGetLogicalWidths; | |
4834 alias WINAPI.ScriptGetProperties ScriptGetProperties; | |
4835 alias WINAPI.ScriptItemize ScriptItemize; | |
30 | 4836 alias WINAPI.ScriptJustify ScriptJustify; |
15 | 4837 alias WINAPI.ScriptLayout ScriptLayout; |
4838 alias WINAPI.ScriptPlace ScriptPlace; | |
30 | 4839 alias WINAPI.ScriptRecordDigitSubstitution ScriptRecordDigitSubstitution; |
15 | 4840 alias WINAPI.ScriptShape ScriptShape; |
4841 alias WINAPI.ScriptTextOut ScriptTextOut; | |
4842 alias WINAPI.ScriptXtoCP ScriptXtoCP; | |
4843 alias WINAPI.ScrollWindowEx ScrollWindowEx; | |
4844 alias WINAPI.SelectClipRgn SelectClipRgn; | |
4845 alias WINAPI.SelectObject SelectObject; | |
4846 alias WINAPI.SelectPalette SelectPalette; | |
4847 alias WINAPI.SendInput SendInput; | |
4848 alias WINAPI.SendMessageA SendMessageA; | |
4849 alias WINAPI.SendMessageW SendMessageW; | |
4850 alias WINAPI.SetActiveWindow SetActiveWindow; | |
4851 alias WINAPI.SetBkColor SetBkColor; | |
4852 alias WINAPI.SetBkMode SetBkMode; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4853 alias WINAPI.SetBrushOrgEx SetBrushOrgEx; |
15 | 4854 alias WINAPI.SetCapture SetCapture; |
4855 alias WINAPI.SetCaretPos SetCaretPos; | |
4856 alias WINAPI.SetClipboardData SetClipboardData; | |
4857 alias WINAPI.SetCursor SetCursor; | |
4858 alias WINAPI.SetCursorPos SetCursorPos; | |
4859 alias WINAPI.SetDIBColorTable SetDIBColorTable; | |
4860 alias WINAPI.SetErrorMode SetErrorMode; | |
4861 alias WINAPI.SetEvent SetEvent; | |
4862 alias WINAPI.SetFocus SetFocus; | |
4863 alias WINAPI.SetForegroundWindow SetForegroundWindow; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4864 alias WINAPI.SetGraphicsMode SetGraphicsMode; |
15 | 4865 alias WINAPI.SetLastError SetLastError; |
4866 alias WINAPI.SetLayout SetLayout; | |
4867 alias WINAPI.SetMenu SetMenu; | |
4868 alias WINAPI.SetMenuDefaultItem SetMenuDefaultItem; | |
4869 alias WINAPI.SetMenuInfo SetMenuInfo; | |
4870 alias WINAPI.SetMenuItemInfoA SetMenuItemInfoA; | |
4871 alias WINAPI.SetMenuItemInfoW SetMenuItemInfoW; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4872 alias WINAPI.SetMetaRgn SetMetaRgn; |
15 | 4873 alias WINAPI.SetPaletteEntries SetPaletteEntries; |
4874 alias WINAPI.SetParent SetParent; | |
4875 alias WINAPI.SetPixel SetPixel; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4876 alias WINAPI.SetPolyFillMode SetPolyFillMode; |
15 | 4877 alias WINAPI.SetROP2 SetROP2; |
4878 alias WINAPI.SetRect SetRect; | |
4879 alias WINAPI.SetRectRgn SetRectRgn; | |
4880 alias WINAPI.SetScrollInfo SetScrollInfo; | |
4881 alias WINAPI.SetStretchBltMode SetStretchBltMode; | |
4882 alias WINAPI.SetTextAlign SetTextAlign; | |
4883 alias WINAPI.SetTextColor SetTextColor; | |
4884 alias WINAPI.SetTimer SetTimer; | |
4885 alias WINAPI.SetWindowLongA SetWindowLongA; | |
4886 alias WINAPI.SetWindowLongW SetWindowLongW; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4887 alias WINAPI.SetWindowOrgEx SetWindowOrgEx; |
15 | 4888 alias WINAPI.SetWindowPlacement SetWindowPlacement; |
4889 alias WINAPI.SetWindowPos SetWindowPos; | |
4890 alias WINAPI.SetWindowRgn SetWindowRgn; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
4891 alias WINAPI.SetWorldTransform SetWorldTransform; |
15 | 4892 alias WINAPI.SetWindowTextA SetWindowTextA; |
4893 alias WINAPI.SetWindowTextW SetWindowTextW; | |
4894 alias WINAPI.SetWindowsHookExA SetWindowsHookExA; | |
4895 alias WINAPI.SetWindowsHookExW SetWindowsHookExW; | |
4896 alias WINAPI.ShellExecuteExA ShellExecuteExA; | |
4897 alias WINAPI.ShellExecuteExW ShellExecuteExW; | |
4898 alias WINAPI.Shell_NotifyIconA Shell_NotifyIconA; | |
4899 alias WINAPI.Shell_NotifyIconW Shell_NotifyIconW; | |
4900 alias WINAPI.ShowCaret ShowCaret; | |
4901 alias WINAPI.ShowOwnedPopups ShowOwnedPopups; | |
4902 alias WINAPI.ShowScrollBar ShowScrollBar; | |
4903 alias WINAPI.ShowWindow ShowWindow; | |
4904 version(WinCE){ | |
4905 alias WINAPI.SipGetInfo SipGetInfo; | |
4906 } | |
4907 alias WINAPI.SizeofResource SizeofResource; | |
4908 alias WINAPI.Sleep Sleep; | |
4909 alias WINAPI.StartDocA StartDocA; | |
4910 alias WINAPI.StartDocW StartDocW; | |
4911 alias WINAPI.StartPage StartPage; | |
4912 alias WINAPI.StretchBlt StretchBlt; | |
4913 alias WINAPI.SystemParametersInfoA SystemParametersInfoA; | |
4914 alias WINAPI.SystemParametersInfoW SystemParametersInfoW; | |
4915 alias WINAPI.ToAscii ToAscii; | |
4916 alias WINAPI.ToUnicode ToUnicode; | |
4917 alias WINAPI.TrackMouseEvent TrackMouseEvent; | |
4918 alias WINAPI.TrackPopupMenu TrackPopupMenu; | |
4919 alias WINAPI.TranslateAcceleratorA TranslateAcceleratorA; | |
4920 alias WINAPI.TranslateAcceleratorW TranslateAcceleratorW; | |
4921 alias WINAPI.TranslateCharsetInfo TranslateCharsetInfo; | |
4922 alias WINAPI.TranslateMDISysAccel TranslateMDISysAccel; | |
4923 alias WINAPI.TranslateMessage TranslateMessage; | |
25 | 4924 alias WINAPI.TransparentBlt TransparentBlt; |
15 | 4925 version(WinCE){ |
4926 alias WINAPI.TransparentImage TransparentImage; | |
4927 } | |
4928 alias WINAPI.UnhookWindowsHookEx UnhookWindowsHookEx; | |
4929 alias WINAPI.UnregisterClassA UnregisterClassA; | |
4930 alias WINAPI.UnregisterClassW UnregisterClassW; | |
4931 alias WINAPI.UpdateWindow UpdateWindow; | |
4932 alias WINAPI.ValidateRect ValidateRect; | |
4933 alias WINAPI.VkKeyScanA VkKeyScanA; | |
4934 alias WINAPI.VkKeyScanW VkKeyScanW; | |
4935 alias WINAPI.WaitForMultipleObjects WaitForMultipleObjects; | |
4936 alias WINAPI.WaitForSingleObject WaitForSingleObject; | |
4937 alias WINAPI.WaitMessage WaitMessage; | |
4938 alias WINAPI.WideCharToMultiByte WideCharToMultiByte; | |
4939 alias WINAPI.WindowFromDC WindowFromDC; | |
4940 alias WINAPI.WindowFromPoint WindowFromPoint; | |
4941 alias WINAPI.wcslen wcslen; | |
4942 | |
4943 public static int VERSION (int major, int minor) { return major << 16 | minor;} | |
4944 | |
4945 //static int DrawText(int hDC, String lpString, RECT* lpRect, int uFormat){ | |
4946 // return WINAPI.DrawText(hDC, Convert.StringToTCHARz(lpString), lpString.length, lpRect, uFormat); | |
4947 //} | |
4948 // | |
4949 //static int DrawText(int hDC, TCHAR* lpString, int length, RECT* lpRect, int uFormat){ | |
4950 // return WINAPI.DrawText(hDC, lpString, length, lpRect, uFormat); | |
4951 //} | |
4952 | |
4953 static int GetProfileString(char[] lpAppName, char[] lpKeyName, char[] lpDefault, out char[] lpReturnedString, int nSize ){ | |
4954 TCHAR[] buffer = new TCHAR[nSize]; | |
4955 int result = _GetProfileString(.StrToTCHARz(lpAppName), .StrToTCHARz(lpKeyName), .StrToTCHARz(lpDefault), buffer.ptr, nSize); | |
4956 lpReturnedString = .TCHARzToStr(buffer.ptr); | |
19 | 4957 return result; |
15 | 4958 } |
4959 | |
4960 static char[] GetWindowText(HWND hwnd){ | |
19 | 4961 assert(hwnd); |
15 | 4962 int len = GetWindowTextLength(hwnd); |
4963 if(len > 0){ | |
4964 TCHAR[] buffer = new TCHAR[len + 1]; | |
4965 len = _GetWindowText(hwnd, buffer.ptr, buffer.length); | |
4966 return .TCHARzToStr(buffer.ptr, len); | |
4967 } | |
4968 return ""; | |
4969 } | |
4970 | |
4971 // Note: nMaxCount including the NULL character | |
4972 static int GetWindowText(HWND hWnd, TCHAR* lpString, int nMaxCount) | |
4973 { | |
4974 return _GetWindowText(hWnd, lpString, nMaxCount); | |
4975 } | |
4976 | |
19 | 4977 // <Shawn Liu> added this method, copied from ATL : atlwin.h |
15 | 4978 static int CenterWindow(HWND m_hWnd, HWND hWndCenter = null) |
4979 { | |
4980 assert(m_hWnd); | |
19 | 4981 |
15 | 4982 // determine owner window to center against |
4983 uint dwStyle = OS.GetWindowLong(m_hWnd, OS.GWL_STYLE); | |
4984 if(hWndCenter is null) | |
4985 { | |
4986 if(dwStyle & OS.WS_CHILD) | |
4987 hWndCenter = OS.GetParent(m_hWnd); | |
4988 else | |
4989 hWndCenter = OS.GetWindow(m_hWnd, OS.GW_OWNER); | |
4990 } | |
4991 | |
4992 // get coordinates of the window relative to its parent | |
4993 RECT rcDlg; | |
4994 OS.GetWindowRect(m_hWnd, &rcDlg); | |
4995 RECT rcArea; | |
4996 RECT rcCenter; | |
4997 HWND hWndParent; | |
4998 if(!(dwStyle & OS.WS_CHILD)) | |
4999 { | |
19 | 5000 // don't center against invisible or minimized WINAPI |
15 | 5001 if(hWndCenter !is null) |
5002 { | |
5003 uint dwStyleCenter = OS.GetWindowLong(hWndCenter, OS.GWL_STYLE); | |
5004 if(!(dwStyleCenter & OS.WS_VISIBLE) || (dwStyleCenter & OS.WS_MINIMIZE)) | |
5005 hWndCenter = null; | |
5006 } | |
5007 | |
5008 // center within screen coordinates | |
5009 OS.SystemParametersInfo(OS.SPI_GETWORKAREA, 0, &rcArea, 0); | |
5010 if(hWndCenter is null) | |
5011 rcCenter = rcArea; | |
5012 else | |
5013 OS.GetWindowRect(hWndCenter, &rcCenter); | |
5014 } | |
5015 else | |
5016 { | |
5017 // center within parent client coordinates | |
5018 hWndParent = OS.GetParent(m_hWnd); | |
5019 assert(OS.IsWindow(hWndParent)); | |
5020 | |
5021 OS.GetClientRect(hWndParent, &rcArea); | |
5022 assert(OS.IsWindow(hWndCenter)); | |
5023 OS.GetClientRect(hWndCenter, &rcCenter); | |
5024 OS.MapWindowPoints(hWndCenter, hWndParent, cast(POINT*)&rcCenter, 2); | |
5025 } | |
5026 | |
5027 int DlgWidth = rcDlg.right - rcDlg.left; | |
5028 int DlgHeight = rcDlg.bottom - rcDlg.top; | |
5029 | |
5030 // find dialog's upper left based on rcCenter | |
5031 int xLeft = (rcCenter.left + rcCenter.right) / 2 - DlgWidth / 2; | |
5032 int yTop = (rcCenter.top + rcCenter.bottom) / 2 - DlgHeight / 2; | |
5033 | |
5034 // if the dialog is outside the screen, move it inside | |
5035 if(xLeft < rcArea.left) | |
5036 xLeft = rcArea.left; | |
5037 else if(xLeft + DlgWidth > rcArea.right) | |
5038 xLeft = rcArea.right - DlgWidth; | |
5039 | |
5040 if(yTop < rcArea.top) | |
5041 yTop = rcArea.top; | |
5042 else if(yTop + DlgHeight > rcArea.bottom) | |
5043 yTop = rcArea.bottom - DlgHeight; | |
5044 | |
5045 // map screen coordinates to child coordinates | |
5046 return OS.SetWindowPos(m_hWnd, null, xLeft, yTop, -1, -1, | |
19 | 5047 OS.SWP_NOSIZE | OS.SWP_NOZORDER | OS.SWP_NOACTIVATE); |
15 | 5048 } |
5049 | |
89 | 5050 |
5051 alias WINAPI.OleInitialize OleInitialize; | |
5052 alias WINAPI.OleUninitialize OleUninitialize; | |
5053 alias WINAPI.CoCreateInstance CoCreateInstance; | |
5054 | |
30 | 5055 /** |
5056 * <Shawn Liu> | |
5057 * VtbCall partially kept, use VtbCall instead of automation can promote performace | |
5058 * and VtbCall doesn't need prototype of interface declaration | |
5059 */ | |
5060 | |
5061 public static int VtblCall(int fnNumber, void* ppVtbl) { | |
5062 Function1 fn = cast(Function1)(*cast(int **)ppVtbl)[fnNumber]; | |
5063 return fn(ppVtbl); | |
5064 } | |
5065 | |
5066 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0){ | |
5067 Function2 fn = cast(Function2)(*cast(int **)ppVtbl)[fnNumber]; | |
5068 return fn(ppVtbl, arg0); | |
5069 } | |
5070 | |
5071 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1){ | |
5072 Function3 fn = cast(Function3)(*cast(int **)ppVtbl)[fnNumber]; | |
5073 return fn(ppVtbl, arg0, arg1); | |
5074 } | |
5075 | |
5076 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2){ | |
5077 Function4 fn = cast(Function4)(*cast(int **)ppVtbl)[fnNumber]; | |
5078 return fn(ppVtbl, arg0, arg1, arg2); | |
5079 } | |
5080 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3){ | |
5081 Function5 fn = cast(Function5)(*cast(int **)ppVtbl)[fnNumber]; | |
5082 return fn(ppVtbl, arg0, arg1, arg2, arg3); | |
5083 } | |
5084 | |
5085 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4){ | |
5086 Function6 fn = cast(Function6)(*cast(int **)ppVtbl)[fnNumber]; | |
5087 return fn(ppVtbl, arg0, arg1, arg2, arg3, arg4); | |
5088 } | |
5089 | |
5090 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5){ | |
5091 Function7 fn = cast(Function7)(*cast(int **)ppVtbl)[fnNumber]; | |
5092 return fn(ppVtbl, arg0, arg1, arg2, arg3, arg4, arg5); | |
5093 } | |
5094 | |
5095 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6){ | |
5096 Function8 fn = cast(Function8)(*cast(int **)ppVtbl)[fnNumber]; | |
5097 return fn(ppVtbl, arg0, arg1, arg2, arg3, arg4, arg5, arg6); | |
5098 } | |
5099 | |
5100 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7){ | |
5101 Function9 fn = cast(Function9)(*cast(int **)ppVtbl)[fnNumber]; | |
5102 return fn(ppVtbl, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); | |
5103 } | |
5104 | |
15 | 5105 |
5106 } // END of OS | |
5107 | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
5108 import tango.sys.win32.CodePage : CodePage; |
15 | 5109 private import tango.text.convert.Utf; |
5110 private import tango.stdc.stringz; | |
5111 | |
5112 // convert UTF-8 to MBCS | |
5113 alias StrToMBCS StrToMBCSs; | |
5114 public char[] StrToMBCS(char[] sc, uint codepage = 0) { | |
5115 char[] ret = sc; | |
5116 try{ | |
5117 foreach (char c; sc){ | |
5118 if (c >= 0x80) | |
19 | 5119 { |
15 | 5120 char[] result; |
5121 int i; | |
5122 wchar[] ws = .toString16(sc); | |
5123 result.length = OS.WideCharToMultiByte(codepage, 0, ws.ptr, ws.length, null, 0, null, null); | |
5124 i = OS.WideCharToMultiByte(codepage, 0, ws.ptr, ws.length, result.ptr, result.length, null, null); | |
5125 assert(i == result.length); | |
5126 return result; | |
5127 } | |
5128 } | |
5129 }catch(Exception e){ | |
5130 // do nothing | |
5131 ret = ""; | |
5132 } | |
5133 return ret; | |
5134 } | |
5135 | |
5136 // convert UTF-8 to MBCSz | |
5137 public char* StrToMBCSz(char[] sc) { | |
5138 char* ret = null; | |
5139 try{ | |
5140 if( CodePage.isAscii( sc )){ | |
5141 return .toStringz( sc ); | |
5142 } | |
5143 char[] dst; | |
5144 dst.length = sc.length; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
5145 return toStringz( tango.sys.win32.CodePage.CodePage.into( sc, dst )); |
15 | 5146 }catch(Exception e){ |
5147 // do nothing | |
5148 ret = ""; | |
5149 } | |
5150 | |
5151 return ret; | |
5152 } | |
5153 | |
59 | 5154 public wchar[] StrToWCHARs(uint codepage , char[] sc, bool terminated = false ) { |
5155 return StrToWCHARs( sc, terminated ); | |
55 | 5156 } |
59 | 5157 public wchar[] StrToWCHARs(char[] sc, bool terminated = false ) { |
15 | 5158 wchar[] ret; |
5159 try{ | |
5160 ret = toString16(sc); | |
5161 }catch(Exception e){ | |
5162 // do nothing | |
19 | 5163 ret = ""; |
15 | 5164 } |
59 | 5165 if( terminated ){ |
5166 ret ~= \0; | |
5167 } | |
15 | 5168 return ret; |
5169 } | |
5170 | |
55 | 5171 public wchar* StrToWCHARz( uint codepage, char[] sc, uint* length = null ) { |
5172 return StrToWCHARz( sc, length ); | |
5173 } | |
5174 | |
33 | 5175 public wchar* StrToWCHARz(char[] sc, uint* length = null ) { |
59 | 5176 return StrToWCHARs(sc, true ).ptr; |
15 | 5177 } |
5178 | |
5179 public char[] MBCSsToStr(char[] string, uint codepage = 0){ | |
5180 return MBCSzToStr( string.ptr, string.length, codepage); | |
5181 } | |
5182 | |
5183 public char[] MBCSzToStr(char* pString, int _length = -1, uint codepage = 0) { | |
5184 // null terminated string pointer | |
5185 if(_length == -1){ | |
5186 _length = 0; | |
5187 while(*(pString + _length)) | |
19 | 5188 ++_length; |
15 | 5189 } |
5190 // convert MBCS to UTF-8 | |
5191 if(_length == 0) | |
5192 return null; | |
19 | 5193 |
15 | 5194 wchar[] wcs = _mbcszToWs(pString, _length, codepage); |
5195 char[] result; | |
5196 try{ | |
19 | 5197 result = .toString(wcs); |
15 | 5198 }catch(Exception e){ |
5199 } | |
5200 return result; | |
5201 } | |
5202 | |
5203 public char[] WCHARsToStr(wchar[] string){ | |
5204 return WCHARzToStr(cast(wchar*)string, string.length); | |
5205 } | |
5206 | |
5207 public char[] WCHARzToStr(wchar* pString, int _length = -1) | |
5208 { | |
5209 // null terminated string pointer | |
5210 if(_length == -1){ | |
5211 _length = 0; | |
5212 while(*(pString + _length)) | |
19 | 5213 ++_length; |
15 | 5214 } |
5215 if(_length == 0) | |
5216 return null; | |
5217 // convert wchar* to UTF-8 | |
5218 wchar[] wcs = pString[0.._length]; | |
19 | 5219 |
15 | 5220 char[] result; |
5221 try{ | |
5222 result = .toString(wcs); | |
5223 }catch(Exception e){ | |
5224 // do nothing | |
5225 } | |
5226 return result; | |
5227 } | |
5228 | |
19 | 5229 /** |
15 | 5230 * <Shawn> difference between WCHARzToStr(pwstr, -1) : |
19 | 5231 * BSTRToStr() internally call WCHARzToStr(pwstr, length) with length set, |
5232 * instead to determine the null ended, this mean BSTRToStr() can get string | |
15 | 5233 * which has embedded null characters. |
5234 */ | |
5235 | |
5236 version(OLE_COM) | |
19 | 5237 { |
5238 // BSTR is aliased to wchar* | |
15 | 5239 // Note : Free the "bstr" memory if freeTheString is true, default false |
5240 static char[] BSTRToStr(/*BSTR*/ inout wchar* bstr, bool freeTheString = false){ | |
5241 if(bstr is null) return null; | |
5242 int size = (SysStringByteLen(bstr) + 1)/wchar.sizeof; | |
5243 char[] result = WCHARzToStr(bstr, size); | |
5244 if(freeTheString) { | |
5245 // free the string and set ptr to null | |
5246 SysFreeString(bstr); | |
5247 bstr = null; | |
5248 } | |
5249 return result; | |
5250 } | |
5251 } // end of OLE_COM | |
5252 | |
5253 | |
5254 public static wchar[] _mbcszToWs(char* pMBCS, int len, uint codepage = 0) | |
5255 { | |
5256 wchar[] wbuf; | |
19 | 5257 // Convert MBCS to unicode |
15 | 5258 wbuf.length = OS.MultiByteToWideChar(codepage, 0, pMBCS, len, null, 0); |
5259 int n = OS.MultiByteToWideChar(codepage, 0, pMBCS, len, wbuf.ptr, wbuf.length); | |
5260 assert(n == wbuf.length); | |
5261 return wbuf; | |
19 | 5262 } |
15 | 5263 |
5264 // static methods | |
5265 public int _tcslen(TCHAR* pString){ | |
5266 int _length = 0; | |
5267 while(*(pString + _length)) | |
19 | 5268 ++_length; |
5269 | |
5270 return _length; | |
15 | 5271 } |
5272 | |
5273 /** | |
19 | 5274 * There is a bug in Phobos std.string.toupper() to lower() with |
15 | 5275 std.string.toupper() and std.string.tolower() give a wrong result when deal with a mixture of upper/lower English and Chinese characters. e.g. |
5276 char[] a = "AbCd中文eFgH"; | |
5277 char[] b = std.string.toupper(a); | |
5278 char[] c = std.string.tolower(a); | |
5279 The length of a is 11, but the length of b,c is 18 now. | |
5280 * | |
5281 */ | |
5282 public char[] tolower(char[] string) { | |
5283 TCHAR* ps = StrToTCHARz(string); | |
5284 TCHAR* ps2 = OS.CharLower(ps); | |
5285 return TCHARzToStr(ps2); | |
5286 } | |
5287 public char[] toupper(char[] string) { | |
5288 TCHAR* ps = StrToTCHARz(string); | |
5289 TCHAR* ps2 = OS.CharUpper(ps); | |
5290 return TCHARzToStr(ps2); | |
5291 } | |
19 | 5292 |
15 | 5293 version(ANSI){ |
5294 alias StrToMBCS StrToTCHARs; | |
5295 alias StrToMBCSz StrToTCHARz; | |
5296 alias MBCSzToStr TCHARzToStr; | |
5297 alias MBCSsToStr TCHARsToStr; | |
5298 }else{ | |
5299 // Unicode | |
5300 alias StrToWCHARs StrToTCHARs; | |
5301 alias StrToWCHARz StrToTCHARz; | |
5302 alias WCHARzToStr TCHARzToStr; | |
5303 alias WCHARsToStr TCHARsToStr; | |
70 | 5304 alias _tcslen TCHARzLen; |
15 | 5305 } |
5306 | |
5307 | |
5308 //alias Converter.StrToTCHARs StrToTCHARs; | |
5309 //alias Converter.StrToTCHARz StrToTCHARz; | |
5310 //alias Converter.TCHARzToStr TCHARzToStr; | |
5311 //alias Converter.TCHARsToStr TCHARsToStr; | |
5312 | |
5313 | |
55 | 5314 TCHAR[] NewTCHARs( uint codepage, uint len ){ |
5315 return new TCHAR[ len ]; | |
5316 } | |
5317 | |
5318 | |
5319 |