source: trunk/include/os2wrap.h@ 1885

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

MS Word fixes + changes

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