source: trunk/include/os2wrap.h@ 1630

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

GpiDestroyPS fix

File size: 243.3 KB
Line 
1/* $Id: os2wrap.h,v 1.9 1999-10-22 18:02:52 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
9721inline BOOL _GpiDestroyPS(HPS a)
9722{
9723 BOOL yyrc;
9724 USHORT sel = RestoreOS2FS();
9725
9726 yyrc = GpiDestroyPS(a);
9727 SetFS(sel);
9728
9729 return yyrc;
9730}
9731
9732#undef GpiDestroyPS
9733#define GpiDestroyPS _GpiDestroyPS
9734
9735inline BOOL _GpiErase(HPS a)
9736{
9737 BOOL yyrc;
9738 USHORT sel = RestoreOS2FS();
9739
9740 yyrc = GpiErase(a);
9741 SetFS(sel);
9742
9743 return yyrc;
9744}
9745
9746#undef GpiErase
9747#define GpiErase _GpiErase
9748
9749inline HDC _GpiQueryDevice(HPS a)
9750{
9751 HDC yyrc;
9752 USHORT sel = RestoreOS2FS();
9753
9754 yyrc = GpiQueryDevice(a);
9755 SetFS(sel);
9756
9757 return yyrc;
9758}
9759
9760#undef GpiQueryDevice
9761#define GpiQueryDevice _GpiQueryDevice
9762
9763inline BOOL _GpiRestorePS(HPS a, LONG b)
9764{
9765 BOOL yyrc;
9766 USHORT sel = RestoreOS2FS();
9767
9768 yyrc = GpiRestorePS(a, b);
9769 SetFS(sel);
9770
9771 return yyrc;
9772}
9773
9774#undef GpiRestorePS
9775#define GpiRestorePS _GpiRestorePS
9776
9777inline LONG _GpiSavePS(HPS a)
9778{
9779 LONG yyrc;
9780 USHORT sel = RestoreOS2FS();
9781
9782 yyrc = GpiSavePS(a);
9783 SetFS(sel);
9784
9785 return yyrc;
9786}
9787
9788#undef GpiSavePS
9789#define GpiSavePS _GpiSavePS
9790
9791inline LONG _GpiErrorSegmentData(HPS a, PLONG b, PLONG c)
9792{
9793 LONG yyrc;
9794 USHORT sel = RestoreOS2FS();
9795
9796 yyrc = GpiErrorSegmentData(a, b, c);
9797 SetFS(sel);
9798
9799 return yyrc;
9800}
9801
9802#undef GpiErrorSegmentData
9803#define GpiErrorSegmentData _GpiErrorSegmentData
9804
9805inline LONG _GpiQueryDrawControl(HPS a, LONG b)
9806{
9807 LONG yyrc;
9808 USHORT sel = RestoreOS2FS();
9809
9810 yyrc = GpiQueryDrawControl(a, b);
9811 SetFS(sel);
9812
9813 return yyrc;
9814}
9815
9816#undef GpiQueryDrawControl
9817#define GpiQueryDrawControl _GpiQueryDrawControl
9818
9819inline LONG _GpiQueryDrawingMode(HPS a)
9820{
9821 LONG yyrc;
9822 USHORT sel = RestoreOS2FS();
9823
9824 yyrc = GpiQueryDrawingMode(a);
9825 SetFS(sel);
9826
9827 return yyrc;
9828}
9829
9830#undef GpiQueryDrawingMode
9831#define GpiQueryDrawingMode _GpiQueryDrawingMode
9832
9833inline ULONG _GpiQueryPS(HPS a, PSIZEL b)
9834{
9835 ULONG yyrc;
9836 USHORT sel = RestoreOS2FS();
9837
9838 yyrc = GpiQueryPS(a, b);
9839 SetFS(sel);
9840
9841 return yyrc;
9842}
9843
9844#undef GpiQueryPS
9845#define GpiQueryPS _GpiQueryPS
9846
9847inline BOOL _GpiResetPS(HPS a, ULONG b)
9848{
9849 BOOL yyrc;
9850 USHORT sel = RestoreOS2FS();
9851
9852 yyrc = GpiResetPS(a, b);
9853 SetFS(sel);
9854
9855 return yyrc;
9856}
9857
9858#undef GpiResetPS
9859#define GpiResetPS _GpiResetPS
9860
9861inline LONG _GpiQueryStopDraw(HPS a)
9862{
9863 LONG yyrc;
9864 USHORT sel = RestoreOS2FS();
9865
9866 yyrc = GpiQueryStopDraw(a);
9867 SetFS(sel);
9868
9869 return yyrc;
9870}
9871
9872#undef GpiQueryStopDraw
9873#define GpiQueryStopDraw _GpiQueryStopDraw
9874
9875inline BOOL _GpiSetDrawControl(HPS a, LONG b, LONG c)
9876{
9877 BOOL yyrc;
9878 USHORT sel = RestoreOS2FS();
9879
9880 yyrc = GpiSetDrawControl(a, b, c);
9881 SetFS(sel);
9882
9883 return yyrc;
9884}
9885
9886#undef GpiSetDrawControl
9887#define GpiSetDrawControl _GpiSetDrawControl
9888
9889inline BOOL _GpiSetDrawingMode(HPS a, LONG b)
9890{
9891 BOOL yyrc;
9892 USHORT sel = RestoreOS2FS();
9893
9894 yyrc = GpiSetDrawingMode(a, b);
9895 SetFS(sel);
9896
9897 return yyrc;
9898}
9899
9900#undef GpiSetDrawingMode
9901#define GpiSetDrawingMode _GpiSetDrawingMode
9902
9903inline BOOL _GpiSetPS(HPS a, SIZEL *b, ULONG c)
9904{
9905 BOOL yyrc;
9906 USHORT sel = RestoreOS2FS();
9907
9908 yyrc = GpiSetPS(a, b, c);
9909 SetFS(sel);
9910
9911 return yyrc;
9912}
9913
9914#undef GpiSetPS
9915#define GpiSetPS _GpiSetPS
9916
9917inline BOOL _GpiSetStopDraw(HPS a, LONG b)
9918{
9919 BOOL yyrc;
9920 USHORT sel = RestoreOS2FS();
9921
9922 yyrc = GpiSetStopDraw(a, b);
9923 SetFS(sel);
9924
9925 return yyrc;
9926}
9927
9928#undef GpiSetStopDraw
9929#define GpiSetStopDraw _GpiSetStopDraw
9930
9931#endif
9932#ifdef INCL_GPICORRELATION
9933inline LONG _GpiCorrelateChain(HPS a, LONG b, PPOINTL c, LONG d, LONG e, PLONG f)
9934{
9935 LONG yyrc;
9936 USHORT sel = RestoreOS2FS();
9937
9938 yyrc = GpiCorrelateChain(a, b, c, d, e, f);
9939 SetFS(sel);
9940
9941 return yyrc;
9942}
9943
9944#undef GpiCorrelateChain
9945#define GpiCorrelateChain _GpiCorrelateChain
9946
9947inline LONG _GpiCorrelateFrom(HPS a, LONG b, LONG c, LONG d, PPOINTL e, LONG f, LONG g, PLONG h)
9948{
9949 LONG yyrc;
9950 USHORT sel = RestoreOS2FS();
9951
9952 yyrc = GpiCorrelateFrom(a, b, c, d, e, f, g, h);
9953 SetFS(sel);
9954
9955 return yyrc;
9956}
9957
9958#undef GpiCorrelateFrom
9959#define GpiCorrelateFrom _GpiCorrelateFrom
9960
9961inline LONG _GpiCorrelateSegment(HPS a, LONG b, LONG c, PPOINTL d, LONG e, LONG f, PLONG g)
9962{
9963 LONG yyrc;
9964 USHORT sel = RestoreOS2FS();
9965
9966 yyrc = GpiCorrelateSegment(a, b, c, d, e, f, g);
9967 SetFS(sel);
9968
9969 return yyrc;
9970}
9971
9972#undef GpiCorrelateSegment
9973#define GpiCorrelateSegment _GpiCorrelateSegment
9974
9975inline BOOL _GpiQueryBoundaryData(HPS a, PRECTL b)
9976{
9977 BOOL yyrc;
9978 USHORT sel = RestoreOS2FS();
9979
9980 yyrc = GpiQueryBoundaryData(a, b);
9981 SetFS(sel);
9982
9983 return yyrc;
9984}
9985
9986#undef GpiQueryBoundaryData
9987#define GpiQueryBoundaryData _GpiQueryBoundaryData
9988
9989inline BOOL _GpiQueryPickAperturePosition(HPS a, PPOINTL b)
9990{
9991 BOOL yyrc;
9992 USHORT sel = RestoreOS2FS();
9993
9994 yyrc = GpiQueryPickAperturePosition(a, b);
9995 SetFS(sel);
9996
9997 return yyrc;
9998}
9999
10000#undef GpiQueryPickAperturePosition
10001#define GpiQueryPickAperturePosition _GpiQueryPickAperturePosition
10002
10003inline BOOL _GpiQueryPickApertureSize(HPS a, PSIZEL b)
10004{
10005 BOOL yyrc;
10006 USHORT sel = RestoreOS2FS();
10007
10008 yyrc = GpiQueryPickApertureSize(a, b);
10009 SetFS(sel);
10010
10011 return yyrc;
10012}
10013
10014#undef GpiQueryPickApertureSize
10015#define GpiQueryPickApertureSize _GpiQueryPickApertureSize
10016
10017inline BOOL _GpiQueryTag(HPS a, PLONG b)
10018{
10019 BOOL yyrc;
10020 USHORT sel = RestoreOS2FS();
10021
10022 yyrc = GpiQueryTag(a, b);
10023 SetFS(sel);
10024
10025 return yyrc;
10026}
10027
10028#undef GpiQueryTag
10029#define GpiQueryTag _GpiQueryTag
10030
10031inline BOOL _GpiResetBoundaryData(HPS a)
10032{
10033 BOOL yyrc;
10034 USHORT sel = RestoreOS2FS();
10035
10036 yyrc = GpiResetBoundaryData(a);
10037 SetFS(sel);
10038
10039 return yyrc;
10040}
10041
10042#undef GpiResetBoundaryData
10043#define GpiResetBoundaryData _GpiResetBoundaryData
10044
10045inline BOOL _GpiSetPickAperturePosition(HPS a, PPOINTL b)
10046{
10047 BOOL yyrc;
10048 USHORT sel = RestoreOS2FS();
10049
10050 yyrc = GpiSetPickAperturePosition(a, b);
10051 SetFS(sel);
10052
10053 return yyrc;
10054}
10055
10056#undef GpiSetPickAperturePosition
10057#define GpiSetPickAperturePosition _GpiSetPickAperturePosition
10058
10059inline BOOL _GpiSetPickApertureSize(HPS a, LONG b, SIZEL *c)
10060{
10061 BOOL yyrc;
10062 USHORT sel = RestoreOS2FS();
10063
10064 yyrc = GpiSetPickApertureSize(a, b, c);
10065 SetFS(sel);
10066
10067 return yyrc;
10068}
10069
10070#undef GpiSetPickApertureSize
10071#define GpiSetPickApertureSize _GpiSetPickApertureSize
10072
10073inline BOOL _GpiSetTag(HPS a, LONG b)
10074{
10075 BOOL yyrc;
10076 USHORT sel = RestoreOS2FS();
10077
10078 yyrc = GpiSetTag(a, b);
10079 SetFS(sel);
10080
10081 return yyrc;
10082}
10083
10084#undef GpiSetTag
10085#define GpiSetTag _GpiSetTag
10086
10087#endif
10088#ifdef INCL_GPIINK
10089inline BOOL _GpiBeginInkPath(HPS a, LONG b, ULONG c)
10090{
10091 BOOL yyrc;
10092 USHORT sel = RestoreOS2FS();
10093
10094 yyrc = GpiBeginInkPath(a, b, c);
10095 SetFS(sel);
10096
10097 return yyrc;
10098}
10099
10100#undef GpiBeginInkPath
10101#define GpiBeginInkPath _GpiBeginInkPath
10102
10103inline BOOL _GpiEndInkPath(HPS a, ULONG b)
10104{
10105 BOOL yyrc;
10106 USHORT sel = RestoreOS2FS();
10107
10108 yyrc = GpiEndInkPath(a, b);
10109 SetFS(sel);
10110
10111 return yyrc;
10112}
10113
10114#undef GpiEndInkPath
10115#define GpiEndInkPath _GpiEndInkPath
10116
10117inline LONG _GpiStrokeInkPath(HPS a, LONG b, LONG c, PPOINTL d, ULONG e)
10118{
10119 LONG yyrc;
10120 USHORT sel = RestoreOS2FS();
10121
10122 yyrc = GpiStrokeInkPath(a, b, c, d, e);
10123 SetFS(sel);
10124
10125 return yyrc;
10126}
10127
10128#undef GpiStrokeInkPath
10129#define GpiStrokeInkPath _GpiStrokeInkPath
10130
10131#endif
10132#ifdef INCL_GPISEGMENTS
10133inline BOOL _GpiCloseSegment(HPS a)
10134{
10135 BOOL yyrc;
10136 USHORT sel = RestoreOS2FS();
10137
10138 yyrc = GpiCloseSegment(a);
10139 SetFS(sel);
10140
10141 return yyrc;
10142}
10143
10144#undef GpiCloseSegment
10145#define GpiCloseSegment _GpiCloseSegment
10146
10147inline BOOL _GpiDeleteSegment(HPS a, LONG b)
10148{
10149 BOOL yyrc;
10150 USHORT sel = RestoreOS2FS();
10151
10152 yyrc = GpiDeleteSegment(a, b);
10153 SetFS(sel);
10154
10155 return yyrc;
10156}
10157
10158#undef GpiDeleteSegment
10159#define GpiDeleteSegment _GpiDeleteSegment
10160
10161inline BOOL _GpiDeleteSegments(HPS a, LONG b, LONG c)
10162{
10163 BOOL yyrc;
10164 USHORT sel = RestoreOS2FS();
10165
10166 yyrc = GpiDeleteSegments(a, b, c);
10167 SetFS(sel);
10168
10169 return yyrc;
10170}
10171
10172#undef GpiDeleteSegments
10173#define GpiDeleteSegments _GpiDeleteSegments
10174
10175inline BOOL _GpiDrawChain(HPS a)
10176{
10177 BOOL yyrc;
10178 USHORT sel = RestoreOS2FS();
10179
10180 yyrc = GpiDrawChain(a);
10181 SetFS(sel);
10182
10183 return yyrc;
10184}
10185
10186#undef GpiDrawChain
10187#define GpiDrawChain _GpiDrawChain
10188
10189inline BOOL _GpiDrawDynamics(HPS a)
10190{
10191 BOOL yyrc;
10192 USHORT sel = RestoreOS2FS();
10193
10194 yyrc = GpiDrawDynamics(a);
10195 SetFS(sel);
10196
10197 return yyrc;
10198}
10199
10200#undef GpiDrawDynamics
10201#define GpiDrawDynamics _GpiDrawDynamics
10202
10203inline BOOL _GpiDrawFrom(HPS a, LONG b, LONG c)
10204{
10205 BOOL yyrc;
10206 USHORT sel = RestoreOS2FS();
10207
10208 yyrc = GpiDrawFrom(a, b, c);
10209 SetFS(sel);
10210
10211 return yyrc;
10212}
10213
10214#undef GpiDrawFrom
10215#define GpiDrawFrom _GpiDrawFrom
10216
10217inline BOOL _GpiDrawSegment(HPS a, LONG b)
10218{
10219 BOOL yyrc;
10220 USHORT sel = RestoreOS2FS();
10221
10222 yyrc = GpiDrawSegment(a, b);
10223 SetFS(sel);
10224
10225 return yyrc;
10226}
10227
10228#undef GpiDrawSegment
10229#define GpiDrawSegment _GpiDrawSegment
10230
10231inline LONG _GpiGetData(HPS a, LONG b, PLONG c, LONG d, LONG e, PBYTE f)
10232{
10233 LONG yyrc;
10234 USHORT sel = RestoreOS2FS();
10235
10236 yyrc = GpiGetData(a, b, c, d, e, f);
10237 SetFS(sel);
10238
10239 return yyrc;
10240}
10241
10242#undef GpiGetData
10243#define GpiGetData _GpiGetData
10244
10245inline BOOL _GpiOpenSegment(HPS a, LONG b)
10246{
10247 BOOL yyrc;
10248 USHORT sel = RestoreOS2FS();
10249
10250 yyrc = GpiOpenSegment(a, b);
10251 SetFS(sel);
10252
10253 return yyrc;
10254}
10255
10256#undef GpiOpenSegment
10257#define GpiOpenSegment _GpiOpenSegment
10258
10259inline LONG _GpiPutData(HPS a, LONG b, PLONG c, PBYTE d)
10260{
10261 LONG yyrc;
10262 USHORT sel = RestoreOS2FS();
10263
10264 yyrc = GpiPutData(a, b, c, d);
10265 SetFS(sel);
10266
10267 return yyrc;
10268}
10269
10270#undef GpiPutData
10271#define GpiPutData _GpiPutData
10272
10273inline LONG _GpiQueryInitialSegmentAttrs(HPS a, LONG b)
10274{
10275 LONG yyrc;
10276 USHORT sel = RestoreOS2FS();
10277
10278 yyrc = GpiQueryInitialSegmentAttrs(a, b);
10279 SetFS(sel);
10280
10281 return yyrc;
10282}
10283
10284#undef GpiQueryInitialSegmentAttrs
10285#define GpiQueryInitialSegmentAttrs _GpiQueryInitialSegmentAttrs
10286
10287inline LONG _GpiQuerySegmentAttrs(HPS a, LONG b, LONG c)
10288{
10289 LONG yyrc;
10290 USHORT sel = RestoreOS2FS();
10291
10292 yyrc = GpiQuerySegmentAttrs(a, b, c);
10293 SetFS(sel);
10294
10295 return yyrc;
10296}
10297
10298#undef GpiQuerySegmentAttrs
10299#define GpiQuerySegmentAttrs _GpiQuerySegmentAttrs
10300
10301inline LONG _GpiQuerySegmentNames(HPS a, LONG b, LONG c, LONG d, PLONG e)
10302{
10303 LONG yyrc;
10304 USHORT sel = RestoreOS2FS();
10305
10306 yyrc = GpiQuerySegmentNames(a, b, c, d, e);
10307 SetFS(sel);
10308
10309 return yyrc;
10310}
10311
10312#undef GpiQuerySegmentNames
10313#define GpiQuerySegmentNames _GpiQuerySegmentNames
10314
10315inline LONG _GpiQuerySegmentPriority(HPS a, LONG b, LONG c)
10316{
10317 LONG yyrc;
10318 USHORT sel = RestoreOS2FS();
10319
10320 yyrc = GpiQuerySegmentPriority(a, b, c);
10321 SetFS(sel);
10322
10323 return yyrc;
10324}
10325
10326#undef GpiQuerySegmentPriority
10327#define GpiQuerySegmentPriority _GpiQuerySegmentPriority
10328
10329inline BOOL _GpiRemoveDynamics(HPS a, LONG b, LONG c)
10330{
10331 BOOL yyrc;
10332 USHORT sel = RestoreOS2FS();
10333
10334 yyrc = GpiRemoveDynamics(a, b, c);
10335 SetFS(sel);
10336
10337 return yyrc;
10338}
10339
10340#undef GpiRemoveDynamics
10341#define GpiRemoveDynamics _GpiRemoveDynamics
10342
10343inline BOOL _GpiSetInitialSegmentAttrs(HPS a, LONG b, LONG c)
10344{
10345 BOOL yyrc;
10346 USHORT sel = RestoreOS2FS();
10347
10348 yyrc = GpiSetInitialSegmentAttrs(a, b, c);
10349 SetFS(sel);
10350
10351 return yyrc;
10352}
10353
10354#undef GpiSetInitialSegmentAttrs
10355#define GpiSetInitialSegmentAttrs _GpiSetInitialSegmentAttrs
10356
10357inline BOOL _GpiSetSegmentAttrs(HPS a, LONG b, LONG c, LONG d)
10358{
10359 BOOL yyrc;
10360 USHORT sel = RestoreOS2FS();
10361
10362 yyrc = GpiSetSegmentAttrs(a, b, c, d);
10363 SetFS(sel);
10364
10365 return yyrc;
10366}
10367
10368#undef GpiSetSegmentAttrs
10369#define GpiSetSegmentAttrs _GpiSetSegmentAttrs
10370
10371inline BOOL _GpiSetSegmentPriority(HPS a, LONG b, LONG c, LONG d)
10372{
10373 BOOL yyrc;
10374 USHORT sel = RestoreOS2FS();
10375
10376 yyrc = GpiSetSegmentPriority(a, b, c, d);
10377 SetFS(sel);
10378
10379 return yyrc;
10380}
10381
10382#undef GpiSetSegmentPriority
10383#define GpiSetSegmentPriority _GpiSetSegmentPriority
10384
10385#endif
10386#ifdef INCL_DEV
10387inline LONG _DevEscape(HDC a, LONG b, LONG c, PBYTE d, PLONG e, PBYTE f)
10388{
10389 LONG yyrc;
10390 USHORT sel = RestoreOS2FS();
10391
10392 yyrc = DevEscape(a, b, c, d, e, f);
10393 SetFS(sel);
10394
10395 return yyrc;
10396}
10397
10398#undef DevEscape
10399#define DevEscape _DevEscape
10400
10401inline LONG _DevPostEscape(PCSZ a, PCSZ b, PCSZ c, PCSZ d, ULONG e, ULONG f, PBYTE g, ULONG h, PBYTE i)
10402{
10403 LONG yyrc;
10404 USHORT sel = RestoreOS2FS();
10405
10406 yyrc = DevPostEscape(a, b, c, d, e, f, g, h, i);
10407 SetFS(sel);
10408
10409 return yyrc;
10410}
10411
10412#undef DevPostEscape
10413#define DevPostEscape _DevPostEscape
10414
10415inline LONG _DevPostDeviceModes(HAB a, PDRIVDATA b, PCSZ c, PCSZ d, PCSZ e, ULONG f)
10416{
10417 LONG yyrc;
10418 USHORT sel = RestoreOS2FS();
10419
10420 yyrc = DevPostDeviceModes(a, b, c, d, e, f);
10421 SetFS(sel);
10422
10423 return yyrc;
10424}
10425
10426#undef DevPostDeviceModes
10427#define DevPostDeviceModes _DevPostDeviceModes
10428
10429inline BOOL _DevQueryDeviceNames(HAB a, PCSZ b, PLONG c, PSTR32 d, PSTR64 e, PLONG f, PSTR16 g)
10430{
10431 BOOL yyrc;
10432 USHORT sel = RestoreOS2FS();
10433
10434 yyrc = DevQueryDeviceNames(a, b, c, d, e, f, g);
10435 SetFS(sel);
10436
10437 return yyrc;
10438}
10439
10440#undef DevQueryDeviceNames
10441#define DevQueryDeviceNames _DevQueryDeviceNames
10442
10443inline LONG _DevQueryHardcopyCaps(HDC a, LONG b, LONG c, PHCINFO d)
10444{
10445 LONG yyrc;
10446 USHORT sel = RestoreOS2FS();
10447
10448 yyrc = DevQueryHardcopyCaps(a, b, c, d);
10449 SetFS(sel);
10450
10451 return yyrc;
10452}
10453
10454#undef DevQueryHardcopyCaps
10455#define DevQueryHardcopyCaps _DevQueryHardcopyCaps
10456
10457#endif
10458inline HMF _DevCloseDC(HDC a)
10459{
10460 HMF yyrc;
10461 USHORT sel = RestoreOS2FS();
10462
10463 yyrc = DevCloseDC(a);
10464 SetFS(sel);
10465
10466 return yyrc;
10467}
10468
10469#undef DevCloseDC
10470#define DevCloseDC _DevCloseDC
10471
10472inline HDC _DevOpenDC(HAB a, LONG b, PCSZ c, LONG d, PDEVOPENDATA e, HDC f)
10473{
10474 HDC yyrc;
10475 USHORT sel = RestoreOS2FS();
10476
10477 yyrc = DevOpenDC(a, b, c, d, e, f);
10478 SetFS(sel);
10479
10480 return yyrc;
10481}
10482
10483#undef DevOpenDC
10484#define DevOpenDC _DevOpenDC
10485
10486inline BOOL _DevQueryCaps(HDC a, LONG b, LONG c, PLONG d)
10487{
10488 BOOL yyrc;
10489 USHORT sel = RestoreOS2FS();
10490
10491 yyrc = DevQueryCaps(a, b, c, d);
10492 SetFS(sel);
10493
10494 return yyrc;
10495}
10496
10497#undef DevQueryCaps
10498#define DevQueryCaps _DevQueryCaps
10499
10500#endif
10501#ifdef INCL_WINPROGRAMLIST
10502inline HPROGRAM _PrfAddProgram(HINI a, PPROGDETAILS b, HPROGRAM c)
10503{
10504 HPROGRAM yyrc;
10505 USHORT sel = RestoreOS2FS();
10506
10507 yyrc = PrfAddProgram(a, b, c);
10508 SetFS(sel);
10509
10510 return yyrc;
10511}
10512
10513#undef PrfAddProgram
10514#define PrfAddProgram _PrfAddProgram
10515
10516inline BOOL _PrfChangeProgram(HINI a, HPROGRAM b, PPROGDETAILS c)
10517{
10518 BOOL yyrc;
10519 USHORT sel = RestoreOS2FS();
10520
10521 yyrc = PrfChangeProgram(a, b, c);
10522 SetFS(sel);
10523
10524 return yyrc;
10525}
10526
10527#undef PrfChangeProgram
10528#define PrfChangeProgram _PrfChangeProgram
10529
10530inline HPROGRAM _PrfCreateGroup(HINI a, PCSZ b, UCHAR c)
10531{
10532 HPROGRAM yyrc;
10533 USHORT sel = RestoreOS2FS();
10534
10535 yyrc = PrfCreateGroup(a, b, c);
10536 SetFS(sel);
10537
10538 return yyrc;
10539}
10540
10541#undef PrfCreateGroup
10542#define PrfCreateGroup _PrfCreateGroup
10543
10544inline BOOL _PrfDestroyGroup(HINI a, HPROGRAM b)
10545{
10546 BOOL yyrc;
10547 USHORT sel = RestoreOS2FS();
10548
10549 yyrc = PrfDestroyGroup(a, b);
10550 SetFS(sel);
10551
10552 return yyrc;
10553}
10554
10555#undef PrfDestroyGroup
10556#define PrfDestroyGroup _PrfDestroyGroup
10557
10558inline PROGCATEGORY _PrfQueryProgramCategory(HINI a, PCSZ b)
10559{
10560 PROGCATEGORY yyrc;
10561 USHORT sel = RestoreOS2FS();
10562
10563 yyrc = PrfQueryProgramCategory(a, b);
10564 SetFS(sel);
10565
10566 return yyrc;
10567}
10568
10569#undef PrfQueryProgramCategory
10570#define PrfQueryProgramCategory _PrfQueryProgramCategory
10571
10572inline ULONG _PrfQueryProgramHandle(HINI a, PCSZ b, PHPROGARRAY c, ULONG d, PULONG e)
10573{
10574 ULONG yyrc;
10575 USHORT sel = RestoreOS2FS();
10576
10577 yyrc = PrfQueryProgramHandle(a, b, c, d, e);
10578 SetFS(sel);
10579
10580 return yyrc;
10581}
10582
10583#undef PrfQueryProgramHandle
10584#define PrfQueryProgramHandle _PrfQueryProgramHandle
10585
10586inline ULONG _PrfQueryProgramTitles(HINI a, HPROGRAM b, PPROGTITLE c, ULONG d, PULONG e)
10587{
10588 ULONG yyrc;
10589 USHORT sel = RestoreOS2FS();
10590
10591 yyrc = PrfQueryProgramTitles(a, b, c, d, e);
10592 SetFS(sel);
10593
10594 return yyrc;
10595}
10596
10597#undef PrfQueryProgramTitles
10598#define PrfQueryProgramTitles _PrfQueryProgramTitles
10599
10600inline ULONG _PrfQueryDefinition(HINI a, HPROGRAM b, PPROGDETAILS c, ULONG d)
10601{
10602 ULONG yyrc;
10603 USHORT sel = RestoreOS2FS();
10604
10605 yyrc = PrfQueryDefinition(a, b, c, d);
10606 SetFS(sel);
10607
10608 return yyrc;
10609}
10610
10611#undef PrfQueryDefinition
10612#define PrfQueryDefinition _PrfQueryDefinition
10613
10614inline BOOL _PrfRemoveProgram(HINI a, HPROGRAM b)
10615{
10616 BOOL yyrc;
10617 USHORT sel = RestoreOS2FS();
10618
10619 yyrc = PrfRemoveProgram(a, b);
10620 SetFS(sel);
10621
10622 return yyrc;
10623}
10624
10625#undef PrfRemoveProgram
10626#define PrfRemoveProgram _PrfRemoveProgram
10627
10628inline HAPP _WinStartApp(HWND a, PPROGDETAILS b, PCSZ c, PVOID d, ULONG e)
10629{
10630 HAPP yyrc;
10631 USHORT sel = RestoreOS2FS();
10632
10633 yyrc = WinStartApp(a, b, c, d, e);
10634 SetFS(sel);
10635
10636 return yyrc;
10637}
10638
10639#undef WinStartApp
10640#define WinStartApp _WinStartApp
10641
10642inline BOOL _WinTerminateApp(HAPP a)
10643{
10644 BOOL yyrc;
10645 USHORT sel = RestoreOS2FS();
10646
10647 yyrc = WinTerminateApp(a);
10648 SetFS(sel);
10649
10650 return yyrc;
10651}
10652
10653#undef WinTerminateApp
10654#define WinTerminateApp _WinTerminateApp
10655
10656#endif
10657#ifdef INCL_WINSWITCHLIST
10658inline HSWITCH _WinAddSwitchEntry(PSWCNTRL a)
10659{
10660 HSWITCH yyrc;
10661 USHORT sel = RestoreOS2FS();
10662
10663 yyrc = WinAddSwitchEntry(a);
10664 SetFS(sel);
10665
10666 return yyrc;
10667}
10668
10669#undef WinAddSwitchEntry
10670#define WinAddSwitchEntry _WinAddSwitchEntry
10671
10672inline ULONG _WinRemoveSwitchEntry(HSWITCH a)
10673{
10674 ULONG yyrc;
10675 USHORT sel = RestoreOS2FS();
10676
10677 yyrc = WinRemoveSwitchEntry(a);
10678 SetFS(sel);
10679
10680 return yyrc;
10681}
10682
10683#undef WinRemoveSwitchEntry
10684#define WinRemoveSwitchEntry _WinRemoveSwitchEntry
10685
10686inline ULONG _WinChangeSwitchEntry(HSWITCH a, PSWCNTRL b)
10687{
10688 ULONG yyrc;
10689 USHORT sel = RestoreOS2FS();
10690
10691 yyrc = WinChangeSwitchEntry(a, b);
10692 SetFS(sel);
10693
10694 return yyrc;
10695}
10696
10697#undef WinChangeSwitchEntry
10698#define WinChangeSwitchEntry _WinChangeSwitchEntry
10699
10700inline HSWITCH _WinCreateSwitchEntry(HAB a, PSWCNTRL b)
10701{
10702 HSWITCH yyrc;
10703 USHORT sel = RestoreOS2FS();
10704
10705 yyrc = WinCreateSwitchEntry(a, b);
10706 SetFS(sel);
10707
10708 return yyrc;
10709}
10710
10711#undef WinCreateSwitchEntry
10712#define WinCreateSwitchEntry _WinCreateSwitchEntry
10713
10714inline ULONG _WinQuerySessionTitle(HAB a, ULONG b, PSZ c, ULONG d)
10715{
10716 ULONG yyrc;
10717 USHORT sel = RestoreOS2FS();
10718
10719 yyrc = WinQuerySessionTitle(a, b, c, d);
10720 SetFS(sel);
10721
10722 return yyrc;
10723}
10724
10725#undef WinQuerySessionTitle
10726#define WinQuerySessionTitle _WinQuerySessionTitle
10727
10728inline ULONG _WinQuerySwitchEntry(HSWITCH a, PSWCNTRL b)
10729{
10730 ULONG yyrc;
10731 USHORT sel = RestoreOS2FS();
10732
10733 yyrc = WinQuerySwitchEntry(a, b);
10734 SetFS(sel);
10735
10736 return yyrc;
10737}
10738
10739#undef WinQuerySwitchEntry
10740#define WinQuerySwitchEntry _WinQuerySwitchEntry
10741
10742inline HSWITCH _WinQuerySwitchHandle(HWND a, PID b)
10743{
10744 HSWITCH yyrc;
10745 USHORT sel = RestoreOS2FS();
10746
10747 yyrc = WinQuerySwitchHandle(a, b);
10748 SetFS(sel);
10749
10750 return yyrc;
10751}
10752
10753#undef WinQuerySwitchHandle
10754#define WinQuerySwitchHandle _WinQuerySwitchHandle
10755
10756inline ULONG _WinQuerySwitchList(HAB a, PSWBLOCK b, ULONG c)
10757{
10758 ULONG yyrc;
10759 USHORT sel = RestoreOS2FS();
10760
10761 yyrc = WinQuerySwitchList(a, b, c);
10762 SetFS(sel);
10763
10764 return yyrc;
10765}
10766
10767#undef WinQuerySwitchList
10768#define WinQuerySwitchList _WinQuerySwitchList
10769
10770inline ULONG _WinQueryTaskSizePos(HAB a, ULONG b, PSWP c)
10771{
10772 ULONG yyrc;
10773 USHORT sel = RestoreOS2FS();
10774
10775 yyrc = WinQueryTaskSizePos(a, b, c);
10776 SetFS(sel);
10777
10778 return yyrc;
10779}
10780
10781#undef WinQueryTaskSizePos
10782#define WinQueryTaskSizePos _WinQueryTaskSizePos
10783
10784inline ULONG _WinQueryTaskTitle(ULONG a, PSZ b, ULONG c)
10785{
10786 ULONG yyrc;
10787 USHORT sel = RestoreOS2FS();
10788
10789 yyrc = WinQueryTaskTitle(a, b, c);
10790 SetFS(sel);
10791
10792 return yyrc;
10793}
10794
10795#undef WinQueryTaskTitle
10796#define WinQueryTaskTitle _WinQueryTaskTitle
10797
10798inline ULONG _WinSwitchToProgram(HSWITCH a)
10799{
10800 ULONG yyrc;
10801 USHORT sel = RestoreOS2FS();
10802
10803 yyrc = WinSwitchToProgram(a);
10804 SetFS(sel);
10805
10806 return yyrc;
10807}
10808
10809#undef WinSwitchToProgram
10810#define WinSwitchToProgram _WinSwitchToProgram
10811
10812#endif
10813#ifdef INCL_WINSHELLDATA
10814inline BOOL _PrfCloseProfile(HINI a)
10815{
10816 BOOL yyrc;
10817 USHORT sel = RestoreOS2FS();
10818
10819 yyrc = PrfCloseProfile(a);
10820 SetFS(sel);
10821
10822 return yyrc;
10823}
10824
10825#undef PrfCloseProfile
10826#define PrfCloseProfile _PrfCloseProfile
10827
10828inline HINI _PrfOpenProfile(HAB a, PCSZ b)
10829{
10830 HINI yyrc;
10831 USHORT sel = RestoreOS2FS();
10832
10833 yyrc = PrfOpenProfile(a, b);
10834 SetFS(sel);
10835
10836 return yyrc;
10837}
10838
10839#undef PrfOpenProfile
10840#define PrfOpenProfile _PrfOpenProfile
10841
10842inline BOOL _PrfQueryProfile(HAB a, PPRFPROFILE b)
10843{
10844 BOOL yyrc;
10845 USHORT sel = RestoreOS2FS();
10846
10847 yyrc = PrfQueryProfile(a, b);
10848 SetFS(sel);
10849
10850 return yyrc;
10851}
10852
10853#undef PrfQueryProfile
10854#define PrfQueryProfile _PrfQueryProfile
10855
10856inline BOOL _PrfQueryProfileData(HINI a, PCSZ b, PCSZ c, PVOID d, PULONG e)
10857{
10858 BOOL yyrc;
10859 USHORT sel = RestoreOS2FS();
10860
10861 yyrc = PrfQueryProfileData(a, b, c, d, e);
10862 SetFS(sel);
10863
10864 return yyrc;
10865}
10866
10867#undef PrfQueryProfileData
10868#define PrfQueryProfileData _PrfQueryProfileData
10869
10870inline LONG _PrfQueryProfileInt(HINI a, PCSZ b, PCSZ c, LONG d)
10871{
10872 LONG yyrc;
10873 USHORT sel = RestoreOS2FS();
10874
10875 yyrc = PrfQueryProfileInt(a, b, c, d);
10876 SetFS(sel);
10877
10878 return yyrc;
10879}
10880
10881#undef PrfQueryProfileInt
10882#define PrfQueryProfileInt _PrfQueryProfileInt
10883
10884inline BOOL _PrfQueryProfileSize(HINI a, PCSZ b, PCSZ c, PULONG d)
10885{
10886 BOOL yyrc;
10887 USHORT sel = RestoreOS2FS();
10888
10889 yyrc = PrfQueryProfileSize(a, b, c, d);
10890 SetFS(sel);
10891
10892 return yyrc;
10893}
10894
10895#undef PrfQueryProfileSize
10896#define PrfQueryProfileSize _PrfQueryProfileSize
10897
10898inline ULONG _PrfQueryProfileString(HINI a, PCSZ b, PCSZ c, PCSZ d, PVOID e, ULONG f)
10899{
10900 ULONG yyrc;
10901 USHORT sel = RestoreOS2FS();
10902
10903 yyrc = PrfQueryProfileString(a, b, c, d, e, f);
10904 SetFS(sel);
10905
10906 return yyrc;
10907}
10908
10909#undef PrfQueryProfileString
10910#define PrfQueryProfileString _PrfQueryProfileString
10911
10912inline BOOL _PrfReset(HAB a, PPRFPROFILE b)
10913{
10914 BOOL yyrc;
10915 USHORT sel = RestoreOS2FS();
10916
10917 yyrc = PrfReset(a, b);
10918 SetFS(sel);
10919
10920 return yyrc;
10921}
10922
10923#undef PrfReset
10924#define PrfReset _PrfReset
10925
10926inline BOOL _PrfWriteProfileData(HINI a, PCSZ b, PCSZ c, PVOID d, ULONG e)
10927{
10928 BOOL yyrc;
10929 USHORT sel = RestoreOS2FS();
10930
10931 yyrc = PrfWriteProfileData(a, b, c, d, e);
10932 SetFS(sel);
10933
10934 return yyrc;
10935}
10936
10937#undef PrfWriteProfileData
10938#define PrfWriteProfileData _PrfWriteProfileData
10939
10940inline BOOL _PrfWriteProfileString(HINI a, PCSZ b, PCSZ c, PCSZ d)
10941{
10942 BOOL yyrc;
10943 USHORT sel = RestoreOS2FS();
10944
10945 yyrc = PrfWriteProfileString(a, b, c, d);
10946 SetFS(sel);
10947
10948 return yyrc;
10949}
10950
10951#undef PrfWriteProfileString
10952#define PrfWriteProfileString _PrfWriteProfileString
10953
10954#endif
10955#ifdef INCL_WINSTDFILE
10956inline MRESULT _WinDefFileDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
10957{
10958 MRESULT yyrc;
10959 USHORT sel = RestoreOS2FS();
10960
10961 yyrc = WinDefFileDlgProc(a, b, c, d);
10962 SetFS(sel);
10963
10964 return yyrc;
10965}
10966
10967#undef WinDefFileDlgProc
10968#define WinDefFileDlgProc _WinDefFileDlgProc
10969
10970inline HWND _WinFileDlg(HWND a, HWND b, PFILEDLG c)
10971{
10972 HWND yyrc;
10973 USHORT sel = RestoreOS2FS();
10974
10975 yyrc = WinFileDlg(a, b, c);
10976 SetFS(sel);
10977
10978 return yyrc;
10979}
10980
10981#undef WinFileDlg
10982#define WinFileDlg _WinFileDlg
10983
10984inline BOOL _WinFreeFileDlgList(PAPSZ a)
10985{
10986 BOOL yyrc;
10987 USHORT sel = RestoreOS2FS();
10988
10989 yyrc = WinFreeFileDlgList(a);
10990 SetFS(sel);
10991
10992 return yyrc;
10993}
10994
10995#undef WinFreeFileDlgList
10996#define WinFreeFileDlgList _WinFreeFileDlgList
10997
10998#endif
10999#ifdef INCL_WINSTDFONT
11000inline HWND _WinFontDlg(HWND a, HWND b, PFONTDLG c)
11001{
11002 HWND yyrc;
11003 USHORT sel = RestoreOS2FS();
11004
11005 yyrc = WinFontDlg(a, b, c);
11006 SetFS(sel);
11007
11008 return yyrc;
11009}
11010
11011#undef WinFontDlg
11012#define WinFontDlg _WinFontDlg
11013
11014inline MRESULT _WinDefFontDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
11015{
11016 MRESULT yyrc;
11017 USHORT sel = RestoreOS2FS();
11018
11019 yyrc = WinDefFontDlgProc(a, b, c, d);
11020 SetFS(sel);
11021
11022 return yyrc;
11023}
11024
11025#undef WinDefFontDlgProc
11026#define WinDefFontDlgProc _WinDefFontDlgProc
11027
11028#endif
11029#ifdef INCL_WINSTDDRAG
11030inline BOOL _DrgAcceptDroppedFiles(HWND a, PCSZ b, PCSZ c, ULONG d, ULONG e)
11031{
11032 BOOL yyrc;
11033 USHORT sel = RestoreOS2FS();
11034
11035 yyrc = DrgAcceptDroppedFiles(a, b, c, d, e);
11036 SetFS(sel);
11037
11038 return yyrc;
11039}
11040
11041#undef DrgAcceptDroppedFiles
11042#define DrgAcceptDroppedFiles _DrgAcceptDroppedFiles
11043
11044inline BOOL _DrgAccessDraginfo(PDRAGINFO a)
11045{
11046 BOOL yyrc;
11047 USHORT sel = RestoreOS2FS();
11048
11049 yyrc = DrgAccessDraginfo(a);
11050 SetFS(sel);
11051
11052 return yyrc;
11053}
11054
11055#undef DrgAccessDraginfo
11056#define DrgAccessDraginfo _DrgAccessDraginfo
11057
11058inline HSTR _DrgAddStrHandle(PCSZ a)
11059{
11060 HSTR yyrc;
11061 USHORT sel = RestoreOS2FS();
11062
11063 yyrc = DrgAddStrHandle(a);
11064 SetFS(sel);
11065
11066 return yyrc;
11067}
11068
11069#undef DrgAddStrHandle
11070#define DrgAddStrHandle _DrgAddStrHandle
11071
11072inline PDRAGINFO _DrgAllocDraginfo(ULONG a)
11073{
11074 PDRAGINFO yyrc;
11075 USHORT sel = RestoreOS2FS();
11076
11077 yyrc = DrgAllocDraginfo(a);
11078 SetFS(sel);
11079
11080 return yyrc;
11081}
11082
11083#undef DrgAllocDraginfo
11084#define DrgAllocDraginfo _DrgAllocDraginfo
11085
11086inline PDRAGTRANSFER _DrgAllocDragtransfer(ULONG a)
11087{
11088 PDRAGTRANSFER yyrc;
11089 USHORT sel = RestoreOS2FS();
11090
11091 yyrc = DrgAllocDragtransfer(a);
11092 SetFS(sel);
11093
11094 return yyrc;
11095}
11096
11097#undef DrgAllocDragtransfer
11098#define DrgAllocDragtransfer _DrgAllocDragtransfer
11099
11100inline BOOL _DrgCancelLazyDrag()
11101{
11102 BOOL yyrc;
11103 USHORT sel = RestoreOS2FS();
11104
11105 yyrc = DrgCancelLazyDrag();
11106 SetFS(sel);
11107
11108 return yyrc;
11109}
11110
11111#undef DrgCancelLazyDrag
11112#define DrgCancelLazyDrag _DrgCancelLazyDrag
11113
11114inline BOOL _DrgDeleteDraginfoStrHandles(PDRAGINFO a)
11115{
11116 BOOL yyrc;
11117 USHORT sel = RestoreOS2FS();
11118
11119 yyrc = DrgDeleteDraginfoStrHandles(a);
11120 SetFS(sel);
11121
11122 return yyrc;
11123}
11124
11125#undef DrgDeleteDraginfoStrHandles
11126#define DrgDeleteDraginfoStrHandles _DrgDeleteDraginfoStrHandles
11127
11128inline BOOL _DrgDeleteStrHandle(HSTR a)
11129{
11130 BOOL yyrc;
11131 USHORT sel = RestoreOS2FS();
11132
11133 yyrc = DrgDeleteStrHandle(a);
11134 SetFS(sel);
11135
11136 return yyrc;
11137}
11138
11139#undef DrgDeleteStrHandle
11140#define DrgDeleteStrHandle _DrgDeleteStrHandle
11141
11142inline HWND _DrgDrag(HWND a, PDRAGINFO b, PDRAGIMAGE c, ULONG d, LONG e, PVOID f)
11143{
11144 HWND yyrc;
11145 USHORT sel = RestoreOS2FS();
11146
11147 yyrc = DrgDrag(a, b, c, d, e, f);
11148 SetFS(sel);
11149
11150 return yyrc;
11151}
11152
11153#undef DrgDrag
11154#define DrgDrag _DrgDrag
11155
11156inline BOOL _DrgDragFiles(HWND a, PCSZ *b, PCSZ *c, PCSZ *d, ULONG e, HPOINTER f, ULONG g, BOOL h, ULONG i)
11157{
11158 BOOL yyrc;
11159 USHORT sel = RestoreOS2FS();
11160
11161 yyrc = DrgDragFiles(a, b, c, d, e, f, g, h, i);
11162 SetFS(sel);
11163
11164 return yyrc;
11165}
11166
11167#undef DrgDragFiles
11168#define DrgDragFiles _DrgDragFiles
11169
11170inline BOOL _DrgFreeDraginfo(PDRAGINFO a)
11171{
11172 BOOL yyrc;
11173 USHORT sel = RestoreOS2FS();
11174
11175 yyrc = DrgFreeDraginfo(a);
11176 SetFS(sel);
11177
11178 return yyrc;
11179}
11180
11181#undef DrgFreeDraginfo
11182#define DrgFreeDraginfo _DrgFreeDraginfo
11183
11184inline BOOL _DrgFreeDragtransfer(PDRAGTRANSFER a)
11185{
11186 BOOL yyrc;
11187 USHORT sel = RestoreOS2FS();
11188
11189 yyrc = DrgFreeDragtransfer(a);
11190 SetFS(sel);
11191
11192 return yyrc;
11193}
11194
11195#undef DrgFreeDragtransfer
11196#define DrgFreeDragtransfer _DrgFreeDragtransfer
11197
11198inline HPS _DrgGetPS(HWND a)
11199{
11200 HPS yyrc;
11201 USHORT sel = RestoreOS2FS();
11202
11203 yyrc = DrgGetPS(a);
11204 SetFS(sel);
11205
11206 return yyrc;
11207}
11208
11209#undef DrgGetPS
11210#define DrgGetPS _DrgGetPS
11211
11212inline BOOL _DrgLazyDrag(HWND a, PDRAGINFO b, PDRAGIMAGE c, ULONG d, PVOID e)
11213{
11214 BOOL yyrc;
11215 USHORT sel = RestoreOS2FS();
11216
11217 yyrc = DrgLazyDrag(a, b, c, d, e);
11218 SetFS(sel);
11219
11220 return yyrc;
11221}
11222
11223#undef DrgLazyDrag
11224#define DrgLazyDrag _DrgLazyDrag
11225
11226inline BOOL _DrgLazyDrop(HWND a, ULONG b, PPOINTL c)
11227{
11228 BOOL yyrc;
11229 USHORT sel = RestoreOS2FS();
11230
11231 yyrc = DrgLazyDrop(a, b, c);
11232 SetFS(sel);
11233
11234 return yyrc;
11235}
11236
11237#undef DrgLazyDrop
11238#define DrgLazyDrop _DrgLazyDrop
11239
11240inline BOOL _DrgPostTransferMsg(HWND a, ULONG b, PDRAGTRANSFER c, ULONG d, ULONG e, BOOL f)
11241{
11242 BOOL yyrc;
11243 USHORT sel = RestoreOS2FS();
11244
11245 yyrc = DrgPostTransferMsg(a, b, c, d, e, f);
11246 SetFS(sel);
11247
11248 return yyrc;
11249}
11250
11251#undef DrgPostTransferMsg
11252#define DrgPostTransferMsg _DrgPostTransferMsg
11253
11254inline BOOL _DrgPushDraginfo(PDRAGINFO a, HWND b)
11255{
11256 BOOL yyrc;
11257 USHORT sel = RestoreOS2FS();
11258
11259 yyrc = DrgPushDraginfo(a, b);
11260 SetFS(sel);
11261
11262 return yyrc;
11263}
11264
11265#undef DrgPushDraginfo
11266#define DrgPushDraginfo _DrgPushDraginfo
11267
11268inline PDRAGINFO _DrgQueryDraginfoPtr(PDRAGINFO a)
11269{
11270 PDRAGINFO yyrc;
11271 USHORT sel = RestoreOS2FS();
11272
11273 yyrc = DrgQueryDraginfoPtr(a);
11274 SetFS(sel);
11275
11276 return yyrc;
11277}
11278
11279#undef DrgQueryDraginfoPtr
11280#define DrgQueryDraginfoPtr _DrgQueryDraginfoPtr
11281
11282inline PDRAGINFO _DrgQueryDraginfoPtrFromHwnd(HWND a)
11283{
11284 PDRAGINFO yyrc;
11285 USHORT sel = RestoreOS2FS();
11286
11287 yyrc = DrgQueryDraginfoPtrFromHwnd(a);
11288 SetFS(sel);
11289
11290 return yyrc;
11291}
11292
11293#undef DrgQueryDraginfoPtrFromHwnd
11294#define DrgQueryDraginfoPtrFromHwnd _DrgQueryDraginfoPtrFromHwnd
11295
11296inline PDRAGINFO _DrgQueryDraginfoPtrFromDragitem(PDRAGITEM a)
11297{
11298 PDRAGINFO yyrc;
11299 USHORT sel = RestoreOS2FS();
11300
11301 yyrc = DrgQueryDraginfoPtrFromDragitem(a);
11302 SetFS(sel);
11303
11304 return yyrc;
11305}
11306
11307#undef DrgQueryDraginfoPtrFromDragitem
11308#define DrgQueryDraginfoPtrFromDragitem _DrgQueryDraginfoPtrFromDragitem
11309
11310inline BOOL _DrgQueryDragitem(PDRAGINFO a, ULONG b, PDRAGITEM c, ULONG d)
11311{
11312 BOOL yyrc;
11313 USHORT sel = RestoreOS2FS();
11314
11315 yyrc = DrgQueryDragitem(a, b, c, d);
11316 SetFS(sel);
11317
11318 return yyrc;
11319}
11320
11321#undef DrgQueryDragitem
11322#define DrgQueryDragitem _DrgQueryDragitem
11323
11324inline ULONG _DrgQueryDragitemCount(PDRAGINFO a)
11325{
11326 ULONG yyrc;
11327 USHORT sel = RestoreOS2FS();
11328
11329 yyrc = DrgQueryDragitemCount(a);
11330 SetFS(sel);
11331
11332 return yyrc;
11333}
11334
11335#undef DrgQueryDragitemCount
11336#define DrgQueryDragitemCount _DrgQueryDragitemCount
11337
11338inline PDRAGITEM _DrgQueryDragitemPtr(PDRAGINFO a, ULONG b)
11339{
11340 PDRAGITEM yyrc;
11341 USHORT sel = RestoreOS2FS();
11342
11343 yyrc = DrgQueryDragitemPtr(a, b);
11344 SetFS(sel);
11345
11346 return yyrc;
11347}
11348
11349#undef DrgQueryDragitemPtr
11350#define DrgQueryDragitemPtr _DrgQueryDragitemPtr
11351
11352inline ULONG _DrgQueryDragStatus()
11353{
11354 ULONG yyrc;
11355 USHORT sel = RestoreOS2FS();
11356
11357 yyrc = DrgQueryDragStatus();
11358 SetFS(sel);
11359
11360 return yyrc;
11361}
11362
11363#undef DrgQueryDragStatus
11364#define DrgQueryDragStatus _DrgQueryDragStatus
11365
11366inline BOOL _DrgQueryNativeRMF(PDRAGITEM a, ULONG b, PCHAR c)
11367{
11368 BOOL yyrc;
11369 USHORT sel = RestoreOS2FS();
11370
11371 yyrc = DrgQueryNativeRMF(a, b, c);
11372 SetFS(sel);
11373
11374 return yyrc;
11375}
11376
11377#undef DrgQueryNativeRMF
11378#define DrgQueryNativeRMF _DrgQueryNativeRMF
11379
11380inline ULONG _DrgQueryNativeRMFLen(PDRAGITEM a)
11381{
11382 ULONG yyrc;
11383 USHORT sel = RestoreOS2FS();
11384
11385 yyrc = DrgQueryNativeRMFLen(a);
11386 SetFS(sel);
11387
11388 return yyrc;
11389}
11390
11391#undef DrgQueryNativeRMFLen
11392#define DrgQueryNativeRMFLen _DrgQueryNativeRMFLen
11393
11394inline ULONG _DrgQueryStrName(HSTR a, ULONG b, PSZ c)
11395{
11396 ULONG yyrc;
11397 USHORT sel = RestoreOS2FS();
11398
11399 yyrc = DrgQueryStrName(a, b, c);
11400 SetFS(sel);
11401
11402 return yyrc;
11403}
11404
11405#undef DrgQueryStrName
11406#define DrgQueryStrName _DrgQueryStrName
11407
11408inline ULONG _DrgQueryStrNameLen(HSTR a)
11409{
11410 ULONG yyrc;
11411 USHORT sel = RestoreOS2FS();
11412
11413 yyrc = DrgQueryStrNameLen(a);
11414 SetFS(sel);
11415
11416 return yyrc;
11417}
11418
11419#undef DrgQueryStrNameLen
11420#define DrgQueryStrNameLen _DrgQueryStrNameLen
11421
11422inline BOOL _DrgQueryTrueType(PDRAGITEM a, ULONG b, PSZ c)
11423{
11424 BOOL yyrc;
11425 USHORT sel = RestoreOS2FS();
11426
11427 yyrc = DrgQueryTrueType(a, b, c);
11428 SetFS(sel);
11429
11430 return yyrc;
11431}
11432
11433#undef DrgQueryTrueType
11434#define DrgQueryTrueType _DrgQueryTrueType
11435
11436inline ULONG _DrgQueryTrueTypeLen(PDRAGITEM a)
11437{
11438 ULONG yyrc;
11439 USHORT sel = RestoreOS2FS();
11440
11441 yyrc = DrgQueryTrueTypeLen(a);
11442 SetFS(sel);
11443
11444 return yyrc;
11445}
11446
11447#undef DrgQueryTrueTypeLen
11448#define DrgQueryTrueTypeLen _DrgQueryTrueTypeLen
11449
11450inline PDRAGINFO _DrgReallocDraginfo(PDRAGINFO a, ULONG b)
11451{
11452 PDRAGINFO yyrc;
11453 USHORT sel = RestoreOS2FS();
11454
11455 yyrc = DrgReallocDraginfo(a, b);
11456 SetFS(sel);
11457
11458 return yyrc;
11459}
11460
11461#undef DrgReallocDraginfo
11462#define DrgReallocDraginfo _DrgReallocDraginfo
11463
11464inline BOOL _DrgReleasePS(HPS a)
11465{
11466 BOOL yyrc;
11467 USHORT sel = RestoreOS2FS();
11468
11469 yyrc = DrgReleasePS(a);
11470 SetFS(sel);
11471
11472 return yyrc;
11473}
11474
11475#undef DrgReleasePS
11476#define DrgReleasePS _DrgReleasePS
11477
11478inline MRESULT _DrgSendTransferMsg(HWND a, ULONG b, MPARAM c, MPARAM d)
11479{
11480 MRESULT yyrc;
11481 USHORT sel = RestoreOS2FS();
11482
11483 yyrc = DrgSendTransferMsg(a, b, c, d);
11484 SetFS(sel);
11485
11486 return yyrc;
11487}
11488
11489#undef DrgSendTransferMsg
11490#define DrgSendTransferMsg _DrgSendTransferMsg
11491
11492inline BOOL _DrgSetDragImage(PDRAGINFO a, PDRAGIMAGE b, ULONG c, PVOID d)
11493{
11494 BOOL yyrc;
11495 USHORT sel = RestoreOS2FS();
11496
11497 yyrc = DrgSetDragImage(a, b, c, d);
11498 SetFS(sel);
11499
11500 return yyrc;
11501}
11502
11503#undef DrgSetDragImage
11504#define DrgSetDragImage _DrgSetDragImage
11505
11506inline BOOL _DrgSetDragitem(PDRAGINFO a, PDRAGITEM b, ULONG c, ULONG d)
11507{
11508 BOOL yyrc;
11509 USHORT sel = RestoreOS2FS();
11510
11511 yyrc = DrgSetDragitem(a, b, c, d);
11512 SetFS(sel);
11513
11514 return yyrc;
11515}
11516
11517#undef DrgSetDragitem
11518#define DrgSetDragitem _DrgSetDragitem
11519
11520inline BOOL _DrgSetDragPointer(PDRAGINFO a, HPOINTER b)
11521{
11522 BOOL yyrc;
11523 USHORT sel = RestoreOS2FS();
11524
11525 yyrc = DrgSetDragPointer(a, b);
11526 SetFS(sel);
11527
11528 return yyrc;
11529}
11530
11531#undef DrgSetDragPointer
11532#define DrgSetDragPointer _DrgSetDragPointer
11533
11534inline BOOL _DrgVerifyNativeRMF(PDRAGITEM a, PCSZ b)
11535{
11536 BOOL yyrc;
11537 USHORT sel = RestoreOS2FS();
11538
11539 yyrc = DrgVerifyNativeRMF(a, b);
11540 SetFS(sel);
11541
11542 return yyrc;
11543}
11544
11545#undef DrgVerifyNativeRMF
11546#define DrgVerifyNativeRMF _DrgVerifyNativeRMF
11547
11548inline BOOL _DrgVerifyRMF(PDRAGITEM a, PCSZ b, PCSZ c)
11549{
11550 BOOL yyrc;
11551 USHORT sel = RestoreOS2FS();
11552
11553 yyrc = DrgVerifyRMF(a, b, c);
11554 SetFS(sel);
11555
11556 return yyrc;
11557}
11558
11559#undef DrgVerifyRMF
11560#define DrgVerifyRMF _DrgVerifyRMF
11561
11562inline BOOL _DrgVerifyTrueType(PDRAGITEM a, PCSZ b)
11563{
11564 BOOL yyrc;
11565 USHORT sel = RestoreOS2FS();
11566
11567 yyrc = DrgVerifyTrueType(a, b);
11568 SetFS(sel);
11569
11570 return yyrc;
11571}
11572
11573#undef DrgVerifyTrueType
11574#define DrgVerifyTrueType _DrgVerifyTrueType
11575
11576inline BOOL _DrgVerifyType(PDRAGITEM a, PCSZ b)
11577{
11578 BOOL yyrc;
11579 USHORT sel = RestoreOS2FS();
11580
11581 yyrc = DrgVerifyType(a, b);
11582 SetFS(sel);
11583
11584 return yyrc;
11585}
11586
11587#undef DrgVerifyType
11588#define DrgVerifyType _DrgVerifyType
11589
11590inline BOOL _DrgVerifyTypeSet(PDRAGITEM a, PCSZ b, ULONG c, PSZ d)
11591{
11592 BOOL yyrc;
11593 USHORT sel = RestoreOS2FS();
11594
11595 yyrc = DrgVerifyTypeSet(a, b, c, d);
11596 SetFS(sel);
11597
11598 return yyrc;
11599}
11600
11601#undef DrgVerifyTypeSet
11602#define DrgVerifyTypeSet _DrgVerifyTypeSet
11603
11604#endif
11605#ifdef INCL_WPCLASS
11606inline HOBJECT _WinCopyObject(HOBJECT a, HOBJECT b, ULONG c)
11607{
11608 HOBJECT yyrc;
11609 USHORT sel = RestoreOS2FS();
11610
11611 yyrc = WinCopyObject(a, b, c);
11612 SetFS(sel);
11613
11614 return yyrc;
11615}
11616
11617#undef WinCopyObject
11618#define WinCopyObject _WinCopyObject
11619
11620inline HOBJECT _WinCreateObject(PCSZ a, PCSZ b, PCSZ c, PCSZ d, ULONG e)
11621{
11622 HOBJECT yyrc;
11623 USHORT sel = RestoreOS2FS();
11624
11625 yyrc = WinCreateObject(a, b, c, d, e);
11626 SetFS(sel);
11627
11628 return yyrc;
11629}
11630
11631#undef WinCreateObject
11632#define WinCreateObject _WinCreateObject
11633
11634inline HOBJECT _WinCreateShadow(HOBJECT a, HOBJECT b, ULONG c)
11635{
11636 HOBJECT yyrc;
11637 USHORT sel = RestoreOS2FS();
11638
11639 yyrc = WinCreateShadow(a, b, c);
11640 SetFS(sel);
11641
11642 return yyrc;
11643}
11644
11645#undef WinCreateShadow
11646#define WinCreateShadow _WinCreateShadow
11647
11648inline BOOL _WinDeregisterObjectClass(PCSZ a)
11649{
11650 BOOL yyrc;
11651 USHORT sel = RestoreOS2FS();
11652
11653 yyrc = WinDeregisterObjectClass(a);
11654 SetFS(sel);
11655
11656 return yyrc;
11657}
11658
11659#undef WinDeregisterObjectClass
11660#define WinDeregisterObjectClass _WinDeregisterObjectClass
11661
11662inline BOOL _WinDestroyObject(HOBJECT a)
11663{
11664 BOOL yyrc;
11665 USHORT sel = RestoreOS2FS();
11666
11667 yyrc = WinDestroyObject(a);
11668 SetFS(sel);
11669
11670 return yyrc;
11671}
11672
11673#undef WinDestroyObject
11674#define WinDestroyObject _WinDestroyObject
11675
11676inline BOOL _WinEnumObjectClasses(POBJCLASS a, PULONG b)
11677{
11678 BOOL yyrc;
11679 USHORT sel = RestoreOS2FS();
11680
11681 yyrc = WinEnumObjectClasses(a, b);
11682 SetFS(sel);
11683
11684 return yyrc;
11685}
11686
11687#undef WinEnumObjectClasses
11688#define WinEnumObjectClasses _WinEnumObjectClasses
11689
11690inline BOOL _WinIsSOMDDReady()
11691{
11692 BOOL yyrc;
11693 USHORT sel = RestoreOS2FS();
11694
11695 yyrc = WinIsSOMDDReady();
11696 SetFS(sel);
11697
11698 return yyrc;
11699}
11700
11701#undef WinIsSOMDDReady
11702#define WinIsSOMDDReady _WinIsSOMDDReady
11703
11704inline BOOL _WinIsWPDServerReady()
11705{
11706 BOOL yyrc;
11707 USHORT sel = RestoreOS2FS();
11708
11709 yyrc = WinIsWPDServerReady();
11710 SetFS(sel);
11711
11712 return yyrc;
11713}
11714
11715#undef WinIsWPDServerReady
11716#define WinIsWPDServerReady _WinIsWPDServerReady
11717
11718inline HOBJECT _WinMoveObject(HOBJECT a, HOBJECT b, ULONG c)
11719{
11720 HOBJECT yyrc;
11721 USHORT sel = RestoreOS2FS();
11722
11723 yyrc = WinMoveObject(a, b, c);
11724 SetFS(sel);
11725
11726 return yyrc;
11727}
11728
11729#undef WinMoveObject
11730#define WinMoveObject _WinMoveObject
11731
11732inline BOOL _WinOpenObject(HOBJECT a, ULONG b, BOOL c)
11733{
11734 BOOL yyrc;
11735 USHORT sel = RestoreOS2FS();
11736
11737 yyrc = WinOpenObject(a, b, c);
11738 SetFS(sel);
11739
11740 return yyrc;
11741}
11742
11743#undef WinOpenObject
11744#define WinOpenObject _WinOpenObject
11745
11746inline BOOL _WinQueryActiveDesktopPathname(PSZ a, ULONG b)
11747{
11748 BOOL yyrc;
11749 USHORT sel = RestoreOS2FS();
11750
11751 yyrc = WinQueryActiveDesktopPathname(a, b);
11752 SetFS(sel);
11753
11754 return yyrc;
11755}
11756
11757#undef WinQueryActiveDesktopPathname
11758#define WinQueryActiveDesktopPathname _WinQueryActiveDesktopPathname
11759
11760inline HOBJECT _WinQueryObject(PCSZ a)
11761{
11762 HOBJECT yyrc;
11763 USHORT sel = RestoreOS2FS();
11764
11765 yyrc = WinQueryObject(a);
11766 SetFS(sel);
11767
11768 return yyrc;
11769}
11770
11771#undef WinQueryObject
11772#define WinQueryObject _WinQueryObject
11773
11774inline BOOL _WinQueryObjectPath(HOBJECT a, PSZ b, ULONG c)
11775{
11776 BOOL yyrc;
11777 USHORT sel = RestoreOS2FS();
11778
11779 yyrc = WinQueryObjectPath(a, b, c);
11780 SetFS(sel);
11781
11782 return yyrc;
11783}
11784
11785#undef WinQueryObjectPath
11786#define WinQueryObjectPath _WinQueryObjectPath
11787
11788inline BOOL _WinRegisterObjectClass(PCSZ a, PCSZ b)
11789{
11790 BOOL yyrc;
11791 USHORT sel = RestoreOS2FS();
11792
11793 yyrc = WinRegisterObjectClass(a, b);
11794 SetFS(sel);
11795
11796 return yyrc;
11797}
11798
11799#undef WinRegisterObjectClass
11800#define WinRegisterObjectClass _WinRegisterObjectClass
11801
11802inline BOOL _WinReplaceObjectClass(PCSZ a, PCSZ b, BOOL c)
11803{
11804 BOOL yyrc;
11805 USHORT sel = RestoreOS2FS();
11806
11807 yyrc = WinReplaceObjectClass(a, b, c);
11808 SetFS(sel);
11809
11810 return yyrc;
11811}
11812
11813#undef WinReplaceObjectClass
11814#define WinReplaceObjectClass _WinReplaceObjectClass
11815
11816inline ULONG _WinRestartSOMDD(BOOL a)
11817{
11818 ULONG yyrc;
11819 USHORT sel = RestoreOS2FS();
11820
11821 yyrc = WinRestartSOMDD(a);
11822 SetFS(sel);
11823
11824 return yyrc;
11825}
11826
11827#undef WinRestartSOMDD
11828#define WinRestartSOMDD _WinRestartSOMDD
11829
11830inline ULONG _WinRestartWPDServer(BOOL a)
11831{
11832 ULONG yyrc;
11833 USHORT sel = RestoreOS2FS();
11834
11835 yyrc = WinRestartWPDServer(a);
11836 SetFS(sel);
11837
11838 return yyrc;
11839}
11840
11841#undef WinRestartWPDServer
11842#define WinRestartWPDServer _WinRestartWPDServer
11843
11844inline BOOL _WinSaveObject(HOBJECT a, BOOL b)
11845{
11846 BOOL yyrc;
11847 USHORT sel = RestoreOS2FS();
11848
11849 yyrc = WinSaveObject(a, b);
11850 SetFS(sel);
11851
11852 return yyrc;
11853}
11854
11855#undef WinSaveObject
11856#define WinSaveObject _WinSaveObject
11857
11858inline BOOL _WinSetObjectData(HOBJECT a, PCSZ b)
11859{
11860 BOOL yyrc;
11861 USHORT sel = RestoreOS2FS();
11862
11863 yyrc = WinSetObjectData(a, b);
11864 SetFS(sel);
11865
11866 return yyrc;
11867}
11868
11869#undef WinSetObjectData
11870#define WinSetObjectData _WinSetObjectData
11871
11872inline BOOL _WinFreeFileIcon(HPOINTER a)
11873{
11874 BOOL yyrc;
11875 USHORT sel = RestoreOS2FS();
11876
11877 yyrc = WinFreeFileIcon(a);
11878 SetFS(sel);
11879
11880 return yyrc;
11881}
11882
11883#undef WinFreeFileIcon
11884#define WinFreeFileIcon _WinFreeFileIcon
11885
11886inline HPOINTER _WinLoadFileIcon(PCSZ a, BOOL b)
11887{
11888 HPOINTER yyrc;
11889 USHORT sel = RestoreOS2FS();
11890
11891 yyrc = WinLoadFileIcon(a, b);
11892 SetFS(sel);
11893
11894 return yyrc;
11895}
11896
11897#undef WinLoadFileIcon
11898#define WinLoadFileIcon _WinLoadFileIcon
11899
11900inline BOOL _WinRestoreWindowPos(PCSZ a, PCSZ b, HWND c)
11901{
11902 BOOL yyrc;
11903 USHORT sel = RestoreOS2FS();
11904
11905 yyrc = WinRestoreWindowPos(a, b, c);
11906 SetFS(sel);
11907
11908 return yyrc;
11909}
11910
11911#undef WinRestoreWindowPos
11912#define WinRestoreWindowPos _WinRestoreWindowPos
11913
11914inline BOOL _WinSetFileIcon(PCSZ a, PICONINFO b)
11915{
11916 BOOL yyrc;
11917 USHORT sel = RestoreOS2FS();
11918
11919 yyrc = WinSetFileIcon(a, b);
11920 SetFS(sel);
11921
11922 return yyrc;
11923}
11924
11925#undef WinSetFileIcon
11926#define WinSetFileIcon _WinSetFileIcon
11927
11928inline BOOL _WinShutdownSystem(HAB a, HMQ b)
11929{
11930 BOOL yyrc;
11931 USHORT sel = RestoreOS2FS();
11932
11933 yyrc = WinShutdownSystem(a, b);
11934 SetFS(sel);
11935
11936 return yyrc;
11937}
11938
11939#undef WinShutdownSystem
11940#define WinShutdownSystem _WinShutdownSystem
11941
11942inline BOOL _WinStoreWindowPos(PCSZ a, PCSZ b, HWND c)
11943{
11944 BOOL yyrc;
11945 USHORT sel = RestoreOS2FS();
11946
11947 yyrc = WinStoreWindowPos(a, b, c);
11948 SetFS(sel);
11949
11950 return yyrc;
11951}
11952
11953#undef WinStoreWindowPos
11954#define WinStoreWindowPos _WinStoreWindowPos
11955
11956#endif
11957#ifdef INCL_SPL
11958inline BOOL _SplStdClose(HDC a)
11959{
11960 BOOL yyrc;
11961 USHORT sel = RestoreOS2FS();
11962
11963 yyrc = SplStdClose(a);
11964 SetFS(sel);
11965
11966 return yyrc;
11967}
11968
11969#undef SplStdClose
11970#define SplStdClose _SplStdClose
11971
11972inline BOOL _SplStdDelete(HSTD a)
11973{
11974 BOOL yyrc;
11975 USHORT sel = RestoreOS2FS();
11976
11977 yyrc = SplStdDelete(a);
11978 SetFS(sel);
11979
11980 return yyrc;
11981}
11982
11983#undef SplStdDelete
11984#define SplStdDelete _SplStdDelete
11985
11986inline BOOL _SplStdGetBits(HSTD a, LONG b, LONG c, PCH d)
11987{
11988 BOOL yyrc;
11989 USHORT sel = RestoreOS2FS();
11990
11991 yyrc = SplStdGetBits(a, b, c, d);
11992 SetFS(sel);
11993
11994 return yyrc;
11995}
11996
11997#undef SplStdGetBits
11998#define SplStdGetBits _SplStdGetBits
11999
12000inline BOOL _SplStdOpen(HDC a)
12001{
12002 BOOL yyrc;
12003 USHORT sel = RestoreOS2FS();
12004
12005 yyrc = SplStdOpen(a);
12006 SetFS(sel);
12007
12008 return yyrc;
12009}
12010
12011#undef SplStdOpen
12012#define SplStdOpen _SplStdOpen
12013
12014inline LONG _SplStdQueryLength(HSTD a)
12015{
12016 LONG yyrc;
12017 USHORT sel = RestoreOS2FS();
12018
12019 yyrc = SplStdQueryLength(a);
12020 SetFS(sel);
12021
12022 return yyrc;
12023}
12024
12025#undef SplStdQueryLength
12026#define SplStdQueryLength _SplStdQueryLength
12027
12028inline BOOL _SplStdStart(HDC a)
12029{
12030 BOOL yyrc;
12031 USHORT sel = RestoreOS2FS();
12032
12033 yyrc = SplStdStart(a);
12034 SetFS(sel);
12035
12036 return yyrc;
12037}
12038
12039#undef SplStdStart
12040#define SplStdStart _SplStdStart
12041
12042inline HSTD _SplStdStop(HDC a)
12043{
12044 HSTD yyrc;
12045 USHORT sel = RestoreOS2FS();
12046
12047 yyrc = SplStdStop(a);
12048 SetFS(sel);
12049
12050 return yyrc;
12051}
12052
12053#undef SplStdStop
12054#define SplStdStop _SplStdStop
12055
12056inline SPLERR _SplControlDevice(PSZ a, PSZ b, ULONG c)
12057{
12058 SPLERR yyrc;
12059 USHORT sel = RestoreOS2FS();
12060
12061 yyrc = SplControlDevice(a, b, c);
12062 SetFS(sel);
12063
12064 return yyrc;
12065}
12066
12067#undef SplControlDevice
12068#define SplControlDevice _SplControlDevice
12069
12070inline SPLERR _SplCopyJob(PCSZ a, PCSZ b, ULONG c, PCSZ d, PCSZ e, PULONG f)
12071{
12072 SPLERR yyrc;
12073 USHORT sel = RestoreOS2FS();
12074
12075 yyrc = SplCopyJob(a, b, c, d, e, f);
12076 SetFS(sel);
12077
12078 return yyrc;
12079}
12080
12081#undef SplCopyJob
12082#define SplCopyJob _SplCopyJob
12083
12084inline SPLERR _SplCreateDevice(PSZ a, ULONG b, PVOID c, ULONG d)
12085{
12086 SPLERR yyrc;
12087 USHORT sel = RestoreOS2FS();
12088
12089 yyrc = SplCreateDevice(a, b, c, d);
12090 SetFS(sel);
12091
12092 return yyrc;
12093}
12094
12095#undef SplCreateDevice
12096#define SplCreateDevice _SplCreateDevice
12097
12098inline SPLERR _SplCreatePort(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f)
12099{
12100 SPLERR yyrc;
12101 USHORT sel = RestoreOS2FS();
12102
12103 yyrc = SplCreatePort(a, b, c, d, e, f);
12104 SetFS(sel);
12105
12106 return yyrc;
12107}
12108
12109#undef SplCreatePort
12110#define SplCreatePort _SplCreatePort
12111
12112inline SPLERR _SplCreateQueue(PSZ a, ULONG b, PVOID c, ULONG d)
12113{
12114 SPLERR yyrc;
12115 USHORT sel = RestoreOS2FS();
12116
12117 yyrc = SplCreateQueue(a, b, c, d);
12118 SetFS(sel);
12119
12120 return yyrc;
12121}
12122
12123#undef SplCreateQueue
12124#define SplCreateQueue _SplCreateQueue
12125
12126inline SPLERR _SplDeleteDevice(PSZ a, PSZ b)
12127{
12128 SPLERR yyrc;
12129 USHORT sel = RestoreOS2FS();
12130
12131 yyrc = SplDeleteDevice(a, b);
12132 SetFS(sel);
12133
12134 return yyrc;
12135}
12136
12137#undef SplDeleteDevice
12138#define SplDeleteDevice _SplDeleteDevice
12139
12140inline SPLERR _SplDeleteJob(PSZ a, PSZ b, ULONG c)
12141{
12142 SPLERR yyrc;
12143 USHORT sel = RestoreOS2FS();
12144
12145 yyrc = SplDeleteJob(a, b, c);
12146 SetFS(sel);
12147
12148 return yyrc;
12149}
12150
12151#undef SplDeleteJob
12152#define SplDeleteJob _SplDeleteJob
12153
12154inline SPLERR _SplDeletePort(PCSZ a, PCSZ b)
12155{
12156 SPLERR yyrc;
12157 USHORT sel = RestoreOS2FS();
12158
12159 yyrc = SplDeletePort(a, b);
12160 SetFS(sel);
12161
12162 return yyrc;
12163}
12164
12165#undef SplDeletePort
12166#define SplDeletePort _SplDeletePort
12167
12168inline SPLERR _SplDeleteQueue(PSZ a, PSZ b)
12169{
12170 SPLERR yyrc;
12171 USHORT sel = RestoreOS2FS();
12172
12173 yyrc = SplDeleteQueue(a, b);
12174 SetFS(sel);
12175
12176 return yyrc;
12177}
12178
12179#undef SplDeleteQueue
12180#define SplDeleteQueue _SplDeleteQueue
12181
12182inline SPLERR _SplEnumDevice(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
12183{
12184 SPLERR yyrc;
12185 USHORT sel = RestoreOS2FS();
12186
12187 yyrc = SplEnumDevice(a, b, c, d, e, f, g, h);
12188 SetFS(sel);
12189
12190 return yyrc;
12191}
12192
12193#undef SplEnumDevice
12194#define SplEnumDevice _SplEnumDevice
12195
12196inline SPLERR _SplEnumDriver(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
12197{
12198 SPLERR yyrc;
12199 USHORT sel = RestoreOS2FS();
12200
12201 yyrc = SplEnumDriver(a, b, c, d, e, f, g, h);
12202 SetFS(sel);
12203
12204 return yyrc;
12205}
12206
12207#undef SplEnumDriver
12208#define SplEnumDriver _SplEnumDriver
12209
12210inline SPLERR _SplEnumJob(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f, PULONG g, PULONG h, PVOID i)
12211{
12212 SPLERR yyrc;
12213 USHORT sel = RestoreOS2FS();
12214
12215 yyrc = SplEnumJob(a, b, c, d, e, f, g, h, i);
12216 SetFS(sel);
12217
12218 return yyrc;
12219}
12220
12221#undef SplEnumJob
12222#define SplEnumJob _SplEnumJob
12223
12224inline SPLERR _SplEnumPort(PCSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
12225{
12226 SPLERR yyrc;
12227 USHORT sel = RestoreOS2FS();
12228
12229 yyrc = SplEnumPort(a, b, c, d, e, f, g, h);
12230 SetFS(sel);
12231
12232 return yyrc;
12233}
12234
12235#undef SplEnumPort
12236#define SplEnumPort _SplEnumPort
12237
12238inline SPLERR _SplEnumPrinter(PSZ a, ULONG b, ULONG c, PVOID d, ULONG e, PULONG f, PULONG g, PULONG h, PVOID i)
12239{
12240 SPLERR yyrc;
12241 USHORT sel = RestoreOS2FS();
12242
12243 yyrc = SplEnumPrinter(a, b, c, d, e, f, g, h, i);
12244 SetFS(sel);
12245
12246 return yyrc;
12247}
12248
12249#undef SplEnumPrinter
12250#define SplEnumPrinter _SplEnumPrinter
12251
12252inline SPLERR _SplEnumQueue(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
12253{
12254 SPLERR yyrc;
12255 USHORT sel = RestoreOS2FS();
12256
12257 yyrc = SplEnumQueue(a, b, c, d, e, f, g, h);
12258 SetFS(sel);
12259
12260 return yyrc;
12261}
12262
12263#undef SplEnumQueue
12264#define SplEnumQueue _SplEnumQueue
12265
12266inline SPLERR _SplEnumQueueProcessor(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
12267{
12268 SPLERR yyrc;
12269 USHORT sel = RestoreOS2FS();
12270
12271 yyrc = SplEnumQueueProcessor(a, b, c, d, e, f, g, h);
12272 SetFS(sel);
12273
12274 return yyrc;
12275}
12276
12277#undef SplEnumQueueProcessor
12278#define SplEnumQueueProcessor _SplEnumQueueProcessor
12279
12280inline SPLERR _SplHoldJob(PCSZ a, PCSZ b, ULONG c)
12281{
12282 SPLERR yyrc;
12283 USHORT sel = RestoreOS2FS();
12284
12285 yyrc = SplHoldJob(a, b, c);
12286 SetFS(sel);
12287
12288 return yyrc;
12289}
12290
12291#undef SplHoldJob
12292#define SplHoldJob _SplHoldJob
12293
12294inline SPLERR _SplHoldQueue(PSZ a, PSZ b)
12295{
12296 SPLERR yyrc;
12297 USHORT sel = RestoreOS2FS();
12298
12299 yyrc = SplHoldQueue(a, b);
12300 SetFS(sel);
12301
12302 return yyrc;
12303}
12304
12305#undef SplHoldQueue
12306#define SplHoldQueue _SplHoldQueue
12307
12308inline SPLERR _SplPurgeQueue(PSZ a, PSZ b)
12309{
12310 SPLERR yyrc;
12311 USHORT sel = RestoreOS2FS();
12312
12313 yyrc = SplPurgeQueue(a, b);
12314 SetFS(sel);
12315
12316 return yyrc;
12317}
12318
12319#undef SplPurgeQueue
12320#define SplPurgeQueue _SplPurgeQueue
12321
12322inline SPLERR _SplQueryDevice(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
12323{
12324 SPLERR yyrc;
12325 USHORT sel = RestoreOS2FS();
12326
12327 yyrc = SplQueryDevice(a, b, c, d, e, f);
12328 SetFS(sel);
12329
12330 return yyrc;
12331}
12332
12333#undef SplQueryDevice
12334#define SplQueryDevice _SplQueryDevice
12335
12336inline SPLERR _SplQueryDriver(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f, PULONG g)
12337{
12338 SPLERR yyrc;
12339 USHORT sel = RestoreOS2FS();
12340
12341 yyrc = SplQueryDriver(a, b, c, d, e, f, g);
12342 SetFS(sel);
12343
12344 return yyrc;
12345}
12346
12347#undef SplQueryDriver
12348#define SplQueryDriver _SplQueryDriver
12349
12350inline SPLERR _SplQueryJob(PSZ a, PSZ b, ULONG c, ULONG d, PVOID e, ULONG f, PULONG g)
12351{
12352 SPLERR yyrc;
12353 USHORT sel = RestoreOS2FS();
12354
12355 yyrc = SplQueryJob(a, b, c, d, e, f, g);
12356 SetFS(sel);
12357
12358 return yyrc;
12359}
12360
12361#undef SplQueryJob
12362#define SplQueryJob _SplQueryJob
12363
12364inline SPLERR _SplQueryPort(PCSZ a, PCSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
12365{
12366 SPLERR yyrc;
12367 USHORT sel = RestoreOS2FS();
12368
12369 yyrc = SplQueryPort(a, b, c, d, e, f);
12370 SetFS(sel);
12371
12372 return yyrc;
12373}
12374
12375#undef SplQueryPort
12376#define SplQueryPort _SplQueryPort
12377
12378inline SPLERR _SplQueryQueue(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
12379{
12380 SPLERR yyrc;
12381 USHORT sel = RestoreOS2FS();
12382
12383 yyrc = SplQueryQueue(a, b, c, d, e, f);
12384 SetFS(sel);
12385
12386 return yyrc;
12387}
12388
12389#undef SplQueryQueue
12390#define SplQueryQueue _SplQueryQueue
12391
12392inline SPLERR _SplReleaseJob(PCSZ a, PCSZ b, ULONG c)
12393{
12394 SPLERR yyrc;
12395 USHORT sel = RestoreOS2FS();
12396
12397 yyrc = SplReleaseJob(a, b, c);
12398 SetFS(sel);
12399
12400 return yyrc;
12401}
12402
12403#undef SplReleaseJob
12404#define SplReleaseJob _SplReleaseJob
12405
12406inline SPLERR _SplReleaseQueue(PSZ a, PSZ b)
12407{
12408 SPLERR yyrc;
12409 USHORT sel = RestoreOS2FS();
12410
12411 yyrc = SplReleaseQueue(a, b);
12412 SetFS(sel);
12413
12414 return yyrc;
12415}
12416
12417#undef SplReleaseQueue
12418#define SplReleaseQueue _SplReleaseQueue
12419
12420inline SPLERR _SplSetDevice(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
12421{
12422 SPLERR yyrc;
12423 USHORT sel = RestoreOS2FS();
12424
12425 yyrc = SplSetDevice(a, b, c, d, e, f);
12426 SetFS(sel);
12427
12428 return yyrc;
12429}
12430
12431#undef SplSetDevice
12432#define SplSetDevice _SplSetDevice
12433
12434inline SPLERR _SplSetDriver(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f, ULONG g)
12435{
12436 SPLERR yyrc;
12437 USHORT sel = RestoreOS2FS();
12438
12439 yyrc = SplSetDriver(a, b, c, d, e, f, g);
12440 SetFS(sel);
12441
12442 return yyrc;
12443}
12444
12445#undef SplSetDriver
12446#define SplSetDriver _SplSetDriver
12447
12448inline SPLERR _SplSetJob(PSZ a, PSZ b, ULONG c, ULONG d, PVOID e, ULONG f, ULONG g)
12449{
12450 SPLERR yyrc;
12451 USHORT sel = RestoreOS2FS();
12452
12453 yyrc = SplSetJob(a, b, c, d, e, f, g);
12454 SetFS(sel);
12455
12456 return yyrc;
12457}
12458
12459#undef SplSetJob
12460#define SplSetJob _SplSetJob
12461
12462inline SPLERR _SplSetPort(PCSZ a, PCSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
12463{
12464 SPLERR yyrc;
12465 USHORT sel = RestoreOS2FS();
12466
12467 yyrc = SplSetPort(a, b, c, d, e, f);
12468 SetFS(sel);
12469
12470 return yyrc;
12471}
12472
12473#undef SplSetPort
12474#define SplSetPort _SplSetPort
12475
12476inline SPLERR _SplSetQueue(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
12477{
12478 SPLERR yyrc;
12479 USHORT sel = RestoreOS2FS();
12480
12481 yyrc = SplSetQueue(a, b, c, d, e, f);
12482 SetFS(sel);
12483
12484 return yyrc;
12485}
12486
12487#undef SplSetQueue
12488#define SplSetQueue _SplSetQueue
12489
12490inline ULONG _SplMessageBox(PSZ a, ULONG b, ULONG c, PSZ d, PSZ e, ULONG f, ULONG g)
12491{
12492 ULONG yyrc;
12493 USHORT sel = RestoreOS2FS();
12494
12495 yyrc = SplMessageBox(a, b, c, d, e, f, g);
12496 SetFS(sel);
12497
12498 return yyrc;
12499}
12500
12501#undef SplMessageBox
12502#define SplMessageBox _SplMessageBox
12503
12504inline BOOL _SplQmAbort(HSPL a)
12505{
12506 BOOL yyrc;
12507 USHORT sel = RestoreOS2FS();
12508
12509 yyrc = SplQmAbort(a);
12510 SetFS(sel);
12511
12512 return yyrc;
12513}
12514
12515#undef SplQmAbort
12516#define SplQmAbort _SplQmAbort
12517
12518inline BOOL _SplQmAbortDoc(HSPL a)
12519{
12520 BOOL yyrc;
12521 USHORT sel = RestoreOS2FS();
12522
12523 yyrc = SplQmAbortDoc(a);
12524 SetFS(sel);
12525
12526 return yyrc;
12527}
12528
12529#undef SplQmAbortDoc
12530#define SplQmAbortDoc _SplQmAbortDoc
12531
12532inline BOOL _SplQmClose(HSPL a)
12533{
12534 BOOL yyrc;
12535 USHORT sel = RestoreOS2FS();
12536
12537 yyrc = SplQmClose(a);
12538 SetFS(sel);
12539
12540 return yyrc;
12541}
12542
12543#undef SplQmClose
12544#define SplQmClose _SplQmClose
12545
12546inline BOOL _SplQmEndDoc(HSPL a)
12547{
12548 BOOL yyrc;
12549 USHORT sel = RestoreOS2FS();
12550
12551 yyrc = SplQmEndDoc(a);
12552 SetFS(sel);
12553
12554 return yyrc;
12555}
12556
12557#undef SplQmEndDoc
12558#define SplQmEndDoc _SplQmEndDoc
12559
12560inline ULONG _SplQmGetJobID(HSPL a, ULONG b, PVOID c, ULONG d, PULONG e)
12561{
12562 ULONG yyrc;
12563 USHORT sel = RestoreOS2FS();
12564
12565 yyrc = SplQmGetJobID(a, b, c, d, e);
12566 SetFS(sel);
12567
12568 return yyrc;
12569}
12570
12571#undef SplQmGetJobID
12572#define SplQmGetJobID _SplQmGetJobID
12573
12574inline BOOL _SplQmNewPage(HSPL a, ULONG b)
12575{
12576 BOOL yyrc;
12577 USHORT sel = RestoreOS2FS();
12578
12579 yyrc = SplQmNewPage(a, b);
12580 SetFS(sel);
12581
12582 return yyrc;
12583}
12584
12585#undef SplQmNewPage
12586#define SplQmNewPage _SplQmNewPage
12587
12588inline HSPL _SplQmOpen(PSZ a, LONG b, PQMOPENDATA c)
12589{
12590 HSPL yyrc;
12591 USHORT sel = RestoreOS2FS();
12592
12593 yyrc = SplQmOpen(a, b, c);
12594 SetFS(sel);
12595
12596 return yyrc;
12597}
12598
12599#undef SplQmOpen
12600#define SplQmOpen _SplQmOpen
12601
12602inline BOOL _SplQmStartDoc(HSPL a, PSZ b)
12603{
12604 BOOL yyrc;
12605 USHORT sel = RestoreOS2FS();
12606
12607 yyrc = SplQmStartDoc(a, b);
12608 SetFS(sel);
12609
12610 return yyrc;
12611}
12612
12613#undef SplQmStartDoc
12614#define SplQmStartDoc _SplQmStartDoc
12615
12616inline BOOL _SplQmWrite(HSPL a, LONG b, PVOID c)
12617{
12618 BOOL yyrc;
12619 USHORT sel = RestoreOS2FS();
12620
12621 yyrc = SplQmWrite(a, b, c);
12622 SetFS(sel);
12623
12624 return yyrc;
12625}
12626
12627#undef SplQmWrite
12628#define SplQmWrite _SplQmWrite
12629
12630#endif
12631#ifdef INCL_WINHELP
12632inline BOOL _WinAssociateHelpInstance(HWND a, HWND b)
12633{
12634 BOOL yyrc;
12635 USHORT sel = RestoreOS2FS();
12636
12637 yyrc = WinAssociateHelpInstance(a, b);
12638 SetFS(sel);
12639
12640 return yyrc;
12641}
12642
12643#undef WinAssociateHelpInstance
12644#define WinAssociateHelpInstance _WinAssociateHelpInstance
12645
12646inline HWND _WinCreateHelpInstance(HAB a, PHELPINIT b)
12647{
12648 HWND yyrc;
12649 USHORT sel = RestoreOS2FS();
12650
12651 yyrc = WinCreateHelpInstance(a, b);
12652 SetFS(sel);
12653
12654 return yyrc;
12655}
12656
12657#undef WinCreateHelpInstance
12658#define WinCreateHelpInstance _WinCreateHelpInstance
12659
12660inline BOOL _WinCreateHelpTable(HWND a, PHELPTABLE b)
12661{
12662 BOOL yyrc;
12663 USHORT sel = RestoreOS2FS();
12664
12665 yyrc = WinCreateHelpTable(a, b);
12666 SetFS(sel);
12667
12668 return yyrc;
12669}
12670
12671#undef WinCreateHelpTable
12672#define WinCreateHelpTable _WinCreateHelpTable
12673
12674inline BOOL _WinDestroyHelpInstance(HWND a)
12675{
12676 BOOL yyrc;
12677 USHORT sel = RestoreOS2FS();
12678
12679 yyrc = WinDestroyHelpInstance(a);
12680 SetFS(sel);
12681
12682 return yyrc;
12683}
12684
12685#undef WinDestroyHelpInstance
12686#define WinDestroyHelpInstance _WinDestroyHelpInstance
12687
12688inline BOOL _WinLoadHelpTable(HWND a, ULONG b, HMODULE c)
12689{
12690 BOOL yyrc;
12691 USHORT sel = RestoreOS2FS();
12692
12693 yyrc = WinLoadHelpTable(a, b, c);
12694 SetFS(sel);
12695
12696 return yyrc;
12697}
12698
12699#undef WinLoadHelpTable
12700#define WinLoadHelpTable _WinLoadHelpTable
12701
12702inline HWND _WinQueryHelpInstance(HWND a)
12703{
12704 HWND yyrc;
12705 USHORT sel = RestoreOS2FS();
12706
12707 yyrc = WinQueryHelpInstance(a);
12708 SetFS(sel);
12709
12710 return yyrc;
12711}
12712
12713#undef WinQueryHelpInstance
12714#define WinQueryHelpInstance _WinQueryHelpInstance
12715
12716#endif
12717#ifdef INCL_DDF
12718inline BOOL _DdfBeginList(HDDF a, ULONG b, ULONG c, ULONG d)
12719{
12720 BOOL yyrc;
12721 USHORT sel = RestoreOS2FS();
12722
12723 yyrc = DdfBeginList(a, b, c, d);
12724 SetFS(sel);
12725
12726 return yyrc;
12727}
12728
12729#undef DdfBeginList
12730#define DdfBeginList _DdfBeginList
12731
12732inline BOOL _DdfBitmap(HDDF a, HBITMAP b, ULONG c)
12733{
12734 BOOL yyrc;
12735 USHORT sel = RestoreOS2FS();
12736
12737 yyrc = DdfBitmap(a, b, c);
12738 SetFS(sel);
12739
12740 return yyrc;
12741}
12742
12743#undef DdfBitmap
12744#define DdfBitmap _DdfBitmap
12745
12746inline BOOL _DdfEndList(HDDF a)
12747{
12748 BOOL yyrc;
12749 USHORT sel = RestoreOS2FS();
12750
12751 yyrc = DdfEndList(a);
12752 SetFS(sel);
12753
12754 return yyrc;
12755}
12756
12757#undef DdfEndList
12758#define DdfEndList _DdfEndList
12759
12760inline BOOL _DdfHyperText(HDDF a, PCSZ b, PCSZ c, ULONG d)
12761{
12762 BOOL yyrc;
12763 USHORT sel = RestoreOS2FS();
12764
12765 yyrc = DdfHyperText(a, b, c, d);
12766 SetFS(sel);
12767
12768 return yyrc;
12769}
12770
12771#undef DdfHyperText
12772#define DdfHyperText _DdfHyperText
12773
12774inline BOOL _DdfInform(HDDF a, PCSZ b, ULONG c)
12775{
12776 BOOL yyrc;
12777 USHORT sel = RestoreOS2FS();
12778
12779 yyrc = DdfInform(a, b, c);
12780 SetFS(sel);
12781
12782 return yyrc;
12783}
12784
12785#undef DdfInform
12786#define DdfInform _DdfInform
12787
12788inline HDDF _DdfInitialize(HWND a, ULONG b, ULONG c)
12789{
12790 HDDF yyrc;
12791 USHORT sel = RestoreOS2FS();
12792
12793 yyrc = DdfInitialize(a, b, c);
12794 SetFS(sel);
12795
12796 return yyrc;
12797}
12798
12799#undef DdfInitialize
12800#define DdfInitialize _DdfInitialize
12801
12802inline BOOL _DdfListItem(HDDF a, PCSZ b, PCSZ c)
12803{
12804 BOOL yyrc;
12805 USHORT sel = RestoreOS2FS();
12806
12807 yyrc = DdfListItem(a, b, c);
12808 SetFS(sel);
12809
12810 return yyrc;
12811}
12812
12813#undef DdfListItem
12814#define DdfListItem _DdfListItem
12815
12816inline BOOL _DdfMetafile(HDDF a, HMF b, PRECTL c)
12817{
12818 BOOL yyrc;
12819 USHORT sel = RestoreOS2FS();
12820
12821 yyrc = DdfMetafile(a, b, c);
12822 SetFS(sel);
12823
12824 return yyrc;
12825}
12826
12827#undef DdfMetafile
12828#define DdfMetafile _DdfMetafile
12829
12830inline BOOL _DdfPara(HDDF a)
12831{
12832 BOOL yyrc;
12833 USHORT sel = RestoreOS2FS();
12834
12835 yyrc = DdfPara(a);
12836 SetFS(sel);
12837
12838 return yyrc;
12839}
12840
12841#undef DdfPara
12842#define DdfPara _DdfPara
12843
12844inline BOOL _DdfSetColor(HDDF a, COLOR b, COLOR c)
12845{
12846 BOOL yyrc;
12847 USHORT sel = RestoreOS2FS();
12848
12849 yyrc = DdfSetColor(a, b, c);
12850 SetFS(sel);
12851
12852 return yyrc;
12853}
12854
12855#undef DdfSetColor
12856#define DdfSetColor _DdfSetColor
12857
12858inline BOOL _DdfSetFont(HDDF a, PCSZ b, ULONG c, ULONG d)
12859{
12860 BOOL yyrc;
12861 USHORT sel = RestoreOS2FS();
12862
12863 yyrc = DdfSetFont(a, b, c, d);
12864 SetFS(sel);
12865
12866 return yyrc;
12867}
12868
12869#undef DdfSetFont
12870#define DdfSetFont _DdfSetFont
12871
12872inline BOOL _DdfSetFontStyle(HDDF a, ULONG b)
12873{
12874 BOOL yyrc;
12875 USHORT sel = RestoreOS2FS();
12876
12877 yyrc = DdfSetFontStyle(a, b);
12878 SetFS(sel);
12879
12880 return yyrc;
12881}
12882
12883#undef DdfSetFontStyle
12884#define DdfSetFontStyle _DdfSetFontStyle
12885
12886inline BOOL _DdfSetFormat(HDDF a, ULONG b)
12887{
12888 BOOL yyrc;
12889 USHORT sel = RestoreOS2FS();
12890
12891 yyrc = DdfSetFormat(a, b);
12892 SetFS(sel);
12893
12894 return yyrc;
12895}
12896
12897#undef DdfSetFormat
12898#define DdfSetFormat _DdfSetFormat
12899
12900inline BOOL _DdfSetTextAlign(HDDF a, ULONG b)
12901{
12902 BOOL yyrc;
12903 USHORT sel = RestoreOS2FS();
12904
12905 yyrc = DdfSetTextAlign(a, b);
12906 SetFS(sel);
12907
12908 return yyrc;
12909}
12910
12911#undef DdfSetTextAlign
12912#define DdfSetTextAlign _DdfSetTextAlign
12913
12914inline BOOL _DdfText(HDDF a, PCSZ b)
12915{
12916 BOOL yyrc;
12917 USHORT sel = RestoreOS2FS();
12918
12919 yyrc = DdfText(a, b);
12920 SetFS(sel);
12921
12922 return yyrc;
12923}
12924
12925#undef DdfText
12926#define DdfText _DdfText
12927
12928#endif
12929#ifdef INCL_AVIO
12930inline USHORT _VioAssociate(HDC a, HVPS b)
12931{
12932 USHORT yyrc;
12933 USHORT sel = RestoreOS2FS();
12934
12935 yyrc = VIO16ASSOCIATE(a, b);
12936 SetFS(sel);
12937
12938 return yyrc;
12939}
12940
12941#undef VioAssociate
12942#define VioAssociate _VioAssociate
12943
12944inline USHORT _VioCreateLogFont(PFATTRS a, LONG b, PSTR8 c, HVPS d)
12945{
12946 USHORT yyrc;
12947 USHORT sel = RestoreOS2FS();
12948
12949 yyrc = VIO16CREATELOGFONT(a, b, c, d);
12950 SetFS(sel);
12951
12952 return yyrc;
12953}
12954
12955#undef VioCreateLogFont
12956#define VioCreateLogFont _VioCreateLogFont
12957
12958inline USHORT _VioCreatePS(PHVPS a, SHORT b, SHORT c, SHORT d, SHORT e, HVPS f)
12959{
12960 USHORT yyrc;
12961 USHORT sel = RestoreOS2FS();
12962
12963 yyrc = VIO16CREATEPS(a, b, c, d, e, f);
12964 SetFS(sel);
12965
12966 return yyrc;
12967}
12968
12969#undef VioCreatePS
12970#define VioCreatePS _VioCreatePS
12971
12972inline USHORT _VioDeleteSetId(LONG a, HVPS b)
12973{
12974 USHORT yyrc;
12975 USHORT sel = RestoreOS2FS();
12976
12977 yyrc = VIO16DELETESETID(a, b);
12978 SetFS(sel);
12979
12980 return yyrc;
12981}
12982
12983#undef VioDeleteSetId
12984#define VioDeleteSetId _VioDeleteSetId
12985
12986inline USHORT _VioDestroyPS(HVPS a)
12987{
12988 USHORT yyrc;
12989 USHORT sel = RestoreOS2FS();
12990
12991 yyrc = VIO16DESTROYPS(a);
12992 SetFS(sel);
12993
12994 return yyrc;
12995}
12996
12997#undef VioDestroyPS
12998#define VioDestroyPS _VioDestroyPS
12999
13000inline USHORT _VioGetDeviceCellSize(PSHORT a, PSHORT b, HVPS c)
13001{
13002 USHORT yyrc;
13003 USHORT sel = RestoreOS2FS();
13004
13005 yyrc = VIO16GETDEVICECELLSIZE(a, b, c);
13006 SetFS(sel);
13007
13008 return yyrc;
13009}
13010
13011#undef VioGetDeviceCellSize
13012#define VioGetDeviceCellSize _VioGetDeviceCellSize
13013
13014inline USHORT _VioGetOrg(PSHORT a, PSHORT b, HVPS c)
13015{
13016 USHORT yyrc;
13017 USHORT sel = RestoreOS2FS();
13018
13019 yyrc = VIO16GETORG(a, b, c);
13020 SetFS(sel);
13021
13022 return yyrc;
13023}
13024
13025#undef VioGetOrg
13026#define VioGetOrg _VioGetOrg
13027
13028inline USHORT _VioQueryFonts(PLONG a, PFONTMETRICS b, LONG c, PLONG d, PSZ e, ULONG f, HVPS g)
13029{
13030 USHORT yyrc;
13031 USHORT sel = RestoreOS2FS();
13032
13033 yyrc = VIO16QUERYFONTS(a, b, c, d, e, f, g);
13034 SetFS(sel);
13035
13036 return yyrc;
13037}
13038
13039#undef VioQueryFonts
13040#define VioQueryFonts _VioQueryFonts
13041
13042inline USHORT _VioQuerySetIds(PLONG a, PSTR8 b, PLONG c, LONG d, HVPS e)
13043{
13044 USHORT yyrc;
13045 USHORT sel = RestoreOS2FS();
13046
13047 yyrc = VIO16QUERYSETIDS(a, b, c, d, e);
13048 SetFS(sel);
13049
13050 return yyrc;
13051}
13052
13053#undef VioQuerySetIds
13054#define VioQuerySetIds _VioQuerySetIds
13055
13056inline USHORT _VioSetDeviceCellSize(SHORT a, SHORT b, HVPS c)
13057{
13058 USHORT yyrc;
13059 USHORT sel = RestoreOS2FS();
13060
13061 yyrc = VIO16SETDEVICECELLSIZE(a, b, c);
13062 SetFS(sel);
13063
13064 return yyrc;
13065}
13066
13067#undef VioSetDeviceCellSize
13068#define VioSetDeviceCellSize _VioSetDeviceCellSize
13069
13070inline USHORT _VioSetOrg(SHORT a, SHORT b, HVPS c)
13071{
13072 USHORT yyrc;
13073 USHORT sel = RestoreOS2FS();
13074
13075 yyrc = VIO16SETORG(a, b, c);
13076 SetFS(sel);
13077
13078 return yyrc;
13079}
13080
13081#undef VioSetOrg
13082#define VioSetOrg _VioSetOrg
13083
13084inline USHORT _VioShowPS(SHORT a, SHORT b, SHORT c, HVPS d)
13085{
13086 USHORT yyrc;
13087 USHORT sel = RestoreOS2FS();
13088
13089 yyrc = VIO16SHOWPS(a, b, c, d);
13090 SetFS(sel);
13091
13092 return yyrc;
13093}
13094
13095#undef VioShowPS
13096#define VioShowPS _VioShowPS
13097
13098inline MRESULT _WinDefAVioWindowProc(HWND a, USHORT b, ULONG c, ULONG d)
13099{
13100 MRESULT yyrc;
13101 USHORT sel = RestoreOS2FS();
13102
13103 yyrc = WinDefAVioWindowProc(a, b, c, d);
13104 SetFS(sel);
13105
13106 return yyrc;
13107}
13108
13109#undef WinDefAVioWindowProc
13110#define WinDefAVioWindowProc _WinDefAVioWindowProc
13111
13112#endif
13113#ifdef INCL_KBD
13114inline USHORT _KbdCharIn(PKBDKEYINFO a, USHORT b, HKBD c)
13115{
13116 USHORT yyrc;
13117 USHORT sel = RestoreOS2FS();
13118
13119 yyrc = KbdCharIn(a, b, c);
13120 SetFS(sel);
13121
13122 return yyrc;
13123}
13124
13125#undef KbdCharIn
13126#define KbdCharIn _KbdCharIn
13127
13128inline USHORT _KbdClose(HKBD a)
13129{
13130 USHORT yyrc;
13131 USHORT sel = RestoreOS2FS();
13132
13133 yyrc = KbdClose(a);
13134 SetFS(sel);
13135
13136 return yyrc;
13137}
13138
13139#undef KbdClose
13140#define KbdClose _KbdClose
13141
13142inline USHORT _KbdDeRegister()
13143{
13144 USHORT yyrc;
13145 USHORT sel = RestoreOS2FS();
13146
13147 yyrc = KbdDeRegister();
13148 SetFS(sel);
13149
13150 return yyrc;
13151}
13152
13153#undef KbdDeRegister
13154#define KbdDeRegister _KbdDeRegister
13155
13156inline USHORT _KbdFlushBuffer(HKBD a)
13157{
13158 USHORT yyrc;
13159 USHORT sel = RestoreOS2FS();
13160
13161 yyrc = KbdFlushBuffer(a);
13162 SetFS(sel);
13163
13164 return yyrc;
13165}
13166
13167#undef KbdFlushBuffer
13168#define KbdFlushBuffer _KbdFlushBuffer
13169
13170inline USHORT _KbdFreeFocus(HKBD a)
13171{
13172 USHORT yyrc;
13173 USHORT sel = RestoreOS2FS();
13174
13175 yyrc = KbdFreeFocus(a);
13176 SetFS(sel);
13177
13178 return yyrc;
13179}
13180
13181#undef KbdFreeFocus
13182#define KbdFreeFocus _KbdFreeFocus
13183
13184inline USHORT _KbdGetCp(ULONG a, PUSHORT b, HKBD c)
13185{
13186 USHORT yyrc;
13187 USHORT sel = RestoreOS2FS();
13188
13189 yyrc = KbdGetCp(a, b, c);
13190 SetFS(sel);
13191
13192 return yyrc;
13193}
13194
13195#undef KbdGetCp
13196#define KbdGetCp _KbdGetCp
13197
13198inline USHORT _KbdGetFocus(USHORT a, HKBD b)
13199{
13200 USHORT yyrc;
13201 USHORT sel = RestoreOS2FS();
13202
13203 yyrc = KbdGetFocus(a, b);
13204 SetFS(sel);
13205
13206 return yyrc;
13207}
13208
13209#undef KbdGetFocus
13210#define KbdGetFocus _KbdGetFocus
13211
13212inline USHORT _KbdGetHWID(PKBDHWID a, HKBD b)
13213{
13214 USHORT yyrc;
13215 USHORT sel = RestoreOS2FS();
13216
13217 yyrc = KbdGetHWID(a, b);
13218 SetFS(sel);
13219
13220 return yyrc;
13221}
13222
13223#undef KbdGetHWID
13224#define KbdGetHWID _KbdGetHWID
13225
13226inline USHORT _KbdGetStatus(PKBDINFO a, HKBD b)
13227{
13228 USHORT yyrc;
13229 USHORT sel = RestoreOS2FS();
13230
13231 yyrc = KbdGetStatus(a, b);
13232 SetFS(sel);
13233
13234 return yyrc;
13235}
13236
13237#undef KbdGetStatus
13238#define KbdGetStatus _KbdGetStatus
13239
13240inline USHORT _KbdOpen(PHKBD a)
13241{
13242 USHORT yyrc;
13243 USHORT sel = RestoreOS2FS();
13244
13245 yyrc = KbdOpen(a);
13246 SetFS(sel);
13247
13248 return yyrc;
13249}
13250
13251#undef KbdOpen
13252#define KbdOpen _KbdOpen
13253
13254inline USHORT _KbdPeek(PKBDKEYINFO a, HKBD b)
13255{
13256 USHORT yyrc;
13257 USHORT sel = RestoreOS2FS();
13258
13259 yyrc = KbdPeek(a, b);
13260 SetFS(sel);
13261
13262 return yyrc;
13263}
13264
13265#undef KbdPeek
13266#define KbdPeek _KbdPeek
13267
13268inline USHORT _KbdRegister(PSZ a, PSZ b, ULONG c)
13269{
13270 USHORT yyrc;
13271 USHORT sel = RestoreOS2FS();
13272
13273 yyrc = KbdRegister(a, b, c);
13274 SetFS(sel);
13275
13276 return yyrc;
13277}
13278
13279#undef KbdRegister
13280#define KbdRegister _KbdRegister
13281
13282inline USHORT _KbdSetCp(USHORT a, USHORT b, HKBD c)
13283{
13284 USHORT yyrc;
13285 USHORT sel = RestoreOS2FS();
13286
13287 yyrc = KbdSetCp(a, b, c);
13288 SetFS(sel);
13289
13290 return yyrc;
13291}
13292
13293#undef KbdSetCp
13294#define KbdSetCp _KbdSetCp
13295
13296inline USHORT _KbdSetCustXt(PUSHORT a, HKBD b)
13297{
13298 USHORT yyrc;
13299 USHORT sel = RestoreOS2FS();
13300
13301 yyrc = KbdSetCustXt(a, b);
13302 SetFS(sel);
13303
13304 return yyrc;
13305}
13306
13307#undef KbdSetCustXt
13308#define KbdSetCustXt _KbdSetCustXt
13309
13310inline USHORT _KbdSetFgnd()
13311{
13312 USHORT yyrc;
13313 USHORT sel = RestoreOS2FS();
13314
13315 yyrc = KbdSetFgnd();
13316 SetFS(sel);
13317
13318 return yyrc;
13319}
13320
13321#undef KbdSetFgnd
13322#define KbdSetFgnd _KbdSetFgnd
13323
13324inline USHORT _KbdSetHWID(PKBDHWID a, HKBD b)
13325{
13326 USHORT yyrc;
13327 USHORT sel = RestoreOS2FS();
13328
13329 yyrc = KbdSetHWID(a, b);
13330 SetFS(sel);
13331
13332 return yyrc;
13333}
13334
13335#undef KbdSetHWID
13336#define KbdSetHWID _KbdSetHWID
13337
13338inline USHORT _KbdSetStatus(PKBDINFO a, HKBD b)
13339{
13340 USHORT yyrc;
13341 USHORT sel = RestoreOS2FS();
13342
13343 yyrc = KbdSetStatus(a, b);
13344 SetFS(sel);
13345
13346 return yyrc;
13347}
13348
13349#undef KbdSetStatus
13350#define KbdSetStatus _KbdSetStatus
13351
13352inline USHORT _KbdStringIn(PCH a, PSTRINGINBUF b, USHORT c, HKBD d)
13353{
13354 USHORT yyrc;
13355 USHORT sel = RestoreOS2FS();
13356
13357 yyrc = KbdStringIn(a, b, c, d);
13358 SetFS(sel);
13359
13360 return yyrc;
13361}
13362
13363#undef KbdStringIn
13364#define KbdStringIn _KbdStringIn
13365
13366inline USHORT _KbdSynch(USHORT a)
13367{
13368 USHORT yyrc;
13369 USHORT sel = RestoreOS2FS();
13370
13371 yyrc = KbdSynch(a);
13372 SetFS(sel);
13373
13374 return yyrc;
13375}
13376
13377#undef KbdSynch
13378#define KbdSynch _KbdSynch
13379
13380inline USHORT _KbdXlate(PKBDTRANS a, HKBD b)
13381{
13382 USHORT yyrc;
13383 USHORT sel = RestoreOS2FS();
13384
13385 yyrc = KbdXlate(a, b);
13386 SetFS(sel);
13387
13388 return yyrc;
13389}
13390
13391#undef KbdXlate
13392#define KbdXlate _KbdXlate
13393
13394#endif
13395#ifdef INCL_VIO
13396inline USHORT _VioCheckCharType(PUSHORT a, USHORT b, USHORT c, HVIO d)
13397{
13398 USHORT yyrc;
13399 USHORT sel = RestoreOS2FS();
13400
13401 yyrc = VIO16CHECKCHARTYPE(a, b, c, d);
13402 SetFS(sel);
13403
13404 return yyrc;
13405}
13406
13407#undef VioCheckCharType
13408#define VioCheckCharType _VioCheckCharType
13409
13410inline USHORT _VioDeRegister()
13411{
13412 USHORT yyrc;
13413 USHORT sel = RestoreOS2FS();
13414
13415 yyrc = VIO16DEREGISTER();
13416 SetFS(sel);
13417
13418 return yyrc;
13419}
13420
13421#undef VioDeRegister
13422#define VioDeRegister _VioDeRegister
13423
13424inline USHORT _VioEndPopUp(HVIO a)
13425{
13426 USHORT yyrc;
13427 USHORT sel = RestoreOS2FS();
13428
13429 yyrc = VIO16ENDPOPUP(a);
13430 SetFS(sel);
13431
13432 return yyrc;
13433}
13434
13435#undef VioEndPopUp
13436#define VioEndPopUp _VioEndPopUp
13437
13438inline USHORT _VioGetAnsi(PUSHORT a, HVIO b)
13439{
13440 USHORT yyrc;
13441 USHORT sel = RestoreOS2FS();
13442
13443 yyrc = VIO16GETANSI(a, b);
13444 SetFS(sel);
13445
13446 return yyrc;
13447}
13448
13449#undef VioGetAnsi
13450#define VioGetAnsi _VioGetAnsi
13451
13452inline USHORT _VioGetBuf(PULONG a, PUSHORT b, HVIO c)
13453{
13454 USHORT yyrc;
13455 USHORT sel = RestoreOS2FS();
13456
13457 yyrc = VIO16GETBUF(a, b, c);
13458 SetFS(sel);
13459
13460 return yyrc;
13461}
13462
13463#undef VioGetBuf
13464#define VioGetBuf _VioGetBuf
13465
13466inline USHORT _VioGetConfig(USHORT a, PVIOCONFIGINFO b, HVIO c)
13467{
13468 USHORT yyrc;
13469 USHORT sel = RestoreOS2FS();
13470
13471 yyrc = VIO16GETCONFIG(a, b, c);
13472 SetFS(sel);
13473
13474 return yyrc;
13475}
13476
13477#undef VioGetConfig
13478#define VioGetConfig _VioGetConfig
13479
13480inline USHORT _VioGetCp(USHORT a, PUSHORT b, HVIO c)
13481{
13482 USHORT yyrc;
13483 USHORT sel = RestoreOS2FS();
13484
13485 yyrc = VIO16GETCP(a, b, c);
13486 SetFS(sel);
13487
13488 return yyrc;
13489}
13490
13491#undef VioGetCp
13492#define VioGetCp _VioGetCp
13493
13494inline USHORT _VioGetCurPos(PUSHORT a, PUSHORT b, HVIO c)
13495{
13496 USHORT yyrc;
13497 USHORT sel = RestoreOS2FS();
13498
13499 yyrc = VIO16GETCURPOS(a, b, c);
13500 SetFS(sel);
13501
13502 return yyrc;
13503}
13504
13505#undef VioGetCurPos
13506#define VioGetCurPos _VioGetCurPos
13507
13508inline USHORT _VioGetCurType(PVIOCURSORINFO a, HVIO b)
13509{
13510 USHORT yyrc;
13511 USHORT sel = RestoreOS2FS();
13512
13513 yyrc = VIO16GETCURTYPE(a, b);
13514 SetFS(sel);
13515
13516 return yyrc;
13517}
13518
13519#undef VioGetCurType
13520#define VioGetCurType _VioGetCurType
13521
13522inline USHORT _VioGetFont(PVIOFONTINFO a, HVIO b)
13523{
13524 USHORT yyrc;
13525 USHORT sel = RestoreOS2FS();
13526
13527 yyrc = VIO16GETFONT(a, b);
13528 SetFS(sel);
13529
13530 return yyrc;
13531}
13532
13533#undef VioGetFont
13534#define VioGetFont _VioGetFont
13535
13536inline USHORT _VioGetMode(PVIOMODEINFO a, HVIO b)
13537{
13538 USHORT yyrc;
13539 USHORT sel = RestoreOS2FS();
13540
13541 yyrc = VIO16GETMODE(a, b);
13542 SetFS(sel);
13543
13544 return yyrc;
13545}
13546
13547#undef VioGetMode
13548#define VioGetMode _VioGetMode
13549
13550inline USHORT _VioGetPhysBuf(PVIOPHYSBUF a, USHORT b)
13551{
13552 USHORT yyrc;
13553 USHORT sel = RestoreOS2FS();
13554
13555 yyrc = VIO16GETPHYSBUF(a, b);
13556 SetFS(sel);
13557
13558 return yyrc;
13559}
13560
13561#undef VioGetPhysBuf
13562#define VioGetPhysBuf _VioGetPhysBuf
13563
13564inline USHORT _VioGetState(PVOID a, HVIO b)
13565{
13566 USHORT yyrc;
13567 USHORT sel = RestoreOS2FS();
13568
13569 yyrc = VIO16GETSTATE(a, b);
13570 SetFS(sel);
13571
13572 return yyrc;
13573}
13574
13575#undef VioGetState
13576#define VioGetState _VioGetState
13577
13578inline USHORT _VioModeUndo(USHORT a, USHORT b, USHORT c)
13579{
13580 USHORT yyrc;
13581 USHORT sel = RestoreOS2FS();
13582
13583 yyrc = VIO16MODEUNDO(a, b, c);
13584 SetFS(sel);
13585
13586 return yyrc;
13587}
13588
13589#undef VioModeUndo
13590#define VioModeUndo _VioModeUndo
13591
13592inline USHORT _VioModeWait(USHORT a, PUSHORT b, USHORT c)
13593{
13594 USHORT yyrc;
13595 USHORT sel = RestoreOS2FS();
13596
13597 yyrc = VIO16MODEWAIT(a, b, c);
13598 SetFS(sel);
13599
13600 return yyrc;
13601}
13602
13603#undef VioModeWait
13604#define VioModeWait _VioModeWait
13605
13606inline USHORT _VioPopUp(PUSHORT a, HVIO b)
13607{
13608 USHORT yyrc;
13609 USHORT sel = RestoreOS2FS();
13610
13611 yyrc = VIO16POPUP(a, b);
13612 SetFS(sel);
13613
13614 return yyrc;
13615}
13616
13617#undef VioPopUp
13618#define VioPopUp _VioPopUp
13619
13620inline USHORT _VioPrtSc(HVIO a)
13621{
13622 USHORT yyrc;
13623 USHORT sel = RestoreOS2FS();
13624
13625 yyrc = VIO16PRTSC(a);
13626 SetFS(sel);
13627
13628 return yyrc;
13629}
13630
13631#undef VioPrtSc
13632#define VioPrtSc _VioPrtSc
13633
13634inline USHORT _VioPrtScToggle(HVIO a)
13635{
13636 USHORT yyrc;
13637 USHORT sel = RestoreOS2FS();
13638
13639 yyrc = VIO16PRTSCTOGGLE(a);
13640 SetFS(sel);
13641
13642 return yyrc;
13643}
13644
13645#undef VioPrtScToggle
13646#define VioPrtScToggle _VioPrtScToggle
13647
13648inline USHORT _VioReadCellStr(PCH a, PUSHORT b, USHORT c, USHORT d, HVIO e)
13649{
13650 USHORT yyrc;
13651 USHORT sel = RestoreOS2FS();
13652
13653 yyrc = VIO16READCELLSTR(a, b, c, d, e);
13654 SetFS(sel);
13655
13656 return yyrc;
13657}
13658
13659#undef VioReadCellStr
13660#define VioReadCellStr _VioReadCellStr
13661
13662inline USHORT _VioReadCharStr(PCH a, PUSHORT b, USHORT c, USHORT d, HVIO e)
13663{
13664 USHORT yyrc;
13665 USHORT sel = RestoreOS2FS();
13666
13667 yyrc = VIO16READCHARSTR(a, b, c, d, e);
13668 SetFS(sel);
13669
13670 return yyrc;
13671}
13672
13673#undef VioReadCharStr
13674#define VioReadCharStr _VioReadCharStr
13675
13676inline USHORT _VioRegister(PSZ a, PSZ b, ULONG c, ULONG d)
13677{
13678 USHORT yyrc;
13679 USHORT sel = RestoreOS2FS();
13680
13681 yyrc = VIO16REGISTER(a, b, c, d);
13682 SetFS(sel);
13683
13684 return yyrc;
13685}
13686
13687#undef VioRegister
13688#define VioRegister _VioRegister
13689
13690inline USHORT _VioSavRedrawUndo(USHORT a, USHORT b, USHORT c)
13691{
13692 USHORT yyrc;
13693 USHORT sel = RestoreOS2FS();
13694
13695 yyrc = VIO16SAVREDRAWUNDO(a, b, c);
13696 SetFS(sel);
13697
13698 return yyrc;
13699}
13700
13701#undef VioSavRedrawUndo
13702#define VioSavRedrawUndo _VioSavRedrawUndo
13703
13704inline USHORT _VioSavRedrawWait(USHORT a, PUSHORT b, USHORT c)
13705{
13706 USHORT yyrc;
13707 USHORT sel = RestoreOS2FS();
13708
13709 yyrc = VIO16SAVREDRAWWAIT(a, b, c);
13710 SetFS(sel);
13711
13712 return yyrc;
13713}
13714
13715#undef VioSavRedrawWait
13716#define VioSavRedrawWait _VioSavRedrawWait
13717
13718inline USHORT _VioScrLock(USHORT a, PUCHAR b, HVIO c)
13719{
13720 USHORT yyrc;
13721 USHORT sel = RestoreOS2FS();
13722
13723 yyrc = VIO16SCRLOCK(a, b, c);
13724 SetFS(sel);
13725
13726 return yyrc;
13727}
13728
13729#undef VioScrLock
13730#define VioScrLock _VioScrLock
13731
13732inline USHORT _VioScrollDn(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
13733{
13734 USHORT yyrc;
13735 USHORT sel = RestoreOS2FS();
13736
13737 yyrc = VIO16SCROLLDN(a, b, c, d, e, f, g);
13738 SetFS(sel);
13739
13740 return yyrc;
13741}
13742
13743#undef VioScrollDn
13744#define VioScrollDn _VioScrollDn
13745
13746inline USHORT _VioScrollLf(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
13747{
13748 USHORT yyrc;
13749 USHORT sel = RestoreOS2FS();
13750
13751 yyrc = VIO16SCROLLLF(a, b, c, d, e, f, g);
13752 SetFS(sel);
13753
13754 return yyrc;
13755}
13756
13757#undef VioScrollLf
13758#define VioScrollLf _VioScrollLf
13759
13760inline USHORT _VioScrollRt(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
13761{
13762 USHORT yyrc;
13763 USHORT sel = RestoreOS2FS();
13764
13765 yyrc = VIO16SCROLLRT(a, b, c, d, e, f, g);
13766 SetFS(sel);
13767
13768 return yyrc;
13769}
13770
13771#undef VioScrollRt
13772#define VioScrollRt _VioScrollRt
13773
13774inline USHORT _VioScrollUp(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
13775{
13776 USHORT yyrc;
13777 USHORT sel = RestoreOS2FS();
13778
13779 yyrc = VIO16SCROLLUP(a, b, c, d, e, f, g);
13780 SetFS(sel);
13781
13782 return yyrc;
13783}
13784
13785#undef VioScrollUp
13786#define VioScrollUp _VioScrollUp
13787
13788inline USHORT _VioScrUnLock(HVIO a)
13789{
13790 USHORT yyrc;
13791 USHORT sel = RestoreOS2FS();
13792
13793 yyrc = VIO16SCRUNLOCK(a);
13794 SetFS(sel);
13795
13796 return yyrc;
13797}
13798
13799#undef VioScrUnLock
13800#define VioScrUnLock _VioScrUnLock
13801
13802inline USHORT _VioSetAnsi(USHORT a, HVIO b)
13803{
13804 USHORT yyrc;
13805 USHORT sel = RestoreOS2FS();
13806
13807 yyrc = VIO16SETANSI(a, b);
13808 SetFS(sel);
13809
13810 return yyrc;
13811}
13812
13813#undef VioSetAnsi
13814#define VioSetAnsi _VioSetAnsi
13815
13816inline USHORT _VioSetCp(USHORT a, USHORT b, HVIO c)
13817{
13818 USHORT yyrc;
13819 USHORT sel = RestoreOS2FS();
13820
13821 yyrc = VIO16SETCP(a, b, c);
13822 SetFS(sel);
13823
13824 return yyrc;
13825}
13826
13827#undef VioSetCp
13828#define VioSetCp _VioSetCp
13829
13830inline USHORT _VioSetCurPos(USHORT a, USHORT b, HVIO c)
13831{
13832 USHORT yyrc;
13833 USHORT sel = RestoreOS2FS();
13834
13835 yyrc = VIO16SETCURPOS(a, b, c);
13836 SetFS(sel);
13837
13838 return yyrc;
13839}
13840
13841#undef VioSetCurPos
13842#define VioSetCurPos _VioSetCurPos
13843
13844inline USHORT _VioSetCurType(PVIOCURSORINFO a, HVIO b)
13845{
13846 USHORT yyrc;
13847 USHORT sel = RestoreOS2FS();
13848
13849 yyrc = VIO16SETCURTYPE(a, b);
13850 SetFS(sel);
13851
13852 return yyrc;
13853}
13854
13855#undef VioSetCurType
13856#define VioSetCurType _VioSetCurType
13857
13858inline USHORT _VioSetFont(PVIOFONTINFO a, HVIO b)
13859{
13860 USHORT yyrc;
13861 USHORT sel = RestoreOS2FS();
13862
13863 yyrc = VIO16SETFONT(a, b);
13864 SetFS(sel);
13865
13866 return yyrc;
13867}
13868
13869#undef VioSetFont
13870#define VioSetFont _VioSetFont
13871
13872inline USHORT _VioSetMode(PVIOMODEINFO a, HVIO b)
13873{
13874 USHORT yyrc;
13875 USHORT sel = RestoreOS2FS();
13876
13877 yyrc = VIO16SETMODE(a, b);
13878 SetFS(sel);
13879
13880 return yyrc;
13881}
13882
13883#undef VioSetMode
13884#define VioSetMode _VioSetMode
13885
13886inline USHORT _VioSetState(PVOID a, HVIO b)
13887{
13888 USHORT yyrc;
13889 USHORT sel = RestoreOS2FS();
13890
13891 yyrc = VIO16SETSTATE(a, b);
13892 SetFS(sel);
13893
13894 return yyrc;
13895}
13896
13897#undef VioSetState
13898#define VioSetState _VioSetState
13899
13900inline USHORT _VioShowBuf(USHORT a, USHORT b, HVIO c)
13901{
13902 USHORT yyrc;
13903 USHORT sel = RestoreOS2FS();
13904
13905 yyrc = VIO16SHOWBUF(a, b, c);
13906 SetFS(sel);
13907
13908 return yyrc;
13909}
13910
13911#undef VioShowBuf
13912#define VioShowBuf _VioShowBuf
13913
13914inline USHORT _VioWrtCellStr(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
13915{
13916 USHORT yyrc;
13917 USHORT sel = RestoreOS2FS();
13918
13919 yyrc = VIO16WRTCELLSTR(a, b, c, d, e);
13920 SetFS(sel);
13921
13922 return yyrc;
13923}
13924
13925#undef VioWrtCellStr
13926#define VioWrtCellStr _VioWrtCellStr
13927
13928inline USHORT _VioWrtCharStr(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
13929{
13930 USHORT yyrc;
13931 USHORT sel = RestoreOS2FS();
13932
13933 yyrc = VIO16WRTCHARSTR(a, b, c, d, e);
13934 SetFS(sel);
13935
13936 return yyrc;
13937}
13938
13939#undef VioWrtCharStr
13940#define VioWrtCharStr _VioWrtCharStr
13941
13942inline USHORT _VioWrtCharStrAtt(PCH a, USHORT b, USHORT c, USHORT d, PBYTE e, HVIO f)
13943{
13944 USHORT yyrc;
13945 USHORT sel = RestoreOS2FS();
13946
13947 yyrc = VIO16WRTCHARSTRATT(a, b, c, d, e, f);
13948 SetFS(sel);
13949
13950 return yyrc;
13951}
13952
13953#undef VioWrtCharStrAtt
13954#define VioWrtCharStrAtt _VioWrtCharStrAtt
13955
13956inline USHORT _VioWrtNAttr(PBYTE a, USHORT b, USHORT c, USHORT d, HVIO e)
13957{
13958 USHORT yyrc;
13959 USHORT sel = RestoreOS2FS();
13960
13961 yyrc = VIO16WRTNATTR(a, b, c, d, e);
13962 SetFS(sel);
13963
13964 return yyrc;
13965}
13966
13967#undef VioWrtNAttr
13968#define VioWrtNAttr _VioWrtNAttr
13969
13970inline USHORT _VioWrtNCell(PBYTE a, USHORT b, USHORT c, USHORT d, HVIO e)
13971{
13972 USHORT yyrc;
13973 USHORT sel = RestoreOS2FS();
13974
13975 yyrc = VIO16WRTNCELL(a, b, c, d, e);
13976 SetFS(sel);
13977
13978 return yyrc;
13979}
13980
13981#undef VioWrtNCell
13982#define VioWrtNCell _VioWrtNCell
13983
13984inline USHORT _VioWrtNChar(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
13985{
13986 USHORT yyrc;
13987 USHORT sel = RestoreOS2FS();
13988
13989 yyrc = VIO16WRTNCHAR(a, b, c, d, e);
13990 SetFS(sel);
13991
13992 return yyrc;
13993}
13994
13995#undef VioWrtNChar
13996#define VioWrtNChar _VioWrtNChar
13997
13998inline USHORT _VioWrtTTY(PCH a, USHORT b, HVIO c)
13999{
14000 USHORT yyrc;
14001 USHORT sel = RestoreOS2FS();
14002
14003 yyrc = VIO16WRTTTY(a, b, c);
14004 SetFS(sel);
14005
14006 return yyrc;
14007}
14008
14009#undef VioWrtTTY
14010#define VioWrtTTY _VioWrtTTY
14011
14012#endif
14013#ifdef INCL_MOU
14014inline USHORT _MouClose(HMOU a)
14015{
14016 USHORT yyrc;
14017 USHORT sel = RestoreOS2FS();
14018
14019 yyrc = MOU16CLOSE(a);
14020 SetFS(sel);
14021
14022 return yyrc;
14023}
14024
14025#undef MouClose
14026#define MouClose _MouClose
14027
14028inline USHORT _MouDeRegister()
14029{
14030 USHORT yyrc;
14031 USHORT sel = RestoreOS2FS();
14032
14033 yyrc = MOU16DEREGISTER();
14034 SetFS(sel);
14035
14036 return yyrc;
14037}
14038
14039#undef MouDeRegister
14040#define MouDeRegister _MouDeRegister
14041
14042inline USHORT _MouDrawPtr(HMOU a)
14043{
14044 USHORT yyrc;
14045 USHORT sel = RestoreOS2FS();
14046
14047 yyrc = MOU16DRAWPTR(a);
14048 SetFS(sel);
14049
14050 return yyrc;
14051}
14052
14053#undef MouDrawPtr
14054#define MouDrawPtr _MouDrawPtr
14055
14056inline USHORT _MouFlushQue(HMOU a)
14057{
14058 USHORT yyrc;
14059 USHORT sel = RestoreOS2FS();
14060
14061 yyrc = MOU16FLUSHQUE(a);
14062 SetFS(sel);
14063
14064 return yyrc;
14065}
14066
14067#undef MouFlushQue
14068#define MouFlushQue _MouFlushQue
14069
14070inline USHORT _MouGetDevStatus(PUSHORT a, HMOU b)
14071{
14072 USHORT yyrc;
14073 USHORT sel = RestoreOS2FS();
14074
14075 yyrc = MOU16GETDEVSTATUS(a, b);
14076 SetFS(sel);
14077
14078 return yyrc;
14079}
14080
14081#undef MouGetDevStatus
14082#define MouGetDevStatus _MouGetDevStatus
14083
14084inline USHORT _MouGetEventMask(PUSHORT a, HMOU b)
14085{
14086 USHORT yyrc;
14087 USHORT sel = RestoreOS2FS();
14088
14089 yyrc = MOU16GETEVENTMASK(a, b);
14090 SetFS(sel);
14091
14092 return yyrc;
14093}
14094
14095#undef MouGetEventMask
14096#define MouGetEventMask _MouGetEventMask
14097
14098inline USHORT _MouGetNumButtons(PUSHORT a, HMOU b)
14099{
14100 USHORT yyrc;
14101 USHORT sel = RestoreOS2FS();
14102
14103 yyrc = MOU16GETNUMBUTTONS(a, b);
14104 SetFS(sel);
14105
14106 return yyrc;
14107}
14108
14109#undef MouGetNumButtons
14110#define MouGetNumButtons _MouGetNumButtons
14111
14112inline USHORT _MouGetNumMickeys(PUSHORT a, HMOU b)
14113{
14114 USHORT yyrc;
14115 USHORT sel = RestoreOS2FS();
14116
14117 yyrc = MOU16GETNUMMICKEYS(a, b);
14118 SetFS(sel);
14119
14120 return yyrc;
14121}
14122
14123#undef MouGetNumMickeys
14124#define MouGetNumMickeys _MouGetNumMickeys
14125
14126inline USHORT _MouGetNumQueEl(PMOUQUEINFO a, HMOU b)
14127{
14128 USHORT yyrc;
14129 USHORT sel = RestoreOS2FS();
14130
14131 yyrc = MOU16GETNUMQUEEL(a, b);
14132 SetFS(sel);
14133
14134 return yyrc;
14135}
14136
14137#undef MouGetNumQueEl
14138#define MouGetNumQueEl _MouGetNumQueEl
14139
14140inline USHORT _MouGetPtrPos(PPTRLOC a, HMOU b)
14141{
14142 USHORT yyrc;
14143 USHORT sel = RestoreOS2FS();
14144
14145 yyrc = MOU16GETPTRPOS(a, b);
14146 SetFS(sel);
14147
14148 return yyrc;
14149}
14150
14151#undef MouGetPtrPos
14152#define MouGetPtrPos _MouGetPtrPos
14153
14154inline USHORT _MouGetPtrShape(PBYTE a, PPTRSHAPE b, HMOU c)
14155{
14156 USHORT yyrc;
14157 USHORT sel = RestoreOS2FS();
14158
14159 yyrc = MOU16GETPTRSHAPE(a, b, c);
14160 SetFS(sel);
14161
14162 return yyrc;
14163}
14164
14165#undef MouGetPtrShape
14166#define MouGetPtrShape _MouGetPtrShape
14167
14168inline USHORT _MouGetScaleFact(PSCALEFACT a, HMOU b)
14169{
14170 USHORT yyrc;
14171 USHORT sel = RestoreOS2FS();
14172
14173 yyrc = MOU16GETSCALEFACT(a, b);
14174 SetFS(sel);
14175
14176 return yyrc;
14177}
14178
14179#undef MouGetScaleFact
14180#define MouGetScaleFact _MouGetScaleFact
14181
14182inline USHORT _MouGetThreshold(PTHRESHOLD a, HMOU b)
14183{
14184 USHORT yyrc;
14185 USHORT sel = RestoreOS2FS();
14186
14187 yyrc = MOU16GETTHRESHOLD(a, b);
14188 SetFS(sel);
14189
14190 return yyrc;
14191}
14192
14193#undef MouGetThreshold
14194#define MouGetThreshold _MouGetThreshold
14195
14196inline USHORT _MouInitReal(PSZ a)
14197{
14198 USHORT yyrc;
14199 USHORT sel = RestoreOS2FS();
14200
14201 yyrc = MOU16INITREAL(a);
14202 SetFS(sel);
14203
14204 return yyrc;
14205}
14206
14207#undef MouInitReal
14208#define MouInitReal _MouInitReal
14209
14210inline USHORT _MouOpen(PSZ a, PHMOU b)
14211{
14212 USHORT yyrc;
14213 USHORT sel = RestoreOS2FS();
14214
14215 yyrc = MOU16OPEN(a, b);
14216 SetFS(sel);
14217
14218 return yyrc;
14219}
14220
14221#undef MouOpen
14222#define MouOpen _MouOpen
14223
14224inline USHORT _MouReadEventQue(PMOUEVENTINFO a, PUSHORT b, HMOU c)
14225{
14226 USHORT yyrc;
14227 USHORT sel = RestoreOS2FS();
14228
14229 yyrc = MOU16READEVENTQUE(a, b, c);
14230 SetFS(sel);
14231
14232 return yyrc;
14233}
14234
14235#undef MouReadEventQue
14236#define MouReadEventQue _MouReadEventQue
14237
14238inline USHORT _MouRegister(PSZ a, PSZ b, ULONG c)
14239{
14240 USHORT yyrc;
14241 USHORT sel = RestoreOS2FS();
14242
14243 yyrc = MOU16REGISTER(a, b, c);
14244 SetFS(sel);
14245
14246 return yyrc;
14247}
14248
14249#undef MouRegister
14250#define MouRegister _MouRegister
14251
14252inline USHORT _MouRemovePtr(PNOPTRRECT a, HMOU b)
14253{
14254 USHORT yyrc;
14255 USHORT sel = RestoreOS2FS();
14256
14257 yyrc = MOU16REMOVEPTR(a, b);
14258 SetFS(sel);
14259
14260 return yyrc;
14261}
14262
14263#undef MouRemovePtr
14264#define MouRemovePtr _MouRemovePtr
14265
14266inline USHORT _MouSetDevStatus(PUSHORT a, HMOU b)
14267{
14268 USHORT yyrc;
14269 USHORT sel = RestoreOS2FS();
14270
14271 yyrc = MOU16SETDEVSTATUS(a, b);
14272 SetFS(sel);
14273
14274 return yyrc;
14275}
14276
14277#undef MouSetDevStatus
14278#define MouSetDevStatus _MouSetDevStatus
14279
14280inline USHORT _MouSetEventMask(PUSHORT a, HMOU b)
14281{
14282 USHORT yyrc;
14283 USHORT sel = RestoreOS2FS();
14284
14285 yyrc = MOU16SETEVENTMASK(a, b);
14286 SetFS(sel);
14287
14288 return yyrc;
14289}
14290
14291#undef MouSetEventMask
14292#define MouSetEventMask _MouSetEventMask
14293
14294inline USHORT _MouSetPtrPos(PPTRLOC a, HMOU b)
14295{
14296 USHORT yyrc;
14297 USHORT sel = RestoreOS2FS();
14298
14299 yyrc = MOU16SETPTRPOS(a, b);
14300 SetFS(sel);
14301
14302 return yyrc;
14303}
14304
14305#undef MouSetPtrPos
14306#define MouSetPtrPos _MouSetPtrPos
14307
14308inline USHORT _MouSetPtrShape(PBYTE a, PPTRSHAPE b, HMOU c)
14309{
14310 USHORT yyrc;
14311 USHORT sel = RestoreOS2FS();
14312
14313 yyrc = MOU16SETPTRSHAPE(a, b, c);
14314 SetFS(sel);
14315
14316 return yyrc;
14317}
14318
14319#undef MouSetPtrShape
14320#define MouSetPtrShape _MouSetPtrShape
14321
14322inline USHORT _MouSetScaleFact(PSCALEFACT a, HMOU b)
14323{
14324 USHORT yyrc;
14325 USHORT sel = RestoreOS2FS();
14326
14327 yyrc = MOU16SETSCALEFACT(a, b);
14328 SetFS(sel);
14329
14330 return yyrc;
14331}
14332
14333#undef MouSetScaleFact
14334#define MouSetScaleFact _MouSetScaleFact
14335
14336inline USHORT _MouSetThreshold(PTHRESHOLD a, HMOU b)
14337{
14338 USHORT yyrc;
14339 USHORT sel = RestoreOS2FS();
14340
14341 yyrc = MOU16SETTHRESHOLD(a, b);
14342 SetFS(sel);
14343
14344 return yyrc;
14345}
14346
14347#undef MouSetThreshold
14348#define MouSetThreshold _MouSetThreshold
14349
14350inline USHORT _MouSynch(USHORT a)
14351{
14352 USHORT yyrc;
14353 USHORT sel = RestoreOS2FS();
14354
14355 yyrc = MOU16SYNCH(a);
14356 SetFS(sel);
14357
14358 return yyrc;
14359}
14360
14361#undef MouSynch
14362#define MouSynch _MouSynch
14363
14364#endif
14365
14366#endif
Note: See TracBrowser for help on using the repository browser.