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