source: trunk/include/os2wrap.h@ 2079

Last change on this file since 2079 was 2065, checked in by achimha, 26 years ago

outcommented DosRawReadNPipe which has a conflicting definition in different toolkit revisions

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