source: trunk/include/os2wrap.h@ 889

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

* empty log message *

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