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
|
1111
|
1410 /* Skipping DdeCreateStringHandle because error in Cygwin prototype */
|
771
|
1411
|
|
1412 DWORD
|
|
1413 qxeDdeQueryString (DWORD idInst, HSZ hsz, Extbyte * psz, DWORD cchMax, int iCodePage)
|
|
1414 {
|
|
1415 if (XEUNICODE_P)
|
|
1416 return DdeQueryStringW (idInst, hsz, (LPWSTR) psz, cchMax, iCodePage);
|
|
1417 else
|
|
1418 return DdeQueryStringA (idInst, hsz, (LPSTR) psz, cchMax, iCodePage);
|
|
1419 }
|
|
1420
|
|
1421
|
|
1422 /*----------------------------------------------------------------------*/
|
|
1423 /* Processing file WINUSER.H */
|
|
1424 /*----------------------------------------------------------------------*/
|
|
1425
|
|
1426 int
|
|
1427 qxewvsprintf (Extbyte * arg1, const Extbyte * arg2, va_list arglist)
|
|
1428 {
|
|
1429 if (XEUNICODE_P)
|
|
1430 return wvsprintfW ((LPWSTR) arg1, (LPCWSTR) arg2, arglist);
|
|
1431 else
|
|
1432 return wvsprintfA ((LPSTR) arg1, (LPCSTR) arg2, arglist);
|
|
1433 }
|
|
1434
|
|
1435 HKL
|
|
1436 qxeLoadKeyboardLayout (const Extbyte * pwszKLID, UINT Flags)
|
|
1437 {
|
|
1438 if (XEUNICODE_P)
|
|
1439 return LoadKeyboardLayoutW ((LPCWSTR) pwszKLID, Flags);
|
|
1440 else
|
|
1441 return LoadKeyboardLayoutA ((LPCSTR) pwszKLID, Flags);
|
|
1442 }
|
|
1443
|
|
1444 BOOL
|
|
1445 qxeGetKeyboardLayoutName (Extbyte * pwszKLID)
|
|
1446 {
|
|
1447 if (XEUNICODE_P)
|
|
1448 return GetKeyboardLayoutNameW ((LPWSTR) pwszKLID);
|
|
1449 else
|
|
1450 return GetKeyboardLayoutNameA ((LPSTR) pwszKLID);
|
|
1451 }
|
|
1452
|
|
1453 /* Error if CreateDesktop used: split-sized LPDEVMODE */
|
|
1454
|
|
1455 HDESK
|
|
1456 qxeOpenDesktop (Extbyte * lpszDesktop, DWORD dwFlags, BOOL fInherit, ACCESS_MASK dwDesiredAccess)
|
|
1457 {
|
|
1458 if (XEUNICODE_P)
|
|
1459 return OpenDesktopW ((LPWSTR) lpszDesktop, dwFlags, fInherit, dwDesiredAccess);
|
|
1460 else
|
|
1461 return OpenDesktopA ((LPSTR) lpszDesktop, dwFlags, fInherit, dwDesiredAccess);
|
|
1462 }
|
|
1463
|
|
1464 /* NOTE: // callback fun differs only in string pointer type */
|
|
1465 BOOL
|
|
1466 qxeEnumDesktops (HWINSTA hwinsta, DESKTOPENUMPROCW lpEnumFunc, LPARAM lParam)
|
|
1467 {
|
|
1468 if (XEUNICODE_P)
|
|
1469 return EnumDesktopsW (hwinsta, lpEnumFunc, lParam);
|
|
1470 else
|
|
1471 return EnumDesktopsA (hwinsta, (DESKTOPENUMPROCA) lpEnumFunc, lParam);
|
|
1472 }
|
|
1473
|
|
1474 HWINSTA
|
|
1475 qxeCreateWindowStation (Extbyte * lpwinsta, DWORD dwReserved, ACCESS_MASK dwDesiredAccess, LPSECURITY_ATTRIBUTES lpsa)
|
|
1476 {
|
|
1477 if (XEUNICODE_P)
|
|
1478 return CreateWindowStationW ((LPWSTR) lpwinsta, dwReserved, dwDesiredAccess, lpsa);
|
|
1479 else
|
|
1480 return CreateWindowStationA ((LPSTR) lpwinsta, dwReserved, dwDesiredAccess, lpsa);
|
|
1481 }
|
|
1482
|
|
1483 HWINSTA
|
|
1484 qxeOpenWindowStation (Extbyte * lpszWinSta, BOOL fInherit, ACCESS_MASK dwDesiredAccess)
|
|
1485 {
|
|
1486 if (XEUNICODE_P)
|
|
1487 return OpenWindowStationW ((LPWSTR) lpszWinSta, fInherit, dwDesiredAccess);
|
|
1488 else
|
|
1489 return OpenWindowStationA ((LPSTR) lpszWinSta, fInherit, dwDesiredAccess);
|
|
1490 }
|
|
1491
|
|
1492 /* NOTE: // callback fun differs only in string pointer type */
|
|
1493 BOOL
|
|
1494 qxeEnumWindowStations (WINSTAENUMPROCW lpEnumFunc, LPARAM lParam)
|
|
1495 {
|
|
1496 if (XEUNICODE_P)
|
|
1497 return EnumWindowStationsW (lpEnumFunc, lParam);
|
|
1498 else
|
|
1499 return EnumWindowStationsA ((WINSTAENUMPROCA) lpEnumFunc, lParam);
|
|
1500 }
|
|
1501
|
|
1502 BOOL
|
|
1503 qxeGetUserObjectInformation (HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength, LPDWORD lpnLengthNeeded)
|
|
1504 {
|
|
1505 if (XEUNICODE_P)
|
|
1506 return GetUserObjectInformationW (hObj, nIndex, pvInfo, nLength, lpnLengthNeeded);
|
|
1507 else
|
|
1508 return GetUserObjectInformationA (hObj, nIndex, pvInfo, nLength, lpnLengthNeeded);
|
|
1509 }
|
|
1510
|
|
1511 BOOL
|
|
1512 qxeSetUserObjectInformation (HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength)
|
|
1513 {
|
|
1514 if (XEUNICODE_P)
|
|
1515 return SetUserObjectInformationW (hObj, nIndex, pvInfo, nLength);
|
|
1516 else
|
|
1517 return SetUserObjectInformationA (hObj, nIndex, pvInfo, nLength);
|
|
1518 }
|
|
1519
|
|
1520 UINT
|
|
1521 qxeRegisterWindowMessage (const Extbyte * lpString)
|
|
1522 {
|
|
1523 if (XEUNICODE_P)
|
|
1524 return RegisterWindowMessageW ((LPCWSTR) lpString);
|
|
1525 else
|
|
1526 return RegisterWindowMessageA ((LPCSTR) lpString);
|
|
1527 }
|
|
1528
|
|
1529 BOOL
|
|
1530 qxeGetMessage (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax)
|
|
1531 {
|
|
1532 if (XEUNICODE_P)
|
|
1533 return GetMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
|
|
1534 else
|
|
1535 return GetMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
|
|
1536 }
|
|
1537
|
|
1538 LONG
|
|
1539 qxeDispatchMessage (CONST MSG * lpMsg)
|
|
1540 {
|
|
1541 if (XEUNICODE_P)
|
|
1542 return DispatchMessageW (lpMsg);
|
|
1543 else
|
|
1544 return DispatchMessageA (lpMsg);
|
|
1545 }
|
|
1546
|
|
1547 BOOL
|
|
1548 qxePeekMessage (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg)
|
|
1549 {
|
|
1550 if (XEUNICODE_P)
|
|
1551 return PeekMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
|
|
1552 else
|
|
1553 return PeekMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
|
|
1554 }
|
|
1555
|
|
1556 /* Skipping SendMessage because split messages and structures */
|
|
1557
|
|
1558 LRESULT
|
|
1559 qxeSendMessageTimeout (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, UINT fuFlags, UINT uTimeout, LPDWORD lpdwResult)
|
|
1560 {
|
|
1561 if (XEUNICODE_P)
|
|
1562 return SendMessageTimeoutW (hWnd, Msg, wParam, lParam, fuFlags, uTimeout, lpdwResult);
|
|
1563 else
|
|
1564 return SendMessageTimeoutA (hWnd, Msg, wParam, lParam, fuFlags, uTimeout, lpdwResult);
|
|
1565 }
|
|
1566
|
|
1567 BOOL
|
|
1568 qxeSendNotifyMessage (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|
1569 {
|
|
1570 if (XEUNICODE_P)
|
|
1571 return SendNotifyMessageW (hWnd, Msg, wParam, lParam);
|
|
1572 else
|
|
1573 return SendNotifyMessageA (hWnd, Msg, wParam, lParam);
|
|
1574 }
|
|
1575
|
|
1576 BOOL
|
|
1577 qxeSendMessageCallback (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, SENDASYNCPROC lpResultCallBack, DWORD dwData)
|
|
1578 {
|
|
1579 if (XEUNICODE_P)
|
|
1580 return SendMessageCallbackW (hWnd, Msg, wParam, lParam, lpResultCallBack, dwData);
|
|
1581 else
|
|
1582 return SendMessageCallbackA (hWnd, Msg, wParam, lParam, lpResultCallBack, dwData);
|
|
1583 }
|
|
1584
|
|
1585 /* Error if BroadcastSystemMessage used: win95 version not split; NT 4.0+ only */
|
|
1586
|
|
1587 /* Error if RegisterDeviceNotification used: NT 5.0+ only */
|
|
1588
|
|
1589 BOOL
|
|
1590 qxePostMessage (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|
1591 {
|
|
1592 if (XEUNICODE_P)
|
|
1593 return PostMessageW (hWnd, Msg, wParam, lParam);
|
|
1594 else
|
|
1595 return PostMessageA (hWnd, Msg, wParam, lParam);
|
|
1596 }
|
|
1597
|
|
1598 BOOL
|
|
1599 qxePostThreadMessage (DWORD idThread, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|
1600 {
|
|
1601 if (XEUNICODE_P)
|
|
1602 return PostThreadMessageW (idThread, Msg, wParam, lParam);
|
|
1603 else
|
|
1604 return PostThreadMessageA (idThread, Msg, wParam, lParam);
|
|
1605 }
|
|
1606
|
|
1607 /* Skipping DefWindowProc because return value is conditionalized on _MAC, messes up parser */
|
|
1608
|
|
1609 /* Error if CallWindowProc used: two versions, STRICT and non-STRICT */
|
|
1610
|
|
1611 /* Error if CallWindowProc used: two versions, STRICT and non-STRICT */
|
|
1612
|
|
1613 /* Skipping RegisterClass because need to intercept so we can provide our own window procedure and handle split notify messages; split-simple WNDCLASS */
|
|
1614
|
|
1615 /* Skipping UnregisterClass because need to intercept for reasons related to RegisterClass */
|
|
1616
|
|
1617 BOOL
|
|
1618 qxeGetClassInfo (HINSTANCE hInstance, const Extbyte * lpClassName, LPWNDCLASSW lpWndClass)
|
|
1619 {
|
|
1620 if (XEUNICODE_P)
|
|
1621 return GetClassInfoW (hInstance, (LPCWSTR) lpClassName, lpWndClass);
|
|
1622 else
|
|
1623 return GetClassInfoA (hInstance, (LPCSTR) lpClassName, (LPWNDCLASSA) lpWndClass);
|
|
1624 }
|
|
1625
|
|
1626 /* 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 */
|
|
1627
|
|
1628 /* NOTE: NT 4.0+ only */
|
|
1629 BOOL
|
|
1630 qxeGetClassInfoEx (HINSTANCE arg1, const Extbyte * arg2, LPWNDCLASSEXW arg3)
|
|
1631 {
|
|
1632 if (XEUNICODE_P)
|
|
1633 return GetClassInfoExW (arg1, (LPCWSTR) arg2, arg3);
|
|
1634 else
|
|
1635 return GetClassInfoExA (arg1, (LPCSTR) arg2, (LPWNDCLASSEXA) arg3);
|
|
1636 }
|
|
1637
|
|
1638 HWND
|
|
1639 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)
|
|
1640 {
|
|
1641 if (XEUNICODE_P)
|
|
1642 return CreateWindowExW (dwExStyle, (LPCWSTR) lpClassName, (LPCWSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
|
|
1643 else
|
|
1644 return CreateWindowExA (dwExStyle, (LPCSTR) lpClassName, (LPCSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
|
|
1645 }
|
|
1646
|
|
1647 HWND
|
|
1648 qxeCreateDialogParam (HINSTANCE hInstance, const Extbyte * lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
|
|
1649 {
|
|
1650 if (XEUNICODE_P)
|
|
1651 return CreateDialogParamW (hInstance, (LPCWSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
|
|
1652 else
|
|
1653 return CreateDialogParamA (hInstance, (LPCSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
|
|
1654 }
|
|
1655
|
|
1656 /* NOTE: error in Cygwin prototype (no split) but fixable with typedef */
|
|
1657 HWND
|
|
1658 qxeCreateDialogIndirectParam (HINSTANCE hInstance, LPCDLGTEMPLATEW lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
|
|
1659 {
|
|
1660 if (XEUNICODE_P)
|
|
1661 return CreateDialogIndirectParamW (hInstance, lpTemplate, hWndParent, lpDialogFunc, dwInitParam);
|
|
1662 else
|
|
1663 return CreateDialogIndirectParamA (hInstance, (LPCDLGTEMPLATEA) lpTemplate, hWndParent, lpDialogFunc, dwInitParam);
|
|
1664 }
|
|
1665
|
|
1666 int
|
|
1667 qxeDialogBoxParam (HINSTANCE hInstance, const Extbyte * lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
|
|
1668 {
|
|
1669 if (XEUNICODE_P)
|
|
1670 return DialogBoxParamW (hInstance, (LPCWSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
|
|
1671 else
|
|
1672 return DialogBoxParamA (hInstance, (LPCSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam);
|
|
1673 }
|
|
1674
|
|
1675 /* NOTE: error in Cygwin prototype (no split) but fixable with typedef */
|
|
1676 int
|
|
1677 qxeDialogBoxIndirectParam (HINSTANCE hInstance, LPCDLGTEMPLATEW hDialogTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
|
|
1678 {
|
|
1679 if (XEUNICODE_P)
|
|
1680 return DialogBoxIndirectParamW (hInstance, hDialogTemplate, hWndParent, lpDialogFunc, dwInitParam);
|
|
1681 else
|
|
1682 return DialogBoxIndirectParamA (hInstance, (LPCDLGTEMPLATEA) hDialogTemplate, hWndParent, lpDialogFunc, dwInitParam);
|
|
1683 }
|
|
1684
|
|
1685 BOOL
|
|
1686 qxeSetDlgItemText (HWND hDlg, int nIDDlgItem, const Extbyte * lpString)
|
|
1687 {
|
|
1688 if (XEUNICODE_P)
|
|
1689 return SetDlgItemTextW (hDlg, nIDDlgItem, (LPCWSTR) lpString);
|
|
1690 else
|
|
1691 return SetDlgItemTextA (hDlg, nIDDlgItem, (LPCSTR) lpString);
|
|
1692 }
|
|
1693
|
|
1694 UINT
|
|
1695 qxeGetDlgItemText (HWND hDlg, int nIDDlgItem, Extbyte * lpString, int nMaxCount)
|
|
1696 {
|
|
1697 if (XEUNICODE_P)
|
|
1698 return GetDlgItemTextW (hDlg, nIDDlgItem, (LPWSTR) lpString, nMaxCount);
|
|
1699 else
|
|
1700 return GetDlgItemTextA (hDlg, nIDDlgItem, (LPSTR) lpString, nMaxCount);
|
|
1701 }
|
|
1702
|
|
1703 LONG
|
|
1704 qxeSendDlgItemMessage (HWND hDlg, int nIDDlgItem, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|
1705 {
|
|
1706 if (XEUNICODE_P)
|
|
1707 return SendDlgItemMessageW (hDlg, nIDDlgItem, Msg, wParam, lParam);
|
|
1708 else
|
|
1709 return SendDlgItemMessageA (hDlg, nIDDlgItem, Msg, wParam, lParam);
|
|
1710 }
|
|
1711
|
|
1712 /* Error if DefDlgProc used: return value is conditionalized on _MAC, messes up parser */
|
|
1713
|
|
1714 #if !defined (CYGWIN_HEADERS)
|
|
1715
|
|
1716 BOOL
|
|
1717 qxeCallMsgFilter (LPMSG lpMsg, int nCode)
|
|
1718 {
|
|
1719 if (XEUNICODE_P)
|
|
1720 return CallMsgFilterW (lpMsg, nCode);
|
|
1721 else
|
|
1722 return CallMsgFilterA (lpMsg, nCode);
|
|
1723 }
|
|
1724
|
|
1725 #endif /* !defined (CYGWIN_HEADERS) */
|
|
1726
|
|
1727 UINT
|
|
1728 qxeRegisterClipboardFormat (const Extbyte * lpszFormat)
|
|
1729 {
|
|
1730 if (XEUNICODE_P)
|
|
1731 return RegisterClipboardFormatW ((LPCWSTR) lpszFormat);
|
|
1732 else
|
|
1733 return RegisterClipboardFormatA ((LPCSTR) lpszFormat);
|
|
1734 }
|
|
1735
|
|
1736 int
|
|
1737 qxeGetClipboardFormatName (UINT format, Extbyte * lpszFormatName, int cchMaxCount)
|
|
1738 {
|
|
1739 if (XEUNICODE_P)
|
|
1740 return GetClipboardFormatNameW (format, (LPWSTR) lpszFormatName, cchMaxCount);
|
|
1741 else
|
|
1742 return GetClipboardFormatNameA (format, (LPSTR) lpszFormatName, cchMaxCount);
|
|
1743 }
|
|
1744
|
|
1745 BOOL
|
|
1746 qxeCharToOem (const Extbyte * lpszSrc, LPSTR lpszDst)
|
|
1747 {
|
|
1748 if (XEUNICODE_P)
|
|
1749 return CharToOemW ((LPCWSTR) lpszSrc, lpszDst);
|
|
1750 else
|
|
1751 return CharToOemA ((LPCSTR) lpszSrc, lpszDst);
|
|
1752 }
|
|
1753
|
|
1754 BOOL
|
|
1755 qxeOemToChar (LPCSTR lpszSrc, Extbyte * lpszDst)
|
|
1756 {
|
|
1757 if (XEUNICODE_P)
|
|
1758 return OemToCharW (lpszSrc, (LPWSTR) lpszDst);
|
|
1759 else
|
|
1760 return OemToCharA (lpszSrc, (LPSTR) lpszDst);
|
|
1761 }
|
|
1762
|
|
1763 BOOL
|
|
1764 qxeCharToOemBuff (const Extbyte * lpszSrc, LPSTR lpszDst, DWORD cchDstLength)
|
|
1765 {
|
|
1766 if (XEUNICODE_P)
|
|
1767 return CharToOemBuffW ((LPCWSTR) lpszSrc, lpszDst, cchDstLength);
|
|
1768 else
|
|
1769 return CharToOemBuffA ((LPCSTR) lpszSrc, lpszDst, cchDstLength);
|
|
1770 }
|
|
1771
|
|
1772 BOOL
|
|
1773 qxeOemToCharBuff (LPCSTR lpszSrc, Extbyte * lpszDst, DWORD cchDstLength)
|
|
1774 {
|
|
1775 if (XEUNICODE_P)
|
|
1776 return OemToCharBuffW (lpszSrc, (LPWSTR) lpszDst, cchDstLength);
|
|
1777 else
|
|
1778 return OemToCharBuffA (lpszSrc, (LPSTR) lpszDst, cchDstLength);
|
|
1779 }
|
|
1780
|
|
1781 Extbyte *
|
|
1782 qxeCharUpper (Extbyte * lpsz)
|
|
1783 {
|
|
1784 if (XEUNICODE_P)
|
|
1785 return (Extbyte *) CharUpperW ((LPWSTR) lpsz);
|
|
1786 else
|
|
1787 return (Extbyte *) CharUpperA ((LPSTR) lpsz);
|
|
1788 }
|
|
1789
|
|
1790 DWORD
|
|
1791 qxeCharUpperBuff (Extbyte * lpsz, DWORD cchLength)
|
|
1792 {
|
|
1793 if (XEUNICODE_P)
|
|
1794 return CharUpperBuffW ((LPWSTR) lpsz, cchLength);
|
|
1795 else
|
|
1796 return CharUpperBuffA ((LPSTR) lpsz, cchLength);
|
|
1797 }
|
|
1798
|
|
1799 Extbyte *
|
|
1800 qxeCharLower (Extbyte * lpsz)
|
|
1801 {
|
|
1802 if (XEUNICODE_P)
|
|
1803 return (Extbyte *) CharLowerW ((LPWSTR) lpsz);
|
|
1804 else
|
|
1805 return (Extbyte *) CharLowerA ((LPSTR) lpsz);
|
|
1806 }
|
|
1807
|
|
1808 DWORD
|
|
1809 qxeCharLowerBuff (Extbyte * lpsz, DWORD cchLength)
|
|
1810 {
|
|
1811 if (XEUNICODE_P)
|
|
1812 return CharLowerBuffW ((LPWSTR) lpsz, cchLength);
|
|
1813 else
|
|
1814 return CharLowerBuffA ((LPSTR) lpsz, cchLength);
|
|
1815 }
|
|
1816
|
|
1817 Extbyte *
|
|
1818 qxeCharNext (const Extbyte * lpsz)
|
|
1819 {
|
|
1820 if (XEUNICODE_P)
|
|
1821 return (Extbyte *) CharNextW ((LPCWSTR) lpsz);
|
|
1822 else
|
|
1823 return (Extbyte *) CharNextA ((LPCSTR) lpsz);
|
|
1824 }
|
|
1825
|
|
1826 Extbyte *
|
|
1827 qxeCharPrev (const Extbyte * lpszStart, const Extbyte * lpszCurrent)
|
|
1828 {
|
|
1829 if (XEUNICODE_P)
|
|
1830 return (Extbyte *) CharPrevW ((LPCWSTR) lpszStart, (LPCWSTR) lpszCurrent);
|
|
1831 else
|
|
1832 return (Extbyte *) CharPrevA ((LPCSTR) lpszStart, (LPCSTR) lpszCurrent);
|
|
1833 }
|
|
1834
|
|
1835 /* Error if IsCharAlpha used: split CHAR */
|
|
1836
|
|
1837 /* Error if IsCharAlphaNumeric used: split CHAR */
|
|
1838
|
|
1839 /* Error if IsCharUpper used: split CHAR */
|
|
1840
|
|
1841 /* Error if IsCharLower used: split CHAR */
|
|
1842
|
|
1843 int
|
|
1844 qxeGetKeyNameText (LONG lParam, Extbyte * lpString, int nSize)
|
|
1845 {
|
|
1846 if (XEUNICODE_P)
|
|
1847 return GetKeyNameTextW (lParam, (LPWSTR) lpString, nSize);
|
|
1848 else
|
|
1849 return GetKeyNameTextA (lParam, (LPSTR) lpString, nSize);
|
|
1850 }
|
|
1851
|
|
1852 /* Skipping VkKeyScan because split CHAR */
|
|
1853
|
|
1854 /* Error if VkKeyScanEx used: split CHAR; NT 4.0+ only */
|
|
1855
|
|
1856 UINT
|
|
1857 qxeMapVirtualKey (UINT uCode, UINT uMapType)
|
|
1858 {
|
|
1859 if (XEUNICODE_P)
|
|
1860 return MapVirtualKeyW (uCode, uMapType);
|
|
1861 else
|
|
1862 return MapVirtualKeyA (uCode, uMapType);
|
|
1863 }
|
|
1864
|
|
1865 /* NOTE: NT 4.0+ only */
|
|
1866 UINT
|
|
1867 qxeMapVirtualKeyEx (UINT uCode, UINT uMapType, HKL dwhkl)
|
|
1868 {
|
|
1869 if (XEUNICODE_P)
|
|
1870 return MapVirtualKeyExW (uCode, uMapType, dwhkl);
|
|
1871 else
|
|
1872 return MapVirtualKeyExA (uCode, uMapType, dwhkl);
|
|
1873 }
|
|
1874
|
|
1875 HACCEL
|
|
1876 qxeLoadAccelerators (HINSTANCE hInstance, const Extbyte * lpTableName)
|
|
1877 {
|
|
1878 if (XEUNICODE_P)
|
|
1879 return LoadAcceleratorsW (hInstance, (LPCWSTR) lpTableName);
|
|
1880 else
|
|
1881 return LoadAcceleratorsA (hInstance, (LPCSTR) lpTableName);
|
|
1882 }
|
|
1883
|
|
1884 HACCEL
|
|
1885 qxeCreateAcceleratorTable (LPACCEL arg1, int arg2)
|
|
1886 {
|
|
1887 if (XEUNICODE_P)
|
|
1888 return CreateAcceleratorTableW (arg1, arg2);
|
|
1889 else
|
|
1890 return CreateAcceleratorTableA (arg1, arg2);
|
|
1891 }
|
|
1892
|
|
1893 int
|
|
1894 qxeCopyAcceleratorTable (HACCEL hAccelSrc, LPACCEL lpAccelDst, int cAccelEntries)
|
|
1895 {
|
|
1896 if (XEUNICODE_P)
|
|
1897 return CopyAcceleratorTableW (hAccelSrc, lpAccelDst, cAccelEntries);
|
|
1898 else
|
|
1899 return CopyAcceleratorTableA (hAccelSrc, lpAccelDst, cAccelEntries);
|
|
1900 }
|
|
1901
|
|
1902 int
|
|
1903 qxeTranslateAccelerator (HWND hWnd, HACCEL hAccTable, LPMSG lpMsg)
|
|
1904 {
|
|
1905 if (XEUNICODE_P)
|
|
1906 return TranslateAcceleratorW (hWnd, hAccTable, lpMsg);
|
|
1907 else
|
|
1908 return TranslateAcceleratorA (hWnd, hAccTable, lpMsg);
|
|
1909 }
|
|
1910
|
|
1911 HMENU
|
|
1912 qxeLoadMenu (HINSTANCE hInstance, const Extbyte * lpMenuName)
|
|
1913 {
|
|
1914 if (XEUNICODE_P)
|
|
1915 return LoadMenuW (hInstance, (LPCWSTR) lpMenuName);
|
|
1916 else
|
|
1917 return LoadMenuA (hInstance, (LPCSTR) lpMenuName);
|
|
1918 }
|
|
1919
|
|
1920 HMENU
|
|
1921 qxeLoadMenuIndirect (CONST MENUTEMPLATEW * lpMenuTemplate)
|
|
1922 {
|
|
1923 if (XEUNICODE_P)
|
|
1924 return LoadMenuIndirectW (lpMenuTemplate);
|
|
1925 else
|
|
1926 return LoadMenuIndirectA ((CONST MENUTEMPLATEA *) lpMenuTemplate);
|
|
1927 }
|
|
1928
|
|
1929 BOOL
|
|
1930 qxeChangeMenu (HMENU hMenu, UINT cmd, const Extbyte * lpszNewItem, UINT cmdInsert, UINT flags)
|
|
1931 {
|
|
1932 if (XEUNICODE_P)
|
|
1933 return ChangeMenuW (hMenu, cmd, (LPCWSTR) lpszNewItem, cmdInsert, flags);
|
|
1934 else
|
|
1935 return ChangeMenuA (hMenu, cmd, (LPCSTR) lpszNewItem, cmdInsert, flags);
|
|
1936 }
|
|
1937
|
|
1938 int
|
|
1939 qxeGetMenuString (HMENU hMenu, UINT uIDItem, Extbyte * lpString, int nMaxCount, UINT uFlag)
|
|
1940 {
|
|
1941 if (XEUNICODE_P)
|
|
1942 return GetMenuStringW (hMenu, uIDItem, (LPWSTR) lpString, nMaxCount, uFlag);
|
|
1943 else
|
|
1944 return GetMenuStringA (hMenu, uIDItem, (LPSTR) lpString, nMaxCount, uFlag);
|
|
1945 }
|
|
1946
|
|
1947 BOOL
|
|
1948 qxeInsertMenu (HMENU hMenu, UINT uPosition, UINT uFlags, UINT uIDNewItem, const Extbyte * lpNewItem)
|
|
1949 {
|
|
1950 if (XEUNICODE_P)
|
|
1951 return InsertMenuW (hMenu, uPosition, uFlags, uIDNewItem, (LPCWSTR) lpNewItem);
|
|
1952 else
|
|
1953 return InsertMenuA (hMenu, uPosition, uFlags, uIDNewItem, (LPCSTR) lpNewItem);
|
|
1954 }
|
|
1955
|
|
1956 BOOL
|
|
1957 qxeAppendMenu (HMENU hMenu, UINT uFlags, UINT uIDNewItem, const Extbyte * lpNewItem)
|
|
1958 {
|
|
1959 if (XEUNICODE_P)
|
|
1960 return AppendMenuW (hMenu, uFlags, uIDNewItem, (LPCWSTR) lpNewItem);
|
|
1961 else
|
|
1962 return AppendMenuA (hMenu, uFlags, uIDNewItem, (LPCSTR) lpNewItem);
|
|
1963 }
|
|
1964
|
|
1965 BOOL
|
|
1966 qxeModifyMenu (HMENU hMnu, UINT uPosition, UINT uFlags, UINT uIDNewItem, const Extbyte * lpNewItem)
|
|
1967 {
|
|
1968 if (XEUNICODE_P)
|
|
1969 return ModifyMenuW (hMnu, uPosition, uFlags, uIDNewItem, (LPCWSTR) lpNewItem);
|
|
1970 else
|
|
1971 return ModifyMenuA (hMnu, uPosition, uFlags, uIDNewItem, (LPCSTR) lpNewItem);
|
|
1972 }
|
|
1973
|
|
1974 /* NOTE: NT 4.0+ only */
|
|
1975 BOOL
|
|
1976 qxeInsertMenuItem (HMENU arg1, UINT arg2, BOOL arg3, LPCMENUITEMINFOW arg4)
|
|
1977 {
|
|
1978 if (XEUNICODE_P)
|
|
1979 return InsertMenuItemW (arg1, arg2, arg3, arg4);
|
|
1980 else
|
|
1981 return InsertMenuItemA (arg1, arg2, arg3, (LPCMENUITEMINFOA) arg4);
|
|
1982 }
|
|
1983
|
|
1984 /* NOTE: NT 4.0+ only */
|
|
1985 BOOL
|
|
1986 qxeGetMenuItemInfo (HMENU arg1, UINT arg2, BOOL arg3, LPMENUITEMINFOW arg4)
|
|
1987 {
|
|
1988 if (XEUNICODE_P)
|
|
1989 return GetMenuItemInfoW (arg1, arg2, arg3, arg4);
|
|
1990 else
|
|
1991 return GetMenuItemInfoA (arg1, arg2, arg3, (LPMENUITEMINFOA) arg4);
|
|
1992 }
|
|
1993
|
|
1994 /* NOTE: NT 4.0+ only */
|
|
1995 BOOL
|
|
1996 qxeSetMenuItemInfo (HMENU arg1, UINT arg2, BOOL arg3, LPCMENUITEMINFOW arg4)
|
|
1997 {
|
|
1998 if (XEUNICODE_P)
|
|
1999 return SetMenuItemInfoW (arg1, arg2, arg3, arg4);
|
|
2000 else
|
|
2001 return SetMenuItemInfoA (arg1, arg2, arg3, (LPCMENUITEMINFOA) arg4);
|
|
2002 }
|
|
2003
|
|
2004 int
|
|
2005 qxeDrawText (HDC hDC, const Extbyte * lpString, int nCount, LPRECT lpRect, UINT uFormat)
|
|
2006 {
|
|
2007 if (XEUNICODE_P)
|
|
2008 return DrawTextW (hDC, (LPCWSTR) lpString, nCount, lpRect, uFormat);
|
|
2009 else
|
|
2010 return DrawTextA (hDC, (LPCSTR) lpString, nCount, lpRect, uFormat);
|
|
2011 }
|
|
2012
|
|
2013 /* NOTE: NT 4.0+ only */
|
|
2014 int
|
|
2015 qxeDrawTextEx (HDC arg1, Extbyte * arg2, int arg3, LPRECT arg4, UINT arg5, LPDRAWTEXTPARAMS arg6)
|
|
2016 {
|
|
2017 if (XEUNICODE_P)
|
|
2018 return DrawTextExW (arg1, (LPWSTR) arg2, arg3, arg4, arg5, arg6);
|
|
2019 else
|
|
2020 return DrawTextExA (arg1, (LPSTR) arg2, arg3, arg4, arg5, arg6);
|
|
2021 }
|
|
2022
|
|
2023 BOOL
|
|
2024 qxeGrayString (HDC hDC, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc, LPARAM lpData, int nCount, int X, int Y, int nWidth, int nHeight)
|
|
2025 {
|
|
2026 if (XEUNICODE_P)
|
|
2027 return GrayStringW (hDC, hBrush, lpOutputFunc, lpData, nCount, X, Y, nWidth, nHeight);
|
|
2028 else
|
|
2029 return GrayStringA (hDC, hBrush, lpOutputFunc, lpData, nCount, X, Y, nWidth, nHeight);
|
|
2030 }
|
|
2031
|
|
2032 /* NOTE: NT 4.0+ only */
|
|
2033 BOOL
|
|
2034 qxeDrawState (HDC arg1, HBRUSH arg2, DRAWSTATEPROC arg3, LPARAM arg4, WPARAM arg5, int arg6, int arg7, int arg8, int arg9, UINT arg10)
|
|
2035 {
|
|
2036 if (XEUNICODE_P)
|
|
2037 return DrawStateW (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
|
|
2038 else
|
|
2039 return DrawStateA (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
|
|
2040 }
|
|
2041
|
|
2042 LONG
|
|
2043 qxeTabbedTextOut (HDC hDC, int X, int Y, const Extbyte * lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions, int nTabOrigin)
|
|
2044 {
|
|
2045 if (XEUNICODE_P)
|
|
2046 return TabbedTextOutW (hDC, X, Y, (LPCWSTR) lpString, nCount, nTabPositions, lpnTabStopPositions, nTabOrigin);
|
|
2047 else
|
|
2048 return TabbedTextOutA (hDC, X, Y, (LPCSTR) lpString, nCount, nTabPositions, lpnTabStopPositions, nTabOrigin);
|
|
2049 }
|
|
2050
|
|
2051 DWORD
|
|
2052 qxeGetTabbedTextExtent (HDC hDC, const Extbyte * lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions)
|
|
2053 {
|
|
2054 if (XEUNICODE_P)
|
|
2055 return GetTabbedTextExtentW (hDC, (LPCWSTR) lpString, nCount, nTabPositions, lpnTabStopPositions);
|
|
2056 else
|
|
2057 return GetTabbedTextExtentA (hDC, (LPCSTR) lpString, nCount, nTabPositions, lpnTabStopPositions);
|
|
2058 }
|
|
2059
|
|
2060 BOOL
|
|
2061 qxeSetProp (HWND hWnd, const Extbyte * lpString, HANDLE hData)
|
|
2062 {
|
|
2063 if (XEUNICODE_P)
|
|
2064 return SetPropW (hWnd, (LPCWSTR) lpString, hData);
|
|
2065 else
|
|
2066 return SetPropA (hWnd, (LPCSTR) lpString, hData);
|
|
2067 }
|
|
2068
|
|
2069 HANDLE
|
|
2070 qxeGetProp (HWND hWnd, const Extbyte * lpString)
|
|
2071 {
|
|
2072 if (XEUNICODE_P)
|
|
2073 return GetPropW (hWnd, (LPCWSTR) lpString);
|
|
2074 else
|
|
2075 return GetPropA (hWnd, (LPCSTR) lpString);
|
|
2076 }
|
|
2077
|
|
2078 HANDLE
|
|
2079 qxeRemoveProp (HWND hWnd, const Extbyte * lpString)
|
|
2080 {
|
|
2081 if (XEUNICODE_P)
|
|
2082 return RemovePropW (hWnd, (LPCWSTR) lpString);
|
|
2083 else
|
|
2084 return RemovePropA (hWnd, (LPCSTR) lpString);
|
|
2085 }
|
|
2086
|
|
2087 /* NOTE: // callback fun differs only in string pointer type */
|
|
2088 int
|
|
2089 qxeEnumPropsEx (HWND hWnd, PROPENUMPROCEXW lpEnumFunc, LPARAM lParam)
|
|
2090 {
|
|
2091 if (XEUNICODE_P)
|
|
2092 return EnumPropsExW (hWnd, lpEnumFunc, lParam);
|
|
2093 else
|
|
2094 return EnumPropsExA (hWnd, (PROPENUMPROCEXA) lpEnumFunc, lParam);
|
|
2095 }
|
|
2096
|
|
2097 /* NOTE: // callback fun differs only in string pointer type */
|
|
2098 int
|
|
2099 qxeEnumProps (HWND hWnd, PROPENUMPROCW lpEnumFunc)
|
|
2100 {
|
|
2101 if (XEUNICODE_P)
|
|
2102 return EnumPropsW (hWnd, lpEnumFunc);
|
|
2103 else
|
|
2104 return EnumPropsA (hWnd, (PROPENUMPROCA) lpEnumFunc);
|
|
2105 }
|
|
2106
|
|
2107 BOOL
|
|
2108 qxeSetWindowText (HWND hWnd, const Extbyte * lpString)
|
|
2109 {
|
|
2110 if (XEUNICODE_P)
|
|
2111 return SetWindowTextW (hWnd, (LPCWSTR) lpString);
|
|
2112 else
|
|
2113 return SetWindowTextA (hWnd, (LPCSTR) lpString);
|
|
2114 }
|
|
2115
|
|
2116 int
|
|
2117 qxeGetWindowText (HWND hWnd, Extbyte * lpString, int nMaxCount)
|
|
2118 {
|
|
2119 if (XEUNICODE_P)
|
|
2120 return GetWindowTextW (hWnd, (LPWSTR) lpString, nMaxCount);
|
|
2121 else
|
|
2122 return GetWindowTextA (hWnd, (LPSTR) lpString, nMaxCount);
|
|
2123 }
|
|
2124
|
|
2125 int
|
|
2126 qxeGetWindowTextLength (HWND hWnd)
|
|
2127 {
|
|
2128 if (XEUNICODE_P)
|
|
2129 return GetWindowTextLengthW (hWnd);
|
|
2130 else
|
|
2131 return GetWindowTextLengthA (hWnd);
|
|
2132 }
|
|
2133
|
|
2134 int
|
|
2135 qxeMessageBox (HWND hWnd, const Extbyte * lpText, const Extbyte * lpCaption, UINT uType)
|
|
2136 {
|
|
2137 if (XEUNICODE_P)
|
|
2138 return MessageBoxW (hWnd, (LPCWSTR) lpText, (LPCWSTR) lpCaption, uType);
|
|
2139 else
|
|
2140 return MessageBoxA (hWnd, (LPCSTR) lpText, (LPCSTR) lpCaption, uType);
|
|
2141 }
|
|
2142
|
|
2143 int
|
|
2144 qxeMessageBoxEx (HWND hWnd, const Extbyte * lpText, const Extbyte * lpCaption, UINT uType, WORD wLanguageId)
|
|
2145 {
|
|
2146 if (XEUNICODE_P)
|
|
2147 return MessageBoxExW (hWnd, (LPCWSTR) lpText, (LPCWSTR) lpCaption, uType, wLanguageId);
|
|
2148 else
|
|
2149 return MessageBoxExA (hWnd, (LPCSTR) lpText, (LPCSTR) lpCaption, uType, wLanguageId);
|
|
2150 }
|
|
2151
|
|
2152 /* NOTE: NT 4.0+ only */
|
|
2153 int
|
|
2154 qxeMessageBoxIndirect (LPMSGBOXPARAMSW arg1)
|
|
2155 {
|
|
2156 if (XEUNICODE_P)
|
|
2157 return MessageBoxIndirectW (arg1);
|
|
2158 else
|
|
2159 return MessageBoxIndirectA ((LPMSGBOXPARAMSA) arg1);
|
|
2160 }
|
|
2161
|
|
2162 LONG
|
|
2163 qxeGetWindowLong (HWND hWnd, int nIndex)
|
|
2164 {
|
|
2165 if (XEUNICODE_P)
|
|
2166 return GetWindowLongW (hWnd, nIndex);
|
|
2167 else
|
|
2168 return GetWindowLongA (hWnd, nIndex);
|
|
2169 }
|
|
2170
|
|
2171 LONG
|
|
2172 qxeSetWindowLong (HWND hWnd, int nIndex, LONG dwNewLong)
|
|
2173 {
|
|
2174 if (XEUNICODE_P)
|
|
2175 return SetWindowLongW (hWnd, nIndex, dwNewLong);
|
|
2176 else
|
|
2177 return SetWindowLongA (hWnd, nIndex, dwNewLong);
|
|
2178 }
|
|
2179
|
|
2180 DWORD
|
|
2181 qxeGetClassLong (HWND hWnd, int nIndex)
|
|
2182 {
|
|
2183 if (XEUNICODE_P)
|
|
2184 return GetClassLongW (hWnd, nIndex);
|
|
2185 else
|
|
2186 return GetClassLongA (hWnd, nIndex);
|
|
2187 }
|
|
2188
|
|
2189 DWORD
|
|
2190 qxeSetClassLong (HWND hWnd, int nIndex, LONG dwNewLong)
|
|
2191 {
|
|
2192 if (XEUNICODE_P)
|
|
2193 return SetClassLongW (hWnd, nIndex, dwNewLong);
|
|
2194 else
|
|
2195 return SetClassLongA (hWnd, nIndex, dwNewLong);
|
|
2196 }
|
|
2197
|
|
2198 HWND
|
|
2199 qxeFindWindow (const Extbyte * lpClassName, const Extbyte * lpWindowName)
|
|
2200 {
|
|
2201 if (XEUNICODE_P)
|
|
2202 return FindWindowW ((LPCWSTR) lpClassName, (LPCWSTR) lpWindowName);
|
|
2203 else
|
|
2204 return FindWindowA ((LPCSTR) lpClassName, (LPCSTR) lpWindowName);
|
|
2205 }
|
|
2206
|
|
2207 /* NOTE: NT 4.0+ only */
|
|
2208 HWND
|
|
2209 qxeFindWindowEx (HWND arg1, HWND arg2, const Extbyte * arg3, const Extbyte * arg4)
|
|
2210 {
|
|
2211 if (XEUNICODE_P)
|
|
2212 return FindWindowExW (arg1, arg2, (LPCWSTR) arg3, (LPCWSTR) arg4);
|
|
2213 else
|
|
2214 return FindWindowExA (arg1, arg2, (LPCSTR) arg3, (LPCSTR) arg4);
|
|
2215 }
|
|
2216
|
|
2217 int
|
|
2218 qxeGetClassName (HWND hWnd, Extbyte * lpClassName, int nMaxCount)
|
|
2219 {
|
|
2220 if (XEUNICODE_P)
|
|
2221 return GetClassNameW (hWnd, (LPWSTR) lpClassName, nMaxCount);
|
|
2222 else
|
|
2223 return GetClassNameA (hWnd, (LPSTR) lpClassName, nMaxCount);
|
|
2224 }
|
|
2225
|
|
2226 /* Error if SetWindowsHook used: obsolete; two versions, STRICT and non-STRICT */
|
|
2227
|
|
2228 /* Error if SetWindowsHook used: obsolete; two versions, STRICT and non-STRICT */
|
|
2229
|
|
2230 HHOOK
|
|
2231 qxeSetWindowsHookEx (int idHook, HOOKPROC lpfn, HINSTANCE hmod, DWORD dwThreadId)
|
|
2232 {
|
|
2233 if (XEUNICODE_P)
|
|
2234 return SetWindowsHookExW (idHook, lpfn, hmod, dwThreadId);
|
|
2235 else
|
|
2236 return SetWindowsHookExA (idHook, lpfn, hmod, dwThreadId);
|
|
2237 }
|
|
2238
|
|
2239 HBITMAP
|
|
2240 qxeLoadBitmap (HINSTANCE hInstance, const Extbyte * lpBitmapName)
|
|
2241 {
|
|
2242 if (XEUNICODE_P)
|
|
2243 return LoadBitmapW (hInstance, (LPCWSTR) lpBitmapName);
|
|
2244 else
|
|
2245 return LoadBitmapA (hInstance, (LPCSTR) lpBitmapName);
|
|
2246 }
|
|
2247
|
|
2248 HCURSOR
|
|
2249 qxeLoadCursor (HINSTANCE hInstance, const Extbyte * lpCursorName)
|
|
2250 {
|
|
2251 if (XEUNICODE_P)
|
|
2252 return LoadCursorW (hInstance, (LPCWSTR) lpCursorName);
|
|
2253 else
|
|
2254 return LoadCursorA (hInstance, (LPCSTR) lpCursorName);
|
|
2255 }
|
|
2256
|
|
2257 HCURSOR
|
|
2258 qxeLoadCursorFromFile (const Extbyte * lpFileName)
|
|
2259 {
|
|
2260 if (XEUNICODE_P)
|
|
2261 return LoadCursorFromFileW ((LPCWSTR) lpFileName);
|
|
2262 else
|
|
2263 return LoadCursorFromFileA ((LPCSTR) lpFileName);
|
|
2264 }
|
|
2265
|
|
2266 HICON
|
|
2267 qxeLoadIcon (HINSTANCE hInstance, const Extbyte * lpIconName)
|
|
2268 {
|
|
2269 if (XEUNICODE_P)
|
|
2270 return LoadIconW (hInstance, (LPCWSTR) lpIconName);
|
|
2271 else
|
|
2272 return LoadIconA (hInstance, (LPCSTR) lpIconName);
|
|
2273 }
|
|
2274
|
|
2275 /* NOTE: NT 4.0+ only */
|
|
2276 HANDLE
|
|
2277 qxeLoadImage (HINSTANCE arg1, const Extbyte * arg2, UINT arg3, int arg4, int arg5, UINT arg6)
|
|
2278 {
|
|
2279 if (XEUNICODE_P)
|
|
2280 return LoadImageW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6);
|
|
2281 else
|
|
2282 return LoadImageA (arg1, (LPCSTR) arg2, arg3, arg4, arg5, arg6);
|
|
2283 }
|
|
2284
|
|
2285 int
|
|
2286 qxeLoadString (HINSTANCE hInstance, UINT uID, Extbyte * lpBuffer, int nBufferMax)
|
|
2287 {
|
|
2288 if (XEUNICODE_P)
|
|
2289 return LoadStringW (hInstance, uID, (LPWSTR) lpBuffer, nBufferMax);
|
|
2290 else
|
|
2291 return LoadStringA (hInstance, uID, (LPSTR) lpBuffer, nBufferMax);
|
|
2292 }
|
|
2293
|
|
2294 BOOL
|
|
2295 qxeIsDialogMessage (HWND hDlg, LPMSG lpMsg)
|
|
2296 {
|
|
2297 if (XEUNICODE_P)
|
|
2298 return IsDialogMessageW (hDlg, lpMsg);
|
|
2299 else
|
|
2300 return IsDialogMessageA (hDlg, lpMsg);
|
|
2301 }
|
|
2302
|
|
2303 int
|
|
2304 qxeDlgDirList (HWND hDlg, Extbyte * lpPathSpec, int nIDListBox, int nIDStaticPath, UINT uFileType)
|
|
2305 {
|
|
2306 if (XEUNICODE_P)
|
|
2307 return DlgDirListW (hDlg, (LPWSTR) lpPathSpec, nIDListBox, nIDStaticPath, uFileType);
|
|
2308 else
|
|
2309 return DlgDirListA (hDlg, (LPSTR) lpPathSpec, nIDListBox, nIDStaticPath, uFileType);
|
|
2310 }
|
|
2311
|
|
2312 BOOL
|
|
2313 qxeDlgDirSelectEx (HWND hDlg, Extbyte * lpString, int nCount, int nIDListBox)
|
|
2314 {
|
|
2315 if (XEUNICODE_P)
|
|
2316 return DlgDirSelectExW (hDlg, (LPWSTR) lpString, nCount, nIDListBox);
|
|
2317 else
|
|
2318 return DlgDirSelectExA (hDlg, (LPSTR) lpString, nCount, nIDListBox);
|
|
2319 }
|
|
2320
|
|
2321 int
|
|
2322 qxeDlgDirListComboBox (HWND hDlg, Extbyte * lpPathSpec, int nIDComboBox, int nIDStaticPath, UINT uFiletype)
|
|
2323 {
|
|
2324 if (XEUNICODE_P)
|
|
2325 return DlgDirListComboBoxW (hDlg, (LPWSTR) lpPathSpec, nIDComboBox, nIDStaticPath, uFiletype);
|
|
2326 else
|
|
2327 return DlgDirListComboBoxA (hDlg, (LPSTR) lpPathSpec, nIDComboBox, nIDStaticPath, uFiletype);
|
|
2328 }
|
|
2329
|
|
2330 BOOL
|
|
2331 qxeDlgDirSelectComboBoxEx (HWND hDlg, Extbyte * lpString, int nCount, int nIDComboBox)
|
|
2332 {
|
|
2333 if (XEUNICODE_P)
|
|
2334 return DlgDirSelectComboBoxExW (hDlg, (LPWSTR) lpString, nCount, nIDComboBox);
|
|
2335 else
|
|
2336 return DlgDirSelectComboBoxExA (hDlg, (LPSTR) lpString, nCount, nIDComboBox);
|
|
2337 }
|
|
2338
|
|
2339 LRESULT
|
|
2340 qxeDefFrameProc (HWND hWnd, HWND hWndMDIClient, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
2341 {
|
|
2342 if (XEUNICODE_P)
|
|
2343 return DefFrameProcW (hWnd, hWndMDIClient, uMsg, wParam, lParam);
|
|
2344 else
|
|
2345 return DefFrameProcA (hWnd, hWndMDIClient, uMsg, wParam, lParam);
|
|
2346 }
|
|
2347
|
|
2348 /* Error if DefMDIChildProc used: return value is conditionalized on _MAC, messes up parser */
|
|
2349
|
|
2350 HWND
|
|
2351 qxeCreateMDIWindow (Extbyte * lpClassName, Extbyte * lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HINSTANCE hInstance, LPARAM lParam)
|
|
2352 {
|
|
2353 if (XEUNICODE_P)
|
|
2354 return CreateMDIWindowW ((LPWSTR) lpClassName, (LPWSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hInstance, lParam);
|
|
2355 else
|
|
2356 return CreateMDIWindowA ((LPSTR) lpClassName, (LPSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hInstance, lParam);
|
|
2357 }
|
|
2358
|
|
2359 BOOL
|
|
2360 qxeWinHelp (HWND hWndMain, const Extbyte * lpszHelp, UINT uCommand, DWORD dwData)
|
|
2361 {
|
|
2362 if (XEUNICODE_P)
|
|
2363 return WinHelpW (hWndMain, (LPCWSTR) lpszHelp, uCommand, dwData);
|
|
2364 else
|
|
2365 return WinHelpA (hWndMain, (LPCSTR) lpszHelp, uCommand, dwData);
|
|
2366 }
|
|
2367
|
|
2368 /* Error if ChangeDisplaySettings used: split-sized LPDEVMODE */
|
|
2369
|
|
2370 /* Error if ChangeDisplaySettingsEx used: split-sized LPDEVMODE; NT 5.0/Win98+ only */
|
|
2371
|
|
2372 /* Error if EnumDisplaySettings used: split-sized LPDEVMODE */
|
|
2373
|
|
2374 /* Error if EnumDisplayDevices used: split-sized PDISPLAY_DEVICE; NT 5.0+ only, no Win98 */
|
|
2375
|
|
2376 /* NOTE: probs w/ICONMETRICS, NONCLIENTMETRICS */
|
|
2377 BOOL
|
|
2378 qxeSystemParametersInfo (UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
|
|
2379 {
|
|
2380 if (XEUNICODE_P)
|
|
2381 return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni);
|
|
2382 else
|
|
2383 return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni);
|
|
2384 }
|
|
2385
|
|
2386 /* Error if GetMonitorInfo used: NT 5.0/Win98+ only */
|
|
2387
|
|
2388 /* Error if GetWindowModuleFileName used: NT 5.0+ only */
|
|
2389
|
|
2390 /* Error if RealGetWindowClass used: NT 5.0+ only */
|
|
2391
|
|
2392 /* Error if GetAltTabInfo used: NT 5.0+ only */
|
|
2393
|
|
2394
|
|
2395 /*----------------------------------------------------------------------*/
|
|
2396 /* Processing file MMSYSTEM.H */
|
|
2397 /*----------------------------------------------------------------------*/
|
|
2398
|
|
2399 BOOL
|
|
2400 qxesndPlaySound (const Extbyte * pszSound, UINT fuSound)
|
|
2401 {
|
|
2402 if (XEUNICODE_P)
|
|
2403 return sndPlaySoundW ((LPCWSTR) pszSound, fuSound);
|
|
2404 else
|
|
2405 return sndPlaySoundA ((LPCSTR) pszSound, fuSound);
|
|
2406 }
|
|
2407
|
|
2408 BOOL
|
|
2409 qxePlaySound (const Extbyte * pszSound, HMODULE hmod, DWORD fdwSound)
|
|
2410 {
|
|
2411 if (XEUNICODE_P)
|
|
2412 return PlaySoundW ((LPCWSTR) pszSound, hmod, fdwSound);
|
|
2413 else
|
|
2414 return PlaySoundA ((LPCSTR) pszSound, hmod, fdwSound);
|
|
2415 }
|
|
2416
|
|
2417 /* Error if waveOutGetDevCaps used: split-sized LPWAVEOUTCAPS */
|
|
2418
|
|
2419 MMRESULT
|
|
2420 qxewaveOutGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
2421 {
|
|
2422 if (XEUNICODE_P)
|
|
2423 return waveOutGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
2424 else
|
|
2425 return waveOutGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
2426 }
|
|
2427
|
|
2428 /* Error if waveInGetDevCaps used: split-sized LPWAVEINCAPS */
|
|
2429
|
|
2430 MMRESULT
|
|
2431 qxewaveInGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
2432 {
|
|
2433 if (XEUNICODE_P)
|
|
2434 return waveInGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
2435 else
|
|
2436 return waveInGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
2437 }
|
|
2438
|
|
2439 /* Error if midiOutGetDevCaps used: split-sized LPMIDIOUTCAPS */
|
|
2440
|
|
2441 MMRESULT
|
|
2442 qxemidiOutGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
2443 {
|
|
2444 if (XEUNICODE_P)
|
|
2445 return midiOutGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
2446 else
|
|
2447 return midiOutGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
2448 }
|
|
2449
|
|
2450 /* Error if midiInGetDevCaps used: split-sized LPMIDIOUTCAPS */
|
|
2451
|
|
2452 MMRESULT
|
|
2453 qxemidiInGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText)
|
|
2454 {
|
|
2455 if (XEUNICODE_P)
|
|
2456 return midiInGetErrorTextW (mmrError, (LPWSTR) pszText, cchText);
|
|
2457 else
|
|
2458 return midiInGetErrorTextA (mmrError, (LPSTR) pszText, cchText);
|
|
2459 }
|
|
2460
|
|
2461 /* Error if auxGetDevCaps used: split-sized LPAUXCAPS */
|
|
2462
|
|
2463 /* Error if mixerGetDevCaps used: split-sized LPMIXERCAPS */
|
|
2464
|
|
2465 /* Error if mixerGetLineInfo used: split-sized LPMIXERLINE */
|
|
2466
|
|
2467 /* Error if mixerGetLineControls used: split-sized LPMIXERCONTROL */
|
|
2468
|
|
2469 /* Error if mixerGetControlDetails used: split-sized LPMIXERCONTROL in LPMIXERLINECONTROLS in LPMIXERCONTROLDETAILS */
|
|
2470
|
|
2471 /* Error if joyGetDevCaps used: split-sized LPJOYCAPS */
|
|
2472
|
|
2473 FOURCC
|
|
2474 qxemmioStringToFOURCC (const Extbyte * sz, UINT uFlags)
|
|
2475 {
|
|
2476 if (XEUNICODE_P)
|
|
2477 return mmioStringToFOURCCW ((LPCWSTR) sz, uFlags);
|
|
2478 else
|
|
2479 return mmioStringToFOURCCA ((LPCSTR) sz, uFlags);
|
|
2480 }
|
|
2481
|
|
2482 LPMMIOPROC
|
|
2483 qxemmioInstallIOProc (FOURCC fccIOProc, LPMMIOPROC pIOProc, DWORD dwFlags)
|
|
2484 {
|
|
2485 if (XEUNICODE_P)
|
|
2486 return mmioInstallIOProcW (fccIOProc, pIOProc, dwFlags);
|
|
2487 else
|
|
2488 return mmioInstallIOProcA (fccIOProc, pIOProc, dwFlags);
|
|
2489 }
|
|
2490
|
|
2491 HMMIO
|
|
2492 qxemmioOpen (Extbyte * pszFileName, LPMMIOINFO pmmioinfo, DWORD fdwOpen)
|
|
2493 {
|
|
2494 if (XEUNICODE_P)
|
|
2495 return mmioOpenW ((LPWSTR) pszFileName, pmmioinfo, fdwOpen);
|
|
2496 else
|
|
2497 return mmioOpenA ((LPSTR) pszFileName, pmmioinfo, fdwOpen);
|
|
2498 }
|
|
2499
|
|
2500 MMRESULT
|
|
2501 qxemmioRename (const Extbyte * pszFileName, const Extbyte * pszNewFileName, LPCMMIOINFO pmmioinfo, DWORD fdwRename)
|
|
2502 {
|
|
2503 if (XEUNICODE_P)
|
|
2504 return mmioRenameW ((LPCWSTR) pszFileName, (LPCWSTR) pszNewFileName, pmmioinfo, fdwRename);
|
|
2505 else
|
|
2506 return mmioRenameA ((LPCSTR) pszFileName, (LPCSTR) pszNewFileName, pmmioinfo, fdwRename);
|
|
2507 }
|
|
2508
|
|
2509 MCIERROR
|
|
2510 qxemciSendCommand (MCIDEVICEID mciId, UINT uMsg, DWORD dwParam1, DWORD dwParam2)
|
|
2511 {
|
|
2512 if (XEUNICODE_P)
|
|
2513 return mciSendCommandW (mciId, uMsg, dwParam1, dwParam2);
|
|
2514 else
|
|
2515 return mciSendCommandA (mciId, uMsg, dwParam1, dwParam2);
|
|
2516 }
|
|
2517
|
|
2518 MCIERROR
|
|
2519 qxemciSendString (const Extbyte * lpstrCommand, Extbyte * lpstrReturnString, UINT uReturnLength, HWND hwndCallback)
|
|
2520 {
|
|
2521 if (XEUNICODE_P)
|
|
2522 return mciSendStringW ((LPCWSTR) lpstrCommand, (LPWSTR) lpstrReturnString, uReturnLength, hwndCallback);
|
|
2523 else
|
|
2524 return mciSendStringA ((LPCSTR) lpstrCommand, (LPSTR) lpstrReturnString, uReturnLength, hwndCallback);
|
|
2525 }
|
|
2526
|
|
2527 MCIDEVICEID
|
|
2528 qxemciGetDeviceID (const Extbyte * pszDevice)
|
|
2529 {
|
|
2530 if (XEUNICODE_P)
|
|
2531 return mciGetDeviceIDW ((LPCWSTR) pszDevice);
|
|
2532 else
|
|
2533 return mciGetDeviceIDA ((LPCSTR) pszDevice);
|
|
2534 }
|
|
2535
|
|
2536 #if !defined (MINGW)
|
|
2537
|
778
|
2538 /* Error if mciGetDeviceIDFromElementID used: missing from Win98se version of ADVAPI32.dll */
|
771
|
2539
|
|
2540 #endif /* !defined (MINGW) */
|
|
2541
|
|
2542 BOOL
|
|
2543 qxemciGetErrorString (MCIERROR mcierr, Extbyte * pszText, UINT cchText)
|
|
2544 {
|
|
2545 if (XEUNICODE_P)
|
|
2546 return mciGetErrorStringW (mcierr, (LPWSTR) pszText, cchText);
|
|
2547 else
|
|
2548 return mciGetErrorStringA (mcierr, (LPSTR) pszText, cchText);
|
|
2549 }
|
|
2550
|
|
2551
|
|
2552 /*----------------------------------------------------------------------*/
|
|
2553 /* Processing file WINBASE.H */
|
|
2554 /*----------------------------------------------------------------------*/
|
|
2555
|
|
2556 BOOL
|
|
2557 qxeGetBinaryType (const Extbyte * lpApplicationName, LPDWORD lpBinaryType)
|
|
2558 {
|
|
2559 if (XEUNICODE_P)
|
|
2560 return GetBinaryTypeW ((LPCWSTR) lpApplicationName, lpBinaryType);
|
|
2561 else
|
|
2562 return GetBinaryTypeA ((LPCSTR) lpApplicationName, lpBinaryType);
|
|
2563 }
|
|
2564
|
|
2565 DWORD
|
|
2566 qxeGetShortPathName (const Extbyte * lpszLongPath, Extbyte * lpszShortPath, DWORD cchBuffer)
|
|
2567 {
|
|
2568 if (XEUNICODE_P)
|
|
2569 return GetShortPathNameW ((LPCWSTR) lpszLongPath, (LPWSTR) lpszShortPath, cchBuffer);
|
|
2570 else
|
|
2571 return GetShortPathNameA ((LPCSTR) lpszLongPath, (LPSTR) lpszShortPath, cchBuffer);
|
|
2572 }
|
|
2573
|
|
2574 DWORD
|
|
2575 qxeGetLongPathName (const Extbyte * lpszShortPath, Extbyte * lpszLongPath, DWORD cchBuffer)
|
|
2576 {
|
|
2577 if (XEUNICODE_P)
|
|
2578 return GetLongPathNameW ((LPCWSTR) lpszShortPath, (LPWSTR) lpszLongPath, cchBuffer);
|
|
2579 else
|
|
2580 return GetLongPathNameA ((LPCSTR) lpszShortPath, (LPSTR) lpszLongPath, cchBuffer);
|
|
2581 }
|
|
2582
|
827
|
2583 /* Skipping GetEnvironmentStrings because misnamed ANSI version of the function */
|
|
2584
|
771
|
2585 BOOL
|
|
2586 qxeFreeEnvironmentStrings (Extbyte * arg1)
|
|
2587 {
|
|
2588 if (XEUNICODE_P)
|
|
2589 return FreeEnvironmentStringsW ((LPWSTR) arg1);
|
|
2590 else
|
|
2591 return FreeEnvironmentStringsA ((LPSTR) arg1);
|
|
2592 }
|
|
2593
|
|
2594 DWORD
|
|
2595 qxeFormatMessage (DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, Extbyte * lpBuffer, DWORD nSize, va_list * Arguments)
|
|
2596 {
|
|
2597 if (XEUNICODE_P)
|
|
2598 return FormatMessageW (dwFlags, lpSource, dwMessageId, dwLanguageId, (LPWSTR) lpBuffer, nSize, Arguments);
|
|
2599 else
|
|
2600 return FormatMessageA (dwFlags, lpSource, dwMessageId, dwLanguageId, (LPSTR) lpBuffer, nSize, Arguments);
|
|
2601 }
|
|
2602
|
|
2603 HANDLE
|
|
2604 qxeCreateMailslot (const Extbyte * lpName, DWORD nMaxMessageSize, DWORD lReadTimeout, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
2605 {
|
|
2606 if (XEUNICODE_P)
|
|
2607 return CreateMailslotW ((LPCWSTR) lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes);
|
|
2608 else
|
|
2609 return CreateMailslotA ((LPCSTR) lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes);
|
|
2610 }
|
|
2611
|
|
2612 #if !defined (CYGWIN_HEADERS)
|
|
2613
|
778
|
2614 /* Error if EncryptFile used: Win2K+ only */
|
771
|
2615
|
|
2616 #endif /* !defined (CYGWIN_HEADERS) */
|
|
2617
|
|
2618 #if !defined (CYGWIN_HEADERS)
|
|
2619
|
778
|
2620 /* Error if DecryptFile used: Win2K+ only */
|
771
|
2621
|
|
2622 #endif /* !defined (CYGWIN_HEADERS) */
|
|
2623
|
|
2624 /* Error if OpenRaw used: error "The procedure entry point OpenRawW could not be located in the dynamic link library ADVAPI32.dll." */
|
|
2625
|
|
2626 /* Error if QueryRecoveryAgents used: split-sized LPRECOVERY_AGENT_INFORMATION */
|
|
2627
|
|
2628 int
|
|
2629 qxelstrcmp (const Extbyte * lpString1, const Extbyte * lpString2)
|
|
2630 {
|
|
2631 if (XEUNICODE_P)
|
|
2632 return lstrcmpW ((LPCWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2633 else
|
|
2634 return lstrcmpA ((LPCSTR) lpString1, (LPCSTR) lpString2);
|
|
2635 }
|
|
2636
|
|
2637 int
|
|
2638 qxelstrcmpi (const Extbyte * lpString1, const Extbyte * lpString2)
|
|
2639 {
|
|
2640 if (XEUNICODE_P)
|
|
2641 return lstrcmpiW ((LPCWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2642 else
|
|
2643 return lstrcmpiA ((LPCSTR) lpString1, (LPCSTR) lpString2);
|
|
2644 }
|
|
2645
|
|
2646 Extbyte *
|
|
2647 qxelstrcpyn (Extbyte * lpString1, const Extbyte * lpString2, int iMaxLength)
|
|
2648 {
|
|
2649 if (XEUNICODE_P)
|
|
2650 return (Extbyte *) lstrcpynW ((LPWSTR) lpString1, (LPCWSTR) lpString2, iMaxLength);
|
|
2651 else
|
|
2652 return (Extbyte *) lstrcpynA ((LPSTR) lpString1, (LPCSTR) lpString2, iMaxLength);
|
|
2653 }
|
|
2654
|
|
2655 Extbyte *
|
|
2656 qxelstrcpy (Extbyte * lpString1, const Extbyte * lpString2)
|
|
2657 {
|
|
2658 if (XEUNICODE_P)
|
|
2659 return (Extbyte *) lstrcpyW ((LPWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2660 else
|
|
2661 return (Extbyte *) lstrcpyA ((LPSTR) lpString1, (LPCSTR) lpString2);
|
|
2662 }
|
|
2663
|
|
2664 Extbyte *
|
|
2665 qxelstrcat (Extbyte * lpString1, const Extbyte * lpString2)
|
|
2666 {
|
|
2667 if (XEUNICODE_P)
|
|
2668 return (Extbyte *) lstrcatW ((LPWSTR) lpString1, (LPCWSTR) lpString2);
|
|
2669 else
|
|
2670 return (Extbyte *) lstrcatA ((LPSTR) lpString1, (LPCSTR) lpString2);
|
|
2671 }
|
|
2672
|
|
2673 int
|
|
2674 qxelstrlen (const Extbyte * lpString)
|
|
2675 {
|
|
2676 if (XEUNICODE_P)
|
|
2677 return lstrlenW ((LPCWSTR) lpString);
|
|
2678 else
|
|
2679 return lstrlenA ((LPCSTR) lpString);
|
|
2680 }
|
|
2681
|
|
2682 HANDLE
|
|
2683 qxeCreateMutex (LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner, const Extbyte * lpName)
|
|
2684 {
|
|
2685 if (XEUNICODE_P)
|
|
2686 return CreateMutexW (lpMutexAttributes, bInitialOwner, (LPCWSTR) lpName);
|
|
2687 else
|
|
2688 return CreateMutexA (lpMutexAttributes, bInitialOwner, (LPCSTR) lpName);
|
|
2689 }
|
|
2690
|
|
2691 HANDLE
|
|
2692 qxeOpenMutex (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2693 {
|
|
2694 if (XEUNICODE_P)
|
|
2695 return OpenMutexW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2696 else
|
|
2697 return OpenMutexA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2698 }
|
|
2699
|
|
2700 HANDLE
|
|
2701 qxeCreateEvent (LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, const Extbyte * lpName)
|
|
2702 {
|
|
2703 if (XEUNICODE_P)
|
|
2704 return CreateEventW (lpEventAttributes, bManualReset, bInitialState, (LPCWSTR) lpName);
|
|
2705 else
|
|
2706 return CreateEventA (lpEventAttributes, bManualReset, bInitialState, (LPCSTR) lpName);
|
|
2707 }
|
|
2708
|
|
2709 HANDLE
|
|
2710 qxeOpenEvent (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2711 {
|
|
2712 if (XEUNICODE_P)
|
|
2713 return OpenEventW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2714 else
|
|
2715 return OpenEventA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2716 }
|
|
2717
|
|
2718 HANDLE
|
|
2719 qxeCreateSemaphore (LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, const Extbyte * lpName)
|
|
2720 {
|
|
2721 if (XEUNICODE_P)
|
|
2722 return CreateSemaphoreW (lpSemaphoreAttributes, lInitialCount, lMaximumCount, (LPCWSTR) lpName);
|
|
2723 else
|
|
2724 return CreateSemaphoreA (lpSemaphoreAttributes, lInitialCount, lMaximumCount, (LPCSTR) lpName);
|
|
2725 }
|
|
2726
|
|
2727 HANDLE
|
|
2728 qxeOpenSemaphore (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2729 {
|
|
2730 if (XEUNICODE_P)
|
|
2731 return OpenSemaphoreW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2732 else
|
|
2733 return OpenSemaphoreA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2734 }
|
|
2735
|
|
2736 HANDLE
|
|
2737 qxeCreateWaitableTimer (LPSECURITY_ATTRIBUTES lpTimerAttributes, BOOL bManualReset, const Extbyte * lpTimerName)
|
|
2738 {
|
|
2739 if (XEUNICODE_P)
|
|
2740 return CreateWaitableTimerW (lpTimerAttributes, bManualReset, (LPCWSTR) lpTimerName);
|
|
2741 else
|
|
2742 return CreateWaitableTimerA (lpTimerAttributes, bManualReset, (LPCSTR) lpTimerName);
|
|
2743 }
|
|
2744
|
|
2745 HANDLE
|
|
2746 qxeOpenWaitableTimer (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpTimerName)
|
|
2747 {
|
|
2748 if (XEUNICODE_P)
|
|
2749 return OpenWaitableTimerW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpTimerName);
|
|
2750 else
|
|
2751 return OpenWaitableTimerA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpTimerName);
|
|
2752 }
|
|
2753
|
|
2754 HANDLE
|
|
2755 qxeCreateFileMapping (HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, const Extbyte * lpName)
|
|
2756 {
|
|
2757 if (XEUNICODE_P)
|
|
2758 return CreateFileMappingW (hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, (LPCWSTR) lpName);
|
|
2759 else
|
|
2760 return CreateFileMappingA (hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, (LPCSTR) lpName);
|
|
2761 }
|
|
2762
|
|
2763 HANDLE
|
|
2764 qxeOpenFileMapping (DWORD dwDesiredAccess, BOOL bInheritHandle, const Extbyte * lpName)
|
|
2765 {
|
|
2766 if (XEUNICODE_P)
|
|
2767 return OpenFileMappingW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName);
|
|
2768 else
|
|
2769 return OpenFileMappingA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName);
|
|
2770 }
|
|
2771
|
|
2772 DWORD
|
|
2773 qxeGetLogicalDriveStrings (DWORD nBufferLength, Extbyte * lpBuffer)
|
|
2774 {
|
|
2775 if (XEUNICODE_P)
|
|
2776 return GetLogicalDriveStringsW (nBufferLength, (LPWSTR) lpBuffer);
|
|
2777 else
|
|
2778 return GetLogicalDriveStringsA (nBufferLength, (LPSTR) lpBuffer);
|
|
2779 }
|
|
2780
|
|
2781 HMODULE
|
|
2782 qxeLoadLibrary (const Extbyte * lpLibFileName)
|
|
2783 {
|
|
2784 if (XEUNICODE_P)
|
|
2785 return LoadLibraryW ((LPCWSTR) lpLibFileName);
|
|
2786 else
|
|
2787 return LoadLibraryA ((LPCSTR) lpLibFileName);
|
|
2788 }
|
|
2789
|
|
2790 HMODULE
|
|
2791 qxeLoadLibraryEx (const Extbyte * lpLibFileName, HANDLE hFile, DWORD dwFlags)
|
|
2792 {
|
|
2793 if (XEUNICODE_P)
|
|
2794 return LoadLibraryExW ((LPCWSTR) lpLibFileName, hFile, dwFlags);
|
|
2795 else
|
|
2796 return LoadLibraryExA ((LPCSTR) lpLibFileName, hFile, dwFlags);
|
|
2797 }
|
|
2798
|
|
2799 DWORD
|
|
2800 qxeGetModuleFileName (HMODULE hModule, Extbyte * lpFilename, DWORD nSize)
|
|
2801 {
|
|
2802 if (XEUNICODE_P)
|
|
2803 return GetModuleFileNameW (hModule, (LPWSTR) lpFilename, nSize);
|
|
2804 else
|
|
2805 return GetModuleFileNameA (hModule, (LPSTR) lpFilename, nSize);
|
|
2806 }
|
|
2807
|
|
2808 HMODULE
|
|
2809 qxeGetModuleHandle (const Extbyte * lpModuleName)
|
|
2810 {
|
|
2811 if (XEUNICODE_P)
|
|
2812 return GetModuleHandleW ((LPCWSTR) lpModuleName);
|
|
2813 else
|
|
2814 return GetModuleHandleA ((LPCSTR) lpModuleName);
|
|
2815 }
|
|
2816
|
|
2817 BOOL
|
|
2818 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)
|
|
2819 {
|
|
2820 if (XEUNICODE_P)
|
|
2821 return CreateProcessW ((LPCWSTR) lpApplicationName, (LPWSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCWSTR) lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
|
|
2822 else
|
|
2823 return CreateProcessA ((LPCSTR) lpApplicationName, (LPSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCSTR) lpCurrentDirectory, (LPSTARTUPINFOA) lpStartupInfo, lpProcessInformation);
|
|
2824 }
|
|
2825
|
|
2826 VOID
|
|
2827 qxeFatalAppExit (UINT uAction, const Extbyte * lpMessageText)
|
|
2828 {
|
|
2829 if (XEUNICODE_P)
|
|
2830 FatalAppExitW (uAction, (LPCWSTR) lpMessageText);
|
|
2831 else
|
|
2832 FatalAppExitA (uAction, (LPCSTR) lpMessageText);
|
|
2833 }
|
|
2834
|
|
2835 VOID
|
|
2836 qxeGetStartupInfo (LPSTARTUPINFOW lpStartupInfo)
|
|
2837 {
|
|
2838 if (XEUNICODE_P)
|
|
2839 GetStartupInfoW (lpStartupInfo);
|
|
2840 else
|
|
2841 GetStartupInfoA ((LPSTARTUPINFOA) lpStartupInfo);
|
|
2842 }
|
|
2843
|
|
2844 Extbyte *
|
|
2845 qxeGetCommandLine (void)
|
|
2846 {
|
|
2847 if (XEUNICODE_P)
|
|
2848 return (Extbyte *) GetCommandLineW ();
|
|
2849 else
|
|
2850 return (Extbyte *) GetCommandLineA ();
|
|
2851 }
|
|
2852
|
|
2853 DWORD
|
|
2854 qxeGetEnvironmentVariable (const Extbyte * lpName, Extbyte * lpBuffer, DWORD nSize)
|
|
2855 {
|
|
2856 if (XEUNICODE_P)
|
|
2857 return GetEnvironmentVariableW ((LPCWSTR) lpName, (LPWSTR) lpBuffer, nSize);
|
|
2858 else
|
|
2859 return GetEnvironmentVariableA ((LPCSTR) lpName, (LPSTR) lpBuffer, nSize);
|
|
2860 }
|
|
2861
|
|
2862 BOOL
|
|
2863 qxeSetEnvironmentVariable (const Extbyte * lpName, const Extbyte * lpValue)
|
|
2864 {
|
|
2865 if (XEUNICODE_P)
|
|
2866 return SetEnvironmentVariableW ((LPCWSTR) lpName, (LPCWSTR) lpValue);
|
|
2867 else
|
|
2868 return SetEnvironmentVariableA ((LPCSTR) lpName, (LPCSTR) lpValue);
|
|
2869 }
|
|
2870
|
|
2871 DWORD
|
|
2872 qxeExpandEnvironmentStrings (const Extbyte * lpSrc, Extbyte * lpDst, DWORD nSize)
|
|
2873 {
|
|
2874 if (XEUNICODE_P)
|
|
2875 return ExpandEnvironmentStringsW ((LPCWSTR) lpSrc, (LPWSTR) lpDst, nSize);
|
|
2876 else
|
|
2877 return ExpandEnvironmentStringsA ((LPCSTR) lpSrc, (LPSTR) lpDst, nSize);
|
|
2878 }
|
|
2879
|
|
2880 VOID
|
|
2881 qxeOutputDebugString (const Extbyte * lpOutputString)
|
|
2882 {
|
|
2883 if (XEUNICODE_P)
|
|
2884 OutputDebugStringW ((LPCWSTR) lpOutputString);
|
|
2885 else
|
|
2886 OutputDebugStringA ((LPCSTR) lpOutputString);
|
|
2887 }
|
|
2888
|
|
2889 HRSRC
|
|
2890 qxeFindResource (HMODULE hModule, const Extbyte * lpName, const Extbyte * lpType)
|
|
2891 {
|
|
2892 if (XEUNICODE_P)
|
|
2893 return FindResourceW (hModule, (LPCWSTR) lpName, (LPCWSTR) lpType);
|
|
2894 else
|
|
2895 return FindResourceA (hModule, (LPCSTR) lpName, (LPCSTR) lpType);
|
|
2896 }
|
|
2897
|
|
2898 HRSRC
|
|
2899 qxeFindResourceEx (HMODULE hModule, const Extbyte * lpType, const Extbyte * lpName, WORD wLanguage)
|
|
2900 {
|
|
2901 if (XEUNICODE_P)
|
|
2902 return FindResourceExW (hModule, (LPCWSTR) lpType, (LPCWSTR) lpName, wLanguage);
|
|
2903 else
|
|
2904 return FindResourceExA (hModule, (LPCSTR) lpType, (LPCSTR) lpName, wLanguage);
|
|
2905 }
|
|
2906
|
|
2907 BOOL
|
|
2908 qxeEnumResourceTypes (HMODULE hModule, ENUMRESTYPEPROC lpEnumFunc, LONG lParam)
|
|
2909 {
|
|
2910 if (XEUNICODE_P)
|
|
2911 return EnumResourceTypesW (hModule, lpEnumFunc, lParam);
|
|
2912 else
|
|
2913 return EnumResourceTypesA (hModule, lpEnumFunc, lParam);
|
|
2914 }
|
|
2915
|
|
2916 BOOL
|
|
2917 qxeEnumResourceNames (HMODULE hModule, const Extbyte * lpType, ENUMRESNAMEPROC lpEnumFunc, LONG lParam)
|
|
2918 {
|
|
2919 if (XEUNICODE_P)
|
|
2920 return EnumResourceNamesW (hModule, (LPCWSTR) lpType, lpEnumFunc, lParam);
|
|
2921 else
|
|
2922 return EnumResourceNamesA (hModule, (LPCSTR) lpType, lpEnumFunc, lParam);
|
|
2923 }
|
|
2924
|
|
2925 BOOL
|
|
2926 qxeEnumResourceLanguages (HMODULE hModule, const Extbyte * lpType, const Extbyte * lpName, ENUMRESLANGPROC lpEnumFunc, LONG lParam)
|
|
2927 {
|
|
2928 if (XEUNICODE_P)
|
|
2929 return EnumResourceLanguagesW (hModule, (LPCWSTR) lpType, (LPCWSTR) lpName, lpEnumFunc, lParam);
|
|
2930 else
|
|
2931 return EnumResourceLanguagesA (hModule, (LPCSTR) lpType, (LPCSTR) lpName, lpEnumFunc, lParam);
|
|
2932 }
|
|
2933
|
|
2934 HANDLE
|
|
2935 qxeBeginUpdateResource (const Extbyte * pFileName, BOOL bDeleteExistingResources)
|
|
2936 {
|
|
2937 if (XEUNICODE_P)
|
|
2938 return BeginUpdateResourceW ((LPCWSTR) pFileName, bDeleteExistingResources);
|
|
2939 else
|
|
2940 return BeginUpdateResourceA ((LPCSTR) pFileName, bDeleteExistingResources);
|
|
2941 }
|
|
2942
|
|
2943 BOOL
|
|
2944 qxeUpdateResource (HANDLE hUpdate, const Extbyte * lpType, const Extbyte * lpName, WORD wLanguage, LPVOID lpData, DWORD cbData)
|
|
2945 {
|
|
2946 if (XEUNICODE_P)
|
|
2947 return UpdateResourceW (hUpdate, (LPCWSTR) lpType, (LPCWSTR) lpName, wLanguage, lpData, cbData);
|
|
2948 else
|
|
2949 return UpdateResourceA (hUpdate, (LPCSTR) lpType, (LPCSTR) lpName, wLanguage, lpData, cbData);
|
|
2950 }
|
|
2951
|
|
2952 BOOL
|
|
2953 qxeEndUpdateResource (HANDLE hUpdate, BOOL fDiscard)
|
|
2954 {
|
|
2955 if (XEUNICODE_P)
|
|
2956 return EndUpdateResourceW (hUpdate, fDiscard);
|
|
2957 else
|
|
2958 return EndUpdateResourceA (hUpdate, fDiscard);
|
|
2959 }
|
|
2960
|
|
2961 ATOM
|
|
2962 qxeGlobalAddAtom (const Extbyte * lpString)
|
|
2963 {
|
|
2964 if (XEUNICODE_P)
|
|
2965 return GlobalAddAtomW ((LPCWSTR) lpString);
|
|
2966 else
|
|
2967 return GlobalAddAtomA ((LPCSTR) lpString);
|
|
2968 }
|
|
2969
|
|
2970 ATOM
|
|
2971 qxeGlobalFindAtom (const Extbyte * lpString)
|
|
2972 {
|
|
2973 if (XEUNICODE_P)
|
|
2974 return GlobalFindAtomW ((LPCWSTR) lpString);
|
|
2975 else
|
|
2976 return GlobalFindAtomA ((LPCSTR) lpString);
|
|
2977 }
|
|
2978
|
|
2979 UINT
|
|
2980 qxeGlobalGetAtomName (ATOM nAtom, Extbyte * lpBuffer, int nSize)
|
|
2981 {
|
|
2982 if (XEUNICODE_P)
|
|
2983 return GlobalGetAtomNameW (nAtom, (LPWSTR) lpBuffer, nSize);
|
|
2984 else
|
|
2985 return GlobalGetAtomNameA (nAtom, (LPSTR) lpBuffer, nSize);
|
|
2986 }
|
|
2987
|
|
2988 ATOM
|
|
2989 qxeAddAtom (const Extbyte * lpString)
|
|
2990 {
|
|
2991 if (XEUNICODE_P)
|
|
2992 return AddAtomW ((LPCWSTR) lpString);
|
|
2993 else
|
|
2994 return AddAtomA ((LPCSTR) lpString);
|
|
2995 }
|
|
2996
|
|
2997 ATOM
|
|
2998 qxeFindAtom (const Extbyte * lpString)
|
|
2999 {
|
|
3000 if (XEUNICODE_P)
|
|
3001 return FindAtomW ((LPCWSTR) lpString);
|
|
3002 else
|
|
3003 return FindAtomA ((LPCSTR) lpString);
|
|
3004 }
|
|
3005
|
|
3006 UINT
|
|
3007 qxeGetAtomName (ATOM nAtom, Extbyte * lpBuffer, int nSize)
|
|
3008 {
|
|
3009 if (XEUNICODE_P)
|
|
3010 return GetAtomNameW (nAtom, (LPWSTR) lpBuffer, nSize);
|
|
3011 else
|
|
3012 return GetAtomNameA (nAtom, (LPSTR) lpBuffer, nSize);
|
|
3013 }
|
|
3014
|
|
3015 UINT
|
|
3016 qxeGetProfileInt (const Extbyte * lpAppName, const Extbyte * lpKeyName, INT nDefault)
|
|
3017 {
|
|
3018 if (XEUNICODE_P)
|
|
3019 return GetProfileIntW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, nDefault);
|
|
3020 else
|
|
3021 return GetProfileIntA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, nDefault);
|
|
3022 }
|
|
3023
|
|
3024 DWORD
|
|
3025 qxeGetProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpDefault, Extbyte * lpReturnedString, DWORD nSize)
|
|
3026 {
|
|
3027 if (XEUNICODE_P)
|
|
3028 return GetProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpDefault, (LPWSTR) lpReturnedString, nSize);
|
|
3029 else
|
|
3030 return GetProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpDefault, (LPSTR) lpReturnedString, nSize);
|
|
3031 }
|
|
3032
|
|
3033 BOOL
|
|
3034 qxeWriteProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpString)
|
|
3035 {
|
|
3036 if (XEUNICODE_P)
|
|
3037 return WriteProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpString);
|
|
3038 else
|
|
3039 return WriteProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpString);
|
|
3040 }
|
|
3041
|
|
3042 DWORD
|
|
3043 qxeGetProfileSection (const Extbyte * lpAppName, Extbyte * lpReturnedString, DWORD nSize)
|
|
3044 {
|
|
3045 if (XEUNICODE_P)
|
|
3046 return GetProfileSectionW ((LPCWSTR) lpAppName, (LPWSTR) lpReturnedString, nSize);
|
|
3047 else
|
|
3048 return GetProfileSectionA ((LPCSTR) lpAppName, (LPSTR) lpReturnedString, nSize);
|
|
3049 }
|
|
3050
|
|
3051 BOOL
|
|
3052 qxeWriteProfileSection (const Extbyte * lpAppName, const Extbyte * lpString)
|
|
3053 {
|
|
3054 if (XEUNICODE_P)
|
|
3055 return WriteProfileSectionW ((LPCWSTR) lpAppName, (LPCWSTR) lpString);
|
|
3056 else
|
|
3057 return WriteProfileSectionA ((LPCSTR) lpAppName, (LPCSTR) lpString);
|
|
3058 }
|
|
3059
|
|
3060 UINT
|
|
3061 qxeGetPrivateProfileInt (const Extbyte * lpAppName, const Extbyte * lpKeyName, INT nDefault, const Extbyte * lpFileName)
|
|
3062 {
|
|
3063 if (XEUNICODE_P)
|
|
3064 return GetPrivateProfileIntW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, nDefault, (LPCWSTR) lpFileName);
|
|
3065 else
|
|
3066 return GetPrivateProfileIntA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, nDefault, (LPCSTR) lpFileName);
|
|
3067 }
|
|
3068
|
|
3069 DWORD
|
|
3070 qxeGetPrivateProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpDefault, Extbyte * lpReturnedString, DWORD nSize, const Extbyte * lpFileName)
|
|
3071 {
|
|
3072 if (XEUNICODE_P)
|
|
3073 return GetPrivateProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpDefault, (LPWSTR) lpReturnedString, nSize, (LPCWSTR) lpFileName);
|
|
3074 else
|
|
3075 return GetPrivateProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpDefault, (LPSTR) lpReturnedString, nSize, (LPCSTR) lpFileName);
|
|
3076 }
|
|
3077
|
|
3078 BOOL
|
|
3079 qxeWritePrivateProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpString, const Extbyte * lpFileName)
|
|
3080 {
|
|
3081 if (XEUNICODE_P)
|
|
3082 return WritePrivateProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpString, (LPCWSTR) lpFileName);
|
|
3083 else
|
|
3084 return WritePrivateProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpString, (LPCSTR) lpFileName);
|
|
3085 }
|
|
3086
|
|
3087 DWORD
|
|
3088 qxeGetPrivateProfileSection (const Extbyte * lpAppName, Extbyte * lpReturnedString, DWORD nSize, const Extbyte * lpFileName)
|
|
3089 {
|
|
3090 if (XEUNICODE_P)
|
|
3091 return GetPrivateProfileSectionW ((LPCWSTR) lpAppName, (LPWSTR) lpReturnedString, nSize, (LPCWSTR) lpFileName);
|
|
3092 else
|
|
3093 return GetPrivateProfileSectionA ((LPCSTR) lpAppName, (LPSTR) lpReturnedString, nSize, (LPCSTR) lpFileName);
|
|
3094 }
|
|
3095
|
|
3096 BOOL
|
|
3097 qxeWritePrivateProfileSection (const Extbyte * lpAppName, const Extbyte * lpString, const Extbyte * lpFileName)
|
|
3098 {
|
|
3099 if (XEUNICODE_P)
|
|
3100 return WritePrivateProfileSectionW ((LPCWSTR) lpAppName, (LPCWSTR) lpString, (LPCWSTR) lpFileName);
|
|
3101 else
|
|
3102 return WritePrivateProfileSectionA ((LPCSTR) lpAppName, (LPCSTR) lpString, (LPCSTR) lpFileName);
|
|
3103 }
|
|
3104
|
|
3105 DWORD
|
|
3106 qxeGetPrivateProfileSectionNames (Extbyte * lpszReturnBuffer, DWORD nSize, const Extbyte * lpFileName)
|
|
3107 {
|
|
3108 if (XEUNICODE_P)
|
|
3109 return GetPrivateProfileSectionNamesW ((LPWSTR) lpszReturnBuffer, nSize, (LPCWSTR) lpFileName);
|
|
3110 else
|
|
3111 return GetPrivateProfileSectionNamesA ((LPSTR) lpszReturnBuffer, nSize, (LPCSTR) lpFileName);
|
|
3112 }
|
|
3113
|
|
3114 BOOL
|
|
3115 qxeGetPrivateProfileStruct (const Extbyte * lpszSection, const Extbyte * lpszKey, LPVOID lpStruct, UINT uSizeStruct, const Extbyte * szFile)
|
|
3116 {
|
|
3117 if (XEUNICODE_P)
|
|
3118 return GetPrivateProfileStructW ((LPCWSTR) lpszSection, (LPCWSTR) lpszKey, lpStruct, uSizeStruct, (LPCWSTR) szFile);
|
|
3119 else
|
|
3120 return GetPrivateProfileStructA ((LPCSTR) lpszSection, (LPCSTR) lpszKey, lpStruct, uSizeStruct, (LPCSTR) szFile);
|
|
3121 }
|
|
3122
|
|
3123 BOOL
|
|
3124 qxeWritePrivateProfileStruct (const Extbyte * lpszSection, const Extbyte * lpszKey, LPVOID lpStruct, UINT uSizeStruct, const Extbyte * szFile)
|
|
3125 {
|
|
3126 if (XEUNICODE_P)
|
|
3127 return WritePrivateProfileStructW ((LPCWSTR) lpszSection, (LPCWSTR) lpszKey, lpStruct, uSizeStruct, (LPCWSTR) szFile);
|
|
3128 else
|
|
3129 return WritePrivateProfileStructA ((LPCSTR) lpszSection, (LPCSTR) lpszKey, lpStruct, uSizeStruct, (LPCSTR) szFile);
|
|
3130 }
|
|
3131
|
|
3132 UINT
|
|
3133 qxeGetDriveType (const Extbyte * lpRootPathName)
|
|
3134 {
|
|
3135 if (XEUNICODE_P)
|
|
3136 return GetDriveTypeW ((LPCWSTR) lpRootPathName);
|
|
3137 else
|
|
3138 return GetDriveTypeA ((LPCSTR) lpRootPathName);
|
|
3139 }
|
|
3140
|
|
3141 UINT
|
|
3142 qxeGetSystemDirectory (Extbyte * lpBuffer, UINT uSize)
|
|
3143 {
|
|
3144 if (XEUNICODE_P)
|
|
3145 return GetSystemDirectoryW ((LPWSTR) lpBuffer, uSize);
|
|
3146 else
|
|
3147 return GetSystemDirectoryA ((LPSTR) lpBuffer, uSize);
|
|
3148 }
|
|
3149
|
|
3150 DWORD
|
|
3151 qxeGetTempPath (DWORD nBufferLength, Extbyte * lpBuffer)
|
|
3152 {
|
|
3153 if (XEUNICODE_P)
|
|
3154 return GetTempPathW (nBufferLength, (LPWSTR) lpBuffer);
|
|
3155 else
|
|
3156 return GetTempPathA (nBufferLength, (LPSTR) lpBuffer);
|
|
3157 }
|
|
3158
|
|
3159 UINT
|
|
3160 qxeGetTempFileName (const Extbyte * lpPathName, const Extbyte * lpPrefixString, UINT uUnique, Extbyte * lpTempFileName)
|
|
3161 {
|
|
3162 if (XEUNICODE_P)
|
|
3163 return GetTempFileNameW ((LPCWSTR) lpPathName, (LPCWSTR) lpPrefixString, uUnique, (LPWSTR) lpTempFileName);
|
|
3164 else
|
|
3165 return GetTempFileNameA ((LPCSTR) lpPathName, (LPCSTR) lpPrefixString, uUnique, (LPSTR) lpTempFileName);
|
|
3166 }
|
|
3167
|
|
3168 UINT
|
|
3169 qxeGetWindowsDirectory (Extbyte * lpBuffer, UINT uSize)
|
|
3170 {
|
|
3171 if (XEUNICODE_P)
|
|
3172 return GetWindowsDirectoryW ((LPWSTR) lpBuffer, uSize);
|
|
3173 else
|
|
3174 return GetWindowsDirectoryA ((LPSTR) lpBuffer, uSize);
|
|
3175 }
|
|
3176
|
|
3177 BOOL
|
|
3178 qxeSetCurrentDirectory (const Extbyte * lpPathName)
|
|
3179 {
|
|
3180 if (XEUNICODE_P)
|
|
3181 return SetCurrentDirectoryW ((LPCWSTR) lpPathName);
|
|
3182 else
|
|
3183 return SetCurrentDirectoryA ((LPCSTR) lpPathName);
|
|
3184 }
|
|
3185
|
|
3186 DWORD
|
|
3187 qxeGetCurrentDirectory (DWORD nBufferLength, Extbyte * lpBuffer)
|
|
3188 {
|
|
3189 if (XEUNICODE_P)
|
|
3190 return GetCurrentDirectoryW (nBufferLength, (LPWSTR) lpBuffer);
|
|
3191 else
|
|
3192 return GetCurrentDirectoryA (nBufferLength, (LPSTR) lpBuffer);
|
|
3193 }
|
|
3194
|
|
3195 BOOL
|
|
3196 qxeGetDiskFreeSpace (const Extbyte * lpRootPathName, LPDWORD lpSectorsPerCluster, LPDWORD lpBytesPerSector, LPDWORD lpNumberOfFreeClusters, LPDWORD lpTotalNumberOfClusters)
|
|
3197 {
|
|
3198 if (XEUNICODE_P)
|
|
3199 return GetDiskFreeSpaceW ((LPCWSTR) lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters);
|
|
3200 else
|
|
3201 return GetDiskFreeSpaceA ((LPCSTR) lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters);
|
|
3202 }
|
|
3203
|
|
3204 BOOL
|
|
3205 qxeGetDiskFreeSpaceEx (const Extbyte * lpDirectoryName, PULARGE_INTEGER lpFreeBytesAvailableToCaller, PULARGE_INTEGER lpTotalNumberOfBytes, PULARGE_INTEGER lpTotalNumberOfFreeBytes)
|
|
3206 {
|
|
3207 if (XEUNICODE_P)
|
|
3208 return GetDiskFreeSpaceExW ((LPCWSTR) lpDirectoryName, lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes);
|
|
3209 else
|
|
3210 return GetDiskFreeSpaceExA ((LPCSTR) lpDirectoryName, lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes);
|
|
3211 }
|
|
3212
|
|
3213 BOOL
|
|
3214 qxeCreateDirectory (const Extbyte * lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
3215 {
|
|
3216 if (XEUNICODE_P)
|
|
3217 return CreateDirectoryW ((LPCWSTR) lpPathName, lpSecurityAttributes);
|
|
3218 else
|
|
3219 return CreateDirectoryA ((LPCSTR) lpPathName, lpSecurityAttributes);
|
|
3220 }
|
|
3221
|
|
3222 BOOL
|
|
3223 qxeCreateDirectoryEx (const Extbyte * lpTemplateDirectory, const Extbyte * lpNewDirectory, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
3224 {
|
|
3225 if (XEUNICODE_P)
|
|
3226 return CreateDirectoryExW ((LPCWSTR) lpTemplateDirectory, (LPCWSTR) lpNewDirectory, lpSecurityAttributes);
|
|
3227 else
|
|
3228 return CreateDirectoryExA ((LPCSTR) lpTemplateDirectory, (LPCSTR) lpNewDirectory, lpSecurityAttributes);
|
|
3229 }
|
|
3230
|
|
3231 BOOL
|
|
3232 qxeRemoveDirectory (const Extbyte * lpPathName)
|
|
3233 {
|
|
3234 if (XEUNICODE_P)
|
|
3235 return RemoveDirectoryW ((LPCWSTR) lpPathName);
|
|
3236 else
|
|
3237 return RemoveDirectoryA ((LPCSTR) lpPathName);
|
|
3238 }
|
|
3239
|
|
3240 DWORD
|
|
3241 qxeGetFullPathName (const Extbyte * lpFileName, DWORD nBufferLength, Extbyte * lpBuffer, Extbyte * * lpFilePart)
|
|
3242 {
|
|
3243 if (XEUNICODE_P)
|
|
3244 return GetFullPathNameW ((LPCWSTR) lpFileName, nBufferLength, (LPWSTR) lpBuffer, (LPWSTR *) lpFilePart);
|
|
3245 else
|
|
3246 return GetFullPathNameA ((LPCSTR) lpFileName, nBufferLength, (LPSTR) lpBuffer, (LPSTR *) lpFilePart);
|
|
3247 }
|
|
3248
|
|
3249 BOOL
|
|
3250 qxeDefineDosDevice (DWORD dwFlags, const Extbyte * lpDeviceName, const Extbyte * lpTargetPath)
|
|
3251 {
|
|
3252 if (XEUNICODE_P)
|
|
3253 return DefineDosDeviceW (dwFlags, (LPCWSTR) lpDeviceName, (LPCWSTR) lpTargetPath);
|
|
3254 else
|
|
3255 return DefineDosDeviceA (dwFlags, (LPCSTR) lpDeviceName, (LPCSTR) lpTargetPath);
|
|
3256 }
|
|
3257
|
|
3258 DWORD
|
|
3259 qxeQueryDosDevice (const Extbyte * lpDeviceName, Extbyte * lpTargetPath, DWORD ucchMax)
|
|
3260 {
|
|
3261 if (XEUNICODE_P)
|
|
3262 return QueryDosDeviceW ((LPCWSTR) lpDeviceName, (LPWSTR) lpTargetPath, ucchMax);
|
|
3263 else
|
|
3264 return QueryDosDeviceA ((LPCSTR) lpDeviceName, (LPSTR) lpTargetPath, ucchMax);
|
|
3265 }
|
|
3266
|
|
3267 HANDLE
|
|
3268 qxeCreateFile (const Extbyte * lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
|
|
3269 {
|
|
3270 if (XEUNICODE_P)
|
|
3271 return CreateFileW ((LPCWSTR) lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
|
|
3272 else
|
|
3273 return CreateFileA ((LPCSTR) lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
|
|
3274 }
|
|
3275
|
|
3276 BOOL
|
|
3277 qxeSetFileAttributes (const Extbyte * lpFileName, DWORD dwFileAttributes)
|
|
3278 {
|
|
3279 if (XEUNICODE_P)
|
|
3280 return SetFileAttributesW ((LPCWSTR) lpFileName, dwFileAttributes);
|
|
3281 else
|
|
3282 return SetFileAttributesA ((LPCSTR) lpFileName, dwFileAttributes);
|
|
3283 }
|
|
3284
|
|
3285 DWORD
|
|
3286 qxeGetFileAttributes (const Extbyte * lpFileName)
|
|
3287 {
|
|
3288 if (XEUNICODE_P)
|
|
3289 return GetFileAttributesW ((LPCWSTR) lpFileName);
|
|
3290 else
|
|
3291 return GetFileAttributesA ((LPCSTR) lpFileName);
|
|
3292 }
|
|
3293
|
|
3294 BOOL
|
|
3295 qxeGetFileAttributesEx (const Extbyte * lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
|
|
3296 {
|
|
3297 if (XEUNICODE_P)
|
|
3298 return GetFileAttributesExW ((LPCWSTR) lpFileName, fInfoLevelId, lpFileInformation);
|
|
3299 else
|
|
3300 return GetFileAttributesExA ((LPCSTR) lpFileName, fInfoLevelId, lpFileInformation);
|
|
3301 }
|
|
3302
|
|
3303 DWORD
|
|
3304 qxeGetCompressedFileSize (const Extbyte * lpFileName, LPDWORD lpFileSizeHigh)
|
|
3305 {
|
|
3306 if (XEUNICODE_P)
|
|
3307 return GetCompressedFileSizeW ((LPCWSTR) lpFileName, lpFileSizeHigh);
|
|
3308 else
|
|
3309 return GetCompressedFileSizeA ((LPCSTR) lpFileName, lpFileSizeHigh);
|
|
3310 }
|
|
3311
|
|
3312 BOOL
|
|
3313 qxeDeleteFile (const Extbyte * lpFileName)
|
|
3314 {
|
|
3315 if (XEUNICODE_P)
|
|
3316 return DeleteFileW ((LPCWSTR) lpFileName);
|
|
3317 else
|
|
3318 return DeleteFileA ((LPCSTR) lpFileName);
|
|
3319 }
|
|
3320
|
|
3321 /* Error if FindFirstFileEx used: split-sized LPWIN32_FIND_DATA; not used, NT 4.0+ only */
|
|
3322
|
|
3323 /* Skipping FindFirstFile because split-sized LPWIN32_FIND_DATA */
|
|
3324
|
|
3325 /* Skipping FindNextFile because split-sized LPWIN32_FIND_DATA */
|
|
3326
|
|
3327 DWORD
|
|
3328 qxeSearchPath (const Extbyte * lpPath, const Extbyte * lpFileName, const Extbyte * lpExtension, DWORD nBufferLength, Extbyte * lpBuffer, Extbyte * * lpFilePart)
|
|
3329 {
|
|
3330 if (XEUNICODE_P)
|
|
3331 return SearchPathW ((LPCWSTR) lpPath, (LPCWSTR) lpFileName, (LPCWSTR) lpExtension, nBufferLength, (LPWSTR) lpBuffer, (LPWSTR *) lpFilePart);
|
|
3332 else
|
|
3333 return SearchPathA ((LPCSTR) lpPath, (LPCSTR) lpFileName, (LPCSTR) lpExtension, nBufferLength, (LPSTR) lpBuffer, (LPSTR *) lpFilePart);
|
|
3334 }
|
|
3335
|
|
3336 BOOL
|
|
3337 qxeCopyFile (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, BOOL bFailIfExists)
|
|
3338 {
|
|
3339 if (XEUNICODE_P)
|
|
3340 return CopyFileW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, bFailIfExists);
|
|
3341 else
|
|
3342 return CopyFileA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, bFailIfExists);
|
|
3343 }
|
|
3344
|
|
3345 /* NOTE: NT 4.0+ only */
|
|
3346 BOOL
|
|
3347 qxeCopyFileEx (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, LPPROGRESS_ROUTINE lpProgressRoutine, LPVOID lpData, LPBOOL pbCancel, DWORD dwCopyFlags)
|
|
3348 {
|
|
3349 if (XEUNICODE_P)
|
|
3350 return CopyFileExW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, lpProgressRoutine, lpData, pbCancel, dwCopyFlags);
|
|
3351 else
|
|
3352 return CopyFileExA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, lpProgressRoutine, lpData, pbCancel, dwCopyFlags);
|
|
3353 }
|
|
3354
|
|
3355 BOOL
|
|
3356 qxeMoveFile (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName)
|
|
3357 {
|
|
3358 if (XEUNICODE_P)
|
|
3359 return MoveFileW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName);
|
|
3360 else
|
|
3361 return MoveFileA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName);
|
|
3362 }
|
|
3363
|
|
3364 BOOL
|
|
3365 qxeMoveFileEx (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, DWORD dwFlags)
|
|
3366 {
|
|
3367 if (XEUNICODE_P)
|
|
3368 return MoveFileExW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, dwFlags);
|
|
3369 else
|
|
3370 return MoveFileExA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, dwFlags);
|
|
3371 }
|
|
3372
|
|
3373 /* Error if MoveFileWithProgress used: NT 5.0+ only */
|
|
3374
|
|
3375 /* Error if CreateHardLink used: NT 5.0+ only */
|
|
3376
|
|
3377 HANDLE
|
|
3378 qxeCreateNamedPipe (const Extbyte * lpName, DWORD dwOpenMode, DWORD dwPipeMode, DWORD nMaxInstances, DWORD nOutBufferSize, DWORD nInBufferSize, DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
|
3379 {
|
|
3380 if (XEUNICODE_P)
|
|
3381 return CreateNamedPipeW ((LPCWSTR) lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes);
|
|
3382 else
|
|
3383 return CreateNamedPipeA ((LPCSTR) lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes);
|
|
3384 }
|
|
3385
|
|
3386 BOOL
|
|
3387 qxeGetNamedPipeHandleState (HANDLE hNamedPipe, LPDWORD lpState, LPDWORD lpCurInstances, LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout, Extbyte * lpUserName, DWORD nMaxUserNameSize)
|
|
3388 {
|
|
3389 if (XEUNICODE_P)
|
|
3390 return GetNamedPipeHandleStateW (hNamedPipe, lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout, (LPWSTR) lpUserName, nMaxUserNameSize);
|
|
3391 else
|
|
3392 return GetNamedPipeHandleStateA (hNamedPipe, lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout, (LPSTR) lpUserName, nMaxUserNameSize);
|
|
3393 }
|
|
3394
|
|
3395 BOOL
|
|
3396 qxeCallNamedPipe (const Extbyte * lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead, DWORD nTimeOut)
|
|
3397 {
|
|
3398 if (XEUNICODE_P)
|
|
3399 return CallNamedPipeW ((LPCWSTR) lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut);
|
|
3400 else
|
|
3401 return CallNamedPipeA ((LPCSTR) lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut);
|
|
3402 }
|
|
3403
|
|
3404 BOOL
|
|
3405 qxeWaitNamedPipe (const Extbyte * lpNamedPipeName, DWORD nTimeOut)
|
|
3406 {
|
|
3407 if (XEUNICODE_P)
|
|
3408 return WaitNamedPipeW ((LPCWSTR) lpNamedPipeName, nTimeOut);
|
|
3409 else
|
|
3410 return WaitNamedPipeA ((LPCSTR) lpNamedPipeName, nTimeOut);
|
|
3411 }
|
|
3412
|
|
3413 BOOL
|
|
3414 qxeSetVolumeLabel (const Extbyte * lpRootPathName, const Extbyte * lpVolumeName)
|
|
3415 {
|
|
3416 if (XEUNICODE_P)
|
|
3417 return SetVolumeLabelW ((LPCWSTR) lpRootPathName, (LPCWSTR) lpVolumeName);
|
|
3418 else
|
|
3419 return SetVolumeLabelA ((LPCSTR) lpRootPathName, (LPCSTR) lpVolumeName);
|
|
3420 }
|
|
3421
|
|
3422 BOOL
|
|
3423 qxeGetVolumeInformation (const Extbyte * lpRootPathName, Extbyte * lpVolumeNameBuffer, DWORD nVolumeNameSize, LPDWORD lpVolumeSerialNumber, LPDWORD lpMaximumComponentLength, LPDWORD lpFileSystemFlags, Extbyte * lpFileSystemNameBuffer, DWORD nFileSystemNameSize)
|
|
3424 {
|
|
3425 if (XEUNICODE_P)
|
|
3426 return GetVolumeInformationW ((LPCWSTR) lpRootPathName, (LPWSTR) lpVolumeNameBuffer, nVolumeNameSize, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, (LPWSTR) lpFileSystemNameBuffer, nFileSystemNameSize);
|
|
3427 else
|
|
3428 return GetVolumeInformationA ((LPCSTR) lpRootPathName, (LPSTR) lpVolumeNameBuffer, nVolumeNameSize, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, (LPSTR) lpFileSystemNameBuffer, nFileSystemNameSize);
|
|
3429 }
|
|
3430
|
|
3431 BOOL
|
|
3432 qxeClearEventLog (HANDLE hEventLog, const Extbyte * lpBackupFileName)
|
|
3433 {
|
|
3434 if (XEUNICODE_P)
|
|
3435 return ClearEventLogW (hEventLog, (LPCWSTR) lpBackupFileName);
|
|
3436 else
|
|
3437 return ClearEventLogA (hEventLog, (LPCSTR) lpBackupFileName);
|
|
3438 }
|
|
3439
|
|
3440 BOOL
|
|
3441 qxeBackupEventLog (HANDLE hEventLog, const Extbyte * lpBackupFileName)
|
|
3442 {
|
|
3443 if (XEUNICODE_P)
|
|
3444 return BackupEventLogW (hEventLog, (LPCWSTR) lpBackupFileName);
|
|
3445 else
|
|
3446 return BackupEventLogA (hEventLog, (LPCSTR) lpBackupFileName);
|
|
3447 }
|
|
3448
|
|
3449 HANDLE
|
|
3450 qxeOpenEventLog (const Extbyte * lpUNCServerName, const Extbyte * lpSourceName)
|
|
3451 {
|
|
3452 if (XEUNICODE_P)
|
|
3453 return OpenEventLogW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpSourceName);
|
|
3454 else
|
|
3455 return OpenEventLogA ((LPCSTR) lpUNCServerName, (LPCSTR) lpSourceName);
|
|
3456 }
|
|
3457
|
|
3458 HANDLE
|
|
3459 qxeRegisterEventSource (const Extbyte * lpUNCServerName, const Extbyte * lpSourceName)
|
|
3460 {
|
|
3461 if (XEUNICODE_P)
|
|
3462 return RegisterEventSourceW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpSourceName);
|
|
3463 else
|
|
3464 return RegisterEventSourceA ((LPCSTR) lpUNCServerName, (LPCSTR) lpSourceName);
|
|
3465 }
|
|
3466
|
|
3467 HANDLE
|
|
3468 qxeOpenBackupEventLog (const Extbyte * lpUNCServerName, const Extbyte * lpFileName)
|
|
3469 {
|
|
3470 if (XEUNICODE_P)
|
|
3471 return OpenBackupEventLogW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpFileName);
|
|
3472 else
|
|
3473 return OpenBackupEventLogA ((LPCSTR) lpUNCServerName, (LPCSTR) lpFileName);
|
|
3474 }
|
|
3475
|
|
3476 BOOL
|
|
3477 qxeReadEventLog (HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD * pnBytesRead, DWORD * pnMinNumberOfBytesNeeded)
|
|
3478 {
|
|
3479 if (XEUNICODE_P)
|
|
3480 return ReadEventLogW (hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
|
|
3481 else
|
|
3482 return ReadEventLogA (hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
|
|
3483 }
|
|
3484
|
|
3485 BOOL
|
|
3486 qxeReportEvent (HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dwEventID, PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, const Extbyte * * lpStrings, LPVOID lpRawData)
|
|
3487 {
|
|
3488 if (XEUNICODE_P)
|
|
3489 return ReportEventW (hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, (LPCWSTR *) lpStrings, lpRawData);
|
|
3490 else
|
|
3491 return ReportEventA (hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, (LPCSTR *) lpStrings, lpRawData);
|
|
3492 }
|
|
3493
|
|
3494 BOOL
|
|
3495 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)
|
|
3496 {
|
|
3497 if (XEUNICODE_P)
|
|
3498 return AccessCheckAndAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, (LPWSTR) ObjectTypeName, (LPWSTR) ObjectName, SecurityDescriptor, DesiredAccess, GenericMapping, ObjectCreation, GrantedAccess, AccessStatus, pfGenerateOnClose);
|
|
3499 else
|
|
3500 return AccessCheckAndAuditAlarmA ((LPCSTR) SubsystemName, HandleId, (LPSTR) ObjectTypeName, (LPSTR) ObjectName, SecurityDescriptor, DesiredAccess, GenericMapping, ObjectCreation, GrantedAccess, AccessStatus, pfGenerateOnClose);
|
|
3501 }
|
|
3502
|
|
3503 /* Error if AccessCheckByTypeAndAuditAlarm used: NT 5.0+ only */
|
|
3504
|
|
3505 /* Error if AccessCheckByTypeResultListAndAuditAlarm used: NT 5.0+ only */
|
|
3506
|
|
3507 BOOL
|
|
3508 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)
|
|
3509 {
|
|
3510 if (XEUNICODE_P)
|
|
3511 return ObjectOpenAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, (LPWSTR) ObjectTypeName, (LPWSTR) ObjectName, pSecurityDescriptor, ClientToken, DesiredAccess, GrantedAccess, Privileges, ObjectCreation, AccessGranted, GenerateOnClose);
|
|
3512 else
|
|
3513 return ObjectOpenAuditAlarmA ((LPCSTR) SubsystemName, HandleId, (LPSTR) ObjectTypeName, (LPSTR) ObjectName, pSecurityDescriptor, ClientToken, DesiredAccess, GrantedAccess, Privileges, ObjectCreation, AccessGranted, GenerateOnClose);
|
|
3514 }
|
|
3515
|
|
3516 BOOL
|
|
3517 qxeObjectPrivilegeAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, HANDLE ClientToken, DWORD DesiredAccess, PPRIVILEGE_SET Privileges, BOOL AccessGranted)
|
|
3518 {
|
|
3519 if (XEUNICODE_P)
|
|
3520 return ObjectPrivilegeAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, ClientToken, DesiredAccess, Privileges, AccessGranted);
|
|
3521 else
|
|
3522 return ObjectPrivilegeAuditAlarmA ((LPCSTR) SubsystemName, HandleId, ClientToken, DesiredAccess, Privileges, AccessGranted);
|
|
3523 }
|
|
3524
|
|
3525 BOOL
|
|
3526 qxeObjectCloseAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, BOOL GenerateOnClose)
|
|
3527 {
|
|
3528 if (XEUNICODE_P)
|
|
3529 return ObjectCloseAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3530 else
|
|
3531 return ObjectCloseAuditAlarmA ((LPCSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3532 }
|
|
3533
|
|
3534 BOOL
|
|
3535 qxeObjectDeleteAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, BOOL GenerateOnClose)
|
|
3536 {
|
|
3537 if (XEUNICODE_P)
|
|
3538 return ObjectDeleteAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3539 else
|
|
3540 return ObjectDeleteAuditAlarmA ((LPCSTR) SubsystemName, HandleId, GenerateOnClose);
|
|
3541 }
|
|
3542
|
|
3543 BOOL
|
|
3544 qxePrivilegedServiceAuditAlarm (const Extbyte * SubsystemName, const Extbyte * ServiceName, HANDLE ClientToken, PPRIVILEGE_SET Privileges, BOOL AccessGranted)
|
|
3545 {
|
|
3546 if (XEUNICODE_P)
|
|
3547 return PrivilegedServiceAuditAlarmW ((LPCWSTR) SubsystemName, (LPCWSTR) ServiceName, ClientToken, Privileges, AccessGranted);
|
|
3548 else
|
|
3549 return PrivilegedServiceAuditAlarmA ((LPCSTR) SubsystemName, (LPCSTR) ServiceName, ClientToken, Privileges, AccessGranted);
|
|
3550 }
|
|
3551
|
|
3552 BOOL
|
|
3553 qxeSetFileSecurity (const Extbyte * lpFileName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor)
|
|
3554 {
|
|
3555 if (XEUNICODE_P)
|
|
3556 return SetFileSecurityW ((LPCWSTR) lpFileName, SecurityInformation, pSecurityDescriptor);
|
|
3557 else
|
|
3558 return SetFileSecurityA ((LPCSTR) lpFileName, SecurityInformation, pSecurityDescriptor);
|
|
3559 }
|
|
3560
|
|
3561 BOOL
|
|
3562 qxeGetFileSecurity (const Extbyte * lpFileName, SECURITY_INFORMATION RequestedInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded)
|
|
3563 {
|
|
3564 if (XEUNICODE_P)
|
|
3565 return GetFileSecurityW ((LPCWSTR) lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded);
|
|
3566 else
|
|
3567 return GetFileSecurityA ((LPCSTR) lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded);
|
|
3568 }
|
|
3569
|
|
3570 HANDLE
|
|
3571 qxeFindFirstChangeNotification (const Extbyte * lpPathName, BOOL bWatchSubtree, DWORD dwNotifyFilter)
|
|
3572 {
|
|
3573 if (XEUNICODE_P)
|
|
3574 return FindFirstChangeNotificationW ((LPCWSTR) lpPathName, bWatchSubtree, dwNotifyFilter);
|
|
3575 else
|
|
3576 return FindFirstChangeNotificationA ((LPCSTR) lpPathName, bWatchSubtree, dwNotifyFilter);
|
|
3577 }
|
|
3578
|
|
3579 /* Error if ReadDirectoryChanges used: Unicode-only */
|
|
3580
|
|
3581 BOOL
|
|
3582 qxeIsBadStringPtr (const Extbyte * lpsz, UINT ucchMax)
|
|
3583 {
|
|
3584 if (XEUNICODE_P)
|
|
3585 return IsBadStringPtrW ((LPCWSTR) lpsz, ucchMax);
|
|
3586 else
|
|
3587 return IsBadStringPtrA ((LPCSTR) lpsz, ucchMax);
|
|
3588 }
|
|
3589
|
|
3590 BOOL
|
|
3591 qxeLookupAccountSid (const Extbyte * lpSystemName, PSID Sid, Extbyte * Name, LPDWORD cbName, Extbyte * ReferencedDomainName, LPDWORD cbReferencedDomainName, PSID_NAME_USE peUse)
|
|
3592 {
|
|
3593 if (XEUNICODE_P)
|
|
3594 return LookupAccountSidW ((LPCWSTR) lpSystemName, Sid, (LPWSTR) Name, cbName, (LPWSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3595 else
|
|
3596 return LookupAccountSidA ((LPCSTR) lpSystemName, Sid, (LPSTR) Name, cbName, (LPSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3597 }
|
|
3598
|
|
3599 BOOL
|
|
3600 qxeLookupAccountName (const Extbyte * lpSystemName, const Extbyte * lpAccountName, PSID Sid, LPDWORD cbSid, Extbyte * ReferencedDomainName, LPDWORD cbReferencedDomainName, PSID_NAME_USE peUse)
|
|
3601 {
|
|
3602 if (XEUNICODE_P)
|
|
3603 return LookupAccountNameW ((LPCWSTR) lpSystemName, (LPCWSTR) lpAccountName, Sid, cbSid, (LPWSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3604 else
|
|
3605 return LookupAccountNameA ((LPCSTR) lpSystemName, (LPCSTR) lpAccountName, Sid, cbSid, (LPSTR) ReferencedDomainName, cbReferencedDomainName, peUse);
|
|
3606 }
|
|
3607
|
|
3608 BOOL
|
|
3609 qxeLookupPrivilegeValue (const Extbyte * lpSystemName, const Extbyte * lpName, PLUID lpLuid)
|
|
3610 {
|
|
3611 if (XEUNICODE_P)
|
|
3612 return LookupPrivilegeValueW ((LPCWSTR) lpSystemName, (LPCWSTR) lpName, lpLuid);
|
|
3613 else
|
|
3614 return LookupPrivilegeValueA ((LPCSTR) lpSystemName, (LPCSTR) lpName, lpLuid);
|
|
3615 }
|
|
3616
|
|
3617 BOOL
|
|
3618 qxeLookupPrivilegeName (const Extbyte * lpSystemName, PLUID lpLuid, Extbyte * lpName, LPDWORD cbName)
|
|
3619 {
|
|
3620 if (XEUNICODE_P)
|
|
3621 return LookupPrivilegeNameW ((LPCWSTR) lpSystemName, lpLuid, (LPWSTR) lpName, cbName);
|
|
3622 else
|
|
3623 return LookupPrivilegeNameA ((LPCSTR) lpSystemName, lpLuid, (LPSTR) lpName, cbName);
|
|
3624 }
|
|
3625
|
|
3626 BOOL
|
|
3627 qxeLookupPrivilegeDisplayName (const Extbyte * lpSystemName, const Extbyte * lpName, Extbyte * lpDisplayName, LPDWORD cbDisplayName, LPDWORD lpLanguageId)
|
|
3628 {
|
|
3629 if (XEUNICODE_P)
|
|
3630 return LookupPrivilegeDisplayNameW ((LPCWSTR) lpSystemName, (LPCWSTR) lpName, (LPWSTR) lpDisplayName, cbDisplayName, lpLanguageId);
|
|
3631 else
|
|
3632 return LookupPrivilegeDisplayNameA ((LPCSTR) lpSystemName, (LPCSTR) lpName, (LPSTR) lpDisplayName, cbDisplayName, lpLanguageId);
|
|
3633 }
|
|
3634
|
|
3635 BOOL
|
|
3636 qxeBuildCommDCB (const Extbyte * lpDef, LPDCB lpDCB)
|
|
3637 {
|
|
3638 if (XEUNICODE_P)
|
|
3639 return BuildCommDCBW ((LPCWSTR) lpDef, lpDCB);
|
|
3640 else
|
|
3641 return BuildCommDCBA ((LPCSTR) lpDef, lpDCB);
|
|
3642 }
|
|
3643
|
|
3644 BOOL
|
|
3645 qxeBuildCommDCBAndTimeouts (const Extbyte * lpDef, LPDCB lpDCB, LPCOMMTIMEOUTS lpCommTimeouts)
|
|
3646 {
|
|
3647 if (XEUNICODE_P)
|
|
3648 return BuildCommDCBAndTimeoutsW ((LPCWSTR) lpDef, lpDCB, lpCommTimeouts);
|
|
3649 else
|
|
3650 return BuildCommDCBAndTimeoutsA ((LPCSTR) lpDef, lpDCB, lpCommTimeouts);
|
|
3651 }
|
|
3652
|
|
3653 BOOL
|
|
3654 qxeCommConfigDialog (const Extbyte * lpszName, HWND hWnd, LPCOMMCONFIG lpCC)
|
|
3655 {
|
|
3656 if (XEUNICODE_P)
|
|
3657 return CommConfigDialogW ((LPCWSTR) lpszName, hWnd, lpCC);
|
|
3658 else
|
|
3659 return CommConfigDialogA ((LPCSTR) lpszName, hWnd, lpCC);
|
|
3660 }
|
|
3661
|
|
3662 BOOL
|
|
3663 qxeGetDefaultCommConfig (const Extbyte * lpszName, LPCOMMCONFIG lpCC, LPDWORD lpdwSize)
|
|
3664 {
|
|
3665 if (XEUNICODE_P)
|
|
3666 return GetDefaultCommConfigW ((LPCWSTR) lpszName, lpCC, lpdwSize);
|
|
3667 else
|
|
3668 return GetDefaultCommConfigA ((LPCSTR) lpszName, lpCC, lpdwSize);
|
|
3669 }
|
|
3670
|
|
3671 BOOL
|
|
3672 qxeSetDefaultCommConfig (const Extbyte * lpszName, LPCOMMCONFIG lpCC, DWORD dwSize)
|
|
3673 {
|
|
3674 if (XEUNICODE_P)
|
|
3675 return SetDefaultCommConfigW ((LPCWSTR) lpszName, lpCC, dwSize);
|
|
3676 else
|
|
3677 return SetDefaultCommConfigA ((LPCSTR) lpszName, lpCC, dwSize);
|
|
3678 }
|
|
3679
|
|
3680 BOOL
|
|
3681 qxeGetComputerName (Extbyte * lpBuffer, LPDWORD nSize)
|
|
3682 {
|
|
3683 if (XEUNICODE_P)
|
|
3684 return GetComputerNameW ((LPWSTR) lpBuffer, nSize);
|
|
3685 else
|
|
3686 return GetComputerNameA ((LPSTR) lpBuffer, nSize);
|
|
3687 }
|
|
3688
|
|
3689 BOOL
|
|
3690 qxeSetComputerName (const Extbyte * lpComputerName)
|
|
3691 {
|
|
3692 if (XEUNICODE_P)
|
|
3693 return SetComputerNameW ((LPCWSTR) lpComputerName);
|
|
3694 else
|
|
3695 return SetComputerNameA ((LPCSTR) lpComputerName);
|
|
3696 }
|
|
3697
|
|
3698 BOOL
|
|
3699 qxeGetUserName (Extbyte * lpBuffer, LPDWORD nSize)
|
|
3700 {
|
|
3701 if (XEUNICODE_P)
|
|
3702 return GetUserNameW ((LPWSTR) lpBuffer, nSize);
|
|
3703 else
|
|
3704 return GetUserNameA ((LPSTR) lpBuffer, nSize);
|
|
3705 }
|
|
3706
|
|
3707 BOOL
|
|
3708 qxeLogonUser (Extbyte * lpszUsername, Extbyte * lpszDomain, Extbyte * lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken)
|
|
3709 {
|
|
3710 if (XEUNICODE_P)
|
|
3711 return LogonUserW ((LPWSTR) lpszUsername, (LPWSTR) lpszDomain, (LPWSTR) lpszPassword, dwLogonType, dwLogonProvider, phToken);
|
|
3712 else
|
|
3713 return LogonUserA ((LPSTR) lpszUsername, (LPSTR) lpszDomain, (LPSTR) lpszPassword, dwLogonType, dwLogonProvider, phToken);
|
|
3714 }
|
|
3715
|
|
3716 BOOL
|
|
3717 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)
|
|
3718 {
|
|
3719 if (XEUNICODE_P)
|
|
3720 return CreateProcessAsUserW (hToken, (LPCWSTR) lpApplicationName, (LPWSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCWSTR) lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
|
|
3721 else
|
|
3722 return CreateProcessAsUserA (hToken, (LPCSTR) lpApplicationName, (LPSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCSTR) lpCurrentDirectory, (LPSTARTUPINFOA) lpStartupInfo, lpProcessInformation);
|
|
3723 }
|
|
3724
|
|
3725 /* Error if GetCurrentHwProfile used: split-sized LPHW_PROFILE_INFO; NT 4.0+ only */
|
|
3726
|
|
3727 /* Error if GetVersionEx used: split-sized LPOSVERSIONINFO */
|
|
3728
|
|
3729 /* Error if CreateJobObject used: NT 5.0+ only */
|
|
3730
|
|
3731 /* Error if OpenJobObject used: NT 5.0+ only */
|
|
3732
|
|
3733
|
|
3734 /*----------------------------------------------------------------------*/
|
|
3735 /* Processing file COMMDLG.H */
|
|
3736 /*----------------------------------------------------------------------*/
|
|
3737
|
|
3738 BOOL
|
|
3739 qxeGetOpenFileName (LPOPENFILENAMEW arg1)
|
|
3740 {
|
|
3741 if (XEUNICODE_P)
|
|
3742 return GetOpenFileNameW (arg1);
|
|
3743 else
|
|
3744 return GetOpenFileNameA ((LPOPENFILENAMEA) arg1);
|
|
3745 }
|
|
3746
|
|
3747 BOOL
|
|
3748 qxeGetSaveFileName (LPOPENFILENAMEW arg1)
|
|
3749 {
|
|
3750 if (XEUNICODE_P)
|
|
3751 return GetSaveFileNameW (arg1);
|
|
3752 else
|
|
3753 return GetSaveFileNameA ((LPOPENFILENAMEA) arg1);
|
|
3754 }
|
|
3755
|
|
3756 short
|
|
3757 qxeGetFileTitle (const Extbyte * arg1, Extbyte * arg2, WORD arg3)
|
|
3758 {
|
|
3759 if (XEUNICODE_P)
|
|
3760 return GetFileTitleW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3);
|
|
3761 else
|
|
3762 return GetFileTitleA ((LPCSTR) arg1, (LPSTR) arg2, arg3);
|
|
3763 }
|
|
3764
|
|
3765 BOOL
|
|
3766 qxeChooseColor (LPCHOOSECOLORW arg1)
|
|
3767 {
|
|
3768 if (XEUNICODE_P)
|
|
3769 return ChooseColorW (arg1);
|
|
3770 else
|
|
3771 return ChooseColorA ((LPCHOOSECOLORA) arg1);
|
|
3772 }
|
|
3773
|
|
3774 HWND
|
|
3775 qxeFindText (LPFINDREPLACEW arg1)
|
|
3776 {
|
|
3777 if (XEUNICODE_P)
|
|
3778 return FindTextW (arg1);
|
|
3779 else
|
|
3780 return FindTextA ((LPFINDREPLACEA) arg1);
|
|
3781 }
|
|
3782
|
|
3783 HWND
|
|
3784 qxeReplaceText (LPFINDREPLACEW arg1)
|
|
3785 {
|
|
3786 if (XEUNICODE_P)
|
|
3787 return ReplaceTextW (arg1);
|
|
3788 else
|
|
3789 return ReplaceTextA ((LPFINDREPLACEA) arg1);
|
|
3790 }
|
|
3791
|
|
3792 /* Error if AfxReplaceText used: mac only */
|
|
3793
|
|
3794 /* Error if ChooseFont used: split-sized LPLOGFONT in LPCHOOSEFONT */
|
|
3795
|
|
3796 /* Skipping PrintDlg because LPPRINTDLG with split-sized DEVMODE handle */
|
|
3797
|
|
3798 /* Skipping PageSetupDlg because LPPAGESETUPDLG with split-sized DEVMODE handle */
|
|
3799
|
|
3800
|
|
3801 /*----------------------------------------------------------------------*/
|
|
3802 /* Processing file SHLOBJ.H */
|
|
3803 /*----------------------------------------------------------------------*/
|
|
3804
|
|
3805 BOOL
|
|
3806 qxeSHGetPathFromIDList (LPCITEMIDLIST pidl, Extbyte * pszPath)
|
|
3807 {
|
|
3808 if (XEUNICODE_P)
|
|
3809 return SHGetPathFromIDListW (pidl, (LPWSTR) pszPath);
|
|
3810 else
|
|
3811 return SHGetPathFromIDListA (pidl, (LPSTR) pszPath);
|
|
3812 }
|
|
3813
|
778
|
3814 /* Skipping SHGetSpecialFolderPath because error in Cygwin prototype, missing from Cygwin libraries */
|
771
|
3815
|
|
3816 /* Skipping SHBrowseForFolder because need to intercept callback for SendMessage */
|
|
3817
|
778
|
3818 /* Skipping SHGetDataFromIDList because split-sized WIN32_FIND_DATA or split-simple NETRESOURCE, missing from Cygwin libraries */
|
771
|
3819
|
|
3820
|
|
3821 /*----------------------------------------------------------------------*/
|
|
3822 /* Processing file IME.H */
|
|
3823 /*----------------------------------------------------------------------*/
|
|
3824
|
|
3825 /* Error if SendIMEMessageEx used: obsolete, no docs available */
|
|
3826
|
|
3827
|
|
3828 /*----------------------------------------------------------------------*/
|
|
3829 /* Processing file WINGDI.H */
|
|
3830 /*----------------------------------------------------------------------*/
|
|
3831
|
|
3832 int
|
|
3833 qxeAddFontResource (const Extbyte * arg1)
|
|
3834 {
|
|
3835 if (XEUNICODE_P)
|
|
3836 return AddFontResourceW ((LPCWSTR) arg1);
|
|
3837 else
|
|
3838 return AddFontResourceA ((LPCSTR) arg1);
|
|
3839 }
|
|
3840
|
|
3841 HMETAFILE
|
|
3842 qxeCopyMetaFile (HMETAFILE arg1, const Extbyte * arg2)
|
|
3843 {
|
|
3844 if (XEUNICODE_P)
|
|
3845 return CopyMetaFileW (arg1, (LPCWSTR) arg2);
|
|
3846 else
|
|
3847 return CopyMetaFileA (arg1, (LPCSTR) arg2);
|
|
3848 }
|
|
3849
|
|
3850 /* Skipping CreateDC because split-sized DEVMODE */
|
|
3851
|
|
3852 /* Skipping CreateFontIndirect because split-sized LOGFONT */
|
|
3853
|
|
3854 HFONT
|
|
3855 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)
|
|
3856 {
|
|
3857 if (XEUNICODE_P)
|
|
3858 return CreateFontW (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, (LPCWSTR) arg14);
|
|
3859 else
|
|
3860 return CreateFontA (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, (LPCSTR) arg14);
|
|
3861 }
|
|
3862
|
|
3863 /* Skipping CreateIC because split-sized DEVMODE */
|
|
3864
|
|
3865 HDC
|
|
3866 qxeCreateMetaFile (const Extbyte * arg1)
|
|
3867 {
|
|
3868 if (XEUNICODE_P)
|
|
3869 return CreateMetaFileW ((LPCWSTR) arg1);
|
|
3870 else
|
|
3871 return CreateMetaFileA ((LPCSTR) arg1);
|
|
3872 }
|
|
3873
|
|
3874 BOOL
|
|
3875 qxeCreateScalableFontResource (DWORD arg1, const Extbyte * arg2, const Extbyte * arg3, const Extbyte * arg4)
|
|
3876 {
|
|
3877 if (XEUNICODE_P)
|
|
3878 return CreateScalableFontResourceW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, (LPCWSTR) arg4);
|
|
3879 else
|
|
3880 return CreateScalableFontResourceA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, (LPCSTR) arg4);
|
|
3881 }
|
|
3882
|
|
3883 /* Skipping DeviceCapabilities because split-sized DEVMODE */
|
|
3884
|
|
3885 /* Skipping EnumFontFamiliesEx because split-complex FONTENUMPROC; NT 4.0+ only */
|
|
3886
|
|
3887 /* Error if EnumFontFamilies used: split-complex FONTENUMPROC */
|
|
3888
|
|
3889 /* Error if EnumFonts used: split-complex FONTENUMPROC */
|
|
3890
|
|
3891 BOOL
|
|
3892 qxeGetCharWidth (HDC arg1, UINT arg2, UINT arg3, LPINT arg4)
|
|
3893 {
|
|
3894 if (XEUNICODE_P)
|
|
3895 return GetCharWidthW (arg1, arg2, arg3, arg4);
|
|
3896 else
|
|
3897 return GetCharWidthA (arg1, arg2, arg3, arg4);
|
|
3898 }
|
|
3899
|
|
3900 BOOL
|
|
3901 qxeGetCharWidth32 (HDC arg1, UINT arg2, UINT arg3, LPINT arg4)
|
|
3902 {
|
|
3903 if (XEUNICODE_P)
|
|
3904 return GetCharWidth32W (arg1, arg2, arg3, arg4);
|
|
3905 else
|
|
3906 return GetCharWidth32A (arg1, arg2, arg3, arg4);
|
|
3907 }
|
|
3908
|
|
3909 BOOL
|
|
3910 qxeGetCharWidthFloat (HDC arg1, UINT arg2, UINT arg3, PFLOAT arg4)
|
|
3911 {
|
|
3912 if (XEUNICODE_P)
|
|
3913 return GetCharWidthFloatW (arg1, arg2, arg3, arg4);
|
|
3914 else
|
|
3915 return GetCharWidthFloatA (arg1, arg2, arg3, arg4);
|
|
3916 }
|
|
3917
|
|
3918 BOOL
|
|
3919 qxeGetCharABCWidths (HDC arg1, UINT arg2, UINT arg3, LPABC arg4)
|
|
3920 {
|
|
3921 if (XEUNICODE_P)
|
|
3922 return GetCharABCWidthsW (arg1, arg2, arg3, arg4);
|
|
3923 else
|
|
3924 return GetCharABCWidthsA (arg1, arg2, arg3, arg4);
|
|
3925 }
|
|
3926
|
|
3927 BOOL
|
|
3928 qxeGetCharABCWidthsFloat (HDC arg1, UINT arg2, UINT arg3, LPABCFLOAT arg4)
|
|
3929 {
|
|
3930 if (XEUNICODE_P)
|
|
3931 return GetCharABCWidthsFloatW (arg1, arg2, arg3, arg4);
|
|
3932 else
|
|
3933 return GetCharABCWidthsFloatA (arg1, arg2, arg3, arg4);
|
|
3934 }
|
|
3935
|
|
3936 DWORD
|
|
3937 qxeGetGlyphOutline (HDC arg1, UINT arg2, UINT arg3, LPGLYPHMETRICS arg4, DWORD arg5, LPVOID arg6, CONST MAT2 * arg7)
|
|
3938 {
|
|
3939 if (XEUNICODE_P)
|
|
3940 return GetGlyphOutlineW (arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
3941 else
|
|
3942 return GetGlyphOutlineA (arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
3943 }
|
|
3944
|
|
3945 HMETAFILE
|
|
3946 qxeGetMetaFile (const Extbyte * arg1)
|
|
3947 {
|
|
3948 if (XEUNICODE_P)
|
|
3949 return GetMetaFileW ((LPCWSTR) arg1);
|
|
3950 else
|
|
3951 return GetMetaFileA ((LPCSTR) arg1);
|
|
3952 }
|
|
3953
|
|
3954 /* Error if GetOutlineTextMetrics used: split-sized LPOUTLINETEXTMETRIC */
|
|
3955
|
|
3956 BOOL
|
|
3957 qxeGetTextExtentPoint (HDC arg1, const Extbyte * arg2, int arg3, LPSIZE arg4)
|
|
3958 {
|
|
3959 if (XEUNICODE_P)
|
|
3960 return GetTextExtentPointW (arg1, (LPCWSTR) arg2, arg3, arg4);
|
|
3961 else
|
|
3962 return GetTextExtentPointA (arg1, (LPCSTR) arg2, arg3, arg4);
|
|
3963 }
|
|
3964
|
|
3965 BOOL
|
|
3966 qxeGetTextExtentPoint32 (HDC arg1, const Extbyte * arg2, int arg3, LPSIZE arg4)
|
|
3967 {
|
|
3968 if (XEUNICODE_P)
|
|
3969 return GetTextExtentPoint32W (arg1, (LPCWSTR) arg2, arg3, arg4);
|
|
3970 else
|
|
3971 return GetTextExtentPoint32A (arg1, (LPCSTR) arg2, arg3, arg4);
|
|
3972 }
|
|
3973
|
|
3974 BOOL
|
|
3975 qxeGetTextExtentExPoint (HDC arg1, const Extbyte * arg2, int arg3, int arg4, LPINT arg5, LPINT arg6, LPSIZE arg7)
|
|
3976 {
|
|
3977 if (XEUNICODE_P)
|
|
3978 return GetTextExtentExPointW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6, arg7);
|
|
3979 else
|
|
3980 return GetTextExtentExPointA (arg1, (LPCSTR) arg2, arg3, arg4, arg5, arg6, arg7);
|
|
3981 }
|
|
3982
|
|
3983 /* NOTE: NT 4.0+ only */
|
|
3984 DWORD
|
|
3985 qxeGetCharacterPlacement (HDC arg1, const Extbyte * arg2, int arg3, int arg4, LPGCP_RESULTSW arg5, DWORD arg6)
|
|
3986 {
|
|
3987 if (XEUNICODE_P)
|
|
3988 return GetCharacterPlacementW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6);
|
|
3989 else
|
|
3990 return GetCharacterPlacementA (arg1, (LPCSTR) arg2, arg3, arg4, (LPGCP_RESULTSA) arg5, arg6);
|
|
3991 }
|
|
3992
|
|
3993 /* Error if GetGlyphIndices used: NT 5.0+ only */
|
|
3994
|
|
3995 /* Error if AddFontResourceEx used: NT 5.0+ only */
|
|
3996
|
|
3997 /* Error if RemoveFontResourceEx used: NT 5.0+ only */
|
|
3998
|
|
3999 /* Error if CreateFontIndirectEx used: split-sized ENUMLOGFONTEXDV; NT 5.0+ only */
|
|
4000
|
|
4001 /* Skipping ResetDC because split-sized DEVMODE */
|
|
4002
|
|
4003 BOOL
|
|
4004 qxeRemoveFontResource (const Extbyte * arg1)
|
|
4005 {
|
|
4006 if (XEUNICODE_P)
|
|
4007 return RemoveFontResourceW ((LPCWSTR) arg1);
|
|
4008 else
|
|
4009 return RemoveFontResourceA ((LPCSTR) arg1);
|
|
4010 }
|
|
4011
|
|
4012 HENHMETAFILE
|
|
4013 qxeCopyEnhMetaFile (HENHMETAFILE arg1, const Extbyte * arg2)
|
|
4014 {
|
|
4015 if (XEUNICODE_P)
|
|
4016 return CopyEnhMetaFileW (arg1, (LPCWSTR) arg2);
|
|
4017 else
|
|
4018 return CopyEnhMetaFileA (arg1, (LPCSTR) arg2);
|
|
4019 }
|
|
4020
|
|
4021 HDC
|
|
4022 qxeCreateEnhMetaFile (HDC arg1, const Extbyte * arg2, CONST RECT * arg3, const Extbyte * arg4)
|
|
4023 {
|
|
4024 if (XEUNICODE_P)
|
|
4025 return CreateEnhMetaFileW (arg1, (LPCWSTR) arg2, arg3, (LPCWSTR) arg4);
|
|
4026 else
|
|
4027 return CreateEnhMetaFileA (arg1, (LPCSTR) arg2, arg3, (LPCSTR) arg4);
|
|
4028 }
|
|
4029
|
|
4030 HENHMETAFILE
|
|
4031 qxeGetEnhMetaFile (const Extbyte * arg1)
|
|
4032 {
|
|
4033 if (XEUNICODE_P)
|
|
4034 return GetEnhMetaFileW ((LPCWSTR) arg1);
|
|
4035 else
|
|
4036 return GetEnhMetaFileA ((LPCSTR) arg1);
|
|
4037 }
|
|
4038
|
|
4039 UINT
|
|
4040 qxeGetEnhMetaFileDescription (HENHMETAFILE arg1, UINT arg2, Extbyte * arg3)
|
|
4041 {
|
|
4042 if (XEUNICODE_P)
|
|
4043 return GetEnhMetaFileDescriptionW (arg1, arg2, (LPWSTR) arg3);
|
|
4044 else
|
|
4045 return GetEnhMetaFileDescriptionA (arg1, arg2, (LPSTR) arg3);
|
|
4046 }
|
|
4047
|
|
4048 /* Skipping GetTextMetrics because split-sized LPTEXTMETRIC */
|
|
4049
|
|
4050 int
|
|
4051 qxeStartDoc (HDC arg1, CONST DOCINFOW * arg2)
|
|
4052 {
|
|
4053 if (XEUNICODE_P)
|
|
4054 return StartDocW (arg1, arg2);
|
|
4055 else
|
|
4056 return StartDocA (arg1, (CONST DOCINFOA *) arg2);
|
|
4057 }
|
|
4058
|
|
4059 /* Skipping GetObject because split-sized LOGFONT */
|
|
4060
|
|
4061 BOOL
|
|
4062 qxeTextOut (HDC arg1, int arg2, int arg3, const Extbyte * arg4, int arg5)
|
|
4063 {
|
|
4064 if (XEUNICODE_P)
|
|
4065 return TextOutW (arg1, arg2, arg3, (LPCWSTR) arg4, arg5);
|
|
4066 else
|
|
4067 return TextOutA (arg1, arg2, arg3, (LPCSTR) arg4, arg5);
|
|
4068 }
|
|
4069
|
|
4070 BOOL
|
|
4071 qxeExtTextOut (HDC arg1, int arg2, int arg3, UINT arg4, CONST RECT * arg5, const Extbyte * arg6, UINT arg7, CONST INT * arg8)
|
|
4072 {
|
|
4073 if (XEUNICODE_P)
|
|
4074 return ExtTextOutW (arg1, arg2, arg3, arg4, arg5, (LPCWSTR) arg6, arg7, arg8);
|
|
4075 else
|
|
4076 return ExtTextOutA (arg1, arg2, arg3, arg4, arg5, (LPCSTR) arg6, arg7, arg8);
|
|
4077 }
|
|
4078
|
|
4079 BOOL
|
|
4080 qxePolyTextOut (HDC arg1, CONST POLYTEXTW * arg2, int arg3)
|
|
4081 {
|
|
4082 if (XEUNICODE_P)
|
|
4083 return PolyTextOutW (arg1, arg2, arg3);
|
|
4084 else
|
|
4085 return PolyTextOutA (arg1, (CONST POLYTEXTA *) arg2, arg3);
|
|
4086 }
|
|
4087
|
|
4088 int
|
|
4089 qxeGetTextFace (HDC arg1, int arg2, Extbyte * arg3)
|
|
4090 {
|
|
4091 if (XEUNICODE_P)
|
|
4092 return GetTextFaceW (arg1, arg2, (LPWSTR) arg3);
|
|
4093 else
|
|
4094 return GetTextFaceA (arg1, arg2, (LPSTR) arg3);
|
|
4095 }
|
|
4096
|
|
4097 DWORD
|
|
4098 qxeGetKerningPairs (HDC arg1, DWORD arg2, LPKERNINGPAIR arg3)
|
|
4099 {
|
|
4100 if (XEUNICODE_P)
|
|
4101 return GetKerningPairsW (arg1, arg2, arg3);
|
|
4102 else
|
|
4103 return GetKerningPairsA (arg1, arg2, arg3);
|
|
4104 }
|
|
4105
|
|
4106 /* Error if GetLogColorSpace used: split-sized LPLOGCOLORSPACE; NT 4.0+ only */
|
|
4107
|
|
4108 /* Error if CreateColorSpace used: split-sized LPLOGCOLORSPACE; NT 4.0+ only */
|
|
4109
|
|
4110 /* Skipping GetICMProfile because NT 4.0+ only, error in Cygwin prototype */
|
|
4111
|
|
4112 /* NOTE: NT 4.0+ only */
|
|
4113 BOOL
|
|
4114 qxeSetICMProfile (HDC arg1, Extbyte * arg2)
|
|
4115 {
|
|
4116 if (XEUNICODE_P)
|
|
4117 return SetICMProfileW (arg1, (LPWSTR) arg2);
|
|
4118 else
|
|
4119 return SetICMProfileA (arg1, (LPSTR) arg2);
|
|
4120 }
|
|
4121
|
|
4122 /* NOTE: NT 4.0+ only */
|
|
4123 int
|
|
4124 qxeEnumICMProfiles (HDC arg1, ICMENUMPROCW arg2, LPARAM arg3)
|
|
4125 {
|
|
4126 if (XEUNICODE_P)
|
|
4127 return EnumICMProfilesW (arg1, arg2, arg3);
|
|
4128 else
|
|
4129 return EnumICMProfilesA (arg1, (ICMENUMPROCA) arg2, arg3);
|
|
4130 }
|
|
4131
|
|
4132 /* Skipping UpdateICMRegKey because NT 4.0+ only, error in Cygwin prototype */
|
|
4133
|
|
4134 /* Error if wglUseFontBitmaps used: causes link error */
|
|
4135
|
|
4136 /* Error if wglUseFontOutlines used: causes link error */
|
|
4137
|