source: trunk/include/os2wrap.h@ 299

Last change on this file since 299 was 299, checked in by sandervl, 26 years ago

* empty log message *

File size: 243.2 KB
Line 
1/* $Id: os2wrap.h,v 1.7 1999-07-13 10:39:16 sandervl Exp $ */
2#ifndef __OS2WRAP_H__
3#define __OS2WRAP_H__
4
5#include <os2.h>
6#include <os2sel.h>
7#include <os2newapi.h>
8
9#ifdef INCL_DOSMEMMGR
10inline ULONG _DosAllocMem(PPVOID a, ULONG b, ULONG c)
11{
12 ULONG yyrc;
13 USHORT sel = RestoreOS2FS();
14
15 yyrc = DosAllocMem(a, b, c);
16 SetFS(sel);
17
18 return yyrc;
19}
20
21#undef DosAllocMem
22#define DosAllocMem _DosAllocMem
23
24inline ULONG _DosAllocSharedMem(PPVOID a, PCSZ b, ULONG c, ULONG d)
25{
26 ULONG yyrc;
27 USHORT sel = RestoreOS2FS();
28
29 yyrc = DosAllocSharedMem(a, b, c, d);
30 SetFS(sel);
31
32 return yyrc;
33}
34
35#undef DosAllocSharedMem
36#define DosAllocSharedMem _DosAllocSharedMem
37
38inline ULONG _DosFreeMem(PVOID a)
39{
40 ULONG yyrc;
41 USHORT sel = RestoreOS2FS();
42
43 yyrc = DosFreeMem(a);
44 SetFS(sel);
45
46 return yyrc;
47}
48
49#undef DosFreeMem
50#define DosFreeMem _DosFreeMem
51
52inline ULONG _DosGetNamedSharedMem(PPVOID a, PCSZ b, ULONG c)
53{
54 ULONG yyrc;
55 USHORT sel = RestoreOS2FS();
56
57 yyrc = DosGetNamedSharedMem(a, b, c);
58 SetFS(sel);
59
60 return yyrc;
61}
62
63#undef DosGetNamedSharedMem
64#define DosGetNamedSharedMem _DosGetNamedSharedMem
65
66inline ULONG _DosGetSharedMem(PVOID a, ULONG b)
67{
68 ULONG yyrc;
69 USHORT sel = RestoreOS2FS();
70
71 yyrc = DosGetSharedMem(a, b);
72 SetFS(sel);
73
74 return yyrc;
75}
76
77#undef DosGetSharedMem
78#define DosGetSharedMem _DosGetSharedMem
79
80inline ULONG _DosGiveSharedMem(PVOID a, PID b, ULONG c)
81{
82 ULONG yyrc;
83 USHORT sel = RestoreOS2FS();
84
85 yyrc = DosGiveSharedMem(a, b, c);
86 SetFS(sel);
87
88 return yyrc;
89}
90
91#undef DosGiveSharedMem
92#define DosGiveSharedMem _DosGiveSharedMem
93
94inline ULONG _DosQueryMem(PVOID a, PULONG b, PULONG c)
95{
96 ULONG yyrc;
97 USHORT sel = RestoreOS2FS();
98
99 yyrc = DosQueryMem(a, b, c);
100 SetFS(sel);
101
102 return yyrc;
103}
104
105#undef DosQueryMem
106#define DosQueryMem _DosQueryMem
107
108inline ULONG _DosSetMem(PVOID a, ULONG b, ULONG c)
109{
110 ULONG yyrc;
111 USHORT sel = RestoreOS2FS();
112
113 yyrc = DosSetMem(a, b, c);
114 SetFS(sel);
115
116 return yyrc;
117}
118
119#undef DosSetMem
120#define DosSetMem _DosSetMem
121
122inline ULONG _DosSubAllocMem(PVOID a, PPVOID b, ULONG c)
123{
124 ULONG yyrc;
125 USHORT sel = RestoreOS2FS();
126
127 yyrc = DosSubAllocMem(a, b, c);
128 SetFS(sel);
129
130 return yyrc;
131}
132
133#undef DosSubAllocMem
134#define DosSubAllocMem _DosSubAllocMem
135
136inline ULONG _DosSubFreeMem(PVOID a, PVOID b, ULONG c)
137{
138 ULONG yyrc;
139 USHORT sel = RestoreOS2FS();
140
141 yyrc = DosSubFreeMem(a, b, c);
142 SetFS(sel);
143
144 return yyrc;
145}
146
147#undef DosSubFreeMem
148#define DosSubFreeMem _DosSubFreeMem
149
150inline ULONG _DosSubSetMem(PVOID a, ULONG b, ULONG c)
151{
152 ULONG yyrc;
153 USHORT sel = RestoreOS2FS();
154
155 yyrc = DosSubSetMem(a, b, c);
156 SetFS(sel);
157
158 return yyrc;
159}
160
161#undef DosSubSetMem
162#define DosSubSetMem _DosSubSetMem
163
164inline ULONG _DosSubUnsetMem(PVOID a)
165{
166 ULONG yyrc;
167 USHORT sel = RestoreOS2FS();
168
169 yyrc = DosSubUnsetMem(a);
170 SetFS(sel);
171
172 return yyrc;
173}
174
175#undef DosSubUnsetMem
176#define DosSubUnsetMem _DosSubUnsetMem
177
178#endif
179#ifdef INCL_DOSFILEMGR
180inline ULONG _DosCancelLockRequest(HFILE a, PFILELOCK b)
181{
182 ULONG yyrc;
183 USHORT sel = RestoreOS2FS();
184
185 yyrc = DosCancelLockRequest(a, b);
186 SetFS(sel);
187
188 return yyrc;
189}
190
191#undef DosCancelLockRequest
192#define DosCancelLockRequest _DosCancelLockRequest
193
194inline ULONG _DosClose(HFILE a)
195{
196 ULONG yyrc;
197 USHORT sel = RestoreOS2FS();
198
199 yyrc = DosClose(a);
200 SetFS(sel);
201
202 return yyrc;
203}
204
205#undef DosClose
206#define DosClose _DosClose
207
208inline ULONG _DosCopy(PCSZ a, PCSZ b, ULONG c)
209{
210 ULONG yyrc;
211 USHORT sel = RestoreOS2FS();
212
213 yyrc = DosCopy(a, b, c);
214 SetFS(sel);
215
216 return yyrc;
217}
218
219#undef DosCopy
220#define DosCopy _DosCopy
221
222inline ULONG _DosCreateDir(PCSZ a, PEAOP2 b)
223{
224 ULONG yyrc;
225 USHORT sel = RestoreOS2FS();
226
227 yyrc = DosCreateDir(a, b);
228 SetFS(sel);
229
230 return yyrc;
231}
232
233#undef DosCreateDir
234#define DosCreateDir _DosCreateDir
235
236inline ULONG _DosDelete(PCSZ a)
237{
238 ULONG yyrc;
239 USHORT sel = RestoreOS2FS();
240
241 yyrc = DosDelete(a);
242 SetFS(sel);
243
244 return yyrc;
245}
246
247#undef DosDelete
248#define DosDelete _DosDelete
249
250inline ULONG _DosDeleteDir(PCSZ a)
251{
252 ULONG yyrc;
253 USHORT sel = RestoreOS2FS();
254
255 yyrc = DosDeleteDir(a);
256 SetFS(sel);
257
258 return yyrc;
259}
260
261#undef DosDeleteDir
262#define DosDeleteDir _DosDeleteDir
263
264inline ULONG _DosDupHandle(HFILE a, PHFILE b)
265{
266 ULONG yyrc;
267 USHORT sel = RestoreOS2FS();
268
269 yyrc = DosDupHandle(a, b);
270 SetFS(sel);
271
272 return yyrc;
273}
274
275#undef DosDupHandle
276#define DosDupHandle _DosDupHandle
277
278inline ULONG _DosEditName(ULONG a, PCSZ b, PCSZ c, PBYTE d, ULONG e)
279{
280 ULONG yyrc;
281 USHORT sel = RestoreOS2FS();
282
283 yyrc = DosEditName(a, b, c, d, e);
284 SetFS(sel);
285
286 return yyrc;
287}
288
289#undef DosEditName
290#define DosEditName _DosEditName
291
292inline ULONG _DosEnumAttribute(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g)
293{
294 ULONG yyrc;
295 USHORT sel = RestoreOS2FS();
296
297 yyrc = DosEnumAttribute(a, b, c, d, e, f, g);
298 SetFS(sel);
299
300 return yyrc;
301}
302
303#undef DosEnumAttribute
304#define DosEnumAttribute _DosEnumAttribute
305
306inline ULONG _DosFindClose(HDIR a)
307{
308 ULONG yyrc;
309 USHORT sel = RestoreOS2FS();
310
311 yyrc = DosFindClose(a);
312 SetFS(sel);
313
314 return yyrc;
315}
316
317#undef DosFindClose
318#define DosFindClose _DosFindClose
319
320inline ULONG _DosFindFirst(PCSZ a, PHDIR b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g)
321{
322 ULONG yyrc;
323 USHORT sel = RestoreOS2FS();
324
325 yyrc = DosFindFirst(a, b, c, d, e, f, g);
326 SetFS(sel);
327
328 return yyrc;
329}
330
331#undef DosFindFirst
332#define DosFindFirst _DosFindFirst
333
334inline ULONG _DosFindNext(HDIR a, PVOID b, ULONG c, PULONG d)
335{
336 ULONG yyrc;
337 USHORT sel = RestoreOS2FS();
338
339 yyrc = DosFindNext(a, b, c, d);
340 SetFS(sel);
341
342 return yyrc;
343}
344
345#undef DosFindNext
346#define DosFindNext _DosFindNext
347
348inline ULONG _DosForceDelete(PCSZ a)
349{
350 ULONG yyrc;
351 USHORT sel = RestoreOS2FS();
352
353 yyrc = DosForceDelete(a);
354 SetFS(sel);
355
356 return yyrc;
357}
358
359#undef DosForceDelete
360#define DosForceDelete _DosForceDelete
361
362inline ULONG _DosFSAttach(PCSZ a, PCSZ b, PVOID c, ULONG d, ULONG e)
363{
364 ULONG yyrc;
365 USHORT sel = RestoreOS2FS();
366
367 yyrc = DosFSAttach(a, b, c, d, e);
368 SetFS(sel);
369
370 return yyrc;
371}
372
373#undef DosFSAttach
374#define DosFSAttach _DosFSAttach
375
376inline ULONG _DosFSCtl(PVOID a, ULONG b, PULONG c, PVOID d, ULONG e, PULONG f, ULONG g, PCSZ h, HFILE i, ULONG j)
377{
378 ULONG yyrc;
379 USHORT sel = RestoreOS2FS();
380
381 yyrc = DosFSCtl(a, b, c, d, e, f, g, h, i, j);
382 SetFS(sel);
383
384 return yyrc;
385}
386
387#undef DosFSCtl
388#define DosFSCtl _DosFSCtl
389
390inline ULONG _DosMove(PCSZ a, PCSZ b)
391{
392 ULONG yyrc;
393 USHORT sel = RestoreOS2FS();
394
395 yyrc = DosMove(a, b);
396 SetFS(sel);
397
398 return yyrc;
399}
400
401#undef DosMove
402#define DosMove _DosMove
403
404inline ULONG _DosOpen(PCSZ a, PHFILE b, PULONG c, ULONG d, ULONG e, ULONG f, ULONG g, PEAOP2 h)
405{
406 ULONG yyrc;
407 USHORT sel = RestoreOS2FS();
408
409 yyrc = DosOpen(a, b, c, d, e, f, g, h);
410 SetFS(sel);
411
412 return yyrc;
413}
414
415#undef DosOpen
416#define DosOpen _DosOpen
417
418inline ULONG _DosProtectClose(HFILE a, FHLOCK b)
419{
420 ULONG yyrc;
421 USHORT sel = RestoreOS2FS();
422
423 yyrc = DosProtectClose(a, b);
424 SetFS(sel);
425
426 return yyrc;
427}
428
429#undef DosProtectClose
430#define DosProtectClose _DosProtectClose
431
432inline ULONG _DosProtectEnumAttribute(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g, FHLOCK h)
433{
434 ULONG yyrc;
435 USHORT sel = RestoreOS2FS();
436
437 yyrc = DosProtectEnumAttribute(a, b, c, d, e, f, g, h);
438 SetFS(sel);
439
440 return yyrc;
441}
442
443#undef DosProtectEnumAttribute
444#define DosProtectEnumAttribute _DosProtectEnumAttribute
445
446inline ULONG _DosProtectOpen(PCSZ a, PHFILE b, PULONG c, ULONG d, ULONG e, ULONG f, ULONG g, PEAOP2 h, PFHLOCK i)
447{
448 ULONG yyrc;
449 USHORT sel = RestoreOS2FS();
450
451 yyrc = DosProtectOpen(a, b, c, d, e, f, g, h, i);
452 SetFS(sel);
453
454 return yyrc;
455}
456
457#undef DosProtectOpen
458#define DosProtectOpen _DosProtectOpen
459
460inline ULONG _DosProtectQueryFHState(HFILE a, PULONG b, FHLOCK c)
461{
462 ULONG yyrc;
463 USHORT sel = RestoreOS2FS();
464
465 yyrc = DosProtectQueryFHState(a, b, c);
466 SetFS(sel);
467
468 return yyrc;
469}
470
471#undef DosProtectQueryFHState
472#define DosProtectQueryFHState _DosProtectQueryFHState
473
474inline ULONG _DosProtectQueryFileInfo(HFILE a, ULONG b, PVOID c, ULONG d, FHLOCK e)
475{
476 ULONG yyrc;
477 USHORT sel = RestoreOS2FS();
478
479 yyrc = DosProtectQueryFileInfo(a, b, c, d, e);
480 SetFS(sel);
481
482 return yyrc;
483}
484
485#undef DosProtectQueryFileInfo
486#define DosProtectQueryFileInfo _DosProtectQueryFileInfo
487
488inline ULONG _DosProtectRead(HFILE a, PVOID b, ULONG c, PULONG d, FHLOCK e)
489{
490 ULONG yyrc;
491 USHORT sel = RestoreOS2FS();
492
493 yyrc = DosProtectRead(a, b, c, d, e);
494 SetFS(sel);
495
496 return yyrc;
497}
498
499#undef DosProtectRead
500#define DosProtectRead _DosProtectRead
501
502inline ULONG _DosProtectSetFHState(HFILE a, ULONG b, FHLOCK c)
503{
504 ULONG yyrc;
505 USHORT sel = RestoreOS2FS();
506
507 yyrc = DosProtectSetFHState(a, b, c);
508 SetFS(sel);
509
510 return yyrc;
511}
512
513#undef DosProtectSetFHState
514#define DosProtectSetFHState _DosProtectSetFHState
515
516inline ULONG _DosProtectSetFileInfo(HFILE a, ULONG b, PVOID c, ULONG d, FHLOCK e)
517{
518 ULONG yyrc;
519 USHORT sel = RestoreOS2FS();
520
521 yyrc = DosProtectSetFileInfo(a, b, c, d, e);
522 SetFS(sel);
523
524 return yyrc;
525}
526
527#undef DosProtectSetFileInfo
528#define DosProtectSetFileInfo _DosProtectSetFileInfo
529
530inline ULONG _DosProtectSetFileLocks(HFILE a, PFILELOCK b, PFILELOCK c, ULONG d, ULONG e, FHLOCK f)
531{
532 ULONG yyrc;
533 USHORT sel = RestoreOS2FS();
534
535 yyrc = DosProtectSetFileLocks(a, b, c, d, e, f);
536 SetFS(sel);
537
538 return yyrc;
539}
540
541#undef DosProtectSetFileLocks
542#define DosProtectSetFileLocks _DosProtectSetFileLocks
543
544inline ULONG _DosProtectSetFilePtr(HFILE a, LONG b, ULONG c, PULONG d, FHLOCK e)
545{
546 ULONG yyrc;
547 USHORT sel = RestoreOS2FS();
548
549 yyrc = DosProtectSetFilePtr(a, b, c, d, e);
550 SetFS(sel);
551
552 return yyrc;
553}
554
555#undef DosProtectSetFilePtr
556#define DosProtectSetFilePtr _DosProtectSetFilePtr
557
558inline ULONG _DosProtectSetFileSize(HFILE a, ULONG b, FHLOCK c)
559{
560 ULONG yyrc;
561 USHORT sel = RestoreOS2FS();
562
563 yyrc = DosProtectSetFileSize(a, b, c);
564 SetFS(sel);
565
566 return yyrc;
567}
568
569#undef DosProtectSetFileSize
570#define DosProtectSetFileSize _DosProtectSetFileSize
571
572inline ULONG _DosProtectWrite(HFILE a, PVOID b, ULONG c, PULONG d, FHLOCK e)
573{
574 ULONG yyrc;
575 USHORT sel = RestoreOS2FS();
576
577 yyrc = DosProtectWrite(a, b, c, d, e);
578 SetFS(sel);
579
580 return yyrc;
581}
582
583#undef DosProtectWrite
584#define DosProtectWrite _DosProtectWrite
585
586inline ULONG _DosQueryCurrentDir(ULONG a, PBYTE b, PULONG c)
587{
588 ULONG yyrc;
589 USHORT sel = RestoreOS2FS();
590
591 yyrc = DosQueryCurrentDir(a, b, c);
592 SetFS(sel);
593
594 return yyrc;
595}
596
597#undef DosQueryCurrentDir
598#define DosQueryCurrentDir _DosQueryCurrentDir
599
600inline ULONG _DosQueryCurrentDisk(PULONG a, PULONG b)
601{
602 ULONG yyrc;
603 USHORT sel = RestoreOS2FS();
604
605 yyrc = DosQueryCurrentDisk(a, b);
606 SetFS(sel);
607
608 return yyrc;
609}
610
611#undef DosQueryCurrentDisk
612#define DosQueryCurrentDisk _DosQueryCurrentDisk
613
614inline ULONG _DosQueryFHState(HFILE a, PULONG b)
615{
616 ULONG yyrc;
617 USHORT sel = RestoreOS2FS();
618
619 yyrc = DosQueryFHState(a, b);
620 SetFS(sel);
621
622 return yyrc;
623}
624
625#undef DosQueryFHState
626#define DosQueryFHState _DosQueryFHState
627
628inline ULONG _DosQueryFileInfo(HFILE a, ULONG b, PVOID c, ULONG d)
629{
630 ULONG yyrc;
631 USHORT sel = RestoreOS2FS();
632
633 yyrc = DosQueryFileInfo(a, b, c, d);
634 SetFS(sel);
635
636 return yyrc;
637}
638
639#undef DosQueryFileInfo
640#define DosQueryFileInfo _DosQueryFileInfo
641
642inline ULONG _DosQueryFSAttach(PCSZ a, ULONG b, ULONG c, PFSQBUFFER2 d, PULONG e)
643{
644 ULONG yyrc;
645 USHORT sel = RestoreOS2FS();
646
647 yyrc = DosQueryFSAttach(a, b, c, d, e);
648 SetFS(sel);
649
650 return yyrc;
651}
652
653#undef DosQueryFSAttach
654#define DosQueryFSAttach _DosQueryFSAttach
655
656inline ULONG _DosQueryFSInfo(ULONG a, ULONG b, PVOID c, ULONG d)
657{
658 ULONG yyrc;
659 USHORT sel = RestoreOS2FS();
660
661 yyrc = DosQueryFSInfo(a, b, c, d);
662 SetFS(sel);
663
664 return yyrc;
665}
666
667#undef DosQueryFSInfo
668#define DosQueryFSInfo _DosQueryFSInfo
669
670inline ULONG _DosQueryHType(HFILE a, PULONG b, PULONG c)
671{
672 ULONG yyrc;
673 USHORT sel = RestoreOS2FS();
674
675 yyrc = DosQueryHType(a, b, c);
676 SetFS(sel);
677
678 return yyrc;
679}
680
681#undef DosQueryHType
682#define DosQueryHType _DosQueryHType
683
684inline ULONG _DosQueryPathInfo(PCSZ a, ULONG b, PVOID c, ULONG d)
685{
686 ULONG yyrc;
687 USHORT sel = RestoreOS2FS();
688
689 yyrc = DosQueryPathInfo(a, b, c, d);
690 SetFS(sel);
691
692 return yyrc;
693}
694
695#undef DosQueryPathInfo
696#define DosQueryPathInfo _DosQueryPathInfo
697
698inline ULONG _DosQueryVerify(PBOOL32 a)
699{
700 ULONG yyrc;
701 USHORT sel = RestoreOS2FS();
702
703 yyrc = DosQueryVerify(a);
704 SetFS(sel);
705
706 return yyrc;
707}
708
709#undef DosQueryVerify
710#define DosQueryVerify _DosQueryVerify
711
712inline ULONG _DosRead(HFILE a, PVOID b, ULONG c, PULONG d)
713{
714 ULONG yyrc;
715 USHORT sel = RestoreOS2FS();
716
717 yyrc = DosRead(a, b, c, d);
718 SetFS(sel);
719
720 return yyrc;
721}
722
723#undef DosRead
724#define DosRead _DosRead
725
726inline ULONG _DosResetBuffer(HFILE a)
727{
728 ULONG yyrc;
729 USHORT sel = RestoreOS2FS();
730
731 yyrc = DosResetBuffer(a);
732 SetFS(sel);
733
734 return yyrc;
735}
736
737#undef DosResetBuffer
738#define DosResetBuffer _DosResetBuffer
739
740inline ULONG _DosSetCurrentDir(PCSZ a)
741{
742 ULONG yyrc;
743 USHORT sel = RestoreOS2FS();
744
745 yyrc = DosSetCurrentDir(a);
746 SetFS(sel);
747
748 return yyrc;
749}
750
751#undef DosSetCurrentDir
752#define DosSetCurrentDir _DosSetCurrentDir
753
754inline ULONG _DosSetDefaultDisk(ULONG a)
755{
756 ULONG yyrc;
757 USHORT sel = RestoreOS2FS();
758
759 yyrc = DosSetDefaultDisk(a);
760 SetFS(sel);
761
762 return yyrc;
763}
764
765#undef DosSetDefaultDisk
766#define DosSetDefaultDisk _DosSetDefaultDisk
767
768inline ULONG _DosSetFHState(HFILE a, ULONG b)
769{
770 ULONG yyrc;
771 USHORT sel = RestoreOS2FS();
772
773 yyrc = DosSetFHState(a, b);
774 SetFS(sel);
775
776 return yyrc;
777}
778
779#undef DosSetFHState
780#define DosSetFHState _DosSetFHState
781
782inline ULONG _DosSetFileInfo(HFILE a, ULONG b, PVOID c, ULONG d)
783{
784 ULONG yyrc;
785 USHORT sel = RestoreOS2FS();
786
787 yyrc = DosSetFileInfo(a, b, c, d);
788 SetFS(sel);
789
790 return yyrc;
791}
792
793#undef DosSetFileInfo
794#define DosSetFileInfo _DosSetFileInfo
795
796inline ULONG _DosSetFileLocks(HFILE a, PFILELOCK b, PFILELOCK c, ULONG d, ULONG e)
797{
798 ULONG yyrc;
799 USHORT sel = RestoreOS2FS();
800
801 yyrc = DosSetFileLocks(a, b, c, d, e);
802 SetFS(sel);
803
804 return yyrc;
805}
806
807#undef DosSetFileLocks
808#define DosSetFileLocks _DosSetFileLocks
809
810inline ULONG _DosSetFilePtr(HFILE a, LONG b, ULONG c, PULONG d)
811{
812 ULONG yyrc;
813 USHORT sel = RestoreOS2FS();
814
815 yyrc = DosSetFilePtr(a, b, c, d);
816 SetFS(sel);
817
818 return yyrc;
819}
820
821#undef DosSetFilePtr
822#define DosSetFilePtr _DosSetFilePtr
823
824inline ULONG _DosSetFileSize(HFILE a, ULONG b)
825{
826 ULONG yyrc;
827 USHORT sel = RestoreOS2FS();
828
829 yyrc = DosSetFileSize(a, b);
830 SetFS(sel);
831
832 return yyrc;
833}
834
835#undef DosSetFileSize
836#define DosSetFileSize _DosSetFileSize
837
838inline ULONG _DosSetFSInfo(ULONG a, ULONG b, PVOID c, ULONG d)
839{
840 ULONG yyrc;
841 USHORT sel = RestoreOS2FS();
842
843 yyrc = DosSetFSInfo(a, b, c, d);
844 SetFS(sel);
845
846 return yyrc;
847}
848
849#undef DosSetFSInfo
850#define DosSetFSInfo _DosSetFSInfo
851
852inline ULONG _DosSetMaxFH(ULONG a)
853{
854 ULONG yyrc;
855 USHORT sel = RestoreOS2FS();
856
857 yyrc = DosSetMaxFH(a);
858 SetFS(sel);
859
860 return yyrc;
861}
862
863#undef DosSetMaxFH
864#define DosSetMaxFH _DosSetMaxFH
865
866inline ULONG _DosSetPathInfo(PCSZ a, ULONG b, PVOID c, ULONG d, ULONG e)
867{
868 ULONG yyrc;
869 USHORT sel = RestoreOS2FS();
870
871 yyrc = DosSetPathInfo(a, b, c, d, e);
872 SetFS(sel);
873
874 return yyrc;
875}
876
877#undef DosSetPathInfo
878#define DosSetPathInfo _DosSetPathInfo
879
880inline ULONG _DosSetRelMaxFH(PLONG a, PULONG b)
881{
882 ULONG yyrc;
883 USHORT sel = RestoreOS2FS();
884
885 yyrc = DosSetRelMaxFH(a, b);
886 SetFS(sel);
887
888 return yyrc;
889}
890
891#undef DosSetRelMaxFH
892#define DosSetRelMaxFH _DosSetRelMaxFH
893
894inline ULONG _DosSetVerify(BOOL32 a)
895{
896 ULONG yyrc;
897 USHORT sel = RestoreOS2FS();
898
899 yyrc = DosSetVerify(a);
900 SetFS(sel);
901
902 return yyrc;
903}
904
905#undef DosSetVerify
906#define DosSetVerify _DosSetVerify
907
908inline ULONG _DosShutdown(ULONG a)
909{
910 ULONG yyrc;
911 USHORT sel = RestoreOS2FS();
912
913 yyrc = DosShutdown(a);
914 SetFS(sel);
915
916 return yyrc;
917}
918
919#undef DosShutdown
920#define DosShutdown _DosShutdown
921
922inline ULONG _DosWrite(HFILE a, PVOID b, ULONG c, PULONG d)
923{
924 ULONG yyrc;
925 USHORT sel = RestoreOS2FS();
926
927 yyrc = DosWrite(a, b, c, d);
928 SetFS(sel);
929
930 return yyrc;
931}
932
933#undef DosWrite
934#define DosWrite _DosWrite
935
936#endif
937#ifdef INCL_DOSMISC
938inline ULONG _DosSearchPath(ULONG a, PCSZ b, PCSZ c, PBYTE d, ULONG e)
939{
940 ULONG yyrc;
941 USHORT sel = RestoreOS2FS();
942
943 yyrc = DosSearchPath(a, b, c, d, e);
944 SetFS(sel);
945
946 return yyrc;
947}
948
949#undef DosSearchPath
950#define DosSearchPath _DosSearchPath
951
952inline ULONG _DosError(ULONG error)
953{
954 ULONG yyrc;
955 USHORT sel = RestoreOS2FS();
956
957 yyrc = DosError(error);
958 SetFS(sel);
959
960 return yyrc;
961}
962
963#undef DosError
964#define DosError _DosError
965
966#endif
967#ifdef INCL_DOSDEVICES
968inline ULONG _DosDevConfig(PVOID a, ULONG b)
969{
970 ULONG yyrc;
971 USHORT sel = RestoreOS2FS();
972
973 yyrc = DosDevConfig(a, b);
974 SetFS(sel);
975
976 return yyrc;
977}
978
979#undef DosDevConfig
980#define DosDevConfig _DosDevConfig
981
982inline ULONG _DosDevIOCtl(HFILE a, ULONG b, ULONG c, PVOID d, ULONG e, PULONG f, PVOID g, ULONG h, PULONG i)
983{
984 ULONG yyrc;
985 USHORT sel = RestoreOS2FS();
986
987 yyrc = DosDevIOCtl(a, b, c, d, e, f, g, h, i);
988 SetFS(sel);
989
990 return yyrc;
991}
992
993#undef DosDevIOCtl
994#define DosDevIOCtl _DosDevIOCtl
995
996inline ULONG _DosPhysicalDisk(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e)
997{
998 ULONG yyrc;
999 USHORT sel = RestoreOS2FS();
1000
1001 yyrc = DosPhysicalDisk(a, b, c, d, e);
1002 SetFS(sel);
1003
1004 return yyrc;
1005}
1006
1007#undef DosPhysicalDisk
1008#define DosPhysicalDisk _DosPhysicalDisk
1009
1010#endif
1011#ifdef INCL_DOSNLS
1012inline ULONG _DosMapCase(ULONG a, PCOUNTRYCODE b, PCHAR c)
1013{
1014 ULONG yyrc;
1015 USHORT sel = RestoreOS2FS();
1016
1017 yyrc = DosMapCase(a, b, c);
1018 SetFS(sel);
1019
1020 return yyrc;
1021}
1022
1023#undef DosMapCase
1024#define DosMapCase _DosMapCase
1025
1026inline ULONG _DosQueryCollate(ULONG a, PCOUNTRYCODE b, PCHAR c, PULONG d)
1027{
1028 ULONG yyrc;
1029 USHORT sel = RestoreOS2FS();
1030
1031 yyrc = DosQueryCollate(a, b, c, d);
1032 SetFS(sel);
1033
1034 return yyrc;
1035}
1036
1037#undef DosQueryCollate
1038#define DosQueryCollate _DosQueryCollate
1039
1040inline ULONG _DosQueryCp(ULONG a, PULONG b, PULONG c)
1041{
1042 ULONG yyrc;
1043 USHORT sel = RestoreOS2FS();
1044
1045 yyrc = DosQueryCp(a, b, c);
1046 SetFS(sel);
1047
1048 return yyrc;
1049}
1050
1051#undef DosQueryCp
1052#define DosQueryCp _DosQueryCp
1053
1054inline ULONG _DosQueryCtryInfo(ULONG a, PCOUNTRYCODE b, PCOUNTRYINFO c, PULONG d)
1055{
1056 ULONG yyrc;
1057 USHORT sel = RestoreOS2FS();
1058
1059 yyrc = DosQueryCtryInfo(a, b, c, d);
1060 SetFS(sel);
1061
1062 return yyrc;
1063}
1064
1065#undef DosQueryCtryInfo
1066#define DosQueryCtryInfo _DosQueryCtryInfo
1067
1068inline ULONG _DosQueryDBCSEnv(ULONG a, PCOUNTRYCODE b, PCHAR c)
1069{
1070 ULONG yyrc;
1071 USHORT sel = RestoreOS2FS();
1072
1073 yyrc = DosQueryDBCSEnv(a, b, c);
1074 SetFS(sel);
1075
1076 return yyrc;
1077}
1078
1079#undef DosQueryDBCSEnv
1080#define DosQueryDBCSEnv _DosQueryDBCSEnv
1081
1082inline ULONG _DosSetProcessCp(ULONG a)
1083{
1084 ULONG yyrc;
1085 USHORT sel = RestoreOS2FS();
1086
1087 yyrc = DosSetProcessCp(a);
1088 SetFS(sel);
1089
1090 return yyrc;
1091}
1092
1093#undef DosSetProcessCp
1094#define DosSetProcessCp _DosSetProcessCp
1095
1096#endif
1097#ifdef INCL_DOSMODULEMGR
1098inline ULONG _DosFreeModule(HMODULE a)
1099{
1100 ULONG yyrc;
1101 USHORT sel = RestoreOS2FS();
1102
1103 yyrc = DosFreeModule(a);
1104 SetFS(sel);
1105
1106 return yyrc;
1107}
1108
1109#undef DosFreeModule
1110#define DosFreeModule _DosFreeModule
1111
1112inline ULONG _DosLoadModule(PSZ a, ULONG b, PCSZ c, PHMODULE d)
1113{
1114 ULONG yyrc;
1115 USHORT sel = RestoreOS2FS();
1116
1117 yyrc = DosLoadModule(a, b, c, d);
1118 SetFS(sel);
1119
1120 return yyrc;
1121}
1122
1123#undef DosLoadModule
1124#define DosLoadModule _DosLoadModule
1125
1126inline ULONG _DosQueryModuleHandle(PCSZ a, PHMODULE b)
1127{
1128 ULONG yyrc;
1129 USHORT sel = RestoreOS2FS();
1130
1131 yyrc = DosQueryModuleHandle(a, b);
1132 SetFS(sel);
1133
1134 return yyrc;
1135}
1136
1137#undef DosQueryModuleHandle
1138#define DosQueryModuleHandle _DosQueryModuleHandle
1139
1140inline ULONG _DosQueryModuleName(HMODULE a, ULONG b, PCHAR c)
1141{
1142 ULONG yyrc;
1143 USHORT sel = RestoreOS2FS();
1144
1145 yyrc = DosQueryModuleName(a, b, c);
1146 SetFS(sel);
1147
1148 return yyrc;
1149}
1150
1151#undef DosQueryModuleName
1152#define DosQueryModuleName _DosQueryModuleName
1153
1154inline ULONG _DosQueryProcAddr(HMODULE a, ULONG b, PCSZ c, PFN *d)
1155{
1156 ULONG yyrc;
1157 USHORT sel = RestoreOS2FS();
1158
1159 yyrc = DosQueryProcAddr(a, b, c, d);
1160 SetFS(sel);
1161
1162 return yyrc;
1163}
1164
1165#undef DosQueryProcAddr
1166#define DosQueryProcAddr _DosQueryProcAddr
1167
1168inline ULONG _DosQueryProcType(HMODULE a, ULONG b, PCSZ c, PULONG d)
1169{
1170 ULONG yyrc;
1171 USHORT sel = RestoreOS2FS();
1172
1173 yyrc = DosQueryProcType(a, b, c, d);
1174 SetFS(sel);
1175
1176 return yyrc;
1177}
1178
1179#undef DosQueryProcType
1180#define DosQueryProcType _DosQueryProcType
1181
1182#endif
1183#ifdef INCL_DOSRESOURCES
1184inline ULONG _DosFreeResource(PVOID a)
1185{
1186 ULONG yyrc;
1187 USHORT sel = RestoreOS2FS();
1188
1189 yyrc = DosFreeResource(a);
1190 SetFS(sel);
1191
1192 return yyrc;
1193}
1194
1195#undef DosFreeResource
1196#define DosFreeResource _DosFreeResource
1197
1198inline ULONG _DosGetResource(HMODULE a, ULONG b, ULONG c, PPVOID d)
1199{
1200 ULONG yyrc;
1201 USHORT sel = RestoreOS2FS();
1202
1203 yyrc = DosGetResource(a, b, c, d);
1204 SetFS(sel);
1205
1206 return yyrc;
1207}
1208
1209#undef DosGetResource
1210#define DosGetResource _DosGetResource
1211
1212inline ULONG _DosQueryResourceSize(HMODULE a, ULONG b, ULONG c, PULONG d)
1213{
1214 ULONG yyrc;
1215 USHORT sel = RestoreOS2FS();
1216
1217 yyrc = DosQueryResourceSize(a, b, c, d);
1218 SetFS(sel);
1219
1220 return yyrc;
1221}
1222
1223#undef DosQueryResourceSize
1224#define DosQueryResourceSize _DosQueryResourceSize
1225
1226#endif
1227#ifdef INCL_DOSPROCESS
1228inline ULONG _DosBeep(ULONG a, ULONG b)
1229{
1230 ULONG yyrc;
1231 USHORT sel = RestoreOS2FS();
1232
1233 yyrc = DosBeep(a, b);
1234 SetFS(sel);
1235
1236 return yyrc;
1237}
1238
1239#undef DosBeep
1240#define DosBeep _DosBeep
1241
1242inline VOID _DosExit(ULONG a, ULONG b)
1243{
1244 USHORT sel = RestoreOS2FS();
1245
1246 DosExit(a, b);
1247 SetFS(sel);
1248}
1249
1250#undef DosExit
1251#define DosExit _DosExit
1252
1253inline ULONG _DosAllocThreadLocalMemory(ULONG a, PULONG *b)
1254{
1255 ULONG yyrc;
1256 USHORT sel = RestoreOS2FS();
1257
1258 yyrc = DosAllocThreadLocalMemory(a, b);
1259 SetFS(sel);
1260
1261 return yyrc;
1262}
1263
1264#undef DosAllocThreadLocalMemory
1265#define DosAllocThreadLocalMemory _DosAllocThreadLocalMemory
1266
1267inline ULONG _DosCreateThread(PTID a, PFNTHREAD b, ULONG c, ULONG d, ULONG e)
1268{
1269 ULONG yyrc;
1270 USHORT sel = RestoreOS2FS();
1271
1272 yyrc = DosCreateThread(a, b, c, d, e);
1273 SetFS(sel);
1274
1275 return yyrc;
1276}
1277
1278#undef DosCreateThread
1279#define DosCreateThread _DosCreateThread
1280
1281inline ULONG _DosEnterCritSec()
1282{
1283 ULONG yyrc;
1284 USHORT sel = RestoreOS2FS();
1285
1286 yyrc = DosEnterCritSec();
1287 SetFS(sel);
1288
1289 return yyrc;
1290}
1291
1292#undef DosEnterCritSec
1293#define DosEnterCritSec _DosEnterCritSec
1294
1295inline ULONG _DosExecPgm(PCHAR a, LONG b, ULONG c, PCSZ d, PCSZ e, PRESULTCODES f, PCSZ g)
1296{
1297 ULONG yyrc;
1298 USHORT sel = RestoreOS2FS();
1299
1300 yyrc = DosExecPgm(a, b, c, d, e, f, g);
1301 SetFS(sel);
1302
1303 return yyrc;
1304}
1305
1306#undef DosExecPgm
1307#define DosExecPgm _DosExecPgm
1308
1309inline ULONG _DosExitCritSec()
1310{
1311 ULONG yyrc;
1312 USHORT sel = RestoreOS2FS();
1313
1314 yyrc = DosExitCritSec();
1315 SetFS(sel);
1316
1317 return yyrc;
1318}
1319
1320#undef DosExitCritSec
1321#define DosExitCritSec _DosExitCritSec
1322
1323inline ULONG _DosExitList(ULONG a, PFNEXITLIST b)
1324{
1325 ULONG yyrc;
1326 USHORT sel = RestoreOS2FS();
1327
1328 yyrc = DosExitList(a, b);
1329 SetFS(sel);
1330
1331 return yyrc;
1332}
1333
1334#undef DosExitList
1335#define DosExitList _DosExitList
1336
1337inline ULONG _DosFreeThreadLocalMemory(ULONG *a)
1338{
1339 ULONG yyrc;
1340 USHORT sel = RestoreOS2FS();
1341
1342 yyrc = DosFreeThreadLocalMemory(a);
1343 SetFS(sel);
1344
1345 return yyrc;
1346}
1347
1348#undef DosFreeThreadLocalMemory
1349#define DosFreeThreadLocalMemory _DosFreeThreadLocalMemory
1350
1351inline ULONG _DosGetInfoBlocks(PTIB *a, PPIB *b)
1352{
1353 ULONG yyrc;
1354 USHORT sel = RestoreOS2FS();
1355
1356 yyrc = DosGetInfoBlocks(a, b);
1357 SetFS(sel);
1358
1359 return yyrc;
1360}
1361
1362#undef DosGetInfoBlocks
1363#define DosGetInfoBlocks _DosGetInfoBlocks
1364
1365inline ULONG _DosKillProcess(ULONG a, PID b)
1366{
1367 ULONG yyrc;
1368 USHORT sel = RestoreOS2FS();
1369
1370 yyrc = DosKillProcess(a, b);
1371 SetFS(sel);
1372
1373 return yyrc;
1374}
1375
1376#undef DosKillProcess
1377#define DosKillProcess _DosKillProcess
1378
1379inline ULONG _DosKillThread(TID a)
1380{
1381 ULONG yyrc;
1382 USHORT sel = RestoreOS2FS();
1383
1384 yyrc = DosKillThread(a);
1385 SetFS(sel);
1386
1387 return yyrc;
1388}
1389
1390#undef DosKillThread
1391#define DosKillThread _DosKillThread
1392
1393inline ULONG _DosResumeThread(TID a)
1394{
1395 ULONG yyrc;
1396 USHORT sel = RestoreOS2FS();
1397
1398 yyrc = DosResumeThread(a);
1399 SetFS(sel);
1400
1401 return yyrc;
1402}
1403
1404#undef DosResumeThread
1405#define DosResumeThread _DosResumeThread
1406
1407inline ULONG _DosSetPriority(ULONG a, ULONG b, LONG c, ULONG d)
1408{
1409 ULONG yyrc;
1410 USHORT sel = RestoreOS2FS();
1411
1412 yyrc = DosSetPriority(a, b, c, d);
1413 SetFS(sel);
1414
1415 return yyrc;
1416}
1417
1418#undef DosSetPriority
1419#define DosSetPriority _DosSetPriority
1420
1421inline ULONG _DosSleep(ULONG a)
1422{
1423 ULONG yyrc;
1424 USHORT sel = RestoreOS2FS();
1425
1426 yyrc = DosSleep(a);
1427 SetFS(sel);
1428
1429 return yyrc;
1430}
1431
1432#undef DosSleep
1433#define DosSleep _DosSleep
1434
1435inline ULONG _DosSuspendThread(TID a)
1436{
1437 ULONG yyrc;
1438 USHORT sel = RestoreOS2FS();
1439
1440 yyrc = DosSuspendThread(a);
1441 SetFS(sel);
1442
1443 return yyrc;
1444}
1445
1446#undef DosSuspendThread
1447#define DosSuspendThread _DosSuspendThread
1448
1449inline ULONG _DosWaitChild(ULONG a, ULONG b, PRESULTCODES c, PPID d, PID e)
1450{
1451 ULONG yyrc;
1452 USHORT sel = RestoreOS2FS();
1453
1454 yyrc = DosWaitChild(a, b, c, d, e);
1455 SetFS(sel);
1456
1457 return yyrc;
1458}
1459
1460#undef DosWaitChild
1461#define DosWaitChild _DosWaitChild
1462
1463inline ULONG _DosWaitThread(PTID a, ULONG b)
1464{
1465 ULONG yyrc;
1466 USHORT sel = RestoreOS2FS();
1467
1468 yyrc = DosWaitThread(a, b);
1469 SetFS(sel);
1470
1471 return yyrc;
1472}
1473
1474#undef DosWaitThread
1475#define DosWaitThread _DosWaitThread
1476
1477#endif
1478
1479#ifdef INCL_DOSSESMGR
1480inline ULONG _DosQueryAppType(PCSZ a, PULONG b)
1481{
1482 ULONG yyrc;
1483 USHORT sel = RestoreOS2FS();
1484
1485 yyrc = DosQueryAppType(a, b);
1486 SetFS(sel);
1487
1488 return yyrc;
1489}
1490
1491#undef DosQueryAppType
1492#define DosQueryAppType _DosQueryAppType
1493
1494inline ULONG _DosSelectSession(ULONG a)
1495{
1496 ULONG yyrc;
1497 USHORT sel = RestoreOS2FS();
1498
1499 yyrc = DosSelectSession(a);
1500 SetFS(sel);
1501
1502 return yyrc;
1503}
1504
1505#undef DosSelectSession
1506#define DosSelectSession _DosSelectSession
1507
1508inline ULONG _DosSetSession(ULONG a, PSTATUSDATA b)
1509{
1510 ULONG yyrc;
1511 USHORT sel = RestoreOS2FS();
1512
1513 yyrc = DosSetSession(a, b);
1514 SetFS(sel);
1515
1516 return yyrc;
1517}
1518
1519#undef DosSetSession
1520#define DosSetSession _DosSetSession
1521
1522inline ULONG _DosStartSession(PSTARTDATA a, PULONG b, PPID c)
1523{
1524 ULONG yyrc;
1525 USHORT sel = RestoreOS2FS();
1526
1527 yyrc = DosStartSession(a, b, c);
1528 SetFS(sel);
1529
1530 return yyrc;
1531}
1532
1533#undef DosStartSession
1534#define DosStartSession _DosStartSession
1535
1536inline ULONG _DosStopSession(ULONG a, ULONG b)
1537{
1538 ULONG yyrc;
1539 USHORT sel = RestoreOS2FS();
1540
1541 yyrc = DosStopSession(a, b);
1542 SetFS(sel);
1543
1544 return yyrc;
1545}
1546
1547#undef DosStopSession
1548#define DosStopSession _DosStopSession
1549
1550#endif
1551#ifdef INCL_DOSSEMAPHORES
1552inline ULONG _DosCloseEventSem(HEV a)
1553{
1554 ULONG yyrc;
1555 USHORT sel = RestoreOS2FS();
1556
1557 yyrc = DosCloseEventSem(a);
1558 SetFS(sel);
1559
1560 return yyrc;
1561}
1562
1563#undef DosCloseEventSem
1564#define DosCloseEventSem _DosCloseEventSem
1565
1566inline ULONG _DosCreateEventSem(PCSZ a, PHEV b, ULONG c, BOOL32 d)
1567{
1568 ULONG yyrc;
1569 USHORT sel = RestoreOS2FS();
1570
1571 yyrc = DosCreateEventSem(a, b, c, d);
1572 SetFS(sel);
1573
1574 return yyrc;
1575}
1576
1577#undef DosCreateEventSem
1578#define DosCreateEventSem _DosCreateEventSem
1579
1580inline ULONG _DosOpenEventSem(PCSZ a, PHEV b)
1581{
1582 ULONG yyrc;
1583 USHORT sel = RestoreOS2FS();
1584
1585 yyrc = DosOpenEventSem(a, b);
1586 SetFS(sel);
1587
1588 return yyrc;
1589}
1590
1591#undef DosOpenEventSem
1592#define DosOpenEventSem _DosOpenEventSem
1593
1594inline ULONG _DosPostEventSem(HEV a)
1595{
1596 ULONG yyrc;
1597 USHORT sel = RestoreOS2FS();
1598
1599 yyrc = DosPostEventSem(a);
1600 SetFS(sel);
1601
1602 return yyrc;
1603}
1604
1605#undef DosPostEventSem
1606#define DosPostEventSem _DosPostEventSem
1607
1608inline ULONG _DosQueryEventSem(HEV a, PULONG b)
1609{
1610 ULONG yyrc;
1611 USHORT sel = RestoreOS2FS();
1612
1613 yyrc = DosQueryEventSem(a, b);
1614 SetFS(sel);
1615
1616 return yyrc;
1617}
1618
1619#undef DosQueryEventSem
1620#define DosQueryEventSem _DosQueryEventSem
1621
1622inline ULONG _DosResetEventSem(HEV a, PULONG b)
1623{
1624 ULONG yyrc;
1625 USHORT sel = RestoreOS2FS();
1626
1627 yyrc = DosResetEventSem(a, b);
1628 SetFS(sel);
1629
1630 return yyrc;
1631}
1632
1633#undef DosResetEventSem
1634#define DosResetEventSem _DosResetEventSem
1635
1636inline ULONG _DosWaitEventSem(HEV a, ULONG b)
1637{
1638 ULONG yyrc;
1639 USHORT sel = RestoreOS2FS();
1640
1641 yyrc = DosWaitEventSem(a, b);
1642 SetFS(sel);
1643
1644 return yyrc;
1645}
1646
1647#undef DosWaitEventSem
1648#define DosWaitEventSem _DosWaitEventSem
1649
1650inline ULONG _DosCloseMutexSem(HMTX a)
1651{
1652 ULONG yyrc;
1653 USHORT sel = RestoreOS2FS();
1654
1655 yyrc = DosCloseMutexSem(a);
1656 SetFS(sel);
1657
1658 return yyrc;
1659}
1660
1661#undef DosCloseMutexSem
1662#define DosCloseMutexSem _DosCloseMutexSem
1663
1664inline ULONG _DosCreateMutexSem(PCSZ a, PHMTX b, ULONG c, BOOL32 d)
1665{
1666 ULONG yyrc;
1667 USHORT sel = RestoreOS2FS();
1668
1669 yyrc = DosCreateMutexSem(a, b, c, d);
1670 SetFS(sel);
1671
1672 return yyrc;
1673}
1674
1675#undef DosCreateMutexSem
1676#define DosCreateMutexSem _DosCreateMutexSem
1677
1678inline ULONG _DosOpenMutexSem(PCSZ a, PHMTX b)
1679{
1680 ULONG yyrc;
1681 USHORT sel = RestoreOS2FS();
1682
1683 yyrc = DosOpenMutexSem(a, b);
1684 SetFS(sel);
1685
1686 return yyrc;
1687}
1688
1689#undef DosOpenMutexSem
1690#define DosOpenMutexSem _DosOpenMutexSem
1691
1692inline ULONG _DosQueryMutexSem(HMTX a, PPID b, PTID c, PULONG d)
1693{
1694 ULONG yyrc;
1695 USHORT sel = RestoreOS2FS();
1696
1697 yyrc = DosQueryMutexSem(a, b, c, d);
1698 SetFS(sel);
1699
1700 return yyrc;
1701}
1702
1703#undef DosQueryMutexSem
1704#define DosQueryMutexSem _DosQueryMutexSem
1705
1706inline ULONG _DosReleaseMutexSem(HMTX a)
1707{
1708 ULONG yyrc;
1709 USHORT sel = RestoreOS2FS();
1710
1711 yyrc = DosReleaseMutexSem(a);
1712 SetFS(sel);
1713
1714 return yyrc;
1715}
1716
1717#undef DosReleaseMutexSem
1718#define DosReleaseMutexSem _DosReleaseMutexSem
1719
1720inline ULONG _DosRequestMutexSem(HMTX a, ULONG b)
1721{
1722 ULONG yyrc;
1723 USHORT sel = RestoreOS2FS();
1724
1725 yyrc = DosRequestMutexSem(a, b);
1726 SetFS(sel);
1727
1728 return yyrc;
1729}
1730
1731#undef DosRequestMutexSem
1732#define DosRequestMutexSem _DosRequestMutexSem
1733
1734inline ULONG _DosAddMuxWaitSem(HMUX a, PSEMRECORD b)
1735{
1736 ULONG yyrc;
1737 USHORT sel = RestoreOS2FS();
1738
1739 yyrc = DosAddMuxWaitSem(a, b);
1740 SetFS(sel);
1741
1742 return yyrc;
1743}
1744
1745#undef DosAddMuxWaitSem
1746#define DosAddMuxWaitSem _DosAddMuxWaitSem
1747
1748inline ULONG _DosCloseMuxWaitSem(HMUX a)
1749{
1750 ULONG yyrc;
1751 USHORT sel = RestoreOS2FS();
1752
1753 yyrc = DosCloseMuxWaitSem(a);
1754 SetFS(sel);
1755
1756 return yyrc;
1757}
1758
1759#undef DosCloseMuxWaitSem
1760#define DosCloseMuxWaitSem _DosCloseMuxWaitSem
1761
1762inline ULONG _DosCreateMuxWaitSem(PCSZ a, PHMUX b, ULONG c, PSEMRECORD d, ULONG e)
1763{
1764 ULONG yyrc;
1765 USHORT sel = RestoreOS2FS();
1766
1767 yyrc = DosCreateMuxWaitSem(a, b, c, d, e);
1768 SetFS(sel);
1769
1770 return yyrc;
1771}
1772
1773#undef DosCreateMuxWaitSem
1774#define DosCreateMuxWaitSem _DosCreateMuxWaitSem
1775
1776inline ULONG _DosDeleteMuxWaitSem(HMUX a, HSEM b)
1777{
1778 ULONG yyrc;
1779 USHORT sel = RestoreOS2FS();
1780
1781 yyrc = DosDeleteMuxWaitSem(a, b);
1782 SetFS(sel);
1783
1784 return yyrc;
1785}
1786
1787#undef DosDeleteMuxWaitSem
1788#define DosDeleteMuxWaitSem _DosDeleteMuxWaitSem
1789
1790inline ULONG _DosOpenMuxWaitSem(PCSZ a, PHMUX b)
1791{
1792 ULONG yyrc;
1793 USHORT sel = RestoreOS2FS();
1794
1795 yyrc = DosOpenMuxWaitSem(a, b);
1796 SetFS(sel);
1797
1798 return yyrc;
1799}
1800
1801#undef DosOpenMuxWaitSem
1802#define DosOpenMuxWaitSem _DosOpenMuxWaitSem
1803
1804inline ULONG _DosQueryMuxWaitSem(HMUX a, PULONG b, PSEMRECORD c, PULONG d)
1805{
1806 ULONG yyrc;
1807 USHORT sel = RestoreOS2FS();
1808
1809 yyrc = DosQueryMuxWaitSem(a, b, c, d);
1810 SetFS(sel);
1811
1812 return yyrc;
1813}
1814
1815#undef DosQueryMuxWaitSem
1816#define DosQueryMuxWaitSem _DosQueryMuxWaitSem
1817
1818inline ULONG _DosWaitMuxWaitSem(HMUX a, ULONG b, PULONG c)
1819{
1820 ULONG yyrc;
1821 USHORT sel = RestoreOS2FS();
1822
1823 yyrc = DosWaitMuxWaitSem(a, b, c);
1824 SetFS(sel);
1825
1826 return yyrc;
1827}
1828
1829#undef DosWaitMuxWaitSem
1830#define DosWaitMuxWaitSem _DosWaitMuxWaitSem
1831
1832#endif
1833#ifdef INCL_DOSNMPIPES
1834inline ULONG _DosCallNPipe(PCSZ a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g)
1835{
1836 ULONG yyrc;
1837 USHORT sel = RestoreOS2FS();
1838
1839 yyrc = DosCallNPipe(a, b, c, d, e, f, g);
1840 SetFS(sel);
1841
1842 return yyrc;
1843}
1844
1845#undef DosCallNPipe
1846#define DosCallNPipe _DosCallNPipe
1847
1848inline ULONG _DosConnectNPipe(HPIPE a)
1849{
1850 ULONG yyrc;
1851 USHORT sel = RestoreOS2FS();
1852
1853 yyrc = DosConnectNPipe(a);
1854 SetFS(sel);
1855
1856 return yyrc;
1857}
1858
1859#undef DosConnectNPipe
1860#define DosConnectNPipe _DosConnectNPipe
1861
1862inline ULONG _DosCreateNPipe(PCSZ a, PHPIPE b, ULONG c, ULONG d, ULONG e, ULONG f, ULONG g)
1863{
1864 ULONG yyrc;
1865 USHORT sel = RestoreOS2FS();
1866
1867 yyrc = DosCreateNPipe(a, b, c, d, e, f, g);
1868 SetFS(sel);
1869
1870 return yyrc;
1871}
1872
1873#undef DosCreateNPipe
1874#define DosCreateNPipe _DosCreateNPipe
1875
1876inline ULONG _DosDisConnectNPipe(HPIPE a)
1877{
1878 ULONG yyrc;
1879 USHORT sel = RestoreOS2FS();
1880
1881 yyrc = DosDisConnectNPipe(a);
1882 SetFS(sel);
1883
1884 return yyrc;
1885}
1886
1887#undef DosDisConnectNPipe
1888#define DosDisConnectNPipe _DosDisConnectNPipe
1889
1890inline ULONG _DosPeekNPipe(HPIPE a, PVOID b, ULONG c, PULONG d, PAVAILDATA e, PULONG f)
1891{
1892 ULONG yyrc;
1893 USHORT sel = RestoreOS2FS();
1894
1895 yyrc = DosPeekNPipe(a, b, c, d, e, f);
1896 SetFS(sel);
1897
1898 return yyrc;
1899}
1900
1901#undef DosPeekNPipe
1902#define DosPeekNPipe _DosPeekNPipe
1903
1904inline ULONG _DosQueryNPHState(HPIPE a, PULONG b)
1905{
1906 ULONG yyrc;
1907 USHORT sel = RestoreOS2FS();
1908
1909 yyrc = DosQueryNPHState(a, b);
1910 SetFS(sel);
1911
1912 return yyrc;
1913}
1914
1915#undef DosQueryNPHState
1916#define DosQueryNPHState _DosQueryNPHState
1917
1918inline ULONG _DosQueryNPipeInfo(HPIPE a, ULONG b, PVOID c, ULONG d)
1919{
1920 ULONG yyrc;
1921 USHORT sel = RestoreOS2FS();
1922
1923 yyrc = DosQueryNPipeInfo(a, b, c, d);
1924 SetFS(sel);
1925
1926 return yyrc;
1927}
1928
1929#undef DosQueryNPipeInfo
1930#define DosQueryNPipeInfo _DosQueryNPipeInfo
1931
1932inline ULONG _DosQueryNPipeSemState(HSEM a, PPIPESEMSTATE b, ULONG c)
1933{
1934 ULONG yyrc;
1935 USHORT sel = RestoreOS2FS();
1936
1937 yyrc = DosQueryNPipeSemState(a, b, c);
1938 SetFS(sel);
1939
1940 return yyrc;
1941}
1942
1943#undef DosQueryNPipeSemState
1944#define DosQueryNPipeSemState _DosQueryNPipeSemState
1945
1946inline ULONG _DosRawReadNPipe(PCSZ a, ULONG b, PULONG c, PVOID d)
1947{
1948 ULONG yyrc;
1949 USHORT sel = RestoreOS2FS();
1950
1951 yyrc = DosRawReadNPipe(a, b, c, d);
1952 SetFS(sel);
1953
1954 return yyrc;
1955}
1956
1957#undef DosRawReadNPipe
1958#define DosRawReadNPipe _DosRawReadNPipe
1959
1960inline ULONG _DosRawWriteNPipe(PCSZ a, ULONG b)
1961{
1962 ULONG yyrc;
1963 USHORT sel = RestoreOS2FS();
1964
1965 yyrc = DosRawWriteNPipe(a, b);
1966 SetFS(sel);
1967
1968 return yyrc;
1969}
1970
1971#undef DosRawWriteNPipe
1972#define DosRawWriteNPipe _DosRawWriteNPipe
1973
1974inline ULONG _DosSetNPHState(HPIPE a, ULONG b)
1975{
1976 ULONG yyrc;
1977 USHORT sel = RestoreOS2FS();
1978
1979 yyrc = DosSetNPHState(a, b);
1980 SetFS(sel);
1981
1982 return yyrc;
1983}
1984
1985#undef DosSetNPHState
1986#define DosSetNPHState _DosSetNPHState
1987
1988inline ULONG _DosSetNPipeSem(HPIPE a, HSEM b, ULONG c)
1989{
1990 ULONG yyrc;
1991 USHORT sel = RestoreOS2FS();
1992
1993 yyrc = DosSetNPipeSem(a, b, c);
1994 SetFS(sel);
1995
1996 return yyrc;
1997}
1998
1999#undef DosSetNPipeSem
2000#define DosSetNPipeSem _DosSetNPipeSem
2001
2002inline ULONG _DosTransactNPipe(HPIPE a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f)
2003{
2004 ULONG yyrc;
2005 USHORT sel = RestoreOS2FS();
2006
2007 yyrc = DosTransactNPipe(a, b, c, d, e, f);
2008 SetFS(sel);
2009
2010 return yyrc;
2011}
2012
2013#undef DosTransactNPipe
2014#define DosTransactNPipe _DosTransactNPipe
2015
2016inline ULONG _DosWaitNPipe(PCSZ a, ULONG b)
2017{
2018 ULONG yyrc;
2019 USHORT sel = RestoreOS2FS();
2020
2021 yyrc = DosWaitNPipe(a, b);
2022 SetFS(sel);
2023
2024 return yyrc;
2025}
2026
2027#undef DosWaitNPipe
2028#define DosWaitNPipe _DosWaitNPipe
2029
2030inline ULONG _DosCreatePipe(PHFILE a, PHFILE b, ULONG c)
2031{
2032 ULONG yyrc;
2033 USHORT sel = RestoreOS2FS();
2034
2035 yyrc = DosCreatePipe(a, b, c);
2036 SetFS(sel);
2037
2038 return yyrc;
2039}
2040
2041#undef DosCreatePipe
2042#define DosCreatePipe _DosCreatePipe
2043
2044#endif
2045#ifdef INCL_DOSQUEUES
2046inline ULONG _DosCloseQueue(HQUEUE a)
2047{
2048 ULONG yyrc;
2049 USHORT sel = RestoreOS2FS();
2050
2051 yyrc = DosCloseQueue(a);
2052 SetFS(sel);
2053
2054 return yyrc;
2055}
2056
2057#undef DosCloseQueue
2058#define DosCloseQueue _DosCloseQueue
2059
2060inline ULONG _DosCreateQueue(PHQUEUE a, ULONG b, PCSZ c)
2061{
2062 ULONG yyrc;
2063 USHORT sel = RestoreOS2FS();
2064
2065 yyrc = DosCreateQueue(a, b, c);
2066 SetFS(sel);
2067
2068 return yyrc;
2069}
2070
2071#undef DosCreateQueue
2072#define DosCreateQueue _DosCreateQueue
2073
2074inline ULONG _DosOpenQueue(PPID a, PHQUEUE b, PCSZ c)
2075{
2076 ULONG yyrc;
2077 USHORT sel = RestoreOS2FS();
2078
2079 yyrc = DosOpenQueue(a, b, c);
2080 SetFS(sel);
2081
2082 return yyrc;
2083}
2084
2085#undef DosOpenQueue
2086#define DosOpenQueue _DosOpenQueue
2087
2088inline ULONG _DosPeekQueue(HQUEUE a, PREQUESTDATA b, PULONG c, PPVOID d, PULONG e, BOOL32 f, PBYTE g, HEV h)
2089{
2090 ULONG yyrc;
2091 USHORT sel = RestoreOS2FS();
2092
2093 yyrc = DosPeekQueue(a, b, c, d, e, f, g, h);
2094 SetFS(sel);
2095
2096 return yyrc;
2097}
2098
2099#undef DosPeekQueue
2100#define DosPeekQueue _DosPeekQueue
2101
2102inline ULONG _DosPurgeQueue(HQUEUE a)
2103{
2104 ULONG yyrc;
2105 USHORT sel = RestoreOS2FS();
2106
2107 yyrc = DosPurgeQueue(a);
2108 SetFS(sel);
2109
2110 return yyrc;
2111}
2112
2113#undef DosPurgeQueue
2114#define DosPurgeQueue _DosPurgeQueue
2115
2116inline ULONG _DosQueryQueue(HQUEUE a, PULONG b)
2117{
2118 ULONG yyrc;
2119 USHORT sel = RestoreOS2FS();
2120
2121 yyrc = DosQueryQueue(a, b);
2122 SetFS(sel);
2123
2124 return yyrc;
2125}
2126
2127#undef DosQueryQueue
2128#define DosQueryQueue _DosQueryQueue
2129
2130inline ULONG _DosReadQueue(HQUEUE a, PREQUESTDATA b, PULONG c, PPVOID d, ULONG e, BOOL32 f, PBYTE g, HEV h)
2131{
2132 ULONG yyrc;
2133 USHORT sel = RestoreOS2FS();
2134
2135 yyrc = DosReadQueue(a, b, c, d, e, f, g, h);
2136 SetFS(sel);
2137
2138 return yyrc;
2139}
2140
2141#undef DosReadQueue
2142#define DosReadQueue _DosReadQueue
2143
2144inline ULONG _DosWriteQueue(HQUEUE a, ULONG b, ULONG c, PVOID d, ULONG e)
2145{
2146 ULONG yyrc;
2147 USHORT sel = RestoreOS2FS();
2148
2149 yyrc = DosWriteQueue(a, b, c, d, e);
2150 SetFS(sel);
2151
2152 return yyrc;
2153}
2154
2155#undef DosWriteQueue
2156#define DosWriteQueue _DosWriteQueue
2157
2158#endif
2159#ifdef INCL_DOSEXCEPTIONS
2160inline ULONG _DosAcknowledgeSignalException(ULONG a)
2161{
2162 ULONG yyrc;
2163 USHORT sel = RestoreOS2FS();
2164
2165 yyrc = DosAcknowledgeSignalException(a);
2166 SetFS(sel);
2167
2168 return yyrc;
2169}
2170
2171#undef DosAcknowledgeSignalException
2172#define DosAcknowledgeSignalException _DosAcknowledgeSignalException
2173
2174inline ULONG _DosEnterMustComplete(PULONG a)
2175{
2176 ULONG yyrc;
2177 USHORT sel = RestoreOS2FS();
2178
2179 yyrc = DosEnterMustComplete(a);
2180 SetFS(sel);
2181
2182 return yyrc;
2183}
2184
2185#undef DosEnterMustComplete
2186#define DosEnterMustComplete _DosEnterMustComplete
2187
2188inline ULONG _DosExitMustComplete(PULONG a)
2189{
2190 ULONG yyrc;
2191 USHORT sel = RestoreOS2FS();
2192
2193 yyrc = DosExitMustComplete(a);
2194 SetFS(sel);
2195
2196 return yyrc;
2197}
2198
2199#undef DosExitMustComplete
2200#define DosExitMustComplete _DosExitMustComplete
2201
2202inline ULONG _DosQueryThreadContext(TID a, ULONG b, PCONTEXTRECORD c)
2203{
2204 ULONG yyrc;
2205 USHORT sel = RestoreOS2FS();
2206
2207 yyrc = DosQueryThreadContext(a, b, c);
2208 SetFS(sel);
2209
2210 return yyrc;
2211}
2212
2213#undef DosQueryThreadContext
2214#define DosQueryThreadContext _DosQueryThreadContext
2215
2216inline ULONG _DosRaiseException(PEXCEPTIONREPORTRECORD a)
2217{
2218 ULONG yyrc;
2219 USHORT sel = RestoreOS2FS();
2220
2221 yyrc = DosRaiseException(a);
2222 SetFS(sel);
2223
2224 return yyrc;
2225}
2226
2227#undef DosRaiseException
2228#define DosRaiseException _DosRaiseException
2229
2230inline ULONG _DosSendSignalException(PID a, ULONG b)
2231{
2232 ULONG yyrc;
2233 USHORT sel = RestoreOS2FS();
2234
2235 yyrc = DosSendSignalException(a, b);
2236 SetFS(sel);
2237
2238 return yyrc;
2239}
2240
2241#undef DosSendSignalException
2242#define DosSendSignalException _DosSendSignalException
2243
2244inline ULONG _DosSetExceptionHandler(PEXCEPTIONREGISTRATIONRECORD a)
2245{
2246 ULONG yyrc;
2247 USHORT sel = RestoreOS2FS();
2248
2249 yyrc = DosSetExceptionHandler(a);
2250 SetFS(sel);
2251
2252 return yyrc;
2253}
2254
2255#undef DosSetExceptionHandler
2256#define DosSetExceptionHandler _DosSetExceptionHandler
2257
2258inline ULONG _DosSetSignalExceptionFocus(BOOL32 a, PULONG b)
2259{
2260 ULONG yyrc;
2261 USHORT sel = RestoreOS2FS();
2262
2263 yyrc = DosSetSignalExceptionFocus(a, b);
2264 SetFS(sel);
2265
2266 return yyrc;
2267}
2268
2269#undef DosSetSignalExceptionFocus
2270#define DosSetSignalExceptionFocus _DosSetSignalExceptionFocus
2271
2272inline ULONG _DosUnsetExceptionHandler(PEXCEPTIONREGISTRATIONRECORD a)
2273{
2274 ULONG yyrc;
2275 USHORT sel = RestoreOS2FS();
2276
2277 yyrc = DosUnsetExceptionHandler(a);
2278 SetFS(sel);
2279
2280 return yyrc;
2281}
2282
2283#undef DosUnsetExceptionHandler
2284#define DosUnsetExceptionHandler _DosUnsetExceptionHandler
2285
2286inline ULONG _DosUnwindException(PEXCEPTIONREGISTRATIONRECORD a, PVOID b, PEXCEPTIONREPORTRECORD c)
2287{
2288 ULONG yyrc;
2289 USHORT sel = RestoreOS2FS();
2290
2291 yyrc = DosUnwindException(a, b, c);
2292 SetFS(sel);
2293
2294 return yyrc;
2295}
2296
2297#undef DosUnwindException
2298#define DosUnwindException _DosUnwindException
2299
2300#endif
2301#ifdef INCL_DOSMISC
2302inline ULONG _DosQuerySysInfo(ULONG a, ULONG b, PVOID c, ULONG d)
2303{
2304 ULONG yyrc;
2305 USHORT sel = RestoreOS2FS();
2306
2307 yyrc = DosQuerySysInfo(a, b, c, d);
2308 SetFS(sel);
2309
2310 return yyrc;
2311}
2312
2313#undef DosQuerySysInfo
2314#define DosQuerySysInfo _DosQuerySysInfo
2315
2316inline ULONG _DosScanEnv(PCSZ a, PCSZ *b)
2317{
2318 ULONG yyrc;
2319 USHORT sel = RestoreOS2FS();
2320
2321 yyrc = DosScanEnv(a, b);
2322 SetFS(sel);
2323
2324 return yyrc;
2325}
2326
2327#undef DosScanEnv
2328#define DosScanEnv _DosScanEnv
2329
2330inline ULONG _DosQueryRASInfo(ULONG a, PPVOID b)
2331{
2332 ULONG yyrc;
2333 USHORT sel = RestoreOS2FS();
2334
2335 yyrc = DosQueryRASInfo(a, b);
2336 SetFS(sel);
2337
2338 return yyrc;
2339}
2340
2341#undef DosQueryRASInfo
2342#define DosQueryRASInfo _DosQueryRASInfo
2343
2344#endif
2345#ifdef INCL_DOSDATETIME
2346inline ULONG _DosGetDateTime(PDATETIME a)
2347{
2348 ULONG yyrc;
2349 USHORT sel = RestoreOS2FS();
2350
2351 yyrc = DosGetDateTime(a);
2352 SetFS(sel);
2353
2354 return yyrc;
2355}
2356
2357#undef DosGetDateTime
2358#define DosGetDateTime _DosGetDateTime
2359
2360inline ULONG _DosSetDateTime(PDATETIME a)
2361{
2362 ULONG yyrc;
2363 USHORT sel = RestoreOS2FS();
2364
2365 yyrc = DosSetDateTime(a);
2366 SetFS(sel);
2367
2368 return yyrc;
2369}
2370
2371#undef DosSetDateTime
2372#define DosSetDateTime _DosSetDateTime
2373
2374inline ULONG _DosAsyncTimer(ULONG a, HSEM b, PHTIMER c)
2375{
2376 ULONG yyrc;
2377 USHORT sel = RestoreOS2FS();
2378
2379 yyrc = DosAsyncTimer(a, b, c);
2380 SetFS(sel);
2381
2382 return yyrc;
2383}
2384
2385#undef DosAsyncTimer
2386#define DosAsyncTimer _DosAsyncTimer
2387
2388inline ULONG _DosStartTimer(ULONG a, HSEM b, PHTIMER c)
2389{
2390 ULONG yyrc;
2391 USHORT sel = RestoreOS2FS();
2392
2393 yyrc = DosStartTimer(a, b, c);
2394 SetFS(sel);
2395
2396 return yyrc;
2397}
2398
2399#undef DosStartTimer
2400#define DosStartTimer _DosStartTimer
2401
2402inline ULONG _DosStopTimer(HTIMER a)
2403{
2404 ULONG yyrc;
2405 USHORT sel = RestoreOS2FS();
2406
2407 yyrc = DosStopTimer(a);
2408 SetFS(sel);
2409
2410 return yyrc;
2411}
2412
2413#undef DosStopTimer
2414#define DosStopTimer _DosStopTimer
2415
2416#endif
2417#ifdef DosTmrQueryFreq
2418inline ULONG _DosTmrQueryFreq(PULONG a)
2419{
2420 ULONG yyrc;
2421 USHORT sel = RestoreOS2FS();
2422
2423 yyrc = DosTmrQueryFreq(a);
2424 SetFS(sel);
2425
2426 return yyrc;
2427}
2428
2429#undef DosTmrQueryFreq
2430#define DosTmrQueryFreq _DosTmrQueryFreq
2431
2432inline ULONG _DosTmrQueryTime(PQWORD a)
2433{
2434 ULONG yyrc;
2435 USHORT sel = RestoreOS2FS();
2436
2437 yyrc = DosTmrQueryTime(a);
2438 SetFS(sel);
2439
2440 return yyrc;
2441}
2442
2443#undef DosTmrQueryTime
2444#define DosTmrQueryTime _DosTmrQueryTime
2445
2446#endif
2447#ifdef INCL_DOSMVDM
2448inline ULONG _DosCloseVDD(HVDD a)
2449{
2450 ULONG yyrc;
2451 USHORT sel = RestoreOS2FS();
2452
2453 yyrc = DosCloseVDD(a);
2454 SetFS(sel);
2455
2456 return yyrc;
2457}
2458
2459#undef DosCloseVDD
2460#define DosCloseVDD _DosCloseVDD
2461
2462inline ULONG _DosOpenVDD(PCSZ a, PHVDD b)
2463{
2464 ULONG yyrc;
2465 USHORT sel = RestoreOS2FS();
2466
2467 yyrc = DosOpenVDD(a, b);
2468 SetFS(sel);
2469
2470 return yyrc;
2471}
2472
2473#undef DosOpenVDD
2474#define DosOpenVDD _DosOpenVDD
2475
2476inline ULONG _DosQueryDOSProperty(SGID a, PCSZ b, ULONG c, PSZ d)
2477{
2478 ULONG yyrc;
2479 USHORT sel = RestoreOS2FS();
2480
2481 yyrc = DosQueryDOSProperty(a, b, c, d);
2482 SetFS(sel);
2483
2484 return yyrc;
2485}
2486
2487#undef DosQueryDOSProperty
2488#define DosQueryDOSProperty _DosQueryDOSProperty
2489
2490inline ULONG _DosRequestVDD(HVDD a, SGID b, ULONG c, ULONG d, PVOID e, ULONG f, PVOID g)
2491{
2492 ULONG yyrc;
2493 USHORT sel = RestoreOS2FS();
2494
2495 yyrc = DosRequestVDD(a, b, c, d, e, f, g);
2496 SetFS(sel);
2497
2498 return yyrc;
2499}
2500
2501#undef DosRequestVDD
2502#define DosRequestVDD _DosRequestVDD
2503
2504inline ULONG _DosSetDOSProperty(SGID a, PCSZ b, ULONG c, PCSZ d)
2505{
2506 ULONG yyrc;
2507 USHORT sel = RestoreOS2FS();
2508
2509 yyrc = DosSetDOSProperty(a, b, c, d);
2510 SetFS(sel);
2511
2512 return yyrc;
2513}
2514
2515#undef DosSetDOSProperty
2516#define DosSetDOSProperty _DosSetDOSProperty
2517
2518#endif
2519#ifdef INCL_DOSPROCESS
2520inline ULONG _DosDebug(uDB_t *a)
2521{
2522 ULONG yyrc;
2523 USHORT sel = RestoreOS2FS();
2524
2525 yyrc = DosDebug(a);
2526 SetFS(sel);
2527
2528 return yyrc;
2529}
2530
2531#undef DosDebug
2532#define DosDebug _DosDebug
2533
2534#endif
2535#ifdef INCL_DOSMISC
2536inline ULONG _DosGetMessage(PCHAR *a, ULONG b, PCHAR c, ULONG d, ULONG e, PCSZ f, PULONG g)
2537{
2538 ULONG yyrc;
2539 USHORT sel = RestoreOS2FS();
2540
2541 yyrc = DosGetMessage(a, b, c, d, e, f, g);
2542 SetFS(sel);
2543
2544 return yyrc;
2545}
2546
2547#undef DosGetMessage
2548#define DosGetMessage _DosGetMessage
2549
2550inline ULONG _DosInsertMessage(PCHAR *a, ULONG b, PCSZ c, ULONG d, PCHAR e, ULONG f, PULONG g)
2551{
2552 ULONG yyrc;
2553 USHORT sel = RestoreOS2FS();
2554
2555 yyrc = DosInsertMessage(a, b, c, d, e, f, g);
2556 SetFS(sel);
2557
2558 return yyrc;
2559}
2560
2561#undef DosInsertMessage
2562#define DosInsertMessage _DosInsertMessage
2563
2564inline ULONG _DosPutMessage(HFILE a, ULONG b, PCHAR c)
2565{
2566 ULONG yyrc;
2567 USHORT sel = RestoreOS2FS();
2568
2569 yyrc = DosPutMessage(a, b, c);
2570 SetFS(sel);
2571
2572 return yyrc;
2573}
2574
2575#undef DosPutMessage
2576#define DosPutMessage _DosPutMessage
2577
2578inline ULONG _DosQueryMessageCP(PCHAR a, ULONG b, PCSZ c, PULONG d)
2579{
2580 ULONG yyrc;
2581 USHORT sel = RestoreOS2FS();
2582
2583 yyrc = DosQueryMessageCP(a, b, c, d);
2584 SetFS(sel);
2585
2586 return yyrc;
2587}
2588
2589#undef DosQueryMessageCP
2590#define DosQueryMessageCP _DosQueryMessageCP
2591
2592#endif
2593#ifdef INCL_DOSRAS
2594inline ULONG _DosDumpProcess(ULONG a, ULONG b, PID c)
2595{
2596 ULONG yyrc;
2597 USHORT sel = RestoreOS2FS();
2598
2599 yyrc = DosDumpProcess(a, b, c);
2600 SetFS(sel);
2601
2602 return yyrc;
2603}
2604
2605#undef DosDumpProcess
2606#define DosDumpProcess _DosDumpProcess
2607
2608inline ULONG _DosForceSystemDump(ULONG a)
2609{
2610 ULONG yyrc;
2611 USHORT sel = RestoreOS2FS();
2612
2613 yyrc = DosForceSystemDump(a);
2614 SetFS(sel);
2615
2616 return yyrc;
2617}
2618
2619#undef DosForceSystemDump
2620#define DosForceSystemDump _DosForceSystemDump
2621
2622inline ULONG _DosQueryRASInfo(ULONG a, PPVOID b)
2623{
2624 ULONG yyrc;
2625 USHORT sel = RestoreOS2FS();
2626
2627 yyrc = DosQueryRASInfo(a, b);
2628 SetFS(sel);
2629
2630 return yyrc;
2631}
2632
2633#undef DosQueryRASInfo
2634#define DosQueryRASInfo _DosQueryRASInfo
2635
2636inline ULONG _DosSuppressPopUps(ULONG a, ULONG b)
2637{
2638 ULONG yyrc;
2639 USHORT sel = RestoreOS2FS();
2640
2641 yyrc = DosSuppressPopUps(a, b);
2642 SetFS(sel);
2643
2644 return yyrc;
2645}
2646
2647#undef DosSuppressPopUps
2648#define DosSuppressPopUps _DosSuppressPopUps
2649
2650#endif
2651#ifdef INCL_RXSUBCOM
2652inline ULONG _RexxDeregisterSubcom(PCSZ a, PCSZ b)
2653{
2654 ULONG yyrc;
2655 USHORT sel = RestoreOS2FS();
2656
2657 yyrc = RexxDeregisterSubcom(a, b);
2658 SetFS(sel);
2659
2660 return yyrc;
2661}
2662
2663#undef RexxDeregisterSubcom
2664#define RexxDeregisterSubcom _RexxDeregisterSubcom
2665
2666inline ULONG _RexxQuerySubcom(PCSZ a, PCSZ b, PUSHORT c, PUCHAR d)
2667{
2668 ULONG yyrc;
2669 USHORT sel = RestoreOS2FS();
2670
2671 yyrc = RexxQuerySubcom(a, b, c, d);
2672 SetFS(sel);
2673
2674 return yyrc;
2675}
2676
2677#undef RexxQuerySubcom
2678#define RexxQuerySubcom _RexxQuerySubcom
2679
2680inline ULONG _RexxRegisterSubcomDll(PCSZ a, PCSZ b, PCSZ c, PUCHAR d, ULONG e)
2681{
2682 ULONG yyrc;
2683 USHORT sel = RestoreOS2FS();
2684
2685 yyrc = RexxRegisterSubcomDll(a, b, c, d, e);
2686 SetFS(sel);
2687
2688 return yyrc;
2689}
2690
2691#undef RexxRegisterSubcomDll
2692#define RexxRegisterSubcomDll _RexxRegisterSubcomDll
2693
2694inline ULONG _RexxRegisterSubcomExe(PCSZ a, PFN b, PUCHAR c)
2695{
2696 ULONG yyrc;
2697 USHORT sel = RestoreOS2FS();
2698
2699 yyrc = RexxRegisterSubcomExe(a, b, c);
2700 SetFS(sel);
2701
2702 return yyrc;
2703}
2704
2705#undef RexxRegisterSubcomExe
2706#define RexxRegisterSubcomExe _RexxRegisterSubcomExe
2707
2708#endif
2709#ifdef INCL_RXSHV
2710inline ULONG _RexxVariablePool(PSHVBLOCK a)
2711{
2712 ULONG yyrc;
2713 USHORT sel = RestoreOS2FS();
2714
2715 yyrc = RexxVariablePool(a);
2716 SetFS(sel);
2717
2718 return yyrc;
2719}
2720
2721#undef RexxVariablePool
2722#define RexxVariablePool _RexxVariablePool
2723
2724#endif
2725#ifdef INCL_RXFUNC
2726inline ULONG _RexxDeregisterFunction(PCSZ a)
2727{
2728 ULONG yyrc;
2729 USHORT sel = RestoreOS2FS();
2730
2731 yyrc = RexxDeregisterFunction(a);
2732 SetFS(sel);
2733
2734 return yyrc;
2735}
2736
2737#undef RexxDeregisterFunction
2738#define RexxDeregisterFunction _RexxDeregisterFunction
2739
2740inline ULONG _RexxQueryFunction(PCSZ a)
2741{
2742 ULONG yyrc;
2743 USHORT sel = RestoreOS2FS();
2744
2745 yyrc = RexxQueryFunction(a);
2746 SetFS(sel);
2747
2748 return yyrc;
2749}
2750
2751#undef RexxQueryFunction
2752#define RexxQueryFunction _RexxQueryFunction
2753
2754inline ULONG _RexxRegisterFunctionDll(PCSZ a, PCSZ b, PCSZ c)
2755{
2756 ULONG yyrc;
2757 USHORT sel = RestoreOS2FS();
2758
2759 yyrc = RexxRegisterFunctionDll(a, b, c);
2760 SetFS(sel);
2761
2762 return yyrc;
2763}
2764
2765#undef RexxRegisterFunctionDll
2766#define RexxRegisterFunctionDll _RexxRegisterFunctionDll
2767
2768inline ULONG _RexxRegisterFunctionExe(PCSZ a, RexxFunctionHandler *b)
2769{
2770 ULONG yyrc;
2771 USHORT sel = RestoreOS2FS();
2772
2773 yyrc = RexxRegisterFunctionExe(a, b);
2774 SetFS(sel);
2775
2776 return yyrc;
2777}
2778
2779#undef RexxRegisterFunctionExe
2780#define RexxRegisterFunctionExe _RexxRegisterFunctionExe
2781
2782#endif
2783#ifdef INCL_RXSYSEXIT
2784inline ULONG _RexxDeregisterExit(PCSZ a, PCSZ b)
2785{
2786 ULONG yyrc;
2787 USHORT sel = RestoreOS2FS();
2788
2789 yyrc = RexxDeregisterExit(a, b);
2790 SetFS(sel);
2791
2792 return yyrc;
2793}
2794
2795#undef RexxDeregisterExit
2796#define RexxDeregisterExit _RexxDeregisterExit
2797
2798inline ULONG _RexxQueryExit(PCSZ a, PCSZ b, PUSHORT c, PUCHAR d)
2799{
2800 ULONG yyrc;
2801 USHORT sel = RestoreOS2FS();
2802
2803 yyrc = RexxQueryExit(a, b, c, d);
2804 SetFS(sel);
2805
2806 return yyrc;
2807}
2808
2809#undef RexxQueryExit
2810#define RexxQueryExit _RexxQueryExit
2811
2812inline ULONG _RexxRegisterExitDll(PCSZ a, PCSZ b, PCSZ c, PUCHAR d, ULONG e)
2813{
2814 ULONG yyrc;
2815 USHORT sel = RestoreOS2FS();
2816
2817 yyrc = RexxRegisterExitDll(a, b, c, d, e);
2818 SetFS(sel);
2819
2820 return yyrc;
2821}
2822
2823#undef RexxRegisterExitDll
2824#define RexxRegisterExitDll _RexxRegisterExitDll
2825
2826inline ULONG _RexxRegisterExitExe(PCSZ a, PFN b, PUCHAR c)
2827{
2828 ULONG yyrc;
2829 USHORT sel = RestoreOS2FS();
2830
2831 yyrc = RexxRegisterExitExe(a, b, c);
2832 SetFS(sel);
2833
2834 return yyrc;
2835}
2836
2837#undef RexxRegisterExitExe
2838#define RexxRegisterExitExe _RexxRegisterExitExe
2839
2840#endif
2841#ifdef INCL_RXARI
2842inline ULONG _RexxResetTrace(PID a, TID b)
2843{
2844 ULONG yyrc;
2845 USHORT sel = RestoreOS2FS();
2846
2847 yyrc = RexxResetTrace(a, b);
2848 SetFS(sel);
2849
2850 return yyrc;
2851}
2852
2853#undef RexxResetTrace
2854#define RexxResetTrace _RexxResetTrace
2855
2856inline ULONG _RexxSetHalt(PID a, TID b)
2857{
2858 ULONG yyrc;
2859 USHORT sel = RestoreOS2FS();
2860
2861 yyrc = RexxSetHalt(a, b);
2862 SetFS(sel);
2863
2864 return yyrc;
2865}
2866
2867#undef RexxSetHalt
2868#define RexxSetHalt _RexxSetHalt
2869
2870inline ULONG _RexxSetTrace(PID a, TID b)
2871{
2872 ULONG yyrc;
2873 USHORT sel = RestoreOS2FS();
2874
2875 yyrc = RexxSetTrace(a, b);
2876 SetFS(sel);
2877
2878 return yyrc;
2879}
2880
2881#undef RexxSetTrace
2882#define RexxSetTrace _RexxSetTrace
2883
2884#endif
2885#ifdef INCL_RXMACRO
2886inline ULONG _RexxAddMacro(PCSZ a, PCSZ b, ULONG c)
2887{
2888 ULONG yyrc;
2889 USHORT sel = RestoreOS2FS();
2890
2891 yyrc = RexxAddMacro(a, b, c);
2892 SetFS(sel);
2893
2894 return yyrc;
2895}
2896
2897#undef RexxAddMacro
2898#define RexxAddMacro _RexxAddMacro
2899
2900inline ULONG _RexxClearMacroSpace()
2901{
2902 ULONG yyrc;
2903 USHORT sel = RestoreOS2FS();
2904
2905 yyrc = RexxClearMacroSpace();
2906 SetFS(sel);
2907
2908 return yyrc;
2909}
2910
2911#undef RexxClearMacroSpace
2912#define RexxClearMacroSpace _RexxClearMacroSpace
2913
2914inline ULONG _RexxDropMacro(PCSZ a)
2915{
2916 ULONG yyrc;
2917 USHORT sel = RestoreOS2FS();
2918
2919 yyrc = RexxDropMacro(a);
2920 SetFS(sel);
2921
2922 return yyrc;
2923}
2924
2925#undef RexxDropMacro
2926#define RexxDropMacro _RexxDropMacro
2927
2928inline ULONG _RexxLoadMacroSpace(ULONG a, PCSZ *b, PCSZ c)
2929{
2930 ULONG yyrc;
2931 USHORT sel = RestoreOS2FS();
2932
2933 yyrc = RexxLoadMacroSpace(a, b, c);
2934 SetFS(sel);
2935
2936 return yyrc;
2937}
2938
2939#undef RexxLoadMacroSpace
2940#define RexxLoadMacroSpace _RexxLoadMacroSpace
2941
2942inline ULONG _RexxQueryMacro(PCSZ a, PUSHORT b)
2943{
2944 ULONG yyrc;
2945 USHORT sel = RestoreOS2FS();
2946
2947 yyrc = RexxQueryMacro(a, b);
2948 SetFS(sel);
2949
2950 return yyrc;
2951}
2952
2953#undef RexxQueryMacro
2954#define RexxQueryMacro _RexxQueryMacro
2955
2956inline ULONG _RexxReorderMacro(PCSZ a, ULONG b)
2957{
2958 ULONG yyrc;
2959 USHORT sel = RestoreOS2FS();
2960
2961 yyrc = RexxReorderMacro(a, b);
2962 SetFS(sel);
2963
2964 return yyrc;
2965}
2966
2967#undef RexxReorderMacro
2968#define RexxReorderMacro _RexxReorderMacro
2969
2970inline ULONG _RexxSaveMacroSpace(ULONG a, PCSZ *b, PCSZ c)
2971{
2972 ULONG yyrc;
2973 USHORT sel = RestoreOS2FS();
2974
2975 yyrc = RexxSaveMacroSpace(a, b, c);
2976 SetFS(sel);
2977
2978 return yyrc;
2979}
2980
2981#undef RexxSaveMacroSpace
2982#define RexxSaveMacroSpace _RexxSaveMacroSpace
2983
2984inline LONG _RexxStart(LONG a, PRXSTRING b, PCSZ c, PRXSTRING d, PCSZ e, LONG f, PRXSYSEXIT g, PSHORT h, PRXSTRING i)
2985{
2986 LONG yyrc;
2987 USHORT sel = RestoreOS2FS();
2988
2989 yyrc = RexxStart(a, b, c, d, e, f, g, h, i);
2990 SetFS(sel);
2991
2992 return yyrc;
2993}
2994
2995#undef RexxStart
2996#define RexxStart _RexxStart
2997
2998#endif
2999#ifdef INCL_WIN
3000#ifdef INCL_WINMESSAGEMGR
3001inline BOOL _WinCancelShutdown(HMQ a, BOOL b)
3002{
3003 BOOL yyrc;
3004 USHORT sel = RestoreOS2FS();
3005
3006 yyrc = WinCancelShutdown(a, b);
3007 SetFS(sel);
3008
3009 return yyrc;
3010}
3011
3012#undef WinCancelShutdown
3013#define WinCancelShutdown _WinCancelShutdown
3014
3015inline HMQ _WinCreateMsgQueue(HAB a, LONG b)
3016{
3017 HMQ yyrc;
3018 USHORT sel = RestoreOS2FS();
3019
3020 yyrc = WinCreateMsgQueue(a, b);
3021 SetFS(sel);
3022
3023 return yyrc;
3024}
3025
3026#undef WinCreateMsgQueue
3027#define WinCreateMsgQueue _WinCreateMsgQueue
3028
3029inline BOOL _WinDestroyMsgQueue(HMQ a)
3030{
3031 BOOL yyrc;
3032 USHORT sel = RestoreOS2FS();
3033
3034 yyrc = WinDestroyMsgQueue(a);
3035 SetFS(sel);
3036
3037 return yyrc;
3038}
3039
3040#undef WinDestroyMsgQueue
3041#define WinDestroyMsgQueue _WinDestroyMsgQueue
3042
3043inline MRESULT _WinDispatchMsg(HAB a, PQMSG b)
3044{
3045 MRESULT yyrc;
3046 USHORT sel = RestoreOS2FS();
3047
3048 yyrc = WinDispatchMsg(a, b);
3049 SetFS(sel);
3050
3051 return yyrc;
3052}
3053
3054#undef WinDispatchMsg
3055#define WinDispatchMsg _WinDispatchMsg
3056
3057inline BOOL _WinGetMsg(HAB a, PQMSG b, HWND c, ULONG d, ULONG e)
3058{
3059 BOOL yyrc;
3060 USHORT sel = RestoreOS2FS();
3061
3062 yyrc = WinGetMsg(a, b, c, d, e);
3063 SetFS(sel);
3064
3065 return yyrc;
3066}
3067
3068#undef WinGetMsg
3069#define WinGetMsg _WinGetMsg
3070
3071inline BOOL _WinLockInput(HMQ a, ULONG b)
3072{
3073 BOOL yyrc;
3074 USHORT sel = RestoreOS2FS();
3075
3076 yyrc = WinLockInput(a, b);
3077 SetFS(sel);
3078
3079 return yyrc;
3080}
3081
3082#undef WinLockInput
3083#define WinLockInput _WinLockInput
3084
3085inline BOOL _WinPeekMsg(HAB a, PQMSG b, HWND c, ULONG d, ULONG e, ULONG f)
3086{
3087 BOOL yyrc;
3088 USHORT sel = RestoreOS2FS();
3089
3090 yyrc = WinPeekMsg(a, b, c, d, e, f);
3091 SetFS(sel);
3092
3093 return yyrc;
3094}
3095
3096#undef WinPeekMsg
3097#define WinPeekMsg _WinPeekMsg
3098
3099inline BOOL _WinPostMsg(HWND a, ULONG b, MPARAM c, MPARAM d)
3100{
3101 BOOL yyrc;
3102 USHORT sel = RestoreOS2FS();
3103
3104 yyrc = WinPostMsg(a, b, c, d);
3105 SetFS(sel);
3106
3107 return yyrc;
3108}
3109
3110#undef WinPostMsg
3111#define WinPostMsg _WinPostMsg
3112
3113inline HMQ _WinQueueFromID(HAB a, PID b, TID c)
3114{
3115 HMQ yyrc;
3116 USHORT sel = RestoreOS2FS();
3117
3118 yyrc = WinQueueFromID(a, b, c);
3119 SetFS(sel);
3120
3121 return yyrc;
3122}
3123
3124#undef WinQueueFromID
3125#define WinQueueFromID _WinQueueFromID
3126
3127inline BOOL _WinQueryQueueInfo(HMQ a, PMQINFO b, ULONG c)
3128{
3129 BOOL yyrc;
3130 USHORT sel = RestoreOS2FS();
3131
3132 yyrc = WinQueryQueueInfo(a, b, c);
3133 SetFS(sel);
3134
3135 return yyrc;
3136}
3137
3138#undef WinQueryQueueInfo
3139#define WinQueryQueueInfo _WinQueryQueueInfo
3140
3141inline HMQ _WinQuerySendMsg(HAB a, HMQ b, HMQ c, PQMSG d)
3142{
3143 HMQ yyrc;
3144 USHORT sel = RestoreOS2FS();
3145
3146 yyrc = WinQuerySendMsg(a, b, c, d);
3147 SetFS(sel);
3148
3149 return yyrc;
3150}
3151
3152#undef WinQuerySendMsg
3153#define WinQuerySendMsg _WinQuerySendMsg
3154
3155inline BOOL _WinRegisterUserDatatype(HAB a, LONG b, LONG c, PLONG d)
3156{
3157 BOOL yyrc;
3158 USHORT sel = RestoreOS2FS();
3159
3160 yyrc = WinRegisterUserDatatype(a, b, c, d);
3161 SetFS(sel);
3162
3163 return yyrc;
3164}
3165
3166#undef WinRegisterUserDatatype
3167#define WinRegisterUserDatatype _WinRegisterUserDatatype
3168
3169inline BOOL _WinRegisterUserMsg(HAB a, ULONG b, LONG c, LONG d, LONG e, LONG f, LONG g)
3170{
3171 BOOL yyrc;
3172 USHORT sel = RestoreOS2FS();
3173
3174 yyrc = WinRegisterUserMsg(a, b, c, d, e, f, g);
3175 SetFS(sel);
3176
3177 return yyrc;
3178}
3179
3180#undef WinRegisterUserMsg
3181#define WinRegisterUserMsg _WinRegisterUserMsg
3182
3183inline BOOL _WinReplyMsg(HAB a, HMQ b, HMQ c, MRESULT d)
3184{
3185 BOOL yyrc;
3186 USHORT sel = RestoreOS2FS();
3187
3188 yyrc = WinReplyMsg(a, b, c, d);
3189 SetFS(sel);
3190
3191 return yyrc;
3192}
3193
3194#undef WinReplyMsg
3195#define WinReplyMsg _WinReplyMsg
3196
3197inline MRESULT _WinSendMsg(HWND a, ULONG b, MPARAM c, MPARAM d)
3198{
3199 MRESULT yyrc;
3200 USHORT sel = RestoreOS2FS();
3201
3202 yyrc = WinSendMsg(a, b, c, d);
3203 SetFS(sel);
3204
3205 return yyrc;
3206}
3207
3208#undef WinSendMsg
3209#define WinSendMsg _WinSendMsg
3210
3211inline BOOL _WinSetMsgMode(HAB a, PCSZ b, LONG c)
3212{
3213 BOOL yyrc;
3214 USHORT sel = RestoreOS2FS();
3215
3216 yyrc = WinSetMsgMode(a, b, c);
3217 SetFS(sel);
3218
3219 return yyrc;
3220}
3221
3222#undef WinSetMsgMode
3223#define WinSetMsgMode _WinSetMsgMode
3224
3225inline BOOL _WinSetSynchroMode(HAB a, LONG b)
3226{
3227 BOOL yyrc;
3228 USHORT sel = RestoreOS2FS();
3229
3230 yyrc = WinSetSynchroMode(a, b);
3231 SetFS(sel);
3232
3233 return yyrc;
3234}
3235
3236#undef WinSetSynchroMode
3237#define WinSetSynchroMode _WinSetSynchroMode
3238
3239inline BOOL _WinThreadAssocQueue(HAB a, HMQ b)
3240{
3241 BOOL yyrc;
3242 USHORT sel = RestoreOS2FS();
3243
3244 yyrc = WinThreadAssocQueue(a, b);
3245 SetFS(sel);
3246
3247 return yyrc;
3248}
3249
3250#undef WinThreadAssocQueue
3251#define WinThreadAssocQueue _WinThreadAssocQueue
3252
3253inline BOOL _WinWakeThread(HMQ a)
3254{
3255 BOOL yyrc;
3256 USHORT sel = RestoreOS2FS();
3257
3258 yyrc = WinWakeThread(a);
3259 SetFS(sel);
3260
3261 return yyrc;
3262}
3263
3264#undef WinWakeThread
3265#define WinWakeThread _WinWakeThread
3266
3267#endif
3268inline HWND _WinCreateWindow(HWND a, PCSZ b, PCSZ c, ULONG d, LONG e, LONG f, LONG g, LONG h, HWND i, HWND j, ULONG k, PVOID l, PVOID m)
3269{
3270 HWND yyrc;
3271 USHORT sel = RestoreOS2FS();
3272
3273 yyrc = WinCreateWindow(a, b, c, d, e, f, g, h, i, j, k, l, m);
3274 SetFS(sel);
3275
3276 return yyrc;
3277}
3278
3279#undef WinCreateWindow
3280#define WinCreateWindow _WinCreateWindow
3281
3282inline BOOL _WinDrawBitmap(HPS a, HBITMAP b, PRECTL c, PPOINTL d, LONG e, LONG f, ULONG g)
3283{
3284 BOOL yyrc;
3285 USHORT sel = RestoreOS2FS();
3286
3287 yyrc = WinDrawBitmap(a, b, c, d, e, f, g);
3288 SetFS(sel);
3289
3290 return yyrc;
3291}
3292
3293#undef WinDrawBitmap
3294#define WinDrawBitmap _WinDrawBitmap
3295
3296inline BOOL _WinDrawBorder(HPS a, PRECTL b, LONG c, LONG d, LONG e, LONG f, ULONG g)
3297{
3298 BOOL yyrc;
3299 USHORT sel = RestoreOS2FS();
3300
3301 yyrc = WinDrawBorder(a, b, c, d, e, f, g);
3302 SetFS(sel);
3303
3304 return yyrc;
3305}
3306
3307#undef WinDrawBorder
3308#define WinDrawBorder _WinDrawBorder
3309
3310inline LONG _WinDrawText(HPS a, LONG b, PCH c, PRECTL d, LONG e, LONG f, ULONG g)
3311{
3312 LONG yyrc;
3313 USHORT sel = RestoreOS2FS();
3314
3315 yyrc = WinDrawText(a, b, c, d, e, f, g);
3316 SetFS(sel);
3317
3318 return yyrc;
3319}
3320
3321#undef WinDrawText
3322#define WinDrawText _WinDrawText
3323
3324inline BOOL _WinEnableWindow(HWND a, BOOL b)
3325{
3326 BOOL yyrc;
3327 USHORT sel = RestoreOS2FS();
3328
3329 yyrc = WinEnableWindow(a, b);
3330 SetFS(sel);
3331
3332 return yyrc;
3333}
3334
3335#undef WinEnableWindow
3336#define WinEnableWindow _WinEnableWindow
3337
3338inline BOOL _WinEnableWindowUpdate(HWND a, BOOL b)
3339{
3340 BOOL yyrc;
3341 USHORT sel = RestoreOS2FS();
3342
3343 yyrc = WinEnableWindowUpdate(a, b);
3344 SetFS(sel);
3345
3346 return yyrc;
3347}
3348
3349#undef WinEnableWindowUpdate
3350#define WinEnableWindowUpdate _WinEnableWindowUpdate
3351
3352inline BOOL _WinInvalidateRect(HWND a, PRECTL b, BOOL c)
3353{
3354 BOOL yyrc;
3355 USHORT sel = RestoreOS2FS();
3356
3357 yyrc = WinInvalidateRect(a, b, c);
3358 SetFS(sel);
3359
3360 return yyrc;
3361}
3362
3363#undef WinInvalidateRect
3364#define WinInvalidateRect _WinInvalidateRect
3365
3366inline BOOL _WinInvalidateRegion(HWND a, HRGN b, BOOL c)
3367{
3368 BOOL yyrc;
3369 USHORT sel = RestoreOS2FS();
3370
3371 yyrc = WinInvalidateRegion(a, b, c);
3372 SetFS(sel);
3373
3374 return yyrc;
3375}
3376
3377#undef WinInvalidateRegion
3378#define WinInvalidateRegion _WinInvalidateRegion
3379
3380inline BOOL _WinInvertRect(HPS a, PRECTL b)
3381{
3382 BOOL yyrc;
3383 USHORT sel = RestoreOS2FS();
3384
3385 yyrc = WinInvertRect(a, b);
3386 SetFS(sel);
3387
3388 return yyrc;
3389}
3390
3391#undef WinInvertRect
3392#define WinInvertRect _WinInvertRect
3393
3394inline BOOL _WinIsChild(HWND a, HWND b)
3395{
3396 BOOL yyrc;
3397 USHORT sel = RestoreOS2FS();
3398
3399 yyrc = WinIsChild(a, b);
3400 SetFS(sel);
3401
3402 return yyrc;
3403}
3404
3405#undef WinIsChild
3406#define WinIsChild _WinIsChild
3407
3408inline BOOL _WinIsWindow(HAB a, HWND b)
3409{
3410 BOOL yyrc;
3411 USHORT sel = RestoreOS2FS();
3412
3413 yyrc = WinIsWindow(a, b);
3414 SetFS(sel);
3415
3416 return yyrc;
3417}
3418
3419#undef WinIsWindow
3420#define WinIsWindow _WinIsWindow
3421
3422inline BOOL _WinIsWindowEnabled(HWND a)
3423{
3424 BOOL yyrc;
3425 USHORT sel = RestoreOS2FS();
3426
3427 yyrc = WinIsWindowEnabled(a);
3428 SetFS(sel);
3429
3430 return yyrc;
3431}
3432
3433#undef WinIsWindowEnabled
3434#define WinIsWindowEnabled _WinIsWindowEnabled
3435
3436inline BOOL _WinIsWindowVisible(HWND a)
3437{
3438 BOOL yyrc;
3439 USHORT sel = RestoreOS2FS();
3440
3441 yyrc = WinIsWindowVisible(a);
3442 SetFS(sel);
3443
3444 return yyrc;
3445}
3446
3447#undef WinIsWindowVisible
3448#define WinIsWindowVisible _WinIsWindowVisible
3449
3450inline LONG _WinLoadMessage(HAB a, HMODULE b, ULONG c, LONG d, PSZ e)
3451{
3452 LONG yyrc;
3453 USHORT sel = RestoreOS2FS();
3454
3455 yyrc = WinLoadMessage(a, b, c, d, e);
3456 SetFS(sel);
3457
3458 return yyrc;
3459}
3460
3461#undef WinLoadMessage
3462#define WinLoadMessage _WinLoadMessage
3463
3464inline LONG _WinLoadString(HAB a, HMODULE b, ULONG c, LONG d, PSZ e)
3465{
3466 LONG yyrc;
3467 USHORT sel = RestoreOS2FS();
3468
3469 yyrc = WinLoadString(a, b, c, d, e);
3470 SetFS(sel);
3471
3472 return yyrc;
3473}
3474
3475#undef WinLoadString
3476#define WinLoadString _WinLoadString
3477
3478inline LONG _WinMultWindowFromIDs(HWND a, PHWND b, ULONG c, ULONG d)
3479{
3480 LONG yyrc;
3481 USHORT sel = RestoreOS2FS();
3482
3483 yyrc = WinMultWindowFromIDs(a, b, c, d);
3484 SetFS(sel);
3485
3486 return yyrc;
3487}
3488
3489#undef WinMultWindowFromIDs
3490#define WinMultWindowFromIDs _WinMultWindowFromIDs
3491
3492inline HWND _WinQueryDesktopWindow(HAB a, HDC b)
3493{
3494 HWND yyrc;
3495 USHORT sel = RestoreOS2FS();
3496
3497 yyrc = WinQueryDesktopWindow(a, b);
3498 SetFS(sel);
3499
3500 return yyrc;
3501}
3502
3503#undef WinQueryDesktopWindow
3504#define WinQueryDesktopWindow _WinQueryDesktopWindow
3505
3506inline HWND _WinQueryObjectWindow(HWND a)
3507{
3508 HWND yyrc;
3509 USHORT sel = RestoreOS2FS();
3510
3511 yyrc = WinQueryObjectWindow(a);
3512 SetFS(sel);
3513
3514 return yyrc;
3515}
3516
3517#undef WinQueryObjectWindow
3518#define WinQueryObjectWindow _WinQueryObjectWindow
3519
3520inline HPOINTER _WinQueryPointer(HWND a)
3521{
3522 HPOINTER yyrc;
3523 USHORT sel = RestoreOS2FS();
3524
3525 yyrc = WinQueryPointer(a);
3526 SetFS(sel);
3527
3528 return yyrc;
3529}
3530
3531#undef WinQueryPointer
3532#define WinQueryPointer _WinQueryPointer
3533
3534inline HWND _WinQueryWindow(HWND a, LONG b)
3535{
3536 HWND yyrc;
3537 USHORT sel = RestoreOS2FS();
3538
3539 yyrc = WinQueryWindow(a, b);
3540 SetFS(sel);
3541
3542 return yyrc;
3543}
3544
3545#undef WinQueryWindow
3546#define WinQueryWindow _WinQueryWindow
3547
3548inline BOOL _WinQueryWindowPos(HWND a, PSWP b)
3549{
3550 BOOL yyrc;
3551 USHORT sel = RestoreOS2FS();
3552
3553 yyrc = WinQueryWindowPos(a, b);
3554 SetFS(sel);
3555
3556 return yyrc;
3557}
3558
3559#undef WinQueryWindowPos
3560#define WinQueryWindowPos _WinQueryWindowPos
3561
3562inline BOOL _WinQueryWindowProcess(HWND a, PPID b, PTID c)
3563{
3564 BOOL yyrc;
3565 USHORT sel = RestoreOS2FS();
3566
3567 yyrc = WinQueryWindowProcess(a, b, c);
3568 SetFS(sel);
3569
3570 return yyrc;
3571}
3572
3573#undef WinQueryWindowProcess
3574#define WinQueryWindowProcess _WinQueryWindowProcess
3575
3576inline LONG _WinQueryWindowText(HWND a, LONG b, PCH c)
3577{
3578 LONG yyrc;
3579 USHORT sel = RestoreOS2FS();
3580
3581 yyrc = WinQueryWindowText(a, b, c);
3582 SetFS(sel);
3583
3584 return yyrc;
3585}
3586
3587#undef WinQueryWindowText
3588#define WinQueryWindowText _WinQueryWindowText
3589
3590inline LONG _WinQueryWindowTextLength(HWND a)
3591{
3592 LONG yyrc;
3593 USHORT sel = RestoreOS2FS();
3594
3595 yyrc = WinQueryWindowTextLength(a);
3596 SetFS(sel);
3597
3598 return yyrc;
3599}
3600
3601#undef WinQueryWindowTextLength
3602#define WinQueryWindowTextLength _WinQueryWindowTextLength
3603
3604inline BOOL _WinSetMultWindowPos(HAB a, PSWP b, ULONG c)
3605{
3606 BOOL yyrc;
3607 USHORT sel = RestoreOS2FS();
3608
3609 yyrc = WinSetMultWindowPos(a, b, c);
3610 SetFS(sel);
3611
3612 return yyrc;
3613}
3614
3615#undef WinSetMultWindowPos
3616#define WinSetMultWindowPos _WinSetMultWindowPos
3617
3618inline BOOL _WinSetOwner(HWND a, HWND b)
3619{
3620 BOOL yyrc;
3621 USHORT sel = RestoreOS2FS();
3622
3623 yyrc = WinSetOwner(a, b);
3624 SetFS(sel);
3625
3626 return yyrc;
3627}
3628
3629#undef WinSetOwner
3630#define WinSetOwner _WinSetOwner
3631
3632inline BOOL _WinSetParent(HWND a, HWND b, BOOL c)
3633{
3634 BOOL yyrc;
3635 USHORT sel = RestoreOS2FS();
3636
3637 yyrc = WinSetParent(a, b, c);
3638 SetFS(sel);
3639
3640 return yyrc;
3641}
3642
3643#undef WinSetParent
3644#define WinSetParent _WinSetParent
3645
3646inline BOOL _WinSetWindowPos(HWND a, HWND b, LONG c, LONG d, LONG e, LONG f, ULONG g)
3647{
3648 BOOL yyrc;
3649 USHORT sel = RestoreOS2FS();
3650
3651 yyrc = WinSetWindowPos(a, b, c, d, e, f, g);
3652 SetFS(sel);
3653
3654 return yyrc;
3655}
3656
3657#undef WinSetWindowPos
3658#define WinSetWindowPos _WinSetWindowPos
3659
3660inline BOOL _WinSetWindowText(HWND a, PCSZ b)
3661{
3662 BOOL yyrc;
3663 USHORT sel = RestoreOS2FS();
3664
3665 yyrc = WinSetWindowText(a, b);
3666 SetFS(sel);
3667
3668 return yyrc;
3669}
3670
3671#undef WinSetWindowText
3672#define WinSetWindowText _WinSetWindowText
3673
3674inline BOOL _WinUpdateWindow(HWND a)
3675{
3676 BOOL yyrc;
3677 USHORT sel = RestoreOS2FS();
3678
3679 yyrc = WinUpdateWindow(a);
3680 SetFS(sel);
3681
3682 return yyrc;
3683}
3684
3685#undef WinUpdateWindow
3686#define WinUpdateWindow _WinUpdateWindow
3687
3688inline HWND _WinWindowFromID(HWND a, ULONG b)
3689{
3690 HWND yyrc;
3691 USHORT sel = RestoreOS2FS();
3692
3693 yyrc = WinWindowFromID(a, b);
3694 SetFS(sel);
3695
3696 return yyrc;
3697}
3698
3699#undef WinWindowFromID
3700#define WinWindowFromID _WinWindowFromID
3701
3702#ifdef INCL_WINFRAMEMGR
3703inline HWND _WinCreateStdWindow(HWND a, ULONG b, PULONG c, PCSZ d, PCSZ e, ULONG f, HMODULE g, ULONG h, PHWND i)
3704{
3705 HWND yyrc;
3706 USHORT sel = RestoreOS2FS();
3707
3708 yyrc = WinCreateStdWindow(a, b, c, d, e, f, g, h, i);
3709 SetFS(sel);
3710
3711 return yyrc;
3712}
3713
3714#undef WinCreateStdWindow
3715#define WinCreateStdWindow _WinCreateStdWindow
3716
3717inline BOOL _WinCalcFrameRect(HWND a, PRECTL b, BOOL c)
3718{
3719 BOOL yyrc;
3720 USHORT sel = RestoreOS2FS();
3721
3722 yyrc = WinCalcFrameRect(a, b, c);
3723 SetFS(sel);
3724
3725 return yyrc;
3726}
3727
3728#undef WinCalcFrameRect
3729#define WinCalcFrameRect _WinCalcFrameRect
3730
3731inline BOOL _WinCreateFrameControls(HWND a, PFRAMECDATA b, PCSZ c)
3732{
3733 BOOL yyrc;
3734 USHORT sel = RestoreOS2FS();
3735
3736 yyrc = WinCreateFrameControls(a, b, c);
3737 SetFS(sel);
3738
3739 return yyrc;
3740}
3741
3742#undef WinCreateFrameControls
3743#define WinCreateFrameControls _WinCreateFrameControls
3744
3745inline BOOL _WinFlashWindow(HWND a, BOOL b)
3746{
3747 BOOL yyrc;
3748 USHORT sel = RestoreOS2FS();
3749
3750 yyrc = WinFlashWindow(a, b);
3751 SetFS(sel);
3752
3753 return yyrc;
3754}
3755
3756#undef WinFlashWindow
3757#define WinFlashWindow _WinFlashWindow
3758
3759inline BOOL _WinGetMaxPosition(HWND a, PSWP b)
3760{
3761 BOOL yyrc;
3762 USHORT sel = RestoreOS2FS();
3763
3764 yyrc = WinGetMaxPosition(a, b);
3765 SetFS(sel);
3766
3767 return yyrc;
3768}
3769
3770#undef WinGetMaxPosition
3771#define WinGetMaxPosition _WinGetMaxPosition
3772
3773inline BOOL _WinGetMinPosition(HWND a, PSWP b, PPOINTL c)
3774{
3775 BOOL yyrc;
3776 USHORT sel = RestoreOS2FS();
3777
3778 yyrc = WinGetMinPosition(a, b, c);
3779 SetFS(sel);
3780
3781 return yyrc;
3782}
3783
3784#undef WinGetMinPosition
3785#define WinGetMinPosition _WinGetMinPosition
3786
3787inline BOOL _WinSaveWindowPos(HSAVEWP a, PSWP b, ULONG c)
3788{
3789 BOOL yyrc;
3790 USHORT sel = RestoreOS2FS();
3791
3792 yyrc = WinSaveWindowPos(a, b, c);
3793 SetFS(sel);
3794
3795 return yyrc;
3796}
3797
3798#undef WinSaveWindowPos
3799#define WinSaveWindowPos _WinSaveWindowPos
3800
3801#endif
3802#ifdef INCL_WINWINDOWMGR
3803inline HPS _WinBeginPaint(HWND a, HPS b, PRECTL c)
3804{
3805 HPS yyrc;
3806 USHORT sel = RestoreOS2FS();
3807
3808 yyrc = WinBeginPaint(a, b, c);
3809 SetFS(sel);
3810
3811 return yyrc;
3812}
3813
3814#undef WinBeginPaint
3815#define WinBeginPaint _WinBeginPaint
3816
3817inline MRESULT _WinDefWindowProc(HWND a, ULONG b, MPARAM c, MPARAM d)
3818{
3819 MRESULT yyrc;
3820 USHORT sel = RestoreOS2FS();
3821
3822 yyrc = WinDefWindowProc(a, b, c, d);
3823 SetFS(sel);
3824
3825 return yyrc;
3826}
3827
3828#undef WinDefWindowProc
3829#define WinDefWindowProc _WinDefWindowProc
3830
3831inline BOOL _WinDestroyWindow(HWND a)
3832{
3833 BOOL yyrc;
3834 USHORT sel = RestoreOS2FS();
3835
3836 yyrc = WinDestroyWindow(a);
3837 SetFS(sel);
3838
3839 return yyrc;
3840}
3841
3842#undef WinDestroyWindow
3843#define WinDestroyWindow _WinDestroyWindow
3844
3845inline BOOL _WinEndPaint(HPS a)
3846{
3847 BOOL yyrc;
3848 USHORT sel = RestoreOS2FS();
3849
3850 yyrc = WinEndPaint(a);
3851 SetFS(sel);
3852
3853 return yyrc;
3854}
3855
3856#undef WinEndPaint
3857#define WinEndPaint _WinEndPaint
3858
3859inline BOOL _WinFillRect(HPS a, PRECTL b, LONG c)
3860{
3861 BOOL yyrc;
3862 USHORT sel = RestoreOS2FS();
3863
3864 yyrc = WinFillRect(a, b, c);
3865 SetFS(sel);
3866
3867 return yyrc;
3868}
3869
3870#undef WinFillRect
3871#define WinFillRect _WinFillRect
3872
3873inline HPS _WinGetClipPS(HWND a, HWND b, ULONG c)
3874{
3875 HPS yyrc;
3876 USHORT sel = RestoreOS2FS();
3877
3878 yyrc = WinGetClipPS(a, b, c);
3879 SetFS(sel);
3880
3881 return yyrc;
3882}
3883
3884#undef WinGetClipPS
3885#define WinGetClipPS _WinGetClipPS
3886
3887inline HPS _WinGetPS(HWND a)
3888{
3889 HPS yyrc;
3890 USHORT sel = RestoreOS2FS();
3891
3892 yyrc = WinGetPS(a);
3893 SetFS(sel);
3894
3895 return yyrc;
3896}
3897
3898#undef WinGetPS
3899#define WinGetPS _WinGetPS
3900
3901inline HAB _WinInitialize(ULONG a)
3902{
3903 HAB yyrc;
3904 USHORT sel = RestoreOS2FS();
3905
3906 yyrc = WinInitialize(a);
3907 SetFS(sel);
3908
3909 return yyrc;
3910}
3911
3912#undef WinInitialize
3913#define WinInitialize _WinInitialize
3914
3915inline BOOL _WinIsWindowShowing(HWND a)
3916{
3917 BOOL yyrc;
3918 USHORT sel = RestoreOS2FS();
3919
3920 yyrc = WinIsWindowShowing(a);
3921 SetFS(sel);
3922
3923 return yyrc;
3924}
3925
3926#undef WinIsWindowShowing
3927#define WinIsWindowShowing _WinIsWindowShowing
3928
3929inline HDC _WinOpenWindowDC(HWND a)
3930{
3931 HDC yyrc;
3932 USHORT sel = RestoreOS2FS();
3933
3934 yyrc = WinOpenWindowDC(a);
3935 SetFS(sel);
3936
3937 return yyrc;
3938}
3939
3940#undef WinOpenWindowDC
3941#define WinOpenWindowDC _WinOpenWindowDC
3942
3943inline HAB _WinQueryAnchorBlock(HWND a)
3944{
3945 HAB yyrc;
3946 USHORT sel = RestoreOS2FS();
3947
3948 yyrc = WinQueryAnchorBlock(a);
3949 SetFS(sel);
3950
3951 return yyrc;
3952}
3953
3954#undef WinQueryAnchorBlock
3955#define WinQueryAnchorBlock _WinQueryAnchorBlock
3956
3957inline ULONG _WinQueryVersion(HAB a)
3958{
3959 ULONG yyrc;
3960 USHORT sel = RestoreOS2FS();
3961
3962 yyrc = WinQueryVersion(a);
3963 SetFS(sel);
3964
3965 return yyrc;
3966}
3967
3968#undef WinQueryVersion
3969#define WinQueryVersion _WinQueryVersion
3970
3971inline BOOL _WinQueryWindowRect(HWND a, PRECTL b)
3972{
3973 BOOL yyrc;
3974 USHORT sel = RestoreOS2FS();
3975
3976 yyrc = WinQueryWindowRect(a, b);
3977 SetFS(sel);
3978
3979 return yyrc;
3980}
3981
3982#undef WinQueryWindowRect
3983#define WinQueryWindowRect _WinQueryWindowRect
3984
3985inline BOOL _WinRegisterClass(HAB a, PCSZ b, PFNWP c, ULONG d, ULONG e)
3986{
3987 BOOL yyrc;
3988 USHORT sel = RestoreOS2FS();
3989
3990 yyrc = WinRegisterClass(a, b, c, d, e);
3991 SetFS(sel);
3992
3993 return yyrc;
3994}
3995
3996#undef WinRegisterClass
3997#define WinRegisterClass _WinRegisterClass
3998
3999inline BOOL _WinReleasePS(HPS a)
4000{
4001 BOOL yyrc;
4002 USHORT sel = RestoreOS2FS();
4003
4004 yyrc = WinReleasePS(a);
4005 SetFS(sel);
4006
4007 return yyrc;
4008}
4009
4010#undef WinReleasePS
4011#define WinReleasePS _WinReleasePS
4012
4013inline LONG _WinScrollWindow(HWND a, LONG b, LONG c, PRECTL d, PRECTL e, HRGN f, PRECTL g, ULONG h)
4014{
4015 LONG yyrc;
4016 USHORT sel = RestoreOS2FS();
4017
4018 yyrc = WinScrollWindow(a, b, c, d, e, f, g, h);
4019 SetFS(sel);
4020
4021 return yyrc;
4022}
4023
4024#undef WinScrollWindow
4025#define WinScrollWindow _WinScrollWindow
4026
4027inline BOOL _WinSetActiveWindow(HWND a, HWND b)
4028{
4029 BOOL yyrc;
4030 USHORT sel = RestoreOS2FS();
4031
4032 yyrc = WinSetActiveWindow(a, b);
4033 SetFS(sel);
4034
4035 return yyrc;
4036}
4037
4038#undef WinSetActiveWindow
4039#define WinSetActiveWindow _WinSetActiveWindow
4040
4041inline BOOL _WinShowWindow(HWND a, BOOL b)
4042{
4043 BOOL yyrc;
4044 USHORT sel = RestoreOS2FS();
4045
4046 yyrc = WinShowWindow(a, b);
4047 SetFS(sel);
4048
4049 return yyrc;
4050}
4051
4052#undef WinShowWindow
4053#define WinShowWindow _WinShowWindow
4054
4055inline BOOL _WinTerminate(HAB a)
4056{
4057 BOOL yyrc;
4058 USHORT sel = RestoreOS2FS();
4059
4060 yyrc = WinTerminate(a);
4061 SetFS(sel);
4062
4063 return yyrc;
4064}
4065
4066#undef WinTerminate
4067#define WinTerminate _WinTerminate
4068
4069#endif
4070#ifdef INCL_WINWINDOWMGR
4071inline HENUM _WinBeginEnumWindows(HWND a)
4072{
4073 HENUM yyrc;
4074 USHORT sel = RestoreOS2FS();
4075
4076 yyrc = WinBeginEnumWindows(a);
4077 SetFS(sel);
4078
4079 return yyrc;
4080}
4081
4082#undef WinBeginEnumWindows
4083#define WinBeginEnumWindows _WinBeginEnumWindows
4084
4085inline BOOL _WinEndEnumWindows(HENUM a)
4086{
4087 BOOL yyrc;
4088 USHORT sel = RestoreOS2FS();
4089
4090 yyrc = WinEndEnumWindows(a);
4091 SetFS(sel);
4092
4093 return yyrc;
4094}
4095
4096#undef WinEndEnumWindows
4097#define WinEndEnumWindows _WinEndEnumWindows
4098
4099inline LONG _WinExcludeUpdateRegion(HPS a, HWND b)
4100{
4101 LONG yyrc;
4102 USHORT sel = RestoreOS2FS();
4103
4104 yyrc = WinExcludeUpdateRegion(a, b);
4105 SetFS(sel);
4106
4107 return yyrc;
4108}
4109
4110#undef WinExcludeUpdateRegion
4111#define WinExcludeUpdateRegion _WinExcludeUpdateRegion
4112
4113inline HWND _WinGetNextWindow(HENUM a)
4114{
4115 HWND yyrc;
4116 USHORT sel = RestoreOS2FS();
4117
4118 yyrc = WinGetNextWindow(a);
4119 SetFS(sel);
4120
4121 return yyrc;
4122}
4123
4124#undef WinGetNextWindow
4125#define WinGetNextWindow _WinGetNextWindow
4126
4127inline HPS _WinGetScreenPS(HWND a)
4128{
4129 HPS yyrc;
4130 USHORT sel = RestoreOS2FS();
4131
4132 yyrc = WinGetScreenPS(a);
4133 SetFS(sel);
4134
4135 return yyrc;
4136}
4137
4138#undef WinGetScreenPS
4139#define WinGetScreenPS _WinGetScreenPS
4140
4141inline BOOL _WinIsThreadActive(HAB a)
4142{
4143 BOOL yyrc;
4144 USHORT sel = RestoreOS2FS();
4145
4146 yyrc = WinIsThreadActive(a);
4147 SetFS(sel);
4148
4149 return yyrc;
4150}
4151
4152#undef WinIsThreadActive
4153#define WinIsThreadActive _WinIsThreadActive
4154
4155inline BOOL _WinLockVisRegions(HWND a, BOOL b)
4156{
4157 BOOL yyrc;
4158 USHORT sel = RestoreOS2FS();
4159
4160 yyrc = WinLockVisRegions(a, b);
4161 SetFS(sel);
4162
4163 return yyrc;
4164}
4165
4166#undef WinLockVisRegions
4167#define WinLockVisRegions _WinLockVisRegions
4168
4169inline BOOL _WinLockWindowUpdate(HWND a, HWND b)
4170{
4171 BOOL yyrc;
4172 USHORT sel = RestoreOS2FS();
4173
4174 yyrc = WinLockWindowUpdate(a, b);
4175 SetFS(sel);
4176
4177 return yyrc;
4178}
4179
4180#undef WinLockWindowUpdate
4181#define WinLockWindowUpdate _WinLockWindowUpdate
4182
4183inline BOOL _WinMapWindowPoints(HWND a, HWND b, PPOINTL c, LONG d)
4184{
4185 BOOL yyrc;
4186 USHORT sel = RestoreOS2FS();
4187
4188 yyrc = WinMapWindowPoints(a, b, c, d);
4189 SetFS(sel);
4190
4191 return yyrc;
4192}
4193
4194#undef WinMapWindowPoints
4195#define WinMapWindowPoints _WinMapWindowPoints
4196
4197inline HWND _WinQueryActiveWindow(HWND a)
4198{
4199 HWND yyrc;
4200 USHORT sel = RestoreOS2FS();
4201
4202 yyrc = WinQueryActiveWindow(a);
4203 SetFS(sel);
4204
4205 return yyrc;
4206}
4207
4208#undef WinQueryActiveWindow
4209#define WinQueryActiveWindow _WinQueryActiveWindow
4210
4211inline BOOL _WinQueryClassInfo(HAB a, PCSZ b, PCLASSINFO c)
4212{
4213 BOOL yyrc;
4214 USHORT sel = RestoreOS2FS();
4215
4216 yyrc = WinQueryClassInfo(a, b, c);
4217 SetFS(sel);
4218
4219 return yyrc;
4220}
4221
4222#undef WinQueryClassInfo
4223#define WinQueryClassInfo _WinQueryClassInfo
4224
4225inline LONG _WinQueryClassName(HWND a, LONG b, PCH c)
4226{
4227 LONG yyrc;
4228 USHORT sel = RestoreOS2FS();
4229
4230 yyrc = WinQueryClassName(a, b, c);
4231 SetFS(sel);
4232
4233 return yyrc;
4234}
4235
4236#undef WinQueryClassName
4237#define WinQueryClassName _WinQueryClassName
4238
4239inline BOOL _WinQueryUpdateRect(HWND a, PRECTL b)
4240{
4241 BOOL yyrc;
4242 USHORT sel = RestoreOS2FS();
4243
4244 yyrc = WinQueryUpdateRect(a, b);
4245 SetFS(sel);
4246
4247 return yyrc;
4248}
4249
4250#undef WinQueryUpdateRect
4251#define WinQueryUpdateRect _WinQueryUpdateRect
4252
4253inline LONG _WinQueryUpdateRegion(HWND a, HRGN b)
4254{
4255 LONG yyrc;
4256 USHORT sel = RestoreOS2FS();
4257
4258 yyrc = WinQueryUpdateRegion(a, b);
4259 SetFS(sel);
4260
4261 return yyrc;
4262}
4263
4264#undef WinQueryUpdateRegion
4265#define WinQueryUpdateRegion _WinQueryUpdateRegion
4266
4267inline HWND _WinQuerySysModalWindow(HWND a)
4268{
4269 HWND yyrc;
4270 USHORT sel = RestoreOS2FS();
4271
4272 yyrc = WinQuerySysModalWindow(a);
4273 SetFS(sel);
4274
4275 return yyrc;
4276}
4277
4278#undef WinQuerySysModalWindow
4279#define WinQuerySysModalWindow _WinQuerySysModalWindow
4280
4281inline HDC _WinQueryWindowDC(HWND a)
4282{
4283 HDC yyrc;
4284 USHORT sel = RestoreOS2FS();
4285
4286 yyrc = WinQueryWindowDC(a);
4287 SetFS(sel);
4288
4289 return yyrc;
4290}
4291
4292#undef WinQueryWindowDC
4293#define WinQueryWindowDC _WinQueryWindowDC
4294
4295inline PVOID _WinQueryWindowPtr(HWND a, LONG b)
4296{
4297 PVOID yyrc;
4298 USHORT sel = RestoreOS2FS();
4299
4300 yyrc = WinQueryWindowPtr(a, b);
4301 SetFS(sel);
4302
4303 return yyrc;
4304}
4305
4306#undef WinQueryWindowPtr
4307#define WinQueryWindowPtr _WinQueryWindowPtr
4308
4309inline ULONG _WinQueryWindowULong(HWND a, LONG b)
4310{
4311 ULONG yyrc;
4312 USHORT sel = RestoreOS2FS();
4313
4314 yyrc = WinQueryWindowULong(a, b);
4315 SetFS(sel);
4316
4317 return yyrc;
4318}
4319
4320#undef WinQueryWindowULong
4321#define WinQueryWindowULong _WinQueryWindowULong
4322
4323inline USHORT _WinQueryWindowUShort(HWND a, LONG b)
4324{
4325 USHORT yyrc;
4326 USHORT sel = RestoreOS2FS();
4327
4328 yyrc = WinQueryWindowUShort(a, b);
4329 SetFS(sel);
4330
4331 return yyrc;
4332}
4333
4334#undef WinQueryWindowUShort
4335#define WinQueryWindowUShort _WinQueryWindowUShort
4336
4337inline BOOL _WinSetSysModalWindow(HWND a, HWND b)
4338{
4339 BOOL yyrc;
4340 USHORT sel = RestoreOS2FS();
4341
4342 yyrc = WinSetSysModalWindow(a, b);
4343 SetFS(sel);
4344
4345 return yyrc;
4346}
4347
4348#undef WinSetSysModalWindow
4349#define WinSetSysModalWindow _WinSetSysModalWindow
4350
4351inline BOOL _WinSetWindowBits(HWND a, LONG b, ULONG c, ULONG d)
4352{
4353 BOOL yyrc;
4354 USHORT sel = RestoreOS2FS();
4355
4356 yyrc = WinSetWindowBits(a, b, c, d);
4357 SetFS(sel);
4358
4359 return yyrc;
4360}
4361
4362#undef WinSetWindowBits
4363#define WinSetWindowBits _WinSetWindowBits
4364
4365inline BOOL _WinSetWindowPtr(HWND a, LONG b, PVOID c)
4366{
4367 BOOL yyrc;
4368 USHORT sel = RestoreOS2FS();
4369
4370 yyrc = WinSetWindowPtr(a, b, c);
4371 SetFS(sel);
4372
4373 return yyrc;
4374}
4375
4376#undef WinSetWindowPtr
4377#define WinSetWindowPtr _WinSetWindowPtr
4378
4379inline BOOL _WinSetWindowULong(HWND a, LONG b, ULONG c)
4380{
4381 BOOL yyrc;
4382 USHORT sel = RestoreOS2FS();
4383
4384 yyrc = WinSetWindowULong(a, b, c);
4385 SetFS(sel);
4386
4387 return yyrc;
4388}
4389
4390#undef WinSetWindowULong
4391#define WinSetWindowULong _WinSetWindowULong
4392
4393inline BOOL _WinSetWindowUShort(HWND a, LONG b, USHORT c)
4394{
4395 BOOL yyrc;
4396 USHORT sel = RestoreOS2FS();
4397
4398 yyrc = WinSetWindowUShort(a, b, c);
4399 SetFS(sel);
4400
4401 return yyrc;
4402}
4403
4404#undef WinSetWindowUShort
4405#define WinSetWindowUShort _WinSetWindowUShort
4406
4407inline PFNWP _WinSubclassWindow(HWND a, PFNWP b)
4408{
4409 PFNWP yyrc;
4410 USHORT sel = RestoreOS2FS();
4411
4412 yyrc = WinSubclassWindow(a, b);
4413 SetFS(sel);
4414
4415 return yyrc;
4416}
4417
4418#undef WinSubclassWindow
4419#define WinSubclassWindow _WinSubclassWindow
4420
4421inline BOOL _WinValidateRect(HWND a, PRECTL b, BOOL c)
4422{
4423 BOOL yyrc;
4424 USHORT sel = RestoreOS2FS();
4425
4426 yyrc = WinValidateRect(a, b, c);
4427 SetFS(sel);
4428
4429 return yyrc;
4430}
4431
4432#undef WinValidateRect
4433#define WinValidateRect _WinValidateRect
4434
4435inline BOOL _WinValidateRegion(HWND a, HRGN b, BOOL c)
4436{
4437 BOOL yyrc;
4438 USHORT sel = RestoreOS2FS();
4439
4440 yyrc = WinValidateRegion(a, b, c);
4441 SetFS(sel);
4442
4443 return yyrc;
4444}
4445
4446#undef WinValidateRegion
4447#define WinValidateRegion _WinValidateRegion
4448
4449inline HWND _WinWindowFromDC(HDC a)
4450{
4451 HWND yyrc;
4452 USHORT sel = RestoreOS2FS();
4453
4454 yyrc = WinWindowFromDC(a);
4455 SetFS(sel);
4456
4457 return yyrc;
4458}
4459
4460#undef WinWindowFromDC
4461#define WinWindowFromDC _WinWindowFromDC
4462
4463inline HWND _WinWindowFromPoint(HWND a, PPOINTL b, BOOL c)
4464{
4465 HWND yyrc;
4466 USHORT sel = RestoreOS2FS();
4467
4468 yyrc = WinWindowFromPoint(a, b, c);
4469 SetFS(sel);
4470
4471 return yyrc;
4472}
4473
4474#undef WinWindowFromPoint
4475#define WinWindowFromPoint _WinWindowFromPoint
4476
4477#endif
4478#ifdef INCL_WINACCELERATORS
4479inline ULONG _WinCopyAccelTable(HACCEL a, PACCELTABLE b, ULONG c)
4480{
4481 ULONG yyrc;
4482 USHORT sel = RestoreOS2FS();
4483
4484 yyrc = WinCopyAccelTable(a, b, c);
4485 SetFS(sel);
4486
4487 return yyrc;
4488}
4489
4490#undef WinCopyAccelTable
4491#define WinCopyAccelTable _WinCopyAccelTable
4492
4493inline HACCEL _WinCreateAccelTable(HAB a, PACCELTABLE b)
4494{
4495 HACCEL yyrc;
4496 USHORT sel = RestoreOS2FS();
4497
4498 yyrc = WinCreateAccelTable(a, b);
4499 SetFS(sel);
4500
4501 return yyrc;
4502}
4503
4504#undef WinCreateAccelTable
4505#define WinCreateAccelTable _WinCreateAccelTable
4506
4507inline BOOL _WinDestroyAccelTable(HACCEL a)
4508{
4509 BOOL yyrc;
4510 USHORT sel = RestoreOS2FS();
4511
4512 yyrc = WinDestroyAccelTable(a);
4513 SetFS(sel);
4514
4515 return yyrc;
4516}
4517
4518#undef WinDestroyAccelTable
4519#define WinDestroyAccelTable _WinDestroyAccelTable
4520
4521inline HACCEL _WinLoadAccelTable(HAB a, HMODULE b, ULONG c)
4522{
4523 HACCEL yyrc;
4524 USHORT sel = RestoreOS2FS();
4525
4526 yyrc = WinLoadAccelTable(a, b, c);
4527 SetFS(sel);
4528
4529 return yyrc;
4530}
4531
4532#undef WinLoadAccelTable
4533#define WinLoadAccelTable _WinLoadAccelTable
4534
4535inline HACCEL _WinQueryAccelTable(HAB a, HWND b)
4536{
4537 HACCEL yyrc;
4538 USHORT sel = RestoreOS2FS();
4539
4540 yyrc = WinQueryAccelTable(a, b);
4541 SetFS(sel);
4542
4543 return yyrc;
4544}
4545
4546#undef WinQueryAccelTable
4547#define WinQueryAccelTable _WinQueryAccelTable
4548
4549inline BOOL _WinSetAccelTable(HAB a, HACCEL b, HWND c)
4550{
4551 BOOL yyrc;
4552 USHORT sel = RestoreOS2FS();
4553
4554 yyrc = WinSetAccelTable(a, b, c);
4555 SetFS(sel);
4556
4557 return yyrc;
4558}
4559
4560#undef WinSetAccelTable
4561#define WinSetAccelTable _WinSetAccelTable
4562
4563inline BOOL _WinTranslateAccel(HAB a, HWND b, HACCEL c, PQMSG d)
4564{
4565 BOOL yyrc;
4566 USHORT sel = RestoreOS2FS();
4567
4568 yyrc = WinTranslateAccel(a, b, c, d);
4569 SetFS(sel);
4570
4571 return yyrc;
4572}
4573
4574#undef WinTranslateAccel
4575#define WinTranslateAccel _WinTranslateAccel
4576
4577#endif
4578#ifdef INCL_WINATOM
4579inline ATOM _WinAddAtom(HATOMTBL a, PCSZ b)
4580{
4581 ATOM yyrc;
4582 USHORT sel = RestoreOS2FS();
4583
4584 yyrc = WinAddAtom(a, b);
4585 SetFS(sel);
4586
4587 return yyrc;
4588}
4589
4590#undef WinAddAtom
4591#define WinAddAtom _WinAddAtom
4592
4593inline HATOMTBL _WinCreateAtomTable(ULONG a, ULONG b)
4594{
4595 HATOMTBL yyrc;
4596 USHORT sel = RestoreOS2FS();
4597
4598 yyrc = WinCreateAtomTable(a, b);
4599 SetFS(sel);
4600
4601 return yyrc;
4602}
4603
4604#undef WinCreateAtomTable
4605#define WinCreateAtomTable _WinCreateAtomTable
4606
4607inline ATOM _WinDeleteAtom(HATOMTBL a, ATOM b)
4608{
4609 ATOM yyrc;
4610 USHORT sel = RestoreOS2FS();
4611
4612 yyrc = WinDeleteAtom(a, b);
4613 SetFS(sel);
4614
4615 return yyrc;
4616}
4617
4618#undef WinDeleteAtom
4619#define WinDeleteAtom _WinDeleteAtom
4620
4621inline HATOMTBL _WinDestroyAtomTable(HATOMTBL a)
4622{
4623 HATOMTBL yyrc;
4624 USHORT sel = RestoreOS2FS();
4625
4626 yyrc = WinDestroyAtomTable(a);
4627 SetFS(sel);
4628
4629 return yyrc;
4630}
4631
4632#undef WinDestroyAtomTable
4633#define WinDestroyAtomTable _WinDestroyAtomTable
4634
4635inline ATOM _WinFindAtom(HATOMTBL a, PCSZ b)
4636{
4637 ATOM yyrc;
4638 USHORT sel = RestoreOS2FS();
4639
4640 yyrc = WinFindAtom(a, b);
4641 SetFS(sel);
4642
4643 return yyrc;
4644}
4645
4646#undef WinFindAtom
4647#define WinFindAtom _WinFindAtom
4648
4649inline ULONG _WinQueryAtomLength(HATOMTBL a, ATOM b)
4650{
4651 ULONG yyrc;
4652 USHORT sel = RestoreOS2FS();
4653
4654 yyrc = WinQueryAtomLength(a, b);
4655 SetFS(sel);
4656
4657 return yyrc;
4658}
4659
4660#undef WinQueryAtomLength
4661#define WinQueryAtomLength _WinQueryAtomLength
4662
4663inline ULONG _WinQueryAtomName(HATOMTBL a, ATOM b, PSZ c, ULONG d)
4664{
4665 ULONG yyrc;
4666 USHORT sel = RestoreOS2FS();
4667
4668 yyrc = WinQueryAtomName(a, b, c, d);
4669 SetFS(sel);
4670
4671 return yyrc;
4672}
4673
4674#undef WinQueryAtomName
4675#define WinQueryAtomName _WinQueryAtomName
4676
4677inline ULONG _WinQueryAtomUsage(HATOMTBL a, ATOM b)
4678{
4679 ULONG yyrc;
4680 USHORT sel = RestoreOS2FS();
4681
4682 yyrc = WinQueryAtomUsage(a, b);
4683 SetFS(sel);
4684
4685 return yyrc;
4686}
4687
4688#undef WinQueryAtomUsage
4689#define WinQueryAtomUsage _WinQueryAtomUsage
4690
4691inline HATOMTBL _WinQuerySystemAtomTable()
4692{
4693 HATOMTBL yyrc;
4694 USHORT sel = RestoreOS2FS();
4695
4696 yyrc = WinQuerySystemAtomTable();
4697 SetFS(sel);
4698
4699 return yyrc;
4700}
4701
4702#undef WinQuerySystemAtomTable
4703#define WinQuerySystemAtomTable _WinQuerySystemAtomTable
4704
4705#endif
4706#ifdef INCL_WINCLIPBOARD
4707inline BOOL _WinCloseClipbrd(HAB a)
4708{
4709 BOOL yyrc;
4710 USHORT sel = RestoreOS2FS();
4711
4712 yyrc = WinCloseClipbrd(a);
4713 SetFS(sel);
4714
4715 return yyrc;
4716}
4717
4718#undef WinCloseClipbrd
4719#define WinCloseClipbrd _WinCloseClipbrd
4720
4721inline BOOL _WinEmptyClipbrd(HAB a)
4722{
4723 BOOL yyrc;
4724 USHORT sel = RestoreOS2FS();
4725
4726 yyrc = WinEmptyClipbrd(a);
4727 SetFS(sel);
4728
4729 return yyrc;
4730}
4731
4732#undef WinEmptyClipbrd
4733#define WinEmptyClipbrd _WinEmptyClipbrd
4734
4735inline ULONG _WinEnumClipbrdFmts(HAB a, ULONG b)
4736{
4737 ULONG yyrc;
4738 USHORT sel = RestoreOS2FS();
4739
4740 yyrc = WinEnumClipbrdFmts(a, b);
4741 SetFS(sel);
4742
4743 return yyrc;
4744}
4745
4746#undef WinEnumClipbrdFmts
4747#define WinEnumClipbrdFmts _WinEnumClipbrdFmts
4748
4749inline BOOL _WinOpenClipbrd(HAB a)
4750{
4751 BOOL yyrc;
4752 USHORT sel = RestoreOS2FS();
4753
4754 yyrc = WinOpenClipbrd(a);
4755 SetFS(sel);
4756
4757 return yyrc;
4758}
4759
4760#undef WinOpenClipbrd
4761#define WinOpenClipbrd _WinOpenClipbrd
4762
4763inline ULONG _WinQueryClipbrdData(HAB a, ULONG b)
4764{
4765 ULONG yyrc;
4766 USHORT sel = RestoreOS2FS();
4767
4768 yyrc = WinQueryClipbrdData(a, b);
4769 SetFS(sel);
4770
4771 return yyrc;
4772}
4773
4774#undef WinQueryClipbrdData
4775#define WinQueryClipbrdData _WinQueryClipbrdData
4776
4777inline BOOL _WinQueryClipbrdFmtInfo(HAB a, ULONG b, PULONG c)
4778{
4779 BOOL yyrc;
4780 USHORT sel = RestoreOS2FS();
4781
4782 yyrc = WinQueryClipbrdFmtInfo(a, b, c);
4783 SetFS(sel);
4784
4785 return yyrc;
4786}
4787
4788#undef WinQueryClipbrdFmtInfo
4789#define WinQueryClipbrdFmtInfo _WinQueryClipbrdFmtInfo
4790
4791inline HWND _WinQueryClipbrdOwner(HAB a)
4792{
4793 HWND yyrc;
4794 USHORT sel = RestoreOS2FS();
4795
4796 yyrc = WinQueryClipbrdOwner(a);
4797 SetFS(sel);
4798
4799 return yyrc;
4800}
4801
4802#undef WinQueryClipbrdOwner
4803#define WinQueryClipbrdOwner _WinQueryClipbrdOwner
4804
4805inline HWND _WinQueryClipbrdViewer(HAB a)
4806{
4807 HWND yyrc;
4808 USHORT sel = RestoreOS2FS();
4809
4810 yyrc = WinQueryClipbrdViewer(a);
4811 SetFS(sel);
4812
4813 return yyrc;
4814}
4815
4816#undef WinQueryClipbrdViewer
4817#define WinQueryClipbrdViewer _WinQueryClipbrdViewer
4818
4819inline BOOL _WinSetClipbrdData(HAB a, ULONG b, ULONG c, ULONG d)
4820{
4821 BOOL yyrc;
4822 USHORT sel = RestoreOS2FS();
4823
4824 yyrc = WinSetClipbrdData(a, b, c, d);
4825 SetFS(sel);
4826
4827 return yyrc;
4828}
4829
4830#undef WinSetClipbrdData
4831#define WinSetClipbrdData _WinSetClipbrdData
4832
4833inline BOOL _WinSetClipbrdOwner(HAB a, HWND b)
4834{
4835 BOOL yyrc;
4836 USHORT sel = RestoreOS2FS();
4837
4838 yyrc = WinSetClipbrdOwner(a, b);
4839 SetFS(sel);
4840
4841 return yyrc;
4842}
4843
4844#undef WinSetClipbrdOwner
4845#define WinSetClipbrdOwner _WinSetClipbrdOwner
4846
4847inline BOOL _WinSetClipbrdViewer(HAB a, HWND b)
4848{
4849 BOOL yyrc;
4850 USHORT sel = RestoreOS2FS();
4851
4852 yyrc = WinSetClipbrdViewer(a, b);
4853 SetFS(sel);
4854
4855 return yyrc;
4856}
4857
4858#undef WinSetClipbrdViewer
4859#define WinSetClipbrdViewer _WinSetClipbrdViewer
4860
4861#endif
4862#ifdef INCL_WINDDE
4863inline BOOL _WinDdeInitiate(HWND a, PCSZ b, PCSZ c, PCONVCONTEXT d)
4864{
4865 BOOL yyrc;
4866 USHORT sel = RestoreOS2FS();
4867
4868 yyrc = WinDdeInitiate(a, b, c, d);
4869 SetFS(sel);
4870
4871 return yyrc;
4872}
4873
4874#undef WinDdeInitiate
4875#define WinDdeInitiate _WinDdeInitiate
4876
4877inline BOOL _WinDdePostMsg(HWND a, HWND b, ULONG c, PDDESTRUCT d, ULONG e)
4878{
4879 BOOL yyrc;
4880 USHORT sel = RestoreOS2FS();
4881
4882 yyrc = WinDdePostMsg(a, b, c, d, e);
4883 SetFS(sel);
4884
4885 return yyrc;
4886}
4887
4888#undef WinDdePostMsg
4889#define WinDdePostMsg _WinDdePostMsg
4890
4891inline MRESULT _WinDdeRespond(HWND a, HWND b, PCSZ c, PCSZ d, PCONVCONTEXT e)
4892{
4893 MRESULT yyrc;
4894 USHORT sel = RestoreOS2FS();
4895
4896 yyrc = WinDdeRespond(a, b, c, d, e);
4897 SetFS(sel);
4898
4899 return yyrc;
4900}
4901
4902#undef WinDdeRespond
4903#define WinDdeRespond _WinDdeRespond
4904
4905#endif
4906#ifdef INCL_WINCOUNTRY
4907inline ULONG _WinCompareStrings(HAB a, ULONG b, ULONG c, PCSZ d, PCSZ e, ULONG f)
4908{
4909 ULONG yyrc;
4910 USHORT sel = RestoreOS2FS();
4911
4912 yyrc = WinCompareStrings(a, b, c, d, e, f);
4913 SetFS(sel);
4914
4915 return yyrc;
4916}
4917
4918#undef WinCompareStrings
4919#define WinCompareStrings _WinCompareStrings
4920
4921inline UCHAR _WinCpTranslateChar(HAB a, ULONG b, UCHAR c, ULONG d)
4922{
4923 UCHAR yyrc;
4924 USHORT sel = RestoreOS2FS();
4925
4926 yyrc = WinCpTranslateChar(a, b, c, d);
4927 SetFS(sel);
4928
4929 return yyrc;
4930}
4931
4932#undef WinCpTranslateChar
4933#define WinCpTranslateChar _WinCpTranslateChar
4934
4935inline BOOL _WinCpTranslateString(HAB a, ULONG b, PCSZ c, ULONG d, ULONG e, PSZ f)
4936{
4937 BOOL yyrc;
4938 USHORT sel = RestoreOS2FS();
4939
4940 yyrc = WinCpTranslateString(a, b, c, d, e, f);
4941 SetFS(sel);
4942
4943 return yyrc;
4944}
4945
4946#undef WinCpTranslateString
4947#define WinCpTranslateString _WinCpTranslateString
4948
4949inline PCSZ _WinNextChar(HAB a, ULONG b, ULONG c, PCSZ d)
4950{
4951 PCSZ yyrc;
4952 USHORT sel = RestoreOS2FS();
4953
4954 yyrc = WinNextChar(a, b, c, d);
4955 SetFS(sel);
4956
4957 return yyrc;
4958}
4959
4960#undef WinNextChar
4961#define WinNextChar _WinNextChar
4962
4963inline PCSZ _WinPrevChar(HAB a, ULONG b, ULONG c, PCSZ d, PCSZ e)
4964{
4965 PCSZ yyrc;
4966 USHORT sel = RestoreOS2FS();
4967
4968 yyrc = WinPrevChar(a, b, c, d, e);
4969 SetFS(sel);
4970
4971 return yyrc;
4972}
4973
4974#undef WinPrevChar
4975#define WinPrevChar _WinPrevChar
4976
4977inline ULONG _WinQueryCp(HMQ a)
4978{
4979 ULONG yyrc;
4980 USHORT sel = RestoreOS2FS();
4981
4982 yyrc = WinQueryCp(a);
4983 SetFS(sel);
4984
4985 return yyrc;
4986}
4987
4988#undef WinQueryCp
4989#define WinQueryCp _WinQueryCp
4990
4991inline ULONG _WinQueryCpList(HAB a, ULONG b, PULONG c)
4992{
4993 ULONG yyrc;
4994 USHORT sel = RestoreOS2FS();
4995
4996 yyrc = WinQueryCpList(a, b, c);
4997 SetFS(sel);
4998
4999 return yyrc;
5000}
5001
5002#undef WinQueryCpList
5003#define WinQueryCpList _WinQueryCpList
5004
5005inline BOOL _WinSetCp(HMQ a, ULONG b)
5006{
5007 BOOL yyrc;
5008 USHORT sel = RestoreOS2FS();
5009
5010 yyrc = WinSetCp(a, b);
5011 SetFS(sel);
5012
5013 return yyrc;
5014}
5015
5016#undef WinSetCp
5017#define WinSetCp _WinSetCp
5018
5019inline ULONG _WinUpper(HAB a, ULONG b, ULONG c, PSZ d)
5020{
5021 ULONG yyrc;
5022 USHORT sel = RestoreOS2FS();
5023
5024 yyrc = WinUpper(a, b, c, d);
5025 SetFS(sel);
5026
5027 return yyrc;
5028}
5029
5030#undef WinUpper
5031#define WinUpper _WinUpper
5032
5033inline ULONG _WinUpperChar(HAB a, ULONG b, ULONG c, ULONG d)
5034{
5035 ULONG yyrc;
5036 USHORT sel = RestoreOS2FS();
5037
5038 yyrc = WinUpperChar(a, b, c, d);
5039 SetFS(sel);
5040
5041 return yyrc;
5042}
5043
5044#undef WinUpperChar
5045#define WinUpperChar _WinUpperChar
5046
5047#endif
5048#ifdef INCL_WINCURSORS
5049inline BOOL _WinCreateCursor(HWND a, LONG b, LONG c, LONG d, LONG e, ULONG f, PRECTL g)
5050{
5051 BOOL yyrc;
5052 USHORT sel = RestoreOS2FS();
5053
5054 yyrc = WinCreateCursor(a, b, c, d, e, f, g);
5055 SetFS(sel);
5056
5057 return yyrc;
5058}
5059
5060#undef WinCreateCursor
5061#define WinCreateCursor _WinCreateCursor
5062
5063inline BOOL _WinDestroyCursor(HWND a)
5064{
5065 BOOL yyrc;
5066 USHORT sel = RestoreOS2FS();
5067
5068 yyrc = WinDestroyCursor(a);
5069 SetFS(sel);
5070
5071 return yyrc;
5072}
5073
5074#undef WinDestroyCursor
5075#define WinDestroyCursor _WinDestroyCursor
5076
5077inline BOOL _WinShowCursor(HWND a, BOOL b)
5078{
5079 BOOL yyrc;
5080 USHORT sel = RestoreOS2FS();
5081
5082 yyrc = WinShowCursor(a, b);
5083 SetFS(sel);
5084
5085 return yyrc;
5086}
5087
5088#undef WinShowCursor
5089#define WinShowCursor _WinShowCursor
5090
5091inline BOOL _WinQueryCursorInfo(HWND a, PCURSORINFO b)
5092{
5093 BOOL yyrc;
5094 USHORT sel = RestoreOS2FS();
5095
5096 yyrc = WinQueryCursorInfo(a, b);
5097 SetFS(sel);
5098
5099 return yyrc;
5100}
5101
5102#undef WinQueryCursorInfo
5103#define WinQueryCursorInfo _WinQueryCursorInfo
5104
5105#endif
5106#ifdef INCL_WINDESKTOP
5107inline BOOL _WinQueryDesktopBkgnd(HWND a, PDESKTOP b)
5108{
5109 BOOL yyrc;
5110 USHORT sel = RestoreOS2FS();
5111
5112 yyrc = WinQueryDesktopBkgnd(a, b);
5113 SetFS(sel);
5114
5115 return yyrc;
5116}
5117
5118#undef WinQueryDesktopBkgnd
5119#define WinQueryDesktopBkgnd _WinQueryDesktopBkgnd
5120
5121inline HBITMAP _WinSetDesktopBkgnd(HWND a, PDESKTOP b)
5122{
5123 HBITMAP yyrc;
5124 USHORT sel = RestoreOS2FS();
5125
5126 yyrc = WinSetDesktopBkgnd(a, b);
5127 SetFS(sel);
5128
5129 return yyrc;
5130}
5131
5132#undef WinSetDesktopBkgnd
5133#define WinSetDesktopBkgnd _WinSetDesktopBkgnd
5134
5135#endif
5136#ifdef INCL_WINDIALOGS
5137inline BOOL _WinAlarm(HWND a, ULONG b)
5138{
5139 BOOL yyrc;
5140 USHORT sel = RestoreOS2FS();
5141
5142 yyrc = WinAlarm(a, b);
5143 SetFS(sel);
5144
5145 return yyrc;
5146}
5147
5148#undef WinAlarm
5149#define WinAlarm _WinAlarm
5150
5151inline MRESULT _WinDefDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
5152{
5153 MRESULT yyrc;
5154 USHORT sel = RestoreOS2FS();
5155
5156 yyrc = WinDefDlgProc(a, b, c, d);
5157 SetFS(sel);
5158
5159 return yyrc;
5160}
5161
5162#undef WinDefDlgProc
5163#define WinDefDlgProc _WinDefDlgProc
5164
5165inline BOOL _WinDismissDlg(HWND a, ULONG b)
5166{
5167 BOOL yyrc;
5168 USHORT sel = RestoreOS2FS();
5169
5170 yyrc = WinDismissDlg(a, b);
5171 SetFS(sel);
5172
5173 return yyrc;
5174}
5175
5176#undef WinDismissDlg
5177#define WinDismissDlg _WinDismissDlg
5178
5179inline ULONG _WinDlgBox(HWND a, HWND b, PFNWP c, HMODULE d, ULONG e, PVOID f)
5180{
5181 ULONG yyrc;
5182 USHORT sel = RestoreOS2FS();
5183
5184 yyrc = WinDlgBox(a, b, c, d, e, f);
5185 SetFS(sel);
5186
5187 return yyrc;
5188}
5189
5190#undef WinDlgBox
5191#define WinDlgBox _WinDlgBox
5192
5193inline BOOL _WinGetDlgMsg(HWND a, PQMSG b)
5194{
5195 BOOL yyrc;
5196 USHORT sel = RestoreOS2FS();
5197
5198 yyrc = WinGetDlgMsg(a, b);
5199 SetFS(sel);
5200
5201 return yyrc;
5202}
5203
5204#undef WinGetDlgMsg
5205#define WinGetDlgMsg _WinGetDlgMsg
5206
5207inline HWND _WinLoadDlg(HWND a, HWND b, PFNWP c, HMODULE d, ULONG e, PVOID f)
5208{
5209 HWND yyrc;
5210 USHORT sel = RestoreOS2FS();
5211
5212 yyrc = WinLoadDlg(a, b, c, d, e, f);
5213 SetFS(sel);
5214
5215 return yyrc;
5216}
5217
5218#undef WinLoadDlg
5219#define WinLoadDlg _WinLoadDlg
5220
5221inline ULONG _WinMessageBox(HWND a, HWND b, PCSZ c, PCSZ d, ULONG e, ULONG f)
5222{
5223 ULONG yyrc;
5224 USHORT sel = RestoreOS2FS();
5225
5226 yyrc = WinMessageBox(a, b, c, d, e, f);
5227 SetFS(sel);
5228
5229 return yyrc;
5230}
5231
5232#undef WinMessageBox
5233#define WinMessageBox _WinMessageBox
5234
5235inline ULONG _WinMessageBox2(HWND a, HWND b, PSZ c, PSZ d, ULONG e, PMB2INFO f)
5236{
5237 ULONG yyrc;
5238 USHORT sel = RestoreOS2FS();
5239
5240 yyrc = WinMessageBox2(a, b, c, d, e, f);
5241 SetFS(sel);
5242
5243 return yyrc;
5244}
5245
5246#undef WinMessageBox2
5247#define WinMessageBox2 _WinMessageBox2
5248
5249inline BOOL _WinQueryDlgItemShort(HWND a, ULONG b, PSHORT c, BOOL d)
5250{
5251 BOOL yyrc;
5252 USHORT sel = RestoreOS2FS();
5253
5254 yyrc = WinQueryDlgItemShort(a, b, c, d);
5255 SetFS(sel);
5256
5257 return yyrc;
5258}
5259
5260#undef WinQueryDlgItemShort
5261#define WinQueryDlgItemShort _WinQueryDlgItemShort
5262
5263inline ULONG _WinQueryDlgItemText(HWND a, ULONG b, LONG c, PSZ d)
5264{
5265 ULONG yyrc;
5266 USHORT sel = RestoreOS2FS();
5267
5268 yyrc = WinQueryDlgItemText(a, b, c, d);
5269 SetFS(sel);
5270
5271 return yyrc;
5272}
5273
5274#undef WinQueryDlgItemText
5275#define WinQueryDlgItemText _WinQueryDlgItemText
5276
5277inline LONG _WinQueryDlgItemTextLength(HWND a, ULONG b)
5278{
5279 LONG yyrc;
5280 USHORT sel = RestoreOS2FS();
5281
5282 yyrc = WinQueryDlgItemTextLength(a, b);
5283 SetFS(sel);
5284
5285 return yyrc;
5286}
5287
5288#undef WinQueryDlgItemTextLength
5289#define WinQueryDlgItemTextLength _WinQueryDlgItemTextLength
5290
5291inline BOOL _WinSetDlgItemShort(HWND a, ULONG b, USHORT c, BOOL d)
5292{
5293 BOOL yyrc;
5294 USHORT sel = RestoreOS2FS();
5295
5296 yyrc = WinSetDlgItemShort(a, b, c, d);
5297 SetFS(sel);
5298
5299 return yyrc;
5300}
5301
5302#undef WinSetDlgItemShort
5303#define WinSetDlgItemShort _WinSetDlgItemShort
5304
5305inline BOOL _WinSetDlgItemText(HWND a, ULONG b, PCSZ c)
5306{
5307 BOOL yyrc;
5308 USHORT sel = RestoreOS2FS();
5309
5310 yyrc = WinSetDlgItemText(a, b, c);
5311 SetFS(sel);
5312
5313 return yyrc;
5314}
5315
5316#undef WinSetDlgItemText
5317#define WinSetDlgItemText _WinSetDlgItemText
5318
5319inline HWND _WinCreateDlg(HWND a, HWND b, PFNWP c, PDLGTEMPLATE d, PVOID e)
5320{
5321 HWND yyrc;
5322 USHORT sel = RestoreOS2FS();
5323
5324 yyrc = WinCreateDlg(a, b, c, d, e);
5325 SetFS(sel);
5326
5327 return yyrc;
5328}
5329
5330#undef WinCreateDlg
5331#define WinCreateDlg _WinCreateDlg
5332
5333inline HWND _WinEnumDlgItem(HWND a, HWND b, ULONG c)
5334{
5335 HWND yyrc;
5336 USHORT sel = RestoreOS2FS();
5337
5338 yyrc = WinEnumDlgItem(a, b, c);
5339 SetFS(sel);
5340
5341 return yyrc;
5342}
5343
5344#undef WinEnumDlgItem
5345#define WinEnumDlgItem _WinEnumDlgItem
5346
5347inline BOOL _WinMapDlgPoints(HWND a, PPOINTL b, ULONG c, BOOL d)
5348{
5349 BOOL yyrc;
5350 USHORT sel = RestoreOS2FS();
5351
5352 yyrc = WinMapDlgPoints(a, b, c, d);
5353 SetFS(sel);
5354
5355 return yyrc;
5356}
5357
5358#undef WinMapDlgPoints
5359#define WinMapDlgPoints _WinMapDlgPoints
5360
5361inline ULONG _WinProcessDlg(HWND a)
5362{
5363 ULONG yyrc;
5364 USHORT sel = RestoreOS2FS();
5365
5366 yyrc = WinProcessDlg(a);
5367 SetFS(sel);
5368
5369 return yyrc;
5370}
5371
5372#undef WinProcessDlg
5373#define WinProcessDlg _WinProcessDlg
5374
5375inline MRESULT _WinSendDlgItemMsg(HWND a, ULONG b, ULONG c, MPARAM d, MPARAM e)
5376{
5377 MRESULT yyrc;
5378 USHORT sel = RestoreOS2FS();
5379
5380 yyrc = WinSendDlgItemMsg(a, b, c, d, e);
5381 SetFS(sel);
5382
5383 return yyrc;
5384}
5385
5386#undef WinSendDlgItemMsg
5387#define WinSendDlgItemMsg _WinSendDlgItemMsg
5388
5389inline LONG _WinSubstituteStrings(HWND a, PCSZ b, LONG c, PSZ d)
5390{
5391 LONG yyrc;
5392 USHORT sel = RestoreOS2FS();
5393
5394 yyrc = WinSubstituteStrings(a, b, c, d);
5395 SetFS(sel);
5396
5397 return yyrc;
5398}
5399
5400#undef WinSubstituteStrings
5401#define WinSubstituteStrings _WinSubstituteStrings
5402
5403#endif
5404#ifdef INCL_WINERRORS
5405inline ERRORID _WinGetLastError(HAB a)
5406{
5407 ERRORID yyrc;
5408 USHORT sel = RestoreOS2FS();
5409
5410 yyrc = WinGetLastError(a);
5411 SetFS(sel);
5412
5413 return yyrc;
5414}
5415
5416#undef WinGetLastError
5417#define WinGetLastError _WinGetLastError
5418
5419inline BOOL _WinFreeErrorInfo(PERRINFO a)
5420{
5421 BOOL yyrc;
5422 USHORT sel = RestoreOS2FS();
5423
5424 yyrc = WinFreeErrorInfo(a);
5425 SetFS(sel);
5426
5427 return yyrc;
5428}
5429
5430#undef WinFreeErrorInfo
5431#define WinFreeErrorInfo _WinFreeErrorInfo
5432
5433inline PERRINFO _WinGetErrorInfo(HAB a)
5434{
5435 PERRINFO yyrc;
5436 USHORT sel = RestoreOS2FS();
5437
5438 yyrc = WinGetErrorInfo(a);
5439 SetFS(sel);
5440
5441 return yyrc;
5442}
5443
5444#undef WinGetErrorInfo
5445#define WinGetErrorInfo _WinGetErrorInfo
5446
5447#endif
5448#ifdef INCL_WINHOOKS
5449inline BOOL _WinCallMsgFilter(HAB a, PQMSG b, ULONG c)
5450{
5451 BOOL yyrc;
5452 USHORT sel = RestoreOS2FS();
5453
5454 yyrc = WinCallMsgFilter(a, b, c);
5455 SetFS(sel);
5456
5457 return yyrc;
5458}
5459
5460#undef WinCallMsgFilter
5461#define WinCallMsgFilter _WinCallMsgFilter
5462
5463inline BOOL _WinReleaseHook(HAB a, HMQ b, LONG c, PFN d, HMODULE e)
5464{
5465 BOOL yyrc;
5466 USHORT sel = RestoreOS2FS();
5467
5468 yyrc = WinReleaseHook(a, b, c, d, e);
5469 SetFS(sel);
5470
5471 return yyrc;
5472}
5473
5474#undef WinReleaseHook
5475#define WinReleaseHook _WinReleaseHook
5476
5477inline BOOL _WinSetHook(HAB a, HMQ b, LONG c, PFN d, HMODULE e)
5478{
5479 BOOL yyrc;
5480 USHORT sel = RestoreOS2FS();
5481
5482 yyrc = WinSetHook(a, b, c, d, e);
5483 SetFS(sel);
5484
5485 return yyrc;
5486}
5487
5488#undef WinSetHook
5489#define WinSetHook _WinSetHook
5490
5491#endif
5492#ifdef INCL_WININPUT
5493inline BOOL _WinFocusChange(HWND a, HWND b, ULONG c)
5494{
5495 BOOL yyrc;
5496 USHORT sel = RestoreOS2FS();
5497
5498 yyrc = WinFocusChange(a, b, c);
5499 SetFS(sel);
5500
5501 return yyrc;
5502}
5503
5504#undef WinFocusChange
5505#define WinFocusChange _WinFocusChange
5506
5507inline BOOL _WinLockupSystem(HAB a)
5508{
5509 BOOL yyrc;
5510 USHORT sel = RestoreOS2FS();
5511
5512 yyrc = WinLockupSystem(a);
5513 SetFS(sel);
5514
5515 return yyrc;
5516}
5517
5518#undef WinLockupSystem
5519#define WinLockupSystem _WinLockupSystem
5520
5521inline BOOL _WinSetFocus(HWND a, HWND b)
5522{
5523 BOOL yyrc;
5524 USHORT sel = RestoreOS2FS();
5525
5526 yyrc = WinSetFocus(a, b);
5527 SetFS(sel);
5528
5529 return yyrc;
5530}
5531
5532#undef WinSetFocus
5533#define WinSetFocus _WinSetFocus
5534
5535inline BOOL _WinUnlockSystem(HAB a, PSZ b)
5536{
5537 BOOL yyrc;
5538 USHORT sel = RestoreOS2FS();
5539
5540 yyrc = WinUnlockSystem(a, b);
5541 SetFS(sel);
5542
5543 return yyrc;
5544}
5545
5546#undef WinUnlockSystem
5547#define WinUnlockSystem _WinUnlockSystem
5548
5549inline BOOL _WinCheckInput(HAB a)
5550{
5551 BOOL yyrc;
5552 USHORT sel = RestoreOS2FS();
5553
5554 yyrc = WinCheckInput(a);
5555 SetFS(sel);
5556
5557 return yyrc;
5558}
5559
5560#undef WinCheckInput
5561#define WinCheckInput _WinCheckInput
5562
5563inline BOOL _WinEnablePhysInput(HWND a, BOOL b)
5564{
5565 BOOL yyrc;
5566 USHORT sel = RestoreOS2FS();
5567
5568 yyrc = WinEnablePhysInput(a, b);
5569 SetFS(sel);
5570
5571 return yyrc;
5572}
5573
5574#undef WinEnablePhysInput
5575#define WinEnablePhysInput _WinEnablePhysInput
5576
5577inline LONG _WinGetKeyState(HWND a, LONG b)
5578{
5579 LONG yyrc;
5580 USHORT sel = RestoreOS2FS();
5581
5582 yyrc = WinGetKeyState(a, b);
5583 SetFS(sel);
5584
5585 return yyrc;
5586}
5587
5588#undef WinGetKeyState
5589#define WinGetKeyState _WinGetKeyState
5590
5591inline LONG _WinGetPhysKeyState(HWND a, LONG b)
5592{
5593 LONG yyrc;
5594 USHORT sel = RestoreOS2FS();
5595
5596 yyrc = WinGetPhysKeyState(a, b);
5597 SetFS(sel);
5598
5599 return yyrc;
5600}
5601
5602#undef WinGetPhysKeyState
5603#define WinGetPhysKeyState _WinGetPhysKeyState
5604
5605inline BOOL _WinIsPhysInputEnabled(HWND a)
5606{
5607 BOOL yyrc;
5608 USHORT sel = RestoreOS2FS();
5609
5610 yyrc = WinIsPhysInputEnabled(a);
5611 SetFS(sel);
5612
5613 return yyrc;
5614}
5615
5616#undef WinIsPhysInputEnabled
5617#define WinIsPhysInputEnabled _WinIsPhysInputEnabled
5618
5619inline HWND _WinQueryCapture(HWND a)
5620{
5621 HWND yyrc;
5622 USHORT sel = RestoreOS2FS();
5623
5624 yyrc = WinQueryCapture(a);
5625 SetFS(sel);
5626
5627 return yyrc;
5628}
5629
5630#undef WinQueryCapture
5631#define WinQueryCapture _WinQueryCapture
5632
5633inline HWND _WinQueryFocus(HWND a)
5634{
5635 HWND yyrc;
5636 USHORT sel = RestoreOS2FS();
5637
5638 yyrc = WinQueryFocus(a);
5639 SetFS(sel);
5640
5641 return yyrc;
5642}
5643
5644#undef WinQueryFocus
5645#define WinQueryFocus _WinQueryFocus
5646
5647inline ULONG _WinQueryVisibleRegion(HWND a, HRGN b)
5648{
5649 ULONG yyrc;
5650 USHORT sel = RestoreOS2FS();
5651
5652 yyrc = WinQueryVisibleRegion(a, b);
5653 SetFS(sel);
5654
5655 return yyrc;
5656}
5657
5658#undef WinQueryVisibleRegion
5659#define WinQueryVisibleRegion _WinQueryVisibleRegion
5660
5661inline BOOL _WinSetCapture(HWND a, HWND b)
5662{
5663 BOOL yyrc;
5664 USHORT sel = RestoreOS2FS();
5665
5666 yyrc = WinSetCapture(a, b);
5667 SetFS(sel);
5668
5669 return yyrc;
5670}
5671
5672#undef WinSetCapture
5673#define WinSetCapture _WinSetCapture
5674
5675inline BOOL _WinSetKeyboardStateTable(HWND a, PBYTE b, BOOL c)
5676{
5677 BOOL yyrc;
5678 USHORT sel = RestoreOS2FS();
5679
5680 yyrc = WinSetKeyboardStateTable(a, b, c);
5681 SetFS(sel);
5682
5683 return yyrc;
5684}
5685
5686#undef WinSetKeyboardStateTable
5687#define WinSetKeyboardStateTable _WinSetKeyboardStateTable
5688
5689inline BOOL _WinSetVisibleRegionNotify(HWND a, BOOL b)
5690{
5691 BOOL yyrc;
5692 USHORT sel = RestoreOS2FS();
5693
5694 yyrc = WinSetVisibleRegionNotify(a, b);
5695 SetFS(sel);
5696
5697 return yyrc;
5698}
5699
5700#undef WinSetVisibleRegionNotify
5701#define WinSetVisibleRegionNotify _WinSetVisibleRegionNotify
5702
5703#endif
5704#ifdef INCL_WINLOAD
5705inline BOOL _WinDeleteLibrary(HAB a, HLIB b)
5706{
5707 BOOL yyrc;
5708 USHORT sel = RestoreOS2FS();
5709
5710 yyrc = WinDeleteLibrary(a, b);
5711 SetFS(sel);
5712
5713 return yyrc;
5714}
5715
5716#undef WinDeleteLibrary
5717#define WinDeleteLibrary _WinDeleteLibrary
5718
5719inline BOOL _WinDeleteProcedure(HAB a, PFNWP b)
5720{
5721 BOOL yyrc;
5722 USHORT sel = RestoreOS2FS();
5723
5724 yyrc = WinDeleteProcedure(a, b);
5725 SetFS(sel);
5726
5727 return yyrc;
5728}
5729
5730#undef WinDeleteProcedure
5731#define WinDeleteProcedure _WinDeleteProcedure
5732
5733inline HLIB _WinLoadLibrary(HAB a, PCSZ b)
5734{
5735 HLIB yyrc;
5736 USHORT sel = RestoreOS2FS();
5737
5738 yyrc = WinLoadLibrary(a, b);
5739 SetFS(sel);
5740
5741 return yyrc;
5742}
5743
5744#undef WinLoadLibrary
5745#define WinLoadLibrary _WinLoadLibrary
5746
5747inline PFNWP _WinLoadProcedure(HAB a, HLIB b, PSZ c)
5748{
5749 PFNWP yyrc;
5750 USHORT sel = RestoreOS2FS();
5751
5752 yyrc = WinLoadProcedure(a, b, c);
5753 SetFS(sel);
5754
5755 return yyrc;
5756}
5757
5758#undef WinLoadProcedure
5759#define WinLoadProcedure _WinLoadProcedure
5760
5761#endif
5762#ifdef INCL_WINMENUS
5763inline HWND _WinCreateMenu(HWND a, PVOID b)
5764{
5765 HWND yyrc;
5766 USHORT sel = RestoreOS2FS();
5767
5768 yyrc = WinCreateMenu(a, b);
5769 SetFS(sel);
5770
5771 return yyrc;
5772}
5773
5774#undef WinCreateMenu
5775#define WinCreateMenu _WinCreateMenu
5776
5777inline HWND _WinLoadMenu(HWND a, HMODULE b, ULONG c)
5778{
5779 HWND yyrc;
5780 USHORT sel = RestoreOS2FS();
5781
5782 yyrc = WinLoadMenu(a, b, c);
5783 SetFS(sel);
5784
5785 return yyrc;
5786}
5787
5788#undef WinLoadMenu
5789#define WinLoadMenu _WinLoadMenu
5790
5791inline BOOL _WinPopupMenu(HWND a, HWND b, HWND c, LONG d, LONG e, LONG f, ULONG g)
5792{
5793 BOOL yyrc;
5794 USHORT sel = RestoreOS2FS();
5795
5796 yyrc = WinPopupMenu(a, b, c, d, e, f, g);
5797 SetFS(sel);
5798
5799 return yyrc;
5800}
5801
5802#undef WinPopupMenu
5803#define WinPopupMenu _WinPopupMenu
5804
5805#endif
5806#ifdef INCL_WINMESSAGEMGR
5807inline BOOL _WinBroadcastMsg(HWND a, ULONG b, MPARAM c, MPARAM d, ULONG e)
5808{
5809 BOOL yyrc;
5810 USHORT sel = RestoreOS2FS();
5811
5812 yyrc = WinBroadcastMsg(a, b, c, d, e);
5813 SetFS(sel);
5814
5815 return yyrc;
5816}
5817
5818#undef WinBroadcastMsg
5819#define WinBroadcastMsg _WinBroadcastMsg
5820
5821inline BOOL _WinInSendMsg(HAB a)
5822{
5823 BOOL yyrc;
5824 USHORT sel = RestoreOS2FS();
5825
5826 yyrc = WinInSendMsg(a);
5827 SetFS(sel);
5828
5829 return yyrc;
5830}
5831
5832#undef WinInSendMsg
5833#define WinInSendMsg _WinInSendMsg
5834
5835inline BOOL _WinPostQueueMsg(HMQ a, ULONG b, MPARAM c, MPARAM d)
5836{
5837 BOOL yyrc;
5838 USHORT sel = RestoreOS2FS();
5839
5840 yyrc = WinPostQueueMsg(a, b, c, d);
5841 SetFS(sel);
5842
5843 return yyrc;
5844}
5845
5846#undef WinPostQueueMsg
5847#define WinPostQueueMsg _WinPostQueueMsg
5848
5849inline BOOL _WinQueryMsgPos(HAB a, PPOINTL b)
5850{
5851 BOOL yyrc;
5852 USHORT sel = RestoreOS2FS();
5853
5854 yyrc = WinQueryMsgPos(a, b);
5855 SetFS(sel);
5856
5857 return yyrc;
5858}
5859
5860#undef WinQueryMsgPos
5861#define WinQueryMsgPos _WinQueryMsgPos
5862
5863inline ULONG _WinQueryMsgTime(HAB a)
5864{
5865 ULONG yyrc;
5866 USHORT sel = RestoreOS2FS();
5867
5868 yyrc = WinQueryMsgTime(a);
5869 SetFS(sel);
5870
5871 return yyrc;
5872}
5873
5874#undef WinQueryMsgTime
5875#define WinQueryMsgTime _WinQueryMsgTime
5876
5877inline ULONG _WinQueryQueueStatus(HWND a)
5878{
5879 ULONG yyrc;
5880 USHORT sel = RestoreOS2FS();
5881
5882 yyrc = WinQueryQueueStatus(a);
5883 SetFS(sel);
5884
5885 return yyrc;
5886}
5887
5888#undef WinQueryQueueStatus
5889#define WinQueryQueueStatus _WinQueryQueueStatus
5890
5891inline ULONG _WinRequestMutexSem(HMTX a, ULONG b)
5892{
5893 ULONG yyrc;
5894 USHORT sel = RestoreOS2FS();
5895
5896 yyrc = WinRequestMutexSem(a, b);
5897 SetFS(sel);
5898
5899 return yyrc;
5900}
5901
5902#undef WinRequestMutexSem
5903#define WinRequestMutexSem _WinRequestMutexSem
5904
5905inline BOOL _WinSetClassMsgInterest(HAB a, PCSZ b, ULONG c, LONG d)
5906{
5907 BOOL yyrc;
5908 USHORT sel = RestoreOS2FS();
5909
5910 yyrc = WinSetClassMsgInterest(a, b, c, d);
5911 SetFS(sel);
5912
5913 return yyrc;
5914}
5915
5916#undef WinSetClassMsgInterest
5917#define WinSetClassMsgInterest _WinSetClassMsgInterest
5918
5919inline BOOL _WinSetMsgInterest(HWND a, ULONG b, LONG c)
5920{
5921 BOOL yyrc;
5922 USHORT sel = RestoreOS2FS();
5923
5924 yyrc = WinSetMsgInterest(a, b, c);
5925 SetFS(sel);
5926
5927 return yyrc;
5928}
5929
5930#undef WinSetMsgInterest
5931#define WinSetMsgInterest _WinSetMsgInterest
5932
5933inline ULONG _WinWaitEventSem(HEV a, ULONG b)
5934{
5935 ULONG yyrc;
5936 USHORT sel = RestoreOS2FS();
5937
5938 yyrc = WinWaitEventSem(a, b);
5939 SetFS(sel);
5940
5941 return yyrc;
5942}
5943
5944#undef WinWaitEventSem
5945#define WinWaitEventSem _WinWaitEventSem
5946
5947inline BOOL _WinWaitMsg(HAB a, ULONG b, ULONG c)
5948{
5949 BOOL yyrc;
5950 USHORT sel = RestoreOS2FS();
5951
5952 yyrc = WinWaitMsg(a, b, c);
5953 SetFS(sel);
5954
5955 return yyrc;
5956}
5957
5958#undef WinWaitMsg
5959#define WinWaitMsg _WinWaitMsg
5960
5961inline ULONG _WinWaitMuxWaitSem(HMUX a, ULONG b, PULONG c)
5962{
5963 ULONG yyrc;
5964 USHORT sel = RestoreOS2FS();
5965
5966 yyrc = WinWaitMuxWaitSem(a, b, c);
5967 SetFS(sel);
5968
5969 return yyrc;
5970}
5971
5972#undef WinWaitMuxWaitSem
5973#define WinWaitMuxWaitSem _WinWaitMuxWaitSem
5974
5975#endif
5976#ifdef INCL_WINPALETTE
5977inline LONG _WinRealizePalette(HWND a, HPS b, PULONG c)
5978{
5979 LONG yyrc;
5980 USHORT sel = RestoreOS2FS();
5981
5982 yyrc = WinRealizePalette(a, b, c);
5983 SetFS(sel);
5984
5985 return yyrc;
5986}
5987
5988#undef WinRealizePalette
5989#define WinRealizePalette _WinRealizePalette
5990
5991#endif
5992#ifdef INCL_WINPOINTERS
5993inline HPOINTER _WinCreatePointer(HWND a, HBITMAP b, BOOL c, LONG d, LONG e)
5994{
5995 HPOINTER yyrc;
5996 USHORT sel = RestoreOS2FS();
5997
5998 yyrc = WinCreatePointer(a, b, c, d, e);
5999 SetFS(sel);
6000
6001 return yyrc;
6002}
6003
6004#undef WinCreatePointer
6005#define WinCreatePointer _WinCreatePointer
6006
6007inline HPOINTER _WinCreatePointerIndirect(HWND a, PPOINTERINFO b)
6008{
6009 HPOINTER yyrc;
6010 USHORT sel = RestoreOS2FS();
6011
6012 yyrc = WinCreatePointerIndirect(a, b);
6013 SetFS(sel);
6014
6015 return yyrc;
6016}
6017
6018#undef WinCreatePointerIndirect
6019#define WinCreatePointerIndirect _WinCreatePointerIndirect
6020
6021inline BOOL _WinDestroyPointer(HPOINTER a)
6022{
6023 BOOL yyrc;
6024 USHORT sel = RestoreOS2FS();
6025
6026 yyrc = WinDestroyPointer(a);
6027 SetFS(sel);
6028
6029 return yyrc;
6030}
6031
6032#undef WinDestroyPointer
6033#define WinDestroyPointer _WinDestroyPointer
6034
6035inline BOOL _WinDrawPointer(HPS a, LONG b, LONG c, HPOINTER d, ULONG e)
6036{
6037 BOOL yyrc;
6038 USHORT sel = RestoreOS2FS();
6039
6040 yyrc = WinDrawPointer(a, b, c, d, e);
6041 SetFS(sel);
6042
6043 return yyrc;
6044}
6045
6046#undef WinDrawPointer
6047#define WinDrawPointer _WinDrawPointer
6048
6049inline HBITMAP _WinGetSysBitmap(HWND a, ULONG b)
6050{
6051 HBITMAP yyrc;
6052 USHORT sel = RestoreOS2FS();
6053
6054 yyrc = WinGetSysBitmap(a, b);
6055 SetFS(sel);
6056
6057 return yyrc;
6058}
6059
6060#undef WinGetSysBitmap
6061#define WinGetSysBitmap _WinGetSysBitmap
6062
6063inline HPOINTER _WinLoadPointer(HWND a, HMODULE b, ULONG c)
6064{
6065 HPOINTER yyrc;
6066 USHORT sel = RestoreOS2FS();
6067
6068 yyrc = WinLoadPointer(a, b, c);
6069 SetFS(sel);
6070
6071 return yyrc;
6072}
6073
6074#undef WinLoadPointer
6075#define WinLoadPointer _WinLoadPointer
6076
6077inline BOOL _WinLockPointerUpdate(HWND a, HPOINTER b, ULONG c)
6078{
6079 BOOL yyrc;
6080 USHORT sel = RestoreOS2FS();
6081
6082 yyrc = WinLockPointerUpdate(a, b, c);
6083 SetFS(sel);
6084
6085 return yyrc;
6086}
6087
6088#undef WinLockPointerUpdate
6089#define WinLockPointerUpdate _WinLockPointerUpdate
6090
6091inline BOOL _WinQueryPointerPos(HWND a, PPOINTL b)
6092{
6093 BOOL yyrc;
6094 USHORT sel = RestoreOS2FS();
6095
6096 yyrc = WinQueryPointerPos(a, b);
6097 SetFS(sel);
6098
6099 return yyrc;
6100}
6101
6102#undef WinQueryPointerPos
6103#define WinQueryPointerPos _WinQueryPointerPos
6104
6105inline BOOL _WinQueryPointerInfo(HPOINTER a, PPOINTERINFO b)
6106{
6107 BOOL yyrc;
6108 USHORT sel = RestoreOS2FS();
6109
6110 yyrc = WinQueryPointerInfo(a, b);
6111 SetFS(sel);
6112
6113 return yyrc;
6114}
6115
6116#undef WinQueryPointerInfo
6117#define WinQueryPointerInfo _WinQueryPointerInfo
6118
6119inline HPOINTER _WinQuerySysPointer(HWND a, LONG b, BOOL c)
6120{
6121 HPOINTER yyrc;
6122 USHORT sel = RestoreOS2FS();
6123
6124 yyrc = WinQuerySysPointer(a, b, c);
6125 SetFS(sel);
6126
6127 return yyrc;
6128}
6129
6130#undef WinQuerySysPointer
6131#define WinQuerySysPointer _WinQuerySysPointer
6132
6133inline BOOL _WinQuerySysPointerData(HWND a, ULONG b, PICONINFO c)
6134{
6135 BOOL yyrc;
6136 USHORT sel = RestoreOS2FS();
6137
6138 yyrc = WinQuerySysPointerData(a, b, c);
6139 SetFS(sel);
6140
6141 return yyrc;
6142}
6143
6144#undef WinQuerySysPointerData
6145#define WinQuerySysPointerData _WinQuerySysPointerData
6146
6147inline BOOL _WinSetPointer(HWND a, HPOINTER b)
6148{
6149 BOOL yyrc;
6150 USHORT sel = RestoreOS2FS();
6151
6152 yyrc = WinSetPointer(a, b);
6153 SetFS(sel);
6154
6155 return yyrc;
6156}
6157
6158#undef WinSetPointer
6159#define WinSetPointer _WinSetPointer
6160
6161inline BOOL _WinSetPointerOwner(HPOINTER a, PID b, BOOL c)
6162{
6163 BOOL yyrc;
6164 USHORT sel = RestoreOS2FS();
6165
6166 yyrc = WinSetPointerOwner(a, b, c);
6167 SetFS(sel);
6168
6169 return yyrc;
6170}
6171
6172#undef WinSetPointerOwner
6173#define WinSetPointerOwner _WinSetPointerOwner
6174
6175inline BOOL _WinSetPointerPos(HWND a, LONG b, LONG c)
6176{
6177 BOOL yyrc;
6178 USHORT sel = RestoreOS2FS();
6179
6180 yyrc = WinSetPointerPos(a, b, c);
6181 SetFS(sel);
6182
6183 return yyrc;
6184}
6185
6186#undef WinSetPointerPos
6187#define WinSetPointerPos _WinSetPointerPos
6188
6189inline BOOL _WinSetSysPointerData(HWND a, ULONG b, PICONINFO c)
6190{
6191 BOOL yyrc;
6192 USHORT sel = RestoreOS2FS();
6193
6194 yyrc = WinSetSysPointerData(a, b, c);
6195 SetFS(sel);
6196
6197 return yyrc;
6198}
6199
6200#undef WinSetSysPointerData
6201#define WinSetSysPointerData _WinSetSysPointerData
6202
6203inline BOOL _WinShowPointer(HWND a, BOOL b)
6204{
6205 BOOL yyrc;
6206 USHORT sel = RestoreOS2FS();
6207
6208 yyrc = WinShowPointer(a, b);
6209 SetFS(sel);
6210
6211 return yyrc;
6212}
6213
6214#undef WinShowPointer
6215#define WinShowPointer _WinShowPointer
6216
6217#endif
6218#ifdef INCL_WINRECTANGLES
6219inline BOOL _WinCopyRect(HAB a, PRECTL b, PRECTL c)
6220{
6221 BOOL yyrc;
6222 USHORT sel = RestoreOS2FS();
6223
6224 yyrc = WinCopyRect(a, b, c);
6225 SetFS(sel);
6226
6227 return yyrc;
6228}
6229
6230#undef WinCopyRect
6231#define WinCopyRect _WinCopyRect
6232
6233inline BOOL _WinEqualRect(HAB a, PRECTL b, PRECTL c)
6234{
6235 BOOL yyrc;
6236 USHORT sel = RestoreOS2FS();
6237
6238 yyrc = WinEqualRect(a, b, c);
6239 SetFS(sel);
6240
6241 return yyrc;
6242}
6243
6244#undef WinEqualRect
6245#define WinEqualRect _WinEqualRect
6246
6247inline BOOL _WinInflateRect(HAB a, PRECTL b, LONG c, LONG d)
6248{
6249 BOOL yyrc;
6250 USHORT sel = RestoreOS2FS();
6251
6252 yyrc = WinInflateRect(a, b, c, d);
6253 SetFS(sel);
6254
6255 return yyrc;
6256}
6257
6258#undef WinInflateRect
6259#define WinInflateRect _WinInflateRect
6260
6261inline BOOL _WinIntersectRect(HAB a, PRECTL b, PRECTL c, PRECTL d)
6262{
6263 BOOL yyrc;
6264 USHORT sel = RestoreOS2FS();
6265
6266 yyrc = WinIntersectRect(a, b, c, d);
6267 SetFS(sel);
6268
6269 return yyrc;
6270}
6271
6272#undef WinIntersectRect
6273#define WinIntersectRect _WinIntersectRect
6274
6275inline BOOL _WinIsRectEmpty(HAB a, PRECTL b)
6276{
6277 BOOL yyrc;
6278 USHORT sel = RestoreOS2FS();
6279
6280 yyrc = WinIsRectEmpty(a, b);
6281 SetFS(sel);
6282
6283 return yyrc;
6284}
6285
6286#undef WinIsRectEmpty
6287#define WinIsRectEmpty _WinIsRectEmpty
6288
6289inline BOOL _WinMakePoints(HAB a, PPOINTL b, ULONG c)
6290{
6291 BOOL yyrc;
6292 USHORT sel = RestoreOS2FS();
6293
6294 yyrc = WinMakePoints(a, b, c);
6295 SetFS(sel);
6296
6297 return yyrc;
6298}
6299
6300#undef WinMakePoints
6301#define WinMakePoints _WinMakePoints
6302
6303inline BOOL _WinMakeRect(HAB a, PRECTL b)
6304{
6305 BOOL yyrc;
6306 USHORT sel = RestoreOS2FS();
6307
6308 yyrc = WinMakeRect(a, b);
6309 SetFS(sel);
6310
6311 return yyrc;
6312}
6313
6314#undef WinMakeRect
6315#define WinMakeRect _WinMakeRect
6316
6317inline BOOL _WinOffsetRect(HAB a, PRECTL b, LONG c, LONG d)
6318{
6319 BOOL yyrc;
6320 USHORT sel = RestoreOS2FS();
6321
6322 yyrc = WinOffsetRect(a, b, c, d);
6323 SetFS(sel);
6324
6325 return yyrc;
6326}
6327
6328#undef WinOffsetRect
6329#define WinOffsetRect _WinOffsetRect
6330
6331inline BOOL _WinPtInRect(HAB a, PRECTL b, PPOINTL c)
6332{
6333 BOOL yyrc;
6334 USHORT sel = RestoreOS2FS();
6335
6336 yyrc = WinPtInRect(a, b, c);
6337 SetFS(sel);
6338
6339 return yyrc;
6340}
6341
6342#undef WinPtInRect
6343#define WinPtInRect _WinPtInRect
6344
6345inline BOOL _WinSetRect(HAB a, PRECTL b, LONG c, LONG d, LONG e, LONG f)
6346{
6347 BOOL yyrc;
6348 USHORT sel = RestoreOS2FS();
6349
6350 yyrc = WinSetRect(a, b, c, d, e, f);
6351 SetFS(sel);
6352
6353 return yyrc;
6354}
6355
6356#undef WinSetRect
6357#define WinSetRect _WinSetRect
6358
6359inline BOOL _WinSetRectEmpty(HAB a, PRECTL b)
6360{
6361 BOOL yyrc;
6362 USHORT sel = RestoreOS2FS();
6363
6364 yyrc = WinSetRectEmpty(a, b);
6365 SetFS(sel);
6366
6367 return yyrc;
6368}
6369
6370#undef WinSetRectEmpty
6371#define WinSetRectEmpty _WinSetRectEmpty
6372
6373inline BOOL _WinSubtractRect(HAB a, PRECTL b, PRECTL c, PRECTL d)
6374{
6375 BOOL yyrc;
6376 USHORT sel = RestoreOS2FS();
6377
6378 yyrc = WinSubtractRect(a, b, c, d);
6379 SetFS(sel);
6380
6381 return yyrc;
6382}
6383
6384#undef WinSubtractRect
6385#define WinSubtractRect _WinSubtractRect
6386
6387inline BOOL _WinUnionRect(HAB a, PRECTL b, PRECTL c, PRECTL d)
6388{
6389 BOOL yyrc;
6390 USHORT sel = RestoreOS2FS();
6391
6392 yyrc = WinUnionRect(a, b, c, d);
6393 SetFS(sel);
6394
6395 return yyrc;
6396}
6397
6398#undef WinUnionRect
6399#define WinUnionRect _WinUnionRect
6400
6401#endif
6402#ifdef INCL_WINSYS
6403inline LONG _WinQueryControlColors(HWND a, LONG b, ULONG c, ULONG d, PCTLCOLOR e)
6404{
6405 LONG yyrc;
6406 USHORT sel = RestoreOS2FS();
6407
6408 yyrc = WinQueryControlColors(a, b, c, d, e);
6409 SetFS(sel);
6410
6411 return yyrc;
6412}
6413
6414#undef WinQueryControlColors
6415#define WinQueryControlColors _WinQueryControlColors
6416
6417inline ULONG _WinQueryPresParam(HWND a, ULONG b, ULONG c, PULONG d, ULONG e, PVOID f, ULONG g)
6418{
6419 ULONG yyrc;
6420 USHORT sel = RestoreOS2FS();
6421
6422 yyrc = WinQueryPresParam(a, b, c, d, e, f, g);
6423 SetFS(sel);
6424
6425 return yyrc;
6426}
6427
6428#undef WinQueryPresParam
6429#define WinQueryPresParam _WinQueryPresParam
6430
6431inline LONG _WinQuerySysColor(HWND a, LONG b, LONG c)
6432{
6433 LONG yyrc;
6434 USHORT sel = RestoreOS2FS();
6435
6436 yyrc = WinQuerySysColor(a, b, c);
6437 SetFS(sel);
6438
6439 return yyrc;
6440}
6441
6442#undef WinQuerySysColor
6443#define WinQuerySysColor _WinQuerySysColor
6444
6445inline LONG _WinQuerySysValue(HWND a, LONG b)
6446{
6447 LONG yyrc;
6448 USHORT sel = RestoreOS2FS();
6449
6450 yyrc = WinQuerySysValue(a, b);
6451 SetFS(sel);
6452
6453 return yyrc;
6454}
6455
6456#undef WinQuerySysValue
6457#define WinQuerySysValue _WinQuerySysValue
6458
6459inline BOOL _WinRemovePresParam(HWND a, ULONG b)
6460{
6461 BOOL yyrc;
6462 USHORT sel = RestoreOS2FS();
6463
6464 yyrc = WinRemovePresParam(a, b);
6465 SetFS(sel);
6466
6467 return yyrc;
6468}
6469
6470#undef WinRemovePresParam
6471#define WinRemovePresParam _WinRemovePresParam
6472
6473inline LONG _WinSetControlColors(HWND a, LONG b, ULONG c, ULONG d, PCTLCOLOR e)
6474{
6475 LONG yyrc;
6476 USHORT sel = RestoreOS2FS();
6477
6478 yyrc = WinSetControlColors(a, b, c, d, e);
6479 SetFS(sel);
6480
6481 return yyrc;
6482}
6483
6484#undef WinSetControlColors
6485#define WinSetControlColors _WinSetControlColors
6486
6487inline BOOL _WinSetPresParam(HWND a, ULONG b, ULONG c, PVOID d)
6488{
6489 BOOL yyrc;
6490 USHORT sel = RestoreOS2FS();
6491
6492 yyrc = WinSetPresParam(a, b, c, d);
6493 SetFS(sel);
6494
6495 return yyrc;
6496}
6497
6498#undef WinSetPresParam
6499#define WinSetPresParam _WinSetPresParam
6500
6501inline BOOL _WinSetSysColors(HWND a, ULONG b, ULONG c, LONG d, ULONG e, PLONG f)
6502{
6503 BOOL yyrc;
6504 USHORT sel = RestoreOS2FS();
6505
6506 yyrc = WinSetSysColors(a, b, c, d, e, f);
6507 SetFS(sel);
6508
6509 return yyrc;
6510}
6511
6512#undef WinSetSysColors
6513#define WinSetSysColors _WinSetSysColors
6514
6515inline BOOL _WinSetSysValue(HWND a, LONG b, LONG c)
6516{
6517 BOOL yyrc;
6518 USHORT sel = RestoreOS2FS();
6519
6520 yyrc = WinSetSysValue(a, b, c);
6521 SetFS(sel);
6522
6523 return yyrc;
6524}
6525
6526#undef WinSetSysValue
6527#define WinSetSysValue _WinSetSysValue
6528
6529#endif
6530#ifdef INCL_WINTHUNKAPI
6531inline PFN _WinQueryClassThunkProc(PCSZ a)
6532{
6533 PFN yyrc;
6534 USHORT sel = RestoreOS2FS();
6535
6536 yyrc = WinQueryClassThunkProc(a);
6537 SetFS(sel);
6538
6539 return yyrc;
6540}
6541
6542#undef WinQueryClassThunkProc
6543#define WinQueryClassThunkProc _WinQueryClassThunkProc
6544
6545inline LONG _WinQueryWindowModel(HWND a)
6546{
6547 LONG yyrc;
6548 USHORT sel = RestoreOS2FS();
6549
6550 yyrc = WinQueryWindowModel(a);
6551 SetFS(sel);
6552
6553 return yyrc;
6554}
6555
6556#undef WinQueryWindowModel
6557#define WinQueryWindowModel _WinQueryWindowModel
6558
6559inline PFN _WinQueryWindowThunkProc(HWND a)
6560{
6561 PFN yyrc;
6562 USHORT sel = RestoreOS2FS();
6563
6564 yyrc = WinQueryWindowThunkProc(a);
6565 SetFS(sel);
6566
6567 return yyrc;
6568}
6569
6570#undef WinQueryWindowThunkProc
6571#define WinQueryWindowThunkProc _WinQueryWindowThunkProc
6572
6573inline BOOL _WinSetClassThunkProc(PCSZ a, PFN b)
6574{
6575 BOOL yyrc;
6576 USHORT sel = RestoreOS2FS();
6577
6578 yyrc = WinSetClassThunkProc(a, b);
6579 SetFS(sel);
6580
6581 return yyrc;
6582}
6583
6584#undef WinSetClassThunkProc
6585#define WinSetClassThunkProc _WinSetClassThunkProc
6586
6587inline BOOL _WinSetWindowThunkProc(HWND a, PFN b)
6588{
6589 BOOL yyrc;
6590 USHORT sel = RestoreOS2FS();
6591
6592 yyrc = WinSetWindowThunkProc(a, b);
6593 SetFS(sel);
6594
6595 return yyrc;
6596}
6597
6598#undef WinSetWindowThunkProc
6599#define WinSetWindowThunkProc _WinSetWindowThunkProc
6600
6601#endif
6602#ifdef INCL_WINTIMER
6603inline ULONG _WinGetCurrentTime(HAB a)
6604{
6605 ULONG yyrc;
6606 USHORT sel = RestoreOS2FS();
6607
6608 yyrc = WinGetCurrentTime(a);
6609 SetFS(sel);
6610
6611 return yyrc;
6612}
6613
6614#undef WinGetCurrentTime
6615#define WinGetCurrentTime _WinGetCurrentTime
6616
6617inline ULONG _WinStartTimer(HAB a, HWND b, ULONG c, ULONG d)
6618{
6619 ULONG yyrc;
6620 USHORT sel = RestoreOS2FS();
6621
6622 yyrc = WinStartTimer(a, b, c, d);
6623 SetFS(sel);
6624
6625 return yyrc;
6626}
6627
6628#undef WinStartTimer
6629#define WinStartTimer _WinStartTimer
6630
6631inline BOOL _WinStopTimer(HAB a, HWND b, ULONG c)
6632{
6633 BOOL yyrc;
6634 USHORT sel = RestoreOS2FS();
6635
6636 yyrc = WinStopTimer(a, b, c);
6637 SetFS(sel);
6638
6639 return yyrc;
6640}
6641
6642#undef WinStopTimer
6643#define WinStopTimer _WinStopTimer
6644
6645#endif
6646#ifdef INCL_WINTRACKRECT
6647inline BOOL _WinShowTrackRect(HWND a, BOOL b)
6648{
6649 BOOL yyrc;
6650 USHORT sel = RestoreOS2FS();
6651
6652 yyrc = WinShowTrackRect(a, b);
6653 SetFS(sel);
6654
6655 return yyrc;
6656}
6657
6658#undef WinShowTrackRect
6659#define WinShowTrackRect _WinShowTrackRect
6660
6661inline BOOL _WinTrackRect(HWND a, HPS b, PTRACKINFO c)
6662{
6663 BOOL yyrc;
6664 USHORT sel = RestoreOS2FS();
6665
6666 yyrc = WinTrackRect(a, b, c);
6667 SetFS(sel);
6668
6669 return yyrc;
6670}
6671
6672#undef WinTrackRect
6673#define WinTrackRect _WinTrackRect
6674
6675#endif
6676#endif
6677#ifdef INCL_GPI
6678inline LONG _GpiAnimatePalette(HPAL a, ULONG b, ULONG c, ULONG d, PULONG e)
6679{
6680 LONG yyrc;
6681 USHORT sel = RestoreOS2FS();
6682
6683 yyrc = GpiAnimatePalette(a, b, c, d, e);
6684 SetFS(sel);
6685
6686 return yyrc;
6687}
6688
6689#undef GpiAnimatePalette
6690#define GpiAnimatePalette _GpiAnimatePalette
6691
6692inline BOOL _GpiBeginArea(HPS a, ULONG b)
6693{
6694 BOOL yyrc;
6695 USHORT sel = RestoreOS2FS();
6696
6697 yyrc = GpiBeginArea(a, b);
6698 SetFS(sel);
6699
6700 return yyrc;
6701}
6702
6703#undef GpiBeginArea
6704#define GpiBeginArea _GpiBeginArea
6705
6706inline BOOL _GpiBeginElement(HPS a, LONG b, PCSZ c)
6707{
6708 BOOL yyrc;
6709 USHORT sel = RestoreOS2FS();
6710
6711 yyrc = GpiBeginElement(a, b, c);
6712 SetFS(sel);
6713
6714 return yyrc;
6715}
6716
6717#undef GpiBeginElement
6718#define GpiBeginElement _GpiBeginElement
6719
6720inline BOOL _GpiBeginPath(HPS a, LONG b)
6721{
6722 BOOL yyrc;
6723 USHORT sel = RestoreOS2FS();
6724
6725 yyrc = GpiBeginPath(a, b);
6726 SetFS(sel);
6727
6728 return yyrc;
6729}
6730
6731#undef GpiBeginPath
6732#define GpiBeginPath _GpiBeginPath
6733
6734inline LONG _GpiBox(HPS a, LONG b, PPOINTL c, LONG d, LONG e)
6735{
6736 LONG yyrc;
6737 USHORT sel = RestoreOS2FS();
6738
6739 yyrc = GpiBox(a, b, c, d, e);
6740 SetFS(sel);
6741
6742 return yyrc;
6743}
6744
6745#undef GpiBox
6746#define GpiBox _GpiBox
6747
6748inline LONG _GpiCallSegmentMatrix(HPS a, LONG b, LONG c, PMATRIXLF d, LONG e)
6749{
6750 LONG yyrc;
6751 USHORT sel = RestoreOS2FS();
6752
6753 yyrc = GpiCallSegmentMatrix(a, b, c, d, e);
6754 SetFS(sel);
6755
6756 return yyrc;
6757}
6758
6759#undef GpiCallSegmentMatrix
6760#define GpiCallSegmentMatrix _GpiCallSegmentMatrix
6761
6762inline LONG _GpiCharString(HPS a, LONG b, PCH c)
6763{
6764 LONG yyrc;
6765 USHORT sel = RestoreOS2FS();
6766
6767 yyrc = GpiCharString(a, b, c);
6768 SetFS(sel);
6769
6770 return yyrc;
6771}
6772
6773#undef GpiCharString
6774#define GpiCharString _GpiCharString
6775
6776inline LONG _GpiCharStringAt(HPS a, PPOINTL b, LONG c, PCH d)
6777{
6778 LONG yyrc;
6779 USHORT sel = RestoreOS2FS();
6780
6781 yyrc = GpiCharStringAt(a, b, c, d);
6782 SetFS(sel);
6783
6784 return yyrc;
6785}
6786
6787#undef GpiCharStringAt
6788#define GpiCharStringAt _GpiCharStringAt
6789
6790inline LONG _GpiCharStringPos(HPS a, PRECTL b, ULONG c, LONG d, PCH e, PLONG f)
6791{
6792 LONG yyrc;
6793 USHORT sel = RestoreOS2FS();
6794
6795 yyrc = GpiCharStringPos(a, b, c, d, e, f);
6796 SetFS(sel);
6797
6798 return yyrc;
6799}
6800
6801#undef GpiCharStringPos
6802#define GpiCharStringPos _GpiCharStringPos
6803
6804inline LONG _GpiCharStringPosAt(HPS a, PPOINTL b, PRECTL c, ULONG d, LONG e, PCH f, PLONG g)
6805{
6806 LONG yyrc;
6807 USHORT sel = RestoreOS2FS();
6808
6809 yyrc = GpiCharStringPosAt(a, b, c, d, e, f, g);
6810 SetFS(sel);
6811
6812 return yyrc;
6813}
6814
6815#undef GpiCharStringPosAt
6816#define GpiCharStringPosAt _GpiCharStringPosAt
6817
6818inline BOOL _GpiCloseFigure(HPS a)
6819{
6820 BOOL yyrc;
6821 USHORT sel = RestoreOS2FS();
6822
6823 yyrc = GpiCloseFigure(a);
6824 SetFS(sel);
6825
6826 return yyrc;
6827}
6828
6829#undef GpiCloseFigure
6830#define GpiCloseFigure _GpiCloseFigure
6831
6832inline LONG _GpiCombineRegion(HPS a, HRGN b, HRGN c, HRGN d, LONG e)
6833{
6834 LONG yyrc;
6835 USHORT sel = RestoreOS2FS();
6836
6837 yyrc = GpiCombineRegion(a, b, c, d, e);
6838 SetFS(sel);
6839
6840 return yyrc;
6841}
6842
6843#undef GpiCombineRegion
6844#define GpiCombineRegion _GpiCombineRegion
6845
6846inline BOOL _GpiComment(HPS a, LONG b, PBYTE c)
6847{
6848 BOOL yyrc;
6849 USHORT sel = RestoreOS2FS();
6850
6851 yyrc = GpiComment(a, b, c);
6852 SetFS(sel);
6853
6854 return yyrc;
6855}
6856
6857#undef GpiComment
6858#define GpiComment _GpiComment
6859
6860inline BOOL _GpiConvert(HPS a, LONG b, LONG c, LONG d, PPOINTL e)
6861{
6862 BOOL yyrc;
6863 USHORT sel = RestoreOS2FS();
6864
6865 yyrc = GpiConvert(a, b, c, d, e);
6866 SetFS(sel);
6867
6868 return yyrc;
6869}
6870
6871#undef GpiConvert
6872#define GpiConvert _GpiConvert
6873
6874inline BOOL _GpiConvertWithMatrix(HPS a, LONG b, PPOINTL c, LONG d, PMATRIXLF e)
6875{
6876 BOOL yyrc;
6877 USHORT sel = RestoreOS2FS();
6878
6879 yyrc = GpiConvertWithMatrix(a, b, c, d, e);
6880 SetFS(sel);
6881
6882 return yyrc;
6883}
6884
6885#undef GpiConvertWithMatrix
6886#define GpiConvertWithMatrix _GpiConvertWithMatrix
6887
6888inline HMF _GpiCopyMetaFile(HMF a)
6889{
6890 HMF yyrc;
6891 USHORT sel = RestoreOS2FS();
6892
6893 yyrc = GpiCopyMetaFile(a);
6894 SetFS(sel);
6895
6896 return yyrc;
6897}
6898
6899#undef GpiCopyMetaFile
6900#define GpiCopyMetaFile _GpiCopyMetaFile
6901
6902inline BOOL _GpiCreateLogColorTable(HPS a, ULONG b, LONG c, LONG d, LONG e, PLONG f)
6903{
6904 BOOL yyrc;
6905 USHORT sel = RestoreOS2FS();
6906
6907 yyrc = GpiCreateLogColorTable(a, b, c, d, e, f);
6908 SetFS(sel);
6909
6910 return yyrc;
6911}
6912
6913#undef GpiCreateLogColorTable
6914#define GpiCreateLogColorTable _GpiCreateLogColorTable
6915
6916inline LONG _GpiCreateLogFont(HPS a, STR8 *b, LONG c, PFATTRS d)
6917{
6918 LONG yyrc;
6919 USHORT sel = RestoreOS2FS();
6920
6921 yyrc = GpiCreateLogFont(a, b, c, d);
6922 SetFS(sel);
6923
6924 return yyrc;
6925}
6926
6927#undef GpiCreateLogFont
6928#define GpiCreateLogFont _GpiCreateLogFont
6929
6930inline HPAL _GpiCreatePalette(HAB a, ULONG b, ULONG c, ULONG d, PULONG e)
6931{
6932 HPAL yyrc;
6933 USHORT sel = RestoreOS2FS();
6934
6935 yyrc = GpiCreatePalette(a, b, c, d, e);
6936 SetFS(sel);
6937
6938 return yyrc;
6939}
6940
6941#undef GpiCreatePalette
6942#define GpiCreatePalette _GpiCreatePalette
6943
6944inline HRGN _GpiCreateRegion(HPS a, LONG b, PRECTL c)
6945{
6946 HRGN yyrc;
6947 USHORT sel = RestoreOS2FS();
6948
6949 yyrc = GpiCreateRegion(a, b, c);
6950 SetFS(sel);
6951
6952 return yyrc;
6953}
6954
6955#undef GpiCreateRegion
6956#define GpiCreateRegion _GpiCreateRegion
6957
6958inline BOOL _GpiDeleteElement(HPS a)
6959{
6960 BOOL yyrc;
6961 USHORT sel = RestoreOS2FS();
6962
6963 yyrc = GpiDeleteElement(a);
6964 SetFS(sel);
6965
6966 return yyrc;
6967}
6968
6969#undef GpiDeleteElement
6970#define GpiDeleteElement _GpiDeleteElement
6971
6972inline BOOL _GpiDeleteElementRange(HPS a, LONG b, LONG c)
6973{
6974 BOOL yyrc;
6975 USHORT sel = RestoreOS2FS();
6976
6977 yyrc = GpiDeleteElementRange(a, b, c);
6978 SetFS(sel);
6979
6980 return yyrc;
6981}
6982
6983#undef GpiDeleteElementRange
6984#define GpiDeleteElementRange _GpiDeleteElementRange
6985
6986inline BOOL _GpiDeleteElementsBetweenLabels(HPS a, LONG b, LONG c)
6987{
6988 BOOL yyrc;
6989 USHORT sel = RestoreOS2FS();
6990
6991 yyrc = GpiDeleteElementsBetweenLabels(a, b, c);
6992 SetFS(sel);
6993
6994 return yyrc;
6995}
6996
6997#undef GpiDeleteElementsBetweenLabels
6998#define GpiDeleteElementsBetweenLabels _GpiDeleteElementsBetweenLabels
6999
7000inline BOOL _GpiDeleteMetaFile(HMF a)
7001{
7002 BOOL yyrc;
7003 USHORT sel = RestoreOS2FS();
7004
7005 yyrc = GpiDeleteMetaFile(a);
7006 SetFS(sel);
7007
7008 return yyrc;
7009}
7010
7011#undef GpiDeleteMetaFile
7012#define GpiDeleteMetaFile _GpiDeleteMetaFile
7013
7014inline BOOL _GpiDeletePalette(HPAL a)
7015{
7016 BOOL yyrc;
7017 USHORT sel = RestoreOS2FS();
7018
7019 yyrc = GpiDeletePalette(a);
7020 SetFS(sel);
7021
7022 return yyrc;
7023}
7024
7025#undef GpiDeletePalette
7026#define GpiDeletePalette _GpiDeletePalette
7027
7028inline BOOL _GpiDeleteSetId(HPS a, LONG b)
7029{
7030 BOOL yyrc;
7031 USHORT sel = RestoreOS2FS();
7032
7033 yyrc = GpiDeleteSetId(a, b);
7034 SetFS(sel);
7035
7036 return yyrc;
7037}
7038
7039#undef GpiDeleteSetId
7040#define GpiDeleteSetId _GpiDeleteSetId
7041
7042inline BOOL _GpiDestroyRegion(HPS a, HRGN b)
7043{
7044 BOOL yyrc;
7045 USHORT sel = RestoreOS2FS();
7046
7047 yyrc = GpiDestroyRegion(a, b);
7048 SetFS(sel);
7049
7050 return yyrc;
7051}
7052
7053#undef GpiDestroyRegion
7054#define GpiDestroyRegion _GpiDestroyRegion
7055
7056inline LONG _GpiElement(HPS a, LONG b, PCSZ c, LONG d, PBYTE e)
7057{
7058 LONG yyrc;
7059 USHORT sel = RestoreOS2FS();
7060
7061 yyrc = GpiElement(a, b, c, d, e);
7062 SetFS(sel);
7063
7064 return yyrc;
7065}
7066
7067#undef GpiElement
7068#define GpiElement _GpiElement
7069
7070inline LONG _GpiEndArea(HPS a)
7071{
7072 LONG yyrc;
7073 USHORT sel = RestoreOS2FS();
7074
7075 yyrc = GpiEndArea(a);
7076 SetFS(sel);
7077
7078 return yyrc;
7079}
7080
7081#undef GpiEndArea
7082#define GpiEndArea _GpiEndArea
7083
7084inline BOOL _GpiEndElement(HPS a)
7085{
7086 BOOL yyrc;
7087 USHORT sel = RestoreOS2FS();
7088
7089 yyrc = GpiEndElement(a);
7090 SetFS(sel);
7091
7092 return yyrc;
7093}
7094
7095#undef GpiEndElement
7096#define GpiEndElement _GpiEndElement
7097
7098inline BOOL _GpiEndPath(HPS a)
7099{
7100 BOOL yyrc;
7101 USHORT sel = RestoreOS2FS();
7102
7103 yyrc = GpiEndPath(a);
7104 SetFS(sel);
7105
7106 return yyrc;
7107}
7108
7109#undef GpiEndPath
7110#define GpiEndPath _GpiEndPath
7111
7112inline LONG _GpiEqualRegion(HPS a, HRGN b, HRGN c)
7113{
7114 LONG yyrc;
7115 USHORT sel = RestoreOS2FS();
7116
7117 yyrc = GpiEqualRegion(a, b, c);
7118 SetFS(sel);
7119
7120 return yyrc;
7121}
7122
7123#undef GpiEqualRegion
7124#define GpiEqualRegion _GpiEqualRegion
7125
7126inline LONG _GpiExcludeClipRectangle(HPS a, PRECTL b)
7127{
7128 LONG yyrc;
7129 USHORT sel = RestoreOS2FS();
7130
7131 yyrc = GpiExcludeClipRectangle(a, b);
7132 SetFS(sel);
7133
7134 return yyrc;
7135}
7136
7137#undef GpiExcludeClipRectangle
7138#define GpiExcludeClipRectangle _GpiExcludeClipRectangle
7139
7140inline LONG _GpiFillPath(HPS a, LONG b, LONG c)
7141{
7142 LONG yyrc;
7143 USHORT sel = RestoreOS2FS();
7144
7145 yyrc = GpiFillPath(a, b, c);
7146 SetFS(sel);
7147
7148 return yyrc;
7149}
7150
7151#undef GpiFillPath
7152#define GpiFillPath _GpiFillPath
7153
7154inline LONG _GpiFrameRegion(HPS a, HRGN b, PSIZEL c)
7155{
7156 LONG yyrc;
7157 USHORT sel = RestoreOS2FS();
7158
7159 yyrc = GpiFrameRegion(a, b, c);
7160 SetFS(sel);
7161
7162 return yyrc;
7163}
7164
7165#undef GpiFrameRegion
7166#define GpiFrameRegion _GpiFrameRegion
7167
7168inline LONG _GpiFullArc(HPS a, LONG b, FIXED c)
7169{
7170 LONG yyrc;
7171 USHORT sel = RestoreOS2FS();
7172
7173 yyrc = GpiFullArc(a, b, c);
7174 SetFS(sel);
7175
7176 return yyrc;
7177}
7178
7179#undef GpiFullArc
7180#define GpiFullArc _GpiFullArc
7181
7182inline LONG _GpiImage(HPS a, LONG b, PSIZEL c, LONG d, PBYTE e)
7183{
7184 LONG yyrc;
7185 USHORT sel = RestoreOS2FS();
7186
7187 yyrc = GpiImage(a, b, c, d, e);
7188 SetFS(sel);
7189
7190 return yyrc;
7191}
7192
7193#undef GpiImage
7194#define GpiImage _GpiImage
7195
7196inline LONG _GpiIntersectClipRectangle(HPS a, PRECTL b)
7197{
7198 LONG yyrc;
7199 USHORT sel = RestoreOS2FS();
7200
7201 yyrc = GpiIntersectClipRectangle(a, b);
7202 SetFS(sel);
7203
7204 return yyrc;
7205}
7206
7207#undef GpiIntersectClipRectangle
7208#define GpiIntersectClipRectangle _GpiIntersectClipRectangle
7209
7210inline BOOL _GpiLabel(HPS a, LONG b)
7211{
7212 BOOL yyrc;
7213 USHORT sel = RestoreOS2FS();
7214
7215 yyrc = GpiLabel(a, b);
7216 SetFS(sel);
7217
7218 return yyrc;
7219}
7220
7221#undef GpiLabel
7222#define GpiLabel _GpiLabel
7223
7224inline LONG _GpiLine(HPS a, PPOINTL b)
7225{
7226 LONG yyrc;
7227 USHORT sel = RestoreOS2FS();
7228
7229 yyrc = GpiLine(a, b);
7230 SetFS(sel);
7231
7232 return yyrc;
7233}
7234
7235#undef GpiLine
7236#define GpiLine _GpiLine
7237
7238inline BOOL _GpiLoadFonts(HAB a, PCSZ b)
7239{
7240 BOOL yyrc;
7241 USHORT sel = RestoreOS2FS();
7242
7243 yyrc = GpiLoadFonts(a, b);
7244 SetFS(sel);
7245
7246 return yyrc;
7247}
7248
7249#undef GpiLoadFonts
7250#define GpiLoadFonts _GpiLoadFonts
7251
7252inline HMF _GpiLoadMetaFile(HAB a, PCSZ b)
7253{
7254 HMF yyrc;
7255 USHORT sel = RestoreOS2FS();
7256
7257 yyrc = GpiLoadMetaFile(a, b);
7258 SetFS(sel);
7259
7260 return yyrc;
7261}
7262
7263#undef GpiLoadMetaFile
7264#define GpiLoadMetaFile _GpiLoadMetaFile
7265
7266inline BOOL _GpiLoadPublicFonts(HAB a, PCSZ b)
7267{
7268 BOOL yyrc;
7269 USHORT sel = RestoreOS2FS();
7270
7271 yyrc = GpiLoadPublicFonts(a, b);
7272 SetFS(sel);
7273
7274 return yyrc;
7275}
7276
7277#undef GpiLoadPublicFonts
7278#define GpiLoadPublicFonts _GpiLoadPublicFonts
7279
7280inline LONG _GpiMarker(HPS a, PPOINTL b)
7281{
7282 LONG yyrc;
7283 USHORT sel = RestoreOS2FS();
7284
7285 yyrc = GpiMarker(a, b);
7286 SetFS(sel);
7287
7288 return yyrc;
7289}
7290
7291#undef GpiMarker
7292#define GpiMarker _GpiMarker
7293
7294inline BOOL _GpiModifyPath(HPS a, LONG b, LONG c)
7295{
7296 BOOL yyrc;
7297 USHORT sel = RestoreOS2FS();
7298
7299 yyrc = GpiModifyPath(a, b, c);
7300 SetFS(sel);
7301
7302 return yyrc;
7303}
7304
7305#undef GpiModifyPath
7306#define GpiModifyPath _GpiModifyPath
7307
7308inline BOOL _GpiMove(HPS a, PPOINTL b)
7309{
7310 BOOL yyrc;
7311 USHORT sel = RestoreOS2FS();
7312
7313 yyrc = GpiMove(a, b);
7314 SetFS(sel);
7315
7316 return yyrc;
7317}
7318
7319#undef GpiMove
7320#define GpiMove _GpiMove
7321
7322inline LONG _GpiOffsetClipRegion(HPS a, PPOINTL b)
7323{
7324 LONG yyrc;
7325 USHORT sel = RestoreOS2FS();
7326
7327 yyrc = GpiOffsetClipRegion(a, b);
7328 SetFS(sel);
7329
7330 return yyrc;
7331}
7332
7333#undef GpiOffsetClipRegion
7334#define GpiOffsetClipRegion _GpiOffsetClipRegion
7335
7336inline BOOL _GpiOffsetElementPointer(HPS a, LONG b)
7337{
7338 BOOL yyrc;
7339 USHORT sel = RestoreOS2FS();
7340
7341 yyrc = GpiOffsetElementPointer(a, b);
7342 SetFS(sel);
7343
7344 return yyrc;
7345}
7346
7347#undef GpiOffsetElementPointer
7348#define GpiOffsetElementPointer _GpiOffsetElementPointer
7349
7350inline BOOL _GpiOffsetRegion(HPS a, HRGN b, PPOINTL c)
7351{
7352 BOOL yyrc;
7353 USHORT sel = RestoreOS2FS();
7354
7355 yyrc = GpiOffsetRegion(a, b, c);
7356 SetFS(sel);
7357
7358 return yyrc;
7359}
7360
7361#undef GpiOffsetRegion
7362#define GpiOffsetRegion _GpiOffsetRegion
7363
7364inline LONG _GpiOutlinePath(HPS a, LONG b, LONG c)
7365{
7366 LONG yyrc;
7367 USHORT sel = RestoreOS2FS();
7368
7369 yyrc = GpiOutlinePath(a, b, c);
7370 SetFS(sel);
7371
7372 return yyrc;
7373}
7374
7375#undef GpiOutlinePath
7376#define GpiOutlinePath _GpiOutlinePath
7377
7378inline LONG _GpiPaintRegion(HPS a, HRGN b)
7379{
7380 LONG yyrc;
7381 USHORT sel = RestoreOS2FS();
7382
7383 yyrc = GpiPaintRegion(a, b);
7384 SetFS(sel);
7385
7386 return yyrc;
7387}
7388
7389#undef GpiPaintRegion
7390#define GpiPaintRegion _GpiPaintRegion
7391
7392inline LONG _GpiPartialArc(HPS a, PPOINTL b, FIXED c, FIXED d, FIXED e)
7393{
7394 LONG yyrc;
7395 USHORT sel = RestoreOS2FS();
7396
7397 yyrc = GpiPartialArc(a, b, c, d, e);
7398 SetFS(sel);
7399
7400 return yyrc;
7401}
7402
7403#undef GpiPartialArc
7404#define GpiPartialArc _GpiPartialArc
7405
7406inline HRGN _GpiPathToRegion(HPS a, LONG b, LONG c)
7407{
7408 HRGN yyrc;
7409 USHORT sel = RestoreOS2FS();
7410
7411 yyrc = GpiPathToRegion(a, b, c);
7412 SetFS(sel);
7413
7414 return yyrc;
7415}
7416
7417#undef GpiPathToRegion
7418#define GpiPathToRegion _GpiPathToRegion
7419
7420inline LONG _GpiPlayMetaFile(HPS a, HMF b, LONG c, PLONG d, PLONG e, LONG f, PSZ g)
7421{
7422 LONG yyrc;
7423 USHORT sel = RestoreOS2FS();
7424
7425 yyrc = GpiPlayMetaFile(a, b, c, d, e, f, g);
7426 SetFS(sel);
7427
7428 return yyrc;
7429}
7430
7431#undef GpiPlayMetaFile
7432#define GpiPlayMetaFile _GpiPlayMetaFile
7433
7434inline LONG _GpiPointArc(HPS a, PPOINTL b)
7435{
7436 LONG yyrc;
7437 USHORT sel = RestoreOS2FS();
7438
7439 yyrc = GpiPointArc(a, b);
7440 SetFS(sel);
7441
7442 return yyrc;
7443}
7444
7445#undef GpiPointArc
7446#define GpiPointArc _GpiPointArc
7447
7448inline LONG _GpiPolyFillet(HPS a, LONG b, PPOINTL c)
7449{
7450 LONG yyrc;
7451 USHORT sel = RestoreOS2FS();
7452
7453 yyrc = GpiPolyFillet(a, b, c);
7454 SetFS(sel);
7455
7456 return yyrc;
7457}
7458
7459#undef GpiPolyFillet
7460#define GpiPolyFillet _GpiPolyFillet
7461
7462inline LONG _GpiPolyFilletSharp(HPS a, LONG b, PPOINTL c, PFIXED d)
7463{
7464 LONG yyrc;
7465 USHORT sel = RestoreOS2FS();
7466
7467 yyrc = GpiPolyFilletSharp(a, b, c, d);
7468 SetFS(sel);
7469
7470 return yyrc;
7471}
7472
7473#undef GpiPolyFilletSharp
7474#define GpiPolyFilletSharp _GpiPolyFilletSharp
7475
7476inline LONG _GpiPolygons(HPS a, ULONG b, PPOLYGON c, ULONG d, ULONG e)
7477{
7478 LONG yyrc;
7479 USHORT sel = RestoreOS2FS();
7480
7481 yyrc = GpiPolygons(a, b, c, d, e);
7482 SetFS(sel);
7483
7484 return yyrc;
7485}
7486
7487#undef GpiPolygons
7488#define GpiPolygons _GpiPolygons
7489
7490inline LONG _GpiPolyLine(HPS a, LONG b, PPOINTL c)
7491{
7492 LONG yyrc;
7493 USHORT sel = RestoreOS2FS();
7494
7495 yyrc = GpiPolyLine(a, b, c);
7496 SetFS(sel);
7497
7498 return yyrc;
7499}
7500
7501#undef GpiPolyLine
7502#define GpiPolyLine _GpiPolyLine
7503
7504inline LONG _GpiPolyLineDisjoint(HPS a, LONG b, PPOINTL c)
7505{
7506 LONG yyrc;
7507 USHORT sel = RestoreOS2FS();
7508
7509 yyrc = GpiPolyLineDisjoint(a, b, c);
7510 SetFS(sel);
7511
7512 return yyrc;
7513}
7514
7515#undef GpiPolyLineDisjoint
7516#define GpiPolyLineDisjoint _GpiPolyLineDisjoint
7517
7518inline LONG _GpiPolyMarker(HPS a, LONG b, PPOINTL c)
7519{
7520 LONG yyrc;
7521 USHORT sel = RestoreOS2FS();
7522
7523 yyrc = GpiPolyMarker(a, b, c);
7524 SetFS(sel);
7525
7526 return yyrc;
7527}
7528
7529#undef GpiPolyMarker
7530#define GpiPolyMarker _GpiPolyMarker
7531
7532inline LONG _GpiPolySpline(HPS a, LONG b, PPOINTL c)
7533{
7534 LONG yyrc;
7535 USHORT sel = RestoreOS2FS();
7536
7537 yyrc = GpiPolySpline(a, b, c);
7538 SetFS(sel);
7539
7540 return yyrc;
7541}
7542
7543#undef GpiPolySpline
7544#define GpiPolySpline _GpiPolySpline
7545
7546inline BOOL _GpiPop(HPS a, LONG b)
7547{
7548 BOOL yyrc;
7549 USHORT sel = RestoreOS2FS();
7550
7551 yyrc = GpiPop(a, b);
7552 SetFS(sel);
7553
7554 return yyrc;
7555}
7556
7557#undef GpiPop
7558#define GpiPop _GpiPop
7559
7560inline LONG _GpiPtInRegion(HPS a, HRGN b, PPOINTL c)
7561{
7562 LONG yyrc;
7563 USHORT sel = RestoreOS2FS();
7564
7565 yyrc = GpiPtInRegion(a, b, c);
7566 SetFS(sel);
7567
7568 return yyrc;
7569}
7570
7571#undef GpiPtInRegion
7572#define GpiPtInRegion _GpiPtInRegion
7573
7574inline LONG _GpiPtVisible(HPS a, PPOINTL b)
7575{
7576 LONG yyrc;
7577 USHORT sel = RestoreOS2FS();
7578
7579 yyrc = GpiPtVisible(a, b);
7580 SetFS(sel);
7581
7582 return yyrc;
7583}
7584
7585#undef GpiPtVisible
7586#define GpiPtVisible _GpiPtVisible
7587
7588inline BOOL _GpiQueryArcParams(HPS a, PARCPARAMS b)
7589{
7590 BOOL yyrc;
7591 USHORT sel = RestoreOS2FS();
7592
7593 yyrc = GpiQueryArcParams(a, b);
7594 SetFS(sel);
7595
7596 return yyrc;
7597}
7598
7599#undef GpiQueryArcParams
7600#define GpiQueryArcParams _GpiQueryArcParams
7601
7602inline LONG _GpiQueryAttrMode(HPS a)
7603{
7604 LONG yyrc;
7605 USHORT sel = RestoreOS2FS();
7606
7607 yyrc = GpiQueryAttrMode(a);
7608 SetFS(sel);
7609
7610 return yyrc;
7611}
7612
7613#undef GpiQueryAttrMode
7614#define GpiQueryAttrMode _GpiQueryAttrMode
7615
7616inline LONG _GpiQueryAttrs(HPS a, LONG b, ULONG c, PBUNDLE d)
7617{
7618 LONG yyrc;
7619 USHORT sel = RestoreOS2FS();
7620
7621 yyrc = GpiQueryAttrs(a, b, c, d);
7622 SetFS(sel);
7623
7624 return yyrc;
7625}
7626
7627#undef GpiQueryAttrs
7628#define GpiQueryAttrs _GpiQueryAttrs
7629
7630inline LONG _GpiQueryBackColor(HPS a)
7631{
7632 LONG yyrc;
7633 USHORT sel = RestoreOS2FS();
7634
7635 yyrc = GpiQueryBackColor(a);
7636 SetFS(sel);
7637
7638 return yyrc;
7639}
7640
7641#undef GpiQueryBackColor
7642#define GpiQueryBackColor _GpiQueryBackColor
7643
7644inline LONG _GpiQueryBackMix(HPS a)
7645{
7646 LONG yyrc;
7647 USHORT sel = RestoreOS2FS();
7648
7649 yyrc = GpiQueryBackMix(a);
7650 SetFS(sel);
7651
7652 return yyrc;
7653}
7654
7655#undef GpiQueryBackMix
7656#define GpiQueryBackMix _GpiQueryBackMix
7657
7658inline BOOL _GpiQueryCharAngle(HPS a, PGRADIENTL b)
7659{
7660 BOOL yyrc;
7661 USHORT sel = RestoreOS2FS();
7662
7663 yyrc = GpiQueryCharAngle(a, b);
7664 SetFS(sel);
7665
7666 return yyrc;
7667}
7668
7669#undef GpiQueryCharAngle
7670#define GpiQueryCharAngle _GpiQueryCharAngle
7671
7672inline BOOL _GpiQueryCharBox(HPS a, PSIZEF b)
7673{
7674 BOOL yyrc;
7675 USHORT sel = RestoreOS2FS();
7676
7677 yyrc = GpiQueryCharBox(a, b);
7678 SetFS(sel);
7679
7680 return yyrc;
7681}
7682
7683#undef GpiQueryCharBox
7684#define GpiQueryCharBox _GpiQueryCharBox
7685
7686inline BOOL _GpiQueryCharBreakExtra(HPS a, PFIXED b)
7687{
7688 BOOL yyrc;
7689 USHORT sel = RestoreOS2FS();
7690
7691 yyrc = GpiQueryCharBreakExtra(a, b);
7692 SetFS(sel);
7693
7694 return yyrc;
7695}
7696
7697#undef GpiQueryCharBreakExtra
7698#define GpiQueryCharBreakExtra _GpiQueryCharBreakExtra
7699
7700inline LONG _GpiQueryCharDirection(HPS a)
7701{
7702 LONG yyrc;
7703 USHORT sel = RestoreOS2FS();
7704
7705 yyrc = GpiQueryCharDirection(a);
7706 SetFS(sel);
7707
7708 return yyrc;
7709}
7710
7711#undef GpiQueryCharDirection
7712#define GpiQueryCharDirection _GpiQueryCharDirection
7713
7714inline BOOL _GpiQueryCharExtra(HPS a, PFIXED b)
7715{
7716 BOOL yyrc;
7717 USHORT sel = RestoreOS2FS();
7718
7719 yyrc = GpiQueryCharExtra(a, b);
7720 SetFS(sel);
7721
7722 return yyrc;
7723}
7724
7725#undef GpiQueryCharExtra
7726#define GpiQueryCharExtra _GpiQueryCharExtra
7727
7728inline LONG _GpiQueryCharMode(HPS a)
7729{
7730 LONG yyrc;
7731 USHORT sel = RestoreOS2FS();
7732
7733 yyrc = GpiQueryCharMode(a);
7734 SetFS(sel);
7735
7736 return yyrc;
7737}
7738
7739#undef GpiQueryCharMode
7740#define GpiQueryCharMode _GpiQueryCharMode
7741
7742inline LONG _GpiQueryCharSet(HPS a)
7743{
7744 LONG yyrc;
7745 USHORT sel = RestoreOS2FS();
7746
7747 yyrc = GpiQueryCharSet(a);
7748 SetFS(sel);
7749
7750 return yyrc;
7751}
7752
7753#undef GpiQueryCharSet
7754#define GpiQueryCharSet _GpiQueryCharSet
7755
7756inline BOOL _GpiQueryCharShear(HPS a, PPOINTL b)
7757{
7758 BOOL yyrc;
7759 USHORT sel = RestoreOS2FS();
7760
7761 yyrc = GpiQueryCharShear(a, b);
7762 SetFS(sel);
7763
7764 return yyrc;
7765}
7766
7767#undef GpiQueryCharShear
7768#define GpiQueryCharShear _GpiQueryCharShear
7769
7770inline BOOL _GpiQueryCharStringPos(HPS a, ULONG b, LONG c, PCH d, PLONG e, PPOINTL f)
7771{
7772 BOOL yyrc;
7773 USHORT sel = RestoreOS2FS();
7774
7775 yyrc = GpiQueryCharStringPos(a, b, c, d, e, f);
7776 SetFS(sel);
7777
7778 return yyrc;
7779}
7780
7781#undef GpiQueryCharStringPos
7782#define GpiQueryCharStringPos _GpiQueryCharStringPos
7783
7784inline BOOL _GpiQueryCharStringPosAt(HPS a, PPOINTL b, ULONG c, LONG d, PCH e, PLONG f, PPOINTL g)
7785{
7786 BOOL yyrc;
7787 USHORT sel = RestoreOS2FS();
7788
7789 yyrc = GpiQueryCharStringPosAt(a, b, c, d, e, f, g);
7790 SetFS(sel);
7791
7792 return yyrc;
7793}
7794
7795#undef GpiQueryCharStringPosAt
7796#define GpiQueryCharStringPosAt _GpiQueryCharStringPosAt
7797
7798inline LONG _GpiQueryClipBox(HPS a, PRECTL b)
7799{
7800 LONG yyrc;
7801 USHORT sel = RestoreOS2FS();
7802
7803 yyrc = GpiQueryClipBox(a, b);
7804 SetFS(sel);
7805
7806 return yyrc;
7807}
7808
7809#undef GpiQueryClipBox
7810#define GpiQueryClipBox _GpiQueryClipBox
7811
7812inline HRGN _GpiQueryClipRegion(HPS a)
7813{
7814 HRGN yyrc;
7815 USHORT sel = RestoreOS2FS();
7816
7817 yyrc = GpiQueryClipRegion(a);
7818 SetFS(sel);
7819
7820 return yyrc;
7821}
7822
7823#undef GpiQueryClipRegion
7824#define GpiQueryClipRegion _GpiQueryClipRegion
7825
7826inline LONG _GpiQueryColor(HPS a)
7827{
7828 LONG yyrc;
7829 USHORT sel = RestoreOS2FS();
7830
7831 yyrc = GpiQueryColor(a);
7832 SetFS(sel);
7833
7834 return yyrc;
7835}
7836
7837#undef GpiQueryColor
7838#define GpiQueryColor _GpiQueryColor
7839
7840inline BOOL _GpiQueryColorData(HPS a, LONG b, PLONG c)
7841{
7842 BOOL yyrc;
7843 USHORT sel = RestoreOS2FS();
7844
7845 yyrc = GpiQueryColorData(a, b, c);
7846 SetFS(sel);
7847
7848 return yyrc;
7849}
7850
7851#undef GpiQueryColorData
7852#define GpiQueryColorData _GpiQueryColorData
7853
7854inline LONG _GpiQueryColorIndex(HPS a, ULONG b, LONG c)
7855{
7856 LONG yyrc;
7857 USHORT sel = RestoreOS2FS();
7858
7859 yyrc = GpiQueryColorIndex(a, b, c);
7860 SetFS(sel);
7861
7862 return yyrc;
7863}
7864
7865#undef GpiQueryColorIndex
7866#define GpiQueryColorIndex _GpiQueryColorIndex
7867
7868inline ULONG _GpiQueryCp(HPS a)
7869{
7870 ULONG yyrc;
7871 USHORT sel = RestoreOS2FS();
7872
7873 yyrc = GpiQueryCp(a);
7874 SetFS(sel);
7875
7876 return yyrc;
7877}
7878
7879#undef GpiQueryCp
7880#define GpiQueryCp _GpiQueryCp
7881
7882inline BOOL _GpiQueryCurrentPosition(HPS a, PPOINTL b)
7883{
7884 BOOL yyrc;
7885 USHORT sel = RestoreOS2FS();
7886
7887 yyrc = GpiQueryCurrentPosition(a, b);
7888 SetFS(sel);
7889
7890 return yyrc;
7891}
7892
7893#undef GpiQueryCurrentPosition
7894#define GpiQueryCurrentPosition _GpiQueryCurrentPosition
7895
7896inline BOOL _GpiQueryDefArcParams(HPS a, PARCPARAMS b)
7897{
7898 BOOL yyrc;
7899 USHORT sel = RestoreOS2FS();
7900
7901 yyrc = GpiQueryDefArcParams(a, b);
7902 SetFS(sel);
7903
7904 return yyrc;
7905}
7906
7907#undef GpiQueryDefArcParams
7908#define GpiQueryDefArcParams _GpiQueryDefArcParams
7909
7910inline BOOL _GpiQueryDefAttrs(HPS a, LONG b, ULONG c, PBUNDLE d)
7911{
7912 BOOL yyrc;
7913 USHORT sel = RestoreOS2FS();
7914
7915 yyrc = GpiQueryDefAttrs(a, b, c, d);
7916 SetFS(sel);
7917
7918 return yyrc;
7919}
7920
7921#undef GpiQueryDefAttrs
7922#define GpiQueryDefAttrs _GpiQueryDefAttrs
7923
7924inline BOOL _GpiQueryDefCharBox(HPS a, PSIZEL b)
7925{
7926 BOOL yyrc;
7927 USHORT sel = RestoreOS2FS();
7928
7929 yyrc = GpiQueryDefCharBox(a, b);
7930 SetFS(sel);
7931
7932 return yyrc;
7933}
7934
7935#undef GpiQueryDefCharBox
7936#define GpiQueryDefCharBox _GpiQueryDefCharBox
7937
7938inline BOOL _GpiQueryDefTag(HPS a, PLONG b)
7939{
7940 BOOL yyrc;
7941 USHORT sel = RestoreOS2FS();
7942
7943 yyrc = GpiQueryDefTag(a, b);
7944 SetFS(sel);
7945
7946 return yyrc;
7947}
7948
7949#undef GpiQueryDefTag
7950#define GpiQueryDefTag _GpiQueryDefTag
7951
7952inline BOOL _GpiQueryDefViewingLimits(HPS a, PRECTL b)
7953{
7954 BOOL yyrc;
7955 USHORT sel = RestoreOS2FS();
7956
7957 yyrc = GpiQueryDefViewingLimits(a, b);
7958 SetFS(sel);
7959
7960 return yyrc;
7961}
7962
7963#undef GpiQueryDefViewingLimits
7964#define GpiQueryDefViewingLimits _GpiQueryDefViewingLimits
7965
7966inline BOOL _GpiQueryDefaultViewMatrix(HPS a, LONG b, PMATRIXLF c)
7967{
7968 BOOL yyrc;
7969 USHORT sel = RestoreOS2FS();
7970
7971 yyrc = GpiQueryDefaultViewMatrix(a, b, c);
7972 SetFS(sel);
7973
7974 return yyrc;
7975}
7976
7977#undef GpiQueryDefaultViewMatrix
7978#define GpiQueryDefaultViewMatrix _GpiQueryDefaultViewMatrix
7979
7980inline LONG _GpiQueryEditMode(HPS a)
7981{
7982 LONG yyrc;
7983 USHORT sel = RestoreOS2FS();
7984
7985 yyrc = GpiQueryEditMode(a);
7986 SetFS(sel);
7987
7988 return yyrc;
7989}
7990
7991#undef GpiQueryEditMode
7992#define GpiQueryEditMode _GpiQueryEditMode
7993
7994inline LONG _GpiQueryElement(HPS a, LONG b, LONG c, PBYTE d)
7995{
7996 LONG yyrc;
7997 USHORT sel = RestoreOS2FS();
7998
7999 yyrc = GpiQueryElement(a, b, c, d);
8000 SetFS(sel);
8001
8002 return yyrc;
8003}
8004
8005#undef GpiQueryElement
8006#define GpiQueryElement _GpiQueryElement
8007
8008inline LONG _GpiQueryElementPointer(HPS a)
8009{
8010 LONG yyrc;
8011 USHORT sel = RestoreOS2FS();
8012
8013 yyrc = GpiQueryElementPointer(a);
8014 SetFS(sel);
8015
8016 return yyrc;
8017}
8018
8019#undef GpiQueryElementPointer
8020#define GpiQueryElementPointer _GpiQueryElementPointer
8021
8022inline LONG _GpiQueryElementType(HPS a, PLONG b, LONG c, PSZ d)
8023{
8024 LONG yyrc;
8025 USHORT sel = RestoreOS2FS();
8026
8027 yyrc = GpiQueryElementType(a, b, c, d);
8028 SetFS(sel);
8029
8030 return yyrc;
8031}
8032
8033#undef GpiQueryElementType
8034#define GpiQueryElementType _GpiQueryElementType
8035
8036inline ULONG _GpiQueryFaceString(HPS a, PCSZ b, PFACENAMEDESC c, LONG d, PSZ e)
8037{
8038 ULONG yyrc;
8039 USHORT sel = RestoreOS2FS();
8040
8041 yyrc = GpiQueryFaceString(a, b, c, d, e);
8042 SetFS(sel);
8043
8044 return yyrc;
8045}
8046
8047#undef GpiQueryFaceString
8048#define GpiQueryFaceString _GpiQueryFaceString
8049
8050inline ULONG _GpiQueryFontAction(HAB a, ULONG b)
8051{
8052 ULONG yyrc;
8053 USHORT sel = RestoreOS2FS();
8054
8055 yyrc = GpiQueryFontAction(a, b);
8056 SetFS(sel);
8057
8058 return yyrc;
8059}
8060
8061#undef GpiQueryFontAction
8062#define GpiQueryFontAction _GpiQueryFontAction
8063
8064inline LONG _GpiQueryFontFileDescriptions(HAB a, PCSZ b, PLONG c, PFFDESCS d)
8065{
8066 LONG yyrc;
8067 USHORT sel = RestoreOS2FS();
8068
8069 yyrc = GpiQueryFontFileDescriptions(a, b, c, d);
8070 SetFS(sel);
8071
8072 return yyrc;
8073}
8074
8075#undef GpiQueryFontFileDescriptions
8076#define GpiQueryFontFileDescriptions _GpiQueryFontFileDescriptions
8077
8078inline BOOL _GpiQueryFontMetrics(HPS a, LONG b, PFONTMETRICS c)
8079{
8080 BOOL yyrc;
8081 USHORT sel = RestoreOS2FS();
8082
8083 yyrc = GpiQueryFontMetrics(a, b, c);
8084 SetFS(sel);
8085
8086 return yyrc;
8087}
8088
8089#undef GpiQueryFontMetrics
8090#define GpiQueryFontMetrics _GpiQueryFontMetrics
8091
8092inline LONG _GpiQueryFonts(HPS a, ULONG b, PCSZ c, PLONG d, LONG e, PFONTMETRICS f)
8093{
8094 LONG yyrc;
8095 USHORT sel = RestoreOS2FS();
8096
8097 yyrc = GpiQueryFonts(a, b, c, d, e, f);
8098 SetFS(sel);
8099
8100 return yyrc;
8101}
8102
8103#undef GpiQueryFonts
8104#define GpiQueryFonts _GpiQueryFonts
8105
8106inline LONG _GpiQueryFullFontFileDescs(HAB a, PCSZ b, PLONG c, PVOID d, PLONG e)
8107{
8108 LONG yyrc;
8109 USHORT sel = RestoreOS2FS();
8110
8111 yyrc = GpiQueryFullFontFileDescs(a, b, c, d, e);
8112 SetFS(sel);
8113
8114 return yyrc;
8115}
8116
8117#undef GpiQueryFullFontFileDescs
8118#define GpiQueryFullFontFileDescs _GpiQueryFullFontFileDescs
8119
8120inline BOOL _GpiQueryGraphicsField(HPS a, PRECTL b)
8121{
8122 BOOL yyrc;
8123 USHORT sel = RestoreOS2FS();
8124
8125 yyrc = GpiQueryGraphicsField(a, b);
8126 SetFS(sel);
8127
8128 return yyrc;
8129}
8130
8131#undef GpiQueryGraphicsField
8132#define GpiQueryGraphicsField _GpiQueryGraphicsField
8133
8134inline LONG _GpiQueryKerningPairs(HPS a, LONG b, PKERNINGPAIRS c)
8135{
8136 LONG yyrc;
8137 USHORT sel = RestoreOS2FS();
8138
8139 yyrc = GpiQueryKerningPairs(a, b, c);
8140 SetFS(sel);
8141
8142 return yyrc;
8143}
8144
8145#undef GpiQueryKerningPairs
8146#define GpiQueryKerningPairs _GpiQueryKerningPairs
8147
8148inline LONG _GpiQueryLineEnd(HPS a)
8149{
8150 LONG yyrc;
8151 USHORT sel = RestoreOS2FS();
8152
8153 yyrc = GpiQueryLineEnd(a);
8154 SetFS(sel);
8155
8156 return yyrc;
8157}
8158
8159#undef GpiQueryLineEnd
8160#define GpiQueryLineEnd _GpiQueryLineEnd
8161
8162inline LONG _GpiQueryLineJoin(HPS a)
8163{
8164 LONG yyrc;
8165 USHORT sel = RestoreOS2FS();
8166
8167 yyrc = GpiQueryLineJoin(a);
8168 SetFS(sel);
8169
8170 return yyrc;
8171}
8172
8173#undef GpiQueryLineJoin
8174#define GpiQueryLineJoin _GpiQueryLineJoin
8175
8176inline LONG _GpiQueryLineType(HPS a)
8177{
8178 LONG yyrc;
8179 USHORT sel = RestoreOS2FS();
8180
8181 yyrc = GpiQueryLineType(a);
8182 SetFS(sel);
8183
8184 return yyrc;
8185}
8186
8187#undef GpiQueryLineType
8188#define GpiQueryLineType _GpiQueryLineType
8189
8190inline FIXED _GpiQueryLineWidth(HPS a)
8191{
8192 FIXED yyrc;
8193 USHORT sel = RestoreOS2FS();
8194
8195 yyrc = GpiQueryLineWidth(a);
8196 SetFS(sel);
8197
8198 return yyrc;
8199}
8200
8201#undef GpiQueryLineWidth
8202#define GpiQueryLineWidth _GpiQueryLineWidth
8203
8204inline LONG _GpiQueryLineWidthGeom(HPS a)
8205{
8206 LONG yyrc;
8207 USHORT sel = RestoreOS2FS();
8208
8209 yyrc = GpiQueryLineWidthGeom(a);
8210 SetFS(sel);
8211
8212 return yyrc;
8213}
8214
8215#undef GpiQueryLineWidthGeom
8216#define GpiQueryLineWidthGeom _GpiQueryLineWidthGeom
8217
8218inline LONG _GpiQueryLogColorTable(HPS a, ULONG b, LONG c, LONG d, PLONG e)
8219{
8220 LONG yyrc;
8221 USHORT sel = RestoreOS2FS();
8222
8223 yyrc = GpiQueryLogColorTable(a, b, c, d, e);
8224 SetFS(sel);
8225
8226 return yyrc;
8227}
8228
8229#undef GpiQueryLogColorTable
8230#define GpiQueryLogColorTable _GpiQueryLogColorTable
8231
8232inline BOOL _GpiQueryLogicalFont(HPS a, LONG b, PSTR8 c, PFATTRS d, LONG e)
8233{
8234 BOOL yyrc;
8235 USHORT sel = RestoreOS2FS();
8236
8237 yyrc = GpiQueryLogicalFont(a, b, c, d, e);
8238 SetFS(sel);
8239
8240 return yyrc;
8241}
8242
8243#undef GpiQueryLogicalFont
8244#define GpiQueryLogicalFont _GpiQueryLogicalFont
8245
8246inline LONG _GpiQueryMarker(HPS a)
8247{
8248 LONG yyrc;
8249 USHORT sel = RestoreOS2FS();
8250
8251 yyrc = GpiQueryMarker(a);
8252 SetFS(sel);
8253
8254 return yyrc;
8255}
8256
8257#undef GpiQueryMarker
8258#define GpiQueryMarker _GpiQueryMarker
8259
8260inline BOOL _GpiQueryMarkerBox(HPS a, PSIZEF b)
8261{
8262 BOOL yyrc;
8263 USHORT sel = RestoreOS2FS();
8264
8265 yyrc = GpiQueryMarkerBox(a, b);
8266 SetFS(sel);
8267
8268 return yyrc;
8269}
8270
8271#undef GpiQueryMarkerBox
8272#define GpiQueryMarkerBox _GpiQueryMarkerBox
8273
8274inline LONG _GpiQueryMarkerSet(HPS a)
8275{
8276 LONG yyrc;
8277 USHORT sel = RestoreOS2FS();
8278
8279 yyrc = GpiQueryMarkerSet(a);
8280 SetFS(sel);
8281
8282 return yyrc;
8283}
8284
8285#undef GpiQueryMarkerSet
8286#define GpiQueryMarkerSet _GpiQueryMarkerSet
8287
8288inline BOOL _GpiQueryMetaFileBits(HMF a, LONG b, LONG c, PBYTE d)
8289{
8290 BOOL yyrc;
8291 USHORT sel = RestoreOS2FS();
8292
8293 yyrc = GpiQueryMetaFileBits(a, b, c, d);
8294 SetFS(sel);
8295
8296 return yyrc;
8297}
8298
8299#undef GpiQueryMetaFileBits
8300#define GpiQueryMetaFileBits _GpiQueryMetaFileBits
8301
8302inline LONG _GpiQueryMetaFileLength(HMF a)
8303{
8304 LONG yyrc;
8305 USHORT sel = RestoreOS2FS();
8306
8307 yyrc = GpiQueryMetaFileLength(a);
8308 SetFS(sel);
8309
8310 return yyrc;
8311}
8312
8313#undef GpiQueryMetaFileLength
8314#define GpiQueryMetaFileLength _GpiQueryMetaFileLength
8315
8316inline LONG _GpiQueryMix(HPS a)
8317{
8318 LONG yyrc;
8319 USHORT sel = RestoreOS2FS();
8320
8321 yyrc = GpiQueryMix(a);
8322 SetFS(sel);
8323
8324 return yyrc;
8325}
8326
8327#undef GpiQueryMix
8328#define GpiQueryMix _GpiQueryMix
8329
8330inline BOOL _GpiQueryModelTransformMatrix(HPS a, LONG b, PMATRIXLF c)
8331{
8332 BOOL yyrc;
8333 USHORT sel = RestoreOS2FS();
8334
8335 yyrc = GpiQueryModelTransformMatrix(a, b, c);
8336 SetFS(sel);
8337
8338 return yyrc;
8339}
8340
8341#undef GpiQueryModelTransformMatrix
8342#define GpiQueryModelTransformMatrix _GpiQueryModelTransformMatrix
8343
8344inline LONG _GpiQueryNearestColor(HPS a, ULONG b, LONG c)
8345{
8346 LONG yyrc;
8347 USHORT sel = RestoreOS2FS();
8348
8349 yyrc = GpiQueryNearestColor(a, b, c);
8350 SetFS(sel);
8351
8352 return yyrc;
8353}
8354
8355#undef GpiQueryNearestColor
8356#define GpiQueryNearestColor _GpiQueryNearestColor
8357
8358inline LONG _GpiQueryNumberSetIds(HPS a)
8359{
8360 LONG yyrc;
8361 USHORT sel = RestoreOS2FS();
8362
8363 yyrc = GpiQueryNumberSetIds(a);
8364 SetFS(sel);
8365
8366 return yyrc;
8367}
8368
8369#undef GpiQueryNumberSetIds
8370#define GpiQueryNumberSetIds _GpiQueryNumberSetIds
8371
8372inline BOOL _GpiQueryPageViewport(HPS a, PRECTL b)
8373{
8374 BOOL yyrc;
8375 USHORT sel = RestoreOS2FS();
8376
8377 yyrc = GpiQueryPageViewport(a, b);
8378 SetFS(sel);
8379
8380 return yyrc;
8381}
8382
8383#undef GpiQueryPageViewport
8384#define GpiQueryPageViewport _GpiQueryPageViewport
8385
8386inline HPAL _GpiQueryPalette(HPS a)
8387{
8388 HPAL yyrc;
8389 USHORT sel = RestoreOS2FS();
8390
8391 yyrc = GpiQueryPalette(a);
8392 SetFS(sel);
8393
8394 return yyrc;
8395}
8396
8397#undef GpiQueryPalette
8398#define GpiQueryPalette _GpiQueryPalette
8399
8400inline LONG _GpiQueryPaletteInfo(HPAL a, HPS b, ULONG c, ULONG d, ULONG e, PULONG f)
8401{
8402 LONG yyrc;
8403 USHORT sel = RestoreOS2FS();
8404
8405 yyrc = GpiQueryPaletteInfo(a, b, c, d, e, f);
8406 SetFS(sel);
8407
8408 return yyrc;
8409}
8410
8411#undef GpiQueryPaletteInfo
8412#define GpiQueryPaletteInfo _GpiQueryPaletteInfo
8413
8414inline LONG _GpiQueryPattern(HPS a)
8415{
8416 LONG yyrc;
8417 USHORT sel = RestoreOS2FS();
8418
8419 yyrc = GpiQueryPattern(a);
8420 SetFS(sel);
8421
8422 return yyrc;
8423}
8424
8425#undef GpiQueryPattern
8426#define GpiQueryPattern _GpiQueryPattern
8427
8428inline BOOL _GpiQueryPatternRefPoint(HPS a, PPOINTL b)
8429{
8430 BOOL yyrc;
8431 USHORT sel = RestoreOS2FS();
8432
8433 yyrc = GpiQueryPatternRefPoint(a, b);
8434 SetFS(sel);
8435
8436 return yyrc;
8437}
8438
8439#undef GpiQueryPatternRefPoint
8440#define GpiQueryPatternRefPoint _GpiQueryPatternRefPoint
8441
8442inline LONG _GpiQueryPatternSet(HPS a)
8443{
8444 LONG yyrc;
8445 USHORT sel = RestoreOS2FS();
8446
8447 yyrc = GpiQueryPatternSet(a);
8448 SetFS(sel);
8449
8450 return yyrc;
8451}
8452
8453#undef GpiQueryPatternSet
8454#define GpiQueryPatternSet _GpiQueryPatternSet
8455
8456inline LONG _GpiQueryRealColors(HPS a, ULONG b, LONG c, LONG d, PLONG e)
8457{
8458 LONG yyrc;
8459 USHORT sel = RestoreOS2FS();
8460
8461 yyrc = GpiQueryRealColors(a, b, c, d, e);
8462 SetFS(sel);
8463
8464 return yyrc;
8465}
8466
8467#undef GpiQueryRealColors
8468#define GpiQueryRealColors _GpiQueryRealColors
8469
8470inline LONG _GpiQueryRegionBox(HPS a, HRGN b, PRECTL c)
8471{
8472 LONG yyrc;
8473 USHORT sel = RestoreOS2FS();
8474
8475 yyrc = GpiQueryRegionBox(a, b, c);
8476 SetFS(sel);
8477
8478 return yyrc;
8479}
8480
8481#undef GpiQueryRegionBox
8482#define GpiQueryRegionBox _GpiQueryRegionBox
8483
8484inline BOOL _GpiQueryRegionRects(HPS a, HRGN b, PRECTL c, PRGNRECT d, PRECTL e)
8485{
8486 BOOL yyrc;
8487 USHORT sel = RestoreOS2FS();
8488
8489 yyrc = GpiQueryRegionRects(a, b, c, d, e);
8490 SetFS(sel);
8491
8492 return yyrc;
8493}
8494
8495#undef GpiQueryRegionRects
8496#define GpiQueryRegionRects _GpiQueryRegionRects
8497
8498inline LONG _GpiQueryRGBColor(HPS a, ULONG b, LONG c)
8499{
8500 LONG yyrc;
8501 USHORT sel = RestoreOS2FS();
8502
8503 yyrc = GpiQueryRGBColor(a, b, c);
8504 SetFS(sel);
8505
8506 return yyrc;
8507}
8508
8509#undef GpiQueryRGBColor
8510#define GpiQueryRGBColor _GpiQueryRGBColor
8511
8512inline BOOL _GpiQuerySegmentTransformMatrix(HPS a, LONG b, LONG c, PMATRIXLF d)
8513{
8514 BOOL yyrc;
8515 USHORT sel = RestoreOS2FS();
8516
8517 yyrc = GpiQuerySegmentTransformMatrix(a, b, c, d);
8518 SetFS(sel);
8519
8520 return yyrc;
8521}
8522
8523#undef GpiQuerySegmentTransformMatrix
8524#define GpiQuerySegmentTransformMatrix _GpiQuerySegmentTransformMatrix
8525
8526inline BOOL _GpiQuerySetIds(HPS a, LONG b, PLONG c, PSTR8 d, PLONG e)
8527{
8528 BOOL yyrc;
8529 USHORT sel = RestoreOS2FS();
8530
8531 yyrc = GpiQuerySetIds(a, b, c, d, e);
8532 SetFS(sel);
8533
8534 return yyrc;
8535}
8536
8537#undef GpiQuerySetIds
8538#define GpiQuerySetIds _GpiQuerySetIds
8539
8540inline BOOL _GpiQueryTextAlignment(HPS a, PLONG b, PLONG c)
8541{
8542 BOOL yyrc;
8543 USHORT sel = RestoreOS2FS();
8544
8545 yyrc = GpiQueryTextAlignment(a, b, c);
8546 SetFS(sel);
8547
8548 return yyrc;
8549}
8550
8551#undef GpiQueryTextAlignment
8552#define GpiQueryTextAlignment _GpiQueryTextAlignment
8553
8554inline BOOL _GpiQueryTextBox(HPS a, LONG b, PCH c, LONG d, PPOINTL e)
8555{
8556 BOOL yyrc;
8557 USHORT sel = RestoreOS2FS();
8558
8559 yyrc = GpiQueryTextBox(a, b, c, d, e);
8560 SetFS(sel);
8561
8562 return yyrc;
8563}
8564
8565#undef GpiQueryTextBox
8566#define GpiQueryTextBox _GpiQueryTextBox
8567
8568inline BOOL _GpiQueryViewingLimits(HPS a, PRECTL b)
8569{
8570 BOOL yyrc;
8571 USHORT sel = RestoreOS2FS();
8572
8573 yyrc = GpiQueryViewingLimits(a, b);
8574 SetFS(sel);
8575
8576 return yyrc;
8577}
8578
8579#undef GpiQueryViewingLimits
8580#define GpiQueryViewingLimits _GpiQueryViewingLimits
8581
8582inline BOOL _GpiQueryViewingTransformMatrix(HPS a, LONG b, PMATRIXLF c)
8583{
8584 BOOL yyrc;
8585 USHORT sel = RestoreOS2FS();
8586
8587 yyrc = GpiQueryViewingTransformMatrix(a, b, c);
8588 SetFS(sel);
8589
8590 return yyrc;
8591}
8592
8593#undef GpiQueryViewingTransformMatrix
8594#define GpiQueryViewingTransformMatrix _GpiQueryViewingTransformMatrix
8595
8596inline BOOL _GpiQueryWidthTable(HPS a, LONG b, LONG c, PLONG d)
8597{
8598 BOOL yyrc;
8599 USHORT sel = RestoreOS2FS();
8600
8601 yyrc = GpiQueryWidthTable(a, b, c, d);
8602 SetFS(sel);
8603
8604 return yyrc;
8605}
8606
8607#undef GpiQueryWidthTable
8608#define GpiQueryWidthTable _GpiQueryWidthTable
8609
8610inline LONG _GpiRectInRegion(HPS a, HRGN b, PRECTL c)
8611{
8612 LONG yyrc;
8613 USHORT sel = RestoreOS2FS();
8614
8615 yyrc = GpiRectInRegion(a, b, c);
8616 SetFS(sel);
8617
8618 return yyrc;
8619}
8620
8621#undef GpiRectInRegion
8622#define GpiRectInRegion _GpiRectInRegion
8623
8624inline LONG _GpiRectVisible(HPS a, PRECTL b)
8625{
8626 LONG yyrc;
8627 USHORT sel = RestoreOS2FS();
8628
8629 yyrc = GpiRectVisible(a, b);
8630 SetFS(sel);
8631
8632 return yyrc;
8633}
8634
8635#undef GpiRectVisible
8636#define GpiRectVisible _GpiRectVisible
8637
8638inline BOOL _GpiRotate(HPS a, PMATRIXLF b, LONG c, FIXED d, PPOINTL e)
8639{
8640 BOOL yyrc;
8641 USHORT sel = RestoreOS2FS();
8642
8643 yyrc = GpiRotate(a, b, c, d, e);
8644 SetFS(sel);
8645
8646 return yyrc;
8647}
8648
8649#undef GpiRotate
8650#define GpiRotate _GpiRotate
8651
8652inline BOOL _GpiSaveMetaFile(HMF a, PCSZ b)
8653{
8654 BOOL yyrc;
8655 USHORT sel = RestoreOS2FS();
8656
8657 yyrc = GpiSaveMetaFile(a, b);
8658 SetFS(sel);
8659
8660 return yyrc;
8661}
8662
8663#undef GpiSaveMetaFile
8664#define GpiSaveMetaFile _GpiSaveMetaFile
8665
8666inline BOOL _GpiScale(HPS a, PMATRIXLF b, LONG c, PFIXED d, PPOINTL e)
8667{
8668 BOOL yyrc;
8669 USHORT sel = RestoreOS2FS();
8670
8671 yyrc = GpiScale(a, b, c, d, e);
8672 SetFS(sel);
8673
8674 return yyrc;
8675}
8676
8677#undef GpiScale
8678#define GpiScale _GpiScale
8679
8680inline HPAL _GpiSelectPalette(HPS a, HPAL b)
8681{
8682 HPAL yyrc;
8683 USHORT sel = RestoreOS2FS();
8684
8685 yyrc = GpiSelectPalette(a, b);
8686 SetFS(sel);
8687
8688 return yyrc;
8689}
8690
8691#undef GpiSelectPalette
8692#define GpiSelectPalette _GpiSelectPalette
8693
8694inline BOOL _GpiSetArcParams(HPS a, PARCPARAMS b)
8695{
8696 BOOL yyrc;
8697 USHORT sel = RestoreOS2FS();
8698
8699 yyrc = GpiSetArcParams(a, b);
8700 SetFS(sel);
8701
8702 return yyrc;
8703}
8704
8705#undef GpiSetArcParams
8706#define GpiSetArcParams _GpiSetArcParams
8707
8708inline BOOL _GpiSetAttrMode(HPS a, LONG b)
8709{
8710 BOOL yyrc;
8711 USHORT sel = RestoreOS2FS();
8712
8713 yyrc = GpiSetAttrMode(a, b);
8714 SetFS(sel);
8715
8716 return yyrc;
8717}
8718
8719#undef GpiSetAttrMode
8720#define GpiSetAttrMode _GpiSetAttrMode
8721
8722inline BOOL _GpiSetAttrs(HPS a, LONG b, ULONG c, ULONG d, PVOID e)
8723{
8724 BOOL yyrc;
8725 USHORT sel = RestoreOS2FS();
8726
8727 yyrc = GpiSetAttrs(a, b, c, d, e);
8728 SetFS(sel);
8729
8730 return yyrc;
8731}
8732
8733#undef GpiSetAttrs
8734#define GpiSetAttrs _GpiSetAttrs
8735
8736inline BOOL _GpiSetBackColor(HPS a, LONG b)
8737{
8738 BOOL yyrc;
8739 USHORT sel = RestoreOS2FS();
8740
8741 yyrc = GpiSetBackColor(a, b);
8742 SetFS(sel);
8743
8744 return yyrc;
8745}
8746
8747#undef GpiSetBackColor
8748#define GpiSetBackColor _GpiSetBackColor
8749
8750inline BOOL _GpiSetBackMix(HPS a, LONG b)
8751{
8752 BOOL yyrc;
8753 USHORT sel = RestoreOS2FS();
8754
8755 yyrc = GpiSetBackMix(a, b);
8756 SetFS(sel);
8757
8758 return yyrc;
8759}
8760
8761#undef GpiSetBackMix
8762#define GpiSetBackMix _GpiSetBackMix
8763
8764inline BOOL _GpiSetCharAngle(HPS a, PGRADIENTL b)
8765{
8766 BOOL yyrc;
8767 USHORT sel = RestoreOS2FS();
8768
8769 yyrc = GpiSetCharAngle(a, b);
8770 SetFS(sel);
8771
8772 return yyrc;
8773}
8774
8775#undef GpiSetCharAngle
8776#define GpiSetCharAngle _GpiSetCharAngle
8777
8778inline BOOL _GpiSetCharBox(HPS a, PSIZEF b)
8779{
8780 BOOL yyrc;
8781 USHORT sel = RestoreOS2FS();
8782
8783 yyrc = GpiSetCharBox(a, b);
8784 SetFS(sel);
8785
8786 return yyrc;
8787}
8788
8789#undef GpiSetCharBox
8790#define GpiSetCharBox _GpiSetCharBox
8791
8792inline BOOL _GpiSetCharBreakExtra(HPS a, FIXED b)
8793{
8794 BOOL yyrc;
8795 USHORT sel = RestoreOS2FS();
8796
8797 yyrc = GpiSetCharBreakExtra(a, b);
8798 SetFS(sel);
8799
8800 return yyrc;
8801}
8802
8803#undef GpiSetCharBreakExtra
8804#define GpiSetCharBreakExtra _GpiSetCharBreakExtra
8805
8806inline BOOL _GpiSetCharDirection(HPS a, LONG b)
8807{
8808 BOOL yyrc;
8809 USHORT sel = RestoreOS2FS();
8810
8811 yyrc = GpiSetCharDirection(a, b);
8812 SetFS(sel);
8813
8814 return yyrc;
8815}
8816
8817#undef GpiSetCharDirection
8818#define GpiSetCharDirection _GpiSetCharDirection
8819
8820inline BOOL _GpiSetCharExtra(HPS a, FIXED b)
8821{
8822 BOOL yyrc;
8823 USHORT sel = RestoreOS2FS();
8824
8825 yyrc = GpiSetCharExtra(a, b);
8826 SetFS(sel);
8827
8828 return yyrc;
8829}
8830
8831#undef GpiSetCharExtra
8832#define GpiSetCharExtra _GpiSetCharExtra
8833
8834inline BOOL _GpiSetCharMode(HPS a, LONG b)
8835{
8836 BOOL yyrc;
8837 USHORT sel = RestoreOS2FS();
8838
8839 yyrc = GpiSetCharMode(a, b);
8840 SetFS(sel);
8841
8842 return yyrc;
8843}
8844
8845#undef GpiSetCharMode
8846#define GpiSetCharMode _GpiSetCharMode
8847
8848inline BOOL _GpiSetCharSet(HPS a, LONG b)
8849{
8850 BOOL yyrc;
8851 USHORT sel = RestoreOS2FS();
8852
8853 yyrc = GpiSetCharSet(a, b);
8854 SetFS(sel);
8855
8856 return yyrc;
8857}
8858
8859#undef GpiSetCharSet
8860#define GpiSetCharSet _GpiSetCharSet
8861
8862inline BOOL _GpiSetCharShear(HPS a, PPOINTL b)
8863{
8864 BOOL yyrc;
8865 USHORT sel = RestoreOS2FS();
8866
8867 yyrc = GpiSetCharShear(a, b);
8868 SetFS(sel);
8869
8870 return yyrc;
8871}
8872
8873#undef GpiSetCharShear
8874#define GpiSetCharShear _GpiSetCharShear
8875
8876inline BOOL _GpiSetClipPath(HPS a, LONG b, LONG c)
8877{
8878 BOOL yyrc;
8879 USHORT sel = RestoreOS2FS();
8880
8881 yyrc = GpiSetClipPath(a, b, c);
8882 SetFS(sel);
8883
8884 return yyrc;
8885}
8886
8887#undef GpiSetClipPath
8888#define GpiSetClipPath _GpiSetClipPath
8889
8890inline LONG _GpiSetClipRegion(HPS a, HRGN b, PHRGN c)
8891{
8892 LONG yyrc;
8893 USHORT sel = RestoreOS2FS();
8894
8895 yyrc = GpiSetClipRegion(a, b, c);
8896 SetFS(sel);
8897
8898 return yyrc;
8899}
8900
8901#undef GpiSetClipRegion
8902#define GpiSetClipRegion _GpiSetClipRegion
8903
8904inline BOOL _GpiSetColor(HPS a, LONG b)
8905{
8906 BOOL yyrc;
8907 USHORT sel = RestoreOS2FS();
8908
8909 yyrc = GpiSetColor(a, b);
8910 SetFS(sel);
8911
8912 return yyrc;
8913}
8914
8915#undef GpiSetColor
8916#define GpiSetColor _GpiSetColor
8917
8918inline BOOL _GpiSetCp(HPS a, ULONG b)
8919{
8920 BOOL yyrc;
8921 USHORT sel = RestoreOS2FS();
8922
8923 yyrc = GpiSetCp(a, b);
8924 SetFS(sel);
8925
8926 return yyrc;
8927}
8928
8929#undef GpiSetCp
8930#define GpiSetCp _GpiSetCp
8931
8932inline BOOL _GpiSetCurrentPosition(HPS a, PPOINTL b)
8933{
8934 BOOL yyrc;
8935 USHORT sel = RestoreOS2FS();
8936
8937 yyrc = GpiSetCurrentPosition(a, b);
8938 SetFS(sel);
8939
8940 return yyrc;
8941}
8942
8943#undef GpiSetCurrentPosition
8944#define GpiSetCurrentPosition _GpiSetCurrentPosition
8945
8946inline BOOL _GpiSetDefArcParams(HPS a, PARCPARAMS b)
8947{
8948 BOOL yyrc;
8949 USHORT sel = RestoreOS2FS();
8950
8951 yyrc = GpiSetDefArcParams(a, b);
8952 SetFS(sel);
8953
8954 return yyrc;
8955}
8956
8957#undef GpiSetDefArcParams
8958#define GpiSetDefArcParams _GpiSetDefArcParams
8959
8960inline BOOL _GpiSetDefAttrs(HPS a, LONG b, ULONG c, PVOID d)
8961{
8962 BOOL yyrc;
8963 USHORT sel = RestoreOS2FS();
8964
8965 yyrc = GpiSetDefAttrs(a, b, c, d);
8966 SetFS(sel);
8967
8968 return yyrc;
8969}
8970
8971#undef GpiSetDefAttrs
8972#define GpiSetDefAttrs _GpiSetDefAttrs
8973
8974inline BOOL _GpiSetDefaultViewMatrix(HPS a, LONG b, PMATRIXLF c, LONG d)
8975{
8976 BOOL yyrc;
8977 USHORT sel = RestoreOS2FS();
8978
8979 yyrc = GpiSetDefaultViewMatrix(a, b, c, d);
8980 SetFS(sel);
8981
8982 return yyrc;
8983}
8984
8985#undef GpiSetDefaultViewMatrix
8986#define GpiSetDefaultViewMatrix _GpiSetDefaultViewMatrix
8987
8988inline BOOL _GpiSetDefTag(HPS a, LONG b)
8989{
8990 BOOL yyrc;
8991 USHORT sel = RestoreOS2FS();
8992
8993 yyrc = GpiSetDefTag(a, b);
8994 SetFS(sel);
8995
8996 return yyrc;
8997}
8998
8999#undef GpiSetDefTag
9000#define GpiSetDefTag _GpiSetDefTag
9001
9002inline BOOL _GpiSetDefViewingLimits(HPS a, PRECTL b)
9003{
9004 BOOL yyrc;
9005 USHORT sel = RestoreOS2FS();
9006
9007 yyrc = GpiSetDefViewingLimits(a, b);
9008 SetFS(sel);
9009
9010 return yyrc;
9011}
9012
9013#undef GpiSetDefViewingLimits
9014#define GpiSetDefViewingLimits _GpiSetDefViewingLimits
9015
9016inline BOOL _GpiSetEditMode(HPS a, LONG b)
9017{
9018 BOOL yyrc;
9019 USHORT sel = RestoreOS2FS();
9020
9021 yyrc = GpiSetEditMode(a, b);
9022 SetFS(sel);
9023
9024 return yyrc;
9025}
9026
9027#undef GpiSetEditMode
9028#define GpiSetEditMode _GpiSetEditMode
9029
9030inline BOOL _GpiSetElementPointer(HPS a, LONG b)
9031{
9032 BOOL yyrc;
9033 USHORT sel = RestoreOS2FS();
9034
9035 yyrc = GpiSetElementPointer(a, b);
9036 SetFS(sel);
9037
9038 return yyrc;
9039}
9040
9041#undef GpiSetElementPointer
9042#define GpiSetElementPointer _GpiSetElementPointer
9043
9044inline BOOL _GpiSetElementPointerAtLabel(HPS a, LONG b)
9045{
9046 BOOL yyrc;
9047 USHORT sel = RestoreOS2FS();
9048
9049 yyrc = GpiSetElementPointerAtLabel(a, b);
9050 SetFS(sel);
9051
9052 return yyrc;
9053}
9054
9055#undef GpiSetElementPointerAtLabel
9056#define GpiSetElementPointerAtLabel _GpiSetElementPointerAtLabel
9057
9058inline BOOL _GpiSetGraphicsField(HPS a, PRECTL b)
9059{
9060 BOOL yyrc;
9061 USHORT sel = RestoreOS2FS();
9062
9063 yyrc = GpiSetGraphicsField(a, b);
9064 SetFS(sel);
9065
9066 return yyrc;
9067}
9068
9069#undef GpiSetGraphicsField
9070#define GpiSetGraphicsField _GpiSetGraphicsField
9071
9072inline BOOL _GpiSetLineEnd(HPS a, LONG b)
9073{
9074 BOOL yyrc;
9075 USHORT sel = RestoreOS2FS();
9076
9077 yyrc = GpiSetLineEnd(a, b);
9078 SetFS(sel);
9079
9080 return yyrc;
9081}
9082
9083#undef GpiSetLineEnd
9084#define GpiSetLineEnd _GpiSetLineEnd
9085
9086inline BOOL _GpiSetLineJoin(HPS a, LONG b)
9087{
9088 BOOL yyrc;
9089 USHORT sel = RestoreOS2FS();
9090
9091 yyrc = GpiSetLineJoin(a, b);
9092 SetFS(sel);
9093
9094 return yyrc;
9095}
9096
9097#undef GpiSetLineJoin
9098#define GpiSetLineJoin _GpiSetLineJoin
9099
9100inline BOOL _GpiSetLineType(HPS a, LONG b)
9101{
9102 BOOL yyrc;
9103 USHORT sel = RestoreOS2FS();
9104
9105 yyrc = GpiSetLineType(a, b);
9106 SetFS(sel);
9107
9108 return yyrc;
9109}
9110
9111#undef GpiSetLineType
9112#define GpiSetLineType _GpiSetLineType
9113
9114inline BOOL _GpiSetLineWidth(HPS a, FIXED b)
9115{
9116 BOOL yyrc;
9117 USHORT sel = RestoreOS2FS();
9118
9119 yyrc = GpiSetLineWidth(a, b);
9120 SetFS(sel);
9121
9122 return yyrc;
9123}
9124
9125#undef GpiSetLineWidth
9126#define GpiSetLineWidth _GpiSetLineWidth
9127
9128inline BOOL _GpiSetLineWidthGeom(HPS a, LONG b)
9129{
9130 BOOL yyrc;
9131 USHORT sel = RestoreOS2FS();
9132
9133 yyrc = GpiSetLineWidthGeom(a, b);
9134 SetFS(sel);
9135
9136 return yyrc;
9137}
9138
9139#undef GpiSetLineWidthGeom
9140#define GpiSetLineWidthGeom _GpiSetLineWidthGeom
9141
9142inline BOOL _GpiSetMarker(HPS a, LONG b)
9143{
9144 BOOL yyrc;
9145 USHORT sel = RestoreOS2FS();
9146
9147 yyrc = GpiSetMarker(a, b);
9148 SetFS(sel);
9149
9150 return yyrc;
9151}
9152
9153#undef GpiSetMarker
9154#define GpiSetMarker _GpiSetMarker
9155
9156inline BOOL _GpiSetMarkerBox(HPS a, PSIZEF b)
9157{
9158 BOOL yyrc;
9159 USHORT sel = RestoreOS2FS();
9160
9161 yyrc = GpiSetMarkerBox(a, b);
9162 SetFS(sel);
9163
9164 return yyrc;
9165}
9166
9167#undef GpiSetMarkerBox
9168#define GpiSetMarkerBox _GpiSetMarkerBox
9169
9170inline BOOL _GpiSetMarkerSet(HPS a, LONG b)
9171{
9172 BOOL yyrc;
9173 USHORT sel = RestoreOS2FS();
9174
9175 yyrc = GpiSetMarkerSet(a, b);
9176 SetFS(sel);
9177
9178 return yyrc;
9179}
9180
9181#undef GpiSetMarkerSet
9182#define GpiSetMarkerSet _GpiSetMarkerSet
9183
9184inline BOOL _GpiSetMetaFileBits(HMF a, LONG b, LONG c, PBYTE d)
9185{
9186 BOOL yyrc;
9187 USHORT sel = RestoreOS2FS();
9188
9189 yyrc = GpiSetMetaFileBits(a, b, c, d);
9190 SetFS(sel);
9191
9192 return yyrc;
9193}
9194
9195#undef GpiSetMetaFileBits
9196#define GpiSetMetaFileBits _GpiSetMetaFileBits
9197
9198inline BOOL _GpiSetMix(HPS a, LONG b)
9199{
9200 BOOL yyrc;
9201 USHORT sel = RestoreOS2FS();
9202
9203 yyrc = GpiSetMix(a, b);
9204 SetFS(sel);
9205
9206 return yyrc;
9207}
9208
9209#undef GpiSetMix
9210#define GpiSetMix _GpiSetMix
9211
9212inline BOOL _GpiSetModelTransformMatrix(HPS a, LONG b, PMATRIXLF c, LONG d)
9213{
9214 BOOL yyrc;
9215 USHORT sel = RestoreOS2FS();
9216
9217 yyrc = GpiSetModelTransformMatrix(a, b, c, d);
9218 SetFS(sel);
9219
9220 return yyrc;
9221}
9222
9223#undef GpiSetModelTransformMatrix
9224#define GpiSetModelTransformMatrix _GpiSetModelTransformMatrix
9225
9226inline BOOL _GpiSetPageViewport(HPS a, PRECTL b)
9227{
9228 BOOL yyrc;
9229 USHORT sel = RestoreOS2FS();
9230
9231 yyrc = GpiSetPageViewport(a, b);
9232 SetFS(sel);
9233
9234 return yyrc;
9235}
9236
9237#undef GpiSetPageViewport
9238#define GpiSetPageViewport _GpiSetPageViewport
9239
9240inline BOOL _GpiSetPaletteEntries(HPAL a, ULONG b, ULONG c, ULONG d, ULONG *e)
9241{
9242 BOOL yyrc;
9243 USHORT sel = RestoreOS2FS();
9244
9245 yyrc = GpiSetPaletteEntries(a, b, c, d, e);
9246 SetFS(sel);
9247
9248 return yyrc;
9249}
9250
9251#undef GpiSetPaletteEntries
9252#define GpiSetPaletteEntries _GpiSetPaletteEntries
9253
9254inline BOOL _GpiSetPattern(HPS a, LONG b)
9255{
9256 BOOL yyrc;
9257 USHORT sel = RestoreOS2FS();
9258
9259 yyrc = GpiSetPattern(a, b);
9260 SetFS(sel);
9261
9262 return yyrc;
9263}
9264
9265#undef GpiSetPattern
9266#define GpiSetPattern _GpiSetPattern
9267
9268inline BOOL _GpiSetPatternRefPoint(HPS a, PPOINTL b)
9269{
9270 BOOL yyrc;
9271 USHORT sel = RestoreOS2FS();
9272
9273 yyrc = GpiSetPatternRefPoint(a, b);
9274 SetFS(sel);
9275
9276 return yyrc;
9277}
9278
9279#undef GpiSetPatternRefPoint
9280#define GpiSetPatternRefPoint _GpiSetPatternRefPoint
9281
9282inline BOOL _GpiSetPatternSet(HPS a, LONG b)
9283{
9284 BOOL yyrc;
9285 USHORT sel = RestoreOS2FS();
9286
9287 yyrc = GpiSetPatternSet(a, b);
9288 SetFS(sel);
9289
9290 return yyrc;
9291}
9292
9293#undef GpiSetPatternSet
9294#define GpiSetPatternSet _GpiSetPatternSet
9295
9296inline BOOL _GpiSetRegion(HPS a, HRGN b, LONG c, PRECTL d)
9297{
9298 BOOL yyrc;
9299 USHORT sel = RestoreOS2FS();
9300
9301 yyrc = GpiSetRegion(a, b, c, d);
9302 SetFS(sel);
9303
9304 return yyrc;
9305}
9306
9307#undef GpiSetRegion
9308#define GpiSetRegion _GpiSetRegion
9309
9310inline BOOL _GpiSetSegmentTransformMatrix(HPS a, LONG b, LONG c, MATRIXLF *d, LONG e)
9311{
9312 BOOL yyrc;
9313 USHORT sel = RestoreOS2FS();
9314
9315 yyrc = GpiSetSegmentTransformMatrix(a, b, c, d, e);
9316 SetFS(sel);
9317
9318 return yyrc;
9319}
9320
9321#undef GpiSetSegmentTransformMatrix
9322#define GpiSetSegmentTransformMatrix _GpiSetSegmentTransformMatrix
9323
9324inline BOOL _GpiSetTextAlignment(HPS a, LONG b, LONG c)
9325{
9326 BOOL yyrc;
9327 USHORT sel = RestoreOS2FS();
9328
9329 yyrc = GpiSetTextAlignment(a, b, c);
9330 SetFS(sel);
9331
9332 return yyrc;
9333}
9334
9335#undef GpiSetTextAlignment
9336#define GpiSetTextAlignment _GpiSetTextAlignment
9337
9338inline BOOL _GpiSetViewingLimits(HPS a, PRECTL b)
9339{
9340 BOOL yyrc;
9341 USHORT sel = RestoreOS2FS();
9342
9343 yyrc = GpiSetViewingLimits(a, b);
9344 SetFS(sel);
9345
9346 return yyrc;
9347}
9348
9349#undef GpiSetViewingLimits
9350#define GpiSetViewingLimits _GpiSetViewingLimits
9351
9352inline BOOL _GpiSetViewingTransformMatrix(HPS a, LONG b, MATRIXLF *c, LONG d)
9353{
9354 BOOL yyrc;
9355 USHORT sel = RestoreOS2FS();
9356
9357 yyrc = GpiSetViewingTransformMatrix(a, b, c, d);
9358 SetFS(sel);
9359
9360 return yyrc;
9361}
9362
9363#undef GpiSetViewingTransformMatrix
9364#define GpiSetViewingTransformMatrix _GpiSetViewingTransformMatrix
9365
9366inline LONG _GpiStrokePath(HPS a, LONG b, ULONG c)
9367{
9368 LONG yyrc;
9369 USHORT sel = RestoreOS2FS();
9370
9371 yyrc = GpiStrokePath(a, b, c);
9372 SetFS(sel);
9373
9374 return yyrc;
9375}
9376
9377#undef GpiStrokePath
9378#define GpiStrokePath _GpiStrokePath
9379
9380inline BOOL _GpiTranslate(HPS a, PMATRIXLF b, LONG c, PPOINTL d)
9381{
9382 BOOL yyrc;
9383 USHORT sel = RestoreOS2FS();
9384
9385 yyrc = GpiTranslate(a, b, c, d);
9386 SetFS(sel);
9387
9388 return yyrc;
9389}
9390
9391#undef GpiTranslate
9392#define GpiTranslate _GpiTranslate
9393
9394inline BOOL _GpiUnloadFonts(HAB a, PCSZ b)
9395{
9396 BOOL yyrc;
9397 USHORT sel = RestoreOS2FS();
9398
9399 yyrc = GpiUnloadFonts(a, b);
9400 SetFS(sel);
9401
9402 return yyrc;
9403}
9404
9405#undef GpiUnloadFonts
9406#define GpiUnloadFonts _GpiUnloadFonts
9407
9408inline BOOL _GpiUnloadPublicFonts(HAB a, PCSZ b)
9409{
9410 BOOL yyrc;
9411 USHORT sel = RestoreOS2FS();
9412
9413 yyrc = GpiUnloadPublicFonts(a, b);
9414 SetFS(sel);
9415
9416 return yyrc;
9417}
9418
9419#undef GpiUnloadPublicFonts
9420#define GpiUnloadPublicFonts _GpiUnloadPublicFonts
9421
9422#ifdef INCL_GPIBITMAPS
9423inline LONG _GpiBitBlt(HPS a, HPS b, LONG c, PPOINTL d, LONG e, ULONG f)
9424{
9425 LONG yyrc;
9426 USHORT sel = RestoreOS2FS();
9427
9428 yyrc = GpiBitBlt(a, b, c, d, e, f);
9429 SetFS(sel);
9430
9431 return yyrc;
9432}
9433
9434#undef GpiBitBlt
9435#define GpiBitBlt _GpiBitBlt
9436
9437inline BOOL _GpiDeleteBitmap(HBITMAP a)
9438{
9439 BOOL yyrc;
9440 USHORT sel = RestoreOS2FS();
9441
9442 yyrc = GpiDeleteBitmap(a);
9443 SetFS(sel);
9444
9445 return yyrc;
9446}
9447
9448#undef GpiDeleteBitmap
9449#define GpiDeleteBitmap _GpiDeleteBitmap
9450
9451inline HBITMAP _GpiLoadBitmap(HPS a, HMODULE b, ULONG c, LONG d, LONG e)
9452{
9453 HBITMAP yyrc;
9454 USHORT sel = RestoreOS2FS();
9455
9456 yyrc = GpiLoadBitmap(a, b, c, d, e);
9457 SetFS(sel);
9458
9459 return yyrc;
9460}
9461
9462#undef GpiLoadBitmap
9463#define GpiLoadBitmap _GpiLoadBitmap
9464
9465inline HBITMAP _GpiSetBitmap(HPS a, HBITMAP b)
9466{
9467 HBITMAP yyrc;
9468 USHORT sel = RestoreOS2FS();
9469
9470 yyrc = GpiSetBitmap(a, b);
9471 SetFS(sel);
9472
9473 return yyrc;
9474}
9475
9476#undef GpiSetBitmap
9477#define GpiSetBitmap _GpiSetBitmap
9478
9479inline LONG _GpiWCBitBlt(HPS a, HBITMAP b, LONG c, PPOINTL d, LONG e, ULONG f)
9480{
9481 LONG yyrc;
9482 USHORT sel = RestoreOS2FS();
9483
9484 yyrc = GpiWCBitBlt(a, b, c, d, e, f);
9485 SetFS(sel);
9486
9487 return yyrc;
9488}
9489
9490#undef GpiWCBitBlt
9491#define GpiWCBitBlt _GpiWCBitBlt
9492
9493inline HBITMAP _GpiCreateBitmap(HPS a, BITMAPINFOHEADER2 *b, ULONG c, PBYTE d, BITMAPINFO2 *e)
9494{
9495 HBITMAP yyrc;
9496 USHORT sel = RestoreOS2FS();
9497
9498 yyrc = GpiCreateBitmap(a, b, c, d, e);
9499 SetFS(sel);
9500
9501 return yyrc;
9502}
9503
9504#undef GpiCreateBitmap
9505#define GpiCreateBitmap _GpiCreateBitmap
9506
9507inline LONG _GpiDrawBits(HPS a, PVOID b, BITMAPINFO2 *c, LONG d, PPOINTL e, LONG f, ULONG g)
9508{
9509 LONG yyrc;
9510 USHORT sel = RestoreOS2FS();
9511
9512 yyrc = GpiDrawBits(a, b, c, d, e, f, g);
9513 SetFS(sel);
9514
9515 return yyrc;
9516}
9517
9518#undef GpiDrawBits
9519#define GpiDrawBits _GpiDrawBits
9520
9521inline LONG _GpiFloodFill(HPS a, LONG b, LONG c)
9522{
9523 LONG yyrc;
9524 USHORT sel = RestoreOS2FS();
9525
9526 yyrc = GpiFloodFill(a, b, c);
9527 SetFS(sel);
9528
9529 return yyrc;
9530}
9531
9532#undef GpiFloodFill
9533#define GpiFloodFill _GpiFloodFill
9534
9535inline LONG _GpiQueryBitmapBits(HPS a, LONG b, LONG c, PBYTE d, PBITMAPINFO2 e)
9536{
9537 LONG yyrc;
9538 USHORT sel = RestoreOS2FS();
9539
9540 yyrc = GpiQueryBitmapBits(a, b, c, d, e);
9541 SetFS(sel);
9542
9543 return yyrc;
9544}
9545
9546#undef GpiQueryBitmapBits
9547#define GpiQueryBitmapBits _GpiQueryBitmapBits
9548
9549inline BOOL _GpiQueryBitmapDimension(HBITMAP a, PSIZEL b)
9550{
9551 BOOL yyrc;
9552 USHORT sel = RestoreOS2FS();
9553
9554 yyrc = GpiQueryBitmapDimension(a, b);
9555 SetFS(sel);
9556
9557 return yyrc;
9558}
9559
9560#undef GpiQueryBitmapDimension
9561#define GpiQueryBitmapDimension _GpiQueryBitmapDimension
9562
9563inline HBITMAP _GpiQueryBitmapHandle(HPS a, LONG b)
9564{
9565 HBITMAP yyrc;
9566 USHORT sel = RestoreOS2FS();
9567
9568 yyrc = GpiQueryBitmapHandle(a, b);
9569 SetFS(sel);
9570
9571 return yyrc;
9572}
9573
9574#undef GpiQueryBitmapHandle
9575#define GpiQueryBitmapHandle _GpiQueryBitmapHandle
9576
9577inline BOOL _GpiQueryBitmapInfoHeader(HBITMAP a, PBITMAPINFOHEADER2 b)
9578{
9579 BOOL yyrc;
9580 USHORT sel = RestoreOS2FS();
9581
9582 yyrc = GpiQueryBitmapInfoHeader(a, b);
9583 SetFS(sel);
9584
9585 return yyrc;
9586}
9587
9588#undef GpiQueryBitmapInfoHeader
9589#define GpiQueryBitmapInfoHeader _GpiQueryBitmapInfoHeader
9590
9591inline BOOL _GpiQueryBitmapParameters(HBITMAP a, PBITMAPINFOHEADER b)
9592{
9593 BOOL yyrc;
9594 USHORT sel = RestoreOS2FS();
9595
9596 yyrc = GpiQueryBitmapParameters(a, b);
9597 SetFS(sel);
9598
9599 return yyrc;
9600}
9601
9602#undef GpiQueryBitmapParameters
9603#define GpiQueryBitmapParameters _GpiQueryBitmapParameters
9604
9605inline BOOL _GpiQueryDeviceBitmapFormats(HPS a, LONG b, PLONG c)
9606{
9607 BOOL yyrc;
9608 USHORT sel = RestoreOS2FS();
9609
9610 yyrc = GpiQueryDeviceBitmapFormats(a, b, c);
9611 SetFS(sel);
9612
9613 return yyrc;
9614}
9615
9616#undef GpiQueryDeviceBitmapFormats
9617#define GpiQueryDeviceBitmapFormats _GpiQueryDeviceBitmapFormats
9618
9619inline LONG _GpiSetBitmapBits(HPS a, LONG b, LONG c, PBYTE d, BITMAPINFO2 *e)
9620{
9621 LONG yyrc;
9622 USHORT sel = RestoreOS2FS();
9623
9624 yyrc = GpiSetBitmapBits(a, b, c, d, e);
9625 SetFS(sel);
9626
9627 return yyrc;
9628}
9629
9630#undef GpiSetBitmapBits
9631#define GpiSetBitmapBits _GpiSetBitmapBits
9632
9633inline LONG _GpiQueryPel(HPS a, PPOINTL b)
9634{
9635 LONG yyrc;
9636 USHORT sel = RestoreOS2FS();
9637
9638 yyrc = GpiQueryPel(a, b);
9639 SetFS(sel);
9640
9641 return yyrc;
9642}
9643
9644#undef GpiQueryPel
9645#define GpiQueryPel _GpiQueryPel
9646
9647inline BOOL _GpiSetBitmapDimension(HBITMAP a, SIZEL *b)
9648{
9649 BOOL yyrc;
9650 USHORT sel = RestoreOS2FS();
9651
9652 yyrc = GpiSetBitmapDimension(a, b);
9653 SetFS(sel);
9654
9655 return yyrc;
9656}
9657
9658#undef GpiSetBitmapDimension
9659#define GpiSetBitmapDimension _GpiSetBitmapDimension
9660
9661inline BOOL _GpiSetBitmapId(HPS a, HBITMAP b, LONG c)
9662{
9663 BOOL yyrc;
9664 USHORT sel = RestoreOS2FS();
9665
9666 yyrc = GpiSetBitmapId(a, b, c);
9667 SetFS(sel);
9668
9669 return yyrc;
9670}
9671
9672#undef GpiSetBitmapId
9673#define GpiSetBitmapId _GpiSetBitmapId
9674
9675inline LONG _GpiSetPel(HPS a, PPOINTL b)
9676{
9677 LONG yyrc;
9678 USHORT sel = RestoreOS2FS();
9679
9680 yyrc = GpiSetPel(a, b);
9681 SetFS(sel);
9682
9683 return yyrc;
9684}
9685
9686#undef GpiSetPel
9687#define GpiSetPel _GpiSetPel
9688
9689#endif
9690#ifdef INCL_GPICONTROL
9691inline BOOL _GpiAssociate(HPS a, HDC b)
9692{
9693 BOOL yyrc;
9694 USHORT sel = RestoreOS2FS();
9695
9696 yyrc = GpiAssociate(a, b);
9697 SetFS(sel);
9698
9699 return yyrc;
9700}
9701
9702#undef GpiAssociate
9703#define GpiAssociate _GpiAssociate
9704
9705inline HPS _GpiCreatePS(HAB a, HDC b, PSIZEL c, ULONG d)
9706{
9707 HPS yyrc;
9708 USHORT sel = RestoreOS2FS();
9709
9710 yyrc = GpiCreatePS(a, b, c, d);
9711 SetFS(sel);
9712
9713 return yyrc;
9714}
9715
9716#undef GpiDestroyPS
9717#define GpiDestroyPS _GpiDestroyPS
9718
9719inline BOOL _GpiDestroyPS(HPS a)
9720{
9721 BOOL yyrc;
9722 USHORT sel = RestoreOS2FS();
9723
9724 yyrc = GpiDestroyPS(a);
9725 SetFS(sel);
9726
9727 return yyrc;
9728}
9729
9730#undef GpiDestroyPS
9731#define GpiDestroyPS _GpiDestroyPS
9732
9733inline BOOL _GpiErase(HPS a)
9734{
9735 BOOL yyrc;
9736 USHORT sel = RestoreOS2FS();
9737
9738 yyrc = GpiErase(a);
9739 SetFS(sel);
9740
9741 return yyrc;
9742}
9743
9744#undef GpiErase
9745#define GpiErase _GpiErase
9746
9747inline HDC _GpiQueryDevice(HPS a)
9748{
9749 HDC yyrc;
9750 USHORT sel = RestoreOS2FS();
9751
9752 yyrc = GpiQueryDevice(a);
9753 SetFS(sel);
9754
9755 return yyrc;
9756}
9757
9758#undef GpiQueryDevice
9759#define GpiQueryDevice _GpiQueryDevice
9760
9761inline BOOL _GpiRestorePS(HPS a, LONG b)
9762{
9763 BOOL yyrc;
9764 USHORT sel = RestoreOS2FS();
9765
9766 yyrc = GpiRestorePS(a, b);
9767 SetFS(sel);
9768
9769 return yyrc;
9770}
9771
9772#undef GpiRestorePS
9773#define GpiRestorePS _GpiRestorePS
9774
9775inline LONG _GpiSavePS(HPS a)
9776{
9777 LONG yyrc;
9778 USHORT sel = RestoreOS2FS();
9779
9780 yyrc = GpiSavePS(a);
9781 SetFS(sel);
9782
9783 return yyrc;
9784}
9785
9786#undef GpiSavePS
9787#define GpiSavePS _GpiSavePS
9788
9789inline LONG _GpiErrorSegmentData(HPS a, PLONG b, PLONG c)
9790{
9791 LONG yyrc;
9792 USHORT sel = RestoreOS2FS();
9793
9794 yyrc = GpiErrorSegmentData(a, b, c);
9795 SetFS(sel);
9796
9797 return yyrc;
9798}
9799
9800#undef GpiErrorSegmentData
9801#define GpiErrorSegmentData _GpiErrorSegmentData
9802
9803inline LONG _GpiQueryDrawControl(HPS a, LONG b)
9804{
9805 LONG yyrc;
9806 USHORT sel = RestoreOS2FS();
9807
9808 yyrc = GpiQueryDrawControl(a, b);
9809 SetFS(sel);
9810
9811 return yyrc;
9812}
9813
9814#undef GpiQueryDrawControl
9815#define GpiQueryDrawControl _GpiQueryDrawControl
9816
9817inline LONG _GpiQueryDrawingMode(HPS a)
9818{
9819 LONG yyrc;
9820 USHORT sel = RestoreOS2FS();
9821
9822 yyrc = GpiQueryDrawingMode(a);
9823 SetFS(sel);
9824
9825 return yyrc;
9826}
9827
9828#undef GpiQueryDrawingMode
9829#define GpiQueryDrawingMode _GpiQueryDrawingMode
9830
9831inline ULONG _GpiQueryPS(HPS a, PSIZEL b)
9832{
9833 ULONG yyrc;
9834 USHORT sel = RestoreOS2FS();
9835
9836 yyrc = GpiQueryPS(a, b);
9837 SetFS(sel);
9838
9839 return yyrc;
9840}
9841
9842#undef GpiQueryPS
9843#define GpiQueryPS _GpiQueryPS
9844
9845inline BOOL _GpiResetPS(HPS a, ULONG b)
9846{
9847 BOOL yyrc;
9848 USHORT sel = RestoreOS2FS();
9849
9850 yyrc = GpiResetPS(a, b);
9851 SetFS(sel);
9852
9853 return yyrc;
9854}
9855
9856#undef GpiResetPS
9857#define GpiResetPS _GpiResetPS
9858
9859inline LONG _GpiQueryStopDraw(HPS a)
9860{
9861 LONG yyrc;
9862 USHORT sel = RestoreOS2FS();
9863
9864 yyrc = GpiQueryStopDraw(a);
9865 SetFS(sel);
9866
9867 return yyrc;
9868}
9869
9870#undef GpiQueryStopDraw
9871#define GpiQueryStopDraw _GpiQueryStopDraw
9872
9873inline BOOL _GpiSetDrawControl(HPS a, LONG b, LONG c)
9874{
9875 BOOL yyrc;
9876 USHORT sel = RestoreOS2FS();
9877
9878 yyrc = GpiSetDrawControl(a, b, c);
9879 SetFS(sel);
9880
9881 return yyrc;
9882}
9883
9884#undef GpiSetDrawControl
9885#define GpiSetDrawControl _GpiSetDrawControl
9886
9887inline BOOL _GpiSetDrawingMode(HPS a, LONG b)
9888{
9889 BOOL yyrc;
9890 USHORT sel = RestoreOS2FS();
9891
9892 yyrc = GpiSetDrawingMode(a, b);
9893 SetFS(sel);
9894
9895 return yyrc;
9896}
9897
9898#undef GpiSetDrawingMode
9899#define GpiSetDrawingMode _GpiSetDrawingMode
9900
9901inline BOOL _GpiSetPS(HPS a, SIZEL *b, ULONG c)
9902{
9903 BOOL yyrc;
9904 USHORT sel = RestoreOS2FS();
9905
9906 yyrc = GpiSetPS(a, b, c);
9907 SetFS(sel);
9908
9909 return yyrc;
9910}
9911
9912#undef GpiSetPS
9913#define GpiSetPS _GpiSetPS
9914
9915inline BOOL _GpiSetStopDraw(HPS a, LONG b)
9916{
9917 BOOL yyrc;
9918 USHORT sel = RestoreOS2FS();
9919
9920 yyrc = GpiSetStopDraw(a, b);
9921 SetFS(sel);
9922
9923 return yyrc;
9924}
9925
9926#undef GpiSetStopDraw
9927#define GpiSetStopDraw _GpiSetStopDraw
9928
9929#endif
9930#ifdef INCL_GPICORRELATION
9931inline LONG _GpiCorrelateChain(HPS a, LONG b, PPOINTL c, LONG d, LONG e, PLONG f)
9932{
9933 LONG yyrc;
9934 USHORT sel = RestoreOS2FS();
9935
9936 yyrc = GpiCorrelateChain(a, b, c, d, e, f);
9937 SetFS(sel);
9938
9939 return yyrc;
9940}
9941
9942#undef GpiCorrelateChain
9943#define GpiCorrelateChain _GpiCorrelateChain
9944
9945inline LONG _GpiCorrelateFrom(HPS a, LONG b, LONG c, LONG d, PPOINTL e, LONG f, LONG g, PLONG h)
9946{
9947 LONG yyrc;
9948 USHORT sel = RestoreOS2FS();
9949
9950 yyrc = GpiCorrelateFrom(a, b, c, d, e, f, g, h);
9951 SetFS(sel);
9952
9953 return yyrc;
9954}
9955
9956#undef GpiCorrelateFrom
9957#define GpiCorrelateFrom _GpiCorrelateFrom
9958
9959inline LONG _GpiCorrelateSegment(HPS a, LONG b, LONG c, PPOINTL d, LONG e, LONG f, PLONG g)
9960{
9961 LONG yyrc;
9962 USHORT sel = RestoreOS2FS();
9963
9964 yyrc = GpiCorrelateSegment(a, b, c, d, e, f, g);
9965 SetFS(sel);
9966
9967 return yyrc;
9968}
9969
9970#undef GpiCorrelateSegment
9971#define GpiCorrelateSegment _GpiCorrelateSegment
9972
9973inline BOOL _GpiQueryBoundaryData(HPS a, PRECTL b)
9974{
9975 BOOL yyrc;
9976 USHORT sel = RestoreOS2FS();
9977
9978 yyrc = GpiQueryBoundaryData(a, b);
9979 SetFS(sel);
9980
9981 return yyrc;
9982}
9983
9984#undef GpiQueryBoundaryData
9985#define GpiQueryBoundaryData _GpiQueryBoundaryData
9986
9987inline BOOL _GpiQueryPickAperturePosition(HPS a, PPOINTL b)
9988{
9989 BOOL yyrc;
9990 USHORT sel = RestoreOS2FS();
9991
9992 yyrc = GpiQueryPickAperturePosition(a, b);
9993 SetFS(sel);
9994
9995 return yyrc;
9996}
9997
9998#undef GpiQueryPickAperturePosition
9999#define GpiQueryPickAperturePosition _GpiQueryPickAperturePosition
10000
10001inline BOOL _GpiQueryPickApertureSize(HPS a, PSIZEL b)
10002{
10003 BOOL yyrc;
10004 USHORT sel = RestoreOS2FS();
10005
10006 yyrc = GpiQueryPickApertureSize(a, b);
10007 SetFS(sel);
10008
10009 return yyrc;
10010}
10011
10012#undef GpiQueryPickApertureSize
10013#define GpiQueryPickApertureSize _GpiQueryPickApertureSize
10014
10015inline BOOL _GpiQueryTag(HPS a, PLONG b)
10016{
10017 BOOL yyrc;
10018 USHORT sel = RestoreOS2FS();
10019
10020 yyrc = GpiQueryTag(a, b);
10021 SetFS(sel);
10022
10023 return yyrc;
10024}
10025
10026#undef GpiQueryTag
10027#define GpiQueryTag _GpiQueryTag
10028
10029inline BOOL _GpiResetBoundaryData(HPS a)
10030{
10031 BOOL yyrc;
10032 USHORT sel = RestoreOS2FS();
10033
10034 yyrc = GpiResetBoundaryData(a);
10035 SetFS(sel);
10036
10037 return yyrc;
10038}
10039
10040#undef GpiResetBoundaryData
10041#define GpiResetBoundaryData _GpiResetBoundaryData
10042
10043inline BOOL _GpiSetPickAperturePosition(HPS a, PPOINTL b)
10044{
10045 BOOL yyrc;
10046 USHORT sel = RestoreOS2FS();
10047
10048 yyrc = GpiSetPickAperturePosition(a, b);
10049 SetFS(sel);
10050
10051 return yyrc;
10052}
10053
10054#undef GpiSetPickAperturePosition
10055#define GpiSetPickAperturePosition _GpiSetPickAperturePosition
10056
10057inline BOOL _GpiSetPickApertureSize(HPS a, LONG b, SIZEL *c)
10058{
10059 BOOL yyrc;
10060 USHORT sel = RestoreOS2FS();
10061
10062 yyrc = GpiSetPickApertureSize(a, b, c);
10063 SetFS(sel);
10064
10065 return yyrc;
10066}
10067
10068#undef GpiSetPickApertureSize
10069#define GpiSetPickApertureSize _GpiSetPickApertureSize
10070
10071inline BOOL _GpiSetTag(HPS a, LONG b)
10072{
10073 BOOL yyrc;
10074 USHORT sel = RestoreOS2FS();
10075
10076 yyrc = GpiSetTag(a, b);
10077 SetFS(sel);
10078
10079 return yyrc;
10080}
10081
10082#undef GpiSetTag
10083#define GpiSetTag _GpiSetTag
10084
10085#endif
10086#ifdef INCL_GPIINK
10087inline BOOL _GpiBeginInkPath(HPS a, LONG b, ULONG c)
10088{
10089 BOOL yyrc;
10090 USHORT sel = RestoreOS2FS();
10091
10092 yyrc = GpiBeginInkPath(a, b, c);
10093 SetFS(sel);
10094
10095 return yyrc;
10096}
10097
10098#undef GpiBeginInkPath
10099#define GpiBeginInkPath _GpiBeginInkPath
10100
10101inline BOOL _GpiEndInkPath(HPS a, ULONG b)
10102{
10103 BOOL yyrc;
10104 USHORT sel = RestoreOS2FS();
10105
10106 yyrc = GpiEndInkPath(a, b);
10107 SetFS(sel);
10108
10109 return yyrc;
10110}
10111
10112#undef GpiEndInkPath
10113#define GpiEndInkPath _GpiEndInkPath
10114
10115inline LONG _GpiStrokeInkPath(HPS a, LONG b, LONG c, PPOINTL d, ULONG e)
10116{
10117 LONG yyrc;
10118 USHORT sel = RestoreOS2FS();
10119
10120 yyrc = GpiStrokeInkPath(a, b, c, d, e);
10121 SetFS(sel);
10122
10123 return yyrc;
10124}
10125
10126#undef GpiStrokeInkPath
10127#define GpiStrokeInkPath _GpiStrokeInkPath
10128
10129#endif
10130#ifdef INCL_GPISEGMENTS
10131inline BOOL _GpiCloseSegment(HPS a)
10132{
10133 BOOL yyrc;
10134 USHORT sel = RestoreOS2FS();
10135
10136 yyrc = GpiCloseSegment(a);
10137 SetFS(sel);
10138
10139 return yyrc;
10140}
10141
10142#undef GpiCloseSegment
10143#define GpiCloseSegment _GpiCloseSegment
10144
10145inline BOOL _GpiDeleteSegment(HPS a, LONG b)
10146{
10147 BOOL yyrc;
10148 USHORT sel = RestoreOS2FS();
10149
10150 yyrc = GpiDeleteSegment(a, b);
10151 SetFS(sel);
10152
10153 return yyrc;
10154}
10155
10156#undef GpiDeleteSegment
10157#define GpiDeleteSegment _GpiDeleteSegment
10158
10159inline BOOL _GpiDeleteSegments(HPS a, LONG b, LONG c)
10160{
10161 BOOL yyrc;
10162 USHORT sel = RestoreOS2FS();
10163
10164 yyrc = GpiDeleteSegments(a, b, c);
10165 SetFS(sel);
10166
10167 return yyrc;
10168}
10169
10170#undef GpiDeleteSegments
10171#define GpiDeleteSegments _GpiDeleteSegments
10172
10173inline BOOL _GpiDrawChain(HPS a)
10174{
10175 BOOL yyrc;
10176 USHORT sel = RestoreOS2FS();
10177
10178 yyrc = GpiDrawChain(a);
10179 SetFS(sel);
10180
10181 return yyrc;
10182}
10183
10184#undef GpiDrawChain
10185#define GpiDrawChain _GpiDrawChain
10186
10187inline BOOL _GpiDrawDynamics(HPS a)
10188{
10189 BOOL yyrc;
10190 USHORT sel = RestoreOS2FS();
10191
10192 yyrc = GpiDrawDynamics(a);
10193 SetFS(sel);
10194
10195 return yyrc;
10196}
10197
10198#undef GpiDrawDynamics
10199#define GpiDrawDynamics _GpiDrawDynamics
10200
10201inline BOOL _GpiDrawFrom(HPS a, LONG b, LONG c)
10202{
10203 BOOL yyrc;
10204 USHORT sel = RestoreOS2FS();
10205
10206 yyrc = GpiDrawFrom(a, b, c);
10207 SetFS(sel);
10208
10209 return yyrc;
10210}
10211
10212#undef GpiDrawFrom
10213#define GpiDrawFrom _GpiDrawFrom
10214
10215inline BOOL _GpiDrawSegment(HPS a, LONG b)
10216{
10217 BOOL yyrc;
10218 USHORT sel = RestoreOS2FS();
10219
10220 yyrc = GpiDrawSegment(a, b);
10221 SetFS(sel);
10222
10223 return yyrc;
10224}
10225
10226#undef GpiDrawSegment
10227#define GpiDrawSegment _GpiDrawSegment
10228
10229inline LONG _GpiGetData(HPS a, LONG b, PLONG c, LONG d, LONG e, PBYTE f)
10230{
10231 LONG yyrc;
10232 USHORT sel = RestoreOS2FS();
10233
10234 yyrc = GpiGetData(a, b, c, d, e, f);
10235 SetFS(sel);
10236
10237 return yyrc;
10238}
10239
10240#undef GpiGetData
10241#define GpiGetData _GpiGetData
10242
10243inline BOOL _GpiOpenSegment(HPS a, LONG b)
10244{
10245 BOOL yyrc;
10246 USHORT sel = RestoreOS2FS();
10247
10248 yyrc = GpiOpenSegment(a, b);
10249 SetFS(sel);
10250
10251 return yyrc;
10252}
10253
10254#undef GpiOpenSegment
10255#define GpiOpenSegment _GpiOpenSegment
10256
10257inline LONG _GpiPutData(HPS a, LONG b, PLONG c, PBYTE d)
10258{
10259 LONG yyrc;
10260 USHORT sel = RestoreOS2FS();
10261
10262 yyrc = GpiPutData(a, b, c, d);
10263 SetFS(sel);
10264
10265 return yyrc;
10266}
10267
10268#undef GpiPutData
10269#define GpiPutData _GpiPutData
10270
10271inline LONG _GpiQueryInitialSegmentAttrs(HPS a, LONG b)
10272{
10273 LONG yyrc;
10274 USHORT sel = RestoreOS2FS();
10275
10276 yyrc = GpiQueryInitialSegmentAttrs(a, b);
10277 SetFS(sel);
10278
10279 return yyrc;
10280}
10281
10282#undef GpiQueryInitialSegmentAttrs
10283#define GpiQueryInitialSegmentAttrs _GpiQueryInitialSegmentAttrs
10284
10285inline LONG _GpiQuerySegmentAttrs(HPS a, LONG b, LONG c)
10286{
10287 LONG yyrc;
10288 USHORT sel = RestoreOS2FS();
10289
10290 yyrc = GpiQuerySegmentAttrs(a, b, c);
10291 SetFS(sel);
10292
10293 return yyrc;
10294}
10295
10296#undef GpiQuerySegmentAttrs
10297#define GpiQuerySegmentAttrs _GpiQuerySegmentAttrs
10298
10299inline LONG _GpiQuerySegmentNames(HPS a, LONG b, LONG c, LONG d, PLONG e)
10300{
10301 LONG yyrc;
10302 USHORT sel = RestoreOS2FS();
10303
10304 yyrc = GpiQuerySegmentNames(a, b, c, d, e);
10305 SetFS(sel);
10306
10307 return yyrc;
10308}
10309
10310#undef GpiQuerySegmentNames
10311#define GpiQuerySegmentNames _GpiQuerySegmentNames
10312
10313inline LONG _GpiQuerySegmentPriority(HPS a, LONG b, LONG c)
10314{
10315 LONG yyrc;
10316 USHORT sel = RestoreOS2FS();
10317
10318 yyrc = GpiQuerySegmentPriority(a, b, c);
10319 SetFS(sel);
10320
10321 return yyrc;
10322}
10323
10324#undef GpiQuerySegmentPriority
10325#define GpiQuerySegmentPriority _GpiQuerySegmentPriority
10326
10327inline BOOL _GpiRemoveDynamics(HPS a, LONG b, LONG c)
10328{
10329 BOOL yyrc;
10330 USHORT sel = RestoreOS2FS();
10331
10332 yyrc = GpiRemoveDynamics(a, b, c);
10333 SetFS(sel);
10334
10335 return yyrc;
10336}
10337
10338#undef GpiRemoveDynamics
10339#define GpiRemoveDynamics _GpiRemoveDynamics
10340
10341inline BOOL _GpiSetInitialSegmentAttrs(HPS a, LONG b, LONG c)
10342{
10343 BOOL yyrc;
10344 USHORT sel = RestoreOS2FS();
10345
10346 yyrc = GpiSetInitialSegmentAttrs(a, b, c);
10347 SetFS(sel);
10348
10349 return yyrc;
10350}
10351
10352#undef GpiSetInitialSegmentAttrs
10353#define GpiSetInitialSegmentAttrs _GpiSetInitialSegmentAttrs
10354
10355inline BOOL _GpiSetSegmentAttrs(HPS a, LONG b, LONG c, LONG d)
10356{
10357 BOOL yyrc;
10358 USHORT sel = RestoreOS2FS();
10359
10360 yyrc = GpiSetSegmentAttrs(a, b, c, d);
10361 SetFS(sel);
10362
10363 return yyrc;
10364}
10365
10366#undef GpiSetSegmentAttrs
10367#define GpiSetSegmentAttrs _GpiSetSegmentAttrs
10368
10369inline BOOL _GpiSetSegmentPriority(HPS a, LONG b, LONG c, LONG d)
10370{
10371 BOOL yyrc;
10372 USHORT sel = RestoreOS2FS();
10373
10374 yyrc = GpiSetSegmentPriority(a, b, c, d);
10375 SetFS(sel);
10376
10377 return yyrc;
10378}
10379
10380#undef GpiSetSegmentPriority
10381#define GpiSetSegmentPriority _GpiSetSegmentPriority
10382
10383#endif
10384#ifdef INCL_DEV
10385inline LONG _DevEscape(HDC a, LONG b, LONG c, PBYTE d, PLONG e, PBYTE f)
10386{
10387 LONG yyrc;
10388 USHORT sel = RestoreOS2FS();
10389
10390 yyrc = DevEscape(a, b, c, d, e, f);
10391 SetFS(sel);
10392
10393 return yyrc;
10394}
10395
10396#undef DevEscape
10397#define DevEscape _DevEscape
10398
10399inline LONG _DevPostEscape(PCSZ a, PCSZ b, PCSZ c, PCSZ d, ULONG e, ULONG f, PBYTE g, ULONG h, PBYTE i)
10400{
10401 LONG yyrc;
10402 USHORT sel = RestoreOS2FS();
10403
10404 yyrc = DevPostEscape(a, b, c, d, e, f, g, h, i);
10405 SetFS(sel);
10406
10407 return yyrc;
10408}
10409
10410#undef DevPostEscape
10411#define DevPostEscape _DevPostEscape
10412
10413inline LONG _DevPostDeviceModes(HAB a, PDRIVDATA b, PCSZ c, PCSZ d, PCSZ e, ULONG f)
10414{
10415 LONG yyrc;
10416 USHORT sel = RestoreOS2FS();
10417
10418 yyrc = DevPostDeviceModes(a, b, c, d, e, f);
10419 SetFS(sel);
10420
10421 return yyrc;
10422}
10423
10424#undef DevPostDeviceModes
10425#define DevPostDeviceModes _DevPostDeviceModes
10426
10427inline BOOL _DevQueryDeviceNames(HAB a, PCSZ b, PLONG c, PSTR32 d, PSTR64 e, PLONG f, PSTR16 g)
10428{
10429 BOOL yyrc;
10430 USHORT sel = RestoreOS2FS();
10431
10432 yyrc = DevQueryDeviceNames(a, b, c, d, e, f, g);
10433 SetFS(sel);
10434
10435 return yyrc;
10436}
10437
10438#undef DevQueryDeviceNames
10439#define DevQueryDeviceNames _DevQueryDeviceNames
10440
10441inline LONG _DevQueryHardcopyCaps(HDC a, LONG b, LONG c, PHCINFO d)
10442{
10443 LONG yyrc;
10444 USHORT sel = RestoreOS2FS();
10445
10446 yyrc = DevQueryHardcopyCaps(a, b, c, d);
10447 SetFS(sel);
10448
10449 return yyrc;
10450}
10451
10452#undef DevQueryHardcopyCaps
10453#define DevQueryHardcopyCaps _DevQueryHardcopyCaps
10454
10455#endif
10456inline HMF _DevCloseDC(HDC a)
10457{
10458 HMF yyrc;
10459 USHORT sel = RestoreOS2FS();
10460
10461 yyrc = DevCloseDC(a);
10462 SetFS(sel);
10463
10464 return yyrc;
10465}
10466
10467#undef DevCloseDC
10468#define DevCloseDC _DevCloseDC
10469
10470inline HDC _DevOpenDC(HAB a, LONG b, PCSZ c, LONG d, PDEVOPENDATA e, HDC f)
10471{
10472 HDC yyrc;
10473 USHORT sel = RestoreOS2FS();
10474
10475 yyrc = DevOpenDC(a, b, c, d, e, f);
10476 SetFS(sel);
10477
10478 return yyrc;
10479}
10480
10481#undef DevOpenDC
10482#define DevOpenDC _DevOpenDC
10483
10484inline BOOL _DevQueryCaps(HDC a, LONG b, LONG c, PLONG d)
10485{
10486 BOOL yyrc;
10487 USHORT sel = RestoreOS2FS();
10488
10489 yyrc = DevQueryCaps(a, b, c, d);
10490 SetFS(sel);
10491
10492 return yyrc;
10493}
10494
10495#undef DevQueryCaps
10496#define DevQueryCaps _DevQueryCaps
10497
10498#endif
10499#ifdef INCL_WINPROGRAMLIST
10500inline HPROGRAM _PrfAddProgram(HINI a, PPROGDETAILS b, HPROGRAM c)
10501{
10502 HPROGRAM yyrc;
10503 USHORT sel = RestoreOS2FS();
10504
10505 yyrc = PrfAddProgram(a, b, c);
10506 SetFS(sel);
10507
10508 return yyrc;
10509}
10510
10511#undef PrfAddProgram
10512#define PrfAddProgram _PrfAddProgram
10513
10514inline BOOL _PrfChangeProgram(HINI a, HPROGRAM b, PPROGDETAILS c)
10515{
10516 BOOL yyrc;
10517 USHORT sel = RestoreOS2FS();
10518
10519 yyrc = PrfChangeProgram(a, b, c);
10520 SetFS(sel);
10521
10522 return yyrc;
10523}
10524
10525#undef PrfChangeProgram
10526#define PrfChangeProgram _PrfChangeProgram
10527
10528inline HPROGRAM _PrfCreateGroup(HINI a, PCSZ b, UCHAR c)
10529{
10530 HPROGRAM yyrc;
10531 USHORT sel = RestoreOS2FS();
10532
10533 yyrc = PrfCreateGroup(a, b, c);
10534 SetFS(sel);
10535
10536 return yyrc;
10537}
10538
10539#undef PrfCreateGroup
10540#define PrfCreateGroup _PrfCreateGroup
10541
10542inline BOOL _PrfDestroyGroup(HINI a, HPROGRAM b)
10543{
10544 BOOL yyrc;
10545 USHORT sel = RestoreOS2FS();
10546
10547 yyrc = PrfDestroyGroup(a, b);
10548 SetFS(sel);
10549
10550 return yyrc;
10551}
10552
10553#undef PrfDestroyGroup
10554#define PrfDestroyGroup _PrfDestroyGroup
10555
10556inline PROGCATEGORY _PrfQueryProgramCategory(HINI a, PCSZ b)
10557{
10558 PROGCATEGORY yyrc;
10559 USHORT sel = RestoreOS2FS();
10560
10561 yyrc = PrfQueryProgramCategory(a, b);
10562 SetFS(sel);
10563
10564 return yyrc;
10565}
10566
10567#undef PrfQueryProgramCategory
10568#define PrfQueryProgramCategory _PrfQueryProgramCategory
10569
10570inline ULONG _PrfQueryProgramHandle(HINI a, PCSZ b, PHPROGARRAY c, ULONG d, PULONG e)
10571{
10572 ULONG yyrc;
10573 USHORT sel = RestoreOS2FS();
10574
10575 yyrc = PrfQueryProgramHandle(a, b, c, d, e);
10576 SetFS(sel);
10577
10578 return yyrc;
10579}
10580
10581#undef PrfQueryProgramHandle
10582#define PrfQueryProgramHandle _PrfQueryProgramHandle
10583
10584inline ULONG _PrfQueryProgramTitles(HINI a, HPROGRAM b, PPROGTITLE c, ULONG d, PULONG e)
10585{
10586 ULONG yyrc;
10587 USHORT sel = RestoreOS2FS();
10588
10589 yyrc = PrfQueryProgramTitles(a, b, c, d, e);
10590 SetFS(sel);
10591
10592 return yyrc;
10593}
10594
10595#undef PrfQueryProgramTitles
10596#define PrfQueryProgramTitles _PrfQueryProgramTitles
10597
10598inline ULONG _PrfQueryDefinition(HINI a, HPROGRAM b, PPROGDETAILS c, ULONG d)
10599{
10600 ULONG yyrc;
10601 USHORT sel = RestoreOS2FS();
10602
10603 yyrc = PrfQueryDefinition(a, b, c, d);
10604 SetFS(sel);
10605
10606 return yyrc;
10607}
10608
10609#undef PrfQueryDefinition
10610#define PrfQueryDefinition _PrfQueryDefinition
10611
10612inline BOOL _PrfRemoveProgram(HINI a, HPROGRAM b)
10613{
10614 BOOL yyrc;
10615 USHORT sel = RestoreOS2FS();
10616
10617 yyrc = PrfRemoveProgram(a, b);
10618 SetFS(sel);
10619
10620 return yyrc;
10621}
10622
10623#undef PrfRemoveProgram
10624#define PrfRemoveProgram _PrfRemoveProgram
10625
10626inline HAPP _WinStartApp(HWND a, PPROGDETAILS b, PCSZ c, PVOID d, ULONG e)
10627{
10628 HAPP yyrc;
10629 USHORT sel = RestoreOS2FS();
10630
10631 yyrc = WinStartApp(a, b, c, d, e);
10632 SetFS(sel);
10633
10634 return yyrc;
10635}
10636
10637#undef WinStartApp
10638#define WinStartApp _WinStartApp
10639
10640inline BOOL _WinTerminateApp(HAPP a)
10641{
10642 BOOL yyrc;
10643 USHORT sel = RestoreOS2FS();
10644
10645 yyrc = WinTerminateApp(a);
10646 SetFS(sel);
10647
10648 return yyrc;
10649}
10650
10651#undef WinTerminateApp
10652#define WinTerminateApp _WinTerminateApp
10653
10654#endif
10655#ifdef INCL_WINSWITCHLIST
10656inline HSWITCH _WinAddSwitchEntry(PSWCNTRL a)
10657{
10658 HSWITCH yyrc;
10659 USHORT sel = RestoreOS2FS();
10660
10661 yyrc = WinAddSwitchEntry(a);
10662 SetFS(sel);
10663
10664 return yyrc;
10665}
10666
10667#undef WinAddSwitchEntry
10668#define WinAddSwitchEntry _WinAddSwitchEntry
10669
10670inline ULONG _WinRemoveSwitchEntry(HSWITCH a)
10671{
10672 ULONG yyrc;
10673 USHORT sel = RestoreOS2FS();
10674
10675 yyrc = WinRemoveSwitchEntry(a);
10676 SetFS(sel);
10677
10678 return yyrc;
10679}
10680
10681#undef WinRemoveSwitchEntry
10682#define WinRemoveSwitchEntry _WinRemoveSwitchEntry
10683
10684inline ULONG _WinChangeSwitchEntry(HSWITCH a, PSWCNTRL b)
10685{
10686 ULONG yyrc;
10687 USHORT sel = RestoreOS2FS();
10688
10689 yyrc = WinChangeSwitchEntry(a, b);
10690 SetFS(sel);
10691
10692 return yyrc;
10693}
10694
10695#undef WinChangeSwitchEntry
10696#define WinChangeSwitchEntry _WinChangeSwitchEntry
10697
10698inline HSWITCH _WinCreateSwitchEntry(HAB a, PSWCNTRL b)
10699{
10700 HSWITCH yyrc;
10701 USHORT sel = RestoreOS2FS();
10702
10703 yyrc = WinCreateSwitchEntry(a, b);
10704 SetFS(sel);
10705
10706 return yyrc;
10707}
10708
10709#undef WinCreateSwitchEntry
10710#define WinCreateSwitchEntry _WinCreateSwitchEntry
10711
10712inline ULONG _WinQuerySessionTitle(HAB a, ULONG b, PSZ c, ULONG d)
10713{
10714 ULONG yyrc;
10715 USHORT sel = RestoreOS2FS();
10716
10717 yyrc = WinQuerySessionTitle(a, b, c, d);
10718 SetFS(sel);
10719
10720 return yyrc;
10721}
10722
10723#undef WinQuerySessionTitle
10724#define WinQuerySessionTitle _WinQuerySessionTitle
10725
10726inline ULONG _WinQuerySwitchEntry(HSWITCH a, PSWCNTRL b)
10727{
10728 ULONG yyrc;
10729 USHORT sel = RestoreOS2FS();
10730
10731 yyrc = WinQuerySwitchEntry(a, b);
10732 SetFS(sel);
10733
10734 return yyrc;
10735}
10736
10737#undef WinQuerySwitchEntry
10738#define WinQuerySwitchEntry _WinQuerySwitchEntry
10739
10740inline HSWITCH _WinQuerySwitchHandle(HWND a, PID b)
10741{
10742 HSWITCH yyrc;
10743 USHORT sel = RestoreOS2FS();
10744
10745 yyrc = WinQuerySwitchHandle(a, b);
10746 SetFS(sel);
10747
10748 return yyrc;
10749}
10750
10751#undef WinQuerySwitchHandle
10752#define WinQuerySwitchHandle _WinQuerySwitchHandle
10753
10754inline ULONG _WinQuerySwitchList(HAB a, PSWBLOCK b, ULONG c)
10755{
10756 ULONG yyrc;
10757 USHORT sel = RestoreOS2FS();
10758
10759 yyrc = WinQuerySwitchList(a, b, c);
10760 SetFS(sel);
10761
10762 return yyrc;
10763}
10764
10765#undef WinQuerySwitchList
10766#define WinQuerySwitchList _WinQuerySwitchList
10767
10768inline ULONG _WinQueryTaskSizePos(HAB a, ULONG b, PSWP c)
10769{
10770 ULONG yyrc;
10771 USHORT sel = RestoreOS2FS();
10772
10773 yyrc = WinQueryTaskSizePos(a, b, c);
10774 SetFS(sel);
10775
10776 return yyrc;
10777}
10778
10779#undef WinQueryTaskSizePos
10780#define WinQueryTaskSizePos _WinQueryTaskSizePos
10781
10782inline ULONG _WinQueryTaskTitle(ULONG a, PSZ b, ULONG c)
10783{
10784 ULONG yyrc;
10785 USHORT sel = RestoreOS2FS();
10786
10787 yyrc = WinQueryTaskTitle(a, b, c);
10788 SetFS(sel);
10789
10790 return yyrc;
10791}
10792
10793#undef WinQueryTaskTitle
10794#define WinQueryTaskTitle _WinQueryTaskTitle
10795
10796inline ULONG _WinSwitchToProgram(HSWITCH a)
10797{
10798 ULONG yyrc;
10799 USHORT sel = RestoreOS2FS();
10800
10801 yyrc = WinSwitchToProgram(a);
10802 SetFS(sel);
10803
10804 return yyrc;
10805}
10806
10807#undef WinSwitchToProgram
10808#define WinSwitchToProgram _WinSwitchToProgram
10809
10810#endif
10811#ifdef INCL_WINSHELLDATA
10812inline BOOL _PrfCloseProfile(HINI a)
10813{
10814 BOOL yyrc;
10815 USHORT sel = RestoreOS2FS();
10816
10817 yyrc = PrfCloseProfile(a);
10818 SetFS(sel);
10819
10820 return yyrc;
10821}
10822
10823#undef PrfCloseProfile
10824#define PrfCloseProfile _PrfCloseProfile
10825
10826inline HINI _PrfOpenProfile(HAB a, PCSZ b)
10827{
10828 HINI yyrc;
10829 USHORT sel = RestoreOS2FS();
10830
10831 yyrc = PrfOpenProfile(a, b);
10832 SetFS(sel);
10833
10834 return yyrc;
10835}
10836
10837#undef PrfOpenProfile
10838#define PrfOpenProfile _PrfOpenProfile
10839
10840inline BOOL _PrfQueryProfile(HAB a, PPRFPROFILE b)
10841{
10842 BOOL yyrc;
10843 USHORT sel = RestoreOS2FS();
10844
10845 yyrc = PrfQueryProfile(a, b);
10846 SetFS(sel);
10847
10848 return yyrc;
10849}
10850
10851#undef PrfQueryProfile
10852#define PrfQueryProfile _PrfQueryProfile
10853
10854inline BOOL _PrfQueryProfileData(HINI a, PCSZ b, PCSZ c, PVOID d, PULONG e)
10855{
10856 BOOL yyrc;
10857 USHORT sel = RestoreOS2FS();
10858
10859 yyrc = PrfQueryProfileData(a, b, c, d, e);
10860 SetFS(sel);
10861
10862 return yyrc;
10863}
10864
10865#undef PrfQueryProfileData
10866#define PrfQueryProfileData _PrfQueryProfileData
10867
10868inline LONG _PrfQueryProfileInt(HINI a, PCSZ b, PCSZ c, LONG d)
10869{
10870 LONG yyrc;
10871 USHORT sel = RestoreOS2FS();
10872
10873 yyrc = PrfQueryProfileInt(a, b, c, d);
10874 SetFS(sel);
10875
10876 return yyrc;
10877}
10878
10879#undef PrfQueryProfileInt
10880#define PrfQueryProfileInt _PrfQueryProfileInt
10881
10882inline BOOL _PrfQueryProfileSize(HINI a, PCSZ b, PCSZ c, PULONG d)
10883{
10884 BOOL yyrc;
10885 USHORT sel = RestoreOS2FS();
10886
10887 yyrc = PrfQueryProfileSize(a, b, c, d);
10888 SetFS(sel);
10889
10890 return yyrc;
10891}
10892
10893#undef PrfQueryProfileSize
10894#define PrfQueryProfileSize _PrfQueryProfileSize
10895
10896inline ULONG _PrfQueryProfileString(HINI a, PCSZ b, PCSZ c, PCSZ d, PVOID e, ULONG f)
10897{
10898 ULONG yyrc;
10899 USHORT sel = RestoreOS2FS();
10900
10901 yyrc = PrfQueryProfileString(a, b, c, d, e, f);
10902 SetFS(sel);
10903
10904 return yyrc;
10905}
10906
10907#undef PrfQueryProfileString
10908#define PrfQueryProfileString _PrfQueryProfileString
10909
10910inline BOOL _PrfReset(HAB a, PPRFPROFILE b)
10911{
10912 BOOL yyrc;
10913 USHORT sel = RestoreOS2FS();
10914
10915 yyrc = PrfReset(a, b);
10916 SetFS(sel);
10917
10918 return yyrc;
10919}
10920
10921#undef PrfReset
10922#define PrfReset _PrfReset
10923
10924inline BOOL _PrfWriteProfileData(HINI a, PCSZ b, PCSZ c, PVOID d, ULONG e)
10925{
10926 BOOL yyrc;
10927 USHORT sel = RestoreOS2FS();
10928
10929 yyrc = PrfWriteProfileData(a, b, c, d, e);
10930 SetFS(sel);
10931
10932 return yyrc;
10933}
10934
10935#undef PrfWriteProfileData
10936#define PrfWriteProfileData _PrfWriteProfileData
10937
10938inline BOOL _PrfWriteProfileString(HINI a, PCSZ b, PCSZ c, PCSZ d)
10939{
10940 BOOL yyrc;
10941 USHORT sel = RestoreOS2FS();
10942
10943 yyrc = PrfWriteProfileString(a, b, c, d);
10944 SetFS(sel);
10945
10946 return yyrc;
10947}
10948
10949#undef PrfWriteProfileString
10950#define PrfWriteProfileString _PrfWriteProfileString
10951
10952#endif
10953#ifdef INCL_WINSTDFILE
10954inline MRESULT _WinDefFileDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
10955{
10956 MRESULT yyrc;
10957 USHORT sel = RestoreOS2FS();
10958
10959 yyrc = WinDefFileDlgProc(a, b, c, d);
10960 SetFS(sel);
10961
10962 return yyrc;
10963}
10964
10965#undef WinDefFileDlgProc
10966#define WinDefFileDlgProc _WinDefFileDlgProc
10967
10968inline HWND _WinFileDlg(HWND a, HWND b, PFILEDLG c)
10969{
10970 HWND yyrc;
10971 USHORT sel = RestoreOS2FS();
10972
10973 yyrc = WinFileDlg(a, b, c);
10974 SetFS(sel);
10975
10976 return yyrc;
10977}
10978
10979#undef WinFileDlg
10980#define WinFileDlg _WinFileDlg
10981
10982inline BOOL _WinFreeFileDlgList(PAPSZ a)
10983{
10984 BOOL yyrc;
10985 USHORT sel = RestoreOS2FS();
10986
10987 yyrc = WinFreeFileDlgList(a);
10988 SetFS(sel);
10989
10990 return yyrc;
10991}
10992
10993#undef WinFreeFileDlgList
10994#define WinFreeFileDlgList _WinFreeFileDlgList
10995
10996#endif
10997#ifdef INCL_WINSTDFONT
10998inline HWND _WinFontDlg(HWND a, HWND b, PFONTDLG c)
10999{
11000 HWND yyrc;
11001 USHORT sel = RestoreOS2FS();
11002
11003 yyrc = WinFontDlg(a, b, c);
11004 SetFS(sel);
11005
11006 return yyrc;
11007}
11008
11009#undef WinFontDlg
11010#define WinFontDlg _WinFontDlg
11011
11012inline MRESULT _WinDefFontDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
11013{
11014 MRESULT yyrc;
11015 USHORT sel = RestoreOS2FS();
11016
11017 yyrc = WinDefFontDlgProc(a, b, c, d);
11018 SetFS(sel);
11019
11020 return yyrc;
11021}
11022
11023#undef WinDefFontDlgProc
11024#define WinDefFontDlgProc _WinDefFontDlgProc
11025
11026#endif
11027#ifdef INCL_WINSTDDRAG
11028inline BOOL _DrgAcceptDroppedFiles(HWND a, PCSZ b, PCSZ c, ULONG d, ULONG e)
11029{
11030 BOOL yyrc;
11031 USHORT sel = RestoreOS2FS();
11032
11033 yyrc = DrgAcceptDroppedFiles(a, b, c, d, e);
11034 SetFS(sel);
11035
11036 return yyrc;
11037}
11038
11039#undef DrgAcceptDroppedFiles
11040#define DrgAcceptDroppedFiles _DrgAcceptDroppedFiles
11041
11042inline BOOL _DrgAccessDraginfo(PDRAGINFO a)
11043{
11044 BOOL yyrc;
11045 USHORT sel = RestoreOS2FS();
11046
11047 yyrc = DrgAccessDraginfo(a);
11048 SetFS(sel);
11049
11050 return yyrc;
11051}
11052
11053#undef DrgAccessDraginfo
11054#define DrgAccessDraginfo _DrgAccessDraginfo
11055
11056inline HSTR _DrgAddStrHandle(PCSZ a)
11057{
11058 HSTR yyrc;
11059 USHORT sel = RestoreOS2FS();
11060
11061 yyrc = DrgAddStrHandle(a);
11062 SetFS(sel);
11063
11064 return yyrc;
11065}
11066
11067#undef DrgAddStrHandle
11068#define DrgAddStrHandle _DrgAddStrHandle
11069
11070inline PDRAGINFO _DrgAllocDraginfo(ULONG a)
11071{
11072 PDRAGINFO yyrc;
11073 USHORT sel = RestoreOS2FS();
11074
11075 yyrc = DrgAllocDraginfo(a);
11076 SetFS(sel);
11077
11078 return yyrc;
11079}
11080
11081#undef DrgAllocDraginfo
11082#define DrgAllocDraginfo _DrgAllocDraginfo
11083
11084inline PDRAGTRANSFER _DrgAllocDragtransfer(ULONG a)
11085{
11086 PDRAGTRANSFER yyrc;
11087 USHORT sel = RestoreOS2FS();
11088
11089 yyrc = DrgAllocDragtransfer(a);
11090 SetFS(sel);
11091
11092 return yyrc;
11093}
11094
11095#undef DrgAllocDragtransfer
11096#define DrgAllocDragtransfer _DrgAllocDragtransfer
11097
11098inline BOOL _DrgCancelLazyDrag()
11099{
11100 BOOL yyrc;
11101 USHORT sel = RestoreOS2FS();
11102
11103 yyrc = DrgCancelLazyDrag();
11104 SetFS(sel);
11105
11106 return yyrc;
11107}
11108
11109#undef DrgCancelLazyDrag
11110#define DrgCancelLazyDrag _DrgCancelLazyDrag
11111
11112inline BOOL _DrgDeleteDraginfoStrHandles(PDRAGINFO a)
11113{
11114 BOOL yyrc;
11115 USHORT sel = RestoreOS2FS();
11116
11117 yyrc = DrgDeleteDraginfoStrHandles(a);
11118 SetFS(sel);
11119
11120 return yyrc;
11121}
11122
11123#undef DrgDeleteDraginfoStrHandles
11124#define DrgDeleteDraginfoStrHandles _DrgDeleteDraginfoStrHandles
11125
11126inline BOOL _DrgDeleteStrHandle(HSTR a)
11127{
11128 BOOL yyrc;
11129 USHORT sel = RestoreOS2FS();
11130
11131 yyrc = DrgDeleteStrHandle(a);
11132 SetFS(sel);
11133
11134 return yyrc;
11135}
11136
11137#undef DrgDeleteStrHandle
11138#define DrgDeleteStrHandle _DrgDeleteStrHandle
11139
11140inline HWND _DrgDrag(HWND a, PDRAGINFO b, PDRAGIMAGE c, ULONG d, LONG e, PVOID f)
11141{
11142 HWND yyrc;
11143 USHORT sel = RestoreOS2FS();
11144
11145 yyrc = DrgDrag(a, b, c, d, e, f);
11146 SetFS(sel);
11147
11148 return yyrc;
11149}
11150
11151#undef DrgDrag
11152#define DrgDrag _DrgDrag
11153
11154inline BOOL _DrgDragFiles(HWND a, PCSZ *b, PCSZ *c, PCSZ *d, ULONG e, HPOINTER f, ULONG g, BOOL h, ULONG i)
11155{
11156 BOOL yyrc;
11157 USHORT sel = RestoreOS2FS();
11158
11159 yyrc = DrgDragFiles(a, b, c, d, e, f, g, h, i);
11160 SetFS(sel);
11161
11162 return yyrc;
11163}
11164
11165#undef DrgDragFiles
11166#define DrgDragFiles _DrgDragFiles
11167
11168inline BOOL _DrgFreeDraginfo(PDRAGINFO a)
11169{
11170 BOOL yyrc;
11171 USHORT sel = RestoreOS2FS();
11172
11173 yyrc = DrgFreeDraginfo(a);
11174 SetFS(sel);
11175
11176 return yyrc;
11177}
11178
11179#undef DrgFreeDraginfo
11180#define DrgFreeDraginfo _DrgFreeDraginfo
11181
11182inline BOOL _DrgFreeDragtransfer(PDRAGTRANSFER a)
11183{
11184 BOOL yyrc;
11185 USHORT sel = RestoreOS2FS();
11186
11187 yyrc = DrgFreeDragtransfer(a);
11188 SetFS(sel);
11189
11190 return yyrc;
11191}
11192
11193#undef DrgFreeDragtransfer
11194#define DrgFreeDragtransfer _DrgFreeDragtransfer
11195
11196inline HPS _DrgGetPS(HWND a)
11197{
11198 HPS yyrc;
11199 USHORT sel = RestoreOS2FS();
11200
11201 yyrc = DrgGetPS(a);
11202 SetFS(sel);
11203
11204 return yyrc;
11205}
11206
11207#undef DrgGetPS
11208#define DrgGetPS _DrgGetPS
11209
11210inline BOOL _DrgLazyDrag(HWND a, PDRAGINFO b, PDRAGIMAGE c, ULONG d, PVOID e)
11211{
11212 BOOL yyrc;
11213 USHORT sel = RestoreOS2FS();
11214
11215 yyrc = DrgLazyDrag(a, b, c, d, e);
11216 SetFS(sel);
11217
11218 return yyrc;
11219}
11220
11221#undef DrgLazyDrag
11222#define DrgLazyDrag _DrgLazyDrag
11223
11224inline BOOL _DrgLazyDrop(HWND a, ULONG b, PPOINTL c)
11225{
11226 BOOL yyrc;
11227 USHORT sel = RestoreOS2FS();
11228
11229 yyrc = DrgLazyDrop(a, b, c);
11230 SetFS(sel);
11231
11232 return yyrc;
11233}
11234
11235#undef DrgLazyDrop
11236#define DrgLazyDrop _DrgLazyDrop
11237
11238inline BOOL _DrgPostTransferMsg(HWND a, ULONG b, PDRAGTRANSFER c, ULONG d, ULONG e, BOOL f)
11239{
11240 BOOL yyrc;
11241 USHORT sel = RestoreOS2FS();
11242
11243 yyrc = DrgPostTransferMsg(a, b, c, d, e, f);
11244 SetFS(sel);
11245
11246 return yyrc;
11247}
11248
11249#undef DrgPostTransferMsg
11250#define DrgPostTransferMsg _DrgPostTransferMsg
11251
11252inline BOOL _DrgPushDraginfo(PDRAGINFO a, HWND b)
11253{
11254 BOOL yyrc;
11255 USHORT sel = RestoreOS2FS();
11256
11257 yyrc = DrgPushDraginfo(a, b);
11258 SetFS(sel);
11259
11260 return yyrc;
11261}
11262
11263#undef DrgPushDraginfo
11264#define DrgPushDraginfo _DrgPushDraginfo
11265
11266inline PDRAGINFO _DrgQueryDraginfoPtr(PDRAGINFO a)
11267{
11268 PDRAGINFO yyrc;
11269 USHORT sel = RestoreOS2FS();
11270
11271 yyrc = DrgQueryDraginfoPtr(a);
11272 SetFS(sel);
11273
11274 return yyrc;
11275}
11276
11277#undef DrgQueryDraginfoPtr
11278#define DrgQueryDraginfoPtr _DrgQueryDraginfoPtr
11279
11280inline PDRAGINFO _DrgQueryDraginfoPtrFromHwnd(HWND a)
11281{
11282 PDRAGINFO yyrc;
11283 USHORT sel = RestoreOS2FS();
11284
11285 yyrc = DrgQueryDraginfoPtrFromHwnd(a);
11286 SetFS(sel);
11287
11288 return yyrc;
11289}
11290
11291#undef DrgQueryDraginfoPtrFromHwnd
11292#define DrgQueryDraginfoPtrFromHwnd _DrgQueryDraginfoPtrFromHwnd
11293
11294inline PDRAGINFO _DrgQueryDraginfoPtrFromDragitem(PDRAGITEM a)
11295{
11296 PDRAGINFO yyrc;
11297 USHORT sel = RestoreOS2FS();
11298
11299 yyrc = DrgQueryDraginfoPtrFromDragitem(a);
11300 SetFS(sel);
11301
11302 return yyrc;
11303}
11304
11305#undef DrgQueryDraginfoPtrFromDragitem
11306#define DrgQueryDraginfoPtrFromDragitem _DrgQueryDraginfoPtrFromDragitem
11307
11308inline BOOL _DrgQueryDragitem(PDRAGINFO a, ULONG b, PDRAGITEM c, ULONG d)
11309{
11310 BOOL yyrc;
11311 USHORT sel = RestoreOS2FS();
11312
11313 yyrc = DrgQueryDragitem(a, b, c, d);
11314 SetFS(sel);
11315
11316 return yyrc;
11317}
11318
11319#undef DrgQueryDragitem
11320#define DrgQueryDragitem _DrgQueryDragitem
11321
11322inline ULONG _DrgQueryDragitemCount(PDRAGINFO a)
11323{
11324 ULONG yyrc;
11325 USHORT sel = RestoreOS2FS();
11326
11327 yyrc = DrgQueryDragitemCount(a);
11328 SetFS(sel);
11329
11330 return yyrc;
11331}
11332
11333#undef DrgQueryDragitemCount
11334#define DrgQueryDragitemCount _DrgQueryDragitemCount
11335
11336inline PDRAGITEM _DrgQueryDragitemPtr(PDRAGINFO a, ULONG b)
11337{
11338 PDRAGITEM yyrc;
11339 USHORT sel = RestoreOS2FS();
11340
11341 yyrc = DrgQueryDragitemPtr(a, b);
11342 SetFS(sel);
11343
11344 return yyrc;
11345}
11346
11347#undef DrgQueryDragitemPtr
11348#define DrgQueryDragitemPtr _DrgQueryDragitemPtr
11349
11350inline ULONG _DrgQueryDragStatus()
11351{
11352 ULONG yyrc;
11353 USHORT sel = RestoreOS2FS();
11354
11355 yyrc = DrgQueryDragStatus();
11356 SetFS(sel);
11357
11358 return yyrc;
11359}
11360
11361#undef DrgQueryDragStatus
11362#define DrgQueryDragStatus _DrgQueryDragStatus
11363
11364inline BOOL _DrgQueryNativeRMF(PDRAGITEM a, ULONG b, PCHAR c)
11365{
11366 BOOL yyrc;
11367 USHORT sel = RestoreOS2FS();
11368
11369 yyrc = DrgQueryNativeRMF(a, b, c);
11370 SetFS(sel);
11371
11372 return yyrc;
11373}
11374
11375#undef DrgQueryNativeRMF
11376#define DrgQueryNativeRMF _DrgQueryNativeRMF
11377
11378inline ULONG _DrgQueryNativeRMFLen(PDRAGITEM a)
11379{
11380 ULONG yyrc;
11381 USHORT sel = RestoreOS2FS();
11382
11383 yyrc = DrgQueryNativeRMFLen(a);
11384 SetFS(sel);
11385
11386 return yyrc;
11387}
11388
11389#undef DrgQueryNativeRMFLen
11390#define DrgQueryNativeRMFLen _DrgQueryNativeRMFLen
11391
11392inline ULONG _DrgQueryStrName(HSTR a, ULONG b, PSZ c)
11393{
11394 ULONG yyrc;
11395 USHORT sel = RestoreOS2FS();
11396
11397 yyrc = DrgQueryStrName(a, b, c);
11398 SetFS(sel);
11399
11400 return yyrc;
11401}
11402
11403#undef DrgQueryStrName
11404#define DrgQueryStrName _DrgQueryStrName
11405
11406inline ULONG _DrgQueryStrNameLen(HSTR a)
11407{
11408 ULONG yyrc;
11409 USHORT sel = RestoreOS2FS();
11410
11411 yyrc = DrgQueryStrNameLen(a);
11412 SetFS(sel);
11413
11414 return yyrc;
11415}
11416
11417#undef DrgQueryStrNameLen
11418#define DrgQueryStrNameLen _DrgQueryStrNameLen
11419
11420inline BOOL _DrgQueryTrueType(PDRAGITEM a, ULONG b, PSZ c)
11421{
11422 BOOL yyrc;
11423 USHORT sel = RestoreOS2FS();
11424
11425 yyrc = DrgQueryTrueType(a, b, c);
11426 SetFS(sel);
11427
11428 return yyrc;
11429}
11430
11431#undef DrgQueryTrueType
11432#define DrgQueryTrueType _DrgQueryTrueType
11433
11434inline ULONG _DrgQueryTrueTypeLen(PDRAGITEM a)
11435{
11436 ULONG yyrc;
11437 USHORT sel = RestoreOS2FS();
11438
11439 yyrc = DrgQueryTrueTypeLen(a);
11440 SetFS(sel);
11441
11442 return yyrc;
11443}
11444
11445#undef DrgQueryTrueTypeLen
11446#define DrgQueryTrueTypeLen _DrgQueryTrueTypeLen
11447
11448inline PDRAGINFO _DrgReallocDraginfo(PDRAGINFO a, ULONG b)
11449{
11450 PDRAGINFO yyrc;
11451 USHORT sel = RestoreOS2FS();
11452
11453 yyrc = DrgReallocDraginfo(a, b);
11454 SetFS(sel);
11455
11456 return yyrc;
11457}
11458
11459#undef DrgReallocDraginfo
11460#define DrgReallocDraginfo _DrgReallocDraginfo
11461
11462inline BOOL _DrgReleasePS(HPS a)
11463{
11464 BOOL yyrc;
11465 USHORT sel = RestoreOS2FS();
11466
11467 yyrc = DrgReleasePS(a);
11468 SetFS(sel);
11469
11470 return yyrc;
11471}
11472
11473#undef DrgReleasePS
11474#define DrgReleasePS _DrgReleasePS
11475
11476inline MRESULT _DrgSendTransferMsg(HWND a, ULONG b, MPARAM c, MPARAM d)
11477{
11478 MRESULT yyrc;
11479 USHORT sel = RestoreOS2FS();
11480
11481 yyrc = DrgSendTransferMsg(a, b, c, d);
11482 SetFS(sel);
11483
11484 return yyrc;
11485}
11486
11487#undef DrgSendTransferMsg
11488#define DrgSendTransferMsg _DrgSendTransferMsg
11489
11490inline BOOL _DrgSetDragImage(PDRAGINFO a, PDRAGIMAGE b, ULONG c, PVOID d)
11491{
11492 BOOL yyrc;
11493 USHORT sel = RestoreOS2FS();
11494
11495 yyrc = DrgSetDragImage(a, b, c, d);
11496 SetFS(sel);
11497
11498 return yyrc;
11499}
11500
11501#undef DrgSetDragImage
11502#define DrgSetDragImage _DrgSetDragImage
11503
11504inline BOOL _DrgSetDragitem(PDRAGINFO a, PDRAGITEM b, ULONG c, ULONG d)
11505{
11506 BOOL yyrc;
11507 USHORT sel = RestoreOS2FS();
11508
11509 yyrc = DrgSetDragitem(a, b, c, d);
11510 SetFS(sel);
11511
11512 return yyrc;
11513}
11514
11515#undef DrgSetDragitem
11516#define DrgSetDragitem _DrgSetDragitem
11517
11518inline BOOL _DrgSetDragPointer(PDRAGINFO a, HPOINTER b)
11519{
11520 BOOL yyrc;
11521 USHORT sel = RestoreOS2FS();
11522
11523 yyrc = DrgSetDragPointer(a, b);
11524 SetFS(sel);
11525
11526 return yyrc;
11527}
11528
11529#undef DrgSetDragPointer
11530#define DrgSetDragPointer _DrgSetDragPointer
11531
11532inline BOOL _DrgVerifyNativeRMF(PDRAGITEM a, PCSZ b)
11533{
11534 BOOL yyrc;
11535 USHORT sel = RestoreOS2FS();
11536
11537 yyrc = DrgVerifyNativeRMF(a, b);
11538 SetFS(sel);
11539
11540 return yyrc;
11541}
11542
11543#undef DrgVerifyNativeRMF
11544#define DrgVerifyNativeRMF _DrgVerifyNativeRMF
11545
11546inline BOOL _DrgVerifyRMF(PDRAGITEM a, PCSZ b, PCSZ c)
11547{
11548 BOOL yyrc;
11549 USHORT sel = RestoreOS2FS();
11550
11551 yyrc = DrgVerifyRMF(a, b, c);
11552 SetFS(sel);
11553
11554 return yyrc;
11555}
11556
11557#undef DrgVerifyRMF
11558#define DrgVerifyRMF _DrgVerifyRMF
11559
11560inline BOOL _DrgVerifyTrueType(PDRAGITEM a, PCSZ b)
11561{
11562 BOOL yyrc;
11563 USHORT sel = RestoreOS2FS();
11564
11565 yyrc = DrgVerifyTrueType(a, b);
11566 SetFS(sel);
11567
11568 return yyrc;
11569}
11570
11571#undef DrgVerifyTrueType
11572#define DrgVerifyTrueType _DrgVerifyTrueType
11573
11574inline BOOL _DrgVerifyType(PDRAGITEM a, PCSZ b)
11575{
11576 BOOL yyrc;
11577 USHORT sel = RestoreOS2FS();
11578
11579 yyrc = DrgVerifyType(a, b);
11580 SetFS(sel);
11581
11582 return yyrc;
11583}
11584
11585#undef DrgVerifyType
11586#define DrgVerifyType _DrgVerifyType
11587
11588inline BOOL _DrgVerifyTypeSet(PDRAGITEM a, PCSZ b, ULONG c, PSZ d)
11589{
11590 BOOL yyrc;
11591 USHORT sel = RestoreOS2FS();
11592
11593 yyrc = DrgVerifyTypeSet(a, b, c, d);
11594 SetFS(sel);
11595
11596 return yyrc;
11597}
11598
11599#undef DrgVerifyTypeSet
11600#define DrgVerifyTypeSet _DrgVerifyTypeSet
11601
11602#endif
11603#ifdef INCL_WPCLASS
11604inline HOBJECT _WinCopyObject(HOBJECT a, HOBJECT b, ULONG c)
11605{
11606 HOBJECT yyrc;
11607 USHORT sel = RestoreOS2FS();
11608
11609 yyrc = WinCopyObject(a, b, c);
11610 SetFS(sel);
11611
11612 return yyrc;
11613}
11614
11615#undef WinCopyObject
11616#define WinCopyObject _WinCopyObject
11617
11618inline HOBJECT _WinCreateObject(PCSZ a, PCSZ b, PCSZ c, PCSZ d, ULONG e)
11619{
11620 HOBJECT yyrc;
11621 USHORT sel = RestoreOS2FS();
11622
11623 yyrc = WinCreateObject(a, b, c, d, e);
11624 SetFS(sel);
11625
11626 return yyrc;
11627}
11628
11629#undef WinCreateObject
11630#define WinCreateObject _WinCreateObject
11631
11632inline HOBJECT _WinCreateShadow(HOBJECT a, HOBJECT b, ULONG c)
11633{
11634 HOBJECT yyrc;
11635 USHORT sel = RestoreOS2FS();
11636
11637 yyrc = WinCreateShadow(a, b, c);
11638 SetFS(sel);
11639
11640 return yyrc;
11641}
11642
11643#undef WinCreateShadow
11644#define WinCreateShadow _WinCreateShadow
11645
11646inline BOOL _WinDeregisterObjectClass(PCSZ a)
11647{
11648 BOOL yyrc;
11649 USHORT sel = RestoreOS2FS();
11650
11651 yyrc = WinDeregisterObjectClass(a);
11652 SetFS(sel);
11653
11654 return yyrc;
11655}
11656
11657#undef WinDeregisterObjectClass
11658#define WinDeregisterObjectClass _WinDeregisterObjectClass
11659
11660inline BOOL _WinDestroyObject(HOBJECT a)
11661{
11662 BOOL yyrc;
11663 USHORT sel = RestoreOS2FS();
11664
11665 yyrc = WinDestroyObject(a);
11666 SetFS(sel);
11667
11668 return yyrc;
11669}
11670
11671#undef WinDestroyObject
11672#define WinDestroyObject _WinDestroyObject
11673
11674inline BOOL _WinEnumObjectClasses(POBJCLASS a, PULONG b)
11675{
11676 BOOL yyrc;
11677 USHORT sel = RestoreOS2FS();
11678
11679 yyrc = WinEnumObjectClasses(a, b);
11680 SetFS(sel);
11681
11682 return yyrc;
11683}
11684
11685#undef WinEnumObjectClasses
11686#define WinEnumObjectClasses _WinEnumObjectClasses
11687
11688inline BOOL _WinIsSOMDDReady()
11689{
11690 BOOL yyrc;
11691 USHORT sel = RestoreOS2FS();
11692
11693 yyrc = WinIsSOMDDReady();
11694 SetFS(sel);
11695
11696 return yyrc;
11697}
11698
11699#undef WinIsSOMDDReady
11700#define WinIsSOMDDReady _WinIsSOMDDReady
11701
11702inline BOOL _WinIsWPDServerReady()
11703{
11704 BOOL yyrc;
11705 USHORT sel = RestoreOS2FS();
11706
11707 yyrc = WinIsWPDServerReady();
11708 SetFS(sel);
11709
11710 return yyrc;
11711}
11712
11713#undef WinIsWPDServerReady
11714#define WinIsWPDServerReady _WinIsWPDServerReady
11715
11716inline HOBJECT _WinMoveObject(HOBJECT a, HOBJECT b, ULONG c)
11717{
11718 HOBJECT yyrc;
11719 USHORT sel = RestoreOS2FS();
11720
11721 yyrc = WinMoveObject(a, b, c);
11722 SetFS(sel);
11723
11724 return yyrc;
11725}
11726
11727#undef WinMoveObject
11728#define WinMoveObject _WinMoveObject
11729
11730inline BOOL _WinOpenObject(HOBJECT a, ULONG b, BOOL c)
11731{
11732 BOOL yyrc;
11733 USHORT sel = RestoreOS2FS();
11734
11735 yyrc = WinOpenObject(a, b, c);
11736 SetFS(sel);
11737
11738 return yyrc;
11739}
11740
11741#undef WinOpenObject
11742#define WinOpenObject _WinOpenObject
11743
11744inline BOOL _WinQueryActiveDesktopPathname(PSZ a, ULONG b)
11745{
11746 BOOL yyrc;
11747 USHORT sel = RestoreOS2FS();
11748
11749 yyrc = WinQueryActiveDesktopPathname(a, b);
11750 SetFS(sel);
11751
11752 return yyrc;
11753}
11754
11755#undef WinQueryActiveDesktopPathname
11756#define WinQueryActiveDesktopPathname _WinQueryActiveDesktopPathname
11757
11758inline HOBJECT _WinQueryObject(PCSZ a)
11759{
11760 HOBJECT yyrc;
11761 USHORT sel = RestoreOS2FS();
11762
11763 yyrc = WinQueryObject(a);
11764 SetFS(sel);
11765
11766 return yyrc;
11767}
11768
11769#undef WinQueryObject
11770#define WinQueryObject _WinQueryObject
11771
11772inline BOOL _WinQueryObjectPath(HOBJECT a, PSZ b, ULONG c)
11773{
11774 BOOL yyrc;
11775 USHORT sel = RestoreOS2FS();
11776
11777 yyrc = WinQueryObjectPath(a, b, c);
11778 SetFS(sel);
11779
11780 return yyrc;
11781}
11782
11783#undef WinQueryObjectPath
11784#define WinQueryObjectPath _WinQueryObjectPath
11785
11786inline BOOL _WinRegisterObjectClass(PCSZ a, PCSZ b)
11787{
11788 BOOL yyrc;
11789 USHORT sel = RestoreOS2FS();
11790
11791 yyrc = WinRegisterObjectClass(a, b);
11792 SetFS(sel);
11793
11794 return yyrc;
11795}
11796
11797#undef WinRegisterObjectClass
11798#define WinRegisterObjectClass _WinRegisterObjectClass
11799
11800inline BOOL _WinReplaceObjectClass(PCSZ a, PCSZ b, BOOL c)
11801{
11802 BOOL yyrc;
11803 USHORT sel = RestoreOS2FS();
11804
11805 yyrc = WinReplaceObjectClass(a, b, c);
11806 SetFS(sel);
11807
11808 return yyrc;
11809}
11810
11811#undef WinReplaceObjectClass
11812#define WinReplaceObjectClass _WinReplaceObjectClass
11813
11814inline ULONG _WinRestartSOMDD(BOOL a)
11815{
11816 ULONG yyrc;
11817 USHORT sel = RestoreOS2FS();
11818
11819 yyrc = WinRestartSOMDD(a);
11820 SetFS(sel);
11821
11822 return yyrc;
11823}
11824
11825#undef WinRestartSOMDD
11826#define WinRestartSOMDD _WinRestartSOMDD
11827
11828inline ULONG _WinRestartWPDServer(BOOL a)
11829{
11830 ULONG yyrc;
11831 USHORT sel = RestoreOS2FS();
11832
11833 yyrc = WinRestartWPDServer(a);
11834 SetFS(sel);
11835
11836 return yyrc;
11837}
11838
11839#undef WinRestartWPDServer
11840#define WinRestartWPDServer _WinRestartWPDServer
11841
11842inline BOOL _WinSaveObject(HOBJECT a, BOOL b)
11843{
11844 BOOL yyrc;
11845 USHORT sel = RestoreOS2FS();
11846
11847 yyrc = WinSaveObject(a, b);
11848 SetFS(sel);
11849
11850 return yyrc;
11851}
11852
11853#undef WinSaveObject
11854#define WinSaveObject _WinSaveObject
11855
11856inline BOOL _WinSetObjectData(HOBJECT a, PCSZ b)
11857{
11858 BOOL yyrc;
11859 USHORT sel = RestoreOS2FS();
11860
11861 yyrc = WinSetObjectData(a, b);
11862 SetFS(sel);
11863
11864 return yyrc;
11865}
11866
11867#undef WinSetObjectData
11868#define WinSetObjectData _WinSetObjectData
11869
11870inline BOOL _WinFreeFileIcon(HPOINTER a)
11871{
11872 BOOL yyrc;
11873 USHORT sel = RestoreOS2FS();
11874
11875 yyrc = WinFreeFileIcon(a);
11876 SetFS(sel);
11877
11878 return yyrc;
11879}
11880
11881#undef WinFreeFileIcon
11882#define WinFreeFileIcon _WinFreeFileIcon
11883
11884inline HPOINTER _WinLoadFileIcon(PCSZ a, BOOL b)
11885{
11886 HPOINTER yyrc;
11887 USHORT sel = RestoreOS2FS();
11888
11889 yyrc = WinLoadFileIcon(a, b);
11890 SetFS(sel);
11891
11892 return yyrc;
11893}
11894
11895#undef WinLoadFileIcon
11896#define WinLoadFileIcon _WinLoadFileIcon
11897
11898inline BOOL _WinRestoreWindowPos(PCSZ a, PCSZ b, HWND c)
11899{
11900 BOOL yyrc;
11901 USHORT sel = RestoreOS2FS();
11902
11903 yyrc = WinRestoreWindowPos(a, b, c);
11904 SetFS(sel);
11905
11906 return yyrc;
11907}
11908
11909#undef WinRestoreWindowPos
11910#define WinRestoreWindowPos _WinRestoreWindowPos
11911
11912inline BOOL _WinSetFileIcon(PCSZ a, PICONINFO b)
11913{
11914 BOOL yyrc;
11915 USHORT sel = RestoreOS2FS();
11916
11917 yyrc = WinSetFileIcon(a, b);
11918 SetFS(sel);
11919
11920 return yyrc;
11921}
11922
11923#undef WinSetFileIcon
11924#define WinSetFileIcon _WinSetFileIcon
11925
11926inline BOOL _WinShutdownSystem(HAB a, HMQ b)
11927{
11928 BOOL yyrc;
11929 USHORT sel = RestoreOS2FS();
11930
11931 yyrc = WinShutdownSystem(a, b);
11932 SetFS(sel);
11933
11934 return yyrc;
11935}
11936
11937#undef WinShutdownSystem
11938#define WinShutdownSystem _WinShutdownSystem
11939
11940inline BOOL _WinStoreWindowPos(PCSZ a, PCSZ b, HWND c)
11941{
11942 BOOL yyrc;
11943 USHORT sel = RestoreOS2FS();
11944
11945 yyrc = WinStoreWindowPos(a, b, c);
11946 SetFS(sel);
11947
11948 return yyrc;
11949}
11950
11951#undef WinStoreWindowPos
11952#define WinStoreWindowPos _WinStoreWindowPos
11953
11954#endif
11955#ifdef INCL_SPL
11956inline BOOL _SplStdClose(HDC a)
11957{
11958 BOOL yyrc;
11959 USHORT sel = RestoreOS2FS();
11960
11961 yyrc = SplStdClose(a);
11962 SetFS(sel);
11963
11964 return yyrc;
11965}
11966
11967#undef SplStdClose
11968#define SplStdClose _SplStdClose
11969
11970inline BOOL _SplStdDelete(HSTD a)
11971{
11972 BOOL yyrc;
11973 USHORT sel = RestoreOS2FS();
11974
11975 yyrc = SplStdDelete(a);
11976 SetFS(sel);
11977
11978 return yyrc;
11979}
11980
11981#undef SplStdDelete
11982#define SplStdDelete _SplStdDelete
11983
11984inline BOOL _SplStdGetBits(HSTD a, LONG b, LONG c, PCH d)
11985{
11986 BOOL yyrc;
11987 USHORT sel = RestoreOS2FS();
11988
11989 yyrc = SplStdGetBits(a, b, c, d);
11990 SetFS(sel);
11991
11992 return yyrc;
11993}
11994
11995#undef SplStdGetBits
11996#define SplStdGetBits _SplStdGetBits
11997
11998inline BOOL _SplStdOpen(HDC a)
11999{
12000 BOOL yyrc;
12001 USHORT sel = RestoreOS2FS();
12002
12003 yyrc = SplStdOpen(a);
12004 SetFS(sel);
12005
12006 return yyrc;
12007}
12008
12009#undef SplStdOpen
12010#define SplStdOpen _SplStdOpen
12011
12012inline LONG _SplStdQueryLength(HSTD a)
12013{
12014 LONG yyrc;
12015 USHORT sel = RestoreOS2FS();
12016
12017 yyrc = SplStdQueryLength(a);
12018 SetFS(sel);
12019
12020 return yyrc;
12021}
12022
12023#undef SplStdQueryLength
12024#define SplStdQueryLength _SplStdQueryLength
12025
12026inline BOOL _SplStdStart(HDC a)
12027{
12028 BOOL yyrc;
12029 USHORT sel = RestoreOS2FS();
12030
12031 yyrc = SplStdStart(a);
12032 SetFS(sel);
12033
12034 return yyrc;
12035}
12036
12037#undef SplStdStart
12038#define SplStdStart _SplStdStart
12039
12040inline HSTD _SplStdStop(HDC a)
12041{
12042 HSTD yyrc;
12043 USHORT sel = RestoreOS2FS();
12044
12045 yyrc = SplStdStop(a);
12046 SetFS(sel);
12047
12048 return yyrc;
12049}
12050
12051#undef SplStdStop
12052#define SplStdStop _SplStdStop
12053
12054inline SPLERR _SplControlDevice(PSZ a, PSZ b, ULONG c)
12055{
12056 SPLERR yyrc;
12057 USHORT sel = RestoreOS2FS();
12058
12059 yyrc = SplControlDevice(a, b, c);
12060 SetFS(sel);
12061
12062 return yyrc;
12063}
12064
12065#undef SplControlDevice
12066#define SplControlDevice _SplControlDevice
12067
12068inline SPLERR _SplCopyJob(PCSZ a, PCSZ b, ULONG c, PCSZ d, PCSZ e, PULONG f)
12069{
12070 SPLERR yyrc;
12071 USHORT sel = RestoreOS2FS();
12072
12073 yyrc = SplCopyJob(a, b, c, d, e, f);
12074 SetFS(sel);
12075
12076 return yyrc;
12077}
12078
12079#undef SplCopyJob
12080#define SplCopyJob _SplCopyJob
12081
12082inline SPLERR _SplCreateDevice(PSZ a, ULONG b, PVOID c, ULONG d)
12083{
12084 SPLERR yyrc;
12085 USHORT sel = RestoreOS2FS();
12086
12087 yyrc = SplCreateDevice(a, b, c, d);
12088 SetFS(sel);
12089
12090 return yyrc;
12091}
12092
12093#undef SplCreateDevice
12094#define SplCreateDevice _SplCreateDevice
12095
12096inline SPLERR _SplCreatePort(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f)
12097{
12098 SPLERR yyrc;
12099 USHORT sel = RestoreOS2FS();
12100
12101 yyrc = SplCreatePort(a, b, c, d, e, f);
12102 SetFS(sel);
12103
12104 return yyrc;
12105}
12106
12107#undef SplCreatePort
12108#define SplCreatePort _SplCreatePort
12109
12110inline SPLERR _SplCreateQueue(PSZ a, ULONG b, PVOID c, ULONG d)
12111{
12112 SPLERR yyrc;
12113 USHORT sel = RestoreOS2FS();
12114
12115 yyrc = SplCreateQueue(a, b, c, d);
12116 SetFS(sel);
12117
12118 return yyrc;
12119}
12120
12121#undef SplCreateQueue
12122#define SplCreateQueue _SplCreateQueue
12123
12124inline SPLERR _SplDeleteDevice(PSZ a, PSZ b)
12125{
12126 SPLERR yyrc;
12127 USHORT sel = RestoreOS2FS();
12128
12129 yyrc = SplDeleteDevice(a, b);
12130 SetFS(sel);
12131
12132 return yyrc;
12133}
12134
12135#undef SplDeleteDevice
12136#define SplDeleteDevice _SplDeleteDevice
12137
12138inline SPLERR _SplDeleteJob(PSZ a, PSZ b, ULONG c)
12139{
12140 SPLERR yyrc;
12141 USHORT sel = RestoreOS2FS();
12142
12143 yyrc = SplDeleteJob(a, b, c);
12144 SetFS(sel);
12145
12146 return yyrc;
12147}
12148
12149#undef SplDeleteJob
12150#define SplDeleteJob _SplDeleteJob
12151
12152inline SPLERR _SplDeletePort(PCSZ a, PCSZ b)
12153{
12154 SPLERR yyrc;
12155 USHORT sel = RestoreOS2FS();
12156
12157 yyrc = SplDeletePort(a, b);
12158 SetFS(sel);
12159
12160 return yyrc;
12161}
12162
12163#undef SplDeletePort
12164#define SplDeletePort _SplDeletePort
12165
12166inline SPLERR _SplDeleteQueue(PSZ a, PSZ b)
12167{
12168 SPLERR yyrc;
12169 USHORT sel = RestoreOS2FS();
12170
12171 yyrc = SplDeleteQueue(a, b);
12172 SetFS(sel);
12173
12174 return yyrc;
12175}
12176
12177#undef SplDeleteQueue
12178#define SplDeleteQueue _SplDeleteQueue
12179
12180inline SPLERR _SplEnumDevice(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
12181{
12182 SPLERR yyrc;
12183 USHORT sel = RestoreOS2FS();
12184
12185 yyrc = SplEnumDevice(a, b, c, d, e, f, g, h);
12186 SetFS(sel);
12187
12188 return yyrc;
12189}
12190
12191#undef SplEnumDevice
12192#define SplEnumDevice _SplEnumDevice
12193
12194inline SPLERR _SplEnumDriver(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
12195{
12196 SPLERR yyrc;
12197 USHORT sel = RestoreOS2FS();
12198
12199 yyrc = SplEnumDriver(a, b, c, d, e, f, g, h);
12200 SetFS(sel);
12201
12202 return yyrc;
12203}
12204
12205#undef SplEnumDriver
12206#define SplEnumDriver _SplEnumDriver
12207
12208inline SPLERR _SplEnumJob(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f, PULONG g, PULONG h, PVOID i)
12209{
12210 SPLERR yyrc;
12211 USHORT sel = RestoreOS2FS();
12212
12213 yyrc = SplEnumJob(a, b, c, d, e, f, g, h, i);
12214 SetFS(sel);
12215
12216 return yyrc;
12217}
12218
12219#undef SplEnumJob
12220#define SplEnumJob _SplEnumJob
12221
12222inline SPLERR _SplEnumPort(PCSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
12223{
12224 SPLERR yyrc;
12225 USHORT sel = RestoreOS2FS();
12226
12227 yyrc = SplEnumPort(a, b, c, d, e, f, g, h);
12228 SetFS(sel);
12229
12230 return yyrc;
12231}
12232
12233#undef SplEnumPort
12234#define SplEnumPort _SplEnumPort
12235
12236inline SPLERR _SplEnumPrinter(PSZ a, ULONG b, ULONG c, PVOID d, ULONG e, PULONG f, PULONG g, PULONG h, PVOID i)
12237{
12238 SPLERR yyrc;
12239 USHORT sel = RestoreOS2FS();
12240
12241 yyrc = SplEnumPrinter(a, b, c, d, e, f, g, h, i);
12242 SetFS(sel);
12243
12244 return yyrc;
12245}
12246
12247#undef SplEnumPrinter
12248#define SplEnumPrinter _SplEnumPrinter
12249
12250inline SPLERR _SplEnumQueue(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
12251{
12252 SPLERR yyrc;
12253 USHORT sel = RestoreOS2FS();
12254
12255 yyrc = SplEnumQueue(a, b, c, d, e, f, g, h);
12256 SetFS(sel);
12257
12258 return yyrc;
12259}
12260
12261#undef SplEnumQueue
12262#define SplEnumQueue _SplEnumQueue
12263
12264inline SPLERR _SplEnumQueueProcessor(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
12265{
12266 SPLERR yyrc;
12267 USHORT sel = RestoreOS2FS();
12268
12269 yyrc = SplEnumQueueProcessor(a, b, c, d, e, f, g, h);
12270 SetFS(sel);
12271
12272 return yyrc;
12273}
12274
12275#undef SplEnumQueueProcessor
12276#define SplEnumQueueProcessor _SplEnumQueueProcessor
12277
12278inline SPLERR _SplHoldJob(PCSZ a, PCSZ b, ULONG c)
12279{
12280 SPLERR yyrc;
12281 USHORT sel = RestoreOS2FS();
12282
12283 yyrc = SplHoldJob(a, b, c);
12284 SetFS(sel);
12285
12286 return yyrc;
12287}
12288
12289#undef SplHoldJob
12290#define SplHoldJob _SplHoldJob
12291
12292inline SPLERR _SplHoldQueue(PSZ a, PSZ b)
12293{
12294 SPLERR yyrc;
12295 USHORT sel = RestoreOS2FS();
12296
12297 yyrc = SplHoldQueue(a, b);
12298 SetFS(sel);
12299
12300 return yyrc;
12301}
12302
12303#undef SplHoldQueue
12304#define SplHoldQueue _SplHoldQueue
12305
12306inline SPLERR _SplPurgeQueue(PSZ a, PSZ b)
12307{
12308 SPLERR yyrc;
12309 USHORT sel = RestoreOS2FS();
12310
12311 yyrc = SplPurgeQueue(a, b);
12312 SetFS(sel);
12313
12314 return yyrc;
12315}
12316
12317#undef SplPurgeQueue
12318#define SplPurgeQueue _SplPurgeQueue
12319
12320inline SPLERR _SplQueryDevice(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
12321{
12322 SPLERR yyrc;
12323 USHORT sel = RestoreOS2FS();
12324
12325 yyrc = SplQueryDevice(a, b, c, d, e, f);
12326 SetFS(sel);
12327
12328 return yyrc;
12329}
12330
12331#undef SplQueryDevice
12332#define SplQueryDevice _SplQueryDevice
12333
12334inline SPLERR _SplQueryDriver(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f, PULONG g)
12335{
12336 SPLERR yyrc;
12337 USHORT sel = RestoreOS2FS();
12338
12339 yyrc = SplQueryDriver(a, b, c, d, e, f, g);
12340 SetFS(sel);
12341
12342 return yyrc;
12343}
12344
12345#undef SplQueryDriver
12346#define SplQueryDriver _SplQueryDriver
12347
12348inline SPLERR _SplQueryJob(PSZ a, PSZ b, ULONG c, ULONG d, PVOID e, ULONG f, PULONG g)
12349{
12350 SPLERR yyrc;
12351 USHORT sel = RestoreOS2FS();
12352
12353 yyrc = SplQueryJob(a, b, c, d, e, f, g);
12354 SetFS(sel);
12355
12356 return yyrc;
12357}
12358
12359#undef SplQueryJob
12360#define SplQueryJob _SplQueryJob
12361
12362inline SPLERR _SplQueryPort(PCSZ a, PCSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
12363{
12364 SPLERR yyrc;
12365 USHORT sel = RestoreOS2FS();
12366
12367 yyrc = SplQueryPort(a, b, c, d, e, f);
12368 SetFS(sel);
12369
12370 return yyrc;
12371}
12372
12373#undef SplQueryPort
12374#define SplQueryPort _SplQueryPort
12375
12376inline SPLERR _SplQueryQueue(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
12377{
12378 SPLERR yyrc;
12379 USHORT sel = RestoreOS2FS();
12380
12381 yyrc = SplQueryQueue(a, b, c, d, e, f);
12382 SetFS(sel);
12383
12384 return yyrc;
12385}
12386
12387#undef SplQueryQueue
12388#define SplQueryQueue _SplQueryQueue
12389
12390inline SPLERR _SplReleaseJob(PCSZ a, PCSZ b, ULONG c)
12391{
12392 SPLERR yyrc;
12393 USHORT sel = RestoreOS2FS();
12394
12395 yyrc = SplReleaseJob(a, b, c);
12396 SetFS(sel);
12397
12398 return yyrc;
12399}
12400
12401#undef SplReleaseJob
12402#define SplReleaseJob _SplReleaseJob
12403
12404inline SPLERR _SplReleaseQueue(PSZ a, PSZ b)
12405{
12406 SPLERR yyrc;
12407 USHORT sel = RestoreOS2FS();
12408
12409 yyrc = SplReleaseQueue(a, b);
12410 SetFS(sel);
12411
12412 return yyrc;
12413}
12414
12415#undef SplReleaseQueue
12416#define SplReleaseQueue _SplReleaseQueue
12417
12418inline SPLERR _SplSetDevice(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
12419{
12420 SPLERR yyrc;
12421 USHORT sel = RestoreOS2FS();
12422
12423 yyrc = SplSetDevice(a, b, c, d, e, f);
12424 SetFS(sel);
12425
12426 return yyrc;
12427}
12428
12429#undef SplSetDevice
12430#define SplSetDevice _SplSetDevice
12431
12432inline SPLERR _SplSetDriver(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f, ULONG g)
12433{
12434 SPLERR yyrc;
12435 USHORT sel = RestoreOS2FS();
12436
12437 yyrc = SplSetDriver(a, b, c, d, e, f, g);
12438 SetFS(sel);
12439
12440 return yyrc;
12441}
12442
12443#undef SplSetDriver
12444#define SplSetDriver _SplSetDriver
12445
12446inline SPLERR _SplSetJob(PSZ a, PSZ b, ULONG c, ULONG d, PVOID e, ULONG f, ULONG g)
12447{
12448 SPLERR yyrc;
12449 USHORT sel = RestoreOS2FS();
12450
12451 yyrc = SplSetJob(a, b, c, d, e, f, g);
12452 SetFS(sel);
12453
12454 return yyrc;
12455}
12456
12457#undef SplSetJob
12458#define SplSetJob _SplSetJob
12459
12460inline SPLERR _SplSetPort(PCSZ a, PCSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
12461{
12462 SPLERR yyrc;
12463 USHORT sel = RestoreOS2FS();
12464
12465 yyrc = SplSetPort(a, b, c, d, e, f);
12466 SetFS(sel);
12467
12468 return yyrc;
12469}
12470
12471#undef SplSetPort
12472#define SplSetPort _SplSetPort
12473
12474inline SPLERR _SplSetQueue(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
12475{
12476 SPLERR yyrc;
12477 USHORT sel = RestoreOS2FS();
12478
12479 yyrc = SplSetQueue(a, b, c, d, e, f);
12480 SetFS(sel);
12481
12482 return yyrc;
12483}
12484
12485#undef SplSetQueue
12486#define SplSetQueue _SplSetQueue
12487
12488inline ULONG _SplMessageBox(PSZ a, ULONG b, ULONG c, PSZ d, PSZ e, ULONG f, ULONG g)
12489{
12490 ULONG yyrc;
12491 USHORT sel = RestoreOS2FS();
12492
12493 yyrc = SplMessageBox(a, b, c, d, e, f, g);
12494 SetFS(sel);
12495
12496 return yyrc;
12497}
12498
12499#undef SplMessageBox
12500#define SplMessageBox _SplMessageBox
12501
12502inline BOOL _SplQmAbort(HSPL a)
12503{
12504 BOOL yyrc;
12505 USHORT sel = RestoreOS2FS();
12506
12507 yyrc = SplQmAbort(a);
12508 SetFS(sel);
12509
12510 return yyrc;
12511}
12512
12513#undef SplQmAbort
12514#define SplQmAbort _SplQmAbort
12515
12516inline BOOL _SplQmAbortDoc(HSPL a)
12517{
12518 BOOL yyrc;
12519 USHORT sel = RestoreOS2FS();
12520
12521 yyrc = SplQmAbortDoc(a);
12522 SetFS(sel);
12523
12524 return yyrc;
12525}
12526
12527#undef SplQmAbortDoc
12528#define SplQmAbortDoc _SplQmAbortDoc
12529
12530inline BOOL _SplQmClose(HSPL a)
12531{
12532 BOOL yyrc;
12533 USHORT sel = RestoreOS2FS();
12534
12535 yyrc = SplQmClose(a);
12536 SetFS(sel);
12537
12538 return yyrc;
12539}
12540
12541#undef SplQmClose
12542#define SplQmClose _SplQmClose
12543
12544inline BOOL _SplQmEndDoc(HSPL a)
12545{
12546 BOOL yyrc;
12547 USHORT sel = RestoreOS2FS();
12548
12549 yyrc = SplQmEndDoc(a);
12550 SetFS(sel);
12551
12552 return yyrc;
12553}
12554
12555#undef SplQmEndDoc
12556#define SplQmEndDoc _SplQmEndDoc
12557
12558inline ULONG _SplQmGetJobID(HSPL a, ULONG b, PVOID c, ULONG d, PULONG e)
12559{
12560 ULONG yyrc;
12561 USHORT sel = RestoreOS2FS();
12562
12563 yyrc = SplQmGetJobID(a, b, c, d, e);
12564 SetFS(sel);
12565
12566 return yyrc;
12567}
12568
12569#undef SplQmGetJobID
12570#define SplQmGetJobID _SplQmGetJobID
12571
12572inline BOOL _SplQmNewPage(HSPL a, ULONG b)
12573{
12574 BOOL yyrc;
12575 USHORT sel = RestoreOS2FS();
12576
12577 yyrc = SplQmNewPage(a, b);
12578 SetFS(sel);
12579
12580 return yyrc;
12581}
12582
12583#undef SplQmNewPage
12584#define SplQmNewPage _SplQmNewPage
12585
12586inline HSPL _SplQmOpen(PSZ a, LONG b, PQMOPENDATA c)
12587{
12588 HSPL yyrc;
12589 USHORT sel = RestoreOS2FS();
12590
12591 yyrc = SplQmOpen(a, b, c);
12592 SetFS(sel);
12593
12594 return yyrc;
12595}
12596
12597#undef SplQmOpen
12598#define SplQmOpen _SplQmOpen
12599
12600inline BOOL _SplQmStartDoc(HSPL a, PSZ b)
12601{
12602 BOOL yyrc;
12603 USHORT sel = RestoreOS2FS();
12604
12605 yyrc = SplQmStartDoc(a, b);
12606 SetFS(sel);
12607
12608 return yyrc;
12609}
12610
12611#undef SplQmStartDoc
12612#define SplQmStartDoc _SplQmStartDoc
12613
12614inline BOOL _SplQmWrite(HSPL a, LONG b, PVOID c)
12615{
12616 BOOL yyrc;
12617 USHORT sel = RestoreOS2FS();
12618
12619 yyrc = SplQmWrite(a, b, c);
12620 SetFS(sel);
12621
12622 return yyrc;
12623}
12624
12625#undef SplQmWrite
12626#define SplQmWrite _SplQmWrite
12627
12628#endif
12629#ifdef INCL_WINHELP
12630inline BOOL _WinAssociateHelpInstance(HWND a, HWND b)
12631{
12632 BOOL yyrc;
12633 USHORT sel = RestoreOS2FS();
12634
12635 yyrc = WinAssociateHelpInstance(a, b);
12636 SetFS(sel);
12637
12638 return yyrc;
12639}
12640
12641#undef WinAssociateHelpInstance
12642#define WinAssociateHelpInstance _WinAssociateHelpInstance
12643
12644inline HWND _WinCreateHelpInstance(HAB a, PHELPINIT b)
12645{
12646 HWND yyrc;
12647 USHORT sel = RestoreOS2FS();
12648
12649 yyrc = WinCreateHelpInstance(a, b);
12650 SetFS(sel);
12651
12652 return yyrc;
12653}
12654
12655#undef WinCreateHelpInstance
12656#define WinCreateHelpInstance _WinCreateHelpInstance
12657
12658inline BOOL _WinCreateHelpTable(HWND a, PHELPTABLE b)
12659{
12660 BOOL yyrc;
12661 USHORT sel = RestoreOS2FS();
12662
12663 yyrc = WinCreateHelpTable(a, b);
12664 SetFS(sel);
12665
12666 return yyrc;
12667}
12668
12669#undef WinCreateHelpTable
12670#define WinCreateHelpTable _WinCreateHelpTable
12671
12672inline BOOL _WinDestroyHelpInstance(HWND a)
12673{
12674 BOOL yyrc;
12675 USHORT sel = RestoreOS2FS();
12676
12677 yyrc = WinDestroyHelpInstance(a);
12678 SetFS(sel);
12679
12680 return yyrc;
12681}
12682
12683#undef WinDestroyHelpInstance
12684#define WinDestroyHelpInstance _WinDestroyHelpInstance
12685
12686inline BOOL _WinLoadHelpTable(HWND a, ULONG b, HMODULE c)
12687{
12688 BOOL yyrc;
12689 USHORT sel = RestoreOS2FS();
12690
12691 yyrc = WinLoadHelpTable(a, b, c);
12692 SetFS(sel);
12693
12694 return yyrc;
12695}
12696
12697#undef WinLoadHelpTable
12698#define WinLoadHelpTable _WinLoadHelpTable
12699
12700inline HWND _WinQueryHelpInstance(HWND a)
12701{
12702 HWND yyrc;
12703 USHORT sel = RestoreOS2FS();
12704
12705 yyrc = WinQueryHelpInstance(a);
12706 SetFS(sel);
12707
12708 return yyrc;
12709}
12710
12711#undef WinQueryHelpInstance
12712#define WinQueryHelpInstance _WinQueryHelpInstance
12713
12714#endif
12715#ifdef INCL_DDF
12716inline BOOL _DdfBeginList(HDDF a, ULONG b, ULONG c, ULONG d)
12717{
12718 BOOL yyrc;
12719 USHORT sel = RestoreOS2FS();
12720
12721 yyrc = DdfBeginList(a, b, c, d);
12722 SetFS(sel);
12723
12724 return yyrc;
12725}
12726
12727#undef DdfBeginList
12728#define DdfBeginList _DdfBeginList
12729
12730inline BOOL _DdfBitmap(HDDF a, HBITMAP b, ULONG c)
12731{
12732 BOOL yyrc;
12733 USHORT sel = RestoreOS2FS();
12734
12735 yyrc = DdfBitmap(a, b, c);
12736 SetFS(sel);
12737
12738 return yyrc;
12739}
12740
12741#undef DdfBitmap
12742#define DdfBitmap _DdfBitmap
12743
12744inline BOOL _DdfEndList(HDDF a)
12745{
12746 BOOL yyrc;
12747 USHORT sel = RestoreOS2FS();
12748
12749 yyrc = DdfEndList(a);
12750 SetFS(sel);
12751
12752 return yyrc;
12753}
12754
12755#undef DdfEndList
12756#define DdfEndList _DdfEndList
12757
12758inline BOOL _DdfHyperText(HDDF a, PCSZ b, PCSZ c, ULONG d)
12759{
12760 BOOL yyrc;
12761 USHORT sel = RestoreOS2FS();
12762
12763 yyrc = DdfHyperText(a, b, c, d);
12764 SetFS(sel);
12765
12766 return yyrc;
12767}
12768
12769#undef DdfHyperText
12770#define DdfHyperText _DdfHyperText
12771
12772inline BOOL _DdfInform(HDDF a, PCSZ b, ULONG c)
12773{
12774 BOOL yyrc;
12775 USHORT sel = RestoreOS2FS();
12776
12777 yyrc = DdfInform(a, b, c);
12778 SetFS(sel);
12779
12780 return yyrc;
12781}
12782
12783#undef DdfInform
12784#define DdfInform _DdfInform
12785
12786inline HDDF _DdfInitialize(HWND a, ULONG b, ULONG c)
12787{
12788 HDDF yyrc;
12789 USHORT sel = RestoreOS2FS();
12790
12791 yyrc = DdfInitialize(a, b, c);
12792 SetFS(sel);
12793
12794 return yyrc;
12795}
12796
12797#undef DdfInitialize
12798#define DdfInitialize _DdfInitialize
12799
12800inline BOOL _DdfListItem(HDDF a, PCSZ b, PCSZ c)
12801{
12802 BOOL yyrc;
12803 USHORT sel = RestoreOS2FS();
12804
12805 yyrc = DdfListItem(a, b, c);
12806 SetFS(sel);
12807
12808 return yyrc;
12809}
12810
12811#undef DdfListItem
12812#define DdfListItem _DdfListItem
12813
12814inline BOOL _DdfMetafile(HDDF a, HMF b, PRECTL c)
12815{
12816 BOOL yyrc;
12817 USHORT sel = RestoreOS2FS();
12818
12819 yyrc = DdfMetafile(a, b, c);
12820 SetFS(sel);
12821
12822 return yyrc;
12823}
12824
12825#undef DdfMetafile
12826#define DdfMetafile _DdfMetafile
12827
12828inline BOOL _DdfPara(HDDF a)
12829{
12830 BOOL yyrc;
12831 USHORT sel = RestoreOS2FS();
12832
12833 yyrc = DdfPara(a);
12834 SetFS(sel);
12835
12836 return yyrc;
12837}
12838
12839#undef DdfPara
12840#define DdfPara _DdfPara
12841
12842inline BOOL _DdfSetColor(HDDF a, COLOR b, COLOR c)
12843{
12844 BOOL yyrc;
12845 USHORT sel = RestoreOS2FS();
12846
12847 yyrc = DdfSetColor(a, b, c);
12848 SetFS(sel);
12849
12850 return yyrc;
12851}
12852
12853#undef DdfSetColor
12854#define DdfSetColor _DdfSetColor
12855
12856inline BOOL _DdfSetFont(HDDF a, PCSZ b, ULONG c, ULONG d)
12857{
12858 BOOL yyrc;
12859 USHORT sel = RestoreOS2FS();
12860
12861 yyrc = DdfSetFont(a, b, c, d);
12862 SetFS(sel);
12863
12864 return yyrc;
12865}
12866
12867#undef DdfSetFont
12868#define DdfSetFont _DdfSetFont
12869
12870inline BOOL _DdfSetFontStyle(HDDF a, ULONG b)
12871{
12872 BOOL yyrc;
12873 USHORT sel = RestoreOS2FS();
12874
12875 yyrc = DdfSetFontStyle(a, b);
12876 SetFS(sel);
12877
12878 return yyrc;
12879}
12880
12881#undef DdfSetFontStyle
12882#define DdfSetFontStyle _DdfSetFontStyle
12883
12884inline BOOL _DdfSetFormat(HDDF a, ULONG b)
12885{
12886 BOOL yyrc;
12887 USHORT sel = RestoreOS2FS();
12888
12889 yyrc = DdfSetFormat(a, b);
12890 SetFS(sel);
12891
12892 return yyrc;
12893}
12894
12895#undef DdfSetFormat
12896#define DdfSetFormat _DdfSetFormat
12897
12898inline BOOL _DdfSetTextAlign(HDDF a, ULONG b)
12899{
12900 BOOL yyrc;
12901 USHORT sel = RestoreOS2FS();
12902
12903 yyrc = DdfSetTextAlign(a, b);
12904 SetFS(sel);
12905
12906 return yyrc;
12907}
12908
12909#undef DdfSetTextAlign
12910#define DdfSetTextAlign _DdfSetTextAlign
12911
12912inline BOOL _DdfText(HDDF a, PCSZ b)
12913{
12914 BOOL yyrc;
12915 USHORT sel = RestoreOS2FS();
12916
12917 yyrc = DdfText(a, b);
12918 SetFS(sel);
12919
12920 return yyrc;
12921}
12922
12923#undef DdfText
12924#define DdfText _DdfText
12925
12926#endif
12927#ifdef INCL_AVIO
12928inline USHORT _VioAssociate(HDC a, HVPS b)
12929{
12930 USHORT yyrc;
12931 USHORT sel = RestoreOS2FS();
12932
12933 yyrc = VIO16ASSOCIATE(a, b);
12934 SetFS(sel);
12935
12936 return yyrc;
12937}
12938
12939#undef VioAssociate
12940#define VioAssociate _VioAssociate
12941
12942inline USHORT _VioCreateLogFont(PFATTRS a, LONG b, PSTR8 c, HVPS d)
12943{
12944 USHORT yyrc;
12945 USHORT sel = RestoreOS2FS();
12946
12947 yyrc = VIO16CREATELOGFONT(a, b, c, d);
12948 SetFS(sel);
12949
12950 return yyrc;
12951}
12952
12953#undef VioCreateLogFont
12954#define VioCreateLogFont _VioCreateLogFont
12955
12956inline USHORT _VioCreatePS(PHVPS a, SHORT b, SHORT c, SHORT d, SHORT e, HVPS f)
12957{
12958 USHORT yyrc;
12959 USHORT sel = RestoreOS2FS();
12960
12961 yyrc = VIO16CREATEPS(a, b, c, d, e, f);
12962 SetFS(sel);
12963
12964 return yyrc;
12965}
12966
12967#undef VioCreatePS
12968#define VioCreatePS _VioCreatePS
12969
12970inline USHORT _VioDeleteSetId(LONG a, HVPS b)
12971{
12972 USHORT yyrc;
12973 USHORT sel = RestoreOS2FS();
12974
12975 yyrc = VIO16DELETESETID(a, b);
12976 SetFS(sel);
12977
12978 return yyrc;
12979}
12980
12981#undef VioDeleteSetId
12982#define VioDeleteSetId _VioDeleteSetId
12983
12984inline USHORT _VioDestroyPS(HVPS a)
12985{
12986 USHORT yyrc;
12987 USHORT sel = RestoreOS2FS();
12988
12989 yyrc = VIO16DESTROYPS(a);
12990 SetFS(sel);
12991
12992 return yyrc;
12993}
12994
12995#undef VioDestroyPS
12996#define VioDestroyPS _VioDestroyPS
12997
12998inline USHORT _VioGetDeviceCellSize(PSHORT a, PSHORT b, HVPS c)
12999{
13000 USHORT yyrc;
13001 USHORT sel = RestoreOS2FS();
13002
13003 yyrc = VIO16GETDEVICECELLSIZE(a, b, c);
13004 SetFS(sel);
13005
13006 return yyrc;
13007}
13008
13009#undef VioGetDeviceCellSize
13010#define VioGetDeviceCellSize _VioGetDeviceCellSize
13011
13012inline USHORT _VioGetOrg(PSHORT a, PSHORT b, HVPS c)
13013{
13014 USHORT yyrc;
13015 USHORT sel = RestoreOS2FS();
13016
13017 yyrc = VIO16GETORG(a, b, c);
13018 SetFS(sel);
13019
13020 return yyrc;
13021}
13022
13023#undef VioGetOrg
13024#define VioGetOrg _VioGetOrg
13025
13026inline USHORT _VioQueryFonts(PLONG a, PFONTMETRICS b, LONG c, PLONG d, PSZ e, ULONG f, HVPS g)
13027{
13028 USHORT yyrc;
13029 USHORT sel = RestoreOS2FS();
13030
13031 yyrc = VIO16QUERYFONTS(a, b, c, d, e, f, g);
13032 SetFS(sel);
13033
13034 return yyrc;
13035}
13036
13037#undef VioQueryFonts
13038#define VioQueryFonts _VioQueryFonts
13039
13040inline USHORT _VioQuerySetIds(PLONG a, PSTR8 b, PLONG c, LONG d, HVPS e)
13041{
13042 USHORT yyrc;
13043 USHORT sel = RestoreOS2FS();
13044
13045 yyrc = VIO16QUERYSETIDS(a, b, c, d, e);
13046 SetFS(sel);
13047
13048 return yyrc;
13049}
13050
13051#undef VioQuerySetIds
13052#define VioQuerySetIds _VioQuerySetIds
13053
13054inline USHORT _VioSetDeviceCellSize(SHORT a, SHORT b, HVPS c)
13055{
13056 USHORT yyrc;
13057 USHORT sel = RestoreOS2FS();
13058
13059 yyrc = VIO16SETDEVICECELLSIZE(a, b, c);
13060 SetFS(sel);
13061
13062 return yyrc;
13063}
13064
13065#undef VioSetDeviceCellSize
13066#define VioSetDeviceCellSize _VioSetDeviceCellSize
13067
13068inline USHORT _VioSetOrg(SHORT a, SHORT b, HVPS c)
13069{
13070 USHORT yyrc;
13071 USHORT sel = RestoreOS2FS();
13072
13073 yyrc = VIO16SETORG(a, b, c);
13074 SetFS(sel);
13075
13076 return yyrc;
13077}
13078
13079#undef VioSetOrg
13080#define VioSetOrg _VioSetOrg
13081
13082inline USHORT _VioShowPS(SHORT a, SHORT b, SHORT c, HVPS d)
13083{
13084 USHORT yyrc;
13085 USHORT sel = RestoreOS2FS();
13086
13087 yyrc = VIO16SHOWPS(a, b, c, d);
13088 SetFS(sel);
13089
13090 return yyrc;
13091}
13092
13093#undef VioShowPS
13094#define VioShowPS _VioShowPS
13095
13096inline MRESULT _WinDefAVioWindowProc(HWND a, USHORT b, ULONG c, ULONG d)
13097{
13098 MRESULT yyrc;
13099 USHORT sel = RestoreOS2FS();
13100
13101 yyrc = WinDefAVioWindowProc(a, b, c, d);
13102 SetFS(sel);
13103
13104 return yyrc;
13105}
13106
13107#undef WinDefAVioWindowProc
13108#define WinDefAVioWindowProc _WinDefAVioWindowProc
13109
13110#endif
13111#ifdef INCL_KBD
13112inline USHORT _KbdCharIn(PKBDKEYINFO a, USHORT b, HKBD c)
13113{
13114 USHORT yyrc;
13115 USHORT sel = RestoreOS2FS();
13116
13117 yyrc = KbdCharIn(a, b, c);
13118 SetFS(sel);
13119
13120 return yyrc;
13121}
13122
13123#undef KbdCharIn
13124#define KbdCharIn _KbdCharIn
13125
13126inline USHORT _KbdClose(HKBD a)
13127{
13128 USHORT yyrc;
13129 USHORT sel = RestoreOS2FS();
13130
13131 yyrc = KbdClose(a);
13132 SetFS(sel);
13133
13134 return yyrc;
13135}
13136
13137#undef KbdClose
13138#define KbdClose _KbdClose
13139
13140inline USHORT _KbdDeRegister()
13141{
13142 USHORT yyrc;
13143 USHORT sel = RestoreOS2FS();
13144
13145 yyrc = KbdDeRegister();
13146 SetFS(sel);
13147
13148 return yyrc;
13149}
13150
13151#undef KbdDeRegister
13152#define KbdDeRegister _KbdDeRegister
13153
13154inline USHORT _KbdFlushBuffer(HKBD a)
13155{
13156 USHORT yyrc;
13157 USHORT sel = RestoreOS2FS();
13158
13159 yyrc = KbdFlushBuffer(a);
13160 SetFS(sel);
13161
13162 return yyrc;
13163}
13164
13165#undef KbdFlushBuffer
13166#define KbdFlushBuffer _KbdFlushBuffer
13167
13168inline USHORT _KbdFreeFocus(HKBD a)
13169{
13170 USHORT yyrc;
13171 USHORT sel = RestoreOS2FS();
13172
13173 yyrc = KbdFreeFocus(a);
13174 SetFS(sel);
13175
13176 return yyrc;
13177}
13178
13179#undef KbdFreeFocus
13180#define KbdFreeFocus _KbdFreeFocus
13181
13182inline USHORT _KbdGetCp(ULONG a, PUSHORT b, HKBD c)
13183{
13184 USHORT yyrc;
13185 USHORT sel = RestoreOS2FS();
13186
13187 yyrc = KbdGetCp(a, b, c);
13188 SetFS(sel);
13189
13190 return yyrc;
13191}
13192
13193#undef KbdGetCp
13194#define KbdGetCp _KbdGetCp
13195
13196inline USHORT _KbdGetFocus(USHORT a, HKBD b)
13197{
13198 USHORT yyrc;
13199 USHORT sel = RestoreOS2FS();
13200
13201 yyrc = KbdGetFocus(a, b);
13202 SetFS(sel);
13203
13204 return yyrc;
13205}
13206
13207#undef KbdGetFocus
13208#define KbdGetFocus _KbdGetFocus
13209
13210inline USHORT _KbdGetHWID(PKBDHWID a, HKBD b)
13211{
13212 USHORT yyrc;
13213 USHORT sel = RestoreOS2FS();
13214
13215 yyrc = KbdGetHWID(a, b);
13216 SetFS(sel);
13217
13218 return yyrc;
13219}
13220
13221#undef KbdGetHWID
13222#define KbdGetHWID _KbdGetHWID
13223
13224inline USHORT _KbdGetStatus(PKBDINFO a, HKBD b)
13225{
13226 USHORT yyrc;
13227 USHORT sel = RestoreOS2FS();
13228
13229 yyrc = KbdGetStatus(a, b);
13230 SetFS(sel);
13231
13232 return yyrc;
13233}
13234
13235#undef KbdGetStatus
13236#define KbdGetStatus _KbdGetStatus
13237
13238inline USHORT _KbdOpen(PHKBD a)
13239{
13240 USHORT yyrc;
13241 USHORT sel = RestoreOS2FS();
13242
13243 yyrc = KbdOpen(a);
13244 SetFS(sel);
13245
13246 return yyrc;
13247}
13248
13249#undef KbdOpen
13250#define KbdOpen _KbdOpen
13251
13252inline USHORT _KbdPeek(PKBDKEYINFO a, HKBD b)
13253{
13254 USHORT yyrc;
13255 USHORT sel = RestoreOS2FS();
13256
13257 yyrc = KbdPeek(a, b);
13258 SetFS(sel);
13259
13260 return yyrc;
13261}
13262
13263#undef KbdPeek
13264#define KbdPeek _KbdPeek
13265
13266inline USHORT _KbdRegister(PSZ a, PSZ b, ULONG c)
13267{
13268 USHORT yyrc;
13269 USHORT sel = RestoreOS2FS();
13270
13271 yyrc = KbdRegister(a, b, c);
13272 SetFS(sel);
13273
13274 return yyrc;
13275}
13276
13277#undef KbdRegister
13278#define KbdRegister _KbdRegister
13279
13280inline USHORT _KbdSetCp(USHORT a, USHORT b, HKBD c)
13281{
13282 USHORT yyrc;
13283 USHORT sel = RestoreOS2FS();
13284
13285 yyrc = KbdSetCp(a, b, c);
13286 SetFS(sel);
13287
13288 return yyrc;
13289}
13290
13291#undef KbdSetCp
13292#define KbdSetCp _KbdSetCp
13293
13294inline USHORT _KbdSetCustXt(PUSHORT a, HKBD b)
13295{
13296 USHORT yyrc;
13297 USHORT sel = RestoreOS2FS();
13298
13299 yyrc = KbdSetCustXt(a, b);
13300 SetFS(sel);
13301
13302 return yyrc;
13303}
13304
13305#undef KbdSetCustXt
13306#define KbdSetCustXt _KbdSetCustXt
13307
13308inline USHORT _KbdSetFgnd()
13309{
13310 USHORT yyrc;
13311 USHORT sel = RestoreOS2FS();
13312
13313 yyrc = KbdSetFgnd();
13314 SetFS(sel);
13315
13316 return yyrc;
13317}
13318
13319#undef KbdSetFgnd
13320#define KbdSetFgnd _KbdSetFgnd
13321
13322inline USHORT _KbdSetHWID(PKBDHWID a, HKBD b)
13323{
13324 USHORT yyrc;
13325 USHORT sel = RestoreOS2FS();
13326
13327 yyrc = KbdSetHWID(a, b);
13328 SetFS(sel);
13329
13330 return yyrc;
13331}
13332
13333#undef KbdSetHWID
13334#define KbdSetHWID _KbdSetHWID
13335
13336inline USHORT _KbdSetStatus(PKBDINFO a, HKBD b)
13337{
13338 USHORT yyrc;
13339 USHORT sel = RestoreOS2FS();
13340
13341 yyrc = KbdSetStatus(a, b);
13342 SetFS(sel);
13343
13344 return yyrc;
13345}
13346
13347#undef KbdSetStatus
13348#define KbdSetStatus _KbdSetStatus
13349
13350inline USHORT _KbdStringIn(PCH a, PSTRINGINBUF b, USHORT c, HKBD d)
13351{
13352 USHORT yyrc;
13353 USHORT sel = RestoreOS2FS();
13354
13355 yyrc = KbdStringIn(a, b, c, d);
13356 SetFS(sel);
13357
13358 return yyrc;
13359}
13360
13361#undef KbdStringIn
13362#define KbdStringIn _KbdStringIn
13363
13364inline USHORT _KbdSynch(USHORT a)
13365{
13366 USHORT yyrc;
13367 USHORT sel = RestoreOS2FS();
13368
13369 yyrc = KbdSynch(a);
13370 SetFS(sel);
13371
13372 return yyrc;
13373}
13374
13375#undef KbdSynch
13376#define KbdSynch _KbdSynch
13377
13378inline USHORT _KbdXlate(PKBDTRANS a, HKBD b)
13379{
13380 USHORT yyrc;
13381 USHORT sel = RestoreOS2FS();
13382
13383 yyrc = KbdXlate(a, b);
13384 SetFS(sel);
13385
13386 return yyrc;
13387}
13388
13389#undef KbdXlate
13390#define KbdXlate _KbdXlate
13391
13392#endif
13393#ifdef INCL_VIO
13394inline USHORT _VioCheckCharType(PUSHORT a, USHORT b, USHORT c, HVIO d)
13395{
13396 USHORT yyrc;
13397 USHORT sel = RestoreOS2FS();
13398
13399 yyrc = VIO16CHECKCHARTYPE(a, b, c, d);
13400 SetFS(sel);
13401
13402 return yyrc;
13403}
13404
13405#undef VioCheckCharType
13406#define VioCheckCharType _VioCheckCharType
13407
13408inline USHORT _VioDeRegister()
13409{
13410 USHORT yyrc;
13411 USHORT sel = RestoreOS2FS();
13412
13413 yyrc = VIO16DEREGISTER();
13414 SetFS(sel);
13415
13416 return yyrc;
13417}
13418
13419#undef VioDeRegister
13420#define VioDeRegister _VioDeRegister
13421
13422inline USHORT _VioEndPopUp(HVIO a)
13423{
13424 USHORT yyrc;
13425 USHORT sel = RestoreOS2FS();
13426
13427 yyrc = VIO16ENDPOPUP(a);
13428 SetFS(sel);
13429
13430 return yyrc;
13431}
13432
13433#undef VioEndPopUp
13434#define VioEndPopUp _VioEndPopUp
13435
13436inline USHORT _VioGetAnsi(PUSHORT a, HVIO b)
13437{
13438 USHORT yyrc;
13439 USHORT sel = RestoreOS2FS();
13440
13441 yyrc = VIO16GETANSI(a, b);
13442 SetFS(sel);
13443
13444 return yyrc;
13445}
13446
13447#undef VioGetAnsi
13448#define VioGetAnsi _VioGetAnsi
13449
13450inline USHORT _VioGetBuf(PULONG a, PUSHORT b, HVIO c)
13451{
13452 USHORT yyrc;
13453 USHORT sel = RestoreOS2FS();
13454
13455 yyrc = VIO16GETBUF(a, b, c);
13456 SetFS(sel);
13457
13458 return yyrc;
13459}
13460
13461#undef VioGetBuf
13462#define VioGetBuf _VioGetBuf
13463
13464inline USHORT _VioGetConfig(USHORT a, PVIOCONFIGINFO b, HVIO c)
13465{
13466 USHORT yyrc;
13467 USHORT sel = RestoreOS2FS();
13468
13469 yyrc = VIO16GETCONFIG(a, b, c);
13470 SetFS(sel);
13471
13472 return yyrc;
13473}
13474
13475#undef VioGetConfig
13476#define VioGetConfig _VioGetConfig
13477
13478inline USHORT _VioGetCp(USHORT a, PUSHORT b, HVIO c)
13479{
13480 USHORT yyrc;
13481 USHORT sel = RestoreOS2FS();
13482
13483 yyrc = VIO16GETCP(a, b, c);
13484 SetFS(sel);
13485
13486 return yyrc;
13487}
13488
13489#undef VioGetCp
13490#define VioGetCp _VioGetCp
13491
13492inline USHORT _VioGetCurPos(PUSHORT a, PUSHORT b, HVIO c)
13493{
13494 USHORT yyrc;
13495 USHORT sel = RestoreOS2FS();
13496
13497 yyrc = VIO16GETCURPOS(a, b, c);
13498 SetFS(sel);
13499
13500 return yyrc;
13501}
13502
13503#undef VioGetCurPos
13504#define VioGetCurPos _VioGetCurPos
13505
13506inline USHORT _VioGetCurType(PVIOCURSORINFO a, HVIO b)
13507{
13508 USHORT yyrc;
13509 USHORT sel = RestoreOS2FS();
13510
13511 yyrc = VIO16GETCURTYPE(a, b);
13512 SetFS(sel);
13513
13514 return yyrc;
13515}
13516
13517#undef VioGetCurType
13518#define VioGetCurType _VioGetCurType
13519
13520inline USHORT _VioGetFont(PVIOFONTINFO a, HVIO b)
13521{
13522 USHORT yyrc;
13523 USHORT sel = RestoreOS2FS();
13524
13525 yyrc = VIO16GETFONT(a, b);
13526 SetFS(sel);
13527
13528 return yyrc;
13529}
13530
13531#undef VioGetFont
13532#define VioGetFont _VioGetFont
13533
13534inline USHORT _VioGetMode(PVIOMODEINFO a, HVIO b)
13535{
13536 USHORT yyrc;
13537 USHORT sel = RestoreOS2FS();
13538
13539 yyrc = VIO16GETMODE(a, b);
13540 SetFS(sel);
13541
13542 return yyrc;
13543}
13544
13545#undef VioGetMode
13546#define VioGetMode _VioGetMode
13547
13548inline USHORT _VioGetPhysBuf(PVIOPHYSBUF a, USHORT b)
13549{
13550 USHORT yyrc;
13551 USHORT sel = RestoreOS2FS();
13552
13553 yyrc = VIO16GETPHYSBUF(a, b);
13554 SetFS(sel);
13555
13556 return yyrc;
13557}
13558
13559#undef VioGetPhysBuf
13560#define VioGetPhysBuf _VioGetPhysBuf
13561
13562inline USHORT _VioGetState(PVOID a, HVIO b)
13563{
13564 USHORT yyrc;
13565 USHORT sel = RestoreOS2FS();
13566
13567 yyrc = VIO16GETSTATE(a, b);
13568 SetFS(sel);
13569
13570 return yyrc;
13571}
13572
13573#undef VioGetState
13574#define VioGetState _VioGetState
13575
13576inline USHORT _VioModeUndo(USHORT a, USHORT b, USHORT c)
13577{
13578 USHORT yyrc;
13579 USHORT sel = RestoreOS2FS();
13580
13581 yyrc = VIO16MODEUNDO(a, b, c);
13582 SetFS(sel);
13583
13584 return yyrc;
13585}
13586
13587#undef VioModeUndo
13588#define VioModeUndo _VioModeUndo
13589
13590inline USHORT _VioModeWait(USHORT a, PUSHORT b, USHORT c)
13591{
13592 USHORT yyrc;
13593 USHORT sel = RestoreOS2FS();
13594
13595 yyrc = VIO16MODEWAIT(a, b, c);
13596 SetFS(sel);
13597
13598 return yyrc;
13599}
13600
13601#undef VioModeWait
13602#define VioModeWait _VioModeWait
13603
13604inline USHORT _VioPopUp(PUSHORT a, HVIO b)
13605{
13606 USHORT yyrc;
13607 USHORT sel = RestoreOS2FS();
13608
13609 yyrc = VIO16POPUP(a, b);
13610 SetFS(sel);
13611
13612 return yyrc;
13613}
13614
13615#undef VioPopUp
13616#define VioPopUp _VioPopUp
13617
13618inline USHORT _VioPrtSc(HVIO a)
13619{
13620 USHORT yyrc;
13621 USHORT sel = RestoreOS2FS();
13622
13623 yyrc = VIO16PRTSC(a);
13624 SetFS(sel);
13625
13626 return yyrc;
13627}
13628
13629#undef VioPrtSc
13630#define VioPrtSc _VioPrtSc
13631
13632inline USHORT _VioPrtScToggle(HVIO a)
13633{
13634 USHORT yyrc;
13635 USHORT sel = RestoreOS2FS();
13636
13637 yyrc = VIO16PRTSCTOGGLE(a);
13638 SetFS(sel);
13639
13640 return yyrc;
13641}
13642
13643#undef VioPrtScToggle
13644#define VioPrtScToggle _VioPrtScToggle
13645
13646inline USHORT _VioReadCellStr(PCH a, PUSHORT b, USHORT c, USHORT d, HVIO e)
13647{
13648 USHORT yyrc;
13649 USHORT sel = RestoreOS2FS();
13650
13651 yyrc = VIO16READCELLSTR(a, b, c, d, e);
13652 SetFS(sel);
13653
13654 return yyrc;
13655}
13656
13657#undef VioReadCellStr
13658#define VioReadCellStr _VioReadCellStr
13659
13660inline USHORT _VioReadCharStr(PCH a, PUSHORT b, USHORT c, USHORT d, HVIO e)
13661{
13662 USHORT yyrc;
13663 USHORT sel = RestoreOS2FS();
13664
13665 yyrc = VIO16READCHARSTR(a, b, c, d, e);
13666 SetFS(sel);
13667
13668 return yyrc;
13669}
13670
13671#undef VioReadCharStr
13672#define VioReadCharStr _VioReadCharStr
13673
13674inline USHORT _VioRegister(PSZ a, PSZ b, ULONG c, ULONG d)
13675{
13676 USHORT yyrc;
13677 USHORT sel = RestoreOS2FS();
13678
13679 yyrc = VIO16REGISTER(a, b, c, d);
13680 SetFS(sel);
13681
13682 return yyrc;
13683}
13684
13685#undef VioRegister
13686#define VioRegister _VioRegister
13687
13688inline USHORT _VioSavRedrawUndo(USHORT a, USHORT b, USHORT c)
13689{
13690 USHORT yyrc;
13691 USHORT sel = RestoreOS2FS();
13692
13693 yyrc = VIO16SAVREDRAWUNDO(a, b, c);
13694 SetFS(sel);
13695
13696 return yyrc;
13697}
13698
13699#undef VioSavRedrawUndo
13700#define VioSavRedrawUndo _VioSavRedrawUndo
13701
13702inline USHORT _VioSavRedrawWait(USHORT a, PUSHORT b, USHORT c)
13703{
13704 USHORT yyrc;
13705 USHORT sel = RestoreOS2FS();
13706
13707 yyrc = VIO16SAVREDRAWWAIT(a, b, c);
13708 SetFS(sel);
13709
13710 return yyrc;
13711}
13712
13713#undef VioSavRedrawWait
13714#define VioSavRedrawWait _VioSavRedrawWait
13715
13716inline USHORT _VioScrLock(USHORT a, PUCHAR b, HVIO c)
13717{
13718 USHORT yyrc;
13719 USHORT sel = RestoreOS2FS();
13720
13721 yyrc = VIO16SCRLOCK(a, b, c);
13722 SetFS(sel);
13723
13724 return yyrc;
13725}
13726
13727#undef VioScrLock
13728#define VioScrLock _VioScrLock
13729
13730inline USHORT _VioScrollDn(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
13731{
13732 USHORT yyrc;
13733 USHORT sel = RestoreOS2FS();
13734
13735 yyrc = VIO16SCROLLDN(a, b, c, d, e, f, g);
13736 SetFS(sel);
13737
13738 return yyrc;
13739}
13740
13741#undef VioScrollDn
13742#define VioScrollDn _VioScrollDn
13743
13744inline USHORT _VioScrollLf(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
13745{
13746 USHORT yyrc;
13747 USHORT sel = RestoreOS2FS();
13748
13749 yyrc = VIO16SCROLLLF(a, b, c, d, e, f, g);
13750 SetFS(sel);
13751
13752 return yyrc;
13753}
13754
13755#undef VioScrollLf
13756#define VioScrollLf _VioScrollLf
13757
13758inline USHORT _VioScrollRt(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
13759{
13760 USHORT yyrc;
13761 USHORT sel = RestoreOS2FS();
13762
13763 yyrc = VIO16SCROLLRT(a, b, c, d, e, f, g);
13764 SetFS(sel);
13765
13766 return yyrc;
13767}
13768
13769#undef VioScrollRt
13770#define VioScrollRt _VioScrollRt
13771
13772inline USHORT _VioScrollUp(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
13773{
13774 USHORT yyrc;
13775 USHORT sel = RestoreOS2FS();
13776
13777 yyrc = VIO16SCROLLUP(a, b, c, d, e, f, g);
13778 SetFS(sel);
13779
13780 return yyrc;
13781}
13782
13783#undef VioScrollUp
13784#define VioScrollUp _VioScrollUp
13785
13786inline USHORT _VioScrUnLock(HVIO a)
13787{
13788 USHORT yyrc;
13789 USHORT sel = RestoreOS2FS();
13790
13791 yyrc = VIO16SCRUNLOCK(a);
13792 SetFS(sel);
13793
13794 return yyrc;
13795}
13796
13797#undef VioScrUnLock
13798#define VioScrUnLock _VioScrUnLock
13799
13800inline USHORT _VioSetAnsi(USHORT a, HVIO b)
13801{
13802 USHORT yyrc;
13803 USHORT sel = RestoreOS2FS();
13804
13805 yyrc = VIO16SETANSI(a, b);
13806 SetFS(sel);
13807
13808 return yyrc;
13809}
13810
13811#undef VioSetAnsi
13812#define VioSetAnsi _VioSetAnsi
13813
13814inline USHORT _VioSetCp(USHORT a, USHORT b, HVIO c)
13815{
13816 USHORT yyrc;
13817 USHORT sel = RestoreOS2FS();
13818
13819 yyrc = VIO16SETCP(a, b, c);
13820 SetFS(sel);
13821
13822 return yyrc;
13823}
13824
13825#undef VioSetCp
13826#define VioSetCp _VioSetCp
13827
13828inline USHORT _VioSetCurPos(USHORT a, USHORT b, HVIO c)
13829{
13830 USHORT yyrc;
13831 USHORT sel = RestoreOS2FS();
13832
13833 yyrc = VIO16SETCURPOS(a, b, c);
13834 SetFS(sel);
13835
13836 return yyrc;
13837}
13838
13839#undef VioSetCurPos
13840#define VioSetCurPos _VioSetCurPos
13841
13842inline USHORT _VioSetCurType(PVIOCURSORINFO a, HVIO b)
13843{
13844 USHORT yyrc;
13845 USHORT sel = RestoreOS2FS();
13846
13847 yyrc = VIO16SETCURTYPE(a, b);
13848 SetFS(sel);
13849
13850 return yyrc;
13851}
13852
13853#undef VioSetCurType
13854#define VioSetCurType _VioSetCurType
13855
13856inline USHORT _VioSetFont(PVIOFONTINFO a, HVIO b)
13857{
13858 USHORT yyrc;
13859 USHORT sel = RestoreOS2FS();
13860
13861 yyrc = VIO16SETFONT(a, b);
13862 SetFS(sel);
13863
13864 return yyrc;
13865}
13866
13867#undef VioSetFont
13868#define VioSetFont _VioSetFont
13869
13870inline USHORT _VioSetMode(PVIOMODEINFO a, HVIO b)
13871{
13872 USHORT yyrc;
13873 USHORT sel = RestoreOS2FS();
13874
13875 yyrc = VIO16SETMODE(a, b);
13876 SetFS(sel);
13877
13878 return yyrc;
13879}
13880
13881#undef VioSetMode
13882#define VioSetMode _VioSetMode
13883
13884inline USHORT _VioSetState(PVOID a, HVIO b)
13885{
13886 USHORT yyrc;
13887 USHORT sel = RestoreOS2FS();
13888
13889 yyrc = VIO16SETSTATE(a, b);
13890 SetFS(sel);
13891
13892 return yyrc;
13893}
13894
13895#undef VioSetState
13896#define VioSetState _VioSetState
13897
13898inline USHORT _VioShowBuf(USHORT a, USHORT b, HVIO c)
13899{
13900 USHORT yyrc;
13901 USHORT sel = RestoreOS2FS();
13902
13903 yyrc = VIO16SHOWBUF(a, b, c);
13904 SetFS(sel);
13905
13906 return yyrc;
13907}
13908
13909#undef VioShowBuf
13910#define VioShowBuf _VioShowBuf
13911
13912inline USHORT _VioWrtCellStr(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
13913{
13914 USHORT yyrc;
13915 USHORT sel = RestoreOS2FS();
13916
13917 yyrc = VIO16WRTCELLSTR(a, b, c, d, e);
13918 SetFS(sel);
13919
13920 return yyrc;
13921}
13922
13923#undef VioWrtCellStr
13924#define VioWrtCellStr _VioWrtCellStr
13925
13926inline USHORT _VioWrtCharStr(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
13927{
13928 USHORT yyrc;
13929 USHORT sel = RestoreOS2FS();
13930
13931 yyrc = VIO16WRTCHARSTR(a, b, c, d, e);
13932 SetFS(sel);
13933
13934 return yyrc;
13935}
13936
13937#undef VioWrtCharStr
13938#define VioWrtCharStr _VioWrtCharStr
13939
13940inline USHORT _VioWrtCharStrAtt(PCH a, USHORT b, USHORT c, USHORT d, PBYTE e, HVIO f)
13941{
13942 USHORT yyrc;
13943 USHORT sel = RestoreOS2FS();
13944
13945 yyrc = VIO16WRTCHARSTRATT(a, b, c, d, e, f);
13946 SetFS(sel);
13947
13948 return yyrc;
13949}
13950
13951#undef VioWrtCharStrAtt
13952#define VioWrtCharStrAtt _VioWrtCharStrAtt
13953
13954inline USHORT _VioWrtNAttr(PBYTE a, USHORT b, USHORT c, USHORT d, HVIO e)
13955{
13956 USHORT yyrc;
13957 USHORT sel = RestoreOS2FS();
13958
13959 yyrc = VIO16WRTNATTR(a, b, c, d, e);
13960 SetFS(sel);
13961
13962 return yyrc;
13963}
13964
13965#undef VioWrtNAttr
13966#define VioWrtNAttr _VioWrtNAttr
13967
13968inline USHORT _VioWrtNCell(PBYTE a, USHORT b, USHORT c, USHORT d, HVIO e)
13969{
13970 USHORT yyrc;
13971 USHORT sel = RestoreOS2FS();
13972
13973 yyrc = VIO16WRTNCELL(a, b, c, d, e);
13974 SetFS(sel);
13975
13976 return yyrc;
13977}
13978
13979#undef VioWrtNCell
13980#define VioWrtNCell _VioWrtNCell
13981
13982inline USHORT _VioWrtNChar(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
13983{
13984 USHORT yyrc;
13985 USHORT sel = RestoreOS2FS();
13986
13987 yyrc = VIO16WRTNCHAR(a, b, c, d, e);
13988 SetFS(sel);
13989
13990 return yyrc;
13991}
13992
13993#undef VioWrtNChar
13994#define VioWrtNChar _VioWrtNChar
13995
13996inline USHORT _VioWrtTTY(PCH a, USHORT b, HVIO c)
13997{
13998 USHORT yyrc;
13999 USHORT sel = RestoreOS2FS();
14000
14001 yyrc = VIO16WRTTTY(a, b, c);
14002 SetFS(sel);
14003
14004 return yyrc;
14005}
14006
14007#undef VioWrtTTY
14008#define VioWrtTTY _VioWrtTTY
14009
14010#endif
14011#ifdef INCL_MOU
14012inline USHORT _MouClose(HMOU a)
14013{
14014 USHORT yyrc;
14015 USHORT sel = RestoreOS2FS();
14016
14017 yyrc = MOU16CLOSE(a);
14018 SetFS(sel);
14019
14020 return yyrc;
14021}
14022
14023#undef MouClose
14024#define MouClose _MouClose
14025
14026inline USHORT _MouDeRegister()
14027{
14028 USHORT yyrc;
14029 USHORT sel = RestoreOS2FS();
14030
14031 yyrc = MOU16DEREGISTER();
14032 SetFS(sel);
14033
14034 return yyrc;
14035}
14036
14037#undef MouDeRegister
14038#define MouDeRegister _MouDeRegister
14039
14040inline USHORT _MouDrawPtr(HMOU a)
14041{
14042 USHORT yyrc;
14043 USHORT sel = RestoreOS2FS();
14044
14045 yyrc = MOU16DRAWPTR(a);
14046 SetFS(sel);
14047
14048 return yyrc;
14049}
14050
14051#undef MouDrawPtr
14052#define MouDrawPtr _MouDrawPtr
14053
14054inline USHORT _MouFlushQue(HMOU a)
14055{
14056 USHORT yyrc;
14057 USHORT sel = RestoreOS2FS();
14058
14059 yyrc = MOU16FLUSHQUE(a);
14060 SetFS(sel);
14061
14062 return yyrc;
14063}
14064
14065#undef MouFlushQue
14066#define MouFlushQue _MouFlushQue
14067
14068inline USHORT _MouGetDevStatus(PUSHORT a, HMOU b)
14069{
14070 USHORT yyrc;
14071 USHORT sel = RestoreOS2FS();
14072
14073 yyrc = MOU16GETDEVSTATUS(a, b);
14074 SetFS(sel);
14075
14076 return yyrc;
14077}
14078
14079#undef MouGetDevStatus
14080#define MouGetDevStatus _MouGetDevStatus
14081
14082inline USHORT _MouGetEventMask(PUSHORT a, HMOU b)
14083{
14084 USHORT yyrc;
14085 USHORT sel = RestoreOS2FS();
14086
14087 yyrc = MOU16GETEVENTMASK(a, b);
14088 SetFS(sel);
14089
14090 return yyrc;
14091}
14092
14093#undef MouGetEventMask
14094#define MouGetEventMask _MouGetEventMask
14095
14096inline USHORT _MouGetNumButtons(PUSHORT a, HMOU b)
14097{
14098 USHORT yyrc;
14099 USHORT sel = RestoreOS2FS();
14100
14101 yyrc = MOU16GETNUMBUTTONS(a, b);
14102 SetFS(sel);
14103
14104 return yyrc;
14105}
14106
14107#undef MouGetNumButtons
14108#define MouGetNumButtons _MouGetNumButtons
14109
14110inline USHORT _MouGetNumMickeys(PUSHORT a, HMOU b)
14111{
14112 USHORT yyrc;
14113 USHORT sel = RestoreOS2FS();
14114
14115 yyrc = MOU16GETNUMMICKEYS(a, b);
14116 SetFS(sel);
14117
14118 return yyrc;
14119}
14120
14121#undef MouGetNumMickeys
14122#define MouGetNumMickeys _MouGetNumMickeys
14123
14124inline USHORT _MouGetNumQueEl(PMOUQUEINFO a, HMOU b)
14125{
14126 USHORT yyrc;
14127 USHORT sel = RestoreOS2FS();
14128
14129 yyrc = MOU16GETNUMQUEEL(a, b);
14130 SetFS(sel);
14131
14132 return yyrc;
14133}
14134
14135#undef MouGetNumQueEl
14136#define MouGetNumQueEl _MouGetNumQueEl
14137
14138inline USHORT _MouGetPtrPos(PPTRLOC a, HMOU b)
14139{
14140 USHORT yyrc;
14141 USHORT sel = RestoreOS2FS();
14142
14143 yyrc = MOU16GETPTRPOS(a, b);
14144 SetFS(sel);
14145
14146 return yyrc;
14147}
14148
14149#undef MouGetPtrPos
14150#define MouGetPtrPos _MouGetPtrPos
14151
14152inline USHORT _MouGetPtrShape(PBYTE a, PPTRSHAPE b, HMOU c)
14153{
14154 USHORT yyrc;
14155 USHORT sel = RestoreOS2FS();
14156
14157 yyrc = MOU16GETPTRSHAPE(a, b, c);
14158 SetFS(sel);
14159
14160 return yyrc;
14161}
14162
14163#undef MouGetPtrShape
14164#define MouGetPtrShape _MouGetPtrShape
14165
14166inline USHORT _MouGetScaleFact(PSCALEFACT a, HMOU b)
14167{
14168 USHORT yyrc;
14169 USHORT sel = RestoreOS2FS();
14170
14171 yyrc = MOU16GETSCALEFACT(a, b);
14172 SetFS(sel);
14173
14174 return yyrc;
14175}
14176
14177#undef MouGetScaleFact
14178#define MouGetScaleFact _MouGetScaleFact
14179
14180inline USHORT _MouGetThreshold(PTHRESHOLD a, HMOU b)
14181{
14182 USHORT yyrc;
14183 USHORT sel = RestoreOS2FS();
14184
14185 yyrc = MOU16GETTHRESHOLD(a, b);
14186 SetFS(sel);
14187
14188 return yyrc;
14189}
14190
14191#undef MouGetThreshold
14192#define MouGetThreshold _MouGetThreshold
14193
14194inline USHORT _MouInitReal(PSZ a)
14195{
14196 USHORT yyrc;
14197 USHORT sel = RestoreOS2FS();
14198
14199 yyrc = MOU16INITREAL(a);
14200 SetFS(sel);
14201
14202 return yyrc;
14203}
14204
14205#undef MouInitReal
14206#define MouInitReal _MouInitReal
14207
14208inline USHORT _MouOpen(PSZ a, PHMOU b)
14209{
14210 USHORT yyrc;
14211 USHORT sel = RestoreOS2FS();
14212
14213 yyrc = MOU16OPEN(a, b);
14214 SetFS(sel);
14215
14216 return yyrc;
14217}
14218
14219#undef MouOpen
14220#define MouOpen _MouOpen
14221
14222inline USHORT _MouReadEventQue(PMOUEVENTINFO a, PUSHORT b, HMOU c)
14223{
14224 USHORT yyrc;
14225 USHORT sel = RestoreOS2FS();
14226
14227 yyrc = MOU16READEVENTQUE(a, b, c);
14228 SetFS(sel);
14229
14230 return yyrc;
14231}
14232
14233#undef MouReadEventQue
14234#define MouReadEventQue _MouReadEventQue
14235
14236inline USHORT _MouRegister(PSZ a, PSZ b, ULONG c)
14237{
14238 USHORT yyrc;
14239 USHORT sel = RestoreOS2FS();
14240
14241 yyrc = MOU16REGISTER(a, b, c);
14242 SetFS(sel);
14243
14244 return yyrc;
14245}
14246
14247#undef MouRegister
14248#define MouRegister _MouRegister
14249
14250inline USHORT _MouRemovePtr(PNOPTRRECT a, HMOU b)
14251{
14252 USHORT yyrc;
14253 USHORT sel = RestoreOS2FS();
14254
14255 yyrc = MOU16REMOVEPTR(a, b);
14256 SetFS(sel);
14257
14258 return yyrc;
14259}
14260
14261#undef MouRemovePtr
14262#define MouRemovePtr _MouRemovePtr
14263
14264inline USHORT _MouSetDevStatus(PUSHORT a, HMOU b)
14265{
14266 USHORT yyrc;
14267 USHORT sel = RestoreOS2FS();
14268
14269 yyrc = MOU16SETDEVSTATUS(a, b);
14270 SetFS(sel);
14271
14272 return yyrc;
14273}
14274
14275#undef MouSetDevStatus
14276#define MouSetDevStatus _MouSetDevStatus
14277
14278inline USHORT _MouSetEventMask(PUSHORT a, HMOU b)
14279{
14280 USHORT yyrc;
14281 USHORT sel = RestoreOS2FS();
14282
14283 yyrc = MOU16SETEVENTMASK(a, b);
14284 SetFS(sel);
14285
14286 return yyrc;
14287}
14288
14289#undef MouSetEventMask
14290#define MouSetEventMask _MouSetEventMask
14291
14292inline USHORT _MouSetPtrPos(PPTRLOC a, HMOU b)
14293{
14294 USHORT yyrc;
14295 USHORT sel = RestoreOS2FS();
14296
14297 yyrc = MOU16SETPTRPOS(a, b);
14298 SetFS(sel);
14299
14300 return yyrc;
14301}
14302
14303#undef MouSetPtrPos
14304#define MouSetPtrPos _MouSetPtrPos
14305
14306inline USHORT _MouSetPtrShape(PBYTE a, PPTRSHAPE b, HMOU c)
14307{
14308 USHORT yyrc;
14309 USHORT sel = RestoreOS2FS();
14310
14311 yyrc = MOU16SETPTRSHAPE(a, b, c);
14312 SetFS(sel);
14313
14314 return yyrc;
14315}
14316
14317#undef MouSetPtrShape
14318#define MouSetPtrShape _MouSetPtrShape
14319
14320inline USHORT _MouSetScaleFact(PSCALEFACT a, HMOU b)
14321{
14322 USHORT yyrc;
14323 USHORT sel = RestoreOS2FS();
14324
14325 yyrc = MOU16SETSCALEFACT(a, b);
14326 SetFS(sel);
14327
14328 return yyrc;
14329}
14330
14331#undef MouSetScaleFact
14332#define MouSetScaleFact _MouSetScaleFact
14333
14334inline USHORT _MouSetThreshold(PTHRESHOLD a, HMOU b)
14335{
14336 USHORT yyrc;
14337 USHORT sel = RestoreOS2FS();
14338
14339 yyrc = MOU16SETTHRESHOLD(a, b);
14340 SetFS(sel);
14341
14342 return yyrc;
14343}
14344
14345#undef MouSetThreshold
14346#define MouSetThreshold _MouSetThreshold
14347
14348inline USHORT _MouSynch(USHORT a)
14349{
14350 USHORT yyrc;
14351 USHORT sel = RestoreOS2FS();
14352
14353 yyrc = MOU16SYNCH(a);
14354 SetFS(sel);
14355
14356 return yyrc;
14357}
14358
14359#undef MouSynch
14360#define MouSynch _MouSynch
14361
14362#endif
14363
14364#endif
Note: See TracBrowser for help on using the repository browser.