source: trunk/include/os2wrap.h@ 9962

Last change on this file since 9962 was 3728, checked in by sandervl, 25 years ago

added missging gpi region apis

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