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