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 BOOL
|
|
2633 qxeImmSetCompositionString (HIMC arg1, DWORD dwIndex, LPCVOID lpComp, DWORD arg4, LPCVOID lpRead, DWORD arg6)
|
|
2634 {
|
|
2635 if (XEUNICODE_P)
|
|
2636 return ImmSetCompositionStringW (arg1, dwIndex, lpComp, arg4, lpRead, arg6);
|
|
2637 else
|
|
2638 return ImmSetCompositionStringA (arg1, dwIndex, lpComp, arg4, lpRead, arg6);
|
|
2639 }
|
|
2640
|
|
2641 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2642
|
|
2643 #if defined (HAVE_MS_WINDOWS)
|
|
2644
|
|
2645 DWORD
|
|
2646 qxeImmGetCandidateListCount (HIMC arg1, LPDWORD lpdwListCount)
|
|
2647 {
|
|
2648 if (XEUNICODE_P)
|
|
2649 return ImmGetCandidateListCountW (arg1, lpdwListCount);
|
|
2650 else
|
|
2651 return ImmGetCandidateListCountA (arg1, lpdwListCount);
|
|
2652 }
|
|
2653
|
|
2654 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2655
|
|
2656 #if defined (HAVE_MS_WINDOWS)
|
|
2657
|
|
2658 DWORD
|
|
2659 qxeImmGetCandidateList (HIMC arg1, DWORD deIndex, LPCANDIDATELIST arg3, DWORD dwBufLen)
|
|
2660 {
|
|
2661 if (XEUNICODE_P)
|
|
2662 return ImmGetCandidateListW (arg1, deIndex, arg3, dwBufLen);
|
|
2663 else
|
|
2664 return ImmGetCandidateListA (arg1, deIndex, arg3, dwBufLen);
|
|
2665 }
|
|
2666
|
|
2667 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2668
|
|
2669 #if defined (HAVE_MS_WINDOWS)
|
|
2670
|
|
2671 DWORD
|
|
2672 qxeImmGetGuideLine (HIMC arg1, DWORD dwIndex, Extbyte * arg3, DWORD dwBufLen)
|
|
2673 {
|
|
2674 if (XEUNICODE_P)
|
|
2675 return ImmGetGuideLineW (arg1, dwIndex, (LPWSTR) arg3, dwBufLen);
|
|
2676 else
|
|
2677 return ImmGetGuideLineA (arg1, dwIndex, (LPSTR) arg3, dwBufLen);
|
|
2678 }
|
|
2679
|
|
2680 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2681
|
|
2682 #if defined (HAVE_MS_WINDOWS)
|
|
2683
|
|
2684 /* Skipping ImmGetCompositionFont because split-sized LOGFONT */
|
|
2685
|
|
2686 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2687
|
|
2688 #if defined (HAVE_MS_WINDOWS)
|
|
2689
|
|
2690 /* Skipping ImmSetCompositionFont because split-sized LOGFONT */
|
|
2691
|
|
2692 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2693
|
|
2694 #if defined (HAVE_MS_WINDOWS)
|
|
2695
|
|
2696 /* NOTE: // split-simple REGISTERWORD */
|
|
2697 BOOL
|
|
2698 qxeImmConfigureIME (HKL arg1, HWND arg2, DWORD arg3, LPVOID arg4)
|
|
2699 {
|
|
2700 if (XEUNICODE_P)
|
|
2701 return ImmConfigureIMEW (arg1, arg2, arg3, arg4);
|
|
2702 else
|
|
2703 return ImmConfigureIMEA (arg1, arg2, arg3, arg4);
|
|
2704 }
|
|
2705
|
|
2706 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2707
|
|
2708 #if defined (HAVE_MS_WINDOWS)
|
|
2709
|
|
2710 /* NOTE: // strings of various sorts */
|
|
2711 LRESULT
|
|
2712 qxeImmEscape (HKL arg1, HIMC arg2, UINT arg3, LPVOID arg4)
|
|
2713 {
|
|
2714 if (XEUNICODE_P)
|
|
2715 return ImmEscapeW (arg1, arg2, arg3, arg4);
|
|
2716 else
|
|
2717 return ImmEscapeA (arg1, arg2, arg3, arg4);
|
|
2718 }
|
|
2719
|
|
2720 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2721
|
|
2722 #if defined (HAVE_MS_WINDOWS)
|
|
2723
|
|
2724 DWORD
|
|
2725 qxeImmGetConversionList (HKL arg1, HIMC arg2, const Extbyte * arg3, LPCANDIDATELIST arg4, DWORD dwBufLen, UINT uFlag)
|
|
2726 {
|
|
2727 if (XEUNICODE_P)
|
|
2728 return ImmGetConversionListW (arg1, arg2, (LPCWSTR) arg3, arg4, dwBufLen, uFlag);
|
|
2729 else
|
|
2730 return ImmGetConversionListA (arg1, arg2, (LPCSTR) arg3, arg4, dwBufLen, uFlag);
|
|
2731 }
|
|
2732
|
|
2733 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2734
|
|
2735 #if defined (HAVE_MS_WINDOWS)
|
|
2736
|
|
2737 BOOL
|
|
2738 qxeImmIsUIMessage (HWND arg1, UINT arg2, WPARAM arg3, LPARAM arg4)
|
|
2739 {
|
|
2740 if (XEUNICODE_P)
|
|
2741 return ImmIsUIMessageW (arg1, arg2, arg3, arg4);
|
|
2742 else
|
|
2743 return ImmIsUIMessageA (arg1, arg2, arg3, arg4);
|
|
2744 }
|
|
2745
|
|
2746 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2747
|
|
2748 #if defined (HAVE_MS_WINDOWS)
|
|
2749
|
|
2750 BOOL
|
|
2751 qxeImmRegisterWord (HKL arg1, const Extbyte * lpszReading, DWORD arg3, const Extbyte * lpszRegister)
|
|
2752 {
|
|
2753 if (XEUNICODE_P)
|
|
2754 return ImmRegisterWordW (arg1, (LPCWSTR) lpszReading, arg3, (LPCWSTR) lpszRegister);
|
|
2755 else
|
|
2756 return ImmRegisterWordA (arg1, (LPCSTR) lpszReading, arg3, (LPCSTR) lpszRegister);
|
|
2757 }
|
|
2758
|
|
2759 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2760
|
|
2761 #if defined (HAVE_MS_WINDOWS)
|
|
2762
|
|
2763 BOOL
|
|
2764 qxeImmUnregisterWord (HKL arg1, const Extbyte * lpszReading, DWORD arg3, const Extbyte * lpszUnregister)
|
|
2765 {
|
|
2766 if (XEUNICODE_P)
|
|
2767 return ImmUnregisterWordW (arg1, (LPCWSTR) lpszReading, arg3, (LPCWSTR) lpszUnregister);
|
|
2768 else
|
|
2769 return ImmUnregisterWordA (arg1, (LPCSTR) lpszReading, arg3, (LPCSTR) lpszUnregister);
|
|
2770 }
|
|
2771
|
|
2772 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2773
|
|
2774 #if defined (HAVE_MS_WINDOWS)
|
|
2775
|
|
2776 /* Error if ImmGetRegisterWordStyle used: split-sized STYLEBUF */
|
|
2777
|
|
2778 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2779
|
|
2780 #if defined (HAVE_MS_WINDOWS)
|
|
2781
|
|
2782 UINT
|
|
2783 qxeImmEnumRegisterWord (HKL arg1, REGISTERWORDENUMPROCW arg2, const Extbyte * lpszReading, DWORD arg4, const Extbyte * lpszRegister, LPVOID arg6)
|
|
2784 {
|
|
2785 if (XEUNICODE_P)
|
|
2786 return ImmEnumRegisterWordW (arg1, arg2, (LPCWSTR) lpszReading, arg4, (LPCWSTR) lpszRegister, arg6);
|
|
2787 else
|
|
2788 return ImmEnumRegisterWordA (arg1, (REGISTERWORDENUMPROCA) arg2, (LPCSTR) lpszReading, arg4, (LPCSTR) lpszRegister, arg6);
|
|
2789 }
|
|
2790
|
|
2791 #endif /* defined (HAVE_MS_WINDOWS) */
|
|
2792
|
|
2793 #if defined (HAVE_MS_WINDOWS)
|
|
2794
|
|
2795 /* Error if ImmGetImeMenuItems used: split-sized IMEMENUITEMINFO */
|
|
2796
|
|
2797 #endif /* defined (HAVE_MS_WINDOWS) */
|
771
|
2798
|
|
2799
|
|
2800 /*----------------------------------------------------------------------*/
|
|
2801 /* Processing file WINBASE.H */
|
|
2802 /*----------------------------------------------------------------------*/
|
|
2803
|
|
2804 BOOL
|
|
2805 qxeGetBinaryType (const Extbyte * lpApplicationName, LPDWORD lpBinaryType)
|
|
2806 {
|
|
2807 if (XEUNICODE_P)
|
|
2808 return GetBinaryTypeW ((LPCWSTR) lpApplicationName, lpBinaryType);
|
|
2809 else
|
|
2810 return GetBinaryTypeA ((LPCSTR) lpApplicationName, lpBinaryType);
|
|
2811 }
|
|
2812
|
|
2813 DWORD
|
|
2814 qxeGetShortPathName (const Extbyte * lpszLongPath, Extbyte * lpszShortPath, DWORD cchBuffer)
|
|
2815 {
|
|
2816 if (XEUNICODE_P)
|
|
2817 return GetShortPathNameW ((LPCWSTR) lpszLongPath, (LPWSTR) lpszShortPath, cchBuffer);
|
|
2818 else
|
|
2819 return GetShortPathNameA ((LPCSTR) lpszLongPath, (LPSTR) lpszShortPath, cchBuffer);
|
|
2820 }
|
|
2821
|
1684
|
2822 /* Error if GetLongPathName used: Win98/2K+ only */
|
771
|
2823
|
827
|
2824 /* Skipping GetEnvironmentStrings because misnamed ANSI version of the function */
|
|
2825
|
771
|
2826 BOOL
|
|
2827 qxeFreeEnvironmentStrings (Extbyte * arg1)
|
|
2828 {
|
|
2829 if (XEUNICODE_P)
|
|
2830 return FreeEnvironmentStringsW ((LPWSTR) arg1);
|
|
2831 else
|
|
2832 return FreeEnvironmentStringsA ((LPSTR) arg1);
|
|
2833 }
|
|
2834
|
|
2835 DWORD
|
|
2836 qxeFormatMessage (DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, Extbyte * lpBuffer, DWORD nSize, va_list * Arguments)
|
|
2837 {
|
|
2838 if (XEUNICODE_P)
|
|
2839 return FormatMessageW (dwFlags, lpSource, dwMessageId, dwLanguageId, (LPWSTR) lpBuffer, nSize, Arguments);
|
|
2840 else
|
|
2841 return FormatMessageA (dwFlags, lpSource, dwMessageId, dwLanguageId, (LPSTR) lpBuffer, nSize, Arguments);
|
|
2842 }
|
|
2843
|
|
2844 HANDLE
|
|
2845 qxeCreateMailslot (const Extbyte * lpName, DWORD nMaxMessageSize, DWORD lReadTimeout, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
2846 {
|
|
2847 if (XEUNICODE_P)
|
|
2848 return CreateMailslotW ((LPCWSTR) lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes);
|
|
2849 else
|
|
2850 return CreateMailslotA ((LPCSTR) lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes);
|
|
2851 }
|
|
2852
|
|
2853 #if !defined (CYGWIN_HEADERS)
|
|
2854
|
778
|
2855 /* Error if EncryptFile used: Win2K+ only */
|
771
|
2856
|
|
2857 #endif /* !defined (CYGWIN_HEADERS) */
|
|
2858
|
|
2859 #if !defined (CYGWIN_HEADERS)
|
|
2860
|
778
|
2861 /* Error if DecryptFile used: Win2K+ only */
|
771
|
2862
|
|
2863 #endif /* !defined (CYGWIN_HEADERS) */
|
|
2864
|
|
2865 /* Error if OpenRaw used: error "The procedure entry point OpenRawW could not be located in the dynamic link library ADVAPI32.dll." */
|
|
2866
|
|
2867 /* Error if QueryRecoveryAgents used: split-sized LPRECOVERY_AGENT_INFORMATION */
|
|
2868
|
|
2869 int
|
|
2870 qxelstrcmp (const Extbyte * lpString1, const Extbyte * lpString2)
|
|
2871 {
|
|
2872 if (XEUNICODE_P)
|
|
2873 return lstrcmpW ((LPCWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2874 else
|
|
2875 return lstrcmpA ((LPCSTR) lpString1, (LPCSTR) lpString2);
|
|
2876 }
|
|
2877
|
|
2878 int
|
|
2879 qxelstrcmpi (const Extbyte * lpString1, const Extbyte * lpString2)
|
|
2880 {
|
|
2881 if (XEUNICODE_P)
|
|
2882 return lstrcmpiW ((LPCWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2883 else
|
|
2884 return lstrcmpiA ((LPCSTR) lpString1, (LPCSTR) lpString2);
|
|
2885 }
|
|
2886
|
|
2887 Extbyte *
|
|
2888 qxelstrcpyn (Extbyte * lpString1, const Extbyte * lpString2, int iMaxLength)
|
|
2889 {
|
|
2890 if (XEUNICODE_P)
|
|
2891 return (Extbyte *) lstrcpynW ((LPWSTR) lpString1, (LPCWSTR) lpString2, iMaxLength);
|
|
2892 else
|
|
2893 return (Extbyte *) lstrcpynA ((LPSTR) lpString1, (LPCSTR) lpString2, iMaxLength);
|
|
2894 }
|
|
2895
|
|
2896 Extbyte *
|
|
2897 qxelstrcpy (Extbyte * lpString1, const Extbyte * lpString2)
|
|
2898 {
|
|
2899 if (XEUNICODE_P)
|
|
2900 return (Extbyte *) lstrcpyW ((LPWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2901 else
|
|
2902 return (Extbyte *) lstrcpyA ((LPSTR) lpString1, (LPCSTR) lpString2);
|
|
2903 }
|
|
2904
|
|
2905 Extbyte *
|
|
2906 qxelstrcat (Extbyte * lpString1, const Extbyte * lpString2)
|
|
2907 {
|
|
2908 if (XEUNICODE_P)
|
|
2909 return (Extbyte *) lstrcatW ((LPWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2910 else
|
|
2911 return (Extbyte *) lstrcatA ((LPSTR) lpString1, (LPCSTR) lpString2);
|
|
2912 }
|
|
2913
|
|
2914 int
|
|
2915 qxelstrlen (const Extbyte * lpString)
|
|
2916 {
|
|
2917 if (XEUNICODE_P)
|
|
2918 return lstrlenW ((LPCWSTR) lpString);
|
|
2919 else
|
|
2920 return lstrlenA ((LPCSTR) lpString);
|
|
2921 }
|
|
2922
|
|
2923 HANDLE
|
|
2924 qxeCreateMutex (LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner, const Extbyte * lpName)
|
|
2925 {
|
|
2926 if (XEUNICODE_P)
|
|
2927 return CreateMutexW (lpMutexAttributes, bInitialOwner, (LPCWSTR) lpName);
|
|
2928 else
|
|
2929 return CreateMutexA (lpMutexAttributes, bInitialOwner, (LPCSTR) lpName);
|
|
2930 }
|
|
2931
|
|
2932 HANDLE
|
|
2933 qxeOpenMutex (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2934 {
|
|
2935 if (XEUNICODE_P)
|
|
2936 return OpenMutexW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2937 else
|
|
2938 return OpenMutexA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2939 }
|
|
2940
|
|
2941 HANDLE
|
|
2942 qxeCreateEvent (LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, const Extbyte * lpName)
|
|
2943 {
|
|
2944 if (XEUNICODE_P)
|
|
2945 return CreateEventW (lpEventAttributes, bManualReset, bInitialState, (LPCWSTR) lpName);
|
|
2946 else
|
|
2947 return CreateEventA (lpEventAttributes, bManualReset, bInitialState, (LPCSTR) lpName);
|
|
2948 }
|
|
2949
|
|
2950 HANDLE
|
|
2951 qxeOpenEvent (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2952 {
|
|
2953 if (XEUNICODE_P)
|
|
2954 return OpenEventW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2955 else
|
|
2956 return OpenEventA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2957 }
|
|
2958
|
|
2959 HANDLE
|
|
2960 qxeCreateSemaphore (LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, const Extbyte * lpName)
|
|
2961 {
|
|
2962 if (XEUNICODE_P)
|
|
2963 return CreateSemaphoreW (lpSemaphoreAttributes, lInitialCount, lMaximumCount, (LPCWSTR) lpName);
|
|
2964 else
|
|
2965 return CreateSemaphoreA (lpSemaphoreAttributes, lInitialCount, lMaximumCount, (LPCSTR) lpName);
|
|
2966 }
|
|
2967
|
|
2968 HANDLE
|
|
2969 qxeOpenSemaphore (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2970 {
|
|
2971 if (XEUNICODE_P)
|
|
2972 return OpenSemaphoreW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2973 else
|
|
2974 return OpenSemaphoreA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2975 }
|
|
2976
|
|
2977 HANDLE
|
|
2978 qxeCreateWaitableTimer (LPSECURITY_ATTRIBUTES lpTimerAttributes, BOOL bManualReset, const Extbyte * lpTimerName)
|
|
2979 {
|
|
2980 if (XEUNICODE_P)
|
|
2981 return CreateWaitableTimerW (lpTimerAttributes, bManualReset, (LPCWSTR) lpTimerName);
|
|
2982 else
|
|
2983 return CreateWaitableTimerA (lpTimerAttributes, bManualReset, (LPCSTR) lpTimerName);
|
|
2984 }
|
|
2985
|
|
2986 HANDLE
|
|
2987 qxeOpenWaitableTimer (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpTimerName)
|
|
2988 {
|
|
2989 if (XEUNICODE_P)
|
|
2990 return OpenWaitableTimerW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpTimerName);
|
|
2991 else
|
|
2992 return OpenWaitableTimerA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpTimerName);
|
|
2993 }
|
|
2994
|
|
2995 HANDLE
|
|
2996 qxeCreateFileMapping (HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, const Extbyte * lpName)
|
|
2997 {
|
|
2998 if (XEUNICODE_P)
|
|
2999 return CreateFileMappingW (hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, (LPCWSTR) lpName);
|
|
3000 else
|
|
3001 return CreateFileMappingA (hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, (LPCSTR) lpName);
|
|
3002 }
|
|
3003
|
|
3004 HANDLE
|
|
3005 qxeOpenFileMapping (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
3006 {
|
|
3007 if (XEUNICODE_P)
|
|
3008 return OpenFileMappingW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
3009 else
|
|
3010 return OpenFileMappingA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
3011 }
|
|
3012
|
|
3013 DWORD
|
|
3014 qxeGetLogicalDriveStrings (DWORD nBufferLength, Extbyte * lpBuffer)
|
|
3015 {
|
|
3016 if (XEUNICODE_P)
|
|
3017 return GetLogicalDriveStringsW (nBufferLength, (LPWSTR) lpBuffer);
|
|
3018 else
|
|
3019 return GetLogicalDriveStringsA (nBufferLength, (LPSTR) lpBuffer);
|
|
3020 }
|
|
3021
|
|
3022 HMODULE
|
|
3023 qxeLoadLibrary (const Extbyte * lpLibFileName)
|
|
3024 {
|
|
3025 if (XEUNICODE_P)
|
|
3026 return LoadLibraryW ((LPCWSTR) lpLibFileName);
|
|
3027 else
|
|
3028 return LoadLibraryA ((LPCSTR) lpLibFileName);
|
|
3029 }
|
|
3030
|
|
3031 HMODULE
|
|
3032 qxeLoadLibraryEx (const Extbyte * lpLibFileName, HANDLE hFile, DWORD dwFlags)
|
|
3033 {
|
|
3034 if (XEUNICODE_P)
|
|
3035 return LoadLibraryExW ((LPCWSTR) lpLibFileName, hFile, dwFlags);
|
|
3036 else
|
|
3037 return LoadLibraryExA ((LPCSTR) lpLibFileName, hFile, dwFlags);
|
|
3038 }
|
|
3039
|
|
3040 DWORD
|
|
3041 qxeGetModuleFileName (HMODULE hModule, Extbyte * lpFilename, DWORD nSize)
|
|
3042 {
|
|
3043 if (XEUNICODE_P)
|
|
3044 return GetModuleFileNameW (hModule, (LPWSTR) lpFilename, nSize);
|
|
3045 else
|
|
3046 return GetModuleFileNameA (hModule, (LPSTR) lpFilename, nSize);
|
|
3047 }
|
|
3048
|
|
3049 HMODULE
|
|
3050 qxeGetModuleHandle (const Extbyte * lpModuleName)
|
|
3051 {
|
|
3052 if (XEUNICODE_P)
|
|
3053 return GetModuleHandleW ((LPCWSTR) lpModuleName);
|
|
3054 else
|
|
3055 return GetModuleHandleA ((LPCSTR) lpModuleName);
|
|
3056 }
|
|
3057
|
|
3058 BOOL
|
|
3059 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)
|
|
3060 {
|
|
3061 if (XEUNICODE_P)
|
|
3062 return CreateProcessW ((LPCWSTR) lpApplicationName, (LPWSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCWSTR) lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
|
|
3063 else
|
|
3064 return CreateProcessA ((LPCSTR) lpApplicationName, (LPSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCSTR) lpCurrentDirectory, (LPSTARTUPINFOA) lpStartupInfo, lpProcessInformation);
|
|
3065 }
|
|
3066
|
|
3067 VOID
|
|
3068 qxeFatalAppExit (UINT uAction, const Extbyte * lpMessageText)
|
|
3069 {
|
|
3070 if (XEUNICODE_P)
|
|
3071 FatalAppExitW (uAction, (LPCWSTR) lpMessageText);
|
|
3072 else
|
|
3073 FatalAppExitA (uAction, (LPCSTR) lpMessageText);
|
|
3074 }
|
|
3075
|
|
3076 VOID
|
|
3077 qxeGetStartupInfo (LPSTARTUPINFOW lpStartupInfo)
|
|
3078 {
|
|
3079 if (XEUNICODE_P)
|
|
3080 GetStartupInfoW (lpStartupInfo);
|
|
3081 else
|
|
3082 GetStartupInfoA ((LPSTARTUPINFOA) lpStartupInfo);
|
|
3083 }
|
|
3084
|
|
3085 Extbyte *
|
|
3086 qxeGetCommandLine (void)
|
|
3087 {
|
|
3088 if (XEUNICODE_P)
|
|
3089 return (Extbyte *) GetCommandLineW ();
|
|
3090 else
|
|
3091 return (Extbyte *) GetCommandLineA ();
|
|
3092 }
|
|
3093
|
|
3094 DWORD
|
|
3095 qxeGetEnvironmentVariable (const Extbyte * lpName, Extbyte * lpBuffer, DWORD nSize)
|
|
3096 {
|
|
3097 if (XEUNICODE_P)
|
|
3098 return GetEnvironmentVariableW ((LPCWSTR) lpName, (LPWSTR) lpBuffer, nSize);
|
|
3099 else
|
|
3100 return GetEnvironmentVariableA ((LPCSTR) lpName, (LPSTR) lpBuffer, nSize);
|
|
3101 }
|
|
3102
|
|
3103 BOOL
|
|
3104 qxeSetEnvironmentVariable (const Extbyte * lpName, const Extbyte * lpValue)
|
|
3105 {
|
|
3106 if (XEUNICODE_P)
|
|
3107 return SetEnvironmentVariableW ((LPCWSTR) lpName, (LPCWSTR) lpValue);
|
|
3108 else
|
|
3109 return SetEnvironmentVariableA ((LPCSTR) lpName, (LPCSTR) lpValue);
|
|
3110 }
|
|
3111
|
|
3112 DWORD
|
|
3113 qxeExpandEnvironmentStrings (const Extbyte * lpSrc, Extbyte * lpDst, DWORD nSize)
|
|
3114 {
|
|
3115 if (XEUNICODE_P)
|
|
3116 return ExpandEnvironmentStringsW ((LPCWSTR) lpSrc, (LPWSTR) lpDst, nSize);
|
|
3117 else
|
|
3118 return ExpandEnvironmentStringsA ((LPCSTR) lpSrc, (LPSTR) lpDst, nSize);
|
|
3119 }
|
|
3120
|
|
3121 VOID
|
|
3122 qxeOutputDebugString (const Extbyte * lpOutputString)
|
|
3123 {
|
|
3124 if (XEUNICODE_P)
|
|
3125 OutputDebugStringW ((LPCWSTR) lpOutputString);
|
|
3126 else
|
|
3127 OutputDebugStringA ((LPCSTR) lpOutputString);
|
|
3128 }
|
|
3129
|
|
3130 HRSRC
|
|
3131 qxeFindResource (HMODULE hModule, const Extbyte * lpName, const Extbyte * lpType)
|
|
3132 {
|
|
3133 if (XEUNICODE_P)
|
|
3134 return FindResourceW (hModule, (LPCWSTR) lpName, (LPCWSTR) lpType);
|
|
3135 else
|
|
3136 return FindResourceA (hModule, (LPCSTR) lpName, (LPCSTR) lpType);
|
|
3137 }
|
|
3138
|
|
3139 HRSRC
|
|
3140 qxeFindResourceEx (HMODULE hModule, const Extbyte * lpType, const Extbyte * lpName, WORD wLanguage)
|
|
3141 {
|
|
3142 if (XEUNICODE_P)
|
|
3143 return FindResourceExW (hModule, (LPCWSTR) lpType, (LPCWSTR) lpName, wLanguage);
|
|
3144 else
|
|
3145 return FindResourceExA (hModule, (LPCSTR) lpType, (LPCSTR) lpName, wLanguage);
|
|
3146 }
|
|
3147
|
|
3148 BOOL
|
|
3149 qxeEnumResourceTypes (HMODULE hModule, ENUMRESTYPEPROC lpEnumFunc, LONG lParam)
|
|
3150 {
|
|
3151 if (XEUNICODE_P)
|
|
3152 return EnumResourceTypesW (hModule, lpEnumFunc, lParam);
|
|
3153 else
|
|
3154 return EnumResourceTypesA (hModule, lpEnumFunc, lParam);
|
|
3155 }
|
|
3156
|
|
3157 BOOL
|
|
3158 qxeEnumResourceNames (HMODULE hModule, const Extbyte * lpType, ENUMRESNAMEPROC lpEnumFunc, LONG lParam)
|
|
3159 {
|
|
3160 if (XEUNICODE_P)
|
|
3161 return EnumResourceNamesW (hModule, (LPCWSTR) lpType, lpEnumFunc, lParam);
|
|
3162 else
|
|
3163 return EnumResourceNamesA (hModule, (LPCSTR) lpType, lpEnumFunc, lParam);
|
|
3164 }
|
|
3165
|
|
3166 BOOL
|
|
3167 qxeEnumResourceLanguages (HMODULE hModule, const Extbyte * lpType, const Extbyte * lpName, ENUMRESLANGPROC lpEnumFunc, LONG lParam)
|
|
3168 {
|
|
3169 if (XEUNICODE_P)
|
|
3170 return EnumResourceLanguagesW (hModule, (LPCWSTR) lpType, (LPCWSTR) lpName, lpEnumFunc, lParam);
|
|
3171 else
|
|
3172 return EnumResourceLanguagesA (hModule, (LPCSTR) lpType, (LPCSTR) lpName, lpEnumFunc, lParam);
|
|
3173 }
|
|
3174
|
|
3175 HANDLE
|
|
3176 qxeBeginUpdateResource (const Extbyte * pFileName, BOOL bDeleteExistingResources)
|
|
3177 {
|
|
3178 if (XEUNICODE_P)
|
|
3179 return BeginUpdateResourceW ((LPCWSTR) pFileName, bDeleteExistingResources);
|
|
3180 else
|
|
3181 return BeginUpdateResourceA ((LPCSTR) pFileName, bDeleteExistingResources);
|
|
3182 }
|
|
3183
|
|
3184 BOOL
|
|
3185 qxeUpdateResource (HANDLE hUpdate, const Extbyte * lpType, const Extbyte * lpName, WORD wLanguage, LPVOID lpData, DWORD cbData)
|
|
3186 {
|
|
3187 if (XEUNICODE_P)
|
|
3188 return UpdateResourceW (hUpdate, (LPCWSTR) lpType, (LPCWSTR) lpName, wLanguage, lpData, cbData);
|
|
3189 else
|
|
3190 return UpdateResourceA (hUpdate, (LPCSTR) lpType, (LPCSTR) lpName, wLanguage, lpData, cbData);
|
|
3191 }
|
|
3192
|
|
3193 BOOL
|
|
3194 qxeEndUpdateResource (HANDLE hUpdate, BOOL fDiscard)
|
|
3195 {
|
|
3196 if (XEUNICODE_P)
|
|
3197 return EndUpdateResourceW (hUpdate, fDiscard);
|
|
3198 else
|
|
3199 return EndUpdateResourceA (hUpdate, fDiscard);
|
|
3200 }
|
|
3201
|
|
3202 ATOM
|
|
3203 qxeGlobalAddAtom (const Extbyte * lpString)
|
|
3204 {
|
|
3205 if (XEUNICODE_P)
|
|
3206 return GlobalAddAtomW ((LPCWSTR) lpString);
|
|
3207 else
|
|
3208 return GlobalAddAtomA ((LPCSTR) lpString);
|
|
3209 }
|
|
3210
|
|
3211 ATOM
|
|
3212 qxeGlobalFindAtom (const Extbyte * lpString)
|
|
3213 {
|
|
3214 if (XEUNICODE_P)
|
|
3215 return GlobalFindAtomW ((LPCWSTR) lpString);
|
|
3216 else
|
|
3217 return GlobalFindAtomA ((LPCSTR) lpString);
|
|
3218 }
|
|
3219
|
|
3220 UINT
|
|
3221 qxeGlobalGetAtomName (ATOM nAtom, Extbyte * lpBuffer, int nSize)
|
|
3222 {
|
|
3223 if (XEUNICODE_P)
|
|
3224 return GlobalGetAtomNameW (nAtom, (LPWSTR) lpBuffer, nSize);
|
|
3225 else
|
|
3226 return GlobalGetAtomNameA (nAtom, (LPSTR) lpBuffer, nSize);
|
|
3227 }
|
|
3228
|
|
3229 ATOM
|
|
3230 qxeAddAtom (const Extbyte * lpString)
|
|
3231 {
|
|
3232 if (XEUNICODE_P)
|
|
3233 return AddAtomW ((LPCWSTR) lpString);
|
|
3234 else
|
|
3235 return AddAtomA ((LPCSTR) lpString);
|
|
3236 }
|
|
3237
|
|
3238 ATOM
|
|
3239 qxeFindAtom (const Extbyte * lpString)
|
|
3240 {
|
|
3241 if (XEUNICODE_P)
|
|
3242 return FindAtomW ((LPCWSTR) lpString);
|
|
3243 else
|
|
3244 return FindAtomA ((LPCSTR) lpString);
|
|
3245 }
|
|
3246
|
|
3247 UINT
|
|
3248 qxeGetAtomName (ATOM nAtom, Extbyte * lpBuffer, int nSize)
|
|
3249 {
|
|
3250 if (XEUNICODE_P)
|
|
3251 return GetAtomNameW (nAtom, (LPWSTR) lpBuffer, nSize);
|
|
3252 else
|
|
3253 return GetAtomNameA (nAtom, (LPSTR) lpBuffer, nSize);
|
|
3254 }
|
|
3255
|
|
3256 UINT
|
|
3257 qxeGetProfileInt (const Extbyte * lpAppName, const Extbyte * lpKeyName, INT nDefault)
|
|
3258 {
|
|
3259 if (XEUNICODE_P)
|
|
3260 return GetProfileIntW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, nDefault);
|
|
3261 else
|
|
3262 return GetProfileIntA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, nDefault);
|
|
3263 }
|
|
3264
|
|
3265 DWORD
|
|
3266 qxeGetProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpDefault, Extbyte * lpReturnedString, DWORD nSize)
|
|
3267 {
|
|
3268 if (XEUNICODE_P)
|
|
3269 return GetProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpDefault, (LPWSTR) lpReturnedString, nSize);
|
|
3270 else
|
|
3271 return GetProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpDefault, (LPSTR) lpReturnedString, nSize);
|
|
3272 }
|
|
3273
|
|
3274 BOOL
|
|
3275 qxeWriteProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpString)
|
|
3276 {
|
|
3277 if (XEUNICODE_P)
|
|
3278 return WriteProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpString);
|
|
3279 else
|
|
3280 return WriteProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpString);
|
|
3281 }
|
|
3282
|
|
3283 DWORD
|
|
3284 qxeGetProfileSection (const Extbyte * lpAppName, Extbyte * lpReturnedString, DWORD nSize)
|
|
3285 {
|
|
3286 if (XEUNICODE_P)
|
|
3287 return GetProfileSectionW ((LPCWSTR) lpAppName, (LPWSTR) lpReturnedString, nSize);
|
|
3288 else
|
|
3289 return GetProfileSectionA ((LPCSTR) lpAppName, (LPSTR) lpReturnedString, nSize);
|
|
3290 }
|
|
3291
|
|
3292 BOOL
|
|
3293 qxeWriteProfileSection (const Extbyte * lpAppName, const Extbyte * lpString)
|
|
3294 {
|
|
3295 if (XEUNICODE_P)
|
|
3296 return WriteProfileSectionW ((LPCWSTR) lpAppName, (LPCWSTR) lpString);
|
|
3297 else
|
|
3298 return WriteProfileSectionA ((LPCSTR) lpAppName, (LPCSTR) lpString);
|
|
3299 }
|
|
3300
|
|
3301 UINT
|
|
3302 qxeGetPrivateProfileInt (const Extbyte * lpAppName, const Extbyte * lpKeyName, INT nDefault, const Extbyte * lpFileName)
|
|
3303 {
|
|
3304 if (XEUNICODE_P)
|
|
3305 return GetPrivateProfileIntW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, nDefault, (LPCWSTR) lpFileName);
|
|
3306 else
|
|
3307 return GetPrivateProfileIntA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, nDefault, (LPCSTR) lpFileName);
|
|
3308 }
|
|
3309
|
|
3310 DWORD
|
|
3311 qxeGetPrivateProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpDefault, Extbyte * lpReturnedString, DWORD nSize, const Extbyte * lpFileName)
|
|
3312 {
|
|
3313 if (XEUNICODE_P)
|
|
3314 return GetPrivateProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpDefault, (LPWSTR) lpReturnedString, nSize, (LPCWSTR) lpFileName);
|
|
3315 else
|
|
3316 return GetPrivateProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpDefault, (LPSTR) lpReturnedString, nSize, (LPCSTR) lpFileName);
|
|
3317 }
|
|
3318
|
|
3319 BOOL
|
|
3320 qxeWritePrivateProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpString, const Extbyte * lpFileName)
|
|
3321 {
|
|
3322 if (XEUNICODE_P)
|
|
3323 return WritePrivateProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpString, (LPCWSTR) lpFileName);
|
|
3324 else
|
|
3325 return WritePrivateProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpString, (LPCSTR) lpFileName);
|
|
3326 }
|
|
3327
|
|
3328 DWORD
|
|
3329 qxeGetPrivateProfileSection (const Extbyte * lpAppName, Extbyte * lpReturnedString, DWORD nSize, const Extbyte * lpFileName)
|
|
3330 {
|
|
3331 if (XEUNICODE_P)
|
|
3332 return GetPrivateProfileSectionW ((LPCWSTR) lpAppName, (LPWSTR) lpReturnedString, nSize, (LPCWSTR) lpFileName);
|
|
3333 else
|
|
3334 return GetPrivateProfileSectionA ((LPCSTR) lpAppName, (LPSTR) lpReturnedString, nSize, (LPCSTR) lpFileName);
|
|
3335 }
|
|
3336
|
|
3337 BOOL
|
|
3338 qxeWritePrivateProfileSection (const Extbyte * lpAppName, const Extbyte * lpString, const Extbyte * lpFileName)
|
|
3339 {
|
|
3340 if (XEUNICODE_P)
|
|
3341 return WritePrivateProfileSectionW ((LPCWSTR) lpAppName, (LPCWSTR) lpString, (LPCWSTR) lpFileName);
|
|
3342 else
|
|
3343 return WritePrivateProfileSectionA ((LPCSTR) lpAppName, (LPCSTR) lpString, (LPCSTR) lpFileName);
|
|
3344 }
|
|
3345
|
|
3346 DWORD
|
|
3347 qxeGetPrivateProfileSectionNames (Extbyte * lpszReturnBuffer, DWORD nSize, const Extbyte * lpFileName)
|
|
3348 {
|
|
3349 if (XEUNICODE_P)
|
|
3350 return GetPrivateProfileSectionNamesW ((LPWSTR) lpszReturnBuffer, nSize, (LPCWSTR) lpFileName);
|
|
3351 else
|
|
3352 return GetPrivateProfileSectionNamesA ((LPSTR) lpszReturnBuffer, nSize, (LPCSTR) lpFileName);
|
|
3353 }
|
|
3354
|
|
3355 BOOL
|
|
3356 qxeGetPrivateProfileStruct (const Extbyte * lpszSection, const Extbyte * lpszKey, LPVOID lpStruct, UINT uSizeStruct, const Extbyte * szFile)
|
|
3357 {
|
|
3358 if (XEUNICODE_P)
|
|
3359 return GetPrivateProfileStructW ((LPCWSTR) lpszSection, (LPCWSTR) lpszKey, lpStruct, uSizeStruct, (LPCWSTR) szFile);
|
|
3360 else
|
|
3361 return GetPrivateProfileStructA ((LPCSTR) lpszSection, (LPCSTR) lpszKey, lpStruct, uSizeStruct, (LPCSTR) szFile);
|
|
3362 }
|
|
3363
|
|
3364 BOOL
|
|
3365 qxeWritePrivateProfileStruct (const Extbyte * lpszSection, const Extbyte * lpszKey, LPVOID lpStruct, UINT uSizeStruct, const Extbyte * szFile)
|
|
3366 {
|
|
3367 if (XEUNICODE_P)
|
|
3368 return WritePrivateProfileStructW ((LPCWSTR) lpszSection, (LPCWSTR) lpszKey, lpStruct, uSizeStruct, (LPCWSTR) szFile);
|
|
3369 else
|
|
3370 return WritePrivateProfileStructA ((LPCSTR) lpszSection, (LPCSTR) lpszKey, lpStruct, uSizeStruct, (LPCSTR) szFile);
|
|
3371 }
|
|
3372
|
|
3373 UINT
|
|
3374 qxeGetDriveType (const Extbyte * lpRootPathName)
|
|
3375 {
|
|
3376 if (XEUNICODE_P)
|
|
3377 return GetDriveTypeW ((LPCWSTR) lpRootPathName);
|
|
3378 else
|
|
3379 return GetDriveTypeA ((LPCSTR) lpRootPathName);
|
|
3380 }
|
|
3381
|
|
3382 UINT
|
|
3383 qxeGetSystemDirectory (Extbyte * lpBuffer, UINT uSize)
|
|
3384 {
|
|
3385 if (XEUNICODE_P)
|
|
3386 return GetSystemDirectoryW ((LPWSTR) lpBuffer, uSize);
|
|
3387 else
|
|
3388 return GetSystemDirectoryA ((LPSTR) lpBuffer, uSize);
|
|
3389 }
|
|
3390
|
|
3391 DWORD
|
|
3392 qxeGetTempPath (DWORD nBufferLength, Extbyte * lpBuffer)
|
|
3393 {
|
|
3394 if (XEUNICODE_P)
|
|
3395 return GetTempPathW (nBufferLength, (LPWSTR) lpBuffer);
|
|
3396 else
|
|
3397 return GetTempPathA (nBufferLength, (LPSTR) lpBuffer);
|
|
3398 }
|
|
3399
|
|
3400 UINT
|
|
3401 qxeGetTempFileName (const Extbyte * lpPathName, const Extbyte * lpPrefixString, UINT uUnique, Extbyte * lpTempFileName)
|
|
3402 {
|
|
3403 if (XEUNICODE_P)
|
|
3404 return GetTempFileNameW ((LPCWSTR) lpPathName, (LPCWSTR) lpPrefixString, uUnique, (LPWSTR) lpTempFileName);
|
|
3405 else
|
|
3406 return GetTempFileNameA ((LPCSTR) lpPathName, (LPCSTR) lpPrefixString, uUnique, (LPSTR) lpTempFileName);
|
|
3407 }
|
|
3408
|
|
3409 UINT
|
|
3410 qxeGetWindowsDirectory (Extbyte * lpBuffer, UINT uSize)
|
|
3411 {
|
|
3412 if (XEUNICODE_P)
|
|
3413 return GetWindowsDirectoryW ((LPWSTR) lpBuffer, uSize);
|
|
3414 else
|
|
3415 return GetWindowsDirectoryA ((LPSTR) lpBuffer, uSize);
|
|
3416 }
|
|
3417
|
|
3418 BOOL
|
|
3419 qxeSetCurrentDirectory (const Extbyte * lpPathName)
|
|
3420 {
|
|
3421 if (XEUNICODE_P)
|
|
3422 return SetCurrentDirectoryW ((LPCWSTR) lpPathName);
|
|
3423 else
|
|
3424 return SetCurrentDirectoryA ((LPCSTR) lpPathName);
|
|
3425 }
|
|
3426
|
|
3427 DWORD
|
|
3428 qxeGetCurrentDirectory (DWORD nBufferLength, Extbyte * lpBuffer)
|
|
3429 {
|
|
3430 if (XEUNICODE_P)
|
|
3431 return GetCurrentDirectoryW (nBufferLength, (LPWSTR) lpBuffer);
|
|
3432 else
|
|
3433 return GetCurrentDirectoryA (nBufferLength, (LPSTR) lpBuffer);
|
|
3434 }
|
|
3435
|
|
3436 BOOL
|
|
3437 qxeGetDiskFreeSpace (const Extbyte * lpRootPathName, LPDWORD lpSectorsPerCluster, LPDWORD lpBytesPerSector, LPDWORD lpNumberOfFreeClusters, LPDWORD lpTotalNumberOfClusters)
|
|
3438 {
|
|
3439 if (XEUNICODE_P)
|
|
3440 return GetDiskFreeSpaceW ((LPCWSTR) lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters);
|
|
3441 else
|
|
3442 return GetDiskFreeSpaceA ((LPCSTR) lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters);
|
|
3443 }
|
|
3444
|
|
3445 BOOL
|
|
3446 qxeGetDiskFreeSpaceEx (const Extbyte * lpDirectoryName, PULARGE_INTEGER lpFreeBytesAvailableToCaller, PULARGE_INTEGER lpTotalNumberOfBytes, PULARGE_INTEGER lpTotalNumberOfFreeBytes)
|
|
3447 {
|
|
3448 if (XEUNICODE_P)
|
|
3449 return GetDiskFreeSpaceExW ((LPCWSTR) lpDirectoryName, lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes);
|
|
3450 else
|
|
3451 return GetDiskFreeSpaceExA ((LPCSTR) lpDirectoryName, lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes);
|
|
3452 }
|
|
3453
|
|
3454 BOOL
|
|
3455 qxeCreateDirectory (const Extbyte * lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
3456 {
|
|
3457 if (XEUNICODE_P)
|
|
3458 return CreateDirectoryW ((LPCWSTR) lpPathName, lpSecurityAttributes);
|
|
3459 else
|
|
3460 return CreateDirectoryA ((LPCSTR) lpPathName, lpSecurityAttributes);
|
|
3461 }
|
|
3462
|
|
3463 BOOL
|
|
3464 qxeCreateDirectoryEx (const Extbyte * lpTemplateDirectory, const Extbyte * lpNewDirectory, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
3465 {
|
|
3466 if (XEUNICODE_P)
|
|
3467 return CreateDirectoryExW ((LPCWSTR) lpTemplateDirectory, (LPCWSTR) lpNewDirectory, lpSecurityAttributes);
|
|
3468 else
|
|
3469 return CreateDirectoryExA ((LPCSTR) lpTemplateDirectory, (LPCSTR) lpNewDirectory, lpSecurityAttributes);
|
|
3470 }
|
|
3471
|
|
3472 BOOL
|
|
3473 qxeRemoveDirectory (const Extbyte * lpPathName)
|
|
3474 {
|
|
3475 if (XEUNICODE_P)
|
|
3476 return RemoveDirectoryW ((LPCWSTR) lpPathName);
|
|
3477 else
|
|
3478 return RemoveDirectoryA ((LPCSTR) lpPathName);
|
|
3479 }
|
|
3480
|
|
3481 DWORD
|
|
3482 qxeGetFullPathName (const Extbyte * lpFileName, DWORD nBufferLength, Extbyte * lpBuffer, Extbyte * * lpFilePart)
|
|
3483 {
|
|
3484 if (XEUNICODE_P)
|
|
3485 return GetFullPathNameW ((LPCWSTR) lpFileName, nBufferLength, (LPWSTR) lpBuffer, (LPWSTR *) lpFilePart);
|
|
3486 else
|
|
3487 return GetFullPathNameA ((LPCSTR) lpFileName, nBufferLength, (LPSTR) lpBuffer, (LPSTR *) lpFilePart);
|
|
3488 }
|
|
3489
|
|
3490 BOOL
|
|
3491 qxeDefineDosDevice (DWORD dwFlags, const Extbyte * lpDeviceName, const Extbyte * lpTargetPath)
|
|
3492 {
|
|
3493 if (XEUNICODE_P)
|
|
3494 return DefineDosDeviceW (dwFlags, (LPCWSTR) lpDeviceName, (LPCWSTR) lpTargetPath);
|
|
3495 else
|
|
3496 return DefineDosDeviceA (dwFlags, (LPCSTR) lpDeviceName, (LPCSTR) lpTargetPath);
|
|
3497 }
|
|
3498
|
|
3499 DWORD
|
|
3500 qxeQueryDosDevice (const Extbyte * lpDeviceName, Extbyte * lpTargetPath, DWORD ucchMax)
|
|
3501 {
|
|
3502 if (XEUNICODE_P)
|
|
3503 return QueryDosDeviceW ((LPCWSTR) lpDeviceName, (LPWSTR) lpTargetPath, ucchMax);
|
|
3504 else
|
|
3505 return QueryDosDeviceA ((LPCSTR) lpDeviceName, (LPSTR) lpTargetPath, ucchMax);
|
|
3506 }
|
|
3507
|
|
3508 HANDLE
|
|
3509 qxeCreateFile (const Extbyte * lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
|
|
3510 {
|
|
3511 if (XEUNICODE_P)
|
|
3512 return CreateFileW ((LPCWSTR) lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
|
|
3513 else
|
|
3514 return CreateFileA ((LPCSTR) lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
|
|
3515 }
|
|
3516
|
|
3517 BOOL
|
|
3518 qxeSetFileAttributes (const Extbyte * lpFileName, DWORD dwFileAttributes)
|
|
3519 {
|
|
3520 if (XEUNICODE_P)
|
|
3521 return SetFileAttributesW ((LPCWSTR) lpFileName, dwFileAttributes);
|
|
3522 else
|
|
3523 return SetFileAttributesA ((LPCSTR) lpFileName, dwFileAttributes);
|
|
3524 }
|
|
3525
|
|
3526 DWORD
|
|
3527 qxeGetFileAttributes (const Extbyte * lpFileName)
|
|
3528 {
|
|
3529 if (XEUNICODE_P)
|
|
3530 return GetFileAttributesW ((LPCWSTR) lpFileName);
|
|
3531 else
|
|
3532 return GetFileAttributesA ((LPCSTR) lpFileName);
|
|
3533 }
|
|
3534
|
|
3535 BOOL
|
|
3536 qxeGetFileAttributesEx (const Extbyte * lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
|
|
3537 {
|
|
3538 if (XEUNICODE_P)
|
|
3539 return GetFileAttributesExW ((LPCWSTR) lpFileName, fInfoLevelId, lpFileInformation);
|
|
3540 else
|
|
3541 return GetFileAttributesExA ((LPCSTR) lpFileName, fInfoLevelId, lpFileInformation);
|
|
3542 }
|
|
3543
|
|
3544 DWORD
|
|
3545 qxeGetCompressedFileSize (const Extbyte * lpFileName, LPDWORD lpFileSizeHigh)
|
|
3546 {
|
|
3547 if (XEUNICODE_P)
|
|
3548 return GetCompressedFileSizeW ((LPCWSTR) lpFileName, lpFileSizeHigh);
|
|
3549 else
|
|
3550 return GetCompressedFileSizeA ((LPCSTR) lpFileName, lpFileSizeHigh);
|
|
3551 }
|
|
3552
|
|
3553 BOOL
|
|
3554 qxeDeleteFile (const Extbyte * lpFileName)
|
|
3555 {
|
|
3556 if (XEUNICODE_P)
|
|
3557 return DeleteFileW ((LPCWSTR) lpFileName);
|
|
3558 else
|
|
3559 return DeleteFileA ((LPCSTR) lpFileName);
|
|
3560 }
|
|
3561
|
|
3562 /* Error if FindFirstFileEx used: split-sized LPWIN32_FIND_DATA; not used, NT 4.0+ only */
|
|
3563
|
|
3564 /* Skipping FindFirstFile because split-sized LPWIN32_FIND_DATA */
|
|
3565
|
|
3566 /* Skipping FindNextFile because split-sized LPWIN32_FIND_DATA */
|
|
3567
|
|
3568 DWORD
|
|
3569 qxeSearchPath (const Extbyte * lpPath, const Extbyte * lpFileName, const Extbyte * lpExtension, DWORD nBufferLength, Extbyte * lpBuffer, Extbyte * * lpFilePart)
|
|
3570 {
|
|
3571 if (XEUNICODE_P)
|
|
3572 return SearchPathW ((LPCWSTR) lpPath, (LPCWSTR) lpFileName, (LPCWSTR) lpExtension, nBufferLength, (LPWSTR) lpBuffer, (LPWSTR *) lpFilePart);
|
|
3573 else
|
|
3574 return SearchPathA ((LPCSTR) lpPath, (LPCSTR) lpFileName, (LPCSTR) lpExtension, nBufferLength, (LPSTR) lpBuffer, (LPSTR *) lpFilePart);
|
|
3575 }
|
|
3576
|
|
3577 BOOL
|
|
3578 qxeCopyFile (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, BOOL bFailIfExists)
|
|
3579 {
|
|
3580 if (XEUNICODE_P)
|
|
3581 return CopyFileW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, bFailIfExists);
|
|
3582 else
|
|
3583 return CopyFileA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, bFailIfExists);
|
|
3584 }
|
|
3585
|
|
3586 /* NOTE: NT 4.0+ only */
|
|
3587 BOOL
|
|
3588 qxeCopyFileEx (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, LPPROGRESS_ROUTINE lpProgressRoutine, LPVOID lpData, LPBOOL pbCancel, DWORD dwCopyFlags)
|
|
3589 {
|
|
3590 if (XEUNICODE_P)
|
|
3591 return CopyFileExW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, lpProgressRoutine, lpData, pbCancel, dwCopyFlags);
|
|
3592 else
|
|
3593 return CopyFileExA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, lpProgressRoutine, lpData, pbCancel, dwCopyFlags);
|
|
3594 }
|
|
3595
|
|
3596 BOOL
|
|
3597 qxeMoveFile (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName)
|
|
3598 {
|
|
3599 if (XEUNICODE_P)
|
|
3600 return MoveFileW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName);
|
|
3601 else
|
|
3602 return MoveFileA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName);
|
|
3603 }
|
|
3604
|
|
3605 BOOL
|
|
3606 qxeMoveFileEx (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, DWORD dwFlags)
|
|
3607 {
|
|
3608 if (XEUNICODE_P)
|
|
3609 return MoveFileExW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, dwFlags);
|
|
3610 else
|
|
3611 return MoveFileExA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, dwFlags);
|
|
3612 }
|
|
3613
|
|
3614 /* Error if MoveFileWithProgress used: NT 5.0+ only */
|
|
3615
|
|
3616 /* Error if CreateHardLink used: NT 5.0+ only */
|
|
3617
|
|
3618 HANDLE
|
|
3619 qxeCreateNamedPipe (const Extbyte * lpName, DWORD dwOpenMode, DWORD dwPipeMode, DWORD nMaxInstances, DWORD nOutBufferSize, DWORD nInBufferSize, DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
3620 {
|
|
3621 if (XEUNICODE_P)
|
|
3622 return CreateNamedPipeW ((LPCWSTR) lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes);
|
|
3623 else
|
|
3624 return CreateNamedPipeA ((LPCSTR) lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes);
|
|
3625 }
|
|
3626
|
|
3627 BOOL
|
|
3628 qxeGetNamedPipeHandleState (HANDLE hNamedPipe, LPDWORD lpState, LPDWORD lpCurInstances, LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout, Extbyte * lpUserName, DWORD nMaxUserNameSize)
|
|
3629 {
|
|
3630 if (XEUNICODE_P)
|
|
3631 return GetNamedPipeHandleStateW (hNamedPipe, lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout, (LPWSTR) lpUserName, nMaxUserNameSize);
|
|
3632 else
|
|
3633 return GetNamedPipeHandleStateA (hNamedPipe, lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout, (LPSTR) lpUserName, nMaxUserNameSize);
|
|
3634 }
|
|
3635
|
|
3636 BOOL
|
|
3637 qxeCallNamedPipe (const Extbyte * lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead, DWORD nTimeOut)
|
|
3638 {
|
|
3639 if (XEUNICODE_P)
|
|
3640 return CallNamedPipeW ((LPCWSTR) lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut);
|
|
3641 else
|
|
3642 return CallNamedPipeA ((LPCSTR) lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut);
|
|
3643 }
|
|
3644
|
|
3645 BOOL
|
|
3646 qxeWaitNamedPipe (const Extbyte * lpNamedPipeName, DWORD nTimeOut)
|
|
3647 {
|
|
3648 if (XEUNICODE_P)
|
|
3649 return WaitNamedPipeW ((LPCWSTR) lpNamedPipeName, nTimeOut);
|
|
3650 else
|
|
3651 return WaitNamedPipeA ((LPCSTR) lpNamedPipeName, nTimeOut);
|
|
3652 }
|
|
3653
|
|
3654 BOOL
|
|
3655 qxeSetVolumeLabel (const Extbyte * lpRootPathName, const Extbyte * lpVolumeName)
|
|
3656 {
|
|
3657 if (XEUNICODE_P)
|
|
3658 return SetVolumeLabelW ((LPCWSTR) lpRootPathName, (LPCWSTR) lpVolumeName);
|
|
3659 else
|
|
3660 return SetVolumeLabelA ((LPCSTR) lpRootPathName, (LPCSTR) lpVolumeName);
|
|
3661 }
|
|
3662
|
|
3663 BOOL
|
|
3664 qxeGetVolumeInformation (const Extbyte * lpRootPathName, Extbyte * lpVolumeNameBuffer, DWORD nVolumeNameSize, LPDWORD lpVolumeSerialNumber, LPDWORD lpMaximumComponentLength, LPDWORD lpFileSystemFlags, Extbyte * lpFileSystemNameBuffer, DWORD nFileSystemNameSize)
|
|
3665 {
|
|
3666 if (XEUNICODE_P)
|
|
3667 return GetVolumeInformationW ((LPCWSTR) lpRootPathName, (LPWSTR) lpVolumeNameBuffer, nVolumeNameSize, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, (LPWSTR) lpFileSystemNameBuffer, nFileSystemNameSize);
|
|
3668 else
|
|
3669 return GetVolumeInformationA ((LPCSTR) lpRootPathName, (LPSTR) lpVolumeNameBuffer, nVolumeNameSize, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, (LPSTR) lpFileSystemNameBuffer, nFileSystemNameSize);
|
|
3670 }
|
|
3671
|
|
3672 BOOL
|
|
3673 qxeClearEventLog (HANDLE hEventLog, const Extbyte * lpBackupFileName)
|
|
3674 {
|
|
3675 if (XEUNICODE_P)
|
|
3676 return ClearEventLogW (hEventLog, (LPCWSTR) lpBackupFileName);
|
|
3677 else
|
|
3678 return ClearEventLogA (hEventLog, (LPCSTR) lpBackupFileName);
|
|
3679 }
|
|
3680
|
|
3681 BOOL
|
|
3682 qxeBackupEventLog (HANDLE hEventLog, const Extbyte * lpBackupFileName)
|
|
3683 {
|
|
3684 if (XEUNICODE_P)
|
|
3685 return BackupEventLogW (hEventLog, (LPCWSTR) lpBackupFileName);
|
|
3686 else
|
|
3687 return BackupEventLogA (hEventLog, (LPCSTR) lpBackupFileName);
|
|
3688 }
|
|
3689
|
|
3690 HANDLE
|
|
3691 qxeOpenEventLog (const Extbyte * lpUNCServerName, const Extbyte * lpSourceName)
|
|
3692 {
|
|
3693 if (XEUNICODE_P)
|
|
3694 return OpenEventLogW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpSourceName);
|
|
3695 else
|
|
3696 return OpenEventLogA ((LPCSTR) lpUNCServerName, (LPCSTR) lpSourceName);
|
|
3697 }
|
|
3698
|
|
3699 HANDLE
|
|
3700 qxeRegisterEventSource (const Extbyte * lpUNCServerName, const Extbyte * lpSourceName)
|
|
3701 {
|
|
3702 if (XEUNICODE_P)
|
|
3703 return RegisterEventSourceW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpSourceName);
|
|
3704 else
|
|
3705 return RegisterEventSourceA ((LPCSTR) lpUNCServerName, (LPCSTR) lpSourceName);
|
|
3706 }
|
|
3707
|
|
3708 HANDLE
|
|
3709 qxeOpenBackupEventLog (const Extbyte * lpUNCServerName, const Extbyte * lpFileName)
|
|
3710 {
|
|
3711 if (XEUNICODE_P)
|
|
3712 return OpenBackupEventLogW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpFileName);
|
|
3713 else
|
|
3714 return OpenBackupEventLogA ((LPCSTR) lpUNCServerName, (LPCSTR) lpFileName);
|
|
3715 }
|
|
3716
|
|
3717 BOOL
|
|
3718 qxeReadEventLog (HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD * pnBytesRead, DWORD * pnMinNumberOfBytesNeeded)
|
|
3719 {
|
|
3720 if (XEUNICODE_P)
|
|
3721 return ReadEventLogW (hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
|
|
3722 else
|
|
3723 return ReadEventLogA (hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
|
|
3724 }
|
|
3725
|
|
3726 BOOL
|
|
3727 qxeReportEvent (HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dwEventID, PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, const Extbyte * * lpStrings, LPVOID lpRawData)
|
|
3728 {
|
|
3729 if (XEUNICODE_P)
|
|
3730 return ReportEventW (hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, (LPCWSTR *) lpStrings, lpRawData);
|
|
3731 else
|
|
3732 return ReportEventA (hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, (LPCSTR *) lpStrings, lpRawData);
|
|
3733 }
|
|
3734
|
|
3735 BOOL
|
|
3736 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)
|
|
3737 {
|
|
3738 if (XEUNICODE_P)
|
|
3739 return AccessCheckAndAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, (LPWSTR) ObjectTypeName, (LPWSTR) ObjectName, SecurityDescriptor, DesiredAccess, GenericMapping, ObjectCreation, GrantedAccess, AccessStatus, pfGenerateOnClose);
|
|
3740 else
|
|
3741 return AccessCheckAndAuditAlarmA ((LPCSTR) SubsystemName, HandleId, (LPSTR) ObjectTypeName, (LPSTR) ObjectName, SecurityDescriptor, DesiredAccess, GenericMapping, ObjectCreation, GrantedAccess, AccessStatus, pfGenerateOnClose);
|
|
3742 }
|
|
3743
|
|
3744 /* Error if AccessCheckByTypeAndAuditAlarm used: NT 5.0+ only */
|
|
3745
|
|
3746 /* Error if AccessCheckByTypeResultListAndAuditAlarm used: NT 5.0+ only */
|
|
3747
|
|
3748 BOOL
|
|
3749 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)
|
|
3750 {
|
|
3751 if (XEUNICODE_P)
|
|
3752 return ObjectOpenAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, (LPWSTR) ObjectTypeName, (LPWSTR) ObjectName, pSecurityDescriptor, ClientToken, DesiredAccess, GrantedAccess, Privileges, ObjectCreation, AccessGranted, GenerateOnClose);
|
|
3753 else
|
|
3754 return ObjectOpenAuditAlarmA ((LPCSTR) SubsystemName, HandleId, (LPSTR) ObjectTypeName, (LPSTR) ObjectName, pSecurityDescriptor, ClientToken, DesiredAccess, GrantedAccess, Privileges, ObjectCreation, AccessGranted, GenerateOnClose);
|
|
3755 }
|
|
3756
|
|
3757 BOOL
|
|
3758 qxeObjectPrivilegeAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, HANDLE ClientToken, DWORD DesiredAccess, PPRIVILEGE_SET Privileges, BOOL AccessGranted)
|
|
3759 {
|
|
3760 if (XEUNICODE_P)
|
|
3761 return ObjectPrivilegeAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, ClientToken, DesiredAccess, Privileges, AccessGranted);
|
|
3762 else
|
|
3763 return ObjectPrivilegeAuditAlarmA ((LPCSTR) SubsystemName, HandleId, ClientToken, DesiredAccess, Privileges, AccessGranted);
|
|
3764 }
|
|
3765
|
|
3766 BOOL
|
|
3767 qxeObjectCloseAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, BOOL GenerateOnClose)
|
|
3768 {
|
|
3769 if (XEUNICODE_P)
|
|
3770 return ObjectCloseAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3771 else
|
|
3772 return ObjectCloseAuditAlarmA ((LPCSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3773 }
|
|
3774
|
|
3775 BOOL
|
|
3776 qxeObjectDeleteAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, BOOL GenerateOnClose)
|
|
3777 {
|
|
3778 if (XEUNICODE_P)
|
|
3779 return ObjectDeleteAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3780 else
|
|
3781 return ObjectDeleteAuditAlarmA ((LPCSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3782 }
|
|
3783
|
|
3784 BOOL
|
|
3785 qxePrivilegedServiceAuditAlarm (const Extbyte * SubsystemName, const Extbyte * ServiceName, HANDLE ClientToken, PPRIVILEGE_SET Privileges, BOOL AccessGranted)
|
|
3786 {
|
|
3787 if (XEUNICODE_P)
|
|
3788 return PrivilegedServiceAuditAlarmW ((LPCWSTR) SubsystemName, (LPCWSTR) ServiceName, ClientToken, Privileges, AccessGranted);
|
|
3789 else
|
|
3790 return PrivilegedServiceAuditAlarmA ((LPCSTR) SubsystemName, (LPCSTR) ServiceName, ClientToken, Privileges, AccessGranted);
|
|
3791 }
|
|
3792
|
|
3793 BOOL
|
|
3794 qxeSetFileSecurity (const Extbyte * lpFileName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor)
|
|
3795 {
|
|
3796 if (XEUNICODE_P)
|
|
3797 return SetFileSecurityW ((LPCWSTR) lpFileName, SecurityInformation, pSecurityDescriptor);
|
|
3798 else
|
|
3799 return SetFileSecurityA ((LPCSTR) lpFileName, SecurityInformation, pSecurityDescriptor);
|
|
3800 }
|
|
3801
|
|
3802 BOOL
|
|
3803 qxeGetFileSecurity (const Extbyte * lpFileName, SECURITY_INFORMATION RequestedInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded)
|
|
3804 {
|
|
3805 if (XEUNICODE_P)
|
|
3806 return GetFileSecurityW ((LPCWSTR) lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded);
|
|
3807 else
|
|
3808 return GetFileSecurityA ((LPCSTR) lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded);
|
|
3809 }
|
|
3810
|
|
3811 HANDLE
|
|
3812 qxeFindFirstChangeNotification (const Extbyte * lpPathName, BOOL bWatchSubtree, DWORD dwNotifyFilter)
|
|
3813 {
|
|
3814 if (XEUNICODE_P)
|
|
3815 return FindFirstChangeNotificationW ((LPCWSTR) lpPathName, bWatchSubtree, dwNotifyFilter);
|
|
3816 else
|
|
3817 return FindFirstChangeNotificationA ((LPCSTR) lpPathName, bWatchSubtree, dwNotifyFilter);
|
|
3818 }
|
|
3819
|
|
3820 /* Error if ReadDirectoryChanges used: Unicode-only */
|
|
3821
|
|
3822 BOOL
|
|
3823 qxeIsBadStringPtr (const Extbyte * lpsz, UINT ucchMax)
|
|
3824 {
|
|
3825 if (XEUNICODE_P)
|
|
3826 return IsBadStringPtrW ((LPCWSTR) lpsz, ucchMax);
|
|
3827 else
|
|
3828 return IsBadStringPtrA ((LPCSTR) lpsz, ucchMax);
|
|
3829 }
|
|
3830
|
|
3831 BOOL
|
|
3832 qxeLookupAccountSid (const Extbyte * lpSystemName, PSID Sid, Extbyte * Name, LPDWORD cbName, Extbyte * ReferencedDomainName, LPDWORD cbReferencedDomainName, PSID_NAME_USE peUse)
|
|
3833 {
|
|
3834 if (XEUNICODE_P)
|
|
3835 return LookupAccountSidW ((LPCWSTR) lpSystemName, Sid, (LPWSTR) Name, cbName, (LPWSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3836 else
|
|
3837 return LookupAccountSidA ((LPCSTR) lpSystemName, Sid, (LPSTR) Name, cbName, (LPSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3838 }
|
|
3839
|
|
3840 BOOL
|
|
3841 qxeLookupAccountName (const Extbyte * lpSystemName, const Extbyte * lpAccountName, PSID Sid, LPDWORD cbSid, Extbyte * ReferencedDomainName, LPDWORD cbReferencedDomainName, PSID_NAME_USE peUse)
|
|
3842 {
|
|
3843 if (XEUNICODE_P)
|
|
3844 return LookupAccountNameW ((LPCWSTR) lpSystemName, (LPCWSTR) lpAccountName, Sid, cbSid, (LPWSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3845 else
|
|
3846 return LookupAccountNameA ((LPCSTR) lpSystemName, (LPCSTR) lpAccountName, Sid, cbSid, (LPSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3847 }
|
|
3848
|
|
3849 BOOL
|
|
3850 qxeLookupPrivilegeValue (const Extbyte * lpSystemName, const Extbyte * lpName, PLUID lpLuid)
|
|
3851 {
|
|
3852 if (XEUNICODE_P)
|
|
3853 return LookupPrivilegeValueW ((LPCWSTR) lpSystemName, (LPCWSTR) lpName, lpLuid);
|
|
3854 else
|
|
3855 return LookupPrivilegeValueA ((LPCSTR) lpSystemName, (LPCSTR) lpName, lpLuid);
|
|
3856 }
|
|
3857
|
|
3858 BOOL
|
|
3859 qxeLookupPrivilegeName (const Extbyte * lpSystemName, PLUID lpLuid, Extbyte * lpName, LPDWORD cbName)
|
|
3860 {
|
|
3861 if (XEUNICODE_P)
|
|
3862 return LookupPrivilegeNameW ((LPCWSTR) lpSystemName, lpLuid, (LPWSTR) lpName, cbName);
|
|
3863 else
|
|
3864 return LookupPrivilegeNameA ((LPCSTR) lpSystemName, lpLuid, (LPSTR) lpName, cbName);
|
|
3865 }
|
|
3866
|
|
3867 BOOL
|
|
3868 qxeLookupPrivilegeDisplayName (const Extbyte * lpSystemName, const Extbyte * lpName, Extbyte * lpDisplayName, LPDWORD cbDisplayName, LPDWORD lpLanguageId)
|
|
3869 {
|
|
3870 if (XEUNICODE_P)
|
|
3871 return LookupPrivilegeDisplayNameW ((LPCWSTR) lpSystemName, (LPCWSTR) lpName, (LPWSTR) lpDisplayName, cbDisplayName, lpLanguageId);
|
|
3872 else
|
|
3873 return LookupPrivilegeDisplayNameA ((LPCSTR) lpSystemName, (LPCSTR) lpName, (LPSTR) lpDisplayName, cbDisplayName, lpLanguageId);
|
|
3874 }
|
|
3875
|
|
3876 BOOL
|
|
3877 qxeBuildCommDCB (const Extbyte * lpDef, LPDCB lpDCB)
|
|
3878 {
|
|
3879 if (XEUNICODE_P)
|
|
3880 return BuildCommDCBW ((LPCWSTR) lpDef, lpDCB);
|
|
3881 else
|
|
3882 return BuildCommDCBA ((LPCSTR) lpDef, lpDCB);
|
|
3883 }
|
|
3884
|
|
3885 BOOL
|
|
3886 qxeBuildCommDCBAndTimeouts (const Extbyte * lpDef, LPDCB lpDCB, LPCOMMTIMEOUTS lpCommTimeouts)
|
|
3887 {
|
|
3888 if (XEUNICODE_P)
|
|
3889 return BuildCommDCBAndTimeoutsW ((LPCWSTR) lpDef, lpDCB, lpCommTimeouts);
|
|
3890 else
|
|
3891 return BuildCommDCBAndTimeoutsA ((LPCSTR) lpDef, lpDCB, lpCommTimeouts);
|
|
3892 }
|
|
3893
|
|
3894 BOOL
|
|
3895 qxeCommConfigDialog (const Extbyte * lpszName, HWND hWnd, LPCOMMCONFIG lpCC)
|
|
3896 {
|
|
3897 if (XEUNICODE_P)
|
|
3898 return CommConfigDialogW ((LPCWSTR) lpszName, hWnd, lpCC);
|
|
3899 else
|
|
3900 return CommConfigDialogA ((LPCSTR) lpszName, hWnd, lpCC);
|
|
3901 }
|
|
3902
|
|
3903 BOOL
|
|
3904 qxeGetDefaultCommConfig (const Extbyte * lpszName, LPCOMMCONFIG lpCC, LPDWORD lpdwSize)
|
|
3905 {
|
|
3906 if (XEUNICODE_P)
|
|
3907 return GetDefaultCommConfigW ((LPCWSTR) lpszName, lpCC, lpdwSize);
|
|
3908 else
|
|
3909 return GetDefaultCommConfigA ((LPCSTR) lpszName, lpCC, lpdwSize);
|
|
3910 }
|
|
3911
|
|
3912 BOOL
|
|
3913 qxeSetDefaultCommConfig (const Extbyte * lpszName, LPCOMMCONFIG lpCC, DWORD dwSize)
|
|
3914 {
|
|
3915 if (XEUNICODE_P)
|
|
3916 return SetDefaultCommConfigW ((LPCWSTR) lpszName, lpCC, dwSize);
|
|
3917 else
|
|
3918 return SetDefaultCommConfigA ((LPCSTR) lpszName, lpCC, dwSize);
|
|
3919 }
|
|
3920
|
|
3921 BOOL
|
|
3922 qxeGetComputerName (Extbyte * lpBuffer, LPDWORD nSize)
|
|
3923 {
|
|
3924 if (XEUNICODE_P)
|
|
3925 return GetComputerNameW ((LPWSTR) lpBuffer, nSize);
|
|
3926 else
|
|
3927 return GetComputerNameA ((LPSTR) lpBuffer, nSize);
|
|
3928 }
|
|
3929
|
|
3930 BOOL
|
|
3931 qxeSetComputerName (const Extbyte * lpComputerName)
|
|
3932 {
|
|
3933 if (XEUNICODE_P)
|
|
3934 return SetComputerNameW ((LPCWSTR) lpComputerName);
|
|
3935 else
|
|
3936 return SetComputerNameA ((LPCSTR) lpComputerName);
|
|
3937 }
|
|
3938
|
|
3939 BOOL
|
|
3940 qxeGetUserName (Extbyte * lpBuffer, LPDWORD nSize)
|
|
3941 {
|
|
3942 if (XEUNICODE_P)
|
|
3943 return GetUserNameW ((LPWSTR) lpBuffer, nSize);
|
|
3944 else
|
|
3945 return GetUserNameA ((LPSTR) lpBuffer, nSize);
|
|
3946 }
|
|
3947
|
|
3948 BOOL
|
|
3949 qxeLogonUser (Extbyte * lpszUsername, Extbyte * lpszDomain, Extbyte * lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken)
|
|
3950 {
|
|
3951 if (XEUNICODE_P)
|
|
3952 return LogonUserW ((LPWSTR) lpszUsername, (LPWSTR) lpszDomain, (LPWSTR) lpszPassword, dwLogonType, dwLogonProvider, phToken);
|
|
3953 else
|
|
3954 return LogonUserA ((LPSTR) lpszUsername, (LPSTR) lpszDomain, (LPSTR) lpszPassword, dwLogonType, dwLogonProvider, phToken);
|
|
3955 }
|
|
3956
|
|
3957 BOOL
|
|
3958 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)
|
|
3959 {
|
|
3960 if (XEUNICODE_P)
|
|
3961 return CreateProcessAsUserW (hToken, (LPCWSTR) lpApplicationName, (LPWSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCWSTR) lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
|
|
3962 else
|
|
3963 return CreateProcessAsUserA (hToken, (LPCSTR) lpApplicationName, (LPSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCSTR) lpCurrentDirectory, (LPSTARTUPINFOA) lpStartupInfo, lpProcessInformation);
|
|
3964 }
|
|
3965
|
|
3966 /* Error if GetCurrentHwProfile used: split-sized LPHW_PROFILE_INFO; NT 4.0+ only */
|
|
3967
|
|
3968 /* Error if GetVersionEx used: split-sized LPOSVERSIONINFO */
|
|
3969
|
|
3970 /* Error if CreateJobObject used: NT 5.0+ only */
|
|
3971
|
|
3972 /* Error if OpenJobObject used: NT 5.0+ only */
|
|
3973
|
|
3974
|
|
3975 /*----------------------------------------------------------------------*/
|
2367
|
3976 /* Processing file MMSYSTEM.H */
|
771
|
3977 /*----------------------------------------------------------------------*/
|
|
3978
|
|
3979 BOOL
|
2367
|
3980 qxesndPlaySound (const Extbyte * pszSound, UINT fuSound)
|
|
3981 {
|
|
3982 if (XEUNICODE_P)
|
|
3983 return sndPlaySoundW ((LPCWSTR) pszSound, fuSound);
|
|
3984 else
|
|
3985 return sndPlaySoundA ((LPCSTR) pszSound, fuSound);
|
771
|
3986 }
|
|
3987
|
|
3988 BOOL
|
2367
|
3989 qxePlaySound (const Extbyte * pszSound, HMODULE hmod, DWORD fdwSound)
|
|
3990 {
|
|
3991 if (XEUNICODE_P)
|
|
3992 return PlaySoundW ((LPCWSTR) pszSound, hmod, fdwSound);
|
|
3993 else
|
|
3994 return PlaySoundA ((LPCSTR) pszSound, hmod, fdwSound);
|
|
3995 }
|
|
3996
|
|
3997 /* Error if waveOutGetDevCaps used: split-sized LPWAVEOUTCAPS */
|
|
3998
|
|
3999 MMRESULT
|
|
4000 qxewaveOutGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
4001 {
|
|
4002 if (XEUNICODE_P)
|
|
4003 return waveOutGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
4004 else
|
|
4005 return waveOutGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
4006 }
|
|
4007
|
|
4008 /* Error if waveInGetDevCaps used: split-sized LPWAVEINCAPS */
|
|
4009
|
|
4010 MMRESULT
|
|
4011 qxewaveInGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
4012 {
|
|
4013 if (XEUNICODE_P)
|
|
4014 return waveInGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
4015 else
|
|
4016 return waveInGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
4017 }
|
|
4018
|
|
4019 /* Error if midiOutGetDevCaps used: split-sized LPMIDIOUTCAPS */
|
|
4020
|
|
4021 MMRESULT
|
|
4022 qxemidiOutGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
4023 {
|
|
4024 if (XEUNICODE_P)
|
|
4025 return midiOutGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
4026 else
|
|
4027 return midiOutGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
4028 }
|
|
4029
|
|
4030 /* Error if midiInGetDevCaps used: split-sized LPMIDIOUTCAPS */
|
|
4031
|
|
4032 MMRESULT
|
|
4033 qxemidiInGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
4034 {
|
|
4035 if (XEUNICODE_P)
|
|
4036 return midiInGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
4037 else
|
|
4038 return midiInGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
4039 }
|
|
4040
|
|
4041 /* Error if auxGetDevCaps used: split-sized LPAUXCAPS */
|
|
4042
|
|
4043 /* Error if mixerGetDevCaps used: split-sized LPMIXERCAPS */
|
|
4044
|
|
4045 /* Error if mixerGetLineInfo used: split-sized LPMIXERLINE */
|
|
4046
|
|
4047 /* Error if mixerGetLineControls used: split-sized LPMIXERCONTROL */
|
|
4048
|
|
4049 /* Error if mixerGetControlDetails used: split-sized LPMIXERCONTROL in LPMIXERLINECONTROLS in LPMIXERCONTROLDETAILS */
|
|
4050
|
|
4051 /* Error if joyGetDevCaps used: split-sized LPJOYCAPS */
|
|
4052
|
|
4053 FOURCC
|
|
4054 qxemmioStringToFOURCC (const Extbyte * sz, UINT uFlags)
|
|
4055 {
|
|
4056 if (XEUNICODE_P)
|
|
4057 return mmioStringToFOURCCW ((LPCWSTR) sz, uFlags);
|
|
4058 else
|
|
4059 return mmioStringToFOURCCA ((LPCSTR) sz, uFlags);
|
|
4060 }
|
|
4061
|
|
4062 LPMMIOPROC
|
|
4063 qxemmioInstallIOProc (FOURCC fccIOProc, LPMMIOPROC pIOProc, DWORD dwFlags)
|
|
4064 {
|
|
4065 if (XEUNICODE_P)
|
|
4066 return mmioInstallIOProcW (fccIOProc, pIOProc, dwFlags);
|
|
4067 else
|
|
4068 return mmioInstallIOProcA (fccIOProc, pIOProc, dwFlags);
|
|
4069 }
|
|
4070
|
|
4071 HMMIO
|
|
4072 qxemmioOpen (Extbyte * pszFileName, LPMMIOINFO pmmioinfo, DWORD fdwOpen)
|
|
4073 {
|
|
4074 if (XEUNICODE_P)
|
|
4075 return mmioOpenW ((LPWSTR) pszFileName, pmmioinfo, fdwOpen);
|
|
4076 else
|
|
4077 return mmioOpenA ((LPSTR) pszFileName, pmmioinfo, fdwOpen);
|
|
4078 }
|
|
4079
|
|
4080 MMRESULT
|
|
4081 qxemmioRename (const Extbyte * pszFileName, const Extbyte * pszNewFileName, LPCMMIOINFO pmmioinfo, DWORD fdwRename)
|
|
4082 {
|
|
4083 if (XEUNICODE_P)
|
|
4084 return mmioRenameW ((LPCWSTR) pszFileName, (LPCWSTR) pszNewFileName, pmmioinfo, fdwRename);
|
|
4085 else
|
|
4086 return mmioRenameA ((LPCSTR) pszFileName, (LPCSTR) pszNewFileName, pmmioinfo, fdwRename);
|
|
4087 }
|
|
4088
|
|
4089 MCIERROR
|
|
4090 qxemciSendCommand (MCIDEVICEID mciId, UINT uMsg, DWORD dwParam1, DWORD dwParam2)
|
|
4091 {
|
|
4092 if (XEUNICODE_P)
|
|
4093 return mciSendCommandW (mciId, uMsg, dwParam1, dwParam2);
|
|
4094 else
|
|
4095 return mciSendCommandA (mciId, uMsg, dwParam1, dwParam2);
|
|
4096 }
|
|
4097
|
|
4098 MCIERROR
|
|
4099 qxemciSendString (const Extbyte * lpstrCommand, Extbyte * lpstrReturnString, UINT uReturnLength, HWND hwndCallback)
|
|
4100 {
|
|
4101 if (XEUNICODE_P)
|
|
4102 return mciSendStringW ((LPCWSTR) lpstrCommand, (LPWSTR) lpstrReturnString, uReturnLength, hwndCallback);
|
|
4103 else
|
|
4104 return mciSendStringA ((LPCSTR) lpstrCommand, (LPSTR) lpstrReturnString, uReturnLength, hwndCallback);
|
|
4105 }
|
|
4106
|
|
4107 MCIDEVICEID
|
|
4108 qxemciGetDeviceID (const Extbyte * pszDevice)
|
|
4109 {
|
|
4110 if (XEUNICODE_P)
|
|
4111 return mciGetDeviceIDW ((LPCWSTR) pszDevice);
|
|
4112 else
|
|
4113 return mciGetDeviceIDA ((LPCSTR) pszDevice);
|
|
4114 }
|
|
4115
|
|
4116 #if !defined (MINGW)
|
|
4117
|
|
4118 /* Error if mciGetDeviceIDFromElementID used: missing from Win98se version of ADVAPI32.dll */
|
|
4119
|
|
4120 #endif /* !defined (MINGW) */
|
771
|
4121
|
|
4122 BOOL
|
2367
|
4123 qxemciGetErrorString (MCIERROR mcierr, Extbyte * pszText, UINT cchText)
|
|
4124 {
|
|
4125 if (XEUNICODE_P)
|
|
4126 return mciGetErrorStringW (mcierr, (LPWSTR) pszText, cchText);
|
|
4127 else
|
|
4128 return mciGetErrorStringA (mcierr, (LPSTR) pszText, cchText);
|
|
4129 }
|
|
4130
|