source: trunk/include/os2wrap.h@ 1843

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

MS Word fixes + changes

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