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