771
|
1 /* Automatically-generated Unicode-encapsulation file,
|
|
2 using the command
|
|
3
|
|
4 ../lib-src/make-mswin-unicode.pl --c-output intl-auto-encap-win32.c --h-output intl-auto-encap-win32.h intl-encap-win32.c
|
|
5
|
|
6 Do not edit. See `make-mswin-unicode.pl'.
|
|
7 */
|
|
8
|
|
9 #include <config.h>
|
|
10 #include "lisp.h"
|
|
11
|
|
12 #include "syswindows.h"
|
|
13
|
|
14
|
|
15 /*----------------------------------------------------------------------*/
|
2367
|
16 /* Processing file WINCON.H */
|
798
|
17 /*----------------------------------------------------------------------*/
|
|
18
|
2367
|
19 BOOL
|
|
20 qxePeekConsoleInput (HANDLE hConsoleInput, PINPUT_RECORD lpBuffer, DWORD nLength, LPDWORD lpNumberOfEventsRead)
|
|
21 {
|
|
22 if (XEUNICODE_P)
|
|
23 return PeekConsoleInputW (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead);
|
|
24 else
|
|
25 return PeekConsoleInputA (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead);
|
|
26 }
|
|
27
|
|
28 BOOL
|
|
29 qxeReadConsoleInput (HANDLE hConsoleInput, PINPUT_RECORD lpBuffer, DWORD nLength, LPDWORD lpNumberOfEventsRead)
|
|
30 {
|
|
31 if (XEUNICODE_P)
|
|
32 return ReadConsoleInputW (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead);
|
|
33 else
|
|
34 return ReadConsoleInputA (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead);
|
|
35 }
|
|
36
|
|
37 BOOL
|
|
38 qxeWriteConsoleInput (HANDLE hConsoleInput, CONST INPUT_RECORD * lpBuffer, DWORD nLength, LPDWORD lpNumberOfEventsWritten)
|
|
39 {
|
|
40 if (XEUNICODE_P)
|
|
41 return WriteConsoleInputW (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsWritten);
|
|
42 else
|
|
43 return WriteConsoleInputA (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsWritten);
|
|
44 }
|
|
45
|
|
46 BOOL
|
|
47 qxeReadConsoleOutput (HANDLE hConsoleOutput, PCHAR_INFO lpBuffer, COORD dwBufferSize, COORD dwBufferCoord, PSMALL_RECT lpReadRegion)
|
|
48 {
|
|
49 if (XEUNICODE_P)
|
|
50 return ReadConsoleOutputW (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpReadRegion);
|
|
51 else
|
|
52 return ReadConsoleOutputA (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpReadRegion);
|
|
53 }
|
|
54
|
|
55 BOOL
|
|
56 qxeWriteConsoleOutput (HANDLE hConsoleOutput, CONST CHAR_INFO * lpBuffer, COORD dwBufferSize, COORD dwBufferCoord, PSMALL_RECT lpWriteRegion)
|
|
57 {
|
|
58 if (XEUNICODE_P)
|
|
59 return WriteConsoleOutputW (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpWriteRegion);
|
|
60 else
|
|
61 return WriteConsoleOutputA (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpWriteRegion);
|
|
62 }
|
|
63
|
|
64 BOOL
|
|
65 qxeReadConsoleOutputCharacter (HANDLE hConsoleOutput, Extbyte * lpCharacter, DWORD nLength, COORD dwReadCoord, LPDWORD lpNumberOfCharsRead)
|
|
66 {
|
|
67 if (XEUNICODE_P)
|
|
68 return ReadConsoleOutputCharacterW (hConsoleOutput, (LPWSTR) lpCharacter, nLength, dwReadCoord, lpNumberOfCharsRead);
|
|
69 else
|
|
70 return ReadConsoleOutputCharacterA (hConsoleOutput, (LPSTR) lpCharacter, nLength, dwReadCoord, lpNumberOfCharsRead);
|
|
71 }
|
|
72
|
|
73 BOOL
|
|
74 qxeWriteConsoleOutputCharacter (HANDLE hConsoleOutput, const Extbyte * lpCharacter, DWORD nLength, COORD dwWriteCoord, LPDWORD lpNumberOfCharsWritten)
|
|
75 {
|
|
76 if (XEUNICODE_P)
|
|
77 return WriteConsoleOutputCharacterW (hConsoleOutput, (LPCWSTR) lpCharacter, nLength, dwWriteCoord, lpNumberOfCharsWritten);
|
|
78 else
|
|
79 return WriteConsoleOutputCharacterA (hConsoleOutput, (LPCSTR) lpCharacter, nLength, dwWriteCoord, lpNumberOfCharsWritten);
|
|
80 }
|
|
81
|
|
82 /* Error if FillConsoleOutputCharacter used: split CHAR */
|
|
83
|
|
84 BOOL
|
|
85 qxeScrollConsoleScreenBuffer (HANDLE hConsoleOutput, CONST SMALL_RECT * lpScrollRectangle, CONST SMALL_RECT * lpClipRectangle, COORD dwDestinationOrigin, CONST CHAR_INFO * lpFill)
|
|
86 {
|
|
87 if (XEUNICODE_P)
|
|
88 return ScrollConsoleScreenBufferW (hConsoleOutput, lpScrollRectangle, lpClipRectangle, dwDestinationOrigin, lpFill);
|
|
89 else
|
|
90 return ScrollConsoleScreenBufferA (hConsoleOutput, lpScrollRectangle, lpClipRectangle, dwDestinationOrigin, lpFill);
|
|
91 }
|
|
92
|
|
93 DWORD
|
|
94 qxeGetConsoleTitle (Extbyte * lpConsoleTitle, DWORD nSize)
|
|
95 {
|
|
96 if (XEUNICODE_P)
|
|
97 return GetConsoleTitleW ((LPWSTR) lpConsoleTitle, nSize);
|
|
98 else
|
|
99 return GetConsoleTitleA ((LPSTR) lpConsoleTitle, nSize);
|
|
100 }
|
|
101
|
|
102 BOOL
|
|
103 qxeSetConsoleTitle (const Extbyte * lpConsoleTitle)
|
|
104 {
|
|
105 if (XEUNICODE_P)
|
|
106 return SetConsoleTitleW ((LPCWSTR) lpConsoleTitle);
|
|
107 else
|
|
108 return SetConsoleTitleA ((LPCSTR) lpConsoleTitle);
|
|
109 }
|
|
110
|
|
111 BOOL
|
|
112 qxeReadConsole (HANDLE hConsoleInput, LPVOID lpBuffer, DWORD nNumberOfCharsToRead, LPDWORD lpNumberOfCharsRead, LPVOID lpReserved)
|
|
113 {
|
|
114 if (XEUNICODE_P)
|
|
115 return ReadConsoleW (hConsoleInput, lpBuffer, nNumberOfCharsToRead, lpNumberOfCharsRead, lpReserved);
|
|
116 else
|
|
117 return ReadConsoleA (hConsoleInput, lpBuffer, nNumberOfCharsToRead, lpNumberOfCharsRead, lpReserved);
|
798
|
118 }
|
|
119
|
|
120 BOOL
|
2367
|
121 qxeWriteConsole (HANDLE hConsoleOutput, CONST VOID * lpBuffer, DWORD nNumberOfCharsToWrite, LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
|
|
122 {
|
|
123 if (XEUNICODE_P)
|
|
124 return WriteConsoleW (hConsoleOutput, lpBuffer, nNumberOfCharsToWrite, lpNumberOfCharsWritten, lpReserved);
|
|
125 else
|
|
126 return WriteConsoleA (hConsoleOutput, lpBuffer, nNumberOfCharsToWrite, lpNumberOfCharsWritten, lpReserved);
|
|
127 }
|
|
128
|
|
129
|
|
130 /*----------------------------------------------------------------------*/
|
|
131 /* Processing file SHELLAPI.H */
|
|
132 /*----------------------------------------------------------------------*/
|
|
133
|
|
134 UINT
|
|
135 qxeDragQueryFile (HDROP arg1, UINT arg2, Extbyte * arg3, UINT arg4)
|
|
136 {
|
|
137 if (XEUNICODE_P)
|
|
138 return DragQueryFileW (arg1, arg2, (LPWSTR) arg3, arg4);
|
|
139 else
|
|
140 return DragQueryFileA (arg1, arg2, (LPSTR) arg3, arg4);
|
|
141 }
|
|
142
|
|
143 HINSTANCE
|
|
144 qxeShellExecute (HWND hwnd, const Extbyte * lpOperation, const Extbyte * lpFile, const Extbyte * lpParameters, const Extbyte * lpDirectory, INT nShowCmd)
|
|
145 {
|
|
146 if (XEUNICODE_P)
|
|
147 return ShellExecuteW (hwnd, (LPCWSTR) lpOperation, (LPCWSTR) lpFile, (LPCWSTR) lpParameters, (LPCWSTR) lpDirectory, nShowCmd);
|
|
148 else
|
|
149 return ShellExecuteA (hwnd, (LPCSTR) lpOperation, (LPCSTR) lpFile, (LPCSTR) lpParameters, (LPCSTR) lpDirectory, nShowCmd);
|
|
150 }
|
|
151
|
|
152 HINSTANCE
|
|
153 qxeFindExecutable (const Extbyte * lpFile, const Extbyte * lpDirectory, Extbyte * lpResult)
|
|
154 {
|
|
155 if (XEUNICODE_P)
|
|
156 return FindExecutableW ((LPCWSTR) lpFile, (LPCWSTR) lpDirectory, (LPWSTR) lpResult);
|
|
157 else
|
|
158 return FindExecutableA ((LPCSTR) lpFile, (LPCSTR) lpDirectory, (LPSTR) lpResult);
|
|
159 }
|
|
160
|
|
161 /* Error if CommandLineToArgv used: Unicode-only */
|
|
162
|
|
163 INT
|
|
164 qxeShellAbout (HWND hWnd, const Extbyte * szApp, const Extbyte * szOtherStuff, HICON hIcon)
|
|
165 {
|
|
166 if (XEUNICODE_P)
|
|
167 return ShellAboutW (hWnd, (LPCWSTR) szApp, (LPCWSTR) szOtherStuff, hIcon);
|
|
168 else
|
|
169 return ShellAboutA (hWnd, (LPCSTR) szApp, (LPCSTR) szOtherStuff, hIcon);
|
|
170 }
|
|
171
|
|
172 HICON
|
|
173 qxeExtractAssociatedIcon (HINSTANCE hInst, Extbyte * lpIconPath, LPWORD lpiIcon)
|
|
174 {
|
|
175 if (XEUNICODE_P)
|
|
176 return ExtractAssociatedIconW (hInst, (LPWSTR) lpIconPath, lpiIcon);
|
|
177 else
|
|
178 return ExtractAssociatedIconA (hInst, (LPSTR) lpIconPath, lpiIcon);
|
|
179 }
|
|
180
|
|
181 HICON
|
|
182 qxeExtractIcon (HINSTANCE hInst, const Extbyte * lpszExeFileName, UINT nIconIndex)
|
|
183 {
|
|
184 if (XEUNICODE_P)
|
|
185 return ExtractIconW (hInst, (LPCWSTR) lpszExeFileName, nIconIndex);
|
|
186 else
|
|
187 return ExtractIconA (hInst, (LPCSTR) lpszExeFileName, nIconIndex);
|
|
188 }
|
|
189
|
|
190 #if !defined (CYGWIN_HEADERS)
|
|
191
|
|
192 /* NOTE: NT 4.0+ only */
|
|
193 DWORD
|
|
194 qxeDoEnvironmentSubst (Extbyte * szString, UINT cbString)
|
|
195 {
|
|
196 if (XEUNICODE_P)
|
|
197 return DoEnvironmentSubstW ((LPWSTR) szString, cbString);
|
|
198 else
|
|
199 return DoEnvironmentSubstA ((LPSTR) szString, cbString);
|
|
200 }
|
|
201
|
|
202 #endif /* !defined (CYGWIN_HEADERS) */
|
|
203
|
|
204 /* Error if FindEnvironmentString used: causes link error; NT 4.0+ only */
|
|
205
|
|
206 /* Skipping ExtractIconEx because NT 4.0+ only, error in Cygwin prototype */
|
|
207
|
|
208 /* NOTE: NT 4.0+ only */
|
|
209 int
|
|
210 qxeSHFileOperation (LPSHFILEOPSTRUCTW lpFileOp)
|
|
211 {
|
|
212 if (XEUNICODE_P)
|
|
213 return SHFileOperationW (lpFileOp);
|
|
214 else
|
|
215 return SHFileOperationA ((LPSHFILEOPSTRUCTA) lpFileOp);
|
|
216 }
|
|
217
|
|
218 /* NOTE: NT 4.0+ only */
|
|
219 BOOL
|
|
220 qxeShellExecuteEx (LPSHELLEXECUTEINFOW lpExecInfo)
|
|
221 {
|
|
222 if (XEUNICODE_P)
|
|
223 return ShellExecuteExW (lpExecInfo);
|
|
224 else
|
|
225 return ShellExecuteExA ((LPSHELLEXECUTEINFOA) lpExecInfo);
|
|
226 }
|
|
227
|
|
228 /* Error if WinExecError used: causes link error; NT 4.0+ only */
|
|
229
|
|
230 #if !defined (CYGWIN_HEADERS)
|
|
231
|
|
232 /* NOTE: NT 4.0+ only */
|
|
233 HRESULT
|
|
234 qxeSHQueryRecycleBin (const Extbyte * pszRootPath, LPSHQUERYRBINFO pSHQueryRBInfo)
|
|
235 {
|
|
236 if (XEUNICODE_P)
|
|
237 return SHQueryRecycleBinW ((LPCWSTR) pszRootPath, pSHQueryRBInfo);
|
|
238 else
|
|
239 return SHQueryRecycleBinA ((LPCSTR) pszRootPath, pSHQueryRBInfo);
|
|
240 }
|
|
241
|
|
242 #endif /* !defined (CYGWIN_HEADERS) */
|
|
243
|
|
244 #if !defined (CYGWIN_HEADERS)
|
|
245
|
|
246 /* NOTE: NT 4.0+ only */
|
|
247 HRESULT
|
|
248 qxeSHEmptyRecycleBin (HWND hwnd, const Extbyte * pszRootPath, DWORD dwFlags)
|
|
249 {
|
|
250 if (XEUNICODE_P)
|
|
251 return SHEmptyRecycleBinW (hwnd, (LPCWSTR) pszRootPath, dwFlags);
|
|
252 else
|
|
253 return SHEmptyRecycleBinA (hwnd, (LPCSTR) pszRootPath, dwFlags);
|
|
254 }
|
|
255
|
|
256 #endif /* !defined (CYGWIN_HEADERS) */
|
|
257
|
|
258 /* Error if Shell_NotifyIcon used: split-sized NOTIFYICONDATA, NT 4.0+ only */
|
|
259
|
|
260 /* Skipping SHGetFileInfo because split-sized SHFILEINFO, NT 4.0+ only */
|
|
261
|
|
262 /* Error if SHGetDiskFreeSpace used: causes link error; NT 4.0+ only */
|
|
263
|
|
264 #if !defined (CYGWIN_HEADERS)
|
|
265
|
|
266 /* NOTE: NT 4.0+ only */
|
|
267 BOOL
|
|
268 qxeSHGetNewLinkInfo (const Extbyte * pszLinkTo, const Extbyte * pszDir, Extbyte * pszName, BOOL * pfMustCopy, UINT uFlags)
|
|
269 {
|
|
270 if (XEUNICODE_P)
|
|
271 return SHGetNewLinkInfoW ((LPCWSTR) pszLinkTo, (LPCWSTR) pszDir, (LPWSTR) pszName, pfMustCopy, uFlags);
|
|
272 else
|
|
273 return SHGetNewLinkInfoA ((LPCSTR) pszLinkTo, (LPCSTR) pszDir, (LPSTR) pszName, pfMustCopy, uFlags);
|
|
274 }
|
|
275
|
|
276 #endif /* !defined (CYGWIN_HEADERS) */
|
|
277
|
|
278 #if !defined (CYGWIN_HEADERS)
|
|
279
|
|
280 /* NOTE: NT 4.0+ only */
|
|
281 BOOL
|
|
282 qxeSHInvokePrinterCommand (HWND hwnd, UINT uAction, const Extbyte * lpBuf1, const Extbyte * lpBuf2, BOOL fModal)
|
|
283 {
|
|
284 if (XEUNICODE_P)
|
|
285 return SHInvokePrinterCommandW (hwnd, uAction, (LPCWSTR) lpBuf1, (LPCWSTR) lpBuf2, fModal);
|
|
286 else
|
|
287 return SHInvokePrinterCommandA (hwnd, uAction, (LPCSTR) lpBuf1, (LPCSTR) lpBuf2, fModal);
|
|
288 }
|
|
289
|
|
290 #endif /* !defined (CYGWIN_HEADERS) */
|
798
|
291
|
|
292
|
|
293 /*----------------------------------------------------------------------*/
|
771
|
294 /* Processing file WINSPOOL.H */
|
|
295 /*----------------------------------------------------------------------*/
|
|
296
|
|
297 #if defined (HAVE_MS_WINDOWS)
|
|
298
|
|
299 /* NOTE: #### problems with DEVMODE pointer in PRINTER_INFO_2 */
|
|
300 BOOL
|
|
301 qxeEnumPrinters (DWORD Flags, Extbyte * Name, DWORD Level, LPBYTE pPrinterEnum, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)
|
|
302 {
|
|
303 if (XEUNICODE_P)
|
|
304 return EnumPrintersW (Flags, (LPWSTR) Name, Level, pPrinterEnum, cbBuf, pcbNeeded, pcReturned);
|
|
305 else
|
|
306 return EnumPrintersA (Flags, (LPSTR) Name, Level, pPrinterEnum, cbBuf, pcbNeeded, pcReturned);
|
|
307 }
|
|
308
|
|
309 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
310
|
|
311 #if defined (HAVE_MS_WINDOWS)
|
|
312
|
|
313 /* Skipping OpenPrinter because split-sized DEVMODE pointer in split PRINTER_DEFAULTS */
|
|
314
|
|
315 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
316
|
|
317 #if defined (HAVE_MS_WINDOWS)
|
|
318
|
|
319 /* Error if ResetPrinter used: split-sized DEVMODE pointer in split PRINTER_DEFAULTS */
|
|
320
|
|
321 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
322
|
|
323 #if defined (HAVE_MS_WINDOWS)
|
|
324
|
|
325 /* Error if SetJob used: split-sized DEVMODE pointer in split JOB_INFO_2 */
|
|
326
|
|
327 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
328
|
|
329 #if defined (HAVE_MS_WINDOWS)
|
|
330
|
|
331 /* Error if GetJob used: split-sized DEVMODE pointer in split JOB_INFO_2 */
|
|
332
|
|
333 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
334
|
|
335 #if defined (HAVE_MS_WINDOWS)
|
|
336
|
|
337 /* Error if EnumJobs used: split-sized DEVMODE pointer in split JOB_INFO_2 */
|
|
338
|
|
339 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
340
|
|
341 #if defined (HAVE_MS_WINDOWS)
|
|
342
|
|
343 /* Error if AddPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */
|
|
344
|
|
345 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
346
|
|
347 #if defined (HAVE_MS_WINDOWS)
|
|
348
|
|
349 /* Error if SetPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */
|
|
350
|
|
351 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
352
|
|
353 #if defined (HAVE_MS_WINDOWS)
|
|
354
|
|
355 /* Error if GetPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */
|
|
356
|
|
357 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
358
|
|
359 #if defined (HAVE_MS_WINDOWS)
|
|
360
|
|
361 /* Error if AddPrinterDriver used: not used, complicated interface with split structures */
|
|
362
|
|
363 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
364
|
|
365 #if defined (HAVE_MS_WINDOWS)
|
|
366
|
|
367 /* Error if AddPrinterDriverEx used: not used, complicated interface with split structures */
|
|
368
|
|
369 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
370
|
|
371 #if defined (HAVE_MS_WINDOWS)
|
|
372
|
|
373 /* Error if EnumPrinterDrivers used: not used, complicated interface with split structures */
|
|
374
|
|
375 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
376
|
|
377 #if defined (HAVE_MS_WINDOWS)
|
|
378
|
|
379 /* Error if GetPrinterDriver used: not used, complicated interface with split structures */
|
|
380
|
|
381 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
382
|
|
383 #if defined (HAVE_MS_WINDOWS)
|
|
384
|
|
385 /* Error if GetPrinterDriverDirectory used: not used, complicated interface with split structures */
|
|
386
|
|
387 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
388
|
|
389 #if defined (HAVE_MS_WINDOWS)
|
|
390
|
|
391 /* Error if DeletePrinterDriver used: not used, complicated interface with split structures */
|
|
392
|
|
393 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
394
|
|
395 #if defined (HAVE_MS_WINDOWS)
|
|
396
|
|
397 /* Error if DeletePrinterDriverEx used: not used, complicated interface with split structures */
|
|
398
|
|
399 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
400
|
|
401 #if defined (HAVE_MS_WINDOWS)
|
|
402
|
|
403 /* Error if AddPerMachineConnection used: not used, complicated interface with split structures */
|
|
404
|
|
405 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
406
|
|
407 #if defined (HAVE_MS_WINDOWS)
|
|
408
|
|
409 /* Error if DeletePerMachineConnection used: not used, complicated interface with split structures */
|
|
410
|
|
411 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
412
|
|
413 #if defined (HAVE_MS_WINDOWS)
|
|
414
|
|
415 /* Error if EnumPerMachineConnections used: not used, complicated interface with split structures */
|
|
416
|
|
417 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
418
|
|
419 #if defined (HAVE_MS_WINDOWS)
|
|
420
|
|
421 /* Error if AddPrintProcessor used: not used, complicated interface with split structures */
|
|
422
|
|
423 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
424
|
|
425 #if defined (HAVE_MS_WINDOWS)
|
|
426
|
|
427 /* Error if EnumPrintProcessors used: not used, complicated interface with split structures */
|
|
428
|
|
429 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
430
|
|
431 #if defined (HAVE_MS_WINDOWS)
|
|
432
|
|
433 /* Error if GetPrintProcessorDirectory used: not used, complicated interface with split structures */
|
|
434
|
|
435 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
436
|
|
437 #if defined (HAVE_MS_WINDOWS)
|
|
438
|
|
439 /* Error if EnumPrintProcessorDatatypes used: not used, complicated interface with split structures */
|
|
440
|
|
441 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
442
|
|
443 #if defined (HAVE_MS_WINDOWS)
|
|
444
|
|
445 /* Error if DeletePrintProcessor used: not used, complicated interface with split structures */
|
|
446
|
|
447 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
448
|
|
449 #if defined (HAVE_MS_WINDOWS)
|
|
450
|
|
451 /* Error if StartDocPrinter used: not used, complicated interface with split structures */
|
|
452
|
|
453 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
454
|
|
455 #if defined (HAVE_MS_WINDOWS)
|
|
456
|
|
457 /* Error if AddJob used: not used, complicated interface with split structures */
|
|
458
|
|
459 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
460
|
|
461 #if defined (HAVE_MS_WINDOWS)
|
|
462
|
|
463 /* Skipping DocumentProperties because split-sized DEVMODE, error in Cygwin prototype */
|
|
464
|
|
465 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
466
|
|
467 #if defined (HAVE_MS_WINDOWS)
|
|
468
|
|
469 /* Error if AdvancedDocumentProperties used: not used, complicated interface with split structures */
|
|
470
|
|
471 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
472
|
|
473 #if defined (HAVE_MS_WINDOWS)
|
|
474
|
|
475 /* Error if GetPrinterData used: not used, complicated interface with split structures */
|
|
476
|
|
477 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
478
|
|
479 #if defined (HAVE_MS_WINDOWS)
|
|
480
|
|
481 /* Error if GetPrinterDataEx used: not used, complicated interface with split structures */
|
|
482
|
|
483 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
484
|
|
485 #if defined (HAVE_MS_WINDOWS)
|
|
486
|
|
487 /* Error if EnumPrinterData used: not used, complicated interface with split structures */
|
|
488
|
|
489 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
490
|
|
491 #if defined (HAVE_MS_WINDOWS)
|
|
492
|
|
493 /* Error if EnumPrinterDataEx used: not used, complicated interface with split structures */
|
|
494
|
|
495 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
496
|
|
497 #if defined (HAVE_MS_WINDOWS)
|
|
498
|
|
499 /* Error if EnumPrinterKey used: not used, complicated interface with split structures */
|
|
500
|
|
501 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
502
|
|
503 #if defined (HAVE_MS_WINDOWS)
|
|
504
|
|
505 /* Error if SetPrinterData used: not used, complicated interface with split structures */
|
|
506
|
|
507 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
508
|
|
509 #if defined (HAVE_MS_WINDOWS)
|
|
510
|
|
511 /* Error if SetPrinterDataEx used: not used, complicated interface with split structures */
|
|
512
|
|
513 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
514
|
|
515 #if defined (HAVE_MS_WINDOWS)
|
|
516
|
|
517 /* Error if DeletePrinterData used: not used, complicated interface with split structures */
|
|
518
|
|
519 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
520
|
|
521 #if defined (HAVE_MS_WINDOWS)
|
|
522
|
|
523 /* Error if DeletePrinterDataEx used: not used, complicated interface with split structures */
|
|
524
|
|
525 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
526
|
|
527 #if defined (HAVE_MS_WINDOWS)
|
|
528
|
|
529 /* Error if DeletePrinterKey used: not used, complicated interface with split structures */
|
|
530
|
|
531 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
532
|
|
533 #if defined (HAVE_MS_WINDOWS)
|
|
534
|
|
535 /* Error if PrinterMessageBox used: not used, complicated interface with split structures */
|
|
536
|
|
537 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
538
|
|
539 #if defined (HAVE_MS_WINDOWS)
|
|
540
|
|
541 /* Error if AddForm used: not used, complicated interface with split structures */
|
|
542
|
|
543 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
544
|
|
545 #if defined (HAVE_MS_WINDOWS)
|
|
546
|
|
547 /* Error if DeleteForm used: not used, complicated interface with split structures */
|
|
548
|
|
549 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
550
|
|
551 #if defined (HAVE_MS_WINDOWS)
|
|
552
|
|
553 /* Error if GetForm used: not used, complicated interface with split structures */
|
|
554
|
|
555 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
556
|
|
557 #if defined (HAVE_MS_WINDOWS)
|
|
558
|
|
559 /* Error if SetForm used: not used, complicated interface with split structures */
|
|
560
|
|
561 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
562
|
|
563 #if defined (HAVE_MS_WINDOWS)
|
|
564
|
|
565 /* Error if EnumForms used: not used, complicated interface with split structures */
|
|
566
|
|
567 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
568
|
|
569 #if defined (HAVE_MS_WINDOWS)
|
|
570
|
|
571 /* Error if EnumMonitors used: not used, complicated interface with split structures */
|
|
572
|
|
573 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
574
|
|
575 #if defined (HAVE_MS_WINDOWS)
|
|
576
|
|
577 /* Error if AddMonitor used: not used, complicated interface with split structures */
|
|
578
|
|
579 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
580
|
|
581 #if defined (HAVE_MS_WINDOWS)
|
|
582
|
|
583 /* Error if DeleteMonitor used: not used, complicated interface with split structures */
|
|
584
|
|
585 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
586
|
|
587 #if defined (HAVE_MS_WINDOWS)
|
|
588
|
|
589 /* Error if EnumPorts used: not used, complicated interface with split structures */
|
|
590
|
|
591 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
592
|
|
593 #if defined (HAVE_MS_WINDOWS)
|
|
594
|
|
595 /* Error if AddPort used: not used, complicated interface with split structures */
|
|
596
|
|
597 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
598
|
|
599 #if defined (HAVE_MS_WINDOWS)
|
|
600
|
|
601 /* Error if ConfigurePort used: not used, complicated interface with split structures */
|
|
602
|
|
603 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
604
|
|
605 #if defined (HAVE_MS_WINDOWS)
|
|
606
|
|
607 /* Error if DeletePort used: not used, complicated interface with split structures */
|
|
608
|
|
609 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
610
|
|
611 #if defined (HAVE_MS_WINDOWS)
|
|
612
|
|
613 /* Error if XcvData used: not used, complicated interface with split structures */
|
|
614
|
|
615 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
616
|
|
617 #if defined (HAVE_MS_WINDOWS)
|
|
618
|
|
619 /* Error if SetPort used: not used, complicated interface with split structures */
|
|
620
|
|
621 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
622
|
|
623 #if defined (HAVE_MS_WINDOWS)
|
|
624
|
|
625 /* Error if AddPrinterConnection used: not used, complicated interface with split structures */
|
|
626
|
|
627 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
628
|
|
629 #if defined (HAVE_MS_WINDOWS)
|
|
630
|
|
631 /* Error if DeletePrinterConnection used: not used, complicated interface with split structures */
|
|
632
|
|
633 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
634
|
|
635 #if defined (HAVE_MS_WINDOWS)
|
|
636
|
|
637 /* Error if AddPrintProvidor used: not used, complicated interface with split structures */
|
|
638
|
|
639 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
640
|
|
641 #if defined (HAVE_MS_WINDOWS)
|
|
642
|
|
643 /* Error if DeletePrintProvidor used: not used, complicated interface with split structures */
|
|
644
|
|
645 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
646
|
|
647 #if defined (HAVE_MS_WINDOWS)
|
|
648
|
|
649 /* Error if SetPrinterHTMLView used: not used, complicated interface with split structures */
|
|
650
|
|
651 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
652
|
|
653 #if defined (HAVE_MS_WINDOWS)
|
|
654
|
|
655 /* Error if GetPrinterHTMLView used: not used, complicated interface with split structures */
|
|
656
|
|
657 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
658
|
|
659
|
|
660 /*----------------------------------------------------------------------*/
|
|
661 /* Processing file WINNETWK.H */
|
|
662 /*----------------------------------------------------------------------*/
|
|
663
|
|
664 #if defined (HAVE_MS_WINDOWS)
|
|
665
|
|
666 DWORD
|
|
667 qxeWNetAddConnection (const Extbyte * lpRemoteName, const Extbyte * lpPassword, const Extbyte * lpLocalName)
|
|
668 {
|
|
669 if (XEUNICODE_P)
|
|
670 return WNetAddConnectionW ((LPCWSTR) lpRemoteName, (LPCWSTR) lpPassword, (LPCWSTR) lpLocalName);
|
|
671 else
|
|
672 return WNetAddConnectionA ((LPCSTR) lpRemoteName, (LPCSTR) lpPassword, (LPCSTR) lpLocalName);
|
|
673 }
|
|
674
|
|
675 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
676
|
|
677 #if defined (HAVE_MS_WINDOWS)
|
|
678
|
|
679 DWORD
|
|
680 qxeWNetAddConnection2 (LPNETRESOURCEW lpNetResource, const Extbyte * lpPassword, const Extbyte * lpUserName, DWORD dwFlags)
|
|
681 {
|
|
682 if (XEUNICODE_P)
|
|
683 return WNetAddConnection2W (lpNetResource, (LPCWSTR) lpPassword, (LPCWSTR) lpUserName, dwFlags);
|
|
684 else
|
|
685 return WNetAddConnection2A ((LPNETRESOURCEA) lpNetResource, (LPCSTR) lpPassword, (LPCSTR) lpUserName, dwFlags);
|
|
686 }
|
|
687
|
|
688 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
689
|
|
690 #if defined (HAVE_MS_WINDOWS)
|
|
691
|
|
692 DWORD
|
|
693 qxeWNetAddConnection3 (HWND hwndOwner, LPNETRESOURCEW lpNetResource, const Extbyte * lpPassword, const Extbyte * lpUserName, DWORD dwFlags)
|
|
694 {
|
|
695 if (XEUNICODE_P)
|
|
696 return WNetAddConnection3W (hwndOwner, lpNetResource, (LPCWSTR) lpPassword, (LPCWSTR) lpUserName, dwFlags);
|
|
697 else
|
|
698 return WNetAddConnection3A (hwndOwner, (LPNETRESOURCEA) lpNetResource, (LPCSTR) lpPassword, (LPCSTR) lpUserName, dwFlags);
|
|
699 }
|
|
700
|
|
701 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
702
|
|
703 #if defined (HAVE_MS_WINDOWS)
|
|
704
|
|
705 DWORD
|
|
706 qxeWNetCancelConnection (const Extbyte * lpName, BOOL fForce)
|
|
707 {
|
|
708 if (XEUNICODE_P)
|
|
709 return WNetCancelConnectionW ((LPCWSTR) lpName, fForce);
|
|
710 else
|
|
711 return WNetCancelConnectionA ((LPCSTR) lpName, fForce);
|
|
712 }
|
|
713
|
|
714 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
715
|
|
716 #if defined (HAVE_MS_WINDOWS)
|
|
717
|
|
718 DWORD
|
|
719 qxeWNetCancelConnection2 (const Extbyte * lpName, DWORD dwFlags, BOOL fForce)
|
|
720 {
|
|
721 if (XEUNICODE_P)
|
|
722 return WNetCancelConnection2W ((LPCWSTR) lpName, dwFlags, fForce);
|
|
723 else
|
|
724 return WNetCancelConnection2A ((LPCSTR) lpName, dwFlags, fForce);
|
|
725 }
|
|
726
|
|
727 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
728
|
|
729 #if defined (HAVE_MS_WINDOWS)
|
|
730
|
|
731 DWORD
|
|
732 qxeWNetGetConnection (const Extbyte * lpLocalName, Extbyte * lpRemoteName, LPDWORD lpnLength)
|
|
733 {
|
|
734 if (XEUNICODE_P)
|
|
735 return WNetGetConnectionW ((LPCWSTR) lpLocalName, (LPWSTR) lpRemoteName, lpnLength);
|
|
736 else
|
|
737 return WNetGetConnectionA ((LPCSTR) lpLocalName, (LPSTR) lpRemoteName, lpnLength);
|
|
738 }
|
|
739
|
|
740 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
741
|
|
742 #if defined (HAVE_MS_WINDOWS)
|
|
743
|
|
744 DWORD
|
|
745 qxeWNetUseConnection (HWND hwndOwner, LPNETRESOURCEW lpNetResource, const Extbyte * lpUserID, const Extbyte * lpPassword, DWORD dwFlags, Extbyte * lpAccessName, LPDWORD lpBufferSize, LPDWORD lpResult)
|
|
746 {
|
|
747 if (XEUNICODE_P)
|
|
748 return WNetUseConnectionW (hwndOwner, lpNetResource, (LPCWSTR) lpUserID, (LPCWSTR) lpPassword, dwFlags, (LPWSTR) lpAccessName, lpBufferSize, lpResult);
|
|
749 else
|
|
750 return WNetUseConnectionA (hwndOwner, (LPNETRESOURCEA) lpNetResource, (LPCSTR) lpUserID, (LPCSTR) lpPassword, dwFlags, (LPSTR) lpAccessName, lpBufferSize, lpResult);
|
|
751 }
|
|
752
|
|
753 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
754
|
|
755 #if defined (HAVE_MS_WINDOWS)
|
|
756
|
|
757 /* NOTE: contains split-simple LPNETRESOURCE */
|
|
758 DWORD
|
|
759 qxeWNetConnectionDialog1 (LPCONNECTDLGSTRUCTW lpConnDlgStruct)
|
|
760 {
|
|
761 if (XEUNICODE_P)
|
|
762 return WNetConnectionDialog1W (lpConnDlgStruct);
|
|
763 else
|
|
764 return WNetConnectionDialog1A ((LPCONNECTDLGSTRUCTA) lpConnDlgStruct);
|
|
765 }
|
|
766
|
|
767 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
768
|
|
769 #if defined (HAVE_MS_WINDOWS)
|
|
770
|
|
771 DWORD
|
|
772 qxeWNetDisconnectDialog1 (LPDISCDLGSTRUCTW lpConnDlgStruct)
|
|
773 {
|
|
774 if (XEUNICODE_P)
|
|
775 return WNetDisconnectDialog1W (lpConnDlgStruct);
|
|
776 else
|
|
777 return WNetDisconnectDialog1A ((LPDISCDLGSTRUCTA) lpConnDlgStruct);
|
|
778 }
|
|
779
|
|
780 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
781
|
|
782 #if defined (HAVE_MS_WINDOWS)
|
|
783
|
|
784 DWORD
|
|
785 qxeWNetOpenEnum (DWORD dwScope, DWORD dwType, DWORD dwUsage, LPNETRESOURCEW lpNetResource, LPHANDLE lphEnum)
|
|
786 {
|
|
787 if (XEUNICODE_P)
|
|
788 return WNetOpenEnumW (dwScope, dwType, dwUsage, lpNetResource, lphEnum);
|
|
789 else
|
|
790 return WNetOpenEnumA (dwScope, dwType, dwUsage, (LPNETRESOURCEA) lpNetResource, lphEnum);
|
|
791 }
|
|
792
|
|
793 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
794
|
|
795 #if defined (HAVE_MS_WINDOWS)
|
|
796
|
|
797 DWORD
|
|
798 qxeWNetEnumResource (HANDLE hEnum, LPDWORD lpcCount, LPVOID lpBuffer, LPDWORD lpBufferSize)
|
|
799 {
|
|
800 if (XEUNICODE_P)
|
|
801 return WNetEnumResourceW (hEnum, lpcCount, lpBuffer, lpBufferSize);
|
|
802 else
|
|
803 return WNetEnumResourceA (hEnum, lpcCount, lpBuffer, lpBufferSize);
|
|
804 }
|
|
805
|
|
806 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
807
|
|
808 #if defined (HAVE_MS_WINDOWS)
|
|
809
|
|
810 DWORD
|
|
811 qxeWNetGetUniversalName (const Extbyte * lpLocalPath, DWORD dwInfoLevel, LPVOID lpBuffer, LPDWORD lpBufferSize)
|
|
812 {
|
|
813 if (XEUNICODE_P)
|
|
814 return WNetGetUniversalNameW ((LPCWSTR) lpLocalPath, dwInfoLevel, lpBuffer, lpBufferSize);
|
|
815 else
|
|
816 return WNetGetUniversalNameA ((LPCSTR) lpLocalPath, dwInfoLevel, lpBuffer, lpBufferSize);
|
|
817 }
|
|
818
|
|
819 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
820
|
|
821 #if defined (HAVE_MS_WINDOWS)
|
|
822
|
|
823 DWORD
|
|
824 qxeWNetGetUser (const Extbyte * lpName, Extbyte * lpUserName, LPDWORD lpnLength)
|
|
825 {
|
|
826 if (XEUNICODE_P)
|
|
827 return WNetGetUserW ((LPCWSTR) lpName, (LPWSTR) lpUserName, lpnLength);
|
|
828 else
|
|
829 return WNetGetUserA ((LPCSTR) lpName, (LPSTR) lpUserName, lpnLength);
|
|
830 }
|
|
831
|
|
832 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
833
|
|
834 #if defined (HAVE_MS_WINDOWS)
|
|
835
|
|
836 DWORD
|
|
837 qxeWNetGetProviderName (DWORD dwNetType, Extbyte * lpProviderName, LPDWORD lpBufferSize)
|
|
838 {
|
|
839 if (XEUNICODE_P)
|
|
840 return WNetGetProviderNameW (dwNetType, (LPWSTR) lpProviderName, lpBufferSize);
|
|
841 else
|
|
842 return WNetGetProviderNameA (dwNetType, (LPSTR) lpProviderName, lpBufferSize);
|
|
843 }
|
|
844
|
|
845 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
846
|
|
847 #if defined (HAVE_MS_WINDOWS)
|
|
848
|
|
849 DWORD
|
|
850 qxeWNetGetNetworkInformation (const Extbyte * lpProvider, LPNETINFOSTRUCT lpNetInfoStruct)
|
|
851 {
|
|
852 if (XEUNICODE_P)
|
|
853 return WNetGetNetworkInformationW ((LPCWSTR) lpProvider, lpNetInfoStruct);
|
|
854 else
|
|
855 return WNetGetNetworkInformationA ((LPCSTR) lpProvider, lpNetInfoStruct);
|
|
856 }
|
|
857
|
|
858 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
859
|
|
860 #if defined (HAVE_MS_WINDOWS)
|
|
861
|
|
862 DWORD
|
|
863 qxeWNetGetLastError (LPDWORD lpError, Extbyte * lpErrorBuf, DWORD nErrorBufSize, Extbyte * lpNameBuf, DWORD nNameBufSize)
|
|
864 {
|
|
865 if (XEUNICODE_P)
|
|
866 return WNetGetLastErrorW (lpError, (LPWSTR) lpErrorBuf, nErrorBufSize, (LPWSTR) lpNameBuf, nNameBufSize);
|
|
867 else
|
|
868 return WNetGetLastErrorA (lpError, (LPSTR) lpErrorBuf, nErrorBufSize, (LPSTR) lpNameBuf, nNameBufSize);
|
|
869 }
|
|
870
|
|
871 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
872
|
|
873 #if defined (HAVE_MS_WINDOWS)
|
|
874
|
|
875 DWORD
|
|
876 qxeMultinetGetConnectionPerformance (LPNETRESOURCEW lpNetResource, LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct)
|
|
877 {
|
|
878 if (XEUNICODE_P)
|
|
879 return MultinetGetConnectionPerformanceW (lpNetResource, lpNetConnectInfoStruct);
|
|
880 else
|
|
881 return MultinetGetConnectionPerformanceA ((LPNETRESOURCEA) lpNetResource, lpNetConnectInfoStruct);
|
|
882 }
|
|
883
|
|
884 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
885
|
|
886
|
|
887 /*----------------------------------------------------------------------*/
|
|
888 /* Processing file WINUSER.H */
|
|
889 /*----------------------------------------------------------------------*/
|
|
890
|
|
891 int
|
|
892 qxewvsprintf (Extbyte * arg1, const Extbyte * arg2, va_list arglist)
|
|
893 {
|
|
894 if (XEUNICODE_P)
|
|
895 return wvsprintfW ((LPWSTR) arg1, (LPCWSTR) arg2, arglist);
|
|
896 else
|
|
897 return wvsprintfA ((LPSTR) arg1, (LPCSTR) arg2, arglist);
|
|
898 }
|
|
899
|
|
900 HKL
|
|
901 qxeLoadKeyboardLayout (const Extbyte * pwszKLID, UINT Flags)
|
|
902 {
|
|
903 if (XEUNICODE_P)
|
|
904 return LoadKeyboardLayoutW ((LPCWSTR) pwszKLID, Flags);
|
|
905 else
|
|
906 return LoadKeyboardLayoutA ((LPCSTR) pwszKLID, Flags);
|
|
907 }
|
|
908
|
|
909 BOOL
|
|
910 qxeGetKeyboardLayoutName (Extbyte * pwszKLID)
|
|
911 {
|
|
912 if (XEUNICODE_P)
|
|
913 return GetKeyboardLayoutNameW ((LPWSTR) pwszKLID);
|
|
914 else
|
|
915 return GetKeyboardLayoutNameA ((LPSTR) pwszKLID);
|
|
916 }
|
|
917
|
|
918 /* Error if CreateDesktop used: split-sized LPDEVMODE */
|
|
919
|
|
920 HDESK
|
|
921 qxeOpenDesktop (Extbyte * lpszDesktop, DWORD dwFlags, BOOL fInherit, ACCESS_MASK dwDesiredAccess)
|
|
922 {
|
|
923 if (XEUNICODE_P)
|
|
924 return OpenDesktopW ((LPWSTR) lpszDesktop, dwFlags, fInherit, dwDesiredAccess);
|
|
925 else
|
|
926 return OpenDesktopA ((LPSTR) lpszDesktop, dwFlags, fInherit, dwDesiredAccess);
|
|
927 }
|
|
928
|
|
929 /* NOTE: // callback fun differs only in string pointer type */
|
|
930 BOOL
|
|
931 qxeEnumDesktops (HWINSTA hwinsta, DESKTOPENUMPROCW lpEnumFunc, LPARAM lParam)
|
|
932 {
|
|
933 if (XEUNICODE_P)
|
|
934 return EnumDesktopsW (hwinsta, lpEnumFunc, lParam);
|
|
935 else
|
|
936 return EnumDesktopsA (hwinsta, (DESKTOPENUMPROCA) lpEnumFunc, lParam);
|
|
937 }
|
|
938
|
|
939 HWINSTA
|
|
940 qxeCreateWindowStation (Extbyte * lpwinsta, DWORD dwReserved, ACCESS_MASK dwDesiredAccess, LPSECURITY_ATTRIBUTES lpsa)
|
|
941 {
|
|
942 if (XEUNICODE_P)
|
|
943 return CreateWindowStationW ((LPWSTR) lpwinsta, dwReserved, dwDesiredAccess, lpsa);
|
|
944 else
|
|
945 return CreateWindowStationA ((LPSTR) lpwinsta, dwReserved, dwDesiredAccess, lpsa);
|
|
946 }
|
|
947
|
|
948 HWINSTA
|
|
949 qxeOpenWindowStation (Extbyte * lpszWinSta, BOOL fInherit, ACCESS_MASK dwDesiredAccess)
|
|
950 {
|
|
951 if (XEUNICODE_P)
|
|
952 return OpenWindowStationW ((LPWSTR) lpszWinSta, fInherit, dwDesiredAccess);
|
|
953 else
|
|
954 return OpenWindowStationA ((LPSTR) lpszWinSta, fInherit, dwDesiredAccess);
|
|
955 }
|
|
956
|
|
957 /* NOTE: // callback fun differs only in string pointer type */
|
|
958 BOOL
|
|
959 qxeEnumWindowStations (WINSTAENUMPROCW lpEnumFunc, LPARAM lParam)
|
|
960 {
|
|
961 if (XEUNICODE_P)
|
|
962 return EnumWindowStationsW (lpEnumFunc, lParam);
|
|
963 else
|
|
964 return EnumWindowStationsA ((WINSTAENUMPROCA) lpEnumFunc, lParam);
|
|
965 }
|
|
966
|
|
967 BOOL
|
|
968 qxeGetUserObjectInformation (HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength, LPDWORD lpnLengthNeeded)
|
|
969 {
|
|
970 if (XEUNICODE_P)
|
|
971 return GetUserObjectInformationW (hObj, nIndex, pvInfo, nLength, lpnLengthNeeded);
|
|
972 else
|
|
973 return GetUserObjectInformationA (hObj, nIndex, pvInfo, nLength, lpnLengthNeeded);
|
|
974 }
|
|
975
|
|
976 BOOL
|
|
977 qxeSetUserObjectInformation (HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength)
|
|
978 {
|
|
979 if (XEUNICODE_P)
|
|
980 return SetUserObjectInformationW (hObj, nIndex, pvInfo, nLength);
|
|
981 else
|
|
982 return SetUserObjectInformationA (hObj, nIndex, pvInfo, nLength);
|
|
983 }
|
|
984
|
|
985 UINT
|
|
986 qxeRegisterWindowMessage (const Extbyte * lpString)
|
|
987 {
|
|
988 if (XEUNICODE_P)
|
|
989 return RegisterWindowMessageW ((LPCWSTR) lpString);
|
|
990 else
|
|
991 return RegisterWindowMessageA ((LPCSTR) lpString);
|
|
992 }
|
|
993
|
|
994 BOOL
|
|
995 qxeGetMessage (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax)
|
|
996 {
|
|
997 if (XEUNICODE_P)
|
|
998 return GetMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
|
|
999 else
|
|
1000 return GetMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
|
|
1001 }
|
|
1002
|
|
1003 LONG
|
|
1004 qxeDispatchMessage (CONST MSG * lpMsg)
|
|
1005 {
|
|
1006 if (XEUNICODE_P)
|
|
1007 return DispatchMessageW (lpMsg);
|
|
1008 else
|
|
1009 return DispatchMessageA (lpMsg);
|
|
1010 }
|
|
1011
|
|
1012 BOOL
|
|
1013 qxePeekMessage (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg)
|
|
1014 {
|
|
1015 if (XEUNICODE_P)
|
|
1016 return PeekMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
|
|
1017 else
|
|
1018 return PeekMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
|
|
1019 }
|
|
1020
|
|
1021 /* Skipping SendMessage because split messages and structures */
|
|
1022
|
|
1023 LRESULT
|
|
1024 qxeSendMessageTimeout (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, UINT fuFlags, UINT uTimeout, LPDWORD lpdwResult)
|
|
1025 {
|
|
1026 if (XEUNICODE_P)
|
|
1027 return SendMessageTimeoutW (hWnd, Msg, wParam, lParam, fuFlags, uTimeout, lpdwResult);
|
|
1028 else
|
|
1029 return SendMessageTimeoutA (hWnd, Msg, wParam, lParam, fuFlags, uTimeout, lpdwResult);
|
|
1030 }
|
|
1031
|
|
1032 BOOL
|
|
1033 qxeSendNotifyMessage (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|
1034 {
|
|
1035 if (XEUNICODE_P)
|
|
1036 return SendNotifyMessageW (hWnd, Msg, wParam, lParam);
|
|
1037 else
|
|
1038 return SendNotifyMessageA (hWnd, Msg, wParam, lParam);
|
|
1039 }
|
|
1040
|
|
1041 BOOL
|
|
1042 qxeSendMessageCallback (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, SENDASYNCPROC lpResultCallBack, DWORD dwData)
|
|
1043 {
|
|
1044 if (XEUNICODE_P)
|
|
1045 return SendMessageCallbackW (hWnd, Msg, wParam, lParam, lpResultCallBack, dwData);
|
|
1046 else
|
|
1047 return SendMessageCallbackA (hWnd, Msg, wParam, lParam, lpResultCallBack, dwData);
|
|
1048 }
|
|
1049
|
|
1050 /* Error if BroadcastSystemMessage used: win95 version not split; NT 4.0+ only */
|
|
1051
|
|
1052 /* Error if RegisterDeviceNotification used: NT 5.0+ only */
|
|
1053
|
|
1054 BOOL
|
|
1055 qxePostMessage (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|
1056 {
|
|
1057 if (XEUNICODE_P)
|
|
1058 return PostMessageW (hWnd, Msg, wParam, lParam);
|
|
1059 else
|
|
1060 return PostMessageA (hWnd, Msg, wParam, lParam);
|
|
1061 }
|
|
1062
|
|
1063 BOOL
|
|
1064 qxePostThreadMessage (DWORD idThread, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|
1065 {
|
|
1066 if (XEUNICODE_P)
|
|
1067 return PostThreadMessageW (idThread, Msg, wParam, lParam);
|
|
1068 else
|
|
1069 return PostThreadMessageA (idThread, Msg, wParam, lParam);
|
|
1070 }
|
|
1071
|
|
1072 /* Skipping DefWindowProc because return value is conditionalized on _MAC, messes up parser */
|
|
1073
|
|
1074 /* Error if CallWindowProc used: two versions, STRICT and non-STRICT */
|
|
1075
|
|
1076 /* Error if CallWindowProc used: two versions, STRICT and non-STRICT */
|
|
1077
|
|
1078 /* Skipping RegisterClass because need to intercept so we can provide our own window procedure and handle split notify messages; split-simple WNDCLASS */
|
|
1079
|
|
1080 /* Skipping UnregisterClass because need to intercept for reasons related to RegisterClass */
|
|
1081
|
|
1082 BOOL
|
|
1083 qxeGetClassInfo (HINSTANCE hInstance, const Extbyte * lpClassName, LPWNDCLASSW lpWndClass)
|
|
1084 {
|
|
1085 if (XEUNICODE_P)
|
|
1086 return GetClassInfoW (hInstance, (LPCWSTR) lpClassName, lpWndClass);
|
|
1087 else
|
|
1088 return GetClassInfoA (hInstance, (LPCSTR) lpClassName, (LPWNDCLASSA) lpWndClass);
|
|
1089 }
|
|
1090
|
|
1091 /* Skipping RegisterClassEx because need to intercept so we can provide our own window procedure and handle split notify messages; split-simple WNDCLASSEX; NT 4.0+ only */
|
|
1092
|
|
1093 /* NOTE: NT 4.0+ only */
|
|
1094 BOOL
|
|
1095 qxeGetClassInfoEx (HINSTANCE arg1, const Extbyte * arg2, LPWNDCLASSEXW arg3)
|
|
1096 {
|
|
1097 if (XEUNICODE_P)
|
|
1098 return GetClassInfoExW (arg1, (LPCWSTR) arg2, arg3);
|
|
1099 else
|
|
1100 return GetClassInfoExA (arg1, (LPCSTR) arg2, (LPWNDCLASSEXA) arg3);
|
|
1101 }
|
|
1102
|
|
1103 HWND
|
|
1104 qxeCreateWindowEx (DWORD dwExStyle, const Extbyte * lpClassName, const Extbyte * lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam)
|
|
1105 {
|
|
1106 if (XEUNICODE_P)
|
|
1107 return CreateWindowExW (dwExStyle, (LPCWSTR) lpClassName, (LPCWSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
|
|
1108 else
|
|
1109 return CreateWindowExA (dwExStyle, (LPCSTR) lpClassName, (LPCSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
|
|
1110 }
|
|
1111
|
|
1112 HWND
|
|
1113 qxeCreateDialogParam (HINSTANCE hInstance, const Extbyte * lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
|
|
1114 {
|
|
1115 if (XEUNICODE_P)
|
|
1116 return CreateDialogParamW (hInstance, (LPCWSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
|
|
1117 else
|
|
1118 return CreateDialogParamA (hInstance, (LPCSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
|
|
1119 }
|
|
1120
|
|
1121 /* NOTE: error in Cygwin prototype (no split) but fixable with typedef */
|
|
1122 HWND
|
|
1123 qxeCreateDialogIndirectParam (HINSTANCE hInstance, LPCDLGTEMPLATEW lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
|
|
1124 {
|
|
1125 if (XEUNICODE_P)
|
|
1126 return CreateDialogIndirectParamW (hInstance, lpTemplate, hWndParent, lpDialogFunc, dwInitParam);
|
|
1127 else
|
|
1128 return CreateDialogIndirectParamA (hInstance, (LPCDLGTEMPLATEA) lpTemplate, hWndParent, lpDialogFunc, dwInitParam);
|
|
1129 }
|
|
1130
|
|
1131 int
|
|
1132 qxeDialogBoxParam (HINSTANCE hInstance, const Extbyte * lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
|
|
1133 {
|
|
1134 if (XEUNICODE_P)
|
|
1135 return DialogBoxParamW (hInstance, (LPCWSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
|
|
1136 else
|
|
1137 return DialogBoxParamA (hInstance, (LPCSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
|
|
1138 }
|
|
1139
|
|
1140 /* NOTE: error in Cygwin prototype (no split) but fixable with typedef */
|
|
1141 int
|
|
1142 qxeDialogBoxIndirectParam (HINSTANCE hInstance, LPCDLGTEMPLATEW hDialogTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
|
|
1143 {
|
|
1144 if (XEUNICODE_P)
|
|
1145 return DialogBoxIndirectParamW (hInstance, hDialogTemplate, hWndParent, lpDialogFunc, dwInitParam);
|
|
1146 else
|
|
1147 return DialogBoxIndirectParamA (hInstance, (LPCDLGTEMPLATEA) hDialogTemplate, hWndParent, lpDialogFunc, dwInitParam);
|
|
1148 }
|
|
1149
|
|
1150 BOOL
|
|
1151 qxeSetDlgItemText (HWND hDlg, int nIDDlgItem, const Extbyte * lpString)
|
|
1152 {
|
|
1153 if (XEUNICODE_P)
|
|
1154 return SetDlgItemTextW (hDlg, nIDDlgItem, (LPCWSTR) lpString);
|
|
1155 else
|
|
1156 return SetDlgItemTextA (hDlg, nIDDlgItem, (LPCSTR) lpString);
|
|
1157 }
|
|
1158
|
|
1159 UINT
|
|
1160 qxeGetDlgItemText (HWND hDlg, int nIDDlgItem, Extbyte * lpString, int nMaxCount)
|
|
1161 {
|
|
1162 if (XEUNICODE_P)
|
|
1163 return GetDlgItemTextW (hDlg, nIDDlgItem, (LPWSTR) lpString, nMaxCount);
|
|
1164 else
|
|
1165 return GetDlgItemTextA (hDlg, nIDDlgItem, (LPSTR) lpString, nMaxCount);
|
|
1166 }
|
|
1167
|
|
1168 LONG
|
|
1169 qxeSendDlgItemMessage (HWND hDlg, int nIDDlgItem, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|
1170 {
|
|
1171 if (XEUNICODE_P)
|
|
1172 return SendDlgItemMessageW (hDlg, nIDDlgItem, Msg, wParam, lParam);
|
|
1173 else
|
|
1174 return SendDlgItemMessageA (hDlg, nIDDlgItem, Msg, wParam, lParam);
|
|
1175 }
|
|
1176
|
|
1177 /* Error if DefDlgProc used: return value is conditionalized on _MAC, messes up parser */
|
|
1178
|
|
1179 #if !defined (CYGWIN_HEADERS)
|
|
1180
|
|
1181 BOOL
|
|
1182 qxeCallMsgFilter (LPMSG lpMsg, int nCode)
|
|
1183 {
|
|
1184 if (XEUNICODE_P)
|
|
1185 return CallMsgFilterW (lpMsg, nCode);
|
|
1186 else
|
|
1187 return CallMsgFilterA (lpMsg, nCode);
|
|
1188 }
|
|
1189
|
|
1190 #endif /* !defined (CYGWIN_HEADERS) */
|
|
1191
|
|
1192 UINT
|
|
1193 qxeRegisterClipboardFormat (const Extbyte * lpszFormat)
|
|
1194 {
|
|
1195 if (XEUNICODE_P)
|
|
1196 return RegisterClipboardFormatW ((LPCWSTR) lpszFormat);
|
|
1197 else
|
|
1198 return RegisterClipboardFormatA ((LPCSTR) lpszFormat);
|
|
1199 }
|
|
1200
|
|
1201 int
|
|
1202 qxeGetClipboardFormatName (UINT format, Extbyte * lpszFormatName, int cchMaxCount)
|
|
1203 {
|
|
1204 if (XEUNICODE_P)
|
|
1205 return GetClipboardFormatNameW (format, (LPWSTR) lpszFormatName, cchMaxCount);
|
|
1206 else
|
|
1207 return GetClipboardFormatNameA (format, (LPSTR) lpszFormatName, cchMaxCount);
|
|
1208 }
|
|
1209
|
|
1210 BOOL
|
|
1211 qxeCharToOem (const Extbyte * lpszSrc, LPSTR lpszDst)
|
|
1212 {
|
|
1213 if (XEUNICODE_P)
|
|
1214 return CharToOemW ((LPCWSTR) lpszSrc, lpszDst);
|
|
1215 else
|
|
1216 return CharToOemA ((LPCSTR) lpszSrc, lpszDst);
|
|
1217 }
|
|
1218
|
|
1219 BOOL
|
|
1220 qxeOemToChar (LPCSTR lpszSrc, Extbyte * lpszDst)
|
|
1221 {
|
|
1222 if (XEUNICODE_P)
|
|
1223 return OemToCharW (lpszSrc, (LPWSTR) lpszDst);
|
|
1224 else
|
|
1225 return OemToCharA (lpszSrc, (LPSTR) lpszDst);
|
|
1226 }
|
|
1227
|
|
1228 BOOL
|
|
1229 qxeCharToOemBuff (const Extbyte * lpszSrc, LPSTR lpszDst, DWORD cchDstLength)
|
|
1230 {
|
|
1231 if (XEUNICODE_P)
|
|
1232 return CharToOemBuffW ((LPCWSTR) lpszSrc, lpszDst, cchDstLength);
|
|
1233 else
|
|
1234 return CharToOemBuffA ((LPCSTR) lpszSrc, lpszDst, cchDstLength);
|
|
1235 }
|
|
1236
|
|
1237 BOOL
|
|
1238 qxeOemToCharBuff (LPCSTR lpszSrc, Extbyte * lpszDst, DWORD cchDstLength)
|
|
1239 {
|
|
1240 if (XEUNICODE_P)
|
|
1241 return OemToCharBuffW (lpszSrc, (LPWSTR) lpszDst, cchDstLength);
|
|
1242 else
|
|
1243 return OemToCharBuffA (lpszSrc, (LPSTR) lpszDst, cchDstLength);
|
|
1244 }
|
|
1245
|
|
1246 Extbyte *
|
|
1247 qxeCharUpper (Extbyte * lpsz)
|
|
1248 {
|
|
1249 if (XEUNICODE_P)
|
|
1250 return (Extbyte *) CharUpperW ((LPWSTR) lpsz);
|
|
1251 else
|
|
1252 return (Extbyte *) CharUpperA ((LPSTR) lpsz);
|
|
1253 }
|
|
1254
|
|
1255 DWORD
|
|
1256 qxeCharUpperBuff (Extbyte * lpsz, DWORD cchLength)
|
|
1257 {
|
|
1258 if (XEUNICODE_P)
|
|
1259 return CharUpperBuffW ((LPWSTR) lpsz, cchLength);
|
|
1260 else
|
|
1261 return CharUpperBuffA ((LPSTR) lpsz, cchLength);
|
|
1262 }
|
|
1263
|
|
1264 Extbyte *
|
|
1265 qxeCharLower (Extbyte * lpsz)
|
|
1266 {
|
|
1267 if (XEUNICODE_P)
|
|
1268 return (Extbyte *) CharLowerW ((LPWSTR) lpsz);
|
|
1269 else
|
|
1270 return (Extbyte *) CharLowerA ((LPSTR) lpsz);
|
|
1271 }
|
|
1272
|
|
1273 DWORD
|
|
1274 qxeCharLowerBuff (Extbyte * lpsz, DWORD cchLength)
|
|
1275 {
|
|
1276 if (XEUNICODE_P)
|
|
1277 return CharLowerBuffW ((LPWSTR) lpsz, cchLength);
|
|
1278 else
|
|
1279 return CharLowerBuffA ((LPSTR) lpsz, cchLength);
|
|
1280 }
|
|
1281
|
|
1282 Extbyte *
|
|
1283 qxeCharNext (const Extbyte * lpsz)
|
|
1284 {
|
|
1285 if (XEUNICODE_P)
|
|
1286 return (Extbyte *) CharNextW ((LPCWSTR) lpsz);
|
|
1287 else
|
|
1288 return (Extbyte *) CharNextA ((LPCSTR) lpsz);
|
|
1289 }
|
|
1290
|
|
1291 Extbyte *
|
|
1292 qxeCharPrev (const Extbyte * lpszStart, const Extbyte * lpszCurrent)
|
|
1293 {
|
|
1294 if (XEUNICODE_P)
|
|
1295 return (Extbyte *) CharPrevW ((LPCWSTR) lpszStart, (LPCWSTR) lpszCurrent);
|
|
1296 else
|
|
1297 return (Extbyte *) CharPrevA ((LPCSTR) lpszStart, (LPCSTR) lpszCurrent);
|
|
1298 }
|
|
1299
|
|
1300 /* Error if IsCharAlpha used: split CHAR */
|
|
1301
|
|
1302 /* Error if IsCharAlphaNumeric used: split CHAR */
|
|
1303
|
|
1304 /* Error if IsCharUpper used: split CHAR */
|
|
1305
|
|
1306 /* Error if IsCharLower used: split CHAR */
|
|
1307
|
|
1308 int
|
|
1309 qxeGetKeyNameText (LONG lParam, Extbyte * lpString, int nSize)
|
|
1310 {
|
|
1311 if (XEUNICODE_P)
|
|
1312 return GetKeyNameTextW (lParam, (LPWSTR) lpString, nSize);
|
|
1313 else
|
|
1314 return GetKeyNameTextA (lParam, (LPSTR) lpString, nSize);
|
|
1315 }
|
|
1316
|
|
1317 /* Skipping VkKeyScan because split CHAR */
|
|
1318
|
|
1319 /* Error if VkKeyScanEx used: split CHAR; NT 4.0+ only */
|
|
1320
|
|
1321 UINT
|
|
1322 qxeMapVirtualKey (UINT uCode, UINT uMapType)
|
|
1323 {
|
|
1324 if (XEUNICODE_P)
|
|
1325 return MapVirtualKeyW (uCode, uMapType);
|
|
1326 else
|
|
1327 return MapVirtualKeyA (uCode, uMapType);
|
|
1328 }
|
|
1329
|
|
1330 /* NOTE: NT 4.0+ only */
|
|
1331 UINT
|
|
1332 qxeMapVirtualKeyEx (UINT uCode, UINT uMapType, HKL dwhkl)
|
|
1333 {
|
|
1334 if (XEUNICODE_P)
|
|
1335 return MapVirtualKeyExW (uCode, uMapType, dwhkl);
|
|
1336 else
|
|
1337 return MapVirtualKeyExA (uCode, uMapType, dwhkl);
|
|
1338 }
|
|
1339
|
|
1340 HACCEL
|
|
1341 qxeLoadAccelerators (HINSTANCE hInstance, const Extbyte * lpTableName)
|
|
1342 {
|
|
1343 if (XEUNICODE_P)
|
|
1344 return LoadAcceleratorsW (hInstance, (LPCWSTR) lpTableName);
|
|
1345 else
|
|
1346 return LoadAcceleratorsA (hInstance, (LPCSTR) lpTableName);
|
|
1347 }
|
|
1348
|
|
1349 HACCEL
|
|
1350 qxeCreateAcceleratorTable (LPACCEL arg1, int arg2)
|
|
1351 {
|
|
1352 if (XEUNICODE_P)
|
|
1353 return CreateAcceleratorTableW (arg1, arg2);
|
|
1354 else
|
|
1355 return CreateAcceleratorTableA (arg1, arg2);
|
|
1356 }
|
|
1357
|
|
1358 int
|
|
1359 qxeCopyAcceleratorTable (HACCEL hAccelSrc, LPACCEL lpAccelDst, int cAccelEntries)
|
|
1360 {
|
|
1361 if (XEUNICODE_P)
|
|
1362 return CopyAcceleratorTableW (hAccelSrc, lpAccelDst, cAccelEntries);
|
|
1363 else
|
|
1364 return CopyAcceleratorTableA (hAccelSrc, lpAccelDst, cAccelEntries);
|
|
1365 }
|
|
1366
|
|
1367 int
|
|
1368 qxeTranslateAccelerator (HWND hWnd, HACCEL hAccTable, LPMSG lpMsg)
|
|
1369 {
|
|
1370 if (XEUNICODE_P)
|
|
1371 return TranslateAcceleratorW (hWnd, hAccTable, lpMsg);
|
|
1372 else
|
|
1373 return TranslateAcceleratorA (hWnd, hAccTable, lpMsg);
|
|
1374 }
|
|
1375
|
|
1376 HMENU
|
|
1377 qxeLoadMenu (HINSTANCE hInstance, const Extbyte * lpMenuName)
|
|
1378 {
|
|
1379 if (XEUNICODE_P)
|
|
1380 return LoadMenuW (hInstance, (LPCWSTR) lpMenuName);
|
|
1381 else
|
|
1382 return LoadMenuA (hInstance, (LPCSTR) lpMenuName);
|
|
1383 }
|
|
1384
|
|
1385 HMENU
|
|
1386 qxeLoadMenuIndirect (CONST MENUTEMPLATEW * lpMenuTemplate)
|
|
1387 {
|
|
1388 if (XEUNICODE_P)
|
|
1389 return LoadMenuIndirectW (lpMenuTemplate);
|
|
1390 else
|
|
1391 return LoadMenuIndirectA ((CONST MENUTEMPLATEA *) lpMenuTemplate);
|
|
1392 }
|
|
1393
|
|
1394 BOOL
|
|
1395 qxeChangeMenu (HMENU hMenu, UINT cmd, const Extbyte * lpszNewItem, UINT cmdInsert, UINT flags)
|
|
1396 {
|
|
1397 if (XEUNICODE_P)
|
|
1398 return ChangeMenuW (hMenu, cmd, (LPCWSTR) lpszNewItem, cmdInsert, flags);
|
|
1399 else
|
|
1400 return ChangeMenuA (hMenu, cmd, (LPCSTR) lpszNewItem, cmdInsert, flags);
|
|
1401 }
|
|
1402
|
|
1403 int
|
|
1404 qxeGetMenuString (HMENU hMenu, UINT uIDItem, Extbyte * lpString, int nMaxCount, UINT uFlag)
|
|
1405 {
|
|
1406 if (XEUNICODE_P)
|
|
1407 return GetMenuStringW (hMenu, uIDItem, (LPWSTR) lpString, nMaxCount, uFlag);
|
|
1408 else
|
|
1409 return GetMenuStringA (hMenu, uIDItem, (LPSTR) lpString, nMaxCount, uFlag);
|
|
1410 }
|
|
1411
|
|
1412 BOOL
|
|
1413 qxeInsertMenu (HMENU hMenu, UINT uPosition, UINT uFlags, UINT uIDNewItem, const Extbyte * lpNewItem)
|
|
1414 {
|
|
1415 if (XEUNICODE_P)
|
|
1416 return InsertMenuW (hMenu, uPosition, uFlags, uIDNewItem, (LPCWSTR) lpNewItem);
|
|
1417 else
|
|
1418 return InsertMenuA (hMenu, uPosition, uFlags, uIDNewItem, (LPCSTR) lpNewItem);
|
|
1419 }
|
|
1420
|
|
1421 BOOL
|
|
1422 qxeAppendMenu (HMENU hMenu, UINT uFlags, UINT uIDNewItem, const Extbyte * lpNewItem)
|
|
1423 {
|
|
1424 if (XEUNICODE_P)
|
|
1425 return AppendMenuW (hMenu, uFlags, uIDNewItem, (LPCWSTR) lpNewItem);
|
|
1426 else
|
|
1427 return AppendMenuA (hMenu, uFlags, uIDNewItem, (LPCSTR) lpNewItem);
|
|
1428 }
|
|
1429
|
|
1430 BOOL
|
|
1431 qxeModifyMenu (HMENU hMnu, UINT uPosition, UINT uFlags, UINT uIDNewItem, const Extbyte * lpNewItem)
|
|
1432 {
|
|
1433 if (XEUNICODE_P)
|
|
1434 return ModifyMenuW (hMnu, uPosition, uFlags, uIDNewItem, (LPCWSTR) lpNewItem);
|
|
1435 else
|
|
1436 return ModifyMenuA (hMnu, uPosition, uFlags, uIDNewItem, (LPCSTR) lpNewItem);
|
|
1437 }
|
|
1438
|
|
1439 /* NOTE: NT 4.0+ only */
|
|
1440 BOOL
|
|
1441 qxeInsertMenuItem (HMENU arg1, UINT arg2, BOOL arg3, LPCMENUITEMINFOW arg4)
|
|
1442 {
|
|
1443 if (XEUNICODE_P)
|
|
1444 return InsertMenuItemW (arg1, arg2, arg3, arg4);
|
|
1445 else
|
|
1446 return InsertMenuItemA (arg1, arg2, arg3, (LPCMENUITEMINFOA) arg4);
|
|
1447 }
|
|
1448
|
|
1449 /* NOTE: NT 4.0+ only */
|
|
1450 BOOL
|
|
1451 qxeGetMenuItemInfo (HMENU arg1, UINT arg2, BOOL arg3, LPMENUITEMINFOW arg4)
|
|
1452 {
|
|
1453 if (XEUNICODE_P)
|
|
1454 return GetMenuItemInfoW (arg1, arg2, arg3, arg4);
|
|
1455 else
|
|
1456 return GetMenuItemInfoA (arg1, arg2, arg3, (LPMENUITEMINFOA) arg4);
|
|
1457 }
|
|
1458
|
|
1459 /* NOTE: NT 4.0+ only */
|
|
1460 BOOL
|
|
1461 qxeSetMenuItemInfo (HMENU arg1, UINT arg2, BOOL arg3, LPCMENUITEMINFOW arg4)
|
|
1462 {
|
|
1463 if (XEUNICODE_P)
|
|
1464 return SetMenuItemInfoW (arg1, arg2, arg3, arg4);
|
|
1465 else
|
|
1466 return SetMenuItemInfoA (arg1, arg2, arg3, (LPCMENUITEMINFOA) arg4);
|
|
1467 }
|
|
1468
|
|
1469 int
|
|
1470 qxeDrawText (HDC hDC, const Extbyte * lpString, int nCount, LPRECT lpRect, UINT uFormat)
|
|
1471 {
|
|
1472 if (XEUNICODE_P)
|
|
1473 return DrawTextW (hDC, (LPCWSTR) lpString, nCount, lpRect, uFormat);
|
|
1474 else
|
|
1475 return DrawTextA (hDC, (LPCSTR) lpString, nCount, lpRect, uFormat);
|
|
1476 }
|
|
1477
|
|
1478 /* NOTE: NT 4.0+ only */
|
|
1479 int
|
|
1480 qxeDrawTextEx (HDC arg1, Extbyte * arg2, int arg3, LPRECT arg4, UINT arg5, LPDRAWTEXTPARAMS arg6)
|
|
1481 {
|
|
1482 if (XEUNICODE_P)
|
|
1483 return DrawTextExW (arg1, (LPWSTR) arg2, arg3, arg4, arg5, arg6);
|
|
1484 else
|
|
1485 return DrawTextExA (arg1, (LPSTR) arg2, arg3, arg4, arg5, arg6);
|
|
1486 }
|
|
1487
|
|
1488 BOOL
|
|
1489 qxeGrayString (HDC hDC, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc, LPARAM lpData, int nCount, int X, int Y, int nWidth, int nHeight)
|
|
1490 {
|
|
1491 if (XEUNICODE_P)
|
|
1492 return GrayStringW (hDC, hBrush, lpOutputFunc, lpData, nCount, X, Y, nWidth, nHeight);
|
|
1493 else
|
|
1494 return GrayStringA (hDC, hBrush, lpOutputFunc, lpData, nCount, X, Y, nWidth, nHeight);
|
|
1495 }
|
|
1496
|
|
1497 /* NOTE: NT 4.0+ only */
|
|
1498 BOOL
|
|
1499 qxeDrawState (HDC arg1, HBRUSH arg2, DRAWSTATEPROC arg3, LPARAM arg4, WPARAM arg5, int arg6, int arg7, int arg8, int arg9, UINT arg10)
|
|
1500 {
|
|
1501 if (XEUNICODE_P)
|
|
1502 return DrawStateW (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
|
|
1503 else
|
|
1504 return DrawStateA (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
|
|
1505 }
|
|
1506
|
|
1507 LONG
|
|
1508 qxeTabbedTextOut (HDC hDC, int X, int Y, const Extbyte * lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions, int nTabOrigin)
|
|
1509 {
|
|
1510 if (XEUNICODE_P)
|
|
1511 return TabbedTextOutW (hDC, X, Y, (LPCWSTR) lpString, nCount, nTabPositions, lpnTabStopPositions, nTabOrigin);
|
|
1512 else
|
|
1513 return TabbedTextOutA (hDC, X, Y, (LPCSTR) lpString, nCount, nTabPositions, lpnTabStopPositions, nTabOrigin);
|
|
1514 }
|
|
1515
|
|
1516 DWORD
|
|
1517 qxeGetTabbedTextExtent (HDC hDC, const Extbyte * lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions)
|
|
1518 {
|
|
1519 if (XEUNICODE_P)
|
|
1520 return GetTabbedTextExtentW (hDC, (LPCWSTR) lpString, nCount, nTabPositions, lpnTabStopPositions);
|
|
1521 else
|
|
1522 return GetTabbedTextExtentA (hDC, (LPCSTR) lpString, nCount, nTabPositions, lpnTabStopPositions);
|
|
1523 }
|
|
1524
|
|
1525 BOOL
|
|
1526 qxeSetProp (HWND hWnd, const Extbyte * lpString, HANDLE hData)
|
|
1527 {
|
|
1528 if (XEUNICODE_P)
|
|
1529 return SetPropW (hWnd, (LPCWSTR) lpString, hData);
|
|
1530 else
|
|
1531 return SetPropA (hWnd, (LPCSTR) lpString, hData);
|
|
1532 }
|
|
1533
|
|
1534 HANDLE
|
|
1535 qxeGetProp (HWND hWnd, const Extbyte * lpString)
|
|
1536 {
|
|
1537 if (XEUNICODE_P)
|
|
1538 return GetPropW (hWnd, (LPCWSTR) lpString);
|
|
1539 else
|
|
1540 return GetPropA (hWnd, (LPCSTR) lpString);
|
|
1541 }
|
|
1542
|
|
1543 HANDLE
|
|
1544 qxeRemoveProp (HWND hWnd, const Extbyte * lpString)
|
|
1545 {
|
|
1546 if (XEUNICODE_P)
|
|
1547 return RemovePropW (hWnd, (LPCWSTR) lpString);
|
|
1548 else
|
|
1549 return RemovePropA (hWnd, (LPCSTR) lpString);
|
|
1550 }
|
|
1551
|
|
1552 /* NOTE: // callback fun differs only in string pointer type */
|
|
1553 int
|
|
1554 qxeEnumPropsEx (HWND hWnd, PROPENUMPROCEXW lpEnumFunc, LPARAM lParam)
|
|
1555 {
|
|
1556 if (XEUNICODE_P)
|
|
1557 return EnumPropsExW (hWnd, lpEnumFunc, lParam);
|
|
1558 else
|
|
1559 return EnumPropsExA (hWnd, (PROPENUMPROCEXA) lpEnumFunc, lParam);
|
|
1560 }
|
|
1561
|
|
1562 /* NOTE: // callback fun differs only in string pointer type */
|
|
1563 int
|
|
1564 qxeEnumProps (HWND hWnd, PROPENUMPROCW lpEnumFunc)
|
|
1565 {
|
|
1566 if (XEUNICODE_P)
|
|
1567 return EnumPropsW (hWnd, lpEnumFunc);
|
|
1568 else
|
|
1569 return EnumPropsA (hWnd, (PROPENUMPROCA) lpEnumFunc);
|
|
1570 }
|
|
1571
|
|
1572 BOOL
|
|
1573 qxeSetWindowText (HWND hWnd, const Extbyte * lpString)
|
|
1574 {
|
|
1575 if (XEUNICODE_P)
|
|
1576 return SetWindowTextW (hWnd, (LPCWSTR) lpString);
|
|
1577 else
|
|
1578 return SetWindowTextA (hWnd, (LPCSTR) lpString);
|
|
1579 }
|
|
1580
|
|
1581 int
|
|
1582 qxeGetWindowText (HWND hWnd, Extbyte * lpString, int nMaxCount)
|
|
1583 {
|
|
1584 if (XEUNICODE_P)
|
|
1585 return GetWindowTextW (hWnd, (LPWSTR) lpString, nMaxCount);
|
|
1586 else
|
|
1587 return GetWindowTextA (hWnd, (LPSTR) lpString, nMaxCount);
|
|
1588 }
|
|
1589
|
|
1590 int
|
|
1591 qxeGetWindowTextLength (HWND hWnd)
|
|
1592 {
|
|
1593 if (XEUNICODE_P)
|
|
1594 return GetWindowTextLengthW (hWnd);
|
|
1595 else
|
|
1596 return GetWindowTextLengthA (hWnd);
|
|
1597 }
|
|
1598
|
|
1599 int
|
|
1600 qxeMessageBox (HWND hWnd, const Extbyte * lpText, const Extbyte * lpCaption, UINT uType)
|
|
1601 {
|
|
1602 if (XEUNICODE_P)
|
|
1603 return MessageBoxW (hWnd, (LPCWSTR) lpText, (LPCWSTR) lpCaption, uType);
|
|
1604 else
|
|
1605 return MessageBoxA (hWnd, (LPCSTR) lpText, (LPCSTR) lpCaption, uType);
|
|
1606 }
|
|
1607
|
|
1608 int
|
|
1609 qxeMessageBoxEx (HWND hWnd, const Extbyte * lpText, const Extbyte * lpCaption, UINT uType, WORD wLanguageId)
|
|
1610 {
|
|
1611 if (XEUNICODE_P)
|
|
1612 return MessageBoxExW (hWnd, (LPCWSTR) lpText, (LPCWSTR) lpCaption, uType, wLanguageId);
|
|
1613 else
|
|
1614 return MessageBoxExA (hWnd, (LPCSTR) lpText, (LPCSTR) lpCaption, uType, wLanguageId);
|
|
1615 }
|
|
1616
|
|
1617 /* NOTE: NT 4.0+ only */
|
|
1618 int
|
|
1619 qxeMessageBoxIndirect (LPMSGBOXPARAMSW arg1)
|
|
1620 {
|
|
1621 if (XEUNICODE_P)
|
|
1622 return MessageBoxIndirectW (arg1);
|
|
1623 else
|
|
1624 return MessageBoxIndirectA ((LPMSGBOXPARAMSA) arg1);
|
|
1625 }
|
|
1626
|
|
1627 LONG
|
|
1628 qxeGetWindowLong (HWND hWnd, int nIndex)
|
|
1629 {
|
|
1630 if (XEUNICODE_P)
|
|
1631 return GetWindowLongW (hWnd, nIndex);
|
|
1632 else
|
|
1633 return GetWindowLongA (hWnd, nIndex);
|
|
1634 }
|
|
1635
|
|
1636 LONG
|
|
1637 qxeSetWindowLong (HWND hWnd, int nIndex, LONG dwNewLong)
|
|
1638 {
|
|
1639 if (XEUNICODE_P)
|
|
1640 return SetWindowLongW (hWnd, nIndex, dwNewLong);
|
|
1641 else
|
|
1642 return SetWindowLongA (hWnd, nIndex, dwNewLong);
|
|
1643 }
|
|
1644
|
|
1645 DWORD
|
|
1646 qxeGetClassLong (HWND hWnd, int nIndex)
|
|
1647 {
|
|
1648 if (XEUNICODE_P)
|
|
1649 return GetClassLongW (hWnd, nIndex);
|
|
1650 else
|
|
1651 return GetClassLongA (hWnd, nIndex);
|
|
1652 }
|
|
1653
|
|
1654 DWORD
|
|
1655 qxeSetClassLong (HWND hWnd, int nIndex, LONG dwNewLong)
|
|
1656 {
|
|
1657 if (XEUNICODE_P)
|
|
1658 return SetClassLongW (hWnd, nIndex, dwNewLong);
|
|
1659 else
|
|
1660 return SetClassLongA (hWnd, nIndex, dwNewLong);
|
|
1661 }
|
|
1662
|
|
1663 HWND
|
|
1664 qxeFindWindow (const Extbyte * lpClassName, const Extbyte * lpWindowName)
|
|
1665 {
|
|
1666 if (XEUNICODE_P)
|
|
1667 return FindWindowW ((LPCWSTR) lpClassName, (LPCWSTR) lpWindowName);
|
|
1668 else
|
|
1669 return FindWindowA ((LPCSTR) lpClassName, (LPCSTR) lpWindowName);
|
|
1670 }
|
|
1671
|
|
1672 /* NOTE: NT 4.0+ only */
|
|
1673 HWND
|
|
1674 qxeFindWindowEx (HWND arg1, HWND arg2, const Extbyte * arg3, const Extbyte * arg4)
|
|
1675 {
|
|
1676 if (XEUNICODE_P)
|
|
1677 return FindWindowExW (arg1, arg2, (LPCWSTR) arg3, (LPCWSTR) arg4);
|
|
1678 else
|
|
1679 return FindWindowExA (arg1, arg2, (LPCSTR) arg3, (LPCSTR) arg4);
|
|
1680 }
|
|
1681
|
|
1682 int
|
|
1683 qxeGetClassName (HWND hWnd, Extbyte * lpClassName, int nMaxCount)
|
|
1684 {
|
|
1685 if (XEUNICODE_P)
|
|
1686 return GetClassNameW (hWnd, (LPWSTR) lpClassName, nMaxCount);
|
|
1687 else
|
|
1688 return GetClassNameA (hWnd, (LPSTR) lpClassName, nMaxCount);
|
|
1689 }
|
|
1690
|
|
1691 /* Error if SetWindowsHook used: obsolete; two versions, STRICT and non-STRICT */
|
|
1692
|
|
1693 /* Error if SetWindowsHook used: obsolete; two versions, STRICT and non-STRICT */
|
|
1694
|
|
1695 HHOOK
|
|
1696 qxeSetWindowsHookEx (int idHook, HOOKPROC lpfn, HINSTANCE hmod, DWORD dwThreadId)
|
|
1697 {
|
|
1698 if (XEUNICODE_P)
|
|
1699 return SetWindowsHookExW (idHook, lpfn, hmod, dwThreadId);
|
|
1700 else
|
|
1701 return SetWindowsHookExA (idHook, lpfn, hmod, dwThreadId);
|
|
1702 }
|
|
1703
|
|
1704 HBITMAP
|
|
1705 qxeLoadBitmap (HINSTANCE hInstance, const Extbyte * lpBitmapName)
|
|
1706 {
|
|
1707 if (XEUNICODE_P)
|
|
1708 return LoadBitmapW (hInstance, (LPCWSTR) lpBitmapName);
|
|
1709 else
|
|
1710 return LoadBitmapA (hInstance, (LPCSTR) lpBitmapName);
|
|
1711 }
|
|
1712
|
|
1713 HCURSOR
|
|
1714 qxeLoadCursor (HINSTANCE hInstance, const Extbyte * lpCursorName)
|
|
1715 {
|
|
1716 if (XEUNICODE_P)
|
|
1717 return LoadCursorW (hInstance, (LPCWSTR) lpCursorName);
|
|
1718 else
|
|
1719 return LoadCursorA (hInstance, (LPCSTR) lpCursorName);
|
|
1720 }
|
|
1721
|
|
1722 HCURSOR
|
|
1723 qxeLoadCursorFromFile (const Extbyte * lpFileName)
|
|
1724 {
|
|
1725 if (XEUNICODE_P)
|
|
1726 return LoadCursorFromFileW ((LPCWSTR) lpFileName);
|
|
1727 else
|
|
1728 return LoadCursorFromFileA ((LPCSTR) lpFileName);
|
|
1729 }
|
|
1730
|
|
1731 HICON
|
|
1732 qxeLoadIcon (HINSTANCE hInstance, const Extbyte * lpIconName)
|
|
1733 {
|
|
1734 if (XEUNICODE_P)
|
|
1735 return LoadIconW (hInstance, (LPCWSTR) lpIconName);
|
|
1736 else
|
|
1737 return LoadIconA (hInstance, (LPCSTR) lpIconName);
|
|
1738 }
|
|
1739
|
|
1740 /* NOTE: NT 4.0+ only */
|
|
1741 HANDLE
|
|
1742 qxeLoadImage (HINSTANCE arg1, const Extbyte * arg2, UINT arg3, int arg4, int arg5, UINT arg6)
|
|
1743 {
|
|
1744 if (XEUNICODE_P)
|
|
1745 return LoadImageW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6);
|
|
1746 else
|
|
1747 return LoadImageA (arg1, (LPCSTR) arg2, arg3, arg4, arg5, arg6);
|
|
1748 }
|
|
1749
|
|
1750 int
|
|
1751 qxeLoadString (HINSTANCE hInstance, UINT uID, Extbyte * lpBuffer, int nBufferMax)
|
|
1752 {
|
|
1753 if (XEUNICODE_P)
|
|
1754 return LoadStringW (hInstance, uID, (LPWSTR) lpBuffer, nBufferMax);
|
|
1755 else
|
|
1756 return LoadStringA (hInstance, uID, (LPSTR) lpBuffer, nBufferMax);
|
|
1757 }
|
|
1758
|
|
1759 BOOL
|
|
1760 qxeIsDialogMessage (HWND hDlg, LPMSG lpMsg)
|
|
1761 {
|
|
1762 if (XEUNICODE_P)
|
|
1763 return IsDialogMessageW (hDlg, lpMsg);
|
|
1764 else
|
|
1765 return IsDialogMessageA (hDlg, lpMsg);
|
|
1766 }
|
|
1767
|
|
1768 int
|
|
1769 qxeDlgDirList (HWND hDlg, Extbyte * lpPathSpec, int nIDListBox, int nIDStaticPath, UINT uFileType)
|
|
1770 {
|
|
1771 if (XEUNICODE_P)
|
|
1772 return DlgDirListW (hDlg, (LPWSTR) lpPathSpec, nIDListBox, nIDStaticPath, uFileType);
|
|
1773 else
|
|
1774 return DlgDirListA (hDlg, (LPSTR) lpPathSpec, nIDListBox, nIDStaticPath, uFileType);
|
|
1775 }
|
|
1776
|
|
1777 BOOL
|
|
1778 qxeDlgDirSelectEx (HWND hDlg, Extbyte * lpString, int nCount, int nIDListBox)
|
|
1779 {
|
|
1780 if (XEUNICODE_P)
|
|
1781 return DlgDirSelectExW (hDlg, (LPWSTR) lpString, nCount, nIDListBox);
|
|
1782 else
|
|
1783 return DlgDirSelectExA (hDlg, (LPSTR) lpString, nCount, nIDListBox);
|
|
1784 }
|
|
1785
|
|
1786 int
|
|
1787 qxeDlgDirListComboBox (HWND hDlg, Extbyte * lpPathSpec, int nIDComboBox, int nIDStaticPath, UINT uFiletype)
|
|
1788 {
|
|
1789 if (XEUNICODE_P)
|
|
1790 return DlgDirListComboBoxW (hDlg, (LPWSTR) lpPathSpec, nIDComboBox, nIDStaticPath, uFiletype);
|
|
1791 else
|
|
1792 return DlgDirListComboBoxA (hDlg, (LPSTR) lpPathSpec, nIDComboBox, nIDStaticPath, uFiletype);
|
|
1793 }
|
|
1794
|
|
1795 BOOL
|
|
1796 qxeDlgDirSelectComboBoxEx (HWND hDlg, Extbyte * lpString, int nCount, int nIDComboBox)
|
|
1797 {
|
|
1798 if (XEUNICODE_P)
|
|
1799 return DlgDirSelectComboBoxExW (hDlg, (LPWSTR) lpString, nCount, nIDComboBox);
|
|
1800 else
|
|
1801 return DlgDirSelectComboBoxExA (hDlg, (LPSTR) lpString, nCount, nIDComboBox);
|
|
1802 }
|
|
1803
|
|
1804 LRESULT
|
|
1805 qxeDefFrameProc (HWND hWnd, HWND hWndMDIClient, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
1806 {
|
|
1807 if (XEUNICODE_P)
|
|
1808 return DefFrameProcW (hWnd, hWndMDIClient, uMsg, wParam, lParam);
|
|
1809 else
|
|
1810 return DefFrameProcA (hWnd, hWndMDIClient, uMsg, wParam, lParam);
|
|
1811 }
|
|
1812
|
|
1813 /* Error if DefMDIChildProc used: return value is conditionalized on _MAC, messes up parser */
|
|
1814
|
|
1815 HWND
|
|
1816 qxeCreateMDIWindow (Extbyte * lpClassName, Extbyte * lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HINSTANCE hInstance, LPARAM lParam)
|
|
1817 {
|
|
1818 if (XEUNICODE_P)
|
|
1819 return CreateMDIWindowW ((LPWSTR) lpClassName, (LPWSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hInstance, lParam);
|
|
1820 else
|
|
1821 return CreateMDIWindowA ((LPSTR) lpClassName, (LPSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hInstance, lParam);
|
|
1822 }
|
|
1823
|
|
1824 BOOL
|
|
1825 qxeWinHelp (HWND hWndMain, const Extbyte * lpszHelp, UINT uCommand, DWORD dwData)
|
|
1826 {
|
|
1827 if (XEUNICODE_P)
|
|
1828 return WinHelpW (hWndMain, (LPCWSTR) lpszHelp, uCommand, dwData);
|
|
1829 else
|
|
1830 return WinHelpA (hWndMain, (LPCSTR) lpszHelp, uCommand, dwData);
|
|
1831 }
|
|
1832
|
|
1833 /* Error if ChangeDisplaySettings used: split-sized LPDEVMODE */
|
|
1834
|
|
1835 /* Error if ChangeDisplaySettingsEx used: split-sized LPDEVMODE; NT 5.0/Win98+ only */
|
|
1836
|
|
1837 /* Error if EnumDisplaySettings used: split-sized LPDEVMODE */
|
|
1838
|
|
1839 /* Error if EnumDisplayDevices used: split-sized PDISPLAY_DEVICE; NT 5.0+ only, no Win98 */
|
|
1840
|
|
1841 /* NOTE: probs w/ICONMETRICS, NONCLIENTMETRICS */
|
|
1842 BOOL
|
|
1843 qxeSystemParametersInfo (UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
|
|
1844 {
|
|
1845 if (XEUNICODE_P)
|
|
1846 return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni);
|
|
1847 else
|
|
1848 return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni);
|
|
1849 }
|
|
1850
|
|
1851 /* Error if GetMonitorInfo used: NT 5.0/Win98+ only */
|
|
1852
|
|
1853 /* Error if GetWindowModuleFileName used: NT 5.0+ only */
|
|
1854
|
|
1855 /* Error if RealGetWindowClass used: NT 5.0+ only */
|
|
1856
|
|
1857 /* Error if GetAltTabInfo used: NT 5.0+ only */
|
|
1858
|
|
1859
|
|
1860 /*----------------------------------------------------------------------*/
|
2367
|
1861 /* Processing file DDEML.H */
|
|
1862 /*----------------------------------------------------------------------*/
|
|
1863
|
|
1864 UINT
|
|
1865 qxeDdeInitialize (LPDWORD pidInst, PFNCALLBACK pfnCallback, DWORD afCmd, DWORD ulRes)
|
|
1866 {
|
|
1867 if (XEUNICODE_P)
|
|
1868 return DdeInitializeW (pidInst, pfnCallback, afCmd, ulRes);
|
|
1869 else
|
|
1870 return DdeInitializeA (pidInst, pfnCallback, afCmd, ulRes);
|
|
1871 }
|
|
1872
|
|
1873 /* Skipping DdeCreateStringHandle because error in Cygwin prototype */
|
|
1874
|
|
1875 DWORD
|
|
1876 qxeDdeQueryString (DWORD idInst, HSZ hsz, Extbyte * psz, DWORD cchMax, int iCodePage)
|
|
1877 {
|
|
1878 if (XEUNICODE_P)
|
|
1879 return DdeQueryStringW (idInst, hsz, (LPWSTR) psz, cchMax, iCodePage);
|
|
1880 else
|
|
1881 return DdeQueryStringA (idInst, hsz, (LPSTR) psz, cchMax, iCodePage);
|
|
1882 }
|
|
1883
|
|
1884
|
|
1885 /*----------------------------------------------------------------------*/
|
|
1886 /* Processing file WINREG.H */
|
771
|
1887 /*----------------------------------------------------------------------*/
|
|
1888
|
2367
|
1889 /* Skipping RegConnectRegistry because error in Cygwin prototype */
|
|
1890
|
|
1891 LONG
|
|
1892
|
|
1893 qxeRegCreateKey (HKEY hKey, const Extbyte * lpSubKey, PHKEY phkResult)
|
|
1894 {
|
|
1895 if (XEUNICODE_P)
|
|
1896 return RegCreateKeyW (hKey, (LPCWSTR) lpSubKey, phkResult);
|
|
1897 else
|
|
1898 return RegCreateKeyA (hKey, (LPCSTR) lpSubKey, phkResult);
|
|
1899 }
|
|
1900
|
|
1901 LONG
|
|
1902
|
|
1903 qxeRegCreateKeyEx (HKEY hKey, const Extbyte * lpSubKey, DWORD Reserved, Extbyte * lpClass, DWORD dwOptions, REGSAM samDesired, LPSECURITY_ATTRIBUTES lpSecurityAttributes, PHKEY phkResult, LPDWORD lpdwDisposition)
|
|
1904 {
|
|
1905 if (XEUNICODE_P)
|
|
1906 return RegCreateKeyExW (hKey, (LPCWSTR) lpSubKey, Reserved, (LPWSTR) lpClass, dwOptions, samDesired, lpSecurityAttributes, phkResult, lpdwDisposition);
|
|
1907 else
|
|
1908 return RegCreateKeyExA (hKey, (LPCSTR) lpSubKey, Reserved, (LPSTR) lpClass, dwOptions, samDesired, lpSecurityAttributes, phkResult, lpdwDisposition);
|
|
1909 }
|
|
1910
|
|
1911 LONG
|
|
1912
|
|
1913 qxeRegDeleteKey (HKEY hKey, const Extbyte * lpSubKey)
|
|
1914 {
|
|
1915 if (XEUNICODE_P)
|
|
1916 return RegDeleteKeyW (hKey, (LPCWSTR) lpSubKey);
|
|
1917 else
|
|
1918 return RegDeleteKeyA (hKey, (LPCSTR) lpSubKey);
|
|
1919 }
|
|
1920
|
|
1921 LONG
|
|
1922
|
|
1923 qxeRegDeleteValue (HKEY hKey, const Extbyte * lpValueName)
|
|
1924 {
|
|
1925 if (XEUNICODE_P)
|
|
1926 return RegDeleteValueW (hKey, (LPCWSTR) lpValueName);
|
|
1927 else
|
|
1928 return RegDeleteValueA (hKey, (LPCSTR) lpValueName);
|
|
1929 }
|
|
1930
|
|
1931 LONG
|
|
1932
|
|
1933 qxeRegEnumKey (HKEY hKey, DWORD dwIndex, Extbyte * lpName, DWORD cbName)
|
|
1934 {
|
|
1935 if (XEUNICODE_P)
|
|
1936 return RegEnumKeyW (hKey, dwIndex, (LPWSTR) lpName, cbName);
|
|
1937 else
|
|
1938 return RegEnumKeyA (hKey, dwIndex, (LPSTR) lpName, cbName);
|
|
1939 }
|
|
1940
|
|
1941 LONG
|
|
1942
|
|
1943 qxeRegEnumKeyEx (HKEY hKey, DWORD dwIndex, Extbyte * lpName, LPDWORD lpcbName, LPDWORD lpReserved, Extbyte * lpClass, LPDWORD lpcbClass, PFILETIME lpftLastWriteTime)
|
|
1944 {
|
|
1945 if (XEUNICODE_P)
|
|
1946 return RegEnumKeyExW (hKey, dwIndex, (LPWSTR) lpName, lpcbName, lpReserved, (LPWSTR) lpClass, lpcbClass, lpftLastWriteTime);
|
|
1947 else
|
|
1948 return RegEnumKeyExA (hKey, dwIndex, (LPSTR) lpName, lpcbName, lpReserved, (LPSTR) lpClass, lpcbClass, lpftLastWriteTime);
|
|
1949 }
|
|
1950
|
|
1951 LONG
|
|
1952
|
|
1953 qxeRegEnumValue (HKEY hKey, DWORD dwIndex, Extbyte * lpValueName, LPDWORD lpcbValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData)
|
|
1954 {
|
|
1955 if (XEUNICODE_P)
|
|
1956 return RegEnumValueW (hKey, dwIndex, (LPWSTR) lpValueName, lpcbValueName, lpReserved, lpType, lpData, lpcbData);
|
|
1957 else
|
|
1958 return RegEnumValueA (hKey, dwIndex, (LPSTR) lpValueName, lpcbValueName, lpReserved, lpType, lpData, lpcbData);
|
|
1959 }
|
|
1960
|
|
1961 LONG
|
|
1962
|
|
1963 qxeRegLoadKey (HKEY hKey, const Extbyte * lpSubKey, const Extbyte * lpFile)
|
|
1964 {
|
|
1965 if (XEUNICODE_P)
|
|
1966 return RegLoadKeyW (hKey, (LPCWSTR) lpSubKey, (LPCWSTR) lpFile);
|
|
1967 else
|
|
1968 return RegLoadKeyA (hKey, (LPCSTR) lpSubKey, (LPCSTR) lpFile);
|
|
1969 }
|
|
1970
|
|
1971 LONG
|
|
1972
|
|
1973 qxeRegOpenKey (HKEY hKey, const Extbyte * lpSubKey, PHKEY phkResult)
|
|
1974 {
|
|
1975 if (XEUNICODE_P)
|
|
1976 return RegOpenKeyW (hKey, (LPCWSTR) lpSubKey, phkResult);
|
|
1977 else
|
|
1978 return RegOpenKeyA (hKey, (LPCSTR) lpSubKey, phkResult);
|
|
1979 }
|
|
1980
|
|
1981 LONG
|
|
1982
|
|
1983 qxeRegOpenKeyEx (HKEY hKey, const Extbyte * lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
|
|
1984 {
|
|
1985 if (XEUNICODE_P)
|
|
1986 return RegOpenKeyExW (hKey, (LPCWSTR) lpSubKey, ulOptions, samDesired, phkResult);
|
|
1987 else
|
|
1988 return RegOpenKeyExA (hKey, (LPCSTR) lpSubKey, ulOptions, samDesired, phkResult);
|
|
1989 }
|
|
1990
|
|
1991 LONG
|
|
1992
|
|
1993 qxeRegQueryInfoKey (HKEY hKey, Extbyte * lpClass, LPDWORD lpcbClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcbMaxSubKeyLen, LPDWORD lpcbMaxClassLen, LPDWORD lpcValues, LPDWORD lpcbMaxValueNameLen, LPDWORD lpcbMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime)
|
|
1994 {
|
|
1995 if (XEUNICODE_P)
|
|
1996 return RegQueryInfoKeyW (hKey, (LPWSTR) lpClass, lpcbClass, lpReserved, lpcSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime);
|
|
1997 else
|
|
1998 return RegQueryInfoKeyA (hKey, (LPSTR) lpClass, lpcbClass, lpReserved, lpcSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime);
|
|
1999 }
|
|
2000
|
|
2001 LONG
|
|
2002
|
|
2003 qxeRegQueryValue (HKEY hKey, const Extbyte * lpSubKey, Extbyte * lpValue, PLONG lpcbValue)
|
|
2004 {
|
|
2005 if (XEUNICODE_P)
|
|
2006 return RegQueryValueW (hKey, (LPCWSTR) lpSubKey, (LPWSTR) lpValue, lpcbValue);
|
|
2007 else
|
|
2008 return RegQueryValueA (hKey, (LPCSTR) lpSubKey, (LPSTR) lpValue, lpcbValue);
|
|
2009 }
|
|
2010
|
|
2011 LONG
|
|
2012
|
|
2013 qxeRegQueryMultipleValues (HKEY hKey, PVALENTW val_list, DWORD num_vals, Extbyte * lpValueBuf, LPDWORD ldwTotsize)
|
|
2014 {
|
|
2015 if (XEUNICODE_P)
|
|
2016 return RegQueryMultipleValuesW (hKey, val_list, num_vals, (LPWSTR) lpValueBuf, ldwTotsize);
|
|
2017 else
|
|
2018 return RegQueryMultipleValuesA (hKey, (PVALENTA) val_list, num_vals, (LPSTR) lpValueBuf, ldwTotsize);
|
|
2019 }
|
|
2020
|
|
2021 LONG
|
|
2022
|
|
2023 qxeRegQueryValueEx (HKEY hKey, const Extbyte * lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData)
|
|
2024 {
|
|
2025 if (XEUNICODE_P)
|
|
2026 return RegQueryValueExW (hKey, (LPCWSTR) lpValueName, lpReserved, lpType, lpData, lpcbData);
|
|
2027 else
|
|
2028 return RegQueryValueExA (hKey, (LPCSTR) lpValueName, lpReserved, lpType, lpData, lpcbData);
|
|
2029 }
|
|
2030
|
|
2031 LONG
|
|
2032
|
|
2033 qxeRegReplaceKey (HKEY hKey, const Extbyte * lpSubKey, const Extbyte * lpNewFile, const Extbyte * lpOldFile)
|
|
2034 {
|
|
2035 if (XEUNICODE_P)
|
|
2036 return RegReplaceKeyW (hKey, (LPCWSTR) lpSubKey, (LPCWSTR) lpNewFile, (LPCWSTR) lpOldFile);
|
|
2037 else
|
|
2038 return RegReplaceKeyA (hKey, (LPCSTR) lpSubKey, (LPCSTR) lpNewFile, (LPCSTR) lpOldFile);
|
|
2039 }
|
|
2040
|
|
2041 LONG
|
|
2042
|
|
2043 qxeRegRestoreKey (HKEY hKey, const Extbyte * lpFile, DWORD dwFlags)
|
|
2044 {
|
|
2045 if (XEUNICODE_P)
|
|
2046 return RegRestoreKeyW (hKey, (LPCWSTR) lpFile, dwFlags);
|
|
2047 else
|
|
2048 return RegRestoreKeyA (hKey, (LPCSTR) lpFile, dwFlags);
|
|
2049 }
|
|
2050
|
|
2051 LONG
|
|
2052
|
|
2053 qxeRegSaveKey (HKEY hKey, const Extbyte * lpFile, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
2054 {
|
|
2055 if (XEUNICODE_P)
|
|
2056 return RegSaveKeyW (hKey, (LPCWSTR) lpFile, lpSecurityAttributes);
|
|
2057 else
|
|
2058 return RegSaveKeyA (hKey, (LPCSTR) lpFile, lpSecurityAttributes);
|
|
2059 }
|
|
2060
|
|
2061 LONG
|
|
2062
|
|
2063 qxeRegSetValue (HKEY hKey, const Extbyte * lpSubKey, DWORD dwType, const Extbyte * lpData, DWORD cbData)
|
|
2064 {
|
|
2065 if (XEUNICODE_P)
|
|
2066 return RegSetValueW (hKey, (LPCWSTR) lpSubKey, dwType, (LPCWSTR) lpData, cbData);
|
|
2067 else
|
|
2068 return RegSetValueA (hKey, (LPCSTR) lpSubKey, dwType, (LPCSTR) lpData, cbData);
|
|
2069 }
|
|
2070
|
|
2071 LONG
|
|
2072
|
|
2073 qxeRegSetValueEx (HKEY hKey, const Extbyte * lpValueName, DWORD Reserved, DWORD dwType, CONST BYTE* lpData, DWORD cbData)
|
|
2074 {
|
|
2075 if (XEUNICODE_P)
|
|
2076 return RegSetValueExW (hKey, (LPCWSTR) lpValueName, Reserved, dwType, lpData, cbData);
|
|
2077 else
|
|
2078 return RegSetValueExA (hKey, (LPCSTR) lpValueName, Reserved, dwType, lpData, cbData);
|
|
2079 }
|
|
2080
|
|
2081 LONG
|
|
2082
|
|
2083 qxeRegUnLoadKey (HKEY hKey, const Extbyte * lpSubKey)
|
|
2084 {
|
|
2085 if (XEUNICODE_P)
|
|
2086 return RegUnLoadKeyW (hKey, (LPCWSTR) lpSubKey);
|
|
2087 else
|
|
2088 return RegUnLoadKeyA (hKey, (LPCSTR) lpSubKey);
|
|
2089 }
|
|
2090
|
771
|
2091 BOOL
|
2367
|
2092
|
|
2093 qxeInitiateSystemShutdown (Extbyte * lpMachineName, Extbyte * lpMessage, DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown)
|
|
2094 {
|
|
2095 if (XEUNICODE_P)
|
|
2096 return InitiateSystemShutdownW ((LPWSTR) lpMachineName, (LPWSTR) lpMessage, dwTimeout, bForceAppsClosed, bRebootAfterShutdown);
|
|
2097 else
|
|
2098 return InitiateSystemShutdownA ((LPSTR) lpMachineName, (LPSTR) lpMessage, dwTimeout, bForceAppsClosed, bRebootAfterShutdown);
|
|
2099 }
|
|
2100
|
|
2101 BOOL
|
|
2102
|
|
2103 qxeAbortSystemShutdown (Extbyte * lpMachineName)
|
|
2104 {
|
|
2105 if (XEUNICODE_P)
|
|
2106 return AbortSystemShutdownW ((LPWSTR) lpMachineName);
|
|
2107 else
|
|
2108 return AbortSystemShutdownA ((LPSTR) lpMachineName);
|
|
2109 }
|
|
2110
|
|
2111
|
|
2112 /*----------------------------------------------------------------------*/
|
|
2113 /* Processing file WINNLS.H */
|
|
2114 /*----------------------------------------------------------------------*/
|
|
2115
|
|
2116 /* Error if GetCPInfoEx used: not used, not examined yet */
|
|
2117
|
|
2118 /* Error if CompareString used: not used, not examined yet */
|
|
2119
|
|
2120 /* Error if LCMapString used: not used, not examined yet */
|
|
2121
|
|
2122 int
|
|
2123 qxeGetLocaleInfo (LCID Locale, LCTYPE LCType, Extbyte * lpLCData, int cchData)
|
|
2124 {
|
|
2125 if (XEUNICODE_P)
|
|
2126 return GetLocaleInfoW (Locale, LCType, (LPWSTR) lpLCData, cchData);
|
|
2127 else
|
|
2128 return GetLocaleInfoA (Locale, LCType, (LPSTR) lpLCData, cchData);
|
|
2129 }
|
|
2130
|
|
2131 BOOL
|
|
2132 qxeSetLocaleInfo (LCID Locale, LCTYPE LCType, const Extbyte * lpLCData)
|
|
2133 {
|
|
2134 if (XEUNICODE_P)
|
|
2135 return SetLocaleInfoW (Locale, LCType, (LPCWSTR) lpLCData);
|
|
2136 else
|
|
2137 return SetLocaleInfoA (Locale, LCType, (LPCSTR) lpLCData);
|
|
2138 }
|
|
2139
|
|
2140 /* Error if GetTimeFormat used: not used, not examined yet */
|
|
2141
|
|
2142 /* Error if GetDateFormat used: not used, not examined yet */
|
|
2143
|
|
2144 /* Error if GetNumberFormat used: not used, not examined yet */
|
|
2145
|
|
2146 /* Error if GetCurrencyFormat used: not used, not examined yet */
|
|
2147
|
|
2148 /* Error if EnumCalendarInfo used: not used, not examined yet */
|
|
2149
|
|
2150 /* Error if EnumCalendarInfoEx used: not used, not examined yet */
|
|
2151
|
|
2152 /* Error if EnumTimeFormats used: not used, not examined yet */
|
|
2153
|
|
2154 /* Error if EnumDateFormats used: not used, not examined yet */
|
|
2155
|
|
2156 /* Error if EnumDateFormatsEx used: not used, not examined yet */
|
|
2157
|
|
2158 /* Error if GetStringTypeEx used: not used, not examined yet */
|
|
2159
|
|
2160 /* Error if GetStringType used: no such fun; A and W versions have different nos. of args */
|
|
2161
|
|
2162 /* Error if FoldString used: not used, not examined yet */
|
|
2163
|
|
2164 /* Error if EnumSystemLocales used: not used, not examined yet */
|
|
2165
|
|
2166 /* Error if EnumSystemCodePages used: not used, not examined yet */
|
|
2167
|
|
2168
|
|
2169 /*----------------------------------------------------------------------*/
|
|
2170 /* Processing file IME.H */
|
|
2171 /*----------------------------------------------------------------------*/
|
|
2172
|
|
2173 /* Error if SendIMEMessageEx used: obsolete, no docs available */
|
|
2174
|
|
2175
|
|
2176 /*----------------------------------------------------------------------*/
|
|
2177 /* Processing file WINGDI.H */
|
|
2178 /*----------------------------------------------------------------------*/
|
|
2179
|
|
2180 int
|
|
2181 qxeAddFontResource (const Extbyte * arg1)
|
|
2182 {
|
|
2183 if (XEUNICODE_P)
|
|
2184 return AddFontResourceW ((LPCWSTR) arg1);
|
|
2185 else
|
|
2186 return AddFontResourceA ((LPCSTR) arg1);
|
|
2187 }
|
|
2188
|
|
2189 HMETAFILE
|
|
2190 qxeCopyMetaFile (HMETAFILE arg1, const Extbyte * arg2)
|
|
2191 {
|
|
2192 if (XEUNICODE_P)
|
|
2193 return CopyMetaFileW (arg1, (LPCWSTR) arg2);
|
|
2194 else
|
|
2195 return CopyMetaFileA (arg1, (LPCSTR) arg2);
|
|
2196 }
|
|
2197
|
|
2198 /* Skipping CreateDC because split-sized DEVMODE */
|
|
2199
|
|
2200 /* Skipping CreateFontIndirect because split-sized LOGFONT */
|
|
2201
|
|
2202 HFONT
|
|
2203 qxeCreateFont (int arg1, int arg2, int arg3, int arg4, int arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9, DWORD arg10, DWORD arg11, DWORD arg12, DWORD arg13, const Extbyte * arg14)
|
|
2204 {
|
|
2205 if (XEUNICODE_P)
|
|
2206 return CreateFontW (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, (LPCWSTR) arg14);
|
|
2207 else
|
|
2208 return CreateFontA (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, (LPCSTR) arg14);
|
|
2209 }
|
|
2210
|
|
2211 /* Skipping CreateIC because split-sized DEVMODE */
|
|
2212
|
|
2213 HDC
|
|
2214 qxeCreateMetaFile (const Extbyte * arg1)
|
|
2215 {
|
|
2216 if (XEUNICODE_P)
|
|
2217 return CreateMetaFileW ((LPCWSTR) arg1);
|
|
2218 else
|
|
2219 return CreateMetaFileA ((LPCSTR) arg1);
|
|
2220 }
|
|
2221
|
|
2222 BOOL
|
|
2223 qxeCreateScalableFontResource (DWORD arg1, const Extbyte * arg2, const Extbyte * arg3, const Extbyte * arg4)
|
|
2224 {
|
|
2225 if (XEUNICODE_P)
|
|
2226 return CreateScalableFontResourceW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, (LPCWSTR) arg4);
|
|
2227 else
|
|
2228 return CreateScalableFontResourceA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, (LPCSTR) arg4);
|
|
2229 }
|
|
2230
|
|
2231 /* Skipping DeviceCapabilities because split-sized DEVMODE */
|
|
2232
|
|
2233 /* Skipping EnumFontFamiliesEx because split-complex FONTENUMPROC; NT 4.0+ only */
|
|
2234
|
|
2235 /* Error if EnumFontFamilies used: split-complex FONTENUMPROC */
|
|
2236
|
|
2237 /* Error if EnumFonts used: split-complex FONTENUMPROC */
|
|
2238
|
|
2239 BOOL
|
|
2240 qxeGetCharWidth (HDC arg1, UINT arg2, UINT arg3, LPINT arg4)
|
|
2241 {
|
|
2242 if (XEUNICODE_P)
|
|
2243 return GetCharWidthW (arg1, arg2, arg3, arg4);
|
|
2244 else
|
|
2245 return GetCharWidthA (arg1, arg2, arg3, arg4);
|
771
|
2246 }
|
|
2247
|
|
2248 BOOL
|
2367
|
2249 qxeGetCharWidth32 (HDC arg1, UINT arg2, UINT arg3, LPINT arg4)
|
|
2250 {
|
|
2251 if (XEUNICODE_P)
|
|
2252 return GetCharWidth32W (arg1, arg2, arg3, arg4);
|
|
2253 else
|
|
2254 return GetCharWidth32A (arg1, arg2, arg3, arg4);
|
|
2255 }
|
|
2256
|
|
2257 BOOL
|
|
2258 qxeGetCharWidthFloat (HDC arg1, UINT arg2, UINT arg3, PFLOAT arg4)
|
|
2259 {
|
|
2260 if (XEUNICODE_P)
|
|
2261 return GetCharWidthFloatW (arg1, arg2, arg3, arg4);
|
|
2262 else
|
|
2263 return GetCharWidthFloatA (arg1, arg2, arg3, arg4);
|
|
2264 }
|
|
2265
|
|
2266 BOOL
|
|
2267 qxeGetCharABCWidths (HDC arg1, UINT arg2, UINT arg3, LPABC arg4)
|
|
2268 {
|
|
2269 if (XEUNICODE_P)
|
|
2270 return GetCharABCWidthsW (arg1, arg2, arg3, arg4);
|
|
2271 else
|
|
2272 return GetCharABCWidthsA (arg1, arg2, arg3, arg4);
|
|
2273 }
|
|
2274
|
|
2275 BOOL
|
|
2276 qxeGetCharABCWidthsFloat (HDC arg1, UINT arg2, UINT arg3, LPABCFLOAT arg4)
|
|
2277 {
|
|
2278 if (XEUNICODE_P)
|
|
2279 return GetCharABCWidthsFloatW (arg1, arg2, arg3, arg4);
|
|
2280 else
|
|
2281 return GetCharABCWidthsFloatA (arg1, arg2, arg3, arg4);
|
|
2282 }
|
|
2283
|
|
2284 DWORD
|
|
2285 qxeGetGlyphOutline (HDC arg1, UINT arg2, UINT arg3, LPGLYPHMETRICS arg4, DWORD arg5, LPVOID arg6, CONST MAT2 * arg7)
|
|
2286 {
|
|
2287 if (XEUNICODE_P)
|
|
2288 return GetGlyphOutlineW (arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
2289 else
|
|
2290 return GetGlyphOutlineA (arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
2291 }
|
|
2292
|
|
2293 HMETAFILE
|
|
2294 qxeGetMetaFile (const Extbyte * arg1)
|
|
2295 {
|
|
2296 if (XEUNICODE_P)
|
|
2297 return GetMetaFileW ((LPCWSTR) arg1);
|
|
2298 else
|
|
2299 return GetMetaFileA ((LPCSTR) arg1);
|
|
2300 }
|
|
2301
|
|
2302 /* Error if GetOutlineTextMetrics used: split-sized LPOUTLINETEXTMETRIC */
|
|
2303
|
|
2304 BOOL
|
|
2305 qxeGetTextExtentPoint (HDC arg1, const Extbyte * arg2, int arg3, LPSIZE arg4)
|
|
2306 {
|
|
2307 if (XEUNICODE_P)
|
|
2308 return GetTextExtentPointW (arg1, (LPCWSTR) arg2, arg3, arg4);
|
|
2309 else
|
|
2310 return GetTextExtentPointA (arg1, (LPCSTR) arg2, arg3, arg4);
|
|
2311 }
|
|
2312
|
|
2313 BOOL
|
|
2314 qxeGetTextExtentPoint32 (HDC arg1, const Extbyte * arg2, int arg3, LPSIZE arg4)
|
|
2315 {
|
|
2316 if (XEUNICODE_P)
|
|
2317 return GetTextExtentPoint32W (arg1, (LPCWSTR) arg2, arg3, arg4);
|
|
2318 else
|
|
2319 return GetTextExtentPoint32A (arg1, (LPCSTR) arg2, arg3, arg4);
|
|
2320 }
|
|
2321
|
|
2322 BOOL
|
|
2323 qxeGetTextExtentExPoint (HDC arg1, const Extbyte * arg2, int arg3, int arg4, LPINT arg5, LPINT arg6, LPSIZE arg7)
|
|
2324 {
|
|
2325 if (XEUNICODE_P)
|
|
2326 return GetTextExtentExPointW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6, arg7);
|
|
2327 else
|
|
2328 return GetTextExtentExPointA (arg1, (LPCSTR) arg2, arg3, arg4, arg5, arg6, arg7);
|
|
2329 }
|
|
2330
|
|
2331 /* NOTE: NT 4.0+ only */
|
|
2332 DWORD
|
|
2333 qxeGetCharacterPlacement (HDC arg1, const Extbyte * arg2, int arg3, int arg4, LPGCP_RESULTSW arg5, DWORD arg6)
|
|
2334 {
|
|
2335 if (XEUNICODE_P)
|
|
2336 return GetCharacterPlacementW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6);
|
|
2337 else
|
|
2338 return GetCharacterPlacementA (arg1, (LPCSTR) arg2, arg3, arg4, (LPGCP_RESULTSA) arg5, arg6);
|
|
2339 }
|
|
2340
|
|
2341 /* Error if GetGlyphIndices used: NT 5.0+ only */
|
|
2342
|
|
2343 /* Error if AddFontResourceEx used: NT 5.0+ only */
|
|
2344
|
|
2345 /* Error if RemoveFontResourceEx used: NT 5.0+ only */
|
|
2346
|
|
2347 /* Error if CreateFontIndirectEx used: split-sized ENUMLOGFONTEXDV; NT 5.0+ only */
|
|
2348
|
|
2349 /* Skipping ResetDC because split-sized DEVMODE */
|
|
2350
|
|
2351 BOOL
|
|
2352 qxeRemoveFontResource (const Extbyte * arg1)
|
|
2353 {
|
|
2354 if (XEUNICODE_P)
|
|
2355 return RemoveFontResourceW ((LPCWSTR) arg1);
|
|
2356 else
|
|
2357 return RemoveFontResourceA ((LPCSTR) arg1);
|
|
2358 }
|
|
2359
|
|
2360 HENHMETAFILE
|
|
2361 qxeCopyEnhMetaFile (HENHMETAFILE arg1, const Extbyte * arg2)
|
|
2362 {
|
|
2363 if (XEUNICODE_P)
|
|
2364 return CopyEnhMetaFileW (arg1, (LPCWSTR) arg2);
|
|
2365 else
|
|
2366 return CopyEnhMetaFileA (arg1, (LPCSTR) arg2);
|
|
2367 }
|
|
2368
|
|
2369 HDC
|
|
2370 qxeCreateEnhMetaFile (HDC arg1, const Extbyte * arg2, CONST RECT * arg3, const Extbyte * arg4)
|
|
2371 {
|
|
2372 if (XEUNICODE_P)
|
|
2373 return CreateEnhMetaFileW (arg1, (LPCWSTR) arg2, arg3, (LPCWSTR) arg4);
|
|
2374 else
|
|
2375 return CreateEnhMetaFileA (arg1, (LPCSTR) arg2, arg3, (LPCSTR) arg4);
|
|
2376 }
|
|
2377
|
|
2378 HENHMETAFILE
|
|
2379 qxeGetEnhMetaFile (const Extbyte * arg1)
|
|
2380 {
|
|
2381 if (XEUNICODE_P)
|
|
2382 return GetEnhMetaFileW ((LPCWSTR) arg1);
|
|
2383 else
|
|
2384 return GetEnhMetaFileA ((LPCSTR) arg1);
|
|
2385 }
|
|
2386
|
|
2387 UINT
|
|
2388 qxeGetEnhMetaFileDescription (HENHMETAFILE arg1, UINT arg2, Extbyte * arg3)
|
|
2389 {
|
|
2390 if (XEUNICODE_P)
|
|
2391 return GetEnhMetaFileDescriptionW (arg1, arg2, (LPWSTR) arg3);
|
|
2392 else
|
|
2393 return GetEnhMetaFileDescriptionA (arg1, arg2, (LPSTR) arg3);
|
|
2394 }
|
|
2395
|
|
2396 /* Skipping GetTextMetrics because split-sized LPTEXTMETRIC */
|
|
2397
|
|
2398 int
|
|
2399 qxeStartDoc (HDC arg1, CONST DOCINFOW * arg2)
|
|
2400 {
|
|
2401 if (XEUNICODE_P)
|
|
2402 return StartDocW (arg1, arg2);
|
|
2403 else
|
|
2404 return StartDocA (arg1, (CONST DOCINFOA *) arg2);
|
|
2405 }
|
|
2406
|
|
2407 /* Skipping GetObject because split-sized LOGFONT */
|
|
2408
|
|
2409 BOOL
|
|
2410 qxeTextOut (HDC arg1, int arg2, int arg3, const Extbyte * arg4, int arg5)
|
|
2411 {
|
|
2412 if (XEUNICODE_P)
|
|
2413 return TextOutW (arg1, arg2, arg3, (LPCWSTR) arg4, arg5);
|
|
2414 else
|
|
2415 return TextOutA (arg1, arg2, arg3, (LPCSTR) arg4, arg5);
|
|
2416 }
|
|
2417
|
|
2418 BOOL
|
|
2419 qxeExtTextOut (HDC arg1, int arg2, int arg3, UINT arg4, CONST RECT * arg5, const Extbyte * arg6, UINT arg7, CONST INT * arg8)
|
|
2420 {
|
|
2421 if (XEUNICODE_P)
|
|
2422 return ExtTextOutW (arg1, arg2, arg3, arg4, arg5, (LPCWSTR) arg6, arg7, arg8);
|
|
2423 else
|
|
2424 return ExtTextOutA (arg1, arg2, arg3, arg4, arg5, (LPCSTR) arg6, arg7, arg8);
|
|
2425 }
|
|
2426
|
|
2427 BOOL
|
|
2428 qxePolyTextOut (HDC arg1, CONST POLYTEXTW * arg2, int arg3)
|
|
2429 {
|
|
2430 if (XEUNICODE_P)
|
|
2431 return PolyTextOutW (arg1, arg2, arg3);
|
|
2432 else
|
|
2433 return PolyTextOutA (arg1, (CONST POLYTEXTA *) arg2, arg3);
|
|
2434 }
|
|
2435
|
|
2436 int
|
|
2437 qxeGetTextFace (HDC arg1, int arg2, Extbyte * arg3)
|
|
2438 {
|
|
2439 if (XEUNICODE_P)
|
|
2440 return GetTextFaceW (arg1, arg2, (LPWSTR) arg3);
|
|
2441 else
|
|
2442 return GetTextFaceA (arg1, arg2, (LPSTR) arg3);
|
|
2443 }
|
|
2444
|
|
2445 DWORD
|
|
2446 qxeGetKerningPairs (HDC arg1, DWORD arg2, LPKERNINGPAIR arg3)
|
|
2447 {
|
|
2448 if (XEUNICODE_P)
|
|
2449 return GetKerningPairsW (arg1, arg2, arg3);
|
|
2450 else
|
|
2451 return GetKerningPairsA (arg1, arg2, arg3);
|
|
2452 }
|
|
2453
|
|
2454 /* Error if GetLogColorSpace used: split-sized LPLOGCOLORSPACE; NT 4.0+ only */
|
|
2455
|
|
2456 /* Error if CreateColorSpace used: split-sized LPLOGCOLORSPACE; NT 4.0+ only */
|
|
2457
|
|
2458 /* Skipping GetICMProfile because NT 4.0+ only, error in Cygwin prototype */
|
|
2459
|
|
2460 /* NOTE: NT 4.0+ only */
|
|
2461 BOOL
|
|
2462 qxeSetICMProfile (HDC arg1, Extbyte * arg2)
|
|
2463 {
|
|
2464 if (XEUNICODE_P)
|
|
2465 return SetICMProfileW (arg1, (LPWSTR) arg2);
|
|
2466 else
|
|
2467 return SetICMProfileA (arg1, (LPSTR) arg2);
|
|
2468 }
|
|
2469
|
|
2470 /* NOTE: NT 4.0+ only */
|
|
2471 int
|
|
2472 qxeEnumICMProfiles (HDC arg1, ICMENUMPROCW arg2, LPARAM arg3)
|
|
2473 {
|
|
2474 if (XEUNICODE_P)
|
|
2475 return EnumICMProfilesW (arg1, arg2, arg3);
|
|
2476 else
|
|
2477 return EnumICMProfilesA (arg1, (ICMENUMPROCA) arg2, arg3);
|
|
2478 }
|
|
2479
|
|
2480 /* Skipping UpdateICMRegKey because NT 4.0+ only, error in Cygwin prototype */
|
|
2481
|
|
2482 /* Error if wglUseFontBitmaps used: causes link error */
|
|
2483
|
|
2484 /* Error if wglUseFontOutlines used: causes link error */
|
|
2485
|
|
2486
|
|
2487 /*----------------------------------------------------------------------*/
|
|
2488 /* Processing file SHLOBJ.H */
|
|
2489 /*----------------------------------------------------------------------*/
|
771
|
2490
|
|
2491 BOOL
|
2367
|
2492 qxeSHGetPathFromIDList (LPCITEMIDLIST pidl, Extbyte * pszPath)
|
|
2493 {
|
|
2494 if (XEUNICODE_P)
|
|
2495 return SHGetPathFromIDListW (pidl, (LPWSTR) pszPath);
|
|
2496 else
|
|
2497 return SHGetPathFromIDListA (pidl, (LPSTR) pszPath);
|
|
2498 }
|
|
2499
|
|
2500 /* Skipping SHGetSpecialFolderPath because error in Cygwin prototype, missing from Cygwin libraries */
|
|
2501
|
|
2502 /* Skipping SHBrowseForFolder because need to intercept callback for SendMessage */
|
|
2503
|
|
2504 /* Skipping SHGetDataFromIDList because split-sized WIN32_FIND_DATA or split-simple NETRESOURCE, missing from Cygwin libraries */
|
|
2505
|
|
2506
|
|
2507 /*----------------------------------------------------------------------*/
|
|
2508 /* Processing file COMMDLG.H */
|
|
2509 /*----------------------------------------------------------------------*/
|
|
2510
|
|
2511 BOOL
|
|
2512 qxeGetOpenFileName (LPOPENFILENAMEW arg1)
|
|
2513 {
|
|
2514 if (XEUNICODE_P)
|
|
2515 return GetOpenFileNameW (arg1);
|
|
2516 else
|
|
2517 return GetOpenFileNameA ((LPOPENFILENAMEA) arg1);
|
|
2518 }
|
|
2519
|
|
2520 BOOL
|
|
2521 qxeGetSaveFileName (LPOPENFILENAMEW arg1)
|
|
2522 {
|
|
2523 if (XEUNICODE_P)
|
|
2524 return GetSaveFileNameW (arg1);
|
|
2525 else
|
|
2526 return GetSaveFileNameA ((LPOPENFILENAMEA) arg1);
|
|
2527 }
|
|
2528
|
|
2529 short
|
|
2530 qxeGetFileTitle (const Extbyte * arg1, Extbyte * arg2, WORD arg3)
|
|
2531 {
|
|
2532 if (XEUNICODE_P)
|
|
2533 return GetFileTitleW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3);
|
|
2534 else
|
|
2535 return GetFileTitleA ((LPCSTR) arg1, (LPSTR) arg2, arg3);
|
|
2536 }
|
|
2537
|
|
2538 BOOL
|
|
2539 qxeChooseColor (LPCHOOSECOLORW arg1)
|
|
2540 {
|
|
2541 if (XEUNICODE_P)
|
|
2542 return ChooseColorW (arg1);
|
|
2543 else
|
|
2544 return ChooseColorA ((LPCHOOSECOLORA) arg1);
|
|
2545 }
|
|
2546
|
|
2547 HWND
|
|
2548 qxeFindText (LPFINDREPLACEW arg1)
|
|
2549 {
|
|
2550 if (XEUNICODE_P)
|
|
2551 return FindTextW (arg1);
|
|
2552 else
|
|
2553 return FindTextA ((LPFINDREPLACEA) arg1);
|
|
2554 }
|
|
2555
|
|
2556 HWND
|
|
2557 qxeReplaceText (LPFINDREPLACEW arg1)
|
|
2558 {
|
|
2559 if (XEUNICODE_P)
|
|
2560 return ReplaceTextW (arg1);
|
|
2561 else
|
|
2562 return ReplaceTextA ((LPFINDREPLACEA) arg1);
|
|
2563 }
|
|
2564
|
|
2565 /* Error if AfxReplaceText used: mac only */
|
|
2566
|
|
2567 /* Error if ChooseFont used: split-sized LPLOGFONT in LPCHOOSEFONT */
|
|
2568
|
|
2569 /* Skipping PrintDlg because LPPRINTDLG with split-sized DEVMODE handle */
|
|
2570
|
|
2571 /* Skipping PageSetupDlg because LPPAGESETUPDLG with split-sized DEVMODE handle */
|
|
2572
|
|
2573
|
|
2574 /*----------------------------------------------------------------------*/
|
|
2575 /* Processing file IMM.H */
|
|
2576 /*----------------------------------------------------------------------*/
|
|
2577
|
|
2578 #if defined (HAVE_MS_WINDOWS)
|
|
2579
|
|
2580 HKL
|
|
2581 qxeImmInstallIME (const Extbyte * lpszIMEFileName, const Extbyte * lpszLayoutText)
|
|
2582 {
|
|
2583 if (XEUNICODE_P)
|
|
2584 return ImmInstallIMEW ((LPCWSTR) lpszIMEFileName, (LPCWSTR) lpszLayoutText);
|
|
2585 else
|
|
2586 return ImmInstallIMEA ((LPCSTR) lpszIMEFileName, (LPCSTR) lpszLayoutText);
|
|
2587 }
|
|
2588
|
|
2589 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2590
|
|
2591 #if defined (HAVE_MS_WINDOWS)
|
|
2592
|
|
2593 UINT
|
|
2594 qxeImmGetDescription (HKL arg1, Extbyte * arg2, UINT uBufLen)
|
|
2595 {
|
|
2596 if (XEUNICODE_P)
|
|
2597 return ImmGetDescriptionW (arg1, (LPWSTR) arg2, uBufLen);
|
|
2598 else
|
|
2599 return ImmGetDescriptionA (arg1, (LPSTR) arg2, uBufLen);
|
|
2600 }
|
|
2601
|
|
2602 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2603
|
|
2604 #if defined (HAVE_MS_WINDOWS)
|
|
2605
|
|
2606 UINT
|
|
2607 qxeImmGetIMEFileName (HKL arg1, Extbyte * arg2, UINT uBufLen)
|
|
2608 {
|
|
2609 if (XEUNICODE_P)
|
|
2610 return ImmGetIMEFileNameW (arg1, (LPWSTR) arg2, uBufLen);
|
|
2611 else
|
|
2612 return ImmGetIMEFileNameA (arg1, (LPSTR) arg2, uBufLen);
|
|
2613 }
|
|
2614
|
|
2615 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2616
|
|
2617 #if defined (HAVE_MS_WINDOWS)
|
|
2618
|
|
2619 LONG
|
|
2620 qxeImmGetCompositionString (HIMC arg1, DWORD arg2, LPVOID arg3, DWORD arg4)
|
|
2621 {
|
|
2622 if (XEUNICODE_P)
|
|
2623 return ImmGetCompositionStringW (arg1, arg2, arg3, arg4);
|
|
2624 else
|
|
2625 return ImmGetCompositionStringA (arg1, arg2, arg3, arg4);
|
|
2626 }
|
|
2627
|
|
2628 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2629
|
|
2630 #if defined (HAVE_MS_WINDOWS)
|
|
2631
|
|
2632 DWORD
|
|
2633 qxeImmGetCandidateListCount (HIMC arg1, LPDWORD lpdwListCount)
|
|
2634 {
|
|
2635 if (XEUNICODE_P)
|
|
2636 return ImmGetCandidateListCountW (arg1, lpdwListCount);
|
|
2637 else
|
|
2638 return ImmGetCandidateListCountA (arg1, lpdwListCount);
|
|
2639 }
|
|
2640
|
|
2641 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2642
|
|
2643 #if defined (HAVE_MS_WINDOWS)
|
|
2644
|
|
2645 DWORD
|
|
2646 qxeImmGetCandidateList (HIMC arg1, DWORD deIndex, LPCANDIDATELIST arg3, DWORD dwBufLen)
|
|
2647 {
|
|
2648 if (XEUNICODE_P)
|
|
2649 return ImmGetCandidateListW (arg1, deIndex, arg3, dwBufLen);
|
|
2650 else
|
|
2651 return ImmGetCandidateListA (arg1, deIndex, arg3, dwBufLen);
|
|
2652 }
|
|
2653
|
|
2654 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2655
|
|
2656 #if defined (HAVE_MS_WINDOWS)
|
|
2657
|
|
2658 DWORD
|
|
2659 qxeImmGetGuideLine (HIMC arg1, DWORD dwIndex, Extbyte * arg3, DWORD dwBufLen)
|
|
2660 {
|
|
2661 if (XEUNICODE_P)
|
|
2662 return ImmGetGuideLineW (arg1, dwIndex, (LPWSTR) arg3, dwBufLen);
|
|
2663 else
|
|
2664 return ImmGetGuideLineA (arg1, dwIndex, (LPSTR) arg3, dwBufLen);
|
|
2665 }
|
|
2666
|
|
2667 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2668
|
|
2669 #if defined (HAVE_MS_WINDOWS)
|
|
2670
|
|
2671 /* Skipping ImmGetCompositionFont because split-sized LOGFONT */
|
|
2672
|
|
2673 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2674
|
|
2675 #if defined (HAVE_MS_WINDOWS)
|
|
2676
|
|
2677 /* Skipping ImmSetCompositionFont because split-sized LOGFONT */
|
|
2678
|
|
2679 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2680
|
|
2681 #if defined (HAVE_MS_WINDOWS)
|
|
2682
|
|
2683 /* NOTE: // split-simple REGISTERWORD */
|
|
2684 BOOL
|
|
2685 qxeImmConfigureIME (HKL arg1, HWND arg2, DWORD arg3, LPVOID arg4)
|
|
2686 {
|
|
2687 if (XEUNICODE_P)
|
|
2688 return ImmConfigureIMEW (arg1, arg2, arg3, arg4);
|
|
2689 else
|
|
2690 return ImmConfigureIMEA (arg1, arg2, arg3, arg4);
|
|
2691 }
|
|
2692
|
|
2693 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2694
|
|
2695 #if defined (HAVE_MS_WINDOWS)
|
|
2696
|
|
2697 /* NOTE: // strings of various sorts */
|
|
2698 LRESULT
|
|
2699 qxeImmEscape (HKL arg1, HIMC arg2, UINT arg3, LPVOID arg4)
|
|
2700 {
|
|
2701 if (XEUNICODE_P)
|
|
2702 return ImmEscapeW (arg1, arg2, arg3, arg4);
|
|
2703 else
|
|
2704 return ImmEscapeA (arg1, arg2, arg3, arg4);
|
|
2705 }
|
|
2706
|
|
2707 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2708
|
|
2709 #if defined (HAVE_MS_WINDOWS)
|
|
2710
|
|
2711 DWORD
|
|
2712 qxeImmGetConversionList (HKL arg1, HIMC arg2, const Extbyte * arg3, LPCANDIDATELIST arg4, DWORD dwBufLen, UINT uFlag)
|
|
2713 {
|
|
2714 if (XEUNICODE_P)
|
|
2715 return ImmGetConversionListW (arg1, arg2, (LPCWSTR) arg3, arg4, dwBufLen, uFlag);
|
|
2716 else
|
|
2717 return ImmGetConversionListA (arg1, arg2, (LPCSTR) arg3, arg4, dwBufLen, uFlag);
|
|
2718 }
|
|
2719
|
|
2720 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2721
|
|
2722 #if defined (HAVE_MS_WINDOWS)
|
|
2723
|
|
2724 BOOL
|
|
2725 qxeImmIsUIMessage (HWND arg1, UINT arg2, WPARAM arg3, LPARAM arg4)
|
|
2726 {
|
|
2727 if (XEUNICODE_P)
|
|
2728 return ImmIsUIMessageW (arg1, arg2, arg3, arg4);
|
|
2729 else
|
|
2730 return ImmIsUIMessageA (arg1, arg2, arg3, arg4);
|
|
2731 }
|
|
2732
|
|
2733 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2734
|
|
2735 #if defined (HAVE_MS_WINDOWS)
|
|
2736
|
|
2737 BOOL
|
|
2738 qxeImmRegisterWord (HKL arg1, const Extbyte * lpszReading, DWORD arg3, const Extbyte * lpszRegister)
|
|
2739 {
|
|
2740 if (XEUNICODE_P)
|
|
2741 return ImmRegisterWordW (arg1, (LPCWSTR) lpszReading, arg3, (LPCWSTR) lpszRegister);
|
|
2742 else
|
|
2743 return ImmRegisterWordA (arg1, (LPCSTR) lpszReading, arg3, (LPCSTR) lpszRegister);
|
|
2744 }
|
|
2745
|
|
2746 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2747
|
|
2748 #if defined (HAVE_MS_WINDOWS)
|
|
2749
|
|
2750 BOOL
|
|
2751 qxeImmUnregisterWord (HKL arg1, const Extbyte * lpszReading, DWORD arg3, const Extbyte * lpszUnregister)
|
|
2752 {
|
|
2753 if (XEUNICODE_P)
|
|
2754 return ImmUnregisterWordW (arg1, (LPCWSTR) lpszReading, arg3, (LPCWSTR) lpszUnregister);
|
|
2755 else
|
|
2756 return ImmUnregisterWordA (arg1, (LPCSTR) lpszReading, arg3, (LPCSTR) lpszUnregister);
|
|
2757 }
|
|
2758
|
|
2759 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2760
|
|
2761 #if defined (HAVE_MS_WINDOWS)
|
|
2762
|
|
2763 /* Error if ImmGetRegisterWordStyle used: split-sized STYLEBUF */
|
|
2764
|
|
2765 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2766
|
|
2767 #if defined (HAVE_MS_WINDOWS)
|
|
2768
|
|
2769 UINT
|
|
2770 qxeImmEnumRegisterWord (HKL arg1, REGISTERWORDENUMPROCW arg2, const Extbyte * lpszReading, DWORD arg4, const Extbyte * lpszRegister, LPVOID arg6)
|
|
2771 {
|
|
2772 if (XEUNICODE_P)
|
|
2773 return ImmEnumRegisterWordW (arg1, arg2, (LPCWSTR) lpszReading, arg4, (LPCWSTR) lpszRegister, arg6);
|
|
2774 else
|
|
2775 return ImmEnumRegisterWordA (arg1, (REGISTERWORDENUMPROCA) arg2, (LPCSTR) lpszReading, arg4, (LPCSTR) lpszRegister, arg6);
|
|
2776 }
|
|
2777
|
|
2778 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2779
|
|
2780 #if defined (HAVE_MS_WINDOWS)
|
|
2781
|
|
2782 /* Error if ImmGetImeMenuItems used: split-sized IMEMENUITEMINFO */
|
|
2783
|
|
2784 #endif /* defined (HAVE_MS_WINDOWS) */
|
771
|
2785
|
|
2786
|
|
2787 /*----------------------------------------------------------------------*/
|
|
2788 /* Processing file WINBASE.H */
|
|
2789 /*----------------------------------------------------------------------*/
|
|
2790
|
|
2791 BOOL
|
|
2792 qxeGetBinaryType (const Extbyte * lpApplicationName, LPDWORD lpBinaryType)
|
|
2793 {
|
|
2794 if (XEUNICODE_P)
|
|
2795 return GetBinaryTypeW ((LPCWSTR) lpApplicationName, lpBinaryType);
|
|
2796 else
|
|
2797 return GetBinaryTypeA ((LPCSTR) lpApplicationName, lpBinaryType);
|
|
2798 }
|
|
2799
|
|
2800 DWORD
|
|
2801 qxeGetShortPathName (const Extbyte * lpszLongPath, Extbyte * lpszShortPath, DWORD cchBuffer)
|
|
2802 {
|
|
2803 if (XEUNICODE_P)
|
|
2804 return GetShortPathNameW ((LPCWSTR) lpszLongPath, (LPWSTR) lpszShortPath, cchBuffer);
|
|
2805 else
|
|
2806 return GetShortPathNameA ((LPCSTR) lpszLongPath, (LPSTR) lpszShortPath, cchBuffer);
|
|
2807 }
|
|
2808
|
1684
|
2809 /* Error if GetLongPathName used: Win98/2K+ only */
|
771
|
2810
|
827
|
2811 /* Skipping GetEnvironmentStrings because misnamed ANSI version of the function */
|
|
2812
|
771
|
2813 BOOL
|
|
2814 qxeFreeEnvironmentStrings (Extbyte * arg1)
|
|
2815 {
|
|
2816 if (XEUNICODE_P)
|
|
2817 return FreeEnvironmentStringsW ((LPWSTR) arg1);
|
|
2818 else
|
|
2819 return FreeEnvironmentStringsA ((LPSTR) arg1);
|
|
2820 }
|
|
2821
|
|
2822 DWORD
|
|
2823 qxeFormatMessage (DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, Extbyte * lpBuffer, DWORD nSize, va_list * Arguments)
|
|
2824 {
|
|
2825 if (XEUNICODE_P)
|
|
2826 return FormatMessageW (dwFlags, lpSource, dwMessageId, dwLanguageId, (LPWSTR) lpBuffer, nSize, Arguments);
|
|
2827 else
|
|
2828 return FormatMessageA (dwFlags, lpSource, dwMessageId, dwLanguageId, (LPSTR) lpBuffer, nSize, Arguments);
|
|
2829 }
|
|
2830
|
|
2831 HANDLE
|
|
2832 qxeCreateMailslot (const Extbyte * lpName, DWORD nMaxMessageSize, DWORD lReadTimeout, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
2833 {
|
|
2834 if (XEUNICODE_P)
|
|
2835 return CreateMailslotW ((LPCWSTR) lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes);
|
|
2836 else
|
|
2837 return CreateMailslotA ((LPCSTR) lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes);
|
|
2838 }
|
|
2839
|
|
2840 #if !defined (CYGWIN_HEADERS)
|
|
2841
|
778
|
2842 /* Error if EncryptFile used: Win2K+ only */
|
771
|
2843
|
|
2844 #endif /* !defined (CYGWIN_HEADERS) */
|
|
2845
|
|
2846 #if !defined (CYGWIN_HEADERS)
|
|
2847
|
778
|
2848 /* Error if DecryptFile used: Win2K+ only */
|
771
|
2849
|
|
2850 #endif /* !defined (CYGWIN_HEADERS) */
|
|
2851
|
|
2852 /* Error if OpenRaw used: error "The procedure entry point OpenRawW could not be located in the dynamic link library ADVAPI32.dll." */
|
|
2853
|
|
2854 /* Error if QueryRecoveryAgents used: split-sized LPRECOVERY_AGENT_INFORMATION */
|
|
2855
|
|
2856 int
|
|
2857 qxelstrcmp (const Extbyte * lpString1, const Extbyte * lpString2)
|
|
2858 {
|
|
2859 if (XEUNICODE_P)
|
|
2860 return lstrcmpW ((LPCWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2861 else
|
|
2862 return lstrcmpA ((LPCSTR) lpString1, (LPCSTR) lpString2);
|
|
2863 }
|
|
2864
|
|
2865 int
|
|
2866 qxelstrcmpi (const Extbyte * lpString1, const Extbyte * lpString2)
|
|
2867 {
|
|
2868 if (XEUNICODE_P)
|
|
2869 return lstrcmpiW ((LPCWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2870 else
|
|
2871 return lstrcmpiA ((LPCSTR) lpString1, (LPCSTR) lpString2);
|
|
2872 }
|
|
2873
|
|
2874 Extbyte *
|
|
2875 qxelstrcpyn (Extbyte * lpString1, const Extbyte * lpString2, int iMaxLength)
|
|
2876 {
|
|
2877 if (XEUNICODE_P)
|
|
2878 return (Extbyte *) lstrcpynW ((LPWSTR) lpString1, (LPCWSTR) lpString2, iMaxLength);
|
|
2879 else
|
|
2880 return (Extbyte *) lstrcpynA ((LPSTR) lpString1, (LPCSTR) lpString2, iMaxLength);
|
|
2881 }
|
|
2882
|
|
2883 Extbyte *
|
|
2884 qxelstrcpy (Extbyte * lpString1, const Extbyte * lpString2)
|
|
2885 {
|
|
2886 if (XEUNICODE_P)
|
|
2887 return (Extbyte *) lstrcpyW ((LPWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2888 else
|
|
2889 return (Extbyte *) lstrcpyA ((LPSTR) lpString1, (LPCSTR) lpString2);
|
|
2890 }
|
|
2891
|
|
2892 Extbyte *
|
|
2893 qxelstrcat (Extbyte * lpString1, const Extbyte * lpString2)
|
|
2894 {
|
|
2895 if (XEUNICODE_P)
|
|
2896 return (Extbyte *) lstrcatW ((LPWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2897 else
|
|
2898 return (Extbyte *) lstrcatA ((LPSTR) lpString1, (LPCSTR) lpString2);
|
|
2899 }
|
|
2900
|
|
2901 int
|
|
2902 qxelstrlen (const Extbyte * lpString)
|
|
2903 {
|
|
2904 if (XEUNICODE_P)
|
|
2905 return lstrlenW ((LPCWSTR) lpString);
|
|
2906 else
|
|
2907 return lstrlenA ((LPCSTR) lpString);
|
|
2908 }
|
|
2909
|
|
2910 HANDLE
|
|
2911 qxeCreateMutex (LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner, const Extbyte * lpName)
|
|
2912 {
|
|
2913 if (XEUNICODE_P)
|
|
2914 return CreateMutexW (lpMutexAttributes, bInitialOwner, (LPCWSTR) lpName);
|
|
2915 else
|
|
2916 return CreateMutexA (lpMutexAttributes, bInitialOwner, (LPCSTR) lpName);
|
|
2917 }
|
|
2918
|
|
2919 HANDLE
|
|
2920 qxeOpenMutex (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2921 {
|
|
2922 if (XEUNICODE_P)
|
|
2923 return OpenMutexW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2924 else
|
|
2925 return OpenMutexA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2926 }
|
|
2927
|
|
2928 HANDLE
|
|
2929 qxeCreateEvent (LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, const Extbyte * lpName)
|
|
2930 {
|
|
2931 if (XEUNICODE_P)
|
|
2932 return CreateEventW (lpEventAttributes, bManualReset, bInitialState, (LPCWSTR) lpName);
|
|
2933 else
|
|
2934 return CreateEventA (lpEventAttributes, bManualReset, bInitialState, (LPCSTR) lpName);
|
|
2935 }
|
|
2936
|
|
2937 HANDLE
|
|
2938 qxeOpenEvent (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2939 {
|
|
2940 if (XEUNICODE_P)
|
|
2941 return OpenEventW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2942 else
|
|
2943 return OpenEventA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2944 }
|
|
2945
|
|
2946 HANDLE
|
|
2947 qxeCreateSemaphore (LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, const Extbyte * lpName)
|
|
2948 {
|
|
2949 if (XEUNICODE_P)
|
|
2950 return CreateSemaphoreW (lpSemaphoreAttributes, lInitialCount, lMaximumCount, (LPCWSTR) lpName);
|
|
2951 else
|
|
2952 return CreateSemaphoreA (lpSemaphoreAttributes, lInitialCount, lMaximumCount, (LPCSTR) lpName);
|
|
2953 }
|
|
2954
|
|
2955 HANDLE
|
|
2956 qxeOpenSemaphore (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2957 {
|
|
2958 if (XEUNICODE_P)
|
|
2959 return OpenSemaphoreW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2960 else
|
|
2961 return OpenSemaphoreA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2962 }
|
|
2963
|
|
2964 HANDLE
|
|
2965 qxeCreateWaitableTimer (LPSECURITY_ATTRIBUTES lpTimerAttributes, BOOL bManualReset, const Extbyte * lpTimerName)
|
|
2966 {
|
|
2967 if (XEUNICODE_P)
|
|
2968 return CreateWaitableTimerW (lpTimerAttributes, bManualReset, (LPCWSTR) lpTimerName);
|
|
2969 else
|
|
2970 return CreateWaitableTimerA (lpTimerAttributes, bManualReset, (LPCSTR) lpTimerName);
|
|
2971 }
|
|
2972
|
|
2973 HANDLE
|
|
2974 qxeOpenWaitableTimer (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpTimerName)
|
|
2975 {
|
|
2976 if (XEUNICODE_P)
|
|
2977 return OpenWaitableTimerW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpTimerName);
|
|
2978 else
|
|
2979 return OpenWaitableTimerA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpTimerName);
|
|
2980 }
|
|
2981
|
|
2982 HANDLE
|
|
2983 qxeCreateFileMapping (HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, const Extbyte * lpName)
|
|
2984 {
|
|
2985 if (XEUNICODE_P)
|
|
2986 return CreateFileMappingW (hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, (LPCWSTR) lpName);
|
|
2987 else
|
|
2988 return CreateFileMappingA (hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, (LPCSTR) lpName);
|
|
2989 }
|
|
2990
|
|
2991 HANDLE
|
|
2992 qxeOpenFileMapping (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2993 {
|
|
2994 if (XEUNICODE_P)
|
|
2995 return OpenFileMappingW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2996 else
|
|
2997 return OpenFileMappingA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2998 }
|
|
2999
|
|
3000 DWORD
|
|
3001 qxeGetLogicalDriveStrings (DWORD nBufferLength, Extbyte * lpBuffer)
|
|
3002 {
|
|
3003 if (XEUNICODE_P)
|
|
3004 return GetLogicalDriveStringsW (nBufferLength, (LPWSTR) lpBuffer);
|
|
3005 else
|
|
3006 return GetLogicalDriveStringsA (nBufferLength, (LPSTR) lpBuffer);
|
|
3007 }
|
|
3008
|
|
3009 HMODULE
|
|
3010 qxeLoadLibrary (const Extbyte * lpLibFileName)
|
|
3011 {
|
|
3012 if (XEUNICODE_P)
|
|
3013 return LoadLibraryW ((LPCWSTR) lpLibFileName);
|
|
3014 else
|
|
3015 return LoadLibraryA ((LPCSTR) lpLibFileName);
|
|
3016 }
|
|
3017
|
|
3018 HMODULE
|
|
3019 qxeLoadLibraryEx (const Extbyte * lpLibFileName, HANDLE hFile, DWORD dwFlags)
|
|
3020 {
|
|
3021 if (XEUNICODE_P)
|
|
3022 return LoadLibraryExW ((LPCWSTR) lpLibFileName, hFile, dwFlags);
|
|
3023 else
|
|
3024 return LoadLibraryExA ((LPCSTR) lpLibFileName, hFile, dwFlags);
|
|
3025 }
|
|
3026
|
|
3027 DWORD
|
|
3028 qxeGetModuleFileName (HMODULE hModule, Extbyte * lpFilename, DWORD nSize)
|
|
3029 {
|
|
3030 if (XEUNICODE_P)
|
|
3031 return GetModuleFileNameW (hModule, (LPWSTR) lpFilename, nSize);
|
|
3032 else
|
|
3033 return GetModuleFileNameA (hModule, (LPSTR) lpFilename, nSize);
|
|
3034 }
|
|
3035
|
|
3036 HMODULE
|
|
3037 qxeGetModuleHandle (const Extbyte * lpModuleName)
|
|
3038 {
|
|
3039 if (XEUNICODE_P)
|
|
3040 return GetModuleHandleW ((LPCWSTR) lpModuleName);
|
|
3041 else
|
|
3042 return GetModuleHandleA ((LPCSTR) lpModuleName);
|
|
3043 }
|
|
3044
|
|
3045 BOOL
|
|
3046 qxeCreateProcess (const Extbyte * lpApplicationName, Extbyte * lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, const Extbyte * lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
|
|
3047 {
|
|
3048 if (XEUNICODE_P)
|
|
3049 return CreateProcessW ((LPCWSTR) lpApplicationName, (LPWSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCWSTR) lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
|
|
3050 else
|
|
3051 return CreateProcessA ((LPCSTR) lpApplicationName, (LPSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCSTR) lpCurrentDirectory, (LPSTARTUPINFOA) lpStartupInfo, lpProcessInformation);
|
|
3052 }
|
|
3053
|
|
3054 VOID
|
|
3055 qxeFatalAppExit (UINT uAction, const Extbyte * lpMessageText)
|
|
3056 {
|
|
3057 if (XEUNICODE_P)
|
|
3058 FatalAppExitW (uAction, (LPCWSTR) lpMessageText);
|
|
3059 else
|
|
3060 FatalAppExitA (uAction, (LPCSTR) lpMessageText);
|
|
3061 }
|
|
3062
|
|
3063 VOID
|
|
3064 qxeGetStartupInfo (LPSTARTUPINFOW lpStartupInfo)
|
|
3065 {
|
|
3066 if (XEUNICODE_P)
|
|
3067 GetStartupInfoW (lpStartupInfo);
|
|
3068 else
|
|
3069 GetStartupInfoA ((LPSTARTUPINFOA) lpStartupInfo);
|
|
3070 }
|
|
3071
|
|
3072 Extbyte *
|
|
3073 qxeGetCommandLine (void)
|
|
3074 {
|
|
3075 if (XEUNICODE_P)
|
|
3076 return (Extbyte *) GetCommandLineW ();
|
|
3077 else
|
|
3078 return (Extbyte *) GetCommandLineA ();
|
|
3079 }
|
|
3080
|
|
3081 DWORD
|
|
3082 qxeGetEnvironmentVariable (const Extbyte * lpName, Extbyte * lpBuffer, DWORD nSize)
|
|
3083 {
|
|
3084 if (XEUNICODE_P)
|
|
3085 return GetEnvironmentVariableW ((LPCWSTR) lpName, (LPWSTR) lpBuffer, nSize);
|
|
3086 else
|
|
3087 return GetEnvironmentVariableA ((LPCSTR) lpName, (LPSTR) lpBuffer, nSize);
|
|
3088 }
|
|
3089
|
|
3090 BOOL
|
|
3091 qxeSetEnvironmentVariable (const Extbyte * lpName, const Extbyte * lpValue)
|
|
3092 {
|
|
3093 if (XEUNICODE_P)
|
|
3094 return SetEnvironmentVariableW ((LPCWSTR) lpName, (LPCWSTR) lpValue);
|
|
3095 else
|
|
3096 return SetEnvironmentVariableA ((LPCSTR) lpName, (LPCSTR) lpValue);
|
|
3097 }
|
|
3098
|
|
3099 DWORD
|
|
3100 qxeExpandEnvironmentStrings (const Extbyte * lpSrc, Extbyte * lpDst, DWORD nSize)
|
|
3101 {
|
|
3102 if (XEUNICODE_P)
|
|
3103 return ExpandEnvironmentStringsW ((LPCWSTR) lpSrc, (LPWSTR) lpDst, nSize);
|
|
3104 else
|
|
3105 return ExpandEnvironmentStringsA ((LPCSTR) lpSrc, (LPSTR) lpDst, nSize);
|
|
3106 }
|
|
3107
|
|
3108 VOID
|
|
3109 qxeOutputDebugString (const Extbyte * lpOutputString)
|
|
3110 {
|
|
3111 if (XEUNICODE_P)
|
|
3112 OutputDebugStringW ((LPCWSTR) lpOutputString);
|
|
3113 else
|
|
3114 OutputDebugStringA ((LPCSTR) lpOutputString);
|
|
3115 }
|
|
3116
|
|
3117 HRSRC
|
|
3118 qxeFindResource (HMODULE hModule, const Extbyte * lpName, const Extbyte * lpType)
|
|
3119 {
|
|
3120 if (XEUNICODE_P)
|
|
3121 return FindResourceW (hModule, (LPCWSTR) lpName, (LPCWSTR) lpType);
|
|
3122 else
|
|
3123 return FindResourceA (hModule, (LPCSTR) lpName, (LPCSTR) lpType);
|
|
3124 }
|
|
3125
|
|
3126 HRSRC
|
|
3127 qxeFindResourceEx (HMODULE hModule, const Extbyte * lpType, const Extbyte * lpName, WORD wLanguage)
|
|
3128 {
|
|
3129 if (XEUNICODE_P)
|
|
3130 return FindResourceExW (hModule, (LPCWSTR) lpType, (LPCWSTR) lpName, wLanguage);
|
|
3131 else
|
|
3132 return FindResourceExA (hModule, (LPCSTR) lpType, (LPCSTR) lpName, wLanguage);
|
|
3133 }
|
|
3134
|
|
3135 HANDLE
|
|
3136 qxeBeginUpdateResource (const Extbyte * pFileName, BOOL bDeleteExistingResources)
|
|
3137 {
|
|
3138 if (XEUNICODE_P)
|
|
3139 return BeginUpdateResourceW ((LPCWSTR) pFileName, bDeleteExistingResources);
|
|
3140 else
|
|
3141 return BeginUpdateResourceA ((LPCSTR) pFileName, bDeleteExistingResources);
|
|
3142 }
|
|
3143
|
|
3144 BOOL
|
|
3145 qxeUpdateResource (HANDLE hUpdate, const Extbyte * lpType, const Extbyte * lpName, WORD wLanguage, LPVOID lpData, DWORD cbData)
|
|
3146 {
|
|
3147 if (XEUNICODE_P)
|
|
3148 return UpdateResourceW (hUpdate, (LPCWSTR) lpType, (LPCWSTR) lpName, wLanguage, lpData, cbData);
|
|
3149 else
|
|
3150 return UpdateResourceA (hUpdate, (LPCSTR) lpType, (LPCSTR) lpName, wLanguage, lpData, cbData);
|
|
3151 }
|
|
3152
|
|
3153 BOOL
|
|
3154 qxeEndUpdateResource (HANDLE hUpdate, BOOL fDiscard)
|
|
3155 {
|
|
3156 if (XEUNICODE_P)
|
|
3157 return EndUpdateResourceW (hUpdate, fDiscard);
|
|
3158 else
|
|
3159 return EndUpdateResourceA (hUpdate, fDiscard);
|
|
3160 }
|
|
3161
|
|
3162 ATOM
|
|
3163 qxeGlobalAddAtom (const Extbyte * lpString)
|
|
3164 {
|
|
3165 if (XEUNICODE_P)
|
|
3166 return GlobalAddAtomW ((LPCWSTR) lpString);
|
|
3167 else
|
|
3168 return GlobalAddAtomA ((LPCSTR) lpString);
|
|
3169 }
|
|
3170
|
|
3171 ATOM
|
|
3172 qxeGlobalFindAtom (const Extbyte * lpString)
|
|
3173 {
|
|
3174 if (XEUNICODE_P)
|
|
3175 return GlobalFindAtomW ((LPCWSTR) lpString);
|
|
3176 else
|
|
3177 return GlobalFindAtomA ((LPCSTR) lpString);
|
|
3178 }
|
|
3179
|
|
3180 UINT
|
|
3181 qxeGlobalGetAtomName (ATOM nAtom, Extbyte * lpBuffer, int nSize)
|
|
3182 {
|
|
3183 if (XEUNICODE_P)
|
|
3184 return GlobalGetAtomNameW (nAtom, (LPWSTR) lpBuffer, nSize);
|
|
3185 else
|
|
3186 return GlobalGetAtomNameA (nAtom, (LPSTR) lpBuffer, nSize);
|
|
3187 }
|
|
3188
|
|
3189 ATOM
|
|
3190 qxeAddAtom (const Extbyte * lpString)
|
|
3191 {
|
|
3192 if (XEUNICODE_P)
|
|
3193 return AddAtomW ((LPCWSTR) lpString);
|
|
3194 else
|
|
3195 return AddAtomA ((LPCSTR) lpString);
|
|
3196 }
|
|
3197
|
|
3198 ATOM
|
|
3199 qxeFindAtom (const Extbyte * lpString)
|
|
3200 {
|
|
3201 if (XEUNICODE_P)
|
|
3202 return FindAtomW ((LPCWSTR) lpString);
|
|
3203 else
|
|
3204 return FindAtomA ((LPCSTR) lpString);
|
|
3205 }
|
|
3206
|
|
3207 UINT
|
|
3208 qxeGetAtomName (ATOM nAtom, Extbyte * lpBuffer, int nSize)
|
|
3209 {
|
|
3210 if (XEUNICODE_P)
|
|
3211 return GetAtomNameW (nAtom, (LPWSTR) lpBuffer, nSize);
|
|
3212 else
|
|
3213 return GetAtomNameA (nAtom, (LPSTR) lpBuffer, nSize);
|
|
3214 }
|
|
3215
|
|
3216 UINT
|
|
3217 qxeGetProfileInt (const Extbyte * lpAppName, const Extbyte * lpKeyName, INT nDefault)
|
|
3218 {
|
|
3219 if (XEUNICODE_P)
|
|
3220 return GetProfileIntW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, nDefault);
|
|
3221 else
|
|
3222 return GetProfileIntA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, nDefault);
|
|
3223 }
|
|
3224
|
|
3225 DWORD
|
|
3226 qxeGetProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpDefault, Extbyte * lpReturnedString, DWORD nSize)
|
|
3227 {
|
|
3228 if (XEUNICODE_P)
|
|
3229 return GetProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpDefault, (LPWSTR) lpReturnedString, nSize);
|
|
3230 else
|
|
3231 return GetProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpDefault, (LPSTR) lpReturnedString, nSize);
|
|
3232 }
|
|
3233
|
|
3234 BOOL
|
|
3235 qxeWriteProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpString)
|
|
3236 {
|
|
3237 if (XEUNICODE_P)
|
|
3238 return WriteProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpString);
|
|
3239 else
|
|
3240 return WriteProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpString);
|
|
3241 }
|
|
3242
|
|
3243 DWORD
|
|
3244 qxeGetProfileSection (const Extbyte * lpAppName, Extbyte * lpReturnedString, DWORD nSize)
|
|
3245 {
|
|
3246 if (XEUNICODE_P)
|
|
3247 return GetProfileSectionW ((LPCWSTR) lpAppName, (LPWSTR) lpReturnedString, nSize);
|
|
3248 else
|
|
3249 return GetProfileSectionA ((LPCSTR) lpAppName, (LPSTR) lpReturnedString, nSize);
|
|
3250 }
|
|
3251
|
|
3252 BOOL
|
|
3253 qxeWriteProfileSection (const Extbyte * lpAppName, const Extbyte * lpString)
|
|
3254 {
|
|
3255 if (XEUNICODE_P)
|
|
3256 return WriteProfileSectionW ((LPCWSTR) lpAppName, (LPCWSTR) lpString);
|
|
3257 else
|
|
3258 return WriteProfileSectionA ((LPCSTR) lpAppName, (LPCSTR) lpString);
|
|
3259 }
|
|
3260
|
|
3261 UINT
|
|
3262 qxeGetPrivateProfileInt (const Extbyte * lpAppName, const Extbyte * lpKeyName, INT nDefault, const Extbyte * lpFileName)
|
|
3263 {
|
|
3264 if (XEUNICODE_P)
|
|
3265 return GetPrivateProfileIntW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, nDefault, (LPCWSTR) lpFileName);
|
|
3266 else
|
|
3267 return GetPrivateProfileIntA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, nDefault, (LPCSTR) lpFileName);
|
|
3268 }
|
|
3269
|
|
3270 DWORD
|
|
3271 qxeGetPrivateProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpDefault, Extbyte * lpReturnedString, DWORD nSize, const Extbyte * lpFileName)
|
|
3272 {
|
|
3273 if (XEUNICODE_P)
|
|
3274 return GetPrivateProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpDefault, (LPWSTR) lpReturnedString, nSize, (LPCWSTR) lpFileName);
|
|
3275 else
|
|
3276 return GetPrivateProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpDefault, (LPSTR) lpReturnedString, nSize, (LPCSTR) lpFileName);
|
|
3277 }
|
|
3278
|
|
3279 BOOL
|
|
3280 qxeWritePrivateProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpString, const Extbyte * lpFileName)
|
|
3281 {
|
|
3282 if (XEUNICODE_P)
|
|
3283 return WritePrivateProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpString, (LPCWSTR) lpFileName);
|
|
3284 else
|
|
3285 return WritePrivateProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpString, (LPCSTR) lpFileName);
|
|
3286 }
|
|
3287
|
|
3288 DWORD
|
|
3289 qxeGetPrivateProfileSection (const Extbyte * lpAppName, Extbyte * lpReturnedString, DWORD nSize, const Extbyte * lpFileName)
|
|
3290 {
|
|
3291 if (XEUNICODE_P)
|
|
3292 return GetPrivateProfileSectionW ((LPCWSTR) lpAppName, (LPWSTR) lpReturnedString, nSize, (LPCWSTR) lpFileName);
|
|
3293 else
|
|
3294 return GetPrivateProfileSectionA ((LPCSTR) lpAppName, (LPSTR) lpReturnedString, nSize, (LPCSTR) lpFileName);
|
|
3295 }
|
|
3296
|
|
3297 BOOL
|
|
3298 qxeWritePrivateProfileSection (const Extbyte * lpAppName, const Extbyte * lpString, const Extbyte * lpFileName)
|
|
3299 {
|
|
3300 if (XEUNICODE_P)
|
|
3301 return WritePrivateProfileSectionW ((LPCWSTR) lpAppName, (LPCWSTR) lpString, (LPCWSTR) lpFileName);
|
|
3302 else
|
|
3303 return WritePrivateProfileSectionA ((LPCSTR) lpAppName, (LPCSTR) lpString, (LPCSTR) lpFileName);
|
|
3304 }
|
|
3305
|
|
3306 DWORD
|
|
3307 qxeGetPrivateProfileSectionNames (Extbyte * lpszReturnBuffer, DWORD nSize, const Extbyte * lpFileName)
|
|
3308 {
|
|
3309 if (XEUNICODE_P)
|
|
3310 return GetPrivateProfileSectionNamesW ((LPWSTR) lpszReturnBuffer, nSize, (LPCWSTR) lpFileName);
|
|
3311 else
|
|
3312 return GetPrivateProfileSectionNamesA ((LPSTR) lpszReturnBuffer, nSize, (LPCSTR) lpFileName);
|
|
3313 }
|
|
3314
|
|
3315 BOOL
|
|
3316 qxeGetPrivateProfileStruct (const Extbyte * lpszSection, const Extbyte * lpszKey, LPVOID lpStruct, UINT uSizeStruct, const Extbyte * szFile)
|
|
3317 {
|
|
3318 if (XEUNICODE_P)
|
|
3319 return GetPrivateProfileStructW ((LPCWSTR) lpszSection, (LPCWSTR) lpszKey, lpStruct, uSizeStruct, (LPCWSTR) szFile);
|
|
3320 else
|
|
3321 return GetPrivateProfileStructA ((LPCSTR) lpszSection, (LPCSTR) lpszKey, lpStruct, uSizeStruct, (LPCSTR) szFile);
|
|
3322 }
|
|
3323
|
|
3324 BOOL
|
|
3325 qxeWritePrivateProfileStruct (const Extbyte * lpszSection, const Extbyte * lpszKey, LPVOID lpStruct, UINT uSizeStruct, const Extbyte * szFile)
|
|
3326 {
|
|
3327 if (XEUNICODE_P)
|
|
3328 return WritePrivateProfileStructW ((LPCWSTR) lpszSection, (LPCWSTR) lpszKey, lpStruct, uSizeStruct, (LPCWSTR) szFile);
|
|
3329 else
|
|
3330 return WritePrivateProfileStructA ((LPCSTR) lpszSection, (LPCSTR) lpszKey, lpStruct, uSizeStruct, (LPCSTR) szFile);
|
|
3331 }
|
|
3332
|
|
3333 UINT
|
|
3334 qxeGetDriveType (const Extbyte * lpRootPathName)
|
|
3335 {
|
|
3336 if (XEUNICODE_P)
|
|
3337 return GetDriveTypeW ((LPCWSTR) lpRootPathName);
|
|
3338 else
|
|
3339 return GetDriveTypeA ((LPCSTR) lpRootPathName);
|
|
3340 }
|
|
3341
|
|
3342 UINT
|
|
3343 qxeGetSystemDirectory (Extbyte * lpBuffer, UINT uSize)
|
|
3344 {
|
|
3345 if (XEUNICODE_P)
|
|
3346 return GetSystemDirectoryW ((LPWSTR) lpBuffer, uSize);
|
|
3347 else
|
|
3348 return GetSystemDirectoryA ((LPSTR) lpBuffer, uSize);
|
|
3349 }
|
|
3350
|
|
3351 DWORD
|
|
3352 qxeGetTempPath (DWORD nBufferLength, Extbyte * lpBuffer)
|
|
3353 {
|
|
3354 if (XEUNICODE_P)
|
|
3355 return GetTempPathW (nBufferLength, (LPWSTR) lpBuffer);
|
|
3356 else
|
|
3357 return GetTempPathA (nBufferLength, (LPSTR) lpBuffer);
|
|
3358 }
|
|
3359
|
|
3360 UINT
|
|
3361 qxeGetTempFileName (const Extbyte * lpPathName, const Extbyte * lpPrefixString, UINT uUnique, Extbyte * lpTempFileName)
|
|
3362 {
|
|
3363 if (XEUNICODE_P)
|
|
3364 return GetTempFileNameW ((LPCWSTR) lpPathName, (LPCWSTR) lpPrefixString, uUnique, (LPWSTR) lpTempFileName);
|
|
3365 else
|
|
3366 return GetTempFileNameA ((LPCSTR) lpPathName, (LPCSTR) lpPrefixString, uUnique, (LPSTR) lpTempFileName);
|
|
3367 }
|
|
3368
|
|
3369 UINT
|
|
3370 qxeGetWindowsDirectory (Extbyte * lpBuffer, UINT uSize)
|
|
3371 {
|
|
3372 if (XEUNICODE_P)
|
|
3373 return GetWindowsDirectoryW ((LPWSTR) lpBuffer, uSize);
|
|
3374 else
|
|
3375 return GetWindowsDirectoryA ((LPSTR) lpBuffer, uSize);
|
|
3376 }
|
|
3377
|
|
3378 BOOL
|
|
3379 qxeSetCurrentDirectory (const Extbyte * lpPathName)
|
|
3380 {
|
|
3381 if (XEUNICODE_P)
|
|
3382 return SetCurrentDirectoryW ((LPCWSTR) lpPathName);
|
|
3383 else
|
|
3384 return SetCurrentDirectoryA ((LPCSTR) lpPathName);
|
|
3385 }
|
|
3386
|
|
3387 DWORD
|
|
3388 qxeGetCurrentDirectory (DWORD nBufferLength, Extbyte * lpBuffer)
|
|
3389 {
|
|
3390 if (XEUNICODE_P)
|
|
3391 return GetCurrentDirectoryW (nBufferLength, (LPWSTR) lpBuffer);
|
|
3392 else
|
|
3393 return GetCurrentDirectoryA (nBufferLength, (LPSTR) lpBuffer);
|
|
3394 }
|
|
3395
|
|
3396 BOOL
|
|
3397 qxeGetDiskFreeSpace (const Extbyte * lpRootPathName, LPDWORD lpSectorsPerCluster, LPDWORD lpBytesPerSector, LPDWORD lpNumberOfFreeClusters, LPDWORD lpTotalNumberOfClusters)
|
|
3398 {
|
|
3399 if (XEUNICODE_P)
|
|
3400 return GetDiskFreeSpaceW ((LPCWSTR) lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters);
|
|
3401 else
|
|
3402 return GetDiskFreeSpaceA ((LPCSTR) lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters);
|
|
3403 }
|
|
3404
|
|
3405 BOOL
|
|
3406 qxeGetDiskFreeSpaceEx (const Extbyte * lpDirectoryName, PULARGE_INTEGER lpFreeBytesAvailableToCaller, PULARGE_INTEGER lpTotalNumberOfBytes, PULARGE_INTEGER lpTotalNumberOfFreeBytes)
|
|
3407 {
|
|
3408 if (XEUNICODE_P)
|
|
3409 return GetDiskFreeSpaceExW ((LPCWSTR) lpDirectoryName, lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes);
|
|
3410 else
|
|
3411 return GetDiskFreeSpaceExA ((LPCSTR) lpDirectoryName, lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes);
|
|
3412 }
|
|
3413
|
|
3414 BOOL
|
|
3415 qxeCreateDirectory (const Extbyte * lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
3416 {
|
|
3417 if (XEUNICODE_P)
|
|
3418 return CreateDirectoryW ((LPCWSTR) lpPathName, lpSecurityAttributes);
|
|
3419 else
|
|
3420 return CreateDirectoryA ((LPCSTR) lpPathName, lpSecurityAttributes);
|
|
3421 }
|
|
3422
|
|
3423 BOOL
|
|
3424 qxeCreateDirectoryEx (const Extbyte * lpTemplateDirectory, const Extbyte * lpNewDirectory, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
3425 {
|
|
3426 if (XEUNICODE_P)
|
|
3427 return CreateDirectoryExW ((LPCWSTR) lpTemplateDirectory, (LPCWSTR) lpNewDirectory, lpSecurityAttributes);
|
|
3428 else
|
|
3429 return CreateDirectoryExA ((LPCSTR) lpTemplateDirectory, (LPCSTR) lpNewDirectory, lpSecurityAttributes);
|
|
3430 }
|
|
3431
|
|
3432 BOOL
|
|
3433 qxeRemoveDirectory (const Extbyte * lpPathName)
|
|
3434 {
|
|
3435 if (XEUNICODE_P)
|
|
3436 return RemoveDirectoryW ((LPCWSTR) lpPathName);
|
|
3437 else
|
|
3438 return RemoveDirectoryA ((LPCSTR) lpPathName);
|
|
3439 }
|
|
3440
|
|
3441 DWORD
|
|
3442 qxeGetFullPathName (const Extbyte * lpFileName, DWORD nBufferLength, Extbyte * lpBuffer, Extbyte * * lpFilePart)
|
|
3443 {
|
|
3444 if (XEUNICODE_P)
|
|
3445 return GetFullPathNameW ((LPCWSTR) lpFileName, nBufferLength, (LPWSTR) lpBuffer, (LPWSTR *) lpFilePart);
|
|
3446 else
|
|
3447 return GetFullPathNameA ((LPCSTR) lpFileName, nBufferLength, (LPSTR) lpBuffer, (LPSTR *) lpFilePart);
|
|
3448 }
|
|
3449
|
|
3450 BOOL
|
|
3451 qxeDefineDosDevice (DWORD dwFlags, const Extbyte * lpDeviceName, const Extbyte * lpTargetPath)
|
|
3452 {
|
|
3453 if (XEUNICODE_P)
|
|
3454 return DefineDosDeviceW (dwFlags, (LPCWSTR) lpDeviceName, (LPCWSTR) lpTargetPath);
|
|
3455 else
|
|
3456 return DefineDosDeviceA (dwFlags, (LPCSTR) lpDeviceName, (LPCSTR) lpTargetPath);
|
|
3457 }
|
|
3458
|
|
3459 DWORD
|
|
3460 qxeQueryDosDevice (const Extbyte * lpDeviceName, Extbyte * lpTargetPath, DWORD ucchMax)
|
|
3461 {
|
|
3462 if (XEUNICODE_P)
|
|
3463 return QueryDosDeviceW ((LPCWSTR) lpDeviceName, (LPWSTR) lpTargetPath, ucchMax);
|
|
3464 else
|
|
3465 return QueryDosDeviceA ((LPCSTR) lpDeviceName, (LPSTR) lpTargetPath, ucchMax);
|
|
3466 }
|
|
3467
|
|
3468 HANDLE
|
|
3469 qxeCreateFile (const Extbyte * lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
|
|
3470 {
|
|
3471 if (XEUNICODE_P)
|
|
3472 return CreateFileW ((LPCWSTR) lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
|
|
3473 else
|
|
3474 return CreateFileA ((LPCSTR) lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
|
|
3475 }
|
|
3476
|
|
3477 BOOL
|
|
3478 qxeSetFileAttributes (const Extbyte * lpFileName, DWORD dwFileAttributes)
|
|
3479 {
|
|
3480 if (XEUNICODE_P)
|
|
3481 return SetFileAttributesW ((LPCWSTR) lpFileName, dwFileAttributes);
|
|
3482 else
|
|
3483 return SetFileAttributesA ((LPCSTR) lpFileName, dwFileAttributes);
|
|
3484 }
|
|
3485
|
|
3486 DWORD
|
|
3487 qxeGetFileAttributes (const Extbyte * lpFileName)
|
|
3488 {
|
|
3489 if (XEUNICODE_P)
|
|
3490 return GetFileAttributesW ((LPCWSTR) lpFileName);
|
|
3491 else
|
|
3492 return GetFileAttributesA ((LPCSTR) lpFileName);
|
|
3493 }
|
|
3494
|
|
3495 BOOL
|
|
3496 qxeGetFileAttributesEx (const Extbyte * lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
|
|
3497 {
|
|
3498 if (XEUNICODE_P)
|
|
3499 return GetFileAttributesExW ((LPCWSTR) lpFileName, fInfoLevelId, lpFileInformation);
|
|
3500 else
|
|
3501 return GetFileAttributesExA ((LPCSTR) lpFileName, fInfoLevelId, lpFileInformation);
|
|
3502 }
|
|
3503
|
|
3504 DWORD
|
|
3505 qxeGetCompressedFileSize (const Extbyte * lpFileName, LPDWORD lpFileSizeHigh)
|
|
3506 {
|
|
3507 if (XEUNICODE_P)
|
|
3508 return GetCompressedFileSizeW ((LPCWSTR) lpFileName, lpFileSizeHigh);
|
|
3509 else
|
|
3510 return GetCompressedFileSizeA ((LPCSTR) lpFileName, lpFileSizeHigh);
|
|
3511 }
|
|
3512
|
|
3513 BOOL
|
|
3514 qxeDeleteFile (const Extbyte * lpFileName)
|
|
3515 {
|
|
3516 if (XEUNICODE_P)
|
|
3517 return DeleteFileW ((LPCWSTR) lpFileName);
|
|
3518 else
|
|
3519 return DeleteFileA ((LPCSTR) lpFileName);
|
|
3520 }
|
|
3521
|
|
3522 /* Error if FindFirstFileEx used: split-sized LPWIN32_FIND_DATA; not used, NT 4.0+ only */
|
|
3523
|
|
3524 /* Skipping FindFirstFile because split-sized LPWIN32_FIND_DATA */
|
|
3525
|
|
3526 /* Skipping FindNextFile because split-sized LPWIN32_FIND_DATA */
|
|
3527
|
|
3528 DWORD
|
|
3529 qxeSearchPath (const Extbyte * lpPath, const Extbyte * lpFileName, const Extbyte * lpExtension, DWORD nBufferLength, Extbyte * lpBuffer, Extbyte * * lpFilePart)
|
|
3530 {
|
|
3531 if (XEUNICODE_P)
|
|
3532 return SearchPathW ((LPCWSTR) lpPath, (LPCWSTR) lpFileName, (LPCWSTR) lpExtension, nBufferLength, (LPWSTR) lpBuffer, (LPWSTR *) lpFilePart);
|
|
3533 else
|
|
3534 return SearchPathA ((LPCSTR) lpPath, (LPCSTR) lpFileName, (LPCSTR) lpExtension, nBufferLength, (LPSTR) lpBuffer, (LPSTR *) lpFilePart);
|
|
3535 }
|
|
3536
|
|
3537 BOOL
|
|
3538 qxeCopyFile (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, BOOL bFailIfExists)
|
|
3539 {
|
|
3540 if (XEUNICODE_P)
|
|
3541 return CopyFileW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, bFailIfExists);
|
|
3542 else
|
|
3543 return CopyFileA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, bFailIfExists);
|
|
3544 }
|
|
3545
|
|
3546 /* NOTE: NT 4.0+ only */
|
|
3547 BOOL
|
|
3548 qxeCopyFileEx (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, LPPROGRESS_ROUTINE lpProgressRoutine, LPVOID lpData, LPBOOL pbCancel, DWORD dwCopyFlags)
|
|
3549 {
|
|
3550 if (XEUNICODE_P)
|
|
3551 return CopyFileExW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, lpProgressRoutine, lpData, pbCancel, dwCopyFlags);
|
|
3552 else
|
|
3553 return CopyFileExA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, lpProgressRoutine, lpData, pbCancel, dwCopyFlags);
|
|
3554 }
|
|
3555
|
|
3556 BOOL
|
|
3557 qxeMoveFile (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName)
|
|
3558 {
|
|
3559 if (XEUNICODE_P)
|
|
3560 return MoveFileW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName);
|
|
3561 else
|
|
3562 return MoveFileA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName);
|
|
3563 }
|
|
3564
|
|
3565 BOOL
|
|
3566 qxeMoveFileEx (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, DWORD dwFlags)
|
|
3567 {
|
|
3568 if (XEUNICODE_P)
|
|
3569 return MoveFileExW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, dwFlags);
|
|
3570 else
|
|
3571 return MoveFileExA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, dwFlags);
|
|
3572 }
|
|
3573
|
|
3574 /* Error if MoveFileWithProgress used: NT 5.0+ only */
|
|
3575
|
|
3576 /* Error if CreateHardLink used: NT 5.0+ only */
|
|
3577
|
|
3578 HANDLE
|
|
3579 qxeCreateNamedPipe (const Extbyte * lpName, DWORD dwOpenMode, DWORD dwPipeMode, DWORD nMaxInstances, DWORD nOutBufferSize, DWORD nInBufferSize, DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
3580 {
|
|
3581 if (XEUNICODE_P)
|
|
3582 return CreateNamedPipeW ((LPCWSTR) lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes);
|
|
3583 else
|
|
3584 return CreateNamedPipeA ((LPCSTR) lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes);
|
|
3585 }
|
|
3586
|
|
3587 BOOL
|
|
3588 qxeGetNamedPipeHandleState (HANDLE hNamedPipe, LPDWORD lpState, LPDWORD lpCurInstances, LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout, Extbyte * lpUserName, DWORD nMaxUserNameSize)
|
|
3589 {
|
|
3590 if (XEUNICODE_P)
|
|
3591 return GetNamedPipeHandleStateW (hNamedPipe, lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout, (LPWSTR) lpUserName, nMaxUserNameSize);
|
|
3592 else
|
|
3593 return GetNamedPipeHandleStateA (hNamedPipe, lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout, (LPSTR) lpUserName, nMaxUserNameSize);
|
|
3594 }
|
|
3595
|
|
3596 BOOL
|
|
3597 qxeCallNamedPipe (const Extbyte * lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead, DWORD nTimeOut)
|
|
3598 {
|
|
3599 if (XEUNICODE_P)
|
|
3600 return CallNamedPipeW ((LPCWSTR) lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut);
|
|
3601 else
|
|
3602 return CallNamedPipeA ((LPCSTR) lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut);
|
|
3603 }
|
|
3604
|
|
3605 BOOL
|
|
3606 qxeWaitNamedPipe (const Extbyte * lpNamedPipeName, DWORD nTimeOut)
|
|
3607 {
|
|
3608 if (XEUNICODE_P)
|
|
3609 return WaitNamedPipeW ((LPCWSTR) lpNamedPipeName, nTimeOut);
|
|
3610 else
|
|
3611 return WaitNamedPipeA ((LPCSTR) lpNamedPipeName, nTimeOut);
|
|
3612 }
|
|
3613
|
|
3614 BOOL
|
|
3615 qxeSetVolumeLabel (const Extbyte * lpRootPathName, const Extbyte * lpVolumeName)
|
|
3616 {
|
|
3617 if (XEUNICODE_P)
|
|
3618 return SetVolumeLabelW ((LPCWSTR) lpRootPathName, (LPCWSTR) lpVolumeName);
|
|
3619 else
|
|
3620 return SetVolumeLabelA ((LPCSTR) lpRootPathName, (LPCSTR) lpVolumeName);
|
|
3621 }
|
|
3622
|
|
3623 BOOL
|
|
3624 qxeGetVolumeInformation (const Extbyte * lpRootPathName, Extbyte * lpVolumeNameBuffer, DWORD nVolumeNameSize, LPDWORD lpVolumeSerialNumber, LPDWORD lpMaximumComponentLength, LPDWORD lpFileSystemFlags, Extbyte * lpFileSystemNameBuffer, DWORD nFileSystemNameSize)
|
|
3625 {
|
|
3626 if (XEUNICODE_P)
|
|
3627 return GetVolumeInformationW ((LPCWSTR) lpRootPathName, (LPWSTR) lpVolumeNameBuffer, nVolumeNameSize, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, (LPWSTR) lpFileSystemNameBuffer, nFileSystemNameSize);
|
|
3628 else
|
|
3629 return GetVolumeInformationA ((LPCSTR) lpRootPathName, (LPSTR) lpVolumeNameBuffer, nVolumeNameSize, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, (LPSTR) lpFileSystemNameBuffer, nFileSystemNameSize);
|
|
3630 }
|
|
3631
|
|
3632 BOOL
|
|
3633 qxeClearEventLog (HANDLE hEventLog, const Extbyte * lpBackupFileName)
|
|
3634 {
|
|
3635 if (XEUNICODE_P)
|
|
3636 return ClearEventLogW (hEventLog, (LPCWSTR) lpBackupFileName);
|
|
3637 else
|
|
3638 return ClearEventLogA (hEventLog, (LPCSTR) lpBackupFileName);
|
|
3639 }
|
|
3640
|
|
3641 BOOL
|
|
3642 qxeBackupEventLog (HANDLE hEventLog, const Extbyte * lpBackupFileName)
|
|
3643 {
|
|
3644 if (XEUNICODE_P)
|
|
3645 return BackupEventLogW (hEventLog, (LPCWSTR) lpBackupFileName);
|
|
3646 else
|
|
3647 return BackupEventLogA (hEventLog, (LPCSTR) lpBackupFileName);
|
|
3648 }
|
|
3649
|
|
3650 HANDLE
|
|
3651 qxeOpenEventLog (const Extbyte * lpUNCServerName, const Extbyte * lpSourceName)
|
|
3652 {
|
|
3653 if (XEUNICODE_P)
|
|
3654 return OpenEventLogW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpSourceName);
|
|
3655 else
|
|
3656 return OpenEventLogA ((LPCSTR) lpUNCServerName, (LPCSTR) lpSourceName);
|
|
3657 }
|
|
3658
|
|
3659 HANDLE
|
|
3660 qxeRegisterEventSource (const Extbyte * lpUNCServerName, const Extbyte * lpSourceName)
|
|
3661 {
|
|
3662 if (XEUNICODE_P)
|
|
3663 return RegisterEventSourceW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpSourceName);
|
|
3664 else
|
|
3665 return RegisterEventSourceA ((LPCSTR) lpUNCServerName, (LPCSTR) lpSourceName);
|
|
3666 }
|
|
3667
|
|
3668 HANDLE
|
|
3669 qxeOpenBackupEventLog (const Extbyte * lpUNCServerName, const Extbyte * lpFileName)
|
|
3670 {
|
|
3671 if (XEUNICODE_P)
|
|
3672 return OpenBackupEventLogW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpFileName);
|
|
3673 else
|
|
3674 return OpenBackupEventLogA ((LPCSTR) lpUNCServerName, (LPCSTR) lpFileName);
|
|
3675 }
|
|
3676
|
|
3677 BOOL
|
|
3678 qxeReadEventLog (HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD * pnBytesRead, DWORD * pnMinNumberOfBytesNeeded)
|
|
3679 {
|
|
3680 if (XEUNICODE_P)
|
|
3681 return ReadEventLogW (hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
|
|
3682 else
|
|
3683 return ReadEventLogA (hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
|
|
3684 }
|
|
3685
|
|
3686 BOOL
|
|
3687 qxeReportEvent (HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dwEventID, PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, const Extbyte * * lpStrings, LPVOID lpRawData)
|
|
3688 {
|
|
3689 if (XEUNICODE_P)
|
|
3690 return ReportEventW (hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, (LPCWSTR *) lpStrings, lpRawData);
|
|
3691 else
|
|
3692 return ReportEventA (hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, (LPCSTR *) lpStrings, lpRawData);
|
|
3693 }
|
|
3694
|
|
3695 BOOL
|
|
3696 qxeAccessCheckAndAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, Extbyte * ObjectTypeName, Extbyte * ObjectName, PSECURITY_DESCRIPTOR SecurityDescriptor, DWORD DesiredAccess, PGENERIC_MAPPING GenericMapping, BOOL ObjectCreation, LPDWORD GrantedAccess, LPBOOL AccessStatus, LPBOOL pfGenerateOnClose)
|
|
3697 {
|
|
3698 if (XEUNICODE_P)
|
|
3699 return AccessCheckAndAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, (LPWSTR) ObjectTypeName, (LPWSTR) ObjectName, SecurityDescriptor, DesiredAccess, GenericMapping, ObjectCreation, GrantedAccess, AccessStatus, pfGenerateOnClose);
|
|
3700 else
|
|
3701 return AccessCheckAndAuditAlarmA ((LPCSTR) SubsystemName, HandleId, (LPSTR) ObjectTypeName, (LPSTR) ObjectName, SecurityDescriptor, DesiredAccess, GenericMapping, ObjectCreation, GrantedAccess, AccessStatus, pfGenerateOnClose);
|
|
3702 }
|
|
3703
|
|
3704 /* Error if AccessCheckByTypeAndAuditAlarm used: NT 5.0+ only */
|
|
3705
|
|
3706 /* Error if AccessCheckByTypeResultListAndAuditAlarm used: NT 5.0+ only */
|
|
3707
|
|
3708 BOOL
|
|
3709 qxeObjectOpenAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, Extbyte * ObjectTypeName, Extbyte * ObjectName, PSECURITY_DESCRIPTOR pSecurityDescriptor, HANDLE ClientToken, DWORD DesiredAccess, DWORD GrantedAccess, PPRIVILEGE_SET Privileges, BOOL ObjectCreation, BOOL AccessGranted, LPBOOL GenerateOnClose)
|
|
3710 {
|
|
3711 if (XEUNICODE_P)
|
|
3712 return ObjectOpenAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, (LPWSTR) ObjectTypeName, (LPWSTR) ObjectName, pSecurityDescriptor, ClientToken, DesiredAccess, GrantedAccess, Privileges, ObjectCreation, AccessGranted, GenerateOnClose);
|
|
3713 else
|
|
3714 return ObjectOpenAuditAlarmA ((LPCSTR) SubsystemName, HandleId, (LPSTR) ObjectTypeName, (LPSTR) ObjectName, pSecurityDescriptor, ClientToken, DesiredAccess, GrantedAccess, Privileges, ObjectCreation, AccessGranted, GenerateOnClose);
|
|
3715 }
|
|
3716
|
|
3717 BOOL
|
|
3718 qxeObjectPrivilegeAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, HANDLE ClientToken, DWORD DesiredAccess, PPRIVILEGE_SET Privileges, BOOL AccessGranted)
|
|
3719 {
|
|
3720 if (XEUNICODE_P)
|
|
3721 return ObjectPrivilegeAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, ClientToken, DesiredAccess, Privileges, AccessGranted);
|
|
3722 else
|
|
3723 return ObjectPrivilegeAuditAlarmA ((LPCSTR) SubsystemName, HandleId, ClientToken, DesiredAccess, Privileges, AccessGranted);
|
|
3724 }
|
|
3725
|
|
3726 BOOL
|
|
3727 qxeObjectCloseAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, BOOL GenerateOnClose)
|
|
3728 {
|
|
3729 if (XEUNICODE_P)
|
|
3730 return ObjectCloseAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3731 else
|
|
3732 return ObjectCloseAuditAlarmA ((LPCSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3733 }
|
|
3734
|
|
3735 BOOL
|
|
3736 qxeObjectDeleteAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, BOOL GenerateOnClose)
|
|
3737 {
|
|
3738 if (XEUNICODE_P)
|
|
3739 return ObjectDeleteAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3740 else
|
|
3741 return ObjectDeleteAuditAlarmA ((LPCSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3742 }
|
|
3743
|
|
3744 BOOL
|
|
3745 qxePrivilegedServiceAuditAlarm (const Extbyte * SubsystemName, const Extbyte * ServiceName, HANDLE ClientToken, PPRIVILEGE_SET Privileges, BOOL AccessGranted)
|
|
3746 {
|
|
3747 if (XEUNICODE_P)
|
|
3748 return PrivilegedServiceAuditAlarmW ((LPCWSTR) SubsystemName, (LPCWSTR) ServiceName, ClientToken, Privileges, AccessGranted);
|
|
3749 else
|
|
3750 return PrivilegedServiceAuditAlarmA ((LPCSTR) SubsystemName, (LPCSTR) ServiceName, ClientToken, Privileges, AccessGranted);
|
|
3751 }
|
|
3752
|
|
3753 BOOL
|
|
3754 qxeSetFileSecurity (const Extbyte * lpFileName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor)
|
|
3755 {
|
|
3756 if (XEUNICODE_P)
|
|
3757 return SetFileSecurityW ((LPCWSTR) lpFileName, SecurityInformation, pSecurityDescriptor);
|
|
3758 else
|
|
3759 return SetFileSecurityA ((LPCSTR) lpFileName, SecurityInformation, pSecurityDescriptor);
|
|
3760 }
|
|
3761
|
|
3762 BOOL
|
|
3763 qxeGetFileSecurity (const Extbyte * lpFileName, SECURITY_INFORMATION RequestedInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded)
|
|
3764 {
|
|
3765 if (XEUNICODE_P)
|
|
3766 return GetFileSecurityW ((LPCWSTR) lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded);
|
|
3767 else
|
|
3768 return GetFileSecurityA ((LPCSTR) lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded);
|
|
3769 }
|
|
3770
|
|
3771 HANDLE
|
|
3772 qxeFindFirstChangeNotification (const Extbyte * lpPathName, BOOL bWatchSubtree, DWORD dwNotifyFilter)
|
|
3773 {
|
|
3774 if (XEUNICODE_P)
|
|
3775 return FindFirstChangeNotificationW ((LPCWSTR) lpPathName, bWatchSubtree, dwNotifyFilter);
|
|
3776 else
|
|
3777 return FindFirstChangeNotificationA ((LPCSTR) lpPathName, bWatchSubtree, dwNotifyFilter);
|
|
3778 }
|
|
3779
|
|
3780 /* Error if ReadDirectoryChanges used: Unicode-only */
|
|
3781
|
|
3782 BOOL
|
|
3783 qxeIsBadStringPtr (const Extbyte * lpsz, UINT ucchMax)
|
|
3784 {
|
|
3785 if (XEUNICODE_P)
|
|
3786 return IsBadStringPtrW ((LPCWSTR) lpsz, ucchMax);
|
|
3787 else
|
|
3788 return IsBadStringPtrA ((LPCSTR) lpsz, ucchMax);
|
|
3789 }
|
|
3790
|
|
3791 BOOL
|
|
3792 qxeLookupAccountSid (const Extbyte * lpSystemName, PSID Sid, Extbyte * Name, LPDWORD cbName, Extbyte * ReferencedDomainName, LPDWORD cbReferencedDomainName, PSID_NAME_USE peUse)
|
|
3793 {
|
|
3794 if (XEUNICODE_P)
|
|
3795 return LookupAccountSidW ((LPCWSTR) lpSystemName, Sid, (LPWSTR) Name, cbName, (LPWSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3796 else
|
|
3797 return LookupAccountSidA ((LPCSTR) lpSystemName, Sid, (LPSTR) Name, cbName, (LPSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3798 }
|
|
3799
|
|
3800 BOOL
|
|
3801 qxeLookupAccountName (const Extbyte * lpSystemName, const Extbyte * lpAccountName, PSID Sid, LPDWORD cbSid, Extbyte * ReferencedDomainName, LPDWORD cbReferencedDomainName, PSID_NAME_USE peUse)
|
|
3802 {
|
|
3803 if (XEUNICODE_P)
|
|
3804 return LookupAccountNameW ((LPCWSTR) lpSystemName, (LPCWSTR) lpAccountName, Sid, cbSid, (LPWSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3805 else
|
|
3806 return LookupAccountNameA ((LPCSTR) lpSystemName, (LPCSTR) lpAccountName, Sid, cbSid, (LPSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3807 }
|
|
3808
|
|
3809 BOOL
|
|
3810 qxeLookupPrivilegeValue (const Extbyte * lpSystemName, const Extbyte * lpName, PLUID lpLuid)
|
|
3811 {
|
|
3812 if (XEUNICODE_P)
|
|
3813 return LookupPrivilegeValueW ((LPCWSTR) lpSystemName, (LPCWSTR) lpName, lpLuid);
|
|
3814 else
|
|
3815 return LookupPrivilegeValueA ((LPCSTR) lpSystemName, (LPCSTR) lpName, lpLuid);
|
|
3816 }
|
|
3817
|
|
3818 BOOL
|
|
3819 qxeLookupPrivilegeName (const Extbyte * lpSystemName, PLUID lpLuid, Extbyte * lpName, LPDWORD cbName)
|
|
3820 {
|
|
3821 if (XEUNICODE_P)
|
|
3822 return LookupPrivilegeNameW ((LPCWSTR) lpSystemName, lpLuid, (LPWSTR) lpName, cbName);
|
|
3823 else
|
|
3824 return LookupPrivilegeNameA ((LPCSTR) lpSystemName, lpLuid, (LPSTR) lpName, cbName);
|
|
3825 }
|
|
3826
|
|
3827 BOOL
|
|
3828 qxeLookupPrivilegeDisplayName (const Extbyte * lpSystemName, const Extbyte * lpName, Extbyte * lpDisplayName, LPDWORD cbDisplayName, LPDWORD lpLanguageId)
|
|
3829 {
|
|
3830 if (XEUNICODE_P)
|
|
3831 return LookupPrivilegeDisplayNameW ((LPCWSTR) lpSystemName, (LPCWSTR) lpName, (LPWSTR) lpDisplayName, cbDisplayName, lpLanguageId);
|
|
3832 else
|
|
3833 return LookupPrivilegeDisplayNameA ((LPCSTR) lpSystemName, (LPCSTR) lpName, (LPSTR) lpDisplayName, cbDisplayName, lpLanguageId);
|
|
3834 }
|
|
3835
|
|
3836 BOOL
|
|
3837 qxeBuildCommDCB (const Extbyte * lpDef, LPDCB lpDCB)
|
|
3838 {
|
|
3839 if (XEUNICODE_P)
|
|
3840 return BuildCommDCBW ((LPCWSTR) lpDef, lpDCB);
|
|
3841 else
|
|
3842 return BuildCommDCBA ((LPCSTR) lpDef, lpDCB);
|
|
3843 }
|
|
3844
|
|
3845 BOOL
|
|
3846 qxeBuildCommDCBAndTimeouts (const Extbyte * lpDef, LPDCB lpDCB, LPCOMMTIMEOUTS lpCommTimeouts)
|
|
3847 {
|
|
3848 if (XEUNICODE_P)
|
|
3849 return BuildCommDCBAndTimeoutsW ((LPCWSTR) lpDef, lpDCB, lpCommTimeouts);
|
|
3850 else
|
|
3851 return BuildCommDCBAndTimeoutsA ((LPCSTR) lpDef, lpDCB, lpCommTimeouts);
|
|
3852 }
|
|
3853
|
|
3854 BOOL
|
|
3855 qxeCommConfigDialog (const Extbyte * lpszName, HWND hWnd, LPCOMMCONFIG lpCC)
|
|
3856 {
|
|
3857 if (XEUNICODE_P)
|
|
3858 return CommConfigDialogW ((LPCWSTR) lpszName, hWnd, lpCC);
|
|
3859 else
|
|
3860 return CommConfigDialogA ((LPCSTR) lpszName, hWnd, lpCC);
|
|
3861 }
|
|
3862
|
|
3863 BOOL
|
|
3864 qxeGetDefaultCommConfig (const Extbyte * lpszName, LPCOMMCONFIG lpCC, LPDWORD lpdwSize)
|
|
3865 {
|
|
3866 if (XEUNICODE_P)
|
|
3867 return GetDefaultCommConfigW ((LPCWSTR) lpszName, lpCC, lpdwSize);
|
|
3868 else
|
|
3869 return GetDefaultCommConfigA ((LPCSTR) lpszName, lpCC, lpdwSize);
|
|
3870 }
|
|
3871
|
|
3872 BOOL
|
|
3873 qxeSetDefaultCommConfig (const Extbyte * lpszName, LPCOMMCONFIG lpCC, DWORD dwSize)
|
|
3874 {
|
|
3875 if (XEUNICODE_P)
|
|
3876 return SetDefaultCommConfigW ((LPCWSTR) lpszName, lpCC, dwSize);
|
|
3877 else
|
|
3878 return SetDefaultCommConfigA ((LPCSTR) lpszName, lpCC, dwSize);
|
|
3879 }
|
|
3880
|
|
3881 BOOL
|
|
3882 qxeGetComputerName (Extbyte * lpBuffer, LPDWORD nSize)
|
|
3883 {
|
|
3884 if (XEUNICODE_P)
|
|
3885 return GetComputerNameW ((LPWSTR) lpBuffer, nSize);
|
|
3886 else
|
|
3887 return GetComputerNameA ((LPSTR) lpBuffer, nSize);
|
|
3888 }
|
|
3889
|
|
3890 BOOL
|
|
3891 qxeSetComputerName (const Extbyte * lpComputerName)
|
|
3892 {
|
|
3893 if (XEUNICODE_P)
|
|
3894 return SetComputerNameW ((LPCWSTR) lpComputerName);
|
|
3895 else
|
|
3896 return SetComputerNameA ((LPCSTR) lpComputerName);
|
|
3897 }
|
|
3898
|
|
3899 BOOL
|
|
3900 qxeGetUserName (Extbyte * lpBuffer, LPDWORD nSize)
|
|
3901 {
|
|
3902 if (XEUNICODE_P)
|
|
3903 return GetUserNameW ((LPWSTR) lpBuffer, nSize);
|
|
3904 else
|
|
3905 return GetUserNameA ((LPSTR) lpBuffer, nSize);
|
|
3906 }
|
|
3907
|
|
3908 BOOL
|
|
3909 qxeLogonUser (Extbyte * lpszUsername, Extbyte * lpszDomain, Extbyte * lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken)
|
|
3910 {
|
|
3911 if (XEUNICODE_P)
|
|
3912 return LogonUserW ((LPWSTR) lpszUsername, (LPWSTR) lpszDomain, (LPWSTR) lpszPassword, dwLogonType, dwLogonProvider, phToken);
|
|
3913 else
|
|
3914 return LogonUserA ((LPSTR) lpszUsername, (LPSTR) lpszDomain, (LPSTR) lpszPassword, dwLogonType, dwLogonProvider, phToken);
|
|
3915 }
|
|
3916
|
|
3917 BOOL
|
|
3918 qxeCreateProcessAsUser (HANDLE hToken, const Extbyte * lpApplicationName, Extbyte * lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, const Extbyte * lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
|
|
3919 {
|
|
3920 if (XEUNICODE_P)
|
|
3921 return CreateProcessAsUserW (hToken, (LPCWSTR) lpApplicationName, (LPWSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCWSTR) lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
|
|
3922 else
|
|
3923 return CreateProcessAsUserA (hToken, (LPCSTR) lpApplicationName, (LPSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCSTR) lpCurrentDirectory, (LPSTARTUPINFOA) lpStartupInfo, lpProcessInformation);
|
|
3924 }
|
|
3925
|
|
3926 /* Error if GetCurrentHwProfile used: split-sized LPHW_PROFILE_INFO; NT 4.0+ only */
|
|
3927
|
|
3928 /* Error if GetVersionEx used: split-sized LPOSVERSIONINFO */
|
|
3929
|
|
3930 /* Error if CreateJobObject used: NT 5.0+ only */
|
|
3931
|
|
3932 /* Error if OpenJobObject used: NT 5.0+ only */
|
|
3933
|
|
3934
|
|
3935 /*----------------------------------------------------------------------*/
|
2367
|
3936 /* Processing file MMSYSTEM.H */
|
771
|
3937 /*----------------------------------------------------------------------*/
|
|
3938
|
|
3939 BOOL
|
2367
|
3940 qxesndPlaySound (const Extbyte * pszSound, UINT fuSound)
|
|
3941 {
|
|
3942 if (XEUNICODE_P)
|
|
3943 return sndPlaySoundW ((LPCWSTR) pszSound, fuSound);
|
|
3944 else
|
|
3945 return sndPlaySoundA ((LPCSTR) pszSound, fuSound);
|
771
|
3946 }
|
|
3947
|
|
3948 BOOL
|
2367
|
3949 qxePlaySound (const Extbyte * pszSound, HMODULE hmod, DWORD fdwSound)
|
|
3950 {
|
|
3951 if (XEUNICODE_P)
|
|
3952 return PlaySoundW ((LPCWSTR) pszSound, hmod, fdwSound);
|
|
3953 else
|
|
3954 return PlaySoundA ((LPCSTR) pszSound, hmod, fdwSound);
|
|
3955 }
|
|
3956
|
|
3957 /* Error if waveOutGetDevCaps used: split-sized LPWAVEOUTCAPS */
|
|
3958
|
|
3959 MMRESULT
|
|
3960 qxewaveOutGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
3961 {
|
|
3962 if (XEUNICODE_P)
|
|
3963 return waveOutGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
3964 else
|
|
3965 return waveOutGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
3966 }
|
|
3967
|
|
3968 /* Error if waveInGetDevCaps used: split-sized LPWAVEINCAPS */
|
|
3969
|
|
3970 MMRESULT
|
|
3971 qxewaveInGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
3972 {
|
|
3973 if (XEUNICODE_P)
|
|
3974 return waveInGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
3975 else
|
|
3976 return waveInGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
3977 }
|
|
3978
|
|
3979 /* Error if midiOutGetDevCaps used: split-sized LPMIDIOUTCAPS */
|
|
3980
|
|
3981 MMRESULT
|
|
3982 qxemidiOutGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
3983 {
|
|
3984 if (XEUNICODE_P)
|
|
3985 return midiOutGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
3986 else
|
|
3987 return midiOutGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
3988 }
|
|
3989
|
|
3990 /* Error if midiInGetDevCaps used: split-sized LPMIDIOUTCAPS */
|
|
3991
|
|
3992 MMRESULT
|
|
3993 qxemidiInGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
3994 {
|
|
3995 if (XEUNICODE_P)
|
|
3996 return midiInGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
3997 else
|
|
3998 return midiInGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
3999 }
|
|
4000
|
|
4001 /* Error if auxGetDevCaps used: split-sized LPAUXCAPS */
|
|
4002
|
|
4003 /* Error if mixerGetDevCaps used: split-sized LPMIXERCAPS */
|
|
4004
|
|
4005 /* Error if mixerGetLineInfo used: split-sized LPMIXERLINE */
|
|
4006
|
|
4007 /* Error if mixerGetLineControls used: split-sized LPMIXERCONTROL */
|
|
4008
|
|
4009 /* Error if mixerGetControlDetails used: split-sized LPMIXERCONTROL in LPMIXERLINECONTROLS in LPMIXERCONTROLDETAILS */
|
|
4010
|
|
4011 /* Error if joyGetDevCaps used: split-sized LPJOYCAPS */
|
|
4012
|
|
4013 FOURCC
|
|
4014 qxemmioStringToFOURCC (const Extbyte * sz, UINT uFlags)
|
|
4015 {
|
|
4016 if (XEUNICODE_P)
|
|
4017 return mmioStringToFOURCCW ((LPCWSTR) sz, uFlags);
|
|
4018 else
|
|
4019 return mmioStringToFOURCCA ((LPCSTR) sz, uFlags);
|
|
4020 }
|
|
4021
|
|
4022 LPMMIOPROC
|
|
4023 qxemmioInstallIOProc (FOURCC fccIOProc, LPMMIOPROC pIOProc, DWORD dwFlags)
|
|
4024 {
|
|
4025 if (XEUNICODE_P)
|
|
4026 return mmioInstallIOProcW (fccIOProc, pIOProc, dwFlags);
|
|
4027 else
|
|
4028 return mmioInstallIOProcA (fccIOProc, pIOProc, dwFlags);
|
|
4029 }
|
|
4030
|
|
4031 HMMIO
|
|
4032 qxemmioOpen (Extbyte * pszFileName, LPMMIOINFO pmmioinfo, DWORD fdwOpen)
|
|
4033 {
|
|
4034 if (XEUNICODE_P)
|
|
4035 return mmioOpenW ((LPWSTR) pszFileName, pmmioinfo, fdwOpen);
|
|
4036 else
|
|
4037 return mmioOpenA ((LPSTR) pszFileName, pmmioinfo, fdwOpen);
|
|
4038 }
|
|
4039
|
|
4040 MMRESULT
|
|
4041 qxemmioRename (const Extbyte * pszFileName, const Extbyte * pszNewFileName, LPCMMIOINFO pmmioinfo, DWORD fdwRename)
|
|
4042 {
|
|
4043 if (XEUNICODE_P)
|
|
4044 return mmioRenameW ((LPCWSTR) pszFileName, (LPCWSTR) pszNewFileName, pmmioinfo, fdwRename);
|
|
4045 else
|
|
4046 return mmioRenameA ((LPCSTR) pszFileName, (LPCSTR) pszNewFileName, pmmioinfo, fdwRename);
|
|
4047 }
|
|
4048
|
|
4049 MCIERROR
|
|
4050 qxemciSendCommand (MCIDEVICEID mciId, UINT uMsg, DWORD dwParam1, DWORD dwParam2)
|
|
4051 {
|
|
4052 if (XEUNICODE_P)
|
|
4053 return mciSendCommandW (mciId, uMsg, dwParam1, dwParam2);
|
|
4054 else
|
|
4055 return mciSendCommandA (mciId, uMsg, dwParam1, dwParam2);
|
|
4056 }
|
|
4057
|
|
4058 MCIERROR
|
|
4059 qxemciSendString (const Extbyte * lpstrCommand, Extbyte * lpstrReturnString, UINT uReturnLength, HWND hwndCallback)
|
|
4060 {
|
|
4061 if (XEUNICODE_P)
|
|
4062 return mciSendStringW ((LPCWSTR) lpstrCommand, (LPWSTR) lpstrReturnString, uReturnLength, hwndCallback);
|
|
4063 else
|
|
4064 return mciSendStringA ((LPCSTR) lpstrCommand, (LPSTR) lpstrReturnString, uReturnLength, hwndCallback);
|
|
4065 }
|
|
4066
|
|
4067 MCIDEVICEID
|
|
4068 qxemciGetDeviceID (const Extbyte * pszDevice)
|
|
4069 {
|
|
4070 if (XEUNICODE_P)
|
|
4071 return mciGetDeviceIDW ((LPCWSTR) pszDevice);
|
|
4072 else
|
|
4073 return mciGetDeviceIDA ((LPCSTR) pszDevice);
|
|
4074 }
|
|
4075
|
|
4076 #if !defined (MINGW)
|
|
4077
|
|
4078 /* Error if mciGetDeviceIDFromElementID used: missing from Win98se version of ADVAPI32.dll */
|
|
4079
|
|
4080 #endif /* !defined (MINGW) */
|
771
|
4081
|
|
4082 BOOL
|
2367
|
4083 qxemciGetErrorString (MCIERROR mcierr, Extbyte * pszText, UINT cchText)
|
|
4084 {
|
|
4085 if (XEUNICODE_P)
|
|
4086 return mciGetErrorStringW (mcierr, (LPWSTR) pszText, cchText);
|
|
4087 else
|
|
4088 return mciGetErrorStringA (mcierr, (LPSTR) pszText, cchText);
|
|
4089 }
|
|
4090
|