| 1 | /* $Id: os2wrap.h,v 1.15 2000-06-17 12:31:55 sandervl Exp $ */ | 
|---|
| 2 | #ifndef __OS2WRAP_H__ | 
|---|
| 3 | #define __OS2WRAP_H__ | 
|---|
| 4 |  | 
|---|
| 5 | #include <os2.h> | 
|---|
| 6 | #include <os2sel.h> | 
|---|
| 7 | #include <os2newapi.h> | 
|---|
| 8 |  | 
|---|
| 9 | #if (__IBMC__ > 300) | 
|---|
| 10 | // VA3.6: inline is a C++ keyword, must be translated to _inline or _Inline or __inline in C code | 
|---|
| 11 | #define inline _inline | 
|---|
| 12 | #endif | 
|---|
| 13 |  | 
|---|
| 14 | #ifdef INCL_DOSMEMMGR | 
|---|
| 15 |  | 
|---|
| 16 | APIRET APIENTRY DosAliasMem(PVOID pb, ULONG cb, PPVOID ppbAlias, ULONG fl); | 
|---|
| 17 |  | 
|---|
| 18 | inline APIRET _DosAliasMem(PVOID pb, ULONG cb, PPVOID ppbAlias, ULONG fl) | 
|---|
| 19 | { | 
|---|
| 20 | APIRET yyrc; | 
|---|
| 21 | USHORT sel = RestoreOS2FS(); | 
|---|
| 22 |  | 
|---|
| 23 | yyrc = DosAliasMem(pb, cb, ppbAlias, fl); | 
|---|
| 24 | SetFS(sel); | 
|---|
| 25 |  | 
|---|
| 26 | return yyrc; | 
|---|
| 27 | } | 
|---|
| 28 |  | 
|---|
| 29 | #undef  DosAliasMem | 
|---|
| 30 | #define DosAliasMem _DosAliasMem | 
|---|
| 31 |  | 
|---|
| 32 | inline ULONG _DosAllocMem(PPVOID a, ULONG b, ULONG c) | 
|---|
| 33 | { | 
|---|
| 34 | ULONG yyrc; | 
|---|
| 35 | USHORT sel = RestoreOS2FS(); | 
|---|
| 36 |  | 
|---|
| 37 | yyrc = DosAllocMem(a, b, c); | 
|---|
| 38 | SetFS(sel); | 
|---|
| 39 |  | 
|---|
| 40 | return yyrc; | 
|---|
| 41 | } | 
|---|
| 42 |  | 
|---|
| 43 | #undef  DosAllocMem | 
|---|
| 44 | #define DosAllocMem _DosAllocMem | 
|---|
| 45 |  | 
|---|
| 46 | inline ULONG _DosAllocSharedMem(PPVOID a, PCSZ b, ULONG c, ULONG d) | 
|---|
| 47 | { | 
|---|
| 48 | ULONG yyrc; | 
|---|
| 49 | USHORT sel = RestoreOS2FS(); | 
|---|
| 50 |  | 
|---|
| 51 | yyrc = DosAllocSharedMem(a, b, c, d); | 
|---|
| 52 | SetFS(sel); | 
|---|
| 53 |  | 
|---|
| 54 | return yyrc; | 
|---|
| 55 | } | 
|---|
| 56 |  | 
|---|
| 57 | #undef  DosAllocSharedMem | 
|---|
| 58 | #define DosAllocSharedMem _DosAllocSharedMem | 
|---|
| 59 |  | 
|---|
| 60 | inline ULONG _DosFreeMem(PVOID a) | 
|---|
| 61 | { | 
|---|
| 62 | ULONG yyrc; | 
|---|
| 63 | USHORT sel = RestoreOS2FS(); | 
|---|
| 64 |  | 
|---|
| 65 | yyrc = DosFreeMem(a); | 
|---|
| 66 | SetFS(sel); | 
|---|
| 67 |  | 
|---|
| 68 | return yyrc; | 
|---|
| 69 | } | 
|---|
| 70 |  | 
|---|
| 71 | #undef  DosFreeMem | 
|---|
| 72 | #define DosFreeMem _DosFreeMem | 
|---|
| 73 |  | 
|---|
| 74 | inline ULONG _DosGetNamedSharedMem(PPVOID a, PCSZ b, ULONG c) | 
|---|
| 75 | { | 
|---|
| 76 | ULONG yyrc; | 
|---|
| 77 | USHORT sel = RestoreOS2FS(); | 
|---|
| 78 |  | 
|---|
| 79 | yyrc = DosGetNamedSharedMem(a, b, c); | 
|---|
| 80 | SetFS(sel); | 
|---|
| 81 |  | 
|---|
| 82 | return yyrc; | 
|---|
| 83 | } | 
|---|
| 84 |  | 
|---|
| 85 | #undef  DosGetNamedSharedMem | 
|---|
| 86 | #define DosGetNamedSharedMem _DosGetNamedSharedMem | 
|---|
| 87 |  | 
|---|
| 88 | inline ULONG _DosGetSharedMem(PVOID a, ULONG b) | 
|---|
| 89 | { | 
|---|
| 90 | ULONG yyrc; | 
|---|
| 91 | USHORT sel = RestoreOS2FS(); | 
|---|
| 92 |  | 
|---|
| 93 | yyrc = DosGetSharedMem(a, b); | 
|---|
| 94 | SetFS(sel); | 
|---|
| 95 |  | 
|---|
| 96 | return yyrc; | 
|---|
| 97 | } | 
|---|
| 98 |  | 
|---|
| 99 | #undef  DosGetSharedMem | 
|---|
| 100 | #define DosGetSharedMem _DosGetSharedMem | 
|---|
| 101 |  | 
|---|
| 102 | inline ULONG _DosGiveSharedMem(PVOID a, PID b, ULONG c) | 
|---|
| 103 | { | 
|---|
| 104 | ULONG yyrc; | 
|---|
| 105 | USHORT sel = RestoreOS2FS(); | 
|---|
| 106 |  | 
|---|
| 107 | yyrc = DosGiveSharedMem(a, b, c); | 
|---|
| 108 | SetFS(sel); | 
|---|
| 109 |  | 
|---|
| 110 | return yyrc; | 
|---|
| 111 | } | 
|---|
| 112 |  | 
|---|
| 113 | #undef  DosGiveSharedMem | 
|---|
| 114 | #define DosGiveSharedMem _DosGiveSharedMem | 
|---|
| 115 |  | 
|---|
| 116 | inline ULONG _DosQueryMem(PVOID a, PULONG b, PULONG c) | 
|---|
| 117 | { | 
|---|
| 118 | ULONG yyrc; | 
|---|
| 119 | USHORT sel = RestoreOS2FS(); | 
|---|
| 120 |  | 
|---|
| 121 | yyrc = DosQueryMem(a, b, c); | 
|---|
| 122 | SetFS(sel); | 
|---|
| 123 |  | 
|---|
| 124 | return yyrc; | 
|---|
| 125 | } | 
|---|
| 126 |  | 
|---|
| 127 | #undef  DosQueryMem | 
|---|
| 128 | #define DosQueryMem _DosQueryMem | 
|---|
| 129 |  | 
|---|
| 130 | inline ULONG _DosSetMem(PVOID a, ULONG b, ULONG c) | 
|---|
| 131 | { | 
|---|
| 132 | ULONG yyrc; | 
|---|
| 133 | USHORT sel = RestoreOS2FS(); | 
|---|
| 134 |  | 
|---|
| 135 | yyrc = DosSetMem(a, b, c); | 
|---|
| 136 | SetFS(sel); | 
|---|
| 137 |  | 
|---|
| 138 | return yyrc; | 
|---|
| 139 | } | 
|---|
| 140 |  | 
|---|
| 141 | #undef  DosSetMem | 
|---|
| 142 | #define DosSetMem _DosSetMem | 
|---|
| 143 |  | 
|---|
| 144 | inline ULONG _DosSubAllocMem(PVOID a, PPVOID b, ULONG c) | 
|---|
| 145 | { | 
|---|
| 146 | ULONG yyrc; | 
|---|
| 147 | USHORT sel = RestoreOS2FS(); | 
|---|
| 148 |  | 
|---|
| 149 | yyrc = DosSubAllocMem(a, b, c); | 
|---|
| 150 | SetFS(sel); | 
|---|
| 151 |  | 
|---|
| 152 | return yyrc; | 
|---|
| 153 | } | 
|---|
| 154 |  | 
|---|
| 155 | #undef  DosSubAllocMem | 
|---|
| 156 | #define DosSubAllocMem _DosSubAllocMem | 
|---|
| 157 |  | 
|---|
| 158 | inline ULONG _DosSubFreeMem(PVOID a, PVOID b, ULONG c) | 
|---|
| 159 | { | 
|---|
| 160 | ULONG yyrc; | 
|---|
| 161 | USHORT sel = RestoreOS2FS(); | 
|---|
| 162 |  | 
|---|
| 163 | yyrc = DosSubFreeMem(a, b, c); | 
|---|
| 164 | SetFS(sel); | 
|---|
| 165 |  | 
|---|
| 166 | return yyrc; | 
|---|
| 167 | } | 
|---|
| 168 |  | 
|---|
| 169 | #undef  DosSubFreeMem | 
|---|
| 170 | #define DosSubFreeMem _DosSubFreeMem | 
|---|
| 171 |  | 
|---|
| 172 | inline ULONG _DosSubSetMem(PVOID a, ULONG b, ULONG c) | 
|---|
| 173 | { | 
|---|
| 174 | ULONG yyrc; | 
|---|
| 175 | USHORT sel = RestoreOS2FS(); | 
|---|
| 176 |  | 
|---|
| 177 | yyrc = DosSubSetMem(a, b, c); | 
|---|
| 178 | SetFS(sel); | 
|---|
| 179 |  | 
|---|
| 180 | return yyrc; | 
|---|
| 181 | } | 
|---|
| 182 |  | 
|---|
| 183 | #undef  DosSubSetMem | 
|---|
| 184 | #define DosSubSetMem _DosSubSetMem | 
|---|
| 185 |  | 
|---|
| 186 | inline ULONG _DosSubUnsetMem(PVOID a) | 
|---|
| 187 | { | 
|---|
| 188 | ULONG yyrc; | 
|---|
| 189 | USHORT sel = RestoreOS2FS(); | 
|---|
| 190 |  | 
|---|
| 191 | yyrc = DosSubUnsetMem(a); | 
|---|
| 192 | SetFS(sel); | 
|---|
| 193 |  | 
|---|
| 194 | return yyrc; | 
|---|
| 195 | } | 
|---|
| 196 |  | 
|---|
| 197 | #undef  DosSubUnsetMem | 
|---|
| 198 | #define DosSubUnsetMem _DosSubUnsetMem | 
|---|
| 199 |  | 
|---|
| 200 | #endif | 
|---|
| 201 | #ifdef INCL_DOSFILEMGR | 
|---|
| 202 | inline ULONG _DosCancelLockRequest(HFILE a, PFILELOCK b) | 
|---|
| 203 | { | 
|---|
| 204 | ULONG yyrc; | 
|---|
| 205 | USHORT sel = RestoreOS2FS(); | 
|---|
| 206 |  | 
|---|
| 207 | yyrc = DosCancelLockRequest(a, b); | 
|---|
| 208 | SetFS(sel); | 
|---|
| 209 |  | 
|---|
| 210 | return yyrc; | 
|---|
| 211 | } | 
|---|
| 212 |  | 
|---|
| 213 | #undef  DosCancelLockRequest | 
|---|
| 214 | #define DosCancelLockRequest _DosCancelLockRequest | 
|---|
| 215 |  | 
|---|
| 216 | inline ULONG _DosClose(HFILE a) | 
|---|
| 217 | { | 
|---|
| 218 | ULONG yyrc; | 
|---|
| 219 | USHORT sel = RestoreOS2FS(); | 
|---|
| 220 |  | 
|---|
| 221 | yyrc = DosClose(a); | 
|---|
| 222 | SetFS(sel); | 
|---|
| 223 |  | 
|---|
| 224 | return yyrc; | 
|---|
| 225 | } | 
|---|
| 226 |  | 
|---|
| 227 | #undef  DosClose | 
|---|
| 228 | #define DosClose _DosClose | 
|---|
| 229 |  | 
|---|
| 230 | inline ULONG _DosCopy(PCSZ a, PCSZ b, ULONG c) | 
|---|
| 231 | { | 
|---|
| 232 | ULONG yyrc; | 
|---|
| 233 | USHORT sel = RestoreOS2FS(); | 
|---|
| 234 |  | 
|---|
| 235 | yyrc = DosCopy(a, b, c); | 
|---|
| 236 | SetFS(sel); | 
|---|
| 237 |  | 
|---|
| 238 | return yyrc; | 
|---|
| 239 | } | 
|---|
| 240 |  | 
|---|
| 241 | #undef  DosCopy | 
|---|
| 242 | #define DosCopy _DosCopy | 
|---|
| 243 |  | 
|---|
| 244 | inline ULONG _DosCreateDir(PCSZ a, PEAOP2 b) | 
|---|
| 245 | { | 
|---|
| 246 | ULONG yyrc; | 
|---|
| 247 | USHORT sel = RestoreOS2FS(); | 
|---|
| 248 |  | 
|---|
| 249 | yyrc = DosCreateDir(a, b); | 
|---|
| 250 | SetFS(sel); | 
|---|
| 251 |  | 
|---|
| 252 | return yyrc; | 
|---|
| 253 | } | 
|---|
| 254 |  | 
|---|
| 255 | #undef  DosCreateDir | 
|---|
| 256 | #define DosCreateDir _DosCreateDir | 
|---|
| 257 |  | 
|---|
| 258 | inline ULONG _DosDelete(PCSZ a) | 
|---|
| 259 | { | 
|---|
| 260 | ULONG yyrc; | 
|---|
| 261 | USHORT sel = RestoreOS2FS(); | 
|---|
| 262 |  | 
|---|
| 263 | yyrc = DosDelete(a); | 
|---|
| 264 | SetFS(sel); | 
|---|
| 265 |  | 
|---|
| 266 | return yyrc; | 
|---|
| 267 | } | 
|---|
| 268 |  | 
|---|
| 269 | #undef  DosDelete | 
|---|
| 270 | #define DosDelete _DosDelete | 
|---|
| 271 |  | 
|---|
| 272 | inline ULONG _DosDeleteDir(PCSZ a) | 
|---|
| 273 | { | 
|---|
| 274 | ULONG yyrc; | 
|---|
| 275 | USHORT sel = RestoreOS2FS(); | 
|---|
| 276 |  | 
|---|
| 277 | yyrc = DosDeleteDir(a); | 
|---|
| 278 | SetFS(sel); | 
|---|
| 279 |  | 
|---|
| 280 | return yyrc; | 
|---|
| 281 | } | 
|---|
| 282 |  | 
|---|
| 283 | #undef  DosDeleteDir | 
|---|
| 284 | #define DosDeleteDir _DosDeleteDir | 
|---|
| 285 |  | 
|---|
| 286 | inline ULONG _DosDupHandle(HFILE a, PHFILE b) | 
|---|
| 287 | { | 
|---|
| 288 | ULONG yyrc; | 
|---|
| 289 | USHORT sel = RestoreOS2FS(); | 
|---|
| 290 |  | 
|---|
| 291 | yyrc = DosDupHandle(a, b); | 
|---|
| 292 | SetFS(sel); | 
|---|
| 293 |  | 
|---|
| 294 | return yyrc; | 
|---|
| 295 | } | 
|---|
| 296 |  | 
|---|
| 297 | #undef  DosDupHandle | 
|---|
| 298 | #define DosDupHandle _DosDupHandle | 
|---|
| 299 |  | 
|---|
| 300 | inline ULONG _DosEditName(ULONG a, PCSZ b, PCSZ c, PBYTE d, ULONG e) | 
|---|
| 301 | { | 
|---|
| 302 | ULONG yyrc; | 
|---|
| 303 | USHORT sel = RestoreOS2FS(); | 
|---|
| 304 |  | 
|---|
| 305 | yyrc = DosEditName(a, b, c, d, e); | 
|---|
| 306 | SetFS(sel); | 
|---|
| 307 |  | 
|---|
| 308 | return yyrc; | 
|---|
| 309 | } | 
|---|
| 310 |  | 
|---|
| 311 | #undef  DosEditName | 
|---|
| 312 | #define DosEditName _DosEditName | 
|---|
| 313 |  | 
|---|
| 314 | inline ULONG _DosEnumAttribute(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g) | 
|---|
| 315 | { | 
|---|
| 316 | ULONG yyrc; | 
|---|
| 317 | USHORT sel = RestoreOS2FS(); | 
|---|
| 318 |  | 
|---|
| 319 | yyrc = DosEnumAttribute(a, b, c, d, e, f, g); | 
|---|
| 320 | SetFS(sel); | 
|---|
| 321 |  | 
|---|
| 322 | return yyrc; | 
|---|
| 323 | } | 
|---|
| 324 |  | 
|---|
| 325 | #undef  DosEnumAttribute | 
|---|
| 326 | #define DosEnumAttribute _DosEnumAttribute | 
|---|
| 327 |  | 
|---|
| 328 | inline ULONG _DosFindClose(HDIR a) | 
|---|
| 329 | { | 
|---|
| 330 | ULONG yyrc; | 
|---|
| 331 | USHORT sel = RestoreOS2FS(); | 
|---|
| 332 |  | 
|---|
| 333 | yyrc = DosFindClose(a); | 
|---|
| 334 | SetFS(sel); | 
|---|
| 335 |  | 
|---|
| 336 | return yyrc; | 
|---|
| 337 | } | 
|---|
| 338 |  | 
|---|
| 339 | #undef  DosFindClose | 
|---|
| 340 | #define DosFindClose _DosFindClose | 
|---|
| 341 |  | 
|---|
| 342 | inline ULONG _DosFindFirst(PCSZ a, PHDIR b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g) | 
|---|
| 343 | { | 
|---|
| 344 | ULONG yyrc; | 
|---|
| 345 | USHORT sel = RestoreOS2FS(); | 
|---|
| 346 |  | 
|---|
| 347 | yyrc = DosFindFirst(a, b, c, d, e, f, g); | 
|---|
| 348 | SetFS(sel); | 
|---|
| 349 |  | 
|---|
| 350 | return yyrc; | 
|---|
| 351 | } | 
|---|
| 352 |  | 
|---|
| 353 | #undef  DosFindFirst | 
|---|
| 354 | #define DosFindFirst _DosFindFirst | 
|---|
| 355 |  | 
|---|
| 356 | inline ULONG _DosFindNext(HDIR a, PVOID b, ULONG c, PULONG d) | 
|---|
| 357 | { | 
|---|
| 358 | ULONG yyrc; | 
|---|
| 359 | USHORT sel = RestoreOS2FS(); | 
|---|
| 360 |  | 
|---|
| 361 | yyrc = DosFindNext(a, b, c, d); | 
|---|
| 362 | SetFS(sel); | 
|---|
| 363 |  | 
|---|
| 364 | return yyrc; | 
|---|
| 365 | } | 
|---|
| 366 |  | 
|---|
| 367 | #undef  DosFindNext | 
|---|
| 368 | #define DosFindNext _DosFindNext | 
|---|
| 369 |  | 
|---|
| 370 | inline ULONG _DosForceDelete(PCSZ a) | 
|---|
| 371 | { | 
|---|
| 372 | ULONG yyrc; | 
|---|
| 373 | USHORT sel = RestoreOS2FS(); | 
|---|
| 374 |  | 
|---|
| 375 | yyrc = DosForceDelete(a); | 
|---|
| 376 | SetFS(sel); | 
|---|
| 377 |  | 
|---|
| 378 | return yyrc; | 
|---|
| 379 | } | 
|---|
| 380 |  | 
|---|
| 381 | #undef  DosForceDelete | 
|---|
| 382 | #define DosForceDelete _DosForceDelete | 
|---|
| 383 |  | 
|---|
| 384 | inline ULONG _DosFSAttach(PCSZ a, PCSZ b, PVOID c, ULONG d, ULONG e) | 
|---|
| 385 | { | 
|---|
| 386 | ULONG yyrc; | 
|---|
| 387 | USHORT sel = RestoreOS2FS(); | 
|---|
| 388 |  | 
|---|
| 389 | yyrc = DosFSAttach(a, b, c, d, e); | 
|---|
| 390 | SetFS(sel); | 
|---|
| 391 |  | 
|---|
| 392 | return yyrc; | 
|---|
| 393 | } | 
|---|
| 394 |  | 
|---|
| 395 | #undef  DosFSAttach | 
|---|
| 396 | #define DosFSAttach _DosFSAttach | 
|---|
| 397 |  | 
|---|
| 398 | inline ULONG _DosFSCtl(PVOID a, ULONG b, PULONG c, PVOID d, ULONG e, PULONG f, ULONG g, PCSZ h, HFILE i, ULONG j) | 
|---|
| 399 | { | 
|---|
| 400 | ULONG yyrc; | 
|---|
| 401 | USHORT sel = RestoreOS2FS(); | 
|---|
| 402 |  | 
|---|
| 403 | yyrc = DosFSCtl(a, b, c, d, e, f, g, h, i, j); | 
|---|
| 404 | SetFS(sel); | 
|---|
| 405 |  | 
|---|
| 406 | return yyrc; | 
|---|
| 407 | } | 
|---|
| 408 |  | 
|---|
| 409 | #undef  DosFSCtl | 
|---|
| 410 | #define DosFSCtl _DosFSCtl | 
|---|
| 411 |  | 
|---|
| 412 | inline ULONG _DosMove(PCSZ a, PCSZ b) | 
|---|
| 413 | { | 
|---|
| 414 | ULONG yyrc; | 
|---|
| 415 | USHORT sel = RestoreOS2FS(); | 
|---|
| 416 |  | 
|---|
| 417 | yyrc = DosMove(a, b); | 
|---|
| 418 | SetFS(sel); | 
|---|
| 419 |  | 
|---|
| 420 | return yyrc; | 
|---|
| 421 | } | 
|---|
| 422 |  | 
|---|
| 423 | #undef  DosMove | 
|---|
| 424 | #define DosMove _DosMove | 
|---|
| 425 |  | 
|---|
| 426 | inline ULONG _DosOpen(PCSZ a, PHFILE b, PULONG c, ULONG d, ULONG e, ULONG f, ULONG g, PEAOP2 h) | 
|---|
| 427 | { | 
|---|
| 428 | ULONG yyrc; | 
|---|
| 429 | USHORT sel = RestoreOS2FS(); | 
|---|
| 430 |  | 
|---|
| 431 | yyrc = DosOpen(a, b, c, d, e, f, g, h); | 
|---|
| 432 | SetFS(sel); | 
|---|
| 433 |  | 
|---|
| 434 | return yyrc; | 
|---|
| 435 | } | 
|---|
| 436 |  | 
|---|
| 437 | #undef  DosOpen | 
|---|
| 438 | #define DosOpen _DosOpen | 
|---|
| 439 |  | 
|---|
| 440 | inline ULONG _DosProtectClose(HFILE a, FHLOCK b) | 
|---|
| 441 | { | 
|---|
| 442 | ULONG yyrc; | 
|---|
| 443 | USHORT sel = RestoreOS2FS(); | 
|---|
| 444 |  | 
|---|
| 445 | yyrc = DosProtectClose(a, b); | 
|---|
| 446 | SetFS(sel); | 
|---|
| 447 |  | 
|---|
| 448 | return yyrc; | 
|---|
| 449 | } | 
|---|
| 450 |  | 
|---|
| 451 | #undef  DosProtectClose | 
|---|
| 452 | #define DosProtectClose _DosProtectClose | 
|---|
| 453 |  | 
|---|
| 454 | inline ULONG _DosProtectEnumAttribute(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g, FHLOCK h) | 
|---|
| 455 | { | 
|---|
| 456 | ULONG yyrc; | 
|---|
| 457 | USHORT sel = RestoreOS2FS(); | 
|---|
| 458 |  | 
|---|
| 459 | yyrc = DosProtectEnumAttribute(a, b, c, d, e, f, g, h); | 
|---|
| 460 | SetFS(sel); | 
|---|
| 461 |  | 
|---|
| 462 | return yyrc; | 
|---|
| 463 | } | 
|---|
| 464 |  | 
|---|
| 465 | #undef  DosProtectEnumAttribute | 
|---|
| 466 | #define DosProtectEnumAttribute _DosProtectEnumAttribute | 
|---|
| 467 |  | 
|---|
| 468 | inline ULONG _DosProtectOpen(PCSZ a, PHFILE b, PULONG c, ULONG d, ULONG e, ULONG f, ULONG g, PEAOP2 h, PFHLOCK i) | 
|---|
| 469 | { | 
|---|
| 470 | ULONG yyrc; | 
|---|
| 471 | USHORT sel = RestoreOS2FS(); | 
|---|
| 472 |  | 
|---|
| 473 | yyrc = DosProtectOpen(a, b, c, d, e, f, g, h, i); | 
|---|
| 474 | SetFS(sel); | 
|---|
| 475 |  | 
|---|
| 476 | return yyrc; | 
|---|
| 477 | } | 
|---|
| 478 |  | 
|---|
| 479 | #undef  DosProtectOpen | 
|---|
| 480 | #define DosProtectOpen _DosProtectOpen | 
|---|
| 481 |  | 
|---|
| 482 | inline ULONG _DosProtectQueryFHState(HFILE a, PULONG b, FHLOCK c) | 
|---|
| 483 | { | 
|---|
| 484 | ULONG yyrc; | 
|---|
| 485 | USHORT sel = RestoreOS2FS(); | 
|---|
| 486 |  | 
|---|
| 487 | yyrc = DosProtectQueryFHState(a, b, c); | 
|---|
| 488 | SetFS(sel); | 
|---|
| 489 |  | 
|---|
| 490 | return yyrc; | 
|---|
| 491 | } | 
|---|
| 492 |  | 
|---|
| 493 | #undef  DosProtectQueryFHState | 
|---|
| 494 | #define DosProtectQueryFHState _DosProtectQueryFHState | 
|---|
| 495 |  | 
|---|
| 496 | inline ULONG _DosProtectQueryFileInfo(HFILE a, ULONG b, PVOID c, ULONG d, FHLOCK e) | 
|---|
| 497 | { | 
|---|
| 498 | ULONG yyrc; | 
|---|
| 499 | USHORT sel = RestoreOS2FS(); | 
|---|
| 500 |  | 
|---|
| 501 | yyrc = DosProtectQueryFileInfo(a, b, c, d, e); | 
|---|
| 502 | SetFS(sel); | 
|---|
| 503 |  | 
|---|
| 504 | return yyrc; | 
|---|
| 505 | } | 
|---|
| 506 |  | 
|---|
| 507 | #undef  DosProtectQueryFileInfo | 
|---|
| 508 | #define DosProtectQueryFileInfo _DosProtectQueryFileInfo | 
|---|
| 509 |  | 
|---|
| 510 | inline ULONG _DosProtectRead(HFILE a, PVOID b, ULONG c, PULONG d, FHLOCK e) | 
|---|
| 511 | { | 
|---|
| 512 | ULONG yyrc; | 
|---|
| 513 | USHORT sel = RestoreOS2FS(); | 
|---|
| 514 |  | 
|---|
| 515 | yyrc = DosProtectRead(a, b, c, d, e); | 
|---|
| 516 | SetFS(sel); | 
|---|
| 517 |  | 
|---|
| 518 | return yyrc; | 
|---|
| 519 | } | 
|---|
| 520 |  | 
|---|
| 521 | #undef  DosProtectRead | 
|---|
| 522 | #define DosProtectRead _DosProtectRead | 
|---|
| 523 |  | 
|---|
| 524 | inline ULONG _DosProtectSetFHState(HFILE a, ULONG b, FHLOCK c) | 
|---|
| 525 | { | 
|---|
| 526 | ULONG yyrc; | 
|---|
| 527 | USHORT sel = RestoreOS2FS(); | 
|---|
| 528 |  | 
|---|
| 529 | yyrc = DosProtectSetFHState(a, b, c); | 
|---|
| 530 | SetFS(sel); | 
|---|
| 531 |  | 
|---|
| 532 | return yyrc; | 
|---|
| 533 | } | 
|---|
| 534 |  | 
|---|
| 535 | #undef  DosProtectSetFHState | 
|---|
| 536 | #define DosProtectSetFHState _DosProtectSetFHState | 
|---|
| 537 |  | 
|---|
| 538 | inline ULONG _DosProtectSetFileInfo(HFILE a, ULONG b, PVOID c, ULONG d, FHLOCK e) | 
|---|
| 539 | { | 
|---|
| 540 | ULONG yyrc; | 
|---|
| 541 | USHORT sel = RestoreOS2FS(); | 
|---|
| 542 |  | 
|---|
| 543 | yyrc = DosProtectSetFileInfo(a, b, c, d, e); | 
|---|
| 544 | SetFS(sel); | 
|---|
| 545 |  | 
|---|
| 546 | return yyrc; | 
|---|
| 547 | } | 
|---|
| 548 |  | 
|---|
| 549 | #undef  DosProtectSetFileInfo | 
|---|
| 550 | #define DosProtectSetFileInfo _DosProtectSetFileInfo | 
|---|
| 551 |  | 
|---|
| 552 | inline ULONG _DosProtectSetFileLocks(HFILE a, PFILELOCK b, PFILELOCK c, ULONG d, ULONG e, FHLOCK f) | 
|---|
| 553 | { | 
|---|
| 554 | ULONG yyrc; | 
|---|
| 555 | USHORT sel = RestoreOS2FS(); | 
|---|
| 556 |  | 
|---|
| 557 | yyrc = DosProtectSetFileLocks(a, b, c, d, e, f); | 
|---|
| 558 | SetFS(sel); | 
|---|
| 559 |  | 
|---|
| 560 | return yyrc; | 
|---|
| 561 | } | 
|---|
| 562 |  | 
|---|
| 563 | #undef  DosProtectSetFileLocks | 
|---|
| 564 | #define DosProtectSetFileLocks _DosProtectSetFileLocks | 
|---|
| 565 |  | 
|---|
| 566 | inline ULONG _DosProtectSetFilePtr(HFILE a, LONG b, ULONG c, PULONG d, FHLOCK e) | 
|---|
| 567 | { | 
|---|
| 568 | ULONG yyrc; | 
|---|
| 569 | USHORT sel = RestoreOS2FS(); | 
|---|
| 570 |  | 
|---|
| 571 | yyrc = DosProtectSetFilePtr(a, b, c, d, e); | 
|---|
| 572 | SetFS(sel); | 
|---|
| 573 |  | 
|---|
| 574 | return yyrc; | 
|---|
| 575 | } | 
|---|
| 576 |  | 
|---|
| 577 | #undef  DosProtectSetFilePtr | 
|---|
| 578 | #define DosProtectSetFilePtr _DosProtectSetFilePtr | 
|---|
| 579 |  | 
|---|
| 580 | inline ULONG _DosProtectSetFileSize(HFILE a, ULONG b, FHLOCK c) | 
|---|
| 581 | { | 
|---|
| 582 | ULONG yyrc; | 
|---|
| 583 | USHORT sel = RestoreOS2FS(); | 
|---|
| 584 |  | 
|---|
| 585 | yyrc = DosProtectSetFileSize(a, b, c); | 
|---|
| 586 | SetFS(sel); | 
|---|
| 587 |  | 
|---|
| 588 | return yyrc; | 
|---|
| 589 | } | 
|---|
| 590 |  | 
|---|
| 591 | #undef  DosProtectSetFileSize | 
|---|
| 592 | #define DosProtectSetFileSize _DosProtectSetFileSize | 
|---|
| 593 |  | 
|---|
| 594 | inline ULONG _DosProtectWrite(HFILE a, PVOID b, ULONG c, PULONG d, FHLOCK e) | 
|---|
| 595 | { | 
|---|
| 596 | ULONG yyrc; | 
|---|
| 597 | USHORT sel = RestoreOS2FS(); | 
|---|
| 598 |  | 
|---|
| 599 | yyrc = DosProtectWrite(a, b, c, d, e); | 
|---|
| 600 | SetFS(sel); | 
|---|
| 601 |  | 
|---|
| 602 | return yyrc; | 
|---|
| 603 | } | 
|---|
| 604 |  | 
|---|
| 605 | #undef  DosProtectWrite | 
|---|
| 606 | #define DosProtectWrite _DosProtectWrite | 
|---|
| 607 |  | 
|---|
| 608 | inline ULONG _DosQueryCurrentDir(ULONG a, PBYTE b, PULONG c) | 
|---|
| 609 | { | 
|---|
| 610 | ULONG yyrc; | 
|---|
| 611 | USHORT sel = RestoreOS2FS(); | 
|---|
| 612 |  | 
|---|
| 613 | yyrc = DosQueryCurrentDir(a, b, c); | 
|---|
| 614 | SetFS(sel); | 
|---|
| 615 |  | 
|---|
| 616 | return yyrc; | 
|---|
| 617 | } | 
|---|
| 618 |  | 
|---|
| 619 | #undef  DosQueryCurrentDir | 
|---|
| 620 | #define DosQueryCurrentDir _DosQueryCurrentDir | 
|---|
| 621 |  | 
|---|
| 622 | inline ULONG _DosQueryCurrentDisk(PULONG a, PULONG b) | 
|---|
| 623 | { | 
|---|
| 624 | ULONG yyrc; | 
|---|
| 625 | USHORT sel = RestoreOS2FS(); | 
|---|
| 626 |  | 
|---|
| 627 | yyrc = DosQueryCurrentDisk(a, b); | 
|---|
| 628 | SetFS(sel); | 
|---|
| 629 |  | 
|---|
| 630 | return yyrc; | 
|---|
| 631 | } | 
|---|
| 632 |  | 
|---|
| 633 | #undef  DosQueryCurrentDisk | 
|---|
| 634 | #define DosQueryCurrentDisk _DosQueryCurrentDisk | 
|---|
| 635 |  | 
|---|
| 636 | inline ULONG _DosQueryFHState(HFILE a, PULONG b) | 
|---|
| 637 | { | 
|---|
| 638 | ULONG yyrc; | 
|---|
| 639 | USHORT sel = RestoreOS2FS(); | 
|---|
| 640 |  | 
|---|
| 641 | yyrc = DosQueryFHState(a, b); | 
|---|
| 642 | SetFS(sel); | 
|---|
| 643 |  | 
|---|
| 644 | return yyrc; | 
|---|
| 645 | } | 
|---|
| 646 |  | 
|---|
| 647 | #undef  DosQueryFHState | 
|---|
| 648 | #define DosQueryFHState _DosQueryFHState | 
|---|
| 649 |  | 
|---|
| 650 | inline ULONG _DosQueryFileInfo(HFILE a, ULONG b, PVOID c, ULONG d) | 
|---|
| 651 | { | 
|---|
| 652 | ULONG yyrc; | 
|---|
| 653 | USHORT sel = RestoreOS2FS(); | 
|---|
| 654 |  | 
|---|
| 655 | yyrc = DosQueryFileInfo(a, b, c, d); | 
|---|
| 656 | SetFS(sel); | 
|---|
| 657 |  | 
|---|
| 658 | return yyrc; | 
|---|
| 659 | } | 
|---|
| 660 |  | 
|---|
| 661 | #undef  DosQueryFileInfo | 
|---|
| 662 | #define DosQueryFileInfo _DosQueryFileInfo | 
|---|
| 663 |  | 
|---|
| 664 | inline ULONG _DosQueryFSAttach(PCSZ a, ULONG b, ULONG c, PFSQBUFFER2 d, PULONG e) | 
|---|
| 665 | { | 
|---|
| 666 | ULONG yyrc; | 
|---|
| 667 | USHORT sel = RestoreOS2FS(); | 
|---|
| 668 |  | 
|---|
| 669 | yyrc = DosQueryFSAttach(a, b, c, d, e); | 
|---|
| 670 | SetFS(sel); | 
|---|
| 671 |  | 
|---|
| 672 | return yyrc; | 
|---|
| 673 | } | 
|---|
| 674 |  | 
|---|
| 675 | #undef  DosQueryFSAttach | 
|---|
| 676 | #define DosQueryFSAttach _DosQueryFSAttach | 
|---|
| 677 |  | 
|---|
| 678 | inline ULONG _DosQueryFSInfo(ULONG a, ULONG b, PVOID c, ULONG d) | 
|---|
| 679 | { | 
|---|
| 680 | ULONG yyrc; | 
|---|
| 681 | USHORT sel = RestoreOS2FS(); | 
|---|
| 682 |  | 
|---|
| 683 | yyrc = DosQueryFSInfo(a, b, c, d); | 
|---|
| 684 | SetFS(sel); | 
|---|
| 685 |  | 
|---|
| 686 | return yyrc; | 
|---|
| 687 | } | 
|---|
| 688 |  | 
|---|
| 689 | #undef  DosQueryFSInfo | 
|---|
| 690 | #define DosQueryFSInfo _DosQueryFSInfo | 
|---|
| 691 |  | 
|---|
| 692 | inline ULONG _DosQueryHType(HFILE a, PULONG b, PULONG c) | 
|---|
| 693 | { | 
|---|
| 694 | ULONG yyrc; | 
|---|
| 695 | USHORT sel = RestoreOS2FS(); | 
|---|
| 696 |  | 
|---|
| 697 | yyrc = DosQueryHType(a, b, c); | 
|---|
| 698 | SetFS(sel); | 
|---|
| 699 |  | 
|---|
| 700 | return yyrc; | 
|---|
| 701 | } | 
|---|
| 702 |  | 
|---|
| 703 | #undef  DosQueryHType | 
|---|
| 704 | #define DosQueryHType _DosQueryHType | 
|---|
| 705 |  | 
|---|
| 706 | inline ULONG _DosQueryPathInfo(PCSZ a, ULONG b, PVOID c, ULONG d) | 
|---|
| 707 | { | 
|---|
| 708 | ULONG yyrc; | 
|---|
| 709 | USHORT sel = RestoreOS2FS(); | 
|---|
| 710 |  | 
|---|
| 711 | yyrc = DosQueryPathInfo(a, b, c, d); | 
|---|
| 712 | SetFS(sel); | 
|---|
| 713 |  | 
|---|
| 714 | return yyrc; | 
|---|
| 715 | } | 
|---|
| 716 |  | 
|---|
| 717 | #undef  DosQueryPathInfo | 
|---|
| 718 | #define DosQueryPathInfo _DosQueryPathInfo | 
|---|
| 719 |  | 
|---|
| 720 | inline ULONG _DosQueryVerify(PBOOL32 a) | 
|---|
| 721 | { | 
|---|
| 722 | ULONG yyrc; | 
|---|
| 723 | USHORT sel = RestoreOS2FS(); | 
|---|
| 724 |  | 
|---|
| 725 | yyrc = DosQueryVerify(a); | 
|---|
| 726 | SetFS(sel); | 
|---|
| 727 |  | 
|---|
| 728 | return yyrc; | 
|---|
| 729 | } | 
|---|
| 730 |  | 
|---|
| 731 | #undef  DosQueryVerify | 
|---|
| 732 | #define DosQueryVerify _DosQueryVerify | 
|---|
| 733 |  | 
|---|
| 734 | inline ULONG _DosRead(HFILE a, PVOID b, ULONG c, PULONG d) | 
|---|
| 735 | { | 
|---|
| 736 | ULONG yyrc; | 
|---|
| 737 | USHORT sel = RestoreOS2FS(); | 
|---|
| 738 |  | 
|---|
| 739 | yyrc = DosRead(a, b, c, d); | 
|---|
| 740 | SetFS(sel); | 
|---|
| 741 |  | 
|---|
| 742 | return yyrc; | 
|---|
| 743 | } | 
|---|
| 744 |  | 
|---|
| 745 | #undef  DosRead | 
|---|
| 746 | #define DosRead _DosRead | 
|---|
| 747 |  | 
|---|
| 748 | inline ULONG _DosResetBuffer(HFILE a) | 
|---|
| 749 | { | 
|---|
| 750 | ULONG yyrc; | 
|---|
| 751 | USHORT sel = RestoreOS2FS(); | 
|---|
| 752 |  | 
|---|
| 753 | yyrc = DosResetBuffer(a); | 
|---|
| 754 | SetFS(sel); | 
|---|
| 755 |  | 
|---|
| 756 | return yyrc; | 
|---|
| 757 | } | 
|---|
| 758 |  | 
|---|
| 759 | #undef  DosResetBuffer | 
|---|
| 760 | #define DosResetBuffer _DosResetBuffer | 
|---|
| 761 |  | 
|---|
| 762 | inline ULONG _DosSetCurrentDir(PCSZ a) | 
|---|
| 763 | { | 
|---|
| 764 | ULONG yyrc; | 
|---|
| 765 | USHORT sel = RestoreOS2FS(); | 
|---|
| 766 |  | 
|---|
| 767 | yyrc = DosSetCurrentDir(a); | 
|---|
| 768 | SetFS(sel); | 
|---|
| 769 |  | 
|---|
| 770 | return yyrc; | 
|---|
| 771 | } | 
|---|
| 772 |  | 
|---|
| 773 | #undef  DosSetCurrentDir | 
|---|
| 774 | #define DosSetCurrentDir _DosSetCurrentDir | 
|---|
| 775 |  | 
|---|
| 776 | inline ULONG _DosSetDefaultDisk(ULONG a) | 
|---|
| 777 | { | 
|---|
| 778 | ULONG yyrc; | 
|---|
| 779 | USHORT sel = RestoreOS2FS(); | 
|---|
| 780 |  | 
|---|
| 781 | yyrc = DosSetDefaultDisk(a); | 
|---|
| 782 | SetFS(sel); | 
|---|
| 783 |  | 
|---|
| 784 | return yyrc; | 
|---|
| 785 | } | 
|---|
| 786 |  | 
|---|
| 787 | #undef  DosSetDefaultDisk | 
|---|
| 788 | #define DosSetDefaultDisk _DosSetDefaultDisk | 
|---|
| 789 |  | 
|---|
| 790 | inline ULONG _DosSetFHState(HFILE a, ULONG b) | 
|---|
| 791 | { | 
|---|
| 792 | ULONG yyrc; | 
|---|
| 793 | USHORT sel = RestoreOS2FS(); | 
|---|
| 794 |  | 
|---|
| 795 | yyrc = DosSetFHState(a, b); | 
|---|
| 796 | SetFS(sel); | 
|---|
| 797 |  | 
|---|
| 798 | return yyrc; | 
|---|
| 799 | } | 
|---|
| 800 |  | 
|---|
| 801 | #undef  DosSetFHState | 
|---|
| 802 | #define DosSetFHState _DosSetFHState | 
|---|
| 803 |  | 
|---|
| 804 | inline ULONG _DosSetFileInfo(HFILE a, ULONG b, PVOID c, ULONG d) | 
|---|
| 805 | { | 
|---|
| 806 | ULONG yyrc; | 
|---|
| 807 | USHORT sel = RestoreOS2FS(); | 
|---|
| 808 |  | 
|---|
| 809 | yyrc = DosSetFileInfo(a, b, c, d); | 
|---|
| 810 | SetFS(sel); | 
|---|
| 811 |  | 
|---|
| 812 | return yyrc; | 
|---|
| 813 | } | 
|---|
| 814 |  | 
|---|
| 815 | #undef  DosSetFileInfo | 
|---|
| 816 | #define DosSetFileInfo _DosSetFileInfo | 
|---|
| 817 |  | 
|---|
| 818 | inline ULONG _DosSetFileLocks(HFILE a, PFILELOCK b, PFILELOCK c, ULONG d, ULONG e) | 
|---|
| 819 | { | 
|---|
| 820 | ULONG yyrc; | 
|---|
| 821 | USHORT sel = RestoreOS2FS(); | 
|---|
| 822 |  | 
|---|
| 823 | yyrc = DosSetFileLocks(a, b, c, d, e); | 
|---|
| 824 | SetFS(sel); | 
|---|
| 825 |  | 
|---|
| 826 | return yyrc; | 
|---|
| 827 | } | 
|---|
| 828 |  | 
|---|
| 829 | #undef  DosSetFileLocks | 
|---|
| 830 | #define DosSetFileLocks _DosSetFileLocks | 
|---|
| 831 |  | 
|---|
| 832 | inline ULONG _DosSetFilePtr(HFILE a, LONG b, ULONG c, PULONG d) | 
|---|
| 833 | { | 
|---|
| 834 | ULONG yyrc; | 
|---|
| 835 | USHORT sel = RestoreOS2FS(); | 
|---|
| 836 |  | 
|---|
| 837 | yyrc = DosSetFilePtr(a, b, c, d); | 
|---|
| 838 | SetFS(sel); | 
|---|
| 839 |  | 
|---|
| 840 | return yyrc; | 
|---|
| 841 | } | 
|---|
| 842 |  | 
|---|
| 843 | #undef  DosSetFilePtr | 
|---|
| 844 | #define DosSetFilePtr _DosSetFilePtr | 
|---|
| 845 |  | 
|---|
| 846 | inline ULONG _DosSetFileSize(HFILE a, ULONG b) | 
|---|
| 847 | { | 
|---|
| 848 | ULONG yyrc; | 
|---|
| 849 | USHORT sel = RestoreOS2FS(); | 
|---|
| 850 |  | 
|---|
| 851 | yyrc = DosSetFileSize(a, b); | 
|---|
| 852 | SetFS(sel); | 
|---|
| 853 |  | 
|---|
| 854 | return yyrc; | 
|---|
| 855 | } | 
|---|
| 856 |  | 
|---|
| 857 | #undef  DosSetFileSize | 
|---|
| 858 | #define DosSetFileSize _DosSetFileSize | 
|---|
| 859 |  | 
|---|
| 860 | inline ULONG _DosSetFSInfo(ULONG a, ULONG b, PVOID c, ULONG d) | 
|---|
| 861 | { | 
|---|
| 862 | ULONG yyrc; | 
|---|
| 863 | USHORT sel = RestoreOS2FS(); | 
|---|
| 864 |  | 
|---|
| 865 | yyrc = DosSetFSInfo(a, b, c, d); | 
|---|
| 866 | SetFS(sel); | 
|---|
| 867 |  | 
|---|
| 868 | return yyrc; | 
|---|
| 869 | } | 
|---|
| 870 |  | 
|---|
| 871 | #undef  DosSetFSInfo | 
|---|
| 872 | #define DosSetFSInfo _DosSetFSInfo | 
|---|
| 873 |  | 
|---|
| 874 | inline ULONG _DosSetMaxFH(ULONG a) | 
|---|
| 875 | { | 
|---|
| 876 | ULONG yyrc; | 
|---|
| 877 | USHORT sel = RestoreOS2FS(); | 
|---|
| 878 |  | 
|---|
| 879 | yyrc = DosSetMaxFH(a); | 
|---|
| 880 | SetFS(sel); | 
|---|
| 881 |  | 
|---|
| 882 | return yyrc; | 
|---|
| 883 | } | 
|---|
| 884 |  | 
|---|
| 885 | #undef  DosSetMaxFH | 
|---|
| 886 | #define DosSetMaxFH _DosSetMaxFH | 
|---|
| 887 |  | 
|---|
| 888 | inline ULONG _DosSetPathInfo(PCSZ a, ULONG b, PVOID c, ULONG d, ULONG e) | 
|---|
| 889 | { | 
|---|
| 890 | ULONG yyrc; | 
|---|
| 891 | USHORT sel = RestoreOS2FS(); | 
|---|
| 892 |  | 
|---|
| 893 | yyrc = DosSetPathInfo(a, b, c, d, e); | 
|---|
| 894 | SetFS(sel); | 
|---|
| 895 |  | 
|---|
| 896 | return yyrc; | 
|---|
| 897 | } | 
|---|
| 898 |  | 
|---|
| 899 | #undef  DosSetPathInfo | 
|---|
| 900 | #define DosSetPathInfo _DosSetPathInfo | 
|---|
| 901 |  | 
|---|
| 902 | inline ULONG _DosSetRelMaxFH(PLONG a, PULONG b) | 
|---|
| 903 | { | 
|---|
| 904 | ULONG yyrc; | 
|---|
| 905 | USHORT sel = RestoreOS2FS(); | 
|---|
| 906 |  | 
|---|
| 907 | yyrc = DosSetRelMaxFH(a, b); | 
|---|
| 908 | SetFS(sel); | 
|---|
| 909 |  | 
|---|
| 910 | return yyrc; | 
|---|
| 911 | } | 
|---|
| 912 |  | 
|---|
| 913 | #undef  DosSetRelMaxFH | 
|---|
| 914 | #define DosSetRelMaxFH _DosSetRelMaxFH | 
|---|
| 915 |  | 
|---|
| 916 | inline ULONG _DosSetVerify(BOOL32 a) | 
|---|
| 917 | { | 
|---|
| 918 | ULONG yyrc; | 
|---|
| 919 | USHORT sel = RestoreOS2FS(); | 
|---|
| 920 |  | 
|---|
| 921 | yyrc = DosSetVerify(a); | 
|---|
| 922 | SetFS(sel); | 
|---|
| 923 |  | 
|---|
| 924 | return yyrc; | 
|---|
| 925 | } | 
|---|
| 926 |  | 
|---|
| 927 | #undef  DosSetVerify | 
|---|
| 928 | #define DosSetVerify _DosSetVerify | 
|---|
| 929 |  | 
|---|
| 930 | inline ULONG _DosShutdown(ULONG a) | 
|---|
| 931 | { | 
|---|
| 932 | ULONG yyrc; | 
|---|
| 933 | USHORT sel = RestoreOS2FS(); | 
|---|
| 934 |  | 
|---|
| 935 | yyrc = DosShutdown(a); | 
|---|
| 936 | SetFS(sel); | 
|---|
| 937 |  | 
|---|
| 938 | return yyrc; | 
|---|
| 939 | } | 
|---|
| 940 |  | 
|---|
| 941 | #undef  DosShutdown | 
|---|
| 942 | #define DosShutdown _DosShutdown | 
|---|
| 943 |  | 
|---|
| 944 | inline ULONG _DosWrite(HFILE a, PVOID b, ULONG c, PULONG d) | 
|---|
| 945 | { | 
|---|
| 946 | ULONG yyrc; | 
|---|
| 947 | USHORT sel = RestoreOS2FS(); | 
|---|
| 948 |  | 
|---|
| 949 | yyrc = DosWrite(a, b, c, d); | 
|---|
| 950 | SetFS(sel); | 
|---|
| 951 |  | 
|---|
| 952 | return yyrc; | 
|---|
| 953 | } | 
|---|
| 954 |  | 
|---|
| 955 | #undef  DosWrite | 
|---|
| 956 | #define DosWrite _DosWrite | 
|---|
| 957 |  | 
|---|
| 958 | #endif | 
|---|
| 959 | #ifdef INCL_DOSMISC | 
|---|
| 960 | inline ULONG _DosSearchPath(ULONG a, PCSZ b, PCSZ c, PBYTE d, ULONG e) | 
|---|
| 961 | { | 
|---|
| 962 | ULONG yyrc; | 
|---|
| 963 | USHORT sel = RestoreOS2FS(); | 
|---|
| 964 |  | 
|---|
| 965 | yyrc = DosSearchPath(a, b, c, d, e); | 
|---|
| 966 | SetFS(sel); | 
|---|
| 967 |  | 
|---|
| 968 | return yyrc; | 
|---|
| 969 | } | 
|---|
| 970 |  | 
|---|
| 971 | #undef  DosSearchPath | 
|---|
| 972 | #define DosSearchPath _DosSearchPath | 
|---|
| 973 |  | 
|---|
| 974 | inline ULONG  _DosError(ULONG error) | 
|---|
| 975 | { | 
|---|
| 976 | ULONG yyrc; | 
|---|
| 977 | USHORT sel = RestoreOS2FS(); | 
|---|
| 978 |  | 
|---|
| 979 | yyrc = DosError(error); | 
|---|
| 980 | SetFS(sel); | 
|---|
| 981 |  | 
|---|
| 982 | return yyrc; | 
|---|
| 983 | } | 
|---|
| 984 |  | 
|---|
| 985 | #undef  DosError | 
|---|
| 986 | #define DosError _DosError | 
|---|
| 987 |  | 
|---|
| 988 | #endif | 
|---|
| 989 | #ifdef INCL_DOSDEVICES | 
|---|
| 990 | inline ULONG _DosDevConfig(PVOID a, ULONG b) | 
|---|
| 991 | { | 
|---|
| 992 | ULONG yyrc; | 
|---|
| 993 | USHORT sel = RestoreOS2FS(); | 
|---|
| 994 |  | 
|---|
| 995 | yyrc = DosDevConfig(a, b); | 
|---|
| 996 | SetFS(sel); | 
|---|
| 997 |  | 
|---|
| 998 | return yyrc; | 
|---|
| 999 | } | 
|---|
| 1000 |  | 
|---|
| 1001 | #undef  DosDevConfig | 
|---|
| 1002 | #define DosDevConfig _DosDevConfig | 
|---|
| 1003 |  | 
|---|
| 1004 | inline ULONG _DosDevIOCtl(HFILE a, ULONG b, ULONG c, PVOID d, ULONG e, PULONG f, PVOID g, ULONG h, PULONG i) | 
|---|
| 1005 | { | 
|---|
| 1006 | ULONG yyrc; | 
|---|
| 1007 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1008 |  | 
|---|
| 1009 | yyrc = DosDevIOCtl(a, b, c, d, e, f, g, h, i); | 
|---|
| 1010 | SetFS(sel); | 
|---|
| 1011 |  | 
|---|
| 1012 | return yyrc; | 
|---|
| 1013 | } | 
|---|
| 1014 |  | 
|---|
| 1015 | #undef  DosDevIOCtl | 
|---|
| 1016 | #define DosDevIOCtl _DosDevIOCtl | 
|---|
| 1017 |  | 
|---|
| 1018 | inline ULONG _DosPhysicalDisk(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e) | 
|---|
| 1019 | { | 
|---|
| 1020 | ULONG yyrc; | 
|---|
| 1021 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1022 |  | 
|---|
| 1023 | yyrc = DosPhysicalDisk(a, b, c, d, e); | 
|---|
| 1024 | SetFS(sel); | 
|---|
| 1025 |  | 
|---|
| 1026 | return yyrc; | 
|---|
| 1027 | } | 
|---|
| 1028 |  | 
|---|
| 1029 | #undef  DosPhysicalDisk | 
|---|
| 1030 | #define DosPhysicalDisk _DosPhysicalDisk | 
|---|
| 1031 |  | 
|---|
| 1032 | #endif | 
|---|
| 1033 | #ifdef INCL_DOSNLS | 
|---|
| 1034 | inline ULONG _DosMapCase(ULONG a, PCOUNTRYCODE b, PCHAR c) | 
|---|
| 1035 | { | 
|---|
| 1036 | ULONG yyrc; | 
|---|
| 1037 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1038 |  | 
|---|
| 1039 | yyrc = DosMapCase(a, b, c); | 
|---|
| 1040 | SetFS(sel); | 
|---|
| 1041 |  | 
|---|
| 1042 | return yyrc; | 
|---|
| 1043 | } | 
|---|
| 1044 |  | 
|---|
| 1045 | #undef  DosMapCase | 
|---|
| 1046 | #define DosMapCase _DosMapCase | 
|---|
| 1047 |  | 
|---|
| 1048 | inline ULONG _DosQueryCollate(ULONG a, PCOUNTRYCODE b, PCHAR c, PULONG d) | 
|---|
| 1049 | { | 
|---|
| 1050 | ULONG yyrc; | 
|---|
| 1051 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1052 |  | 
|---|
| 1053 | yyrc = DosQueryCollate(a, b, c, d); | 
|---|
| 1054 | SetFS(sel); | 
|---|
| 1055 |  | 
|---|
| 1056 | return yyrc; | 
|---|
| 1057 | } | 
|---|
| 1058 |  | 
|---|
| 1059 | #undef  DosQueryCollate | 
|---|
| 1060 | #define DosQueryCollate _DosQueryCollate | 
|---|
| 1061 |  | 
|---|
| 1062 | inline ULONG _DosQueryCp(ULONG a, PULONG b, PULONG c) | 
|---|
| 1063 | { | 
|---|
| 1064 | ULONG yyrc; | 
|---|
| 1065 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1066 |  | 
|---|
| 1067 | yyrc = DosQueryCp(a, b, c); | 
|---|
| 1068 | SetFS(sel); | 
|---|
| 1069 |  | 
|---|
| 1070 | return yyrc; | 
|---|
| 1071 | } | 
|---|
| 1072 |  | 
|---|
| 1073 | #undef  DosQueryCp | 
|---|
| 1074 | #define DosQueryCp _DosQueryCp | 
|---|
| 1075 |  | 
|---|
| 1076 | inline ULONG _DosQueryCtryInfo(ULONG a, PCOUNTRYCODE b, PCOUNTRYINFO c, PULONG d) | 
|---|
| 1077 | { | 
|---|
| 1078 | ULONG yyrc; | 
|---|
| 1079 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1080 |  | 
|---|
| 1081 | yyrc = DosQueryCtryInfo(a, b, c, d); | 
|---|
| 1082 | SetFS(sel); | 
|---|
| 1083 |  | 
|---|
| 1084 | return yyrc; | 
|---|
| 1085 | } | 
|---|
| 1086 |  | 
|---|
| 1087 | #undef  DosQueryCtryInfo | 
|---|
| 1088 | #define DosQueryCtryInfo _DosQueryCtryInfo | 
|---|
| 1089 |  | 
|---|
| 1090 | inline ULONG _DosQueryDBCSEnv(ULONG a, PCOUNTRYCODE b, PCHAR c) | 
|---|
| 1091 | { | 
|---|
| 1092 | ULONG yyrc; | 
|---|
| 1093 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1094 |  | 
|---|
| 1095 | yyrc = DosQueryDBCSEnv(a, b, c); | 
|---|
| 1096 | SetFS(sel); | 
|---|
| 1097 |  | 
|---|
| 1098 | return yyrc; | 
|---|
| 1099 | } | 
|---|
| 1100 |  | 
|---|
| 1101 | #undef  DosQueryDBCSEnv | 
|---|
| 1102 | #define DosQueryDBCSEnv _DosQueryDBCSEnv | 
|---|
| 1103 |  | 
|---|
| 1104 | inline ULONG _DosSetProcessCp(ULONG a) | 
|---|
| 1105 | { | 
|---|
| 1106 | ULONG yyrc; | 
|---|
| 1107 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1108 |  | 
|---|
| 1109 | yyrc = DosSetProcessCp(a); | 
|---|
| 1110 | SetFS(sel); | 
|---|
| 1111 |  | 
|---|
| 1112 | return yyrc; | 
|---|
| 1113 | } | 
|---|
| 1114 |  | 
|---|
| 1115 | #undef  DosSetProcessCp | 
|---|
| 1116 | #define DosSetProcessCp _DosSetProcessCp | 
|---|
| 1117 |  | 
|---|
| 1118 | #endif | 
|---|
| 1119 | #ifdef INCL_DOSMODULEMGR | 
|---|
| 1120 | inline ULONG _DosFreeModule(HMODULE a) | 
|---|
| 1121 | { | 
|---|
| 1122 | ULONG yyrc; | 
|---|
| 1123 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1124 |  | 
|---|
| 1125 | yyrc = DosFreeModule(a); | 
|---|
| 1126 | SetFS(sel); | 
|---|
| 1127 |  | 
|---|
| 1128 | return yyrc; | 
|---|
| 1129 | } | 
|---|
| 1130 |  | 
|---|
| 1131 | #undef  DosFreeModule | 
|---|
| 1132 | #define DosFreeModule _DosFreeModule | 
|---|
| 1133 |  | 
|---|
| 1134 | inline ULONG _DosLoadModule(PSZ a, ULONG b, PCSZ c, PHMODULE d) | 
|---|
| 1135 | { | 
|---|
| 1136 | ULONG yyrc; | 
|---|
| 1137 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1138 |  | 
|---|
| 1139 | yyrc = DosLoadModule(a, b, c, d); | 
|---|
| 1140 | SetFS(sel); | 
|---|
| 1141 |  | 
|---|
| 1142 | return yyrc; | 
|---|
| 1143 | } | 
|---|
| 1144 |  | 
|---|
| 1145 | #undef  DosLoadModule | 
|---|
| 1146 | #define DosLoadModule _DosLoadModule | 
|---|
| 1147 |  | 
|---|
| 1148 | inline ULONG _DosQueryModuleHandle(PCSZ a, PHMODULE b) | 
|---|
| 1149 | { | 
|---|
| 1150 | ULONG yyrc; | 
|---|
| 1151 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1152 |  | 
|---|
| 1153 | yyrc = DosQueryModuleHandle(a, b); | 
|---|
| 1154 | SetFS(sel); | 
|---|
| 1155 |  | 
|---|
| 1156 | return yyrc; | 
|---|
| 1157 | } | 
|---|
| 1158 |  | 
|---|
| 1159 | #undef  DosQueryModuleHandle | 
|---|
| 1160 | #define DosQueryModuleHandle _DosQueryModuleHandle | 
|---|
| 1161 |  | 
|---|
| 1162 | inline ULONG _DosQueryModuleName(HMODULE a, ULONG b, PCHAR c) | 
|---|
| 1163 | { | 
|---|
| 1164 | ULONG yyrc; | 
|---|
| 1165 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1166 |  | 
|---|
| 1167 | yyrc = DosQueryModuleName(a, b, c); | 
|---|
| 1168 | SetFS(sel); | 
|---|
| 1169 |  | 
|---|
| 1170 | return yyrc; | 
|---|
| 1171 | } | 
|---|
| 1172 |  | 
|---|
| 1173 | #undef  DosQueryModuleName | 
|---|
| 1174 | #define DosQueryModuleName _DosQueryModuleName | 
|---|
| 1175 |  | 
|---|
| 1176 | inline ULONG _DosQueryProcAddr(HMODULE a, ULONG b, PCSZ c, PFN *d) | 
|---|
| 1177 | { | 
|---|
| 1178 | ULONG yyrc; | 
|---|
| 1179 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1180 |  | 
|---|
| 1181 | yyrc = DosQueryProcAddr(a, b, c, d); | 
|---|
| 1182 | SetFS(sel); | 
|---|
| 1183 |  | 
|---|
| 1184 | return yyrc; | 
|---|
| 1185 | } | 
|---|
| 1186 |  | 
|---|
| 1187 | #undef  DosQueryProcAddr | 
|---|
| 1188 | #define DosQueryProcAddr _DosQueryProcAddr | 
|---|
| 1189 |  | 
|---|
| 1190 | inline ULONG _DosQueryProcType(HMODULE a, ULONG b, PCSZ c, PULONG d) | 
|---|
| 1191 | { | 
|---|
| 1192 | ULONG yyrc; | 
|---|
| 1193 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1194 |  | 
|---|
| 1195 | yyrc = DosQueryProcType(a, b, c, d); | 
|---|
| 1196 | SetFS(sel); | 
|---|
| 1197 |  | 
|---|
| 1198 | return yyrc; | 
|---|
| 1199 | } | 
|---|
| 1200 |  | 
|---|
| 1201 | #undef  DosQueryProcType | 
|---|
| 1202 | #define DosQueryProcType _DosQueryProcType | 
|---|
| 1203 |  | 
|---|
| 1204 | #endif | 
|---|
| 1205 | #ifdef INCL_DOSRESOURCES | 
|---|
| 1206 | inline ULONG _DosFreeResource(PVOID a) | 
|---|
| 1207 | { | 
|---|
| 1208 | ULONG yyrc; | 
|---|
| 1209 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1210 |  | 
|---|
| 1211 | yyrc = DosFreeResource(a); | 
|---|
| 1212 | SetFS(sel); | 
|---|
| 1213 |  | 
|---|
| 1214 | return yyrc; | 
|---|
| 1215 | } | 
|---|
| 1216 |  | 
|---|
| 1217 | #undef  DosFreeResource | 
|---|
| 1218 | #define DosFreeResource _DosFreeResource | 
|---|
| 1219 |  | 
|---|
| 1220 | inline ULONG _DosGetResource(HMODULE a, ULONG b, ULONG c, PPVOID d) | 
|---|
| 1221 | { | 
|---|
| 1222 | ULONG yyrc; | 
|---|
| 1223 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1224 |  | 
|---|
| 1225 | yyrc = DosGetResource(a, b, c, d); | 
|---|
| 1226 | SetFS(sel); | 
|---|
| 1227 |  | 
|---|
| 1228 | return yyrc; | 
|---|
| 1229 | } | 
|---|
| 1230 |  | 
|---|
| 1231 | #undef  DosGetResource | 
|---|
| 1232 | #define DosGetResource _DosGetResource | 
|---|
| 1233 |  | 
|---|
| 1234 | inline ULONG _DosQueryResourceSize(HMODULE a, ULONG b, ULONG c, PULONG d) | 
|---|
| 1235 | { | 
|---|
| 1236 | ULONG yyrc; | 
|---|
| 1237 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1238 |  | 
|---|
| 1239 | yyrc = DosQueryResourceSize(a, b, c, d); | 
|---|
| 1240 | SetFS(sel); | 
|---|
| 1241 |  | 
|---|
| 1242 | return yyrc; | 
|---|
| 1243 | } | 
|---|
| 1244 |  | 
|---|
| 1245 | #undef  DosQueryResourceSize | 
|---|
| 1246 | #define DosQueryResourceSize _DosQueryResourceSize | 
|---|
| 1247 |  | 
|---|
| 1248 | #endif | 
|---|
| 1249 | #ifdef INCL_DOSPROCESS | 
|---|
| 1250 | inline ULONG _DosBeep(ULONG a, ULONG b) | 
|---|
| 1251 | { | 
|---|
| 1252 | ULONG yyrc; | 
|---|
| 1253 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1254 |  | 
|---|
| 1255 | yyrc = DosBeep(a, b); | 
|---|
| 1256 | SetFS(sel); | 
|---|
| 1257 |  | 
|---|
| 1258 | return yyrc; | 
|---|
| 1259 | } | 
|---|
| 1260 |  | 
|---|
| 1261 | #undef  DosBeep | 
|---|
| 1262 | #define DosBeep _DosBeep | 
|---|
| 1263 |  | 
|---|
| 1264 | inline VOID _DosExit(ULONG a, ULONG b) | 
|---|
| 1265 | { | 
|---|
| 1266 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1267 |  | 
|---|
| 1268 | DosExit(a, b); | 
|---|
| 1269 | SetFS(sel); | 
|---|
| 1270 | } | 
|---|
| 1271 |  | 
|---|
| 1272 | #undef  DosExit | 
|---|
| 1273 | #define DosExit _DosExit | 
|---|
| 1274 |  | 
|---|
| 1275 | inline ULONG _DosAllocThreadLocalMemory(ULONG a, PULONG *b) | 
|---|
| 1276 | { | 
|---|
| 1277 | ULONG yyrc; | 
|---|
| 1278 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1279 |  | 
|---|
| 1280 | yyrc = DosAllocThreadLocalMemory(a, b); | 
|---|
| 1281 | SetFS(sel); | 
|---|
| 1282 |  | 
|---|
| 1283 | return yyrc; | 
|---|
| 1284 | } | 
|---|
| 1285 |  | 
|---|
| 1286 | #undef  DosAllocThreadLocalMemory | 
|---|
| 1287 | #define DosAllocThreadLocalMemory _DosAllocThreadLocalMemory | 
|---|
| 1288 |  | 
|---|
| 1289 | inline ULONG _DosCreateThread(PTID a, PFNTHREAD b, ULONG c, ULONG d, ULONG e) | 
|---|
| 1290 | { | 
|---|
| 1291 | ULONG yyrc; | 
|---|
| 1292 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1293 |  | 
|---|
| 1294 | yyrc = DosCreateThread(a, b, c, d, e); | 
|---|
| 1295 | SetFS(sel); | 
|---|
| 1296 |  | 
|---|
| 1297 | return yyrc; | 
|---|
| 1298 | } | 
|---|
| 1299 |  | 
|---|
| 1300 | #undef  DosCreateThread | 
|---|
| 1301 | #define DosCreateThread _DosCreateThread | 
|---|
| 1302 |  | 
|---|
| 1303 | inline ULONG _DosEnterCritSec() | 
|---|
| 1304 | { | 
|---|
| 1305 | ULONG yyrc; | 
|---|
| 1306 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1307 |  | 
|---|
| 1308 | yyrc = DosEnterCritSec(); | 
|---|
| 1309 | SetFS(sel); | 
|---|
| 1310 |  | 
|---|
| 1311 | return yyrc; | 
|---|
| 1312 | } | 
|---|
| 1313 |  | 
|---|
| 1314 | #undef  DosEnterCritSec | 
|---|
| 1315 | #define DosEnterCritSec _DosEnterCritSec | 
|---|
| 1316 |  | 
|---|
| 1317 | inline ULONG _DosExecPgm(PCHAR a, LONG b, ULONG c, PCSZ d, PCSZ e, PRESULTCODES f, PCSZ g) | 
|---|
| 1318 | { | 
|---|
| 1319 | ULONG yyrc; | 
|---|
| 1320 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1321 |  | 
|---|
| 1322 | yyrc = DosExecPgm(a, b, c, d, e, f, g); | 
|---|
| 1323 | SetFS(sel); | 
|---|
| 1324 |  | 
|---|
| 1325 | return yyrc; | 
|---|
| 1326 | } | 
|---|
| 1327 |  | 
|---|
| 1328 | #undef  DosExecPgm | 
|---|
| 1329 | #define DosExecPgm _DosExecPgm | 
|---|
| 1330 |  | 
|---|
| 1331 | inline ULONG _DosExitCritSec() | 
|---|
| 1332 | { | 
|---|
| 1333 | ULONG yyrc; | 
|---|
| 1334 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1335 |  | 
|---|
| 1336 | yyrc = DosExitCritSec(); | 
|---|
| 1337 | SetFS(sel); | 
|---|
| 1338 |  | 
|---|
| 1339 | return yyrc; | 
|---|
| 1340 | } | 
|---|
| 1341 |  | 
|---|
| 1342 | #undef  DosExitCritSec | 
|---|
| 1343 | #define DosExitCritSec _DosExitCritSec | 
|---|
| 1344 |  | 
|---|
| 1345 | inline ULONG _DosExitList(ULONG a, PFNEXITLIST b) | 
|---|
| 1346 | { | 
|---|
| 1347 | ULONG yyrc; | 
|---|
| 1348 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1349 |  | 
|---|
| 1350 | yyrc = DosExitList(a, b); | 
|---|
| 1351 | SetFS(sel); | 
|---|
| 1352 |  | 
|---|
| 1353 | return yyrc; | 
|---|
| 1354 | } | 
|---|
| 1355 |  | 
|---|
| 1356 | #undef  DosExitList | 
|---|
| 1357 | #define DosExitList _DosExitList | 
|---|
| 1358 |  | 
|---|
| 1359 | inline ULONG _DosFreeThreadLocalMemory(ULONG *a) | 
|---|
| 1360 | { | 
|---|
| 1361 | ULONG yyrc; | 
|---|
| 1362 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1363 |  | 
|---|
| 1364 | yyrc = DosFreeThreadLocalMemory(a); | 
|---|
| 1365 | SetFS(sel); | 
|---|
| 1366 |  | 
|---|
| 1367 | return yyrc; | 
|---|
| 1368 | } | 
|---|
| 1369 |  | 
|---|
| 1370 | #undef  DosFreeThreadLocalMemory | 
|---|
| 1371 | #define DosFreeThreadLocalMemory _DosFreeThreadLocalMemory | 
|---|
| 1372 |  | 
|---|
| 1373 | inline ULONG _DosGetInfoBlocks(PTIB *a, PPIB *b) | 
|---|
| 1374 | { | 
|---|
| 1375 | ULONG yyrc; | 
|---|
| 1376 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1377 |  | 
|---|
| 1378 | yyrc = DosGetInfoBlocks(a, b); | 
|---|
| 1379 | SetFS(sel); | 
|---|
| 1380 |  | 
|---|
| 1381 | return yyrc; | 
|---|
| 1382 | } | 
|---|
| 1383 |  | 
|---|
| 1384 | #undef  DosGetInfoBlocks | 
|---|
| 1385 | #define DosGetInfoBlocks _DosGetInfoBlocks | 
|---|
| 1386 |  | 
|---|
| 1387 | inline ULONG _DosKillProcess(ULONG a, PID b) | 
|---|
| 1388 | { | 
|---|
| 1389 | ULONG yyrc; | 
|---|
| 1390 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1391 |  | 
|---|
| 1392 | yyrc = DosKillProcess(a, b); | 
|---|
| 1393 | SetFS(sel); | 
|---|
| 1394 |  | 
|---|
| 1395 | return yyrc; | 
|---|
| 1396 | } | 
|---|
| 1397 |  | 
|---|
| 1398 | #undef  DosKillProcess | 
|---|
| 1399 | #define DosKillProcess _DosKillProcess | 
|---|
| 1400 |  | 
|---|
| 1401 | inline ULONG _DosKillThread(TID a) | 
|---|
| 1402 | { | 
|---|
| 1403 | ULONG yyrc; | 
|---|
| 1404 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1405 |  | 
|---|
| 1406 | yyrc = DosKillThread(a); | 
|---|
| 1407 | SetFS(sel); | 
|---|
| 1408 |  | 
|---|
| 1409 | return yyrc; | 
|---|
| 1410 | } | 
|---|
| 1411 |  | 
|---|
| 1412 | #undef  DosKillThread | 
|---|
| 1413 | #define DosKillThread _DosKillThread | 
|---|
| 1414 |  | 
|---|
| 1415 | inline ULONG _DosResumeThread(TID a) | 
|---|
| 1416 | { | 
|---|
| 1417 | ULONG yyrc; | 
|---|
| 1418 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1419 |  | 
|---|
| 1420 | yyrc = DosResumeThread(a); | 
|---|
| 1421 | SetFS(sel); | 
|---|
| 1422 |  | 
|---|
| 1423 | return yyrc; | 
|---|
| 1424 | } | 
|---|
| 1425 |  | 
|---|
| 1426 | #undef  DosResumeThread | 
|---|
| 1427 | #define DosResumeThread _DosResumeThread | 
|---|
| 1428 |  | 
|---|
| 1429 | inline ULONG _DosSetPriority(ULONG a, ULONG b, LONG c, ULONG d) | 
|---|
| 1430 | { | 
|---|
| 1431 | ULONG yyrc; | 
|---|
| 1432 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1433 |  | 
|---|
| 1434 | yyrc = DosSetPriority(a, b, c, d); | 
|---|
| 1435 | SetFS(sel); | 
|---|
| 1436 |  | 
|---|
| 1437 | return yyrc; | 
|---|
| 1438 | } | 
|---|
| 1439 |  | 
|---|
| 1440 | #undef  DosSetPriority | 
|---|
| 1441 | #define DosSetPriority _DosSetPriority | 
|---|
| 1442 |  | 
|---|
| 1443 | inline ULONG _DosSleep(ULONG a) | 
|---|
| 1444 | { | 
|---|
| 1445 | ULONG yyrc; | 
|---|
| 1446 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1447 |  | 
|---|
| 1448 | yyrc = DosSleep(a); | 
|---|
| 1449 | SetFS(sel); | 
|---|
| 1450 |  | 
|---|
| 1451 | return yyrc; | 
|---|
| 1452 | } | 
|---|
| 1453 |  | 
|---|
| 1454 | #undef  DosSleep | 
|---|
| 1455 | #define DosSleep _DosSleep | 
|---|
| 1456 |  | 
|---|
| 1457 | inline ULONG _DosSuspendThread(TID a) | 
|---|
| 1458 | { | 
|---|
| 1459 | ULONG yyrc; | 
|---|
| 1460 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1461 |  | 
|---|
| 1462 | yyrc = DosSuspendThread(a); | 
|---|
| 1463 | SetFS(sel); | 
|---|
| 1464 |  | 
|---|
| 1465 | return yyrc; | 
|---|
| 1466 | } | 
|---|
| 1467 |  | 
|---|
| 1468 | #undef  DosSuspendThread | 
|---|
| 1469 | #define DosSuspendThread _DosSuspendThread | 
|---|
| 1470 |  | 
|---|
| 1471 | inline ULONG _DosWaitChild(ULONG a, ULONG b, PRESULTCODES c, PPID d, PID e) | 
|---|
| 1472 | { | 
|---|
| 1473 | ULONG yyrc; | 
|---|
| 1474 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1475 |  | 
|---|
| 1476 | yyrc = DosWaitChild(a, b, c, d, e); | 
|---|
| 1477 | SetFS(sel); | 
|---|
| 1478 |  | 
|---|
| 1479 | return yyrc; | 
|---|
| 1480 | } | 
|---|
| 1481 |  | 
|---|
| 1482 | #undef  DosWaitChild | 
|---|
| 1483 | #define DosWaitChild _DosWaitChild | 
|---|
| 1484 |  | 
|---|
| 1485 | inline ULONG _DosWaitThread(PTID a, ULONG b) | 
|---|
| 1486 | { | 
|---|
| 1487 | ULONG yyrc; | 
|---|
| 1488 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1489 |  | 
|---|
| 1490 | yyrc = DosWaitThread(a, b); | 
|---|
| 1491 | SetFS(sel); | 
|---|
| 1492 |  | 
|---|
| 1493 | return yyrc; | 
|---|
| 1494 | } | 
|---|
| 1495 |  | 
|---|
| 1496 | #undef  DosWaitThread | 
|---|
| 1497 | #define DosWaitThread _DosWaitThread | 
|---|
| 1498 |  | 
|---|
| 1499 | #endif | 
|---|
| 1500 |  | 
|---|
| 1501 | #ifdef INCL_DOSSESMGR | 
|---|
| 1502 | inline ULONG _DosQueryAppType(PCSZ a, PULONG b) | 
|---|
| 1503 | { | 
|---|
| 1504 | ULONG yyrc; | 
|---|
| 1505 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1506 |  | 
|---|
| 1507 | yyrc = DosQueryAppType(a, b); | 
|---|
| 1508 | SetFS(sel); | 
|---|
| 1509 |  | 
|---|
| 1510 | return yyrc; | 
|---|
| 1511 | } | 
|---|
| 1512 |  | 
|---|
| 1513 | #undef  DosQueryAppType | 
|---|
| 1514 | #define DosQueryAppType _DosQueryAppType | 
|---|
| 1515 |  | 
|---|
| 1516 | inline ULONG _DosSelectSession(ULONG a) | 
|---|
| 1517 | { | 
|---|
| 1518 | ULONG yyrc; | 
|---|
| 1519 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1520 |  | 
|---|
| 1521 | yyrc = DosSelectSession(a); | 
|---|
| 1522 | SetFS(sel); | 
|---|
| 1523 |  | 
|---|
| 1524 | return yyrc; | 
|---|
| 1525 | } | 
|---|
| 1526 |  | 
|---|
| 1527 | #undef  DosSelectSession | 
|---|
| 1528 | #define DosSelectSession _DosSelectSession | 
|---|
| 1529 |  | 
|---|
| 1530 | inline ULONG _DosSetSession(ULONG a, PSTATUSDATA b) | 
|---|
| 1531 | { | 
|---|
| 1532 | ULONG yyrc; | 
|---|
| 1533 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1534 |  | 
|---|
| 1535 | yyrc = DosSetSession(a, b); | 
|---|
| 1536 | SetFS(sel); | 
|---|
| 1537 |  | 
|---|
| 1538 | return yyrc; | 
|---|
| 1539 | } | 
|---|
| 1540 |  | 
|---|
| 1541 | #undef  DosSetSession | 
|---|
| 1542 | #define DosSetSession _DosSetSession | 
|---|
| 1543 |  | 
|---|
| 1544 | inline ULONG _DosStartSession(PSTARTDATA a, PULONG b, PPID c) | 
|---|
| 1545 | { | 
|---|
| 1546 | ULONG yyrc; | 
|---|
| 1547 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1548 |  | 
|---|
| 1549 | yyrc = DosStartSession(a, b, c); | 
|---|
| 1550 | SetFS(sel); | 
|---|
| 1551 |  | 
|---|
| 1552 | return yyrc; | 
|---|
| 1553 | } | 
|---|
| 1554 |  | 
|---|
| 1555 | #undef  DosStartSession | 
|---|
| 1556 | #define DosStartSession _DosStartSession | 
|---|
| 1557 |  | 
|---|
| 1558 | inline ULONG _DosStopSession(ULONG a, ULONG b) | 
|---|
| 1559 | { | 
|---|
| 1560 | ULONG yyrc; | 
|---|
| 1561 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1562 |  | 
|---|
| 1563 | yyrc = DosStopSession(a, b); | 
|---|
| 1564 | SetFS(sel); | 
|---|
| 1565 |  | 
|---|
| 1566 | return yyrc; | 
|---|
| 1567 | } | 
|---|
| 1568 |  | 
|---|
| 1569 | #undef  DosStopSession | 
|---|
| 1570 | #define DosStopSession _DosStopSession | 
|---|
| 1571 |  | 
|---|
| 1572 | #endif | 
|---|
| 1573 | #ifdef INCL_DOSSEMAPHORES | 
|---|
| 1574 | inline ULONG _DosCloseEventSem(HEV a) | 
|---|
| 1575 | { | 
|---|
| 1576 | ULONG yyrc; | 
|---|
| 1577 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1578 |  | 
|---|
| 1579 | yyrc = DosCloseEventSem(a); | 
|---|
| 1580 | SetFS(sel); | 
|---|
| 1581 |  | 
|---|
| 1582 | return yyrc; | 
|---|
| 1583 | } | 
|---|
| 1584 |  | 
|---|
| 1585 | #undef  DosCloseEventSem | 
|---|
| 1586 | #define DosCloseEventSem _DosCloseEventSem | 
|---|
| 1587 |  | 
|---|
| 1588 | inline ULONG _DosCreateEventSem(PCSZ a, PHEV b, ULONG c, BOOL32 d) | 
|---|
| 1589 | { | 
|---|
| 1590 | ULONG yyrc; | 
|---|
| 1591 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1592 |  | 
|---|
| 1593 | yyrc = DosCreateEventSem(a, b, c, d); | 
|---|
| 1594 | SetFS(sel); | 
|---|
| 1595 |  | 
|---|
| 1596 | return yyrc; | 
|---|
| 1597 | } | 
|---|
| 1598 |  | 
|---|
| 1599 | #undef  DosCreateEventSem | 
|---|
| 1600 | #define DosCreateEventSem _DosCreateEventSem | 
|---|
| 1601 |  | 
|---|
| 1602 | inline ULONG _DosOpenEventSem(PCSZ a, PHEV b) | 
|---|
| 1603 | { | 
|---|
| 1604 | ULONG yyrc; | 
|---|
| 1605 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1606 |  | 
|---|
| 1607 | yyrc = DosOpenEventSem(a, b); | 
|---|
| 1608 | SetFS(sel); | 
|---|
| 1609 |  | 
|---|
| 1610 | return yyrc; | 
|---|
| 1611 | } | 
|---|
| 1612 |  | 
|---|
| 1613 | #undef  DosOpenEventSem | 
|---|
| 1614 | #define DosOpenEventSem _DosOpenEventSem | 
|---|
| 1615 |  | 
|---|
| 1616 | inline ULONG _DosPostEventSem(HEV a) | 
|---|
| 1617 | { | 
|---|
| 1618 | ULONG yyrc; | 
|---|
| 1619 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1620 |  | 
|---|
| 1621 | yyrc = DosPostEventSem(a); | 
|---|
| 1622 | SetFS(sel); | 
|---|
| 1623 |  | 
|---|
| 1624 | return yyrc; | 
|---|
| 1625 | } | 
|---|
| 1626 |  | 
|---|
| 1627 | #undef  DosPostEventSem | 
|---|
| 1628 | #define DosPostEventSem _DosPostEventSem | 
|---|
| 1629 |  | 
|---|
| 1630 | inline ULONG _DosQueryEventSem(HEV a, PULONG b) | 
|---|
| 1631 | { | 
|---|
| 1632 | ULONG yyrc; | 
|---|
| 1633 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1634 |  | 
|---|
| 1635 | yyrc = DosQueryEventSem(a, b); | 
|---|
| 1636 | SetFS(sel); | 
|---|
| 1637 |  | 
|---|
| 1638 | return yyrc; | 
|---|
| 1639 | } | 
|---|
| 1640 |  | 
|---|
| 1641 | #undef  DosQueryEventSem | 
|---|
| 1642 | #define DosQueryEventSem _DosQueryEventSem | 
|---|
| 1643 |  | 
|---|
| 1644 | inline ULONG _DosResetEventSem(HEV a, PULONG b) | 
|---|
| 1645 | { | 
|---|
| 1646 | ULONG yyrc; | 
|---|
| 1647 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1648 |  | 
|---|
| 1649 | yyrc = DosResetEventSem(a, b); | 
|---|
| 1650 | SetFS(sel); | 
|---|
| 1651 |  | 
|---|
| 1652 | return yyrc; | 
|---|
| 1653 | } | 
|---|
| 1654 |  | 
|---|
| 1655 | #undef  DosResetEventSem | 
|---|
| 1656 | #define DosResetEventSem _DosResetEventSem | 
|---|
| 1657 |  | 
|---|
| 1658 | inline ULONG _DosWaitEventSem(HEV a, ULONG b) | 
|---|
| 1659 | { | 
|---|
| 1660 | ULONG yyrc; | 
|---|
| 1661 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1662 |  | 
|---|
| 1663 | yyrc = DosWaitEventSem(a, b); | 
|---|
| 1664 | SetFS(sel); | 
|---|
| 1665 |  | 
|---|
| 1666 | return yyrc; | 
|---|
| 1667 | } | 
|---|
| 1668 |  | 
|---|
| 1669 | #undef  DosWaitEventSem | 
|---|
| 1670 | #define DosWaitEventSem _DosWaitEventSem | 
|---|
| 1671 |  | 
|---|
| 1672 | inline ULONG _DosCloseMutexSem(HMTX a) | 
|---|
| 1673 | { | 
|---|
| 1674 | ULONG yyrc; | 
|---|
| 1675 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1676 |  | 
|---|
| 1677 | yyrc = DosCloseMutexSem(a); | 
|---|
| 1678 | SetFS(sel); | 
|---|
| 1679 |  | 
|---|
| 1680 | return yyrc; | 
|---|
| 1681 | } | 
|---|
| 1682 |  | 
|---|
| 1683 | #undef  DosCloseMutexSem | 
|---|
| 1684 | #define DosCloseMutexSem _DosCloseMutexSem | 
|---|
| 1685 |  | 
|---|
| 1686 | inline ULONG _DosCreateMutexSem(PCSZ a, PHMTX b, ULONG c, BOOL32 d) | 
|---|
| 1687 | { | 
|---|
| 1688 | ULONG yyrc; | 
|---|
| 1689 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1690 |  | 
|---|
| 1691 | yyrc = DosCreateMutexSem(a, b, c, d); | 
|---|
| 1692 | SetFS(sel); | 
|---|
| 1693 |  | 
|---|
| 1694 | return yyrc; | 
|---|
| 1695 | } | 
|---|
| 1696 |  | 
|---|
| 1697 | #undef  DosCreateMutexSem | 
|---|
| 1698 | #define DosCreateMutexSem _DosCreateMutexSem | 
|---|
| 1699 |  | 
|---|
| 1700 | inline ULONG _DosOpenMutexSem(PCSZ a, PHMTX b) | 
|---|
| 1701 | { | 
|---|
| 1702 | ULONG yyrc; | 
|---|
| 1703 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1704 |  | 
|---|
| 1705 | yyrc = DosOpenMutexSem(a, b); | 
|---|
| 1706 | SetFS(sel); | 
|---|
| 1707 |  | 
|---|
| 1708 | return yyrc; | 
|---|
| 1709 | } | 
|---|
| 1710 |  | 
|---|
| 1711 | #undef  DosOpenMutexSem | 
|---|
| 1712 | #define DosOpenMutexSem _DosOpenMutexSem | 
|---|
| 1713 |  | 
|---|
| 1714 | inline ULONG _DosQueryMutexSem(HMTX a, PPID b, PTID c, PULONG d) | 
|---|
| 1715 | { | 
|---|
| 1716 | ULONG yyrc; | 
|---|
| 1717 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1718 |  | 
|---|
| 1719 | yyrc = DosQueryMutexSem(a, b, c, d); | 
|---|
| 1720 | SetFS(sel); | 
|---|
| 1721 |  | 
|---|
| 1722 | return yyrc; | 
|---|
| 1723 | } | 
|---|
| 1724 |  | 
|---|
| 1725 | #undef  DosQueryMutexSem | 
|---|
| 1726 | #define DosQueryMutexSem _DosQueryMutexSem | 
|---|
| 1727 |  | 
|---|
| 1728 | inline ULONG _DosReleaseMutexSem(HMTX a) | 
|---|
| 1729 | { | 
|---|
| 1730 | ULONG yyrc; | 
|---|
| 1731 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1732 |  | 
|---|
| 1733 | yyrc = DosReleaseMutexSem(a); | 
|---|
| 1734 | SetFS(sel); | 
|---|
| 1735 |  | 
|---|
| 1736 | return yyrc; | 
|---|
| 1737 | } | 
|---|
| 1738 |  | 
|---|
| 1739 | #undef  DosReleaseMutexSem | 
|---|
| 1740 | #define DosReleaseMutexSem _DosReleaseMutexSem | 
|---|
| 1741 |  | 
|---|
| 1742 | inline ULONG _DosRequestMutexSem(HMTX a, ULONG b) | 
|---|
| 1743 | { | 
|---|
| 1744 | ULONG yyrc; | 
|---|
| 1745 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1746 |  | 
|---|
| 1747 | yyrc = DosRequestMutexSem(a, b); | 
|---|
| 1748 | SetFS(sel); | 
|---|
| 1749 |  | 
|---|
| 1750 | return yyrc; | 
|---|
| 1751 | } | 
|---|
| 1752 |  | 
|---|
| 1753 | #undef  DosRequestMutexSem | 
|---|
| 1754 | #define DosRequestMutexSem _DosRequestMutexSem | 
|---|
| 1755 |  | 
|---|
| 1756 | inline ULONG _DosAddMuxWaitSem(HMUX a, PSEMRECORD b) | 
|---|
| 1757 | { | 
|---|
| 1758 | ULONG yyrc; | 
|---|
| 1759 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1760 |  | 
|---|
| 1761 | yyrc = DosAddMuxWaitSem(a, b); | 
|---|
| 1762 | SetFS(sel); | 
|---|
| 1763 |  | 
|---|
| 1764 | return yyrc; | 
|---|
| 1765 | } | 
|---|
| 1766 |  | 
|---|
| 1767 | #undef  DosAddMuxWaitSem | 
|---|
| 1768 | #define DosAddMuxWaitSem _DosAddMuxWaitSem | 
|---|
| 1769 |  | 
|---|
| 1770 | inline ULONG _DosCloseMuxWaitSem(HMUX a) | 
|---|
| 1771 | { | 
|---|
| 1772 | ULONG yyrc; | 
|---|
| 1773 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1774 |  | 
|---|
| 1775 | yyrc = DosCloseMuxWaitSem(a); | 
|---|
| 1776 | SetFS(sel); | 
|---|
| 1777 |  | 
|---|
| 1778 | return yyrc; | 
|---|
| 1779 | } | 
|---|
| 1780 |  | 
|---|
| 1781 | #undef  DosCloseMuxWaitSem | 
|---|
| 1782 | #define DosCloseMuxWaitSem _DosCloseMuxWaitSem | 
|---|
| 1783 |  | 
|---|
| 1784 | inline ULONG _DosCreateMuxWaitSem(PCSZ a, PHMUX b, ULONG c, PSEMRECORD d, ULONG e) | 
|---|
| 1785 | { | 
|---|
| 1786 | ULONG yyrc; | 
|---|
| 1787 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1788 |  | 
|---|
| 1789 | yyrc = DosCreateMuxWaitSem(a, b, c, d, e); | 
|---|
| 1790 | SetFS(sel); | 
|---|
| 1791 |  | 
|---|
| 1792 | return yyrc; | 
|---|
| 1793 | } | 
|---|
| 1794 |  | 
|---|
| 1795 | #undef  DosCreateMuxWaitSem | 
|---|
| 1796 | #define DosCreateMuxWaitSem _DosCreateMuxWaitSem | 
|---|
| 1797 |  | 
|---|
| 1798 | inline ULONG _DosDeleteMuxWaitSem(HMUX a, HSEM b) | 
|---|
| 1799 | { | 
|---|
| 1800 | ULONG yyrc; | 
|---|
| 1801 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1802 |  | 
|---|
| 1803 | yyrc = DosDeleteMuxWaitSem(a, b); | 
|---|
| 1804 | SetFS(sel); | 
|---|
| 1805 |  | 
|---|
| 1806 | return yyrc; | 
|---|
| 1807 | } | 
|---|
| 1808 |  | 
|---|
| 1809 | #undef  DosDeleteMuxWaitSem | 
|---|
| 1810 | #define DosDeleteMuxWaitSem _DosDeleteMuxWaitSem | 
|---|
| 1811 |  | 
|---|
| 1812 | inline ULONG _DosOpenMuxWaitSem(PCSZ a, PHMUX b) | 
|---|
| 1813 | { | 
|---|
| 1814 | ULONG yyrc; | 
|---|
| 1815 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1816 |  | 
|---|
| 1817 | yyrc = DosOpenMuxWaitSem(a, b); | 
|---|
| 1818 | SetFS(sel); | 
|---|
| 1819 |  | 
|---|
| 1820 | return yyrc; | 
|---|
| 1821 | } | 
|---|
| 1822 |  | 
|---|
| 1823 | #undef  DosOpenMuxWaitSem | 
|---|
| 1824 | #define DosOpenMuxWaitSem _DosOpenMuxWaitSem | 
|---|
| 1825 |  | 
|---|
| 1826 | inline ULONG _DosQueryMuxWaitSem(HMUX a, PULONG b, PSEMRECORD c, PULONG d) | 
|---|
| 1827 | { | 
|---|
| 1828 | ULONG yyrc; | 
|---|
| 1829 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1830 |  | 
|---|
| 1831 | yyrc = DosQueryMuxWaitSem(a, b, c, d); | 
|---|
| 1832 | SetFS(sel); | 
|---|
| 1833 |  | 
|---|
| 1834 | return yyrc; | 
|---|
| 1835 | } | 
|---|
| 1836 |  | 
|---|
| 1837 | #undef  DosQueryMuxWaitSem | 
|---|
| 1838 | #define DosQueryMuxWaitSem _DosQueryMuxWaitSem | 
|---|
| 1839 |  | 
|---|
| 1840 | inline ULONG _DosWaitMuxWaitSem(HMUX a, ULONG b, PULONG c) | 
|---|
| 1841 | { | 
|---|
| 1842 | ULONG yyrc; | 
|---|
| 1843 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1844 |  | 
|---|
| 1845 | yyrc = DosWaitMuxWaitSem(a, b, c); | 
|---|
| 1846 | SetFS(sel); | 
|---|
| 1847 |  | 
|---|
| 1848 | return yyrc; | 
|---|
| 1849 | } | 
|---|
| 1850 |  | 
|---|
| 1851 | #undef  DosWaitMuxWaitSem | 
|---|
| 1852 | #define DosWaitMuxWaitSem _DosWaitMuxWaitSem | 
|---|
| 1853 |  | 
|---|
| 1854 | #endif | 
|---|
| 1855 | #ifdef INCL_DOSNMPIPES | 
|---|
| 1856 | inline ULONG _DosCallNPipe(PCSZ a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g) | 
|---|
| 1857 | { | 
|---|
| 1858 | ULONG yyrc; | 
|---|
| 1859 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1860 |  | 
|---|
| 1861 | yyrc = DosCallNPipe(a, b, c, d, e, f, g); | 
|---|
| 1862 | SetFS(sel); | 
|---|
| 1863 |  | 
|---|
| 1864 | return yyrc; | 
|---|
| 1865 | } | 
|---|
| 1866 |  | 
|---|
| 1867 | #undef  DosCallNPipe | 
|---|
| 1868 | #define DosCallNPipe _DosCallNPipe | 
|---|
| 1869 |  | 
|---|
| 1870 | inline ULONG _DosConnectNPipe(HPIPE a) | 
|---|
| 1871 | { | 
|---|
| 1872 | ULONG yyrc; | 
|---|
| 1873 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1874 |  | 
|---|
| 1875 | yyrc = DosConnectNPipe(a); | 
|---|
| 1876 | SetFS(sel); | 
|---|
| 1877 |  | 
|---|
| 1878 | return yyrc; | 
|---|
| 1879 | } | 
|---|
| 1880 |  | 
|---|
| 1881 | #undef  DosConnectNPipe | 
|---|
| 1882 | #define DosConnectNPipe _DosConnectNPipe | 
|---|
| 1883 |  | 
|---|
| 1884 | inline ULONG _DosCreateNPipe(PCSZ a, PHPIPE b, ULONG c, ULONG d, ULONG e, ULONG f, ULONG g) | 
|---|
| 1885 | { | 
|---|
| 1886 | ULONG yyrc; | 
|---|
| 1887 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1888 |  | 
|---|
| 1889 | yyrc = DosCreateNPipe(a, b, c, d, e, f, g); | 
|---|
| 1890 | SetFS(sel); | 
|---|
| 1891 |  | 
|---|
| 1892 | return yyrc; | 
|---|
| 1893 | } | 
|---|
| 1894 |  | 
|---|
| 1895 | #undef  DosCreateNPipe | 
|---|
| 1896 | #define DosCreateNPipe _DosCreateNPipe | 
|---|
| 1897 |  | 
|---|
| 1898 | inline ULONG _DosDisConnectNPipe(HPIPE a) | 
|---|
| 1899 | { | 
|---|
| 1900 | ULONG yyrc; | 
|---|
| 1901 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1902 |  | 
|---|
| 1903 | yyrc = DosDisConnectNPipe(a); | 
|---|
| 1904 | SetFS(sel); | 
|---|
| 1905 |  | 
|---|
| 1906 | return yyrc; | 
|---|
| 1907 | } | 
|---|
| 1908 |  | 
|---|
| 1909 | #undef  DosDisConnectNPipe | 
|---|
| 1910 | #define DosDisConnectNPipe _DosDisConnectNPipe | 
|---|
| 1911 |  | 
|---|
| 1912 | inline ULONG _DosPeekNPipe(HPIPE a, PVOID b, ULONG c, PULONG d, PAVAILDATA e, PULONG f) | 
|---|
| 1913 | { | 
|---|
| 1914 | ULONG yyrc; | 
|---|
| 1915 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1916 |  | 
|---|
| 1917 | yyrc = DosPeekNPipe(a, b, c, d, e, f); | 
|---|
| 1918 | SetFS(sel); | 
|---|
| 1919 |  | 
|---|
| 1920 | return yyrc; | 
|---|
| 1921 | } | 
|---|
| 1922 |  | 
|---|
| 1923 | #undef  DosPeekNPipe | 
|---|
| 1924 | #define DosPeekNPipe _DosPeekNPipe | 
|---|
| 1925 |  | 
|---|
| 1926 | inline ULONG _DosQueryNPHState(HPIPE a, PULONG b) | 
|---|
| 1927 | { | 
|---|
| 1928 | ULONG yyrc; | 
|---|
| 1929 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1930 |  | 
|---|
| 1931 | yyrc = DosQueryNPHState(a, b); | 
|---|
| 1932 | SetFS(sel); | 
|---|
| 1933 |  | 
|---|
| 1934 | return yyrc; | 
|---|
| 1935 | } | 
|---|
| 1936 |  | 
|---|
| 1937 | #undef  DosQueryNPHState | 
|---|
| 1938 | #define DosQueryNPHState _DosQueryNPHState | 
|---|
| 1939 |  | 
|---|
| 1940 | inline ULONG _DosQueryNPipeInfo(HPIPE a, ULONG b, PVOID c, ULONG d) | 
|---|
| 1941 | { | 
|---|
| 1942 | ULONG yyrc; | 
|---|
| 1943 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1944 |  | 
|---|
| 1945 | yyrc = DosQueryNPipeInfo(a, b, c, d); | 
|---|
| 1946 | SetFS(sel); | 
|---|
| 1947 |  | 
|---|
| 1948 | return yyrc; | 
|---|
| 1949 | } | 
|---|
| 1950 |  | 
|---|
| 1951 | #undef  DosQueryNPipeInfo | 
|---|
| 1952 | #define DosQueryNPipeInfo _DosQueryNPipeInfo | 
|---|
| 1953 |  | 
|---|
| 1954 | inline ULONG _DosQueryNPipeSemState(HSEM a, PPIPESEMSTATE b, ULONG c) | 
|---|
| 1955 | { | 
|---|
| 1956 | ULONG yyrc; | 
|---|
| 1957 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1958 |  | 
|---|
| 1959 | yyrc = DosQueryNPipeSemState(a, b, c); | 
|---|
| 1960 | SetFS(sel); | 
|---|
| 1961 |  | 
|---|
| 1962 | return yyrc; | 
|---|
| 1963 | } | 
|---|
| 1964 |  | 
|---|
| 1965 | #undef  DosQueryNPipeSemState | 
|---|
| 1966 | #define DosQueryNPipeSemState _DosQueryNPipeSemState | 
|---|
| 1967 |  | 
|---|
| 1968 | //AH: Different definition in 4.5 toolkit headers!!! | 
|---|
| 1969 | //we don't need it so far, so let's just remove it for now | 
|---|
| 1970 | #if 0 | 
|---|
| 1971 | inline ULONG _DosRawReadNPipe(PCSZ a, ULONG b, PULONG c, PVOID d) | 
|---|
| 1972 | { | 
|---|
| 1973 | ULONG yyrc; | 
|---|
| 1974 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1975 |  | 
|---|
| 1976 | yyrc = DosRawReadNPipe(a, b, c, d); | 
|---|
| 1977 | SetFS(sel); | 
|---|
| 1978 |  | 
|---|
| 1979 | return yyrc; | 
|---|
| 1980 | } | 
|---|
| 1981 |  | 
|---|
| 1982 | #undef  DosRawReadNPipe | 
|---|
| 1983 | #define DosRawReadNPipe _DosRawReadNPipe | 
|---|
| 1984 |  | 
|---|
| 1985 | inline ULONG _DosRawWriteNPipe(PCSZ a, ULONG b) | 
|---|
| 1986 | { | 
|---|
| 1987 | ULONG yyrc; | 
|---|
| 1988 | USHORT sel = RestoreOS2FS(); | 
|---|
| 1989 |  | 
|---|
| 1990 | yyrc = DosRawWriteNPipe(a, b); | 
|---|
| 1991 | SetFS(sel); | 
|---|
| 1992 |  | 
|---|
| 1993 | return yyrc; | 
|---|
| 1994 | } | 
|---|
| 1995 |  | 
|---|
| 1996 | #undef  DosRawWriteNPipe | 
|---|
| 1997 | #define DosRawWriteNPipe _DosRawWriteNPipe | 
|---|
| 1998 |  | 
|---|
| 1999 | #endif | 
|---|
| 2000 |  | 
|---|
| 2001 | inline ULONG _DosSetNPHState(HPIPE a, ULONG b) | 
|---|
| 2002 | { | 
|---|
| 2003 | ULONG yyrc; | 
|---|
| 2004 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2005 |  | 
|---|
| 2006 | yyrc = DosSetNPHState(a, b); | 
|---|
| 2007 | SetFS(sel); | 
|---|
| 2008 |  | 
|---|
| 2009 | return yyrc; | 
|---|
| 2010 | } | 
|---|
| 2011 |  | 
|---|
| 2012 | #undef  DosSetNPHState | 
|---|
| 2013 | #define DosSetNPHState _DosSetNPHState | 
|---|
| 2014 |  | 
|---|
| 2015 | inline ULONG _DosSetNPipeSem(HPIPE a, HSEM b, ULONG c) | 
|---|
| 2016 | { | 
|---|
| 2017 | ULONG yyrc; | 
|---|
| 2018 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2019 |  | 
|---|
| 2020 | yyrc = DosSetNPipeSem(a, b, c); | 
|---|
| 2021 | SetFS(sel); | 
|---|
| 2022 |  | 
|---|
| 2023 | return yyrc; | 
|---|
| 2024 | } | 
|---|
| 2025 |  | 
|---|
| 2026 | #undef  DosSetNPipeSem | 
|---|
| 2027 | #define DosSetNPipeSem _DosSetNPipeSem | 
|---|
| 2028 |  | 
|---|
| 2029 | inline ULONG _DosTransactNPipe(HPIPE a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f) | 
|---|
| 2030 | { | 
|---|
| 2031 | ULONG yyrc; | 
|---|
| 2032 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2033 |  | 
|---|
| 2034 | yyrc = DosTransactNPipe(a, b, c, d, e, f); | 
|---|
| 2035 | SetFS(sel); | 
|---|
| 2036 |  | 
|---|
| 2037 | return yyrc; | 
|---|
| 2038 | } | 
|---|
| 2039 |  | 
|---|
| 2040 | #undef  DosTransactNPipe | 
|---|
| 2041 | #define DosTransactNPipe _DosTransactNPipe | 
|---|
| 2042 |  | 
|---|
| 2043 | inline ULONG _DosWaitNPipe(PCSZ a, ULONG b) | 
|---|
| 2044 | { | 
|---|
| 2045 | ULONG yyrc; | 
|---|
| 2046 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2047 |  | 
|---|
| 2048 | yyrc = DosWaitNPipe(a, b); | 
|---|
| 2049 | SetFS(sel); | 
|---|
| 2050 |  | 
|---|
| 2051 | return yyrc; | 
|---|
| 2052 | } | 
|---|
| 2053 |  | 
|---|
| 2054 | #undef  DosWaitNPipe | 
|---|
| 2055 | #define DosWaitNPipe _DosWaitNPipe | 
|---|
| 2056 |  | 
|---|
| 2057 | inline ULONG _DosCreatePipe(PHFILE a, PHFILE b, ULONG c) | 
|---|
| 2058 | { | 
|---|
| 2059 | ULONG yyrc; | 
|---|
| 2060 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2061 |  | 
|---|
| 2062 | yyrc = DosCreatePipe(a, b, c); | 
|---|
| 2063 | SetFS(sel); | 
|---|
| 2064 |  | 
|---|
| 2065 | return yyrc; | 
|---|
| 2066 | } | 
|---|
| 2067 |  | 
|---|
| 2068 | #undef  DosCreatePipe | 
|---|
| 2069 | #define DosCreatePipe _DosCreatePipe | 
|---|
| 2070 |  | 
|---|
| 2071 | #endif | 
|---|
| 2072 | #ifdef INCL_DOSQUEUES | 
|---|
| 2073 | inline ULONG _DosCloseQueue(HQUEUE a) | 
|---|
| 2074 | { | 
|---|
| 2075 | ULONG yyrc; | 
|---|
| 2076 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2077 |  | 
|---|
| 2078 | yyrc = DosCloseQueue(a); | 
|---|
| 2079 | SetFS(sel); | 
|---|
| 2080 |  | 
|---|
| 2081 | return yyrc; | 
|---|
| 2082 | } | 
|---|
| 2083 |  | 
|---|
| 2084 | #undef  DosCloseQueue | 
|---|
| 2085 | #define DosCloseQueue _DosCloseQueue | 
|---|
| 2086 |  | 
|---|
| 2087 | inline ULONG _DosCreateQueue(PHQUEUE a, ULONG b, PCSZ c) | 
|---|
| 2088 | { | 
|---|
| 2089 | ULONG yyrc; | 
|---|
| 2090 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2091 |  | 
|---|
| 2092 | yyrc = DosCreateQueue(a, b, c); | 
|---|
| 2093 | SetFS(sel); | 
|---|
| 2094 |  | 
|---|
| 2095 | return yyrc; | 
|---|
| 2096 | } | 
|---|
| 2097 |  | 
|---|
| 2098 | #undef  DosCreateQueue | 
|---|
| 2099 | #define DosCreateQueue _DosCreateQueue | 
|---|
| 2100 |  | 
|---|
| 2101 | inline ULONG _DosOpenQueue(PPID a, PHQUEUE b, PCSZ c) | 
|---|
| 2102 | { | 
|---|
| 2103 | ULONG yyrc; | 
|---|
| 2104 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2105 |  | 
|---|
| 2106 | yyrc = DosOpenQueue(a, b, c); | 
|---|
| 2107 | SetFS(sel); | 
|---|
| 2108 |  | 
|---|
| 2109 | return yyrc; | 
|---|
| 2110 | } | 
|---|
| 2111 |  | 
|---|
| 2112 | #undef  DosOpenQueue | 
|---|
| 2113 | #define DosOpenQueue _DosOpenQueue | 
|---|
| 2114 |  | 
|---|
| 2115 | inline ULONG _DosPeekQueue(HQUEUE a, PREQUESTDATA b, PULONG c, PPVOID d, PULONG e, BOOL32 f, PBYTE g, HEV h) | 
|---|
| 2116 | { | 
|---|
| 2117 | ULONG yyrc; | 
|---|
| 2118 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2119 |  | 
|---|
| 2120 | yyrc = DosPeekQueue(a, b, c, d, e, f, g, h); | 
|---|
| 2121 | SetFS(sel); | 
|---|
| 2122 |  | 
|---|
| 2123 | return yyrc; | 
|---|
| 2124 | } | 
|---|
| 2125 |  | 
|---|
| 2126 | #undef  DosPeekQueue | 
|---|
| 2127 | #define DosPeekQueue _DosPeekQueue | 
|---|
| 2128 |  | 
|---|
| 2129 | inline ULONG _DosPurgeQueue(HQUEUE a) | 
|---|
| 2130 | { | 
|---|
| 2131 | ULONG yyrc; | 
|---|
| 2132 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2133 |  | 
|---|
| 2134 | yyrc = DosPurgeQueue(a); | 
|---|
| 2135 | SetFS(sel); | 
|---|
| 2136 |  | 
|---|
| 2137 | return yyrc; | 
|---|
| 2138 | } | 
|---|
| 2139 |  | 
|---|
| 2140 | #undef  DosPurgeQueue | 
|---|
| 2141 | #define DosPurgeQueue _DosPurgeQueue | 
|---|
| 2142 |  | 
|---|
| 2143 | inline ULONG _DosQueryQueue(HQUEUE a, PULONG b) | 
|---|
| 2144 | { | 
|---|
| 2145 | ULONG yyrc; | 
|---|
| 2146 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2147 |  | 
|---|
| 2148 | yyrc = DosQueryQueue(a, b); | 
|---|
| 2149 | SetFS(sel); | 
|---|
| 2150 |  | 
|---|
| 2151 | return yyrc; | 
|---|
| 2152 | } | 
|---|
| 2153 |  | 
|---|
| 2154 | #undef  DosQueryQueue | 
|---|
| 2155 | #define DosQueryQueue _DosQueryQueue | 
|---|
| 2156 |  | 
|---|
| 2157 | inline ULONG _DosReadQueue(HQUEUE a, PREQUESTDATA b, PULONG c, PPVOID d, ULONG e, BOOL32 f, PBYTE g, HEV h) | 
|---|
| 2158 | { | 
|---|
| 2159 | ULONG yyrc; | 
|---|
| 2160 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2161 |  | 
|---|
| 2162 | yyrc = DosReadQueue(a, b, c, d, e, f, g, h); | 
|---|
| 2163 | SetFS(sel); | 
|---|
| 2164 |  | 
|---|
| 2165 | return yyrc; | 
|---|
| 2166 | } | 
|---|
| 2167 |  | 
|---|
| 2168 | #undef  DosReadQueue | 
|---|
| 2169 | #define DosReadQueue _DosReadQueue | 
|---|
| 2170 |  | 
|---|
| 2171 | inline ULONG _DosWriteQueue(HQUEUE a, ULONG b, ULONG c, PVOID d, ULONG e) | 
|---|
| 2172 | { | 
|---|
| 2173 | ULONG yyrc; | 
|---|
| 2174 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2175 |  | 
|---|
| 2176 | yyrc = DosWriteQueue(a, b, c, d, e); | 
|---|
| 2177 | SetFS(sel); | 
|---|
| 2178 |  | 
|---|
| 2179 | return yyrc; | 
|---|
| 2180 | } | 
|---|
| 2181 |  | 
|---|
| 2182 | #undef  DosWriteQueue | 
|---|
| 2183 | #define DosWriteQueue _DosWriteQueue | 
|---|
| 2184 |  | 
|---|
| 2185 | #endif | 
|---|
| 2186 | #ifdef INCL_DOSEXCEPTIONS | 
|---|
| 2187 | inline ULONG _DosAcknowledgeSignalException(ULONG a) | 
|---|
| 2188 | { | 
|---|
| 2189 | ULONG yyrc; | 
|---|
| 2190 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2191 |  | 
|---|
| 2192 | yyrc = DosAcknowledgeSignalException(a); | 
|---|
| 2193 | SetFS(sel); | 
|---|
| 2194 |  | 
|---|
| 2195 | return yyrc; | 
|---|
| 2196 | } | 
|---|
| 2197 |  | 
|---|
| 2198 | #undef  DosAcknowledgeSignalException | 
|---|
| 2199 | #define DosAcknowledgeSignalException _DosAcknowledgeSignalException | 
|---|
| 2200 |  | 
|---|
| 2201 | inline ULONG _DosEnterMustComplete(PULONG a) | 
|---|
| 2202 | { | 
|---|
| 2203 | ULONG yyrc; | 
|---|
| 2204 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2205 |  | 
|---|
| 2206 | yyrc = DosEnterMustComplete(a); | 
|---|
| 2207 | SetFS(sel); | 
|---|
| 2208 |  | 
|---|
| 2209 | return yyrc; | 
|---|
| 2210 | } | 
|---|
| 2211 |  | 
|---|
| 2212 | #undef  DosEnterMustComplete | 
|---|
| 2213 | #define DosEnterMustComplete _DosEnterMustComplete | 
|---|
| 2214 |  | 
|---|
| 2215 | inline ULONG _DosExitMustComplete(PULONG a) | 
|---|
| 2216 | { | 
|---|
| 2217 | ULONG yyrc; | 
|---|
| 2218 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2219 |  | 
|---|
| 2220 | yyrc = DosExitMustComplete(a); | 
|---|
| 2221 | SetFS(sel); | 
|---|
| 2222 |  | 
|---|
| 2223 | return yyrc; | 
|---|
| 2224 | } | 
|---|
| 2225 |  | 
|---|
| 2226 | #undef  DosExitMustComplete | 
|---|
| 2227 | #define DosExitMustComplete _DosExitMustComplete | 
|---|
| 2228 |  | 
|---|
| 2229 | inline ULONG _DosQueryThreadContext(TID a, ULONG b, PCONTEXTRECORD c) | 
|---|
| 2230 | { | 
|---|
| 2231 | ULONG yyrc; | 
|---|
| 2232 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2233 |  | 
|---|
| 2234 | yyrc = DosQueryThreadContext(a, b, c); | 
|---|
| 2235 | SetFS(sel); | 
|---|
| 2236 |  | 
|---|
| 2237 | return yyrc; | 
|---|
| 2238 | } | 
|---|
| 2239 |  | 
|---|
| 2240 | #undef  DosQueryThreadContext | 
|---|
| 2241 | #define DosQueryThreadContext _DosQueryThreadContext | 
|---|
| 2242 |  | 
|---|
| 2243 | inline ULONG _DosRaiseException(PEXCEPTIONREPORTRECORD a) | 
|---|
| 2244 | { | 
|---|
| 2245 | ULONG yyrc; | 
|---|
| 2246 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2247 |  | 
|---|
| 2248 | yyrc = DosRaiseException(a); | 
|---|
| 2249 | SetFS(sel); | 
|---|
| 2250 |  | 
|---|
| 2251 | return yyrc; | 
|---|
| 2252 | } | 
|---|
| 2253 |  | 
|---|
| 2254 | #undef  DosRaiseException | 
|---|
| 2255 | #define DosRaiseException _DosRaiseException | 
|---|
| 2256 |  | 
|---|
| 2257 | inline ULONG _DosSendSignalException(PID a, ULONG b) | 
|---|
| 2258 | { | 
|---|
| 2259 | ULONG yyrc; | 
|---|
| 2260 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2261 |  | 
|---|
| 2262 | yyrc = DosSendSignalException(a, b); | 
|---|
| 2263 | SetFS(sel); | 
|---|
| 2264 |  | 
|---|
| 2265 | return yyrc; | 
|---|
| 2266 | } | 
|---|
| 2267 |  | 
|---|
| 2268 | #undef  DosSendSignalException | 
|---|
| 2269 | #define DosSendSignalException _DosSendSignalException | 
|---|
| 2270 |  | 
|---|
| 2271 | inline ULONG _DosSetExceptionHandler(PEXCEPTIONREGISTRATIONRECORD a) | 
|---|
| 2272 | { | 
|---|
| 2273 | ULONG yyrc; | 
|---|
| 2274 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2275 |  | 
|---|
| 2276 | yyrc = DosSetExceptionHandler(a); | 
|---|
| 2277 | SetFS(sel); | 
|---|
| 2278 |  | 
|---|
| 2279 | return yyrc; | 
|---|
| 2280 | } | 
|---|
| 2281 |  | 
|---|
| 2282 | #undef  DosSetExceptionHandler | 
|---|
| 2283 | #define DosSetExceptionHandler _DosSetExceptionHandler | 
|---|
| 2284 |  | 
|---|
| 2285 | inline ULONG _DosSetSignalExceptionFocus(BOOL32 a, PULONG b) | 
|---|
| 2286 | { | 
|---|
| 2287 | ULONG yyrc; | 
|---|
| 2288 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2289 |  | 
|---|
| 2290 | yyrc = DosSetSignalExceptionFocus(a, b); | 
|---|
| 2291 | SetFS(sel); | 
|---|
| 2292 |  | 
|---|
| 2293 | return yyrc; | 
|---|
| 2294 | } | 
|---|
| 2295 |  | 
|---|
| 2296 | #undef  DosSetSignalExceptionFocus | 
|---|
| 2297 | #define DosSetSignalExceptionFocus _DosSetSignalExceptionFocus | 
|---|
| 2298 |  | 
|---|
| 2299 | inline ULONG _DosUnsetExceptionHandler(PEXCEPTIONREGISTRATIONRECORD a) | 
|---|
| 2300 | { | 
|---|
| 2301 | ULONG yyrc; | 
|---|
| 2302 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2303 |  | 
|---|
| 2304 | yyrc = DosUnsetExceptionHandler(a); | 
|---|
| 2305 | SetFS(sel); | 
|---|
| 2306 |  | 
|---|
| 2307 | return yyrc; | 
|---|
| 2308 | } | 
|---|
| 2309 |  | 
|---|
| 2310 | #undef  DosUnsetExceptionHandler | 
|---|
| 2311 | #define DosUnsetExceptionHandler _DosUnsetExceptionHandler | 
|---|
| 2312 |  | 
|---|
| 2313 | inline ULONG _DosUnwindException(PEXCEPTIONREGISTRATIONRECORD a, PVOID b, PEXCEPTIONREPORTRECORD c) | 
|---|
| 2314 | { | 
|---|
| 2315 | ULONG yyrc; | 
|---|
| 2316 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2317 |  | 
|---|
| 2318 | yyrc = DosUnwindException(a, b, c); | 
|---|
| 2319 | SetFS(sel); | 
|---|
| 2320 |  | 
|---|
| 2321 | return yyrc; | 
|---|
| 2322 | } | 
|---|
| 2323 |  | 
|---|
| 2324 | #undef  DosUnwindException | 
|---|
| 2325 | #define DosUnwindException _DosUnwindException | 
|---|
| 2326 |  | 
|---|
| 2327 | #endif | 
|---|
| 2328 | #ifdef INCL_DOSMISC | 
|---|
| 2329 | inline ULONG _DosQuerySysInfo(ULONG a, ULONG b, PVOID c, ULONG d) | 
|---|
| 2330 | { | 
|---|
| 2331 | ULONG yyrc; | 
|---|
| 2332 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2333 |  | 
|---|
| 2334 | yyrc = DosQuerySysInfo(a, b, c, d); | 
|---|
| 2335 | SetFS(sel); | 
|---|
| 2336 |  | 
|---|
| 2337 | return yyrc; | 
|---|
| 2338 | } | 
|---|
| 2339 |  | 
|---|
| 2340 | #undef  DosQuerySysInfo | 
|---|
| 2341 | #define DosQuerySysInfo _DosQuerySysInfo | 
|---|
| 2342 |  | 
|---|
| 2343 | inline ULONG _DosScanEnv(PCSZ a, PCSZ *b) | 
|---|
| 2344 | { | 
|---|
| 2345 | ULONG yyrc; | 
|---|
| 2346 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2347 |  | 
|---|
| 2348 | yyrc = DosScanEnv(a, b); | 
|---|
| 2349 | SetFS(sel); | 
|---|
| 2350 |  | 
|---|
| 2351 | return yyrc; | 
|---|
| 2352 | } | 
|---|
| 2353 |  | 
|---|
| 2354 | #undef  DosScanEnv | 
|---|
| 2355 | #define DosScanEnv _DosScanEnv | 
|---|
| 2356 |  | 
|---|
| 2357 | inline ULONG _DosQueryRASInfo(ULONG a, PPVOID b) | 
|---|
| 2358 | { | 
|---|
| 2359 | ULONG yyrc; | 
|---|
| 2360 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2361 |  | 
|---|
| 2362 | yyrc = DosQueryRASInfo(a, b); | 
|---|
| 2363 | SetFS(sel); | 
|---|
| 2364 |  | 
|---|
| 2365 | return yyrc; | 
|---|
| 2366 | } | 
|---|
| 2367 |  | 
|---|
| 2368 | #undef  DosQueryRASInfo | 
|---|
| 2369 | #define DosQueryRASInfo _DosQueryRASInfo | 
|---|
| 2370 |  | 
|---|
| 2371 | #endif | 
|---|
| 2372 | #ifdef INCL_DOSDATETIME | 
|---|
| 2373 | inline ULONG _DosGetDateTime(PDATETIME a) | 
|---|
| 2374 | { | 
|---|
| 2375 | ULONG yyrc; | 
|---|
| 2376 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2377 |  | 
|---|
| 2378 | yyrc = DosGetDateTime(a); | 
|---|
| 2379 | SetFS(sel); | 
|---|
| 2380 |  | 
|---|
| 2381 | return yyrc; | 
|---|
| 2382 | } | 
|---|
| 2383 |  | 
|---|
| 2384 | #undef  DosGetDateTime | 
|---|
| 2385 | #define DosGetDateTime _DosGetDateTime | 
|---|
| 2386 |  | 
|---|
| 2387 | inline ULONG _DosSetDateTime(PDATETIME a) | 
|---|
| 2388 | { | 
|---|
| 2389 | ULONG yyrc; | 
|---|
| 2390 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2391 |  | 
|---|
| 2392 | yyrc = DosSetDateTime(a); | 
|---|
| 2393 | SetFS(sel); | 
|---|
| 2394 |  | 
|---|
| 2395 | return yyrc; | 
|---|
| 2396 | } | 
|---|
| 2397 |  | 
|---|
| 2398 | #undef  DosSetDateTime | 
|---|
| 2399 | #define DosSetDateTime _DosSetDateTime | 
|---|
| 2400 |  | 
|---|
| 2401 | inline ULONG _DosAsyncTimer(ULONG a, HSEM b, PHTIMER c) | 
|---|
| 2402 | { | 
|---|
| 2403 | ULONG yyrc; | 
|---|
| 2404 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2405 |  | 
|---|
| 2406 | yyrc = DosAsyncTimer(a, b, c); | 
|---|
| 2407 | SetFS(sel); | 
|---|
| 2408 |  | 
|---|
| 2409 | return yyrc; | 
|---|
| 2410 | } | 
|---|
| 2411 |  | 
|---|
| 2412 | #undef  DosAsyncTimer | 
|---|
| 2413 | #define DosAsyncTimer _DosAsyncTimer | 
|---|
| 2414 |  | 
|---|
| 2415 | inline ULONG _DosStartTimer(ULONG a, HSEM b, PHTIMER c) | 
|---|
| 2416 | { | 
|---|
| 2417 | ULONG yyrc; | 
|---|
| 2418 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2419 |  | 
|---|
| 2420 | yyrc = DosStartTimer(a, b, c); | 
|---|
| 2421 | SetFS(sel); | 
|---|
| 2422 |  | 
|---|
| 2423 | return yyrc; | 
|---|
| 2424 | } | 
|---|
| 2425 |  | 
|---|
| 2426 | #undef  DosStartTimer | 
|---|
| 2427 | #define DosStartTimer _DosStartTimer | 
|---|
| 2428 |  | 
|---|
| 2429 | inline ULONG _DosStopTimer(HTIMER a) | 
|---|
| 2430 | { | 
|---|
| 2431 | ULONG yyrc; | 
|---|
| 2432 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2433 |  | 
|---|
| 2434 | yyrc = DosStopTimer(a); | 
|---|
| 2435 | SetFS(sel); | 
|---|
| 2436 |  | 
|---|
| 2437 | return yyrc; | 
|---|
| 2438 | } | 
|---|
| 2439 |  | 
|---|
| 2440 | #undef  DosStopTimer | 
|---|
| 2441 | #define DosStopTimer _DosStopTimer | 
|---|
| 2442 |  | 
|---|
| 2443 | #endif | 
|---|
| 2444 | #ifdef DosTmrQueryFreq | 
|---|
| 2445 | inline ULONG _DosTmrQueryFreq(PULONG a) | 
|---|
| 2446 | { | 
|---|
| 2447 | ULONG yyrc; | 
|---|
| 2448 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2449 |  | 
|---|
| 2450 | yyrc = DosTmrQueryFreq(a); | 
|---|
| 2451 | SetFS(sel); | 
|---|
| 2452 |  | 
|---|
| 2453 | return yyrc; | 
|---|
| 2454 | } | 
|---|
| 2455 |  | 
|---|
| 2456 | #undef  DosTmrQueryFreq | 
|---|
| 2457 | #define DosTmrQueryFreq _DosTmrQueryFreq | 
|---|
| 2458 |  | 
|---|
| 2459 | inline ULONG _DosTmrQueryTime(PQWORD a) | 
|---|
| 2460 | { | 
|---|
| 2461 | ULONG yyrc; | 
|---|
| 2462 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2463 |  | 
|---|
| 2464 | yyrc = DosTmrQueryTime(a); | 
|---|
| 2465 | SetFS(sel); | 
|---|
| 2466 |  | 
|---|
| 2467 | return yyrc; | 
|---|
| 2468 | } | 
|---|
| 2469 |  | 
|---|
| 2470 | #undef  DosTmrQueryTime | 
|---|
| 2471 | #define DosTmrQueryTime _DosTmrQueryTime | 
|---|
| 2472 |  | 
|---|
| 2473 | #endif | 
|---|
| 2474 | #ifdef INCL_DOSMVDM | 
|---|
| 2475 | inline ULONG _DosCloseVDD(HVDD a) | 
|---|
| 2476 | { | 
|---|
| 2477 | ULONG yyrc; | 
|---|
| 2478 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2479 |  | 
|---|
| 2480 | yyrc = DosCloseVDD(a); | 
|---|
| 2481 | SetFS(sel); | 
|---|
| 2482 |  | 
|---|
| 2483 | return yyrc; | 
|---|
| 2484 | } | 
|---|
| 2485 |  | 
|---|
| 2486 | #undef  DosCloseVDD | 
|---|
| 2487 | #define DosCloseVDD _DosCloseVDD | 
|---|
| 2488 |  | 
|---|
| 2489 | inline ULONG _DosOpenVDD(PCSZ a, PHVDD b) | 
|---|
| 2490 | { | 
|---|
| 2491 | ULONG yyrc; | 
|---|
| 2492 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2493 |  | 
|---|
| 2494 | yyrc = DosOpenVDD(a, b); | 
|---|
| 2495 | SetFS(sel); | 
|---|
| 2496 |  | 
|---|
| 2497 | return yyrc; | 
|---|
| 2498 | } | 
|---|
| 2499 |  | 
|---|
| 2500 | #undef  DosOpenVDD | 
|---|
| 2501 | #define DosOpenVDD _DosOpenVDD | 
|---|
| 2502 |  | 
|---|
| 2503 | inline ULONG _DosQueryDOSProperty(SGID a, PCSZ b, ULONG c, PSZ d) | 
|---|
| 2504 | { | 
|---|
| 2505 | ULONG yyrc; | 
|---|
| 2506 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2507 |  | 
|---|
| 2508 | yyrc = DosQueryDOSProperty(a, b, c, d); | 
|---|
| 2509 | SetFS(sel); | 
|---|
| 2510 |  | 
|---|
| 2511 | return yyrc; | 
|---|
| 2512 | } | 
|---|
| 2513 |  | 
|---|
| 2514 | #undef  DosQueryDOSProperty | 
|---|
| 2515 | #define DosQueryDOSProperty _DosQueryDOSProperty | 
|---|
| 2516 |  | 
|---|
| 2517 | inline ULONG _DosRequestVDD(HVDD a, SGID b, ULONG c, ULONG d, PVOID e, ULONG f, PVOID g) | 
|---|
| 2518 | { | 
|---|
| 2519 | ULONG yyrc; | 
|---|
| 2520 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2521 |  | 
|---|
| 2522 | yyrc = DosRequestVDD(a, b, c, d, e, f, g); | 
|---|
| 2523 | SetFS(sel); | 
|---|
| 2524 |  | 
|---|
| 2525 | return yyrc; | 
|---|
| 2526 | } | 
|---|
| 2527 |  | 
|---|
| 2528 | #undef  DosRequestVDD | 
|---|
| 2529 | #define DosRequestVDD _DosRequestVDD | 
|---|
| 2530 |  | 
|---|
| 2531 | inline ULONG _DosSetDOSProperty(SGID a, PCSZ b, ULONG c, PCSZ d) | 
|---|
| 2532 | { | 
|---|
| 2533 | ULONG yyrc; | 
|---|
| 2534 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2535 |  | 
|---|
| 2536 | yyrc = DosSetDOSProperty(a, b, c, d); | 
|---|
| 2537 | SetFS(sel); | 
|---|
| 2538 |  | 
|---|
| 2539 | return yyrc; | 
|---|
| 2540 | } | 
|---|
| 2541 |  | 
|---|
| 2542 | #undef  DosSetDOSProperty | 
|---|
| 2543 | #define DosSetDOSProperty _DosSetDOSProperty | 
|---|
| 2544 |  | 
|---|
| 2545 | #endif | 
|---|
| 2546 | #ifdef INCL_DOSPROCESS | 
|---|
| 2547 | inline ULONG _DosDebug(uDB_t *a) | 
|---|
| 2548 | { | 
|---|
| 2549 | ULONG yyrc; | 
|---|
| 2550 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2551 |  | 
|---|
| 2552 | yyrc = DosDebug(a); | 
|---|
| 2553 | SetFS(sel); | 
|---|
| 2554 |  | 
|---|
| 2555 | return yyrc; | 
|---|
| 2556 | } | 
|---|
| 2557 |  | 
|---|
| 2558 | #undef  DosDebug | 
|---|
| 2559 | #define DosDebug _DosDebug | 
|---|
| 2560 |  | 
|---|
| 2561 | #endif | 
|---|
| 2562 | #ifdef INCL_DOSMISC | 
|---|
| 2563 | inline ULONG _DosGetMessage(PCHAR *a, ULONG b, PCHAR c, ULONG d, ULONG e, PCSZ f, PULONG g) | 
|---|
| 2564 | { | 
|---|
| 2565 | ULONG yyrc; | 
|---|
| 2566 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2567 |  | 
|---|
| 2568 | yyrc = DosGetMessage(a, b, c, d, e, f, g); | 
|---|
| 2569 | SetFS(sel); | 
|---|
| 2570 |  | 
|---|
| 2571 | return yyrc; | 
|---|
| 2572 | } | 
|---|
| 2573 |  | 
|---|
| 2574 | #undef  DosGetMessage | 
|---|
| 2575 | #define DosGetMessage _DosGetMessage | 
|---|
| 2576 |  | 
|---|
| 2577 | inline ULONG _DosInsertMessage(PCHAR *a, ULONG b, PCSZ c, ULONG d, PCHAR e, ULONG f, PULONG g) | 
|---|
| 2578 | { | 
|---|
| 2579 | ULONG yyrc; | 
|---|
| 2580 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2581 |  | 
|---|
| 2582 | yyrc = DosInsertMessage(a, b, c, d, e, f, g); | 
|---|
| 2583 | SetFS(sel); | 
|---|
| 2584 |  | 
|---|
| 2585 | return yyrc; | 
|---|
| 2586 | } | 
|---|
| 2587 |  | 
|---|
| 2588 | #undef  DosInsertMessage | 
|---|
| 2589 | #define DosInsertMessage _DosInsertMessage | 
|---|
| 2590 |  | 
|---|
| 2591 | inline ULONG _DosPutMessage(HFILE a, ULONG b, PCHAR c) | 
|---|
| 2592 | { | 
|---|
| 2593 | ULONG yyrc; | 
|---|
| 2594 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2595 |  | 
|---|
| 2596 | yyrc = DosPutMessage(a, b, c); | 
|---|
| 2597 | SetFS(sel); | 
|---|
| 2598 |  | 
|---|
| 2599 | return yyrc; | 
|---|
| 2600 | } | 
|---|
| 2601 |  | 
|---|
| 2602 | #undef  DosPutMessage | 
|---|
| 2603 | #define DosPutMessage _DosPutMessage | 
|---|
| 2604 |  | 
|---|
| 2605 | inline ULONG _DosQueryMessageCP(PCHAR a, ULONG b, PCSZ c, PULONG d) | 
|---|
| 2606 | { | 
|---|
| 2607 | ULONG yyrc; | 
|---|
| 2608 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2609 |  | 
|---|
| 2610 | yyrc = DosQueryMessageCP(a, b, c, d); | 
|---|
| 2611 | SetFS(sel); | 
|---|
| 2612 |  | 
|---|
| 2613 | return yyrc; | 
|---|
| 2614 | } | 
|---|
| 2615 |  | 
|---|
| 2616 | #undef  DosQueryMessageCP | 
|---|
| 2617 | #define DosQueryMessageCP _DosQueryMessageCP | 
|---|
| 2618 |  | 
|---|
| 2619 | #endif | 
|---|
| 2620 | #ifdef INCL_DOSRAS | 
|---|
| 2621 | inline ULONG _DosDumpProcess(ULONG a, ULONG b, PID c) | 
|---|
| 2622 | { | 
|---|
| 2623 | ULONG yyrc; | 
|---|
| 2624 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2625 |  | 
|---|
| 2626 | yyrc = DosDumpProcess(a, b, c); | 
|---|
| 2627 | SetFS(sel); | 
|---|
| 2628 |  | 
|---|
| 2629 | return yyrc; | 
|---|
| 2630 | } | 
|---|
| 2631 |  | 
|---|
| 2632 | #undef  DosDumpProcess | 
|---|
| 2633 | #define DosDumpProcess _DosDumpProcess | 
|---|
| 2634 |  | 
|---|
| 2635 | inline ULONG _DosForceSystemDump(ULONG a) | 
|---|
| 2636 | { | 
|---|
| 2637 | ULONG yyrc; | 
|---|
| 2638 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2639 |  | 
|---|
| 2640 | yyrc = DosForceSystemDump(a); | 
|---|
| 2641 | SetFS(sel); | 
|---|
| 2642 |  | 
|---|
| 2643 | return yyrc; | 
|---|
| 2644 | } | 
|---|
| 2645 |  | 
|---|
| 2646 | #undef  DosForceSystemDump | 
|---|
| 2647 | #define DosForceSystemDump _DosForceSystemDump | 
|---|
| 2648 |  | 
|---|
| 2649 | inline ULONG _DosQueryRASInfo(ULONG a, PPVOID b) | 
|---|
| 2650 | { | 
|---|
| 2651 | ULONG yyrc; | 
|---|
| 2652 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2653 |  | 
|---|
| 2654 | yyrc = DosQueryRASInfo(a, b); | 
|---|
| 2655 | SetFS(sel); | 
|---|
| 2656 |  | 
|---|
| 2657 | return yyrc; | 
|---|
| 2658 | } | 
|---|
| 2659 |  | 
|---|
| 2660 | #undef  DosQueryRASInfo | 
|---|
| 2661 | #define DosQueryRASInfo _DosQueryRASInfo | 
|---|
| 2662 |  | 
|---|
| 2663 | inline ULONG _DosSuppressPopUps(ULONG a, ULONG b) | 
|---|
| 2664 | { | 
|---|
| 2665 | ULONG yyrc; | 
|---|
| 2666 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2667 |  | 
|---|
| 2668 | yyrc = DosSuppressPopUps(a, b); | 
|---|
| 2669 | SetFS(sel); | 
|---|
| 2670 |  | 
|---|
| 2671 | return yyrc; | 
|---|
| 2672 | } | 
|---|
| 2673 |  | 
|---|
| 2674 | #undef  DosSuppressPopUps | 
|---|
| 2675 | #define DosSuppressPopUps _DosSuppressPopUps | 
|---|
| 2676 |  | 
|---|
| 2677 | #endif | 
|---|
| 2678 | #ifdef INCL_RXSUBCOM | 
|---|
| 2679 | inline ULONG _RexxDeregisterSubcom(PCSZ a, PCSZ b) | 
|---|
| 2680 | { | 
|---|
| 2681 | ULONG yyrc; | 
|---|
| 2682 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2683 |  | 
|---|
| 2684 | yyrc = RexxDeregisterSubcom(a, b); | 
|---|
| 2685 | SetFS(sel); | 
|---|
| 2686 |  | 
|---|
| 2687 | return yyrc; | 
|---|
| 2688 | } | 
|---|
| 2689 |  | 
|---|
| 2690 | #undef  RexxDeregisterSubcom | 
|---|
| 2691 | #define RexxDeregisterSubcom _RexxDeregisterSubcom | 
|---|
| 2692 |  | 
|---|
| 2693 | inline ULONG _RexxQuerySubcom(PCSZ a, PCSZ b, PUSHORT c, PUCHAR d) | 
|---|
| 2694 | { | 
|---|
| 2695 | ULONG yyrc; | 
|---|
| 2696 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2697 |  | 
|---|
| 2698 | yyrc = RexxQuerySubcom(a, b, c, d); | 
|---|
| 2699 | SetFS(sel); | 
|---|
| 2700 |  | 
|---|
| 2701 | return yyrc; | 
|---|
| 2702 | } | 
|---|
| 2703 |  | 
|---|
| 2704 | #undef  RexxQuerySubcom | 
|---|
| 2705 | #define RexxQuerySubcom _RexxQuerySubcom | 
|---|
| 2706 |  | 
|---|
| 2707 | inline ULONG _RexxRegisterSubcomDll(PCSZ a, PCSZ b, PCSZ c, PUCHAR d, ULONG e) | 
|---|
| 2708 | { | 
|---|
| 2709 | ULONG yyrc; | 
|---|
| 2710 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2711 |  | 
|---|
| 2712 | yyrc = RexxRegisterSubcomDll(a, b, c, d, e); | 
|---|
| 2713 | SetFS(sel); | 
|---|
| 2714 |  | 
|---|
| 2715 | return yyrc; | 
|---|
| 2716 | } | 
|---|
| 2717 |  | 
|---|
| 2718 | #undef  RexxRegisterSubcomDll | 
|---|
| 2719 | #define RexxRegisterSubcomDll _RexxRegisterSubcomDll | 
|---|
| 2720 |  | 
|---|
| 2721 | inline ULONG _RexxRegisterSubcomExe(PCSZ a, PFN b, PUCHAR c) | 
|---|
| 2722 | { | 
|---|
| 2723 | ULONG yyrc; | 
|---|
| 2724 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2725 |  | 
|---|
| 2726 | yyrc = RexxRegisterSubcomExe(a, b, c); | 
|---|
| 2727 | SetFS(sel); | 
|---|
| 2728 |  | 
|---|
| 2729 | return yyrc; | 
|---|
| 2730 | } | 
|---|
| 2731 |  | 
|---|
| 2732 | #undef  RexxRegisterSubcomExe | 
|---|
| 2733 | #define RexxRegisterSubcomExe _RexxRegisterSubcomExe | 
|---|
| 2734 |  | 
|---|
| 2735 | #endif | 
|---|
| 2736 | #ifdef INCL_RXSHV | 
|---|
| 2737 | inline ULONG _RexxVariablePool(PSHVBLOCK a) | 
|---|
| 2738 | { | 
|---|
| 2739 | ULONG yyrc; | 
|---|
| 2740 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2741 |  | 
|---|
| 2742 | yyrc = RexxVariablePool(a); | 
|---|
| 2743 | SetFS(sel); | 
|---|
| 2744 |  | 
|---|
| 2745 | return yyrc; | 
|---|
| 2746 | } | 
|---|
| 2747 |  | 
|---|
| 2748 | #undef  RexxVariablePool | 
|---|
| 2749 | #define RexxVariablePool _RexxVariablePool | 
|---|
| 2750 |  | 
|---|
| 2751 | #endif | 
|---|
| 2752 | #ifdef INCL_RXFUNC | 
|---|
| 2753 | inline ULONG _RexxDeregisterFunction(PCSZ a) | 
|---|
| 2754 | { | 
|---|
| 2755 | ULONG yyrc; | 
|---|
| 2756 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2757 |  | 
|---|
| 2758 | yyrc = RexxDeregisterFunction(a); | 
|---|
| 2759 | SetFS(sel); | 
|---|
| 2760 |  | 
|---|
| 2761 | return yyrc; | 
|---|
| 2762 | } | 
|---|
| 2763 |  | 
|---|
| 2764 | #undef  RexxDeregisterFunction | 
|---|
| 2765 | #define RexxDeregisterFunction _RexxDeregisterFunction | 
|---|
| 2766 |  | 
|---|
| 2767 | inline ULONG _RexxQueryFunction(PCSZ a) | 
|---|
| 2768 | { | 
|---|
| 2769 | ULONG yyrc; | 
|---|
| 2770 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2771 |  | 
|---|
| 2772 | yyrc = RexxQueryFunction(a); | 
|---|
| 2773 | SetFS(sel); | 
|---|
| 2774 |  | 
|---|
| 2775 | return yyrc; | 
|---|
| 2776 | } | 
|---|
| 2777 |  | 
|---|
| 2778 | #undef  RexxQueryFunction | 
|---|
| 2779 | #define RexxQueryFunction _RexxQueryFunction | 
|---|
| 2780 |  | 
|---|
| 2781 | inline ULONG _RexxRegisterFunctionDll(PCSZ a, PCSZ b, PCSZ c) | 
|---|
| 2782 | { | 
|---|
| 2783 | ULONG yyrc; | 
|---|
| 2784 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2785 |  | 
|---|
| 2786 | yyrc = RexxRegisterFunctionDll(a, b, c); | 
|---|
| 2787 | SetFS(sel); | 
|---|
| 2788 |  | 
|---|
| 2789 | return yyrc; | 
|---|
| 2790 | } | 
|---|
| 2791 |  | 
|---|
| 2792 | #undef  RexxRegisterFunctionDll | 
|---|
| 2793 | #define RexxRegisterFunctionDll _RexxRegisterFunctionDll | 
|---|
| 2794 |  | 
|---|
| 2795 | inline ULONG _RexxRegisterFunctionExe(PCSZ a, RexxFunctionHandler *b) | 
|---|
| 2796 | { | 
|---|
| 2797 | ULONG yyrc; | 
|---|
| 2798 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2799 |  | 
|---|
| 2800 | yyrc = RexxRegisterFunctionExe(a, b); | 
|---|
| 2801 | SetFS(sel); | 
|---|
| 2802 |  | 
|---|
| 2803 | return yyrc; | 
|---|
| 2804 | } | 
|---|
| 2805 |  | 
|---|
| 2806 | #undef  RexxRegisterFunctionExe | 
|---|
| 2807 | #define RexxRegisterFunctionExe _RexxRegisterFunctionExe | 
|---|
| 2808 |  | 
|---|
| 2809 | #endif | 
|---|
| 2810 | #ifdef INCL_RXSYSEXIT | 
|---|
| 2811 | inline ULONG _RexxDeregisterExit(PCSZ a, PCSZ b) | 
|---|
| 2812 | { | 
|---|
| 2813 | ULONG yyrc; | 
|---|
| 2814 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2815 |  | 
|---|
| 2816 | yyrc = RexxDeregisterExit(a, b); | 
|---|
| 2817 | SetFS(sel); | 
|---|
| 2818 |  | 
|---|
| 2819 | return yyrc; | 
|---|
| 2820 | } | 
|---|
| 2821 |  | 
|---|
| 2822 | #undef  RexxDeregisterExit | 
|---|
| 2823 | #define RexxDeregisterExit _RexxDeregisterExit | 
|---|
| 2824 |  | 
|---|
| 2825 | inline ULONG _RexxQueryExit(PCSZ a, PCSZ b, PUSHORT c, PUCHAR d) | 
|---|
| 2826 | { | 
|---|
| 2827 | ULONG yyrc; | 
|---|
| 2828 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2829 |  | 
|---|
| 2830 | yyrc = RexxQueryExit(a, b, c, d); | 
|---|
| 2831 | SetFS(sel); | 
|---|
| 2832 |  | 
|---|
| 2833 | return yyrc; | 
|---|
| 2834 | } | 
|---|
| 2835 |  | 
|---|
| 2836 | #undef  RexxQueryExit | 
|---|
| 2837 | #define RexxQueryExit _RexxQueryExit | 
|---|
| 2838 |  | 
|---|
| 2839 | inline ULONG _RexxRegisterExitDll(PCSZ a, PCSZ b, PCSZ c, PUCHAR d, ULONG e) | 
|---|
| 2840 | { | 
|---|
| 2841 | ULONG yyrc; | 
|---|
| 2842 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2843 |  | 
|---|
| 2844 | yyrc = RexxRegisterExitDll(a, b, c, d, e); | 
|---|
| 2845 | SetFS(sel); | 
|---|
| 2846 |  | 
|---|
| 2847 | return yyrc; | 
|---|
| 2848 | } | 
|---|
| 2849 |  | 
|---|
| 2850 | #undef  RexxRegisterExitDll | 
|---|
| 2851 | #define RexxRegisterExitDll _RexxRegisterExitDll | 
|---|
| 2852 |  | 
|---|
| 2853 | inline ULONG _RexxRegisterExitExe(PCSZ a, PFN b, PUCHAR c) | 
|---|
| 2854 | { | 
|---|
| 2855 | ULONG yyrc; | 
|---|
| 2856 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2857 |  | 
|---|
| 2858 | yyrc = RexxRegisterExitExe(a, b, c); | 
|---|
| 2859 | SetFS(sel); | 
|---|
| 2860 |  | 
|---|
| 2861 | return yyrc; | 
|---|
| 2862 | } | 
|---|
| 2863 |  | 
|---|
| 2864 | #undef  RexxRegisterExitExe | 
|---|
| 2865 | #define RexxRegisterExitExe _RexxRegisterExitExe | 
|---|
| 2866 |  | 
|---|
| 2867 | #endif | 
|---|
| 2868 | #ifdef INCL_RXARI | 
|---|
| 2869 | inline ULONG _RexxResetTrace(PID a, TID b) | 
|---|
| 2870 | { | 
|---|
| 2871 | ULONG yyrc; | 
|---|
| 2872 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2873 |  | 
|---|
| 2874 | yyrc = RexxResetTrace(a, b); | 
|---|
| 2875 | SetFS(sel); | 
|---|
| 2876 |  | 
|---|
| 2877 | return yyrc; | 
|---|
| 2878 | } | 
|---|
| 2879 |  | 
|---|
| 2880 | #undef  RexxResetTrace | 
|---|
| 2881 | #define RexxResetTrace _RexxResetTrace | 
|---|
| 2882 |  | 
|---|
| 2883 | inline ULONG _RexxSetHalt(PID a, TID b) | 
|---|
| 2884 | { | 
|---|
| 2885 | ULONG yyrc; | 
|---|
| 2886 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2887 |  | 
|---|
| 2888 | yyrc = RexxSetHalt(a, b); | 
|---|
| 2889 | SetFS(sel); | 
|---|
| 2890 |  | 
|---|
| 2891 | return yyrc; | 
|---|
| 2892 | } | 
|---|
| 2893 |  | 
|---|
| 2894 | #undef  RexxSetHalt | 
|---|
| 2895 | #define RexxSetHalt _RexxSetHalt | 
|---|
| 2896 |  | 
|---|
| 2897 | inline ULONG _RexxSetTrace(PID a, TID b) | 
|---|
| 2898 | { | 
|---|
| 2899 | ULONG yyrc; | 
|---|
| 2900 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2901 |  | 
|---|
| 2902 | yyrc = RexxSetTrace(a, b); | 
|---|
| 2903 | SetFS(sel); | 
|---|
| 2904 |  | 
|---|
| 2905 | return yyrc; | 
|---|
| 2906 | } | 
|---|
| 2907 |  | 
|---|
| 2908 | #undef  RexxSetTrace | 
|---|
| 2909 | #define RexxSetTrace _RexxSetTrace | 
|---|
| 2910 |  | 
|---|
| 2911 | #endif | 
|---|
| 2912 | #ifdef INCL_RXMACRO | 
|---|
| 2913 | inline ULONG _RexxAddMacro(PCSZ a, PCSZ b, ULONG c) | 
|---|
| 2914 | { | 
|---|
| 2915 | ULONG yyrc; | 
|---|
| 2916 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2917 |  | 
|---|
| 2918 | yyrc = RexxAddMacro(a, b, c); | 
|---|
| 2919 | SetFS(sel); | 
|---|
| 2920 |  | 
|---|
| 2921 | return yyrc; | 
|---|
| 2922 | } | 
|---|
| 2923 |  | 
|---|
| 2924 | #undef  RexxAddMacro | 
|---|
| 2925 | #define RexxAddMacro _RexxAddMacro | 
|---|
| 2926 |  | 
|---|
| 2927 | inline ULONG _RexxClearMacroSpace() | 
|---|
| 2928 | { | 
|---|
| 2929 | ULONG yyrc; | 
|---|
| 2930 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2931 |  | 
|---|
| 2932 | yyrc = RexxClearMacroSpace(); | 
|---|
| 2933 | SetFS(sel); | 
|---|
| 2934 |  | 
|---|
| 2935 | return yyrc; | 
|---|
| 2936 | } | 
|---|
| 2937 |  | 
|---|
| 2938 | #undef  RexxClearMacroSpace | 
|---|
| 2939 | #define RexxClearMacroSpace _RexxClearMacroSpace | 
|---|
| 2940 |  | 
|---|
| 2941 | inline ULONG _RexxDropMacro(PCSZ a) | 
|---|
| 2942 | { | 
|---|
| 2943 | ULONG yyrc; | 
|---|
| 2944 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2945 |  | 
|---|
| 2946 | yyrc = RexxDropMacro(a); | 
|---|
| 2947 | SetFS(sel); | 
|---|
| 2948 |  | 
|---|
| 2949 | return yyrc; | 
|---|
| 2950 | } | 
|---|
| 2951 |  | 
|---|
| 2952 | #undef  RexxDropMacro | 
|---|
| 2953 | #define RexxDropMacro _RexxDropMacro | 
|---|
| 2954 |  | 
|---|
| 2955 | inline ULONG _RexxLoadMacroSpace(ULONG a, PCSZ *b, PCSZ c) | 
|---|
| 2956 | { | 
|---|
| 2957 | ULONG yyrc; | 
|---|
| 2958 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2959 |  | 
|---|
| 2960 | yyrc = RexxLoadMacroSpace(a, b, c); | 
|---|
| 2961 | SetFS(sel); | 
|---|
| 2962 |  | 
|---|
| 2963 | return yyrc; | 
|---|
| 2964 | } | 
|---|
| 2965 |  | 
|---|
| 2966 | #undef  RexxLoadMacroSpace | 
|---|
| 2967 | #define RexxLoadMacroSpace _RexxLoadMacroSpace | 
|---|
| 2968 |  | 
|---|
| 2969 | inline ULONG _RexxQueryMacro(PCSZ a, PUSHORT b) | 
|---|
| 2970 | { | 
|---|
| 2971 | ULONG yyrc; | 
|---|
| 2972 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2973 |  | 
|---|
| 2974 | yyrc = RexxQueryMacro(a, b); | 
|---|
| 2975 | SetFS(sel); | 
|---|
| 2976 |  | 
|---|
| 2977 | return yyrc; | 
|---|
| 2978 | } | 
|---|
| 2979 |  | 
|---|
| 2980 | #undef  RexxQueryMacro | 
|---|
| 2981 | #define RexxQueryMacro _RexxQueryMacro | 
|---|
| 2982 |  | 
|---|
| 2983 | inline ULONG _RexxReorderMacro(PCSZ a, ULONG b) | 
|---|
| 2984 | { | 
|---|
| 2985 | ULONG yyrc; | 
|---|
| 2986 | USHORT sel = RestoreOS2FS(); | 
|---|
| 2987 |  | 
|---|
| 2988 | yyrc = RexxReorderMacro(a, b); | 
|---|
| 2989 | SetFS(sel); | 
|---|
| 2990 |  | 
|---|
| 2991 | return yyrc; | 
|---|
| 2992 | } | 
|---|
| 2993 |  | 
|---|
| 2994 | #undef  RexxReorderMacro | 
|---|
| 2995 | #define RexxReorderMacro _RexxReorderMacro | 
|---|
| 2996 |  | 
|---|
| 2997 | inline ULONG _RexxSaveMacroSpace(ULONG a, PCSZ *b, PCSZ c) | 
|---|
| 2998 | { | 
|---|
| 2999 | ULONG yyrc; | 
|---|
| 3000 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3001 |  | 
|---|
| 3002 | yyrc = RexxSaveMacroSpace(a, b, c); | 
|---|
| 3003 | SetFS(sel); | 
|---|
| 3004 |  | 
|---|
| 3005 | return yyrc; | 
|---|
| 3006 | } | 
|---|
| 3007 |  | 
|---|
| 3008 | #undef  RexxSaveMacroSpace | 
|---|
| 3009 | #define RexxSaveMacroSpace _RexxSaveMacroSpace | 
|---|
| 3010 |  | 
|---|
| 3011 | inline LONG _RexxStart(LONG a, PRXSTRING b, PCSZ c, PRXSTRING d, PCSZ e, LONG f, PRXSYSEXIT g, PSHORT h, PRXSTRING i) | 
|---|
| 3012 | { | 
|---|
| 3013 | LONG yyrc; | 
|---|
| 3014 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3015 |  | 
|---|
| 3016 | yyrc = RexxStart(a, b, c, d, e, f, g, h, i); | 
|---|
| 3017 | SetFS(sel); | 
|---|
| 3018 |  | 
|---|
| 3019 | return yyrc; | 
|---|
| 3020 | } | 
|---|
| 3021 |  | 
|---|
| 3022 | #undef  RexxStart | 
|---|
| 3023 | #define RexxStart _RexxStart | 
|---|
| 3024 |  | 
|---|
| 3025 | #endif | 
|---|
| 3026 | #ifdef INCL_WIN | 
|---|
| 3027 | #ifdef INCL_WINMESSAGEMGR | 
|---|
| 3028 | inline BOOL _WinCancelShutdown(HMQ a, BOOL b) | 
|---|
| 3029 | { | 
|---|
| 3030 | BOOL yyrc; | 
|---|
| 3031 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3032 |  | 
|---|
| 3033 | yyrc = WinCancelShutdown(a, b); | 
|---|
| 3034 | SetFS(sel); | 
|---|
| 3035 |  | 
|---|
| 3036 | return yyrc; | 
|---|
| 3037 | } | 
|---|
| 3038 |  | 
|---|
| 3039 | #undef  WinCancelShutdown | 
|---|
| 3040 | #define WinCancelShutdown _WinCancelShutdown | 
|---|
| 3041 |  | 
|---|
| 3042 | inline HMQ _WinCreateMsgQueue(HAB a, LONG b) | 
|---|
| 3043 | { | 
|---|
| 3044 | HMQ yyrc; | 
|---|
| 3045 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3046 |  | 
|---|
| 3047 | yyrc = WinCreateMsgQueue(a, b); | 
|---|
| 3048 | SetFS(sel); | 
|---|
| 3049 |  | 
|---|
| 3050 | return yyrc; | 
|---|
| 3051 | } | 
|---|
| 3052 |  | 
|---|
| 3053 | #undef  WinCreateMsgQueue | 
|---|
| 3054 | #define WinCreateMsgQueue _WinCreateMsgQueue | 
|---|
| 3055 |  | 
|---|
| 3056 | inline BOOL _WinDestroyMsgQueue(HMQ a) | 
|---|
| 3057 | { | 
|---|
| 3058 | BOOL yyrc; | 
|---|
| 3059 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3060 |  | 
|---|
| 3061 | yyrc = WinDestroyMsgQueue(a); | 
|---|
| 3062 | SetFS(sel); | 
|---|
| 3063 |  | 
|---|
| 3064 | return yyrc; | 
|---|
| 3065 | } | 
|---|
| 3066 |  | 
|---|
| 3067 | #undef  WinDestroyMsgQueue | 
|---|
| 3068 | #define WinDestroyMsgQueue _WinDestroyMsgQueue | 
|---|
| 3069 |  | 
|---|
| 3070 | inline MRESULT _WinDispatchMsg(HAB a, PQMSG b) | 
|---|
| 3071 | { | 
|---|
| 3072 | MRESULT yyrc; | 
|---|
| 3073 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3074 |  | 
|---|
| 3075 | yyrc = WinDispatchMsg(a, b); | 
|---|
| 3076 | SetFS(sel); | 
|---|
| 3077 |  | 
|---|
| 3078 | return yyrc; | 
|---|
| 3079 | } | 
|---|
| 3080 |  | 
|---|
| 3081 | #undef  WinDispatchMsg | 
|---|
| 3082 | #define WinDispatchMsg _WinDispatchMsg | 
|---|
| 3083 |  | 
|---|
| 3084 | inline BOOL _WinGetMsg(HAB a, PQMSG b, HWND c, ULONG d, ULONG e) | 
|---|
| 3085 | { | 
|---|
| 3086 | BOOL yyrc; | 
|---|
| 3087 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3088 |  | 
|---|
| 3089 | yyrc = WinGetMsg(a, b, c, d, e); | 
|---|
| 3090 | SetFS(sel); | 
|---|
| 3091 |  | 
|---|
| 3092 | return yyrc; | 
|---|
| 3093 | } | 
|---|
| 3094 |  | 
|---|
| 3095 | #undef  WinGetMsg | 
|---|
| 3096 | #define WinGetMsg _WinGetMsg | 
|---|
| 3097 |  | 
|---|
| 3098 | inline BOOL _WinLockInput(HMQ a, ULONG b) | 
|---|
| 3099 | { | 
|---|
| 3100 | BOOL yyrc; | 
|---|
| 3101 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3102 |  | 
|---|
| 3103 | yyrc = WinLockInput(a, b); | 
|---|
| 3104 | SetFS(sel); | 
|---|
| 3105 |  | 
|---|
| 3106 | return yyrc; | 
|---|
| 3107 | } | 
|---|
| 3108 |  | 
|---|
| 3109 | #undef  WinLockInput | 
|---|
| 3110 | #define WinLockInput _WinLockInput | 
|---|
| 3111 |  | 
|---|
| 3112 | inline BOOL _WinPeekMsg(HAB a, PQMSG b, HWND c, ULONG d, ULONG e, ULONG f) | 
|---|
| 3113 | { | 
|---|
| 3114 | BOOL yyrc; | 
|---|
| 3115 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3116 |  | 
|---|
| 3117 | yyrc = WinPeekMsg(a, b, c, d, e, f); | 
|---|
| 3118 | SetFS(sel); | 
|---|
| 3119 |  | 
|---|
| 3120 | return yyrc; | 
|---|
| 3121 | } | 
|---|
| 3122 |  | 
|---|
| 3123 | #undef  WinPeekMsg | 
|---|
| 3124 | #define WinPeekMsg _WinPeekMsg | 
|---|
| 3125 |  | 
|---|
| 3126 | inline BOOL _WinPostMsg(HWND a, ULONG b, MPARAM c, MPARAM d) | 
|---|
| 3127 | { | 
|---|
| 3128 | BOOL yyrc; | 
|---|
| 3129 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3130 |  | 
|---|
| 3131 | yyrc = WinPostMsg(a, b, c, d); | 
|---|
| 3132 | SetFS(sel); | 
|---|
| 3133 |  | 
|---|
| 3134 | return yyrc; | 
|---|
| 3135 | } | 
|---|
| 3136 |  | 
|---|
| 3137 | #undef  WinPostMsg | 
|---|
| 3138 | #define WinPostMsg _WinPostMsg | 
|---|
| 3139 |  | 
|---|
| 3140 | inline HMQ _WinQueueFromID(HAB a, PID b, TID c) | 
|---|
| 3141 | { | 
|---|
| 3142 | HMQ yyrc; | 
|---|
| 3143 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3144 |  | 
|---|
| 3145 | yyrc = WinQueueFromID(a, b, c); | 
|---|
| 3146 | SetFS(sel); | 
|---|
| 3147 |  | 
|---|
| 3148 | return yyrc; | 
|---|
| 3149 | } | 
|---|
| 3150 |  | 
|---|
| 3151 | #undef  WinQueueFromID | 
|---|
| 3152 | #define WinQueueFromID _WinQueueFromID | 
|---|
| 3153 |  | 
|---|
| 3154 | inline BOOL _WinQueryQueueInfo(HMQ a, PMQINFO b, ULONG c) | 
|---|
| 3155 | { | 
|---|
| 3156 | BOOL yyrc; | 
|---|
| 3157 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3158 |  | 
|---|
| 3159 | yyrc = WinQueryQueueInfo(a, b, c); | 
|---|
| 3160 | SetFS(sel); | 
|---|
| 3161 |  | 
|---|
| 3162 | return yyrc; | 
|---|
| 3163 | } | 
|---|
| 3164 |  | 
|---|
| 3165 | #undef  WinQueryQueueInfo | 
|---|
| 3166 | #define WinQueryQueueInfo _WinQueryQueueInfo | 
|---|
| 3167 |  | 
|---|
| 3168 | inline HMQ _WinQuerySendMsg(HAB a, HMQ b, HMQ c, PQMSG d) | 
|---|
| 3169 | { | 
|---|
| 3170 | HMQ yyrc; | 
|---|
| 3171 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3172 |  | 
|---|
| 3173 | yyrc = WinQuerySendMsg(a, b, c, d); | 
|---|
| 3174 | SetFS(sel); | 
|---|
| 3175 |  | 
|---|
| 3176 | return yyrc; | 
|---|
| 3177 | } | 
|---|
| 3178 |  | 
|---|
| 3179 | #undef  WinQuerySendMsg | 
|---|
| 3180 | #define WinQuerySendMsg _WinQuerySendMsg | 
|---|
| 3181 |  | 
|---|
| 3182 | inline BOOL _WinRegisterUserDatatype(HAB a, LONG b, LONG c, PLONG d) | 
|---|
| 3183 | { | 
|---|
| 3184 | BOOL yyrc; | 
|---|
| 3185 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3186 |  | 
|---|
| 3187 | yyrc = WinRegisterUserDatatype(a, b, c, d); | 
|---|
| 3188 | SetFS(sel); | 
|---|
| 3189 |  | 
|---|
| 3190 | return yyrc; | 
|---|
| 3191 | } | 
|---|
| 3192 |  | 
|---|
| 3193 | #undef  WinRegisterUserDatatype | 
|---|
| 3194 | #define WinRegisterUserDatatype _WinRegisterUserDatatype | 
|---|
| 3195 |  | 
|---|
| 3196 | inline BOOL _WinRegisterUserMsg(HAB a, ULONG b, LONG c, LONG d, LONG e, LONG f, LONG g) | 
|---|
| 3197 | { | 
|---|
| 3198 | BOOL yyrc; | 
|---|
| 3199 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3200 |  | 
|---|
| 3201 | yyrc = WinRegisterUserMsg(a, b, c, d, e, f, g); | 
|---|
| 3202 | SetFS(sel); | 
|---|
| 3203 |  | 
|---|
| 3204 | return yyrc; | 
|---|
| 3205 | } | 
|---|
| 3206 |  | 
|---|
| 3207 | #undef  WinRegisterUserMsg | 
|---|
| 3208 | #define WinRegisterUserMsg _WinRegisterUserMsg | 
|---|
| 3209 |  | 
|---|
| 3210 | inline BOOL _WinReplyMsg(HAB a, HMQ b, HMQ c, MRESULT d) | 
|---|
| 3211 | { | 
|---|
| 3212 | BOOL yyrc; | 
|---|
| 3213 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3214 |  | 
|---|
| 3215 | yyrc = WinReplyMsg(a, b, c, d); | 
|---|
| 3216 | SetFS(sel); | 
|---|
| 3217 |  | 
|---|
| 3218 | return yyrc; | 
|---|
| 3219 | } | 
|---|
| 3220 |  | 
|---|
| 3221 | #undef  WinReplyMsg | 
|---|
| 3222 | #define WinReplyMsg _WinReplyMsg | 
|---|
| 3223 |  | 
|---|
| 3224 | inline MRESULT _WinSendMsg(HWND a, ULONG b, MPARAM c, MPARAM d) | 
|---|
| 3225 | { | 
|---|
| 3226 | MRESULT yyrc; | 
|---|
| 3227 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3228 |  | 
|---|
| 3229 | yyrc = WinSendMsg(a, b, c, d); | 
|---|
| 3230 | SetFS(sel); | 
|---|
| 3231 |  | 
|---|
| 3232 | return yyrc; | 
|---|
| 3233 | } | 
|---|
| 3234 |  | 
|---|
| 3235 | #undef  WinSendMsg | 
|---|
| 3236 | #define WinSendMsg _WinSendMsg | 
|---|
| 3237 |  | 
|---|
| 3238 | inline BOOL _WinSetMsgMode(HAB a, PCSZ b, LONG c) | 
|---|
| 3239 | { | 
|---|
| 3240 | BOOL yyrc; | 
|---|
| 3241 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3242 |  | 
|---|
| 3243 | yyrc = WinSetMsgMode(a, b, c); | 
|---|
| 3244 | SetFS(sel); | 
|---|
| 3245 |  | 
|---|
| 3246 | return yyrc; | 
|---|
| 3247 | } | 
|---|
| 3248 |  | 
|---|
| 3249 | #undef  WinSetMsgMode | 
|---|
| 3250 | #define WinSetMsgMode _WinSetMsgMode | 
|---|
| 3251 |  | 
|---|
| 3252 | inline BOOL _WinSetSynchroMode(HAB a, LONG b) | 
|---|
| 3253 | { | 
|---|
| 3254 | BOOL yyrc; | 
|---|
| 3255 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3256 |  | 
|---|
| 3257 | yyrc = WinSetSynchroMode(a, b); | 
|---|
| 3258 | SetFS(sel); | 
|---|
| 3259 |  | 
|---|
| 3260 | return yyrc; | 
|---|
| 3261 | } | 
|---|
| 3262 |  | 
|---|
| 3263 | #undef  WinSetSynchroMode | 
|---|
| 3264 | #define WinSetSynchroMode _WinSetSynchroMode | 
|---|
| 3265 |  | 
|---|
| 3266 | inline BOOL _WinThreadAssocQueue(HAB a, HMQ b) | 
|---|
| 3267 | { | 
|---|
| 3268 | BOOL yyrc; | 
|---|
| 3269 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3270 |  | 
|---|
| 3271 | yyrc = WinThreadAssocQueue(a, b); | 
|---|
| 3272 | SetFS(sel); | 
|---|
| 3273 |  | 
|---|
| 3274 | return yyrc; | 
|---|
| 3275 | } | 
|---|
| 3276 |  | 
|---|
| 3277 | #undef  WinThreadAssocQueue | 
|---|
| 3278 | #define WinThreadAssocQueue _WinThreadAssocQueue | 
|---|
| 3279 |  | 
|---|
| 3280 | inline BOOL _WinWakeThread(HMQ a) | 
|---|
| 3281 | { | 
|---|
| 3282 | BOOL yyrc; | 
|---|
| 3283 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3284 |  | 
|---|
| 3285 | yyrc = WinWakeThread(a); | 
|---|
| 3286 | SetFS(sel); | 
|---|
| 3287 |  | 
|---|
| 3288 | return yyrc; | 
|---|
| 3289 | } | 
|---|
| 3290 |  | 
|---|
| 3291 | #undef  WinWakeThread | 
|---|
| 3292 | #define WinWakeThread _WinWakeThread | 
|---|
| 3293 |  | 
|---|
| 3294 | #endif | 
|---|
| 3295 | inline 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) | 
|---|
| 3296 | { | 
|---|
| 3297 | HWND yyrc; | 
|---|
| 3298 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3299 |  | 
|---|
| 3300 | yyrc = WinCreateWindow(a, b, c, d, e, f, g, h, i, j, k, l, m); | 
|---|
| 3301 | SetFS(sel); | 
|---|
| 3302 |  | 
|---|
| 3303 | return yyrc; | 
|---|
| 3304 | } | 
|---|
| 3305 |  | 
|---|
| 3306 | #undef  WinCreateWindow | 
|---|
| 3307 | #define WinCreateWindow _WinCreateWindow | 
|---|
| 3308 |  | 
|---|
| 3309 | inline BOOL _WinDrawBitmap(HPS a, HBITMAP b, PRECTL c, PPOINTL d, LONG e, LONG f, ULONG g) | 
|---|
| 3310 | { | 
|---|
| 3311 | BOOL yyrc; | 
|---|
| 3312 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3313 |  | 
|---|
| 3314 | yyrc = WinDrawBitmap(a, b, c, d, e, f, g); | 
|---|
| 3315 | SetFS(sel); | 
|---|
| 3316 |  | 
|---|
| 3317 | return yyrc; | 
|---|
| 3318 | } | 
|---|
| 3319 |  | 
|---|
| 3320 | #undef  WinDrawBitmap | 
|---|
| 3321 | #define WinDrawBitmap _WinDrawBitmap | 
|---|
| 3322 |  | 
|---|
| 3323 | inline BOOL _WinDrawBorder(HPS a, PRECTL b, LONG c, LONG d, LONG e, LONG f, ULONG g) | 
|---|
| 3324 | { | 
|---|
| 3325 | BOOL yyrc; | 
|---|
| 3326 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3327 |  | 
|---|
| 3328 | yyrc = WinDrawBorder(a, b, c, d, e, f, g); | 
|---|
| 3329 | SetFS(sel); | 
|---|
| 3330 |  | 
|---|
| 3331 | return yyrc; | 
|---|
| 3332 | } | 
|---|
| 3333 |  | 
|---|
| 3334 | #undef  WinDrawBorder | 
|---|
| 3335 | #define WinDrawBorder _WinDrawBorder | 
|---|
| 3336 |  | 
|---|
| 3337 | inline LONG _WinDrawText(HPS a, LONG b, PCH c, PRECTL d, LONG e, LONG f, ULONG g) | 
|---|
| 3338 | { | 
|---|
| 3339 | LONG yyrc; | 
|---|
| 3340 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3341 |  | 
|---|
| 3342 | yyrc = WinDrawText(a, b, c, d, e, f, g); | 
|---|
| 3343 | SetFS(sel); | 
|---|
| 3344 |  | 
|---|
| 3345 | return yyrc; | 
|---|
| 3346 | } | 
|---|
| 3347 |  | 
|---|
| 3348 | #undef  WinDrawText | 
|---|
| 3349 | #define WinDrawText _WinDrawText | 
|---|
| 3350 |  | 
|---|
| 3351 | inline BOOL _WinEnableWindow(HWND a, BOOL b) | 
|---|
| 3352 | { | 
|---|
| 3353 | BOOL yyrc; | 
|---|
| 3354 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3355 |  | 
|---|
| 3356 | yyrc = WinEnableWindow(a, b); | 
|---|
| 3357 | SetFS(sel); | 
|---|
| 3358 |  | 
|---|
| 3359 | return yyrc; | 
|---|
| 3360 | } | 
|---|
| 3361 |  | 
|---|
| 3362 | #undef  WinEnableWindow | 
|---|
| 3363 | #define WinEnableWindow _WinEnableWindow | 
|---|
| 3364 |  | 
|---|
| 3365 | inline BOOL _WinEnableWindowUpdate(HWND a, BOOL b) | 
|---|
| 3366 | { | 
|---|
| 3367 | BOOL yyrc; | 
|---|
| 3368 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3369 |  | 
|---|
| 3370 | yyrc = WinEnableWindowUpdate(a, b); | 
|---|
| 3371 | SetFS(sel); | 
|---|
| 3372 |  | 
|---|
| 3373 | return yyrc; | 
|---|
| 3374 | } | 
|---|
| 3375 |  | 
|---|
| 3376 | #undef  WinEnableWindowUpdate | 
|---|
| 3377 | #define WinEnableWindowUpdate _WinEnableWindowUpdate | 
|---|
| 3378 |  | 
|---|
| 3379 | inline BOOL _WinInvalidateRect(HWND a, PRECTL b, BOOL c) | 
|---|
| 3380 | { | 
|---|
| 3381 | BOOL yyrc; | 
|---|
| 3382 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3383 |  | 
|---|
| 3384 | yyrc = WinInvalidateRect(a, b, c); | 
|---|
| 3385 | SetFS(sel); | 
|---|
| 3386 |  | 
|---|
| 3387 | return yyrc; | 
|---|
| 3388 | } | 
|---|
| 3389 |  | 
|---|
| 3390 | #undef  WinInvalidateRect | 
|---|
| 3391 | #define WinInvalidateRect _WinInvalidateRect | 
|---|
| 3392 |  | 
|---|
| 3393 | inline BOOL _WinInvalidateRegion(HWND a, HRGN b, BOOL c) | 
|---|
| 3394 | { | 
|---|
| 3395 | BOOL yyrc; | 
|---|
| 3396 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3397 |  | 
|---|
| 3398 | yyrc = WinInvalidateRegion(a, b, c); | 
|---|
| 3399 | SetFS(sel); | 
|---|
| 3400 |  | 
|---|
| 3401 | return yyrc; | 
|---|
| 3402 | } | 
|---|
| 3403 |  | 
|---|
| 3404 | #undef  WinInvalidateRegion | 
|---|
| 3405 | #define WinInvalidateRegion _WinInvalidateRegion | 
|---|
| 3406 |  | 
|---|
| 3407 | inline BOOL _WinInvertRect(HPS a, PRECTL b) | 
|---|
| 3408 | { | 
|---|
| 3409 | BOOL yyrc; | 
|---|
| 3410 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3411 |  | 
|---|
| 3412 | yyrc = WinInvertRect(a, b); | 
|---|
| 3413 | SetFS(sel); | 
|---|
| 3414 |  | 
|---|
| 3415 | return yyrc; | 
|---|
| 3416 | } | 
|---|
| 3417 |  | 
|---|
| 3418 | #undef  WinInvertRect | 
|---|
| 3419 | #define WinInvertRect _WinInvertRect | 
|---|
| 3420 |  | 
|---|
| 3421 | inline BOOL _WinIsChild(HWND a, HWND b) | 
|---|
| 3422 | { | 
|---|
| 3423 | BOOL yyrc; | 
|---|
| 3424 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3425 |  | 
|---|
| 3426 | yyrc = WinIsChild(a, b); | 
|---|
| 3427 | SetFS(sel); | 
|---|
| 3428 |  | 
|---|
| 3429 | return yyrc; | 
|---|
| 3430 | } | 
|---|
| 3431 |  | 
|---|
| 3432 | #undef  WinIsChild | 
|---|
| 3433 | #define WinIsChild _WinIsChild | 
|---|
| 3434 |  | 
|---|
| 3435 | inline BOOL _WinIsWindow(HAB a, HWND b) | 
|---|
| 3436 | { | 
|---|
| 3437 | BOOL yyrc; | 
|---|
| 3438 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3439 |  | 
|---|
| 3440 | yyrc = WinIsWindow(a, b); | 
|---|
| 3441 | SetFS(sel); | 
|---|
| 3442 |  | 
|---|
| 3443 | return yyrc; | 
|---|
| 3444 | } | 
|---|
| 3445 |  | 
|---|
| 3446 | #undef  WinIsWindow | 
|---|
| 3447 | #define WinIsWindow _WinIsWindow | 
|---|
| 3448 |  | 
|---|
| 3449 | inline BOOL _WinIsWindowEnabled(HWND a) | 
|---|
| 3450 | { | 
|---|
| 3451 | BOOL yyrc; | 
|---|
| 3452 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3453 |  | 
|---|
| 3454 | yyrc = WinIsWindowEnabled(a); | 
|---|
| 3455 | SetFS(sel); | 
|---|
| 3456 |  | 
|---|
| 3457 | return yyrc; | 
|---|
| 3458 | } | 
|---|
| 3459 |  | 
|---|
| 3460 | #undef  WinIsWindowEnabled | 
|---|
| 3461 | #define WinIsWindowEnabled _WinIsWindowEnabled | 
|---|
| 3462 |  | 
|---|
| 3463 | inline BOOL _WinIsWindowVisible(HWND a) | 
|---|
| 3464 | { | 
|---|
| 3465 | BOOL yyrc; | 
|---|
| 3466 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3467 |  | 
|---|
| 3468 | yyrc = WinIsWindowVisible(a); | 
|---|
| 3469 | SetFS(sel); | 
|---|
| 3470 |  | 
|---|
| 3471 | return yyrc; | 
|---|
| 3472 | } | 
|---|
| 3473 |  | 
|---|
| 3474 | #undef  WinIsWindowVisible | 
|---|
| 3475 | #define WinIsWindowVisible _WinIsWindowVisible | 
|---|
| 3476 |  | 
|---|
| 3477 | inline LONG _WinLoadMessage(HAB a, HMODULE b, ULONG c, LONG d, PSZ e) | 
|---|
| 3478 | { | 
|---|
| 3479 | LONG yyrc; | 
|---|
| 3480 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3481 |  | 
|---|
| 3482 | yyrc = WinLoadMessage(a, b, c, d, e); | 
|---|
| 3483 | SetFS(sel); | 
|---|
| 3484 |  | 
|---|
| 3485 | return yyrc; | 
|---|
| 3486 | } | 
|---|
| 3487 |  | 
|---|
| 3488 | #undef  WinLoadMessage | 
|---|
| 3489 | #define WinLoadMessage _WinLoadMessage | 
|---|
| 3490 |  | 
|---|
| 3491 | inline LONG _WinLoadString(HAB a, HMODULE b, ULONG c, LONG d, PSZ e) | 
|---|
| 3492 | { | 
|---|
| 3493 | LONG yyrc; | 
|---|
| 3494 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3495 |  | 
|---|
| 3496 | yyrc = WinLoadString(a, b, c, d, e); | 
|---|
| 3497 | SetFS(sel); | 
|---|
| 3498 |  | 
|---|
| 3499 | return yyrc; | 
|---|
| 3500 | } | 
|---|
| 3501 |  | 
|---|
| 3502 | #undef  WinLoadString | 
|---|
| 3503 | #define WinLoadString _WinLoadString | 
|---|
| 3504 |  | 
|---|
| 3505 | inline LONG _WinMultWindowFromIDs(HWND a, PHWND b, ULONG c, ULONG d) | 
|---|
| 3506 | { | 
|---|
| 3507 | LONG yyrc; | 
|---|
| 3508 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3509 |  | 
|---|
| 3510 | yyrc = WinMultWindowFromIDs(a, b, c, d); | 
|---|
| 3511 | SetFS(sel); | 
|---|
| 3512 |  | 
|---|
| 3513 | return yyrc; | 
|---|
| 3514 | } | 
|---|
| 3515 |  | 
|---|
| 3516 | #undef  WinMultWindowFromIDs | 
|---|
| 3517 | #define WinMultWindowFromIDs _WinMultWindowFromIDs | 
|---|
| 3518 |  | 
|---|
| 3519 | inline HWND _WinQueryDesktopWindow(HAB a, HDC b) | 
|---|
| 3520 | { | 
|---|
| 3521 | HWND yyrc; | 
|---|
| 3522 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3523 |  | 
|---|
| 3524 | yyrc = WinQueryDesktopWindow(a, b); | 
|---|
| 3525 | SetFS(sel); | 
|---|
| 3526 |  | 
|---|
| 3527 | return yyrc; | 
|---|
| 3528 | } | 
|---|
| 3529 |  | 
|---|
| 3530 | #undef  WinQueryDesktopWindow | 
|---|
| 3531 | #define WinQueryDesktopWindow _WinQueryDesktopWindow | 
|---|
| 3532 |  | 
|---|
| 3533 | inline HWND _WinQueryObjectWindow(HWND a) | 
|---|
| 3534 | { | 
|---|
| 3535 | HWND yyrc; | 
|---|
| 3536 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3537 |  | 
|---|
| 3538 | yyrc = WinQueryObjectWindow(a); | 
|---|
| 3539 | SetFS(sel); | 
|---|
| 3540 |  | 
|---|
| 3541 | return yyrc; | 
|---|
| 3542 | } | 
|---|
| 3543 |  | 
|---|
| 3544 | #undef  WinQueryObjectWindow | 
|---|
| 3545 | #define WinQueryObjectWindow _WinQueryObjectWindow | 
|---|
| 3546 |  | 
|---|
| 3547 | inline HPOINTER _WinQueryPointer(HWND a) | 
|---|
| 3548 | { | 
|---|
| 3549 | HPOINTER yyrc; | 
|---|
| 3550 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3551 |  | 
|---|
| 3552 | yyrc = WinQueryPointer(a); | 
|---|
| 3553 | SetFS(sel); | 
|---|
| 3554 |  | 
|---|
| 3555 | return yyrc; | 
|---|
| 3556 | } | 
|---|
| 3557 |  | 
|---|
| 3558 | #undef  WinQueryPointer | 
|---|
| 3559 | #define WinQueryPointer _WinQueryPointer | 
|---|
| 3560 |  | 
|---|
| 3561 | inline HWND _WinQueryWindow(HWND a, LONG b) | 
|---|
| 3562 | { | 
|---|
| 3563 | HWND yyrc; | 
|---|
| 3564 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3565 |  | 
|---|
| 3566 | yyrc = WinQueryWindow(a, b); | 
|---|
| 3567 | SetFS(sel); | 
|---|
| 3568 |  | 
|---|
| 3569 | return yyrc; | 
|---|
| 3570 | } | 
|---|
| 3571 |  | 
|---|
| 3572 | #undef  WinQueryWindow | 
|---|
| 3573 | #define WinQueryWindow _WinQueryWindow | 
|---|
| 3574 |  | 
|---|
| 3575 | inline BOOL _WinQueryWindowPos(HWND a, PSWP b) | 
|---|
| 3576 | { | 
|---|
| 3577 | BOOL yyrc; | 
|---|
| 3578 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3579 |  | 
|---|
| 3580 | yyrc = WinQueryWindowPos(a, b); | 
|---|
| 3581 | SetFS(sel); | 
|---|
| 3582 |  | 
|---|
| 3583 | return yyrc; | 
|---|
| 3584 | } | 
|---|
| 3585 |  | 
|---|
| 3586 | #undef  WinQueryWindowPos | 
|---|
| 3587 | #define WinQueryWindowPos _WinQueryWindowPos | 
|---|
| 3588 |  | 
|---|
| 3589 | inline BOOL _WinQueryWindowProcess(HWND a, PPID b, PTID c) | 
|---|
| 3590 | { | 
|---|
| 3591 | BOOL yyrc; | 
|---|
| 3592 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3593 |  | 
|---|
| 3594 | yyrc = WinQueryWindowProcess(a, b, c); | 
|---|
| 3595 | SetFS(sel); | 
|---|
| 3596 |  | 
|---|
| 3597 | return yyrc; | 
|---|
| 3598 | } | 
|---|
| 3599 |  | 
|---|
| 3600 | #undef  WinQueryWindowProcess | 
|---|
| 3601 | #define WinQueryWindowProcess _WinQueryWindowProcess | 
|---|
| 3602 |  | 
|---|
| 3603 | inline LONG _WinQueryWindowText(HWND a, LONG b, PCH c) | 
|---|
| 3604 | { | 
|---|
| 3605 | LONG yyrc; | 
|---|
| 3606 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3607 |  | 
|---|
| 3608 | yyrc = WinQueryWindowText(a, b, c); | 
|---|
| 3609 | SetFS(sel); | 
|---|
| 3610 |  | 
|---|
| 3611 | return yyrc; | 
|---|
| 3612 | } | 
|---|
| 3613 |  | 
|---|
| 3614 | #undef  WinQueryWindowText | 
|---|
| 3615 | #define WinQueryWindowText _WinQueryWindowText | 
|---|
| 3616 |  | 
|---|
| 3617 | inline LONG _WinQueryWindowTextLength(HWND a) | 
|---|
| 3618 | { | 
|---|
| 3619 | LONG yyrc; | 
|---|
| 3620 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3621 |  | 
|---|
| 3622 | yyrc = WinQueryWindowTextLength(a); | 
|---|
| 3623 | SetFS(sel); | 
|---|
| 3624 |  | 
|---|
| 3625 | return yyrc; | 
|---|
| 3626 | } | 
|---|
| 3627 |  | 
|---|
| 3628 | #undef  WinQueryWindowTextLength | 
|---|
| 3629 | #define WinQueryWindowTextLength _WinQueryWindowTextLength | 
|---|
| 3630 |  | 
|---|
| 3631 | inline BOOL _WinSetMultWindowPos(HAB a, PSWP b, ULONG c) | 
|---|
| 3632 | { | 
|---|
| 3633 | BOOL yyrc; | 
|---|
| 3634 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3635 |  | 
|---|
| 3636 | yyrc = WinSetMultWindowPos(a, b, c); | 
|---|
| 3637 | SetFS(sel); | 
|---|
| 3638 |  | 
|---|
| 3639 | return yyrc; | 
|---|
| 3640 | } | 
|---|
| 3641 |  | 
|---|
| 3642 | #undef  WinSetMultWindowPos | 
|---|
| 3643 | #define WinSetMultWindowPos _WinSetMultWindowPos | 
|---|
| 3644 |  | 
|---|
| 3645 | inline BOOL _WinSetOwner(HWND a, HWND b) | 
|---|
| 3646 | { | 
|---|
| 3647 | BOOL yyrc; | 
|---|
| 3648 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3649 |  | 
|---|
| 3650 | yyrc = WinSetOwner(a, b); | 
|---|
| 3651 | SetFS(sel); | 
|---|
| 3652 |  | 
|---|
| 3653 | return yyrc; | 
|---|
| 3654 | } | 
|---|
| 3655 |  | 
|---|
| 3656 | #undef  WinSetOwner | 
|---|
| 3657 | #define WinSetOwner _WinSetOwner | 
|---|
| 3658 |  | 
|---|
| 3659 | inline BOOL _WinSetParent(HWND a, HWND b, BOOL c) | 
|---|
| 3660 | { | 
|---|
| 3661 | BOOL yyrc; | 
|---|
| 3662 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3663 |  | 
|---|
| 3664 | yyrc = WinSetParent(a, b, c); | 
|---|
| 3665 | SetFS(sel); | 
|---|
| 3666 |  | 
|---|
| 3667 | return yyrc; | 
|---|
| 3668 | } | 
|---|
| 3669 |  | 
|---|
| 3670 | #undef  WinSetParent | 
|---|
| 3671 | #define WinSetParent _WinSetParent | 
|---|
| 3672 |  | 
|---|
| 3673 | inline BOOL _WinSetWindowPos(HWND a, HWND b, LONG c, LONG d, LONG e, LONG f, ULONG g) | 
|---|
| 3674 | { | 
|---|
| 3675 | BOOL yyrc; | 
|---|
| 3676 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3677 |  | 
|---|
| 3678 | yyrc = WinSetWindowPos(a, b, c, d, e, f, g); | 
|---|
| 3679 | SetFS(sel); | 
|---|
| 3680 |  | 
|---|
| 3681 | return yyrc; | 
|---|
| 3682 | } | 
|---|
| 3683 |  | 
|---|
| 3684 | #undef  WinSetWindowPos | 
|---|
| 3685 | #define WinSetWindowPos _WinSetWindowPos | 
|---|
| 3686 |  | 
|---|
| 3687 | inline BOOL _WinSetWindowText(HWND a, PCSZ b) | 
|---|
| 3688 | { | 
|---|
| 3689 | BOOL yyrc; | 
|---|
| 3690 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3691 |  | 
|---|
| 3692 | yyrc = WinSetWindowText(a, b); | 
|---|
| 3693 | SetFS(sel); | 
|---|
| 3694 |  | 
|---|
| 3695 | return yyrc; | 
|---|
| 3696 | } | 
|---|
| 3697 |  | 
|---|
| 3698 | #undef  WinSetWindowText | 
|---|
| 3699 | #define WinSetWindowText _WinSetWindowText | 
|---|
| 3700 |  | 
|---|
| 3701 | inline BOOL _WinUpdateWindow(HWND a) | 
|---|
| 3702 | { | 
|---|
| 3703 | BOOL yyrc; | 
|---|
| 3704 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3705 |  | 
|---|
| 3706 | yyrc = WinUpdateWindow(a); | 
|---|
| 3707 | SetFS(sel); | 
|---|
| 3708 |  | 
|---|
| 3709 | return yyrc; | 
|---|
| 3710 | } | 
|---|
| 3711 |  | 
|---|
| 3712 | #undef  WinUpdateWindow | 
|---|
| 3713 | #define WinUpdateWindow _WinUpdateWindow | 
|---|
| 3714 |  | 
|---|
| 3715 | inline HWND _WinWindowFromID(HWND a, ULONG b) | 
|---|
| 3716 | { | 
|---|
| 3717 | HWND yyrc; | 
|---|
| 3718 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3719 |  | 
|---|
| 3720 | yyrc = WinWindowFromID(a, b); | 
|---|
| 3721 | SetFS(sel); | 
|---|
| 3722 |  | 
|---|
| 3723 | return yyrc; | 
|---|
| 3724 | } | 
|---|
| 3725 |  | 
|---|
| 3726 | #undef  WinWindowFromID | 
|---|
| 3727 | #define WinWindowFromID _WinWindowFromID | 
|---|
| 3728 |  | 
|---|
| 3729 | #ifdef INCL_WINFRAMEMGR | 
|---|
| 3730 | inline HWND _WinCreateStdWindow(HWND a, ULONG b, PULONG c, PCSZ d, PCSZ e, ULONG f, HMODULE g, ULONG h, PHWND i) | 
|---|
| 3731 | { | 
|---|
| 3732 | HWND yyrc; | 
|---|
| 3733 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3734 |  | 
|---|
| 3735 | yyrc = WinCreateStdWindow(a, b, c, d, e, f, g, h, i); | 
|---|
| 3736 | SetFS(sel); | 
|---|
| 3737 |  | 
|---|
| 3738 | return yyrc; | 
|---|
| 3739 | } | 
|---|
| 3740 |  | 
|---|
| 3741 | #undef  WinCreateStdWindow | 
|---|
| 3742 | #define WinCreateStdWindow _WinCreateStdWindow | 
|---|
| 3743 |  | 
|---|
| 3744 | inline BOOL _WinCalcFrameRect(HWND a, PRECTL b, BOOL c) | 
|---|
| 3745 | { | 
|---|
| 3746 | BOOL yyrc; | 
|---|
| 3747 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3748 |  | 
|---|
| 3749 | yyrc = WinCalcFrameRect(a, b, c); | 
|---|
| 3750 | SetFS(sel); | 
|---|
| 3751 |  | 
|---|
| 3752 | return yyrc; | 
|---|
| 3753 | } | 
|---|
| 3754 |  | 
|---|
| 3755 | #undef  WinCalcFrameRect | 
|---|
| 3756 | #define WinCalcFrameRect _WinCalcFrameRect | 
|---|
| 3757 |  | 
|---|
| 3758 | inline BOOL _WinCreateFrameControls(HWND a, PFRAMECDATA b, PCSZ c) | 
|---|
| 3759 | { | 
|---|
| 3760 | BOOL yyrc; | 
|---|
| 3761 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3762 |  | 
|---|
| 3763 | yyrc = WinCreateFrameControls(a, b, c); | 
|---|
| 3764 | SetFS(sel); | 
|---|
| 3765 |  | 
|---|
| 3766 | return yyrc; | 
|---|
| 3767 | } | 
|---|
| 3768 |  | 
|---|
| 3769 | #undef  WinCreateFrameControls | 
|---|
| 3770 | #define WinCreateFrameControls _WinCreateFrameControls | 
|---|
| 3771 |  | 
|---|
| 3772 | inline BOOL _WinFlashWindow(HWND a, BOOL b) | 
|---|
| 3773 | { | 
|---|
| 3774 | BOOL yyrc; | 
|---|
| 3775 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3776 |  | 
|---|
| 3777 | yyrc = WinFlashWindow(a, b); | 
|---|
| 3778 | SetFS(sel); | 
|---|
| 3779 |  | 
|---|
| 3780 | return yyrc; | 
|---|
| 3781 | } | 
|---|
| 3782 |  | 
|---|
| 3783 | #undef  WinFlashWindow | 
|---|
| 3784 | #define WinFlashWindow _WinFlashWindow | 
|---|
| 3785 |  | 
|---|
| 3786 | inline BOOL _WinGetMaxPosition(HWND a, PSWP b) | 
|---|
| 3787 | { | 
|---|
| 3788 | BOOL yyrc; | 
|---|
| 3789 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3790 |  | 
|---|
| 3791 | yyrc = WinGetMaxPosition(a, b); | 
|---|
| 3792 | SetFS(sel); | 
|---|
| 3793 |  | 
|---|
| 3794 | return yyrc; | 
|---|
| 3795 | } | 
|---|
| 3796 |  | 
|---|
| 3797 | #undef  WinGetMaxPosition | 
|---|
| 3798 | #define WinGetMaxPosition _WinGetMaxPosition | 
|---|
| 3799 |  | 
|---|
| 3800 | inline BOOL _WinGetMinPosition(HWND a, PSWP b, PPOINTL c) | 
|---|
| 3801 | { | 
|---|
| 3802 | BOOL yyrc; | 
|---|
| 3803 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3804 |  | 
|---|
| 3805 | yyrc = WinGetMinPosition(a, b, c); | 
|---|
| 3806 | SetFS(sel); | 
|---|
| 3807 |  | 
|---|
| 3808 | return yyrc; | 
|---|
| 3809 | } | 
|---|
| 3810 |  | 
|---|
| 3811 | #undef  WinGetMinPosition | 
|---|
| 3812 | #define WinGetMinPosition _WinGetMinPosition | 
|---|
| 3813 |  | 
|---|
| 3814 | inline BOOL _WinSaveWindowPos(HSAVEWP a, PSWP b, ULONG c) | 
|---|
| 3815 | { | 
|---|
| 3816 | BOOL yyrc; | 
|---|
| 3817 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3818 |  | 
|---|
| 3819 | yyrc = WinSaveWindowPos(a, b, c); | 
|---|
| 3820 | SetFS(sel); | 
|---|
| 3821 |  | 
|---|
| 3822 | return yyrc; | 
|---|
| 3823 | } | 
|---|
| 3824 |  | 
|---|
| 3825 | #undef  WinSaveWindowPos | 
|---|
| 3826 | #define WinSaveWindowPos _WinSaveWindowPos | 
|---|
| 3827 |  | 
|---|
| 3828 | #endif | 
|---|
| 3829 | #ifdef INCL_WINWINDOWMGR | 
|---|
| 3830 | inline HPS _WinBeginPaint(HWND a, HPS b, PRECTL c) | 
|---|
| 3831 | { | 
|---|
| 3832 | HPS yyrc; | 
|---|
| 3833 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3834 |  | 
|---|
| 3835 | yyrc = WinBeginPaint(a, b, c); | 
|---|
| 3836 | SetFS(sel); | 
|---|
| 3837 |  | 
|---|
| 3838 | return yyrc; | 
|---|
| 3839 | } | 
|---|
| 3840 |  | 
|---|
| 3841 | #undef  WinBeginPaint | 
|---|
| 3842 | #define WinBeginPaint _WinBeginPaint | 
|---|
| 3843 |  | 
|---|
| 3844 | inline MRESULT _WinDefWindowProc(HWND a, ULONG b, MPARAM c, MPARAM d) | 
|---|
| 3845 | { | 
|---|
| 3846 | MRESULT yyrc; | 
|---|
| 3847 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3848 |  | 
|---|
| 3849 | yyrc = WinDefWindowProc(a, b, c, d); | 
|---|
| 3850 | SetFS(sel); | 
|---|
| 3851 |  | 
|---|
| 3852 | return yyrc; | 
|---|
| 3853 | } | 
|---|
| 3854 |  | 
|---|
| 3855 | #undef  WinDefWindowProc | 
|---|
| 3856 | #define WinDefWindowProc _WinDefWindowProc | 
|---|
| 3857 |  | 
|---|
| 3858 | inline BOOL _WinDestroyWindow(HWND a) | 
|---|
| 3859 | { | 
|---|
| 3860 | BOOL yyrc; | 
|---|
| 3861 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3862 |  | 
|---|
| 3863 | yyrc = WinDestroyWindow(a); | 
|---|
| 3864 | SetFS(sel); | 
|---|
| 3865 |  | 
|---|
| 3866 | return yyrc; | 
|---|
| 3867 | } | 
|---|
| 3868 |  | 
|---|
| 3869 | #undef  WinDestroyWindow | 
|---|
| 3870 | #define WinDestroyWindow _WinDestroyWindow | 
|---|
| 3871 |  | 
|---|
| 3872 | inline BOOL _WinEndPaint(HPS a) | 
|---|
| 3873 | { | 
|---|
| 3874 | BOOL yyrc; | 
|---|
| 3875 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3876 |  | 
|---|
| 3877 | yyrc = WinEndPaint(a); | 
|---|
| 3878 | SetFS(sel); | 
|---|
| 3879 |  | 
|---|
| 3880 | return yyrc; | 
|---|
| 3881 | } | 
|---|
| 3882 |  | 
|---|
| 3883 | #undef  WinEndPaint | 
|---|
| 3884 | #define WinEndPaint _WinEndPaint | 
|---|
| 3885 |  | 
|---|
| 3886 | inline BOOL _WinFillRect(HPS a, PRECTL b, LONG c) | 
|---|
| 3887 | { | 
|---|
| 3888 | BOOL yyrc; | 
|---|
| 3889 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3890 |  | 
|---|
| 3891 | yyrc = WinFillRect(a, b, c); | 
|---|
| 3892 | SetFS(sel); | 
|---|
| 3893 |  | 
|---|
| 3894 | return yyrc; | 
|---|
| 3895 | } | 
|---|
| 3896 |  | 
|---|
| 3897 | #undef  WinFillRect | 
|---|
| 3898 | #define WinFillRect _WinFillRect | 
|---|
| 3899 |  | 
|---|
| 3900 | inline HPS _WinGetClipPS(HWND a, HWND b, ULONG c) | 
|---|
| 3901 | { | 
|---|
| 3902 | HPS yyrc; | 
|---|
| 3903 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3904 |  | 
|---|
| 3905 | yyrc = WinGetClipPS(a, b, c); | 
|---|
| 3906 | SetFS(sel); | 
|---|
| 3907 |  | 
|---|
| 3908 | return yyrc; | 
|---|
| 3909 | } | 
|---|
| 3910 |  | 
|---|
| 3911 | #undef  WinGetClipPS | 
|---|
| 3912 | #define WinGetClipPS _WinGetClipPS | 
|---|
| 3913 |  | 
|---|
| 3914 | inline HPS _WinGetPS(HWND a) | 
|---|
| 3915 | { | 
|---|
| 3916 | HPS yyrc; | 
|---|
| 3917 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3918 |  | 
|---|
| 3919 | yyrc = WinGetPS(a); | 
|---|
| 3920 | SetFS(sel); | 
|---|
| 3921 |  | 
|---|
| 3922 | return yyrc; | 
|---|
| 3923 | } | 
|---|
| 3924 |  | 
|---|
| 3925 | #undef  WinGetPS | 
|---|
| 3926 | #define WinGetPS _WinGetPS | 
|---|
| 3927 |  | 
|---|
| 3928 | inline HAB _WinInitialize(ULONG a) | 
|---|
| 3929 | { | 
|---|
| 3930 | HAB yyrc; | 
|---|
| 3931 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3932 |  | 
|---|
| 3933 | yyrc = WinInitialize(a); | 
|---|
| 3934 | SetFS(sel); | 
|---|
| 3935 |  | 
|---|
| 3936 | return yyrc; | 
|---|
| 3937 | } | 
|---|
| 3938 |  | 
|---|
| 3939 | #undef  WinInitialize | 
|---|
| 3940 | #define WinInitialize _WinInitialize | 
|---|
| 3941 |  | 
|---|
| 3942 | inline BOOL _WinIsWindowShowing(HWND a) | 
|---|
| 3943 | { | 
|---|
| 3944 | BOOL yyrc; | 
|---|
| 3945 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3946 |  | 
|---|
| 3947 | yyrc = WinIsWindowShowing(a); | 
|---|
| 3948 | SetFS(sel); | 
|---|
| 3949 |  | 
|---|
| 3950 | return yyrc; | 
|---|
| 3951 | } | 
|---|
| 3952 |  | 
|---|
| 3953 | #undef  WinIsWindowShowing | 
|---|
| 3954 | #define WinIsWindowShowing _WinIsWindowShowing | 
|---|
| 3955 |  | 
|---|
| 3956 | inline HDC _WinOpenWindowDC(HWND a) | 
|---|
| 3957 | { | 
|---|
| 3958 | HDC yyrc; | 
|---|
| 3959 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3960 |  | 
|---|
| 3961 | yyrc = WinOpenWindowDC(a); | 
|---|
| 3962 | SetFS(sel); | 
|---|
| 3963 |  | 
|---|
| 3964 | return yyrc; | 
|---|
| 3965 | } | 
|---|
| 3966 |  | 
|---|
| 3967 | #undef  WinOpenWindowDC | 
|---|
| 3968 | #define WinOpenWindowDC _WinOpenWindowDC | 
|---|
| 3969 |  | 
|---|
| 3970 | inline HAB _WinQueryAnchorBlock(HWND a) | 
|---|
| 3971 | { | 
|---|
| 3972 | HAB yyrc; | 
|---|
| 3973 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3974 |  | 
|---|
| 3975 | yyrc = WinQueryAnchorBlock(a); | 
|---|
| 3976 | SetFS(sel); | 
|---|
| 3977 |  | 
|---|
| 3978 | return yyrc; | 
|---|
| 3979 | } | 
|---|
| 3980 |  | 
|---|
| 3981 | #undef  WinQueryAnchorBlock | 
|---|
| 3982 | #define WinQueryAnchorBlock _WinQueryAnchorBlock | 
|---|
| 3983 |  | 
|---|
| 3984 | inline ULONG _WinQueryVersion(HAB a) | 
|---|
| 3985 | { | 
|---|
| 3986 | ULONG yyrc; | 
|---|
| 3987 | USHORT sel = RestoreOS2FS(); | 
|---|
| 3988 |  | 
|---|
| 3989 | yyrc = WinQueryVersion(a); | 
|---|
| 3990 | SetFS(sel); | 
|---|
| 3991 |  | 
|---|
| 3992 | return yyrc; | 
|---|
| 3993 | } | 
|---|
| 3994 |  | 
|---|
| 3995 | #undef  WinQueryVersion | 
|---|
| 3996 | #define WinQueryVersion _WinQueryVersion | 
|---|
| 3997 |  | 
|---|
| 3998 | inline BOOL _WinQueryWindowRect(HWND a, PRECTL b) | 
|---|
| 3999 | { | 
|---|
| 4000 | BOOL yyrc; | 
|---|
| 4001 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4002 |  | 
|---|
| 4003 | yyrc = WinQueryWindowRect(a, b); | 
|---|
| 4004 | SetFS(sel); | 
|---|
| 4005 |  | 
|---|
| 4006 | return yyrc; | 
|---|
| 4007 | } | 
|---|
| 4008 |  | 
|---|
| 4009 | #undef  WinQueryWindowRect | 
|---|
| 4010 | #define WinQueryWindowRect _WinQueryWindowRect | 
|---|
| 4011 |  | 
|---|
| 4012 | inline BOOL _WinRegisterClass(HAB a, PCSZ b, PFNWP c, ULONG d, ULONG e) | 
|---|
| 4013 | { | 
|---|
| 4014 | BOOL yyrc; | 
|---|
| 4015 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4016 |  | 
|---|
| 4017 | yyrc = WinRegisterClass(a, b, c, d, e); | 
|---|
| 4018 | SetFS(sel); | 
|---|
| 4019 |  | 
|---|
| 4020 | return yyrc; | 
|---|
| 4021 | } | 
|---|
| 4022 |  | 
|---|
| 4023 | #undef  WinRegisterClass | 
|---|
| 4024 | #define WinRegisterClass _WinRegisterClass | 
|---|
| 4025 |  | 
|---|
| 4026 | inline BOOL _WinReleasePS(HPS a) | 
|---|
| 4027 | { | 
|---|
| 4028 | BOOL yyrc; | 
|---|
| 4029 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4030 |  | 
|---|
| 4031 | yyrc = WinReleasePS(a); | 
|---|
| 4032 | SetFS(sel); | 
|---|
| 4033 |  | 
|---|
| 4034 | return yyrc; | 
|---|
| 4035 | } | 
|---|
| 4036 |  | 
|---|
| 4037 | #undef  WinReleasePS | 
|---|
| 4038 | #define WinReleasePS _WinReleasePS | 
|---|
| 4039 |  | 
|---|
| 4040 | inline LONG _WinScrollWindow(HWND a, LONG b, LONG c, PRECTL d, PRECTL e, HRGN f, PRECTL g, ULONG h) | 
|---|
| 4041 | { | 
|---|
| 4042 | LONG yyrc; | 
|---|
| 4043 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4044 |  | 
|---|
| 4045 | yyrc = WinScrollWindow(a, b, c, d, e, f, g, h); | 
|---|
| 4046 | SetFS(sel); | 
|---|
| 4047 |  | 
|---|
| 4048 | return yyrc; | 
|---|
| 4049 | } | 
|---|
| 4050 |  | 
|---|
| 4051 | #undef  WinScrollWindow | 
|---|
| 4052 | #define WinScrollWindow _WinScrollWindow | 
|---|
| 4053 |  | 
|---|
| 4054 | inline BOOL _WinSetActiveWindow(HWND a, HWND b) | 
|---|
| 4055 | { | 
|---|
| 4056 | BOOL yyrc; | 
|---|
| 4057 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4058 |  | 
|---|
| 4059 | yyrc = WinSetActiveWindow(a, b); | 
|---|
| 4060 | SetFS(sel); | 
|---|
| 4061 |  | 
|---|
| 4062 | return yyrc; | 
|---|
| 4063 | } | 
|---|
| 4064 |  | 
|---|
| 4065 | #undef  WinSetActiveWindow | 
|---|
| 4066 | #define WinSetActiveWindow _WinSetActiveWindow | 
|---|
| 4067 |  | 
|---|
| 4068 | inline BOOL _WinShowWindow(HWND a, BOOL b) | 
|---|
| 4069 | { | 
|---|
| 4070 | BOOL yyrc; | 
|---|
| 4071 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4072 |  | 
|---|
| 4073 | yyrc = WinShowWindow(a, b); | 
|---|
| 4074 | SetFS(sel); | 
|---|
| 4075 |  | 
|---|
| 4076 | return yyrc; | 
|---|
| 4077 | } | 
|---|
| 4078 |  | 
|---|
| 4079 | #undef  WinShowWindow | 
|---|
| 4080 | #define WinShowWindow _WinShowWindow | 
|---|
| 4081 |  | 
|---|
| 4082 | inline BOOL _WinTerminate(HAB a) | 
|---|
| 4083 | { | 
|---|
| 4084 | BOOL yyrc; | 
|---|
| 4085 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4086 |  | 
|---|
| 4087 | yyrc = WinTerminate(a); | 
|---|
| 4088 | SetFS(sel); | 
|---|
| 4089 |  | 
|---|
| 4090 | return yyrc; | 
|---|
| 4091 | } | 
|---|
| 4092 |  | 
|---|
| 4093 | #undef  WinTerminate | 
|---|
| 4094 | #define WinTerminate _WinTerminate | 
|---|
| 4095 |  | 
|---|
| 4096 | #endif | 
|---|
| 4097 | #ifdef INCL_WINWINDOWMGR | 
|---|
| 4098 | inline HENUM _WinBeginEnumWindows(HWND a) | 
|---|
| 4099 | { | 
|---|
| 4100 | HENUM yyrc; | 
|---|
| 4101 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4102 |  | 
|---|
| 4103 | yyrc = WinBeginEnumWindows(a); | 
|---|
| 4104 | SetFS(sel); | 
|---|
| 4105 |  | 
|---|
| 4106 | return yyrc; | 
|---|
| 4107 | } | 
|---|
| 4108 |  | 
|---|
| 4109 | #undef  WinBeginEnumWindows | 
|---|
| 4110 | #define WinBeginEnumWindows _WinBeginEnumWindows | 
|---|
| 4111 |  | 
|---|
| 4112 | inline BOOL _WinEndEnumWindows(HENUM a) | 
|---|
| 4113 | { | 
|---|
| 4114 | BOOL yyrc; | 
|---|
| 4115 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4116 |  | 
|---|
| 4117 | yyrc = WinEndEnumWindows(a); | 
|---|
| 4118 | SetFS(sel); | 
|---|
| 4119 |  | 
|---|
| 4120 | return yyrc; | 
|---|
| 4121 | } | 
|---|
| 4122 |  | 
|---|
| 4123 | #undef  WinEndEnumWindows | 
|---|
| 4124 | #define WinEndEnumWindows _WinEndEnumWindows | 
|---|
| 4125 |  | 
|---|
| 4126 | inline LONG _WinExcludeUpdateRegion(HPS a, HWND b) | 
|---|
| 4127 | { | 
|---|
| 4128 | LONG yyrc; | 
|---|
| 4129 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4130 |  | 
|---|
| 4131 | yyrc = WinExcludeUpdateRegion(a, b); | 
|---|
| 4132 | SetFS(sel); | 
|---|
| 4133 |  | 
|---|
| 4134 | return yyrc; | 
|---|
| 4135 | } | 
|---|
| 4136 |  | 
|---|
| 4137 | #undef  WinExcludeUpdateRegion | 
|---|
| 4138 | #define WinExcludeUpdateRegion _WinExcludeUpdateRegion | 
|---|
| 4139 |  | 
|---|
| 4140 | inline HWND _WinGetNextWindow(HENUM a) | 
|---|
| 4141 | { | 
|---|
| 4142 | HWND yyrc; | 
|---|
| 4143 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4144 |  | 
|---|
| 4145 | yyrc = WinGetNextWindow(a); | 
|---|
| 4146 | SetFS(sel); | 
|---|
| 4147 |  | 
|---|
| 4148 | return yyrc; | 
|---|
| 4149 | } | 
|---|
| 4150 |  | 
|---|
| 4151 | #undef  WinGetNextWindow | 
|---|
| 4152 | #define WinGetNextWindow _WinGetNextWindow | 
|---|
| 4153 |  | 
|---|
| 4154 | inline HPS _WinGetScreenPS(HWND a) | 
|---|
| 4155 | { | 
|---|
| 4156 | HPS yyrc; | 
|---|
| 4157 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4158 |  | 
|---|
| 4159 | yyrc = WinGetScreenPS(a); | 
|---|
| 4160 | SetFS(sel); | 
|---|
| 4161 |  | 
|---|
| 4162 | return yyrc; | 
|---|
| 4163 | } | 
|---|
| 4164 |  | 
|---|
| 4165 | #undef  WinGetScreenPS | 
|---|
| 4166 | #define WinGetScreenPS _WinGetScreenPS | 
|---|
| 4167 |  | 
|---|
| 4168 | inline BOOL _WinIsThreadActive(HAB a) | 
|---|
| 4169 | { | 
|---|
| 4170 | BOOL yyrc; | 
|---|
| 4171 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4172 |  | 
|---|
| 4173 | yyrc = WinIsThreadActive(a); | 
|---|
| 4174 | SetFS(sel); | 
|---|
| 4175 |  | 
|---|
| 4176 | return yyrc; | 
|---|
| 4177 | } | 
|---|
| 4178 |  | 
|---|
| 4179 | #undef  WinIsThreadActive | 
|---|
| 4180 | #define WinIsThreadActive _WinIsThreadActive | 
|---|
| 4181 |  | 
|---|
| 4182 | inline BOOL _WinLockVisRegions(HWND a, BOOL b) | 
|---|
| 4183 | { | 
|---|
| 4184 | BOOL yyrc; | 
|---|
| 4185 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4186 |  | 
|---|
| 4187 | yyrc = WinLockVisRegions(a, b); | 
|---|
| 4188 | SetFS(sel); | 
|---|
| 4189 |  | 
|---|
| 4190 | return yyrc; | 
|---|
| 4191 | } | 
|---|
| 4192 |  | 
|---|
| 4193 | #undef  WinLockVisRegions | 
|---|
| 4194 | #define WinLockVisRegions _WinLockVisRegions | 
|---|
| 4195 |  | 
|---|
| 4196 | inline BOOL _WinLockWindowUpdate(HWND a, HWND b) | 
|---|
| 4197 | { | 
|---|
| 4198 | BOOL yyrc; | 
|---|
| 4199 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4200 |  | 
|---|
| 4201 | yyrc = WinLockWindowUpdate(a, b); | 
|---|
| 4202 | SetFS(sel); | 
|---|
| 4203 |  | 
|---|
| 4204 | return yyrc; | 
|---|
| 4205 | } | 
|---|
| 4206 |  | 
|---|
| 4207 | #undef  WinLockWindowUpdate | 
|---|
| 4208 | #define WinLockWindowUpdate _WinLockWindowUpdate | 
|---|
| 4209 |  | 
|---|
| 4210 | inline BOOL _WinMapWindowPoints(HWND a, HWND b, PPOINTL c, LONG d) | 
|---|
| 4211 | { | 
|---|
| 4212 | BOOL yyrc; | 
|---|
| 4213 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4214 |  | 
|---|
| 4215 | yyrc = WinMapWindowPoints(a, b, c, d); | 
|---|
| 4216 | SetFS(sel); | 
|---|
| 4217 |  | 
|---|
| 4218 | return yyrc; | 
|---|
| 4219 | } | 
|---|
| 4220 |  | 
|---|
| 4221 | #undef  WinMapWindowPoints | 
|---|
| 4222 | #define WinMapWindowPoints _WinMapWindowPoints | 
|---|
| 4223 |  | 
|---|
| 4224 | inline HWND _WinQueryActiveWindow(HWND a) | 
|---|
| 4225 | { | 
|---|
| 4226 | HWND yyrc; | 
|---|
| 4227 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4228 |  | 
|---|
| 4229 | yyrc = WinQueryActiveWindow(a); | 
|---|
| 4230 | SetFS(sel); | 
|---|
| 4231 |  | 
|---|
| 4232 | return yyrc; | 
|---|
| 4233 | } | 
|---|
| 4234 |  | 
|---|
| 4235 | #undef  WinQueryActiveWindow | 
|---|
| 4236 | #define WinQueryActiveWindow _WinQueryActiveWindow | 
|---|
| 4237 |  | 
|---|
| 4238 | inline BOOL _WinQueryClassInfo(HAB a, PCSZ b, PCLASSINFO c) | 
|---|
| 4239 | { | 
|---|
| 4240 | BOOL yyrc; | 
|---|
| 4241 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4242 |  | 
|---|
| 4243 | yyrc = WinQueryClassInfo(a, b, c); | 
|---|
| 4244 | SetFS(sel); | 
|---|
| 4245 |  | 
|---|
| 4246 | return yyrc; | 
|---|
| 4247 | } | 
|---|
| 4248 |  | 
|---|
| 4249 | #undef  WinQueryClassInfo | 
|---|
| 4250 | #define WinQueryClassInfo _WinQueryClassInfo | 
|---|
| 4251 |  | 
|---|
| 4252 | inline LONG _WinQueryClassName(HWND a, LONG b, PCH c) | 
|---|
| 4253 | { | 
|---|
| 4254 | LONG yyrc; | 
|---|
| 4255 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4256 |  | 
|---|
| 4257 | yyrc = WinQueryClassName(a, b, c); | 
|---|
| 4258 | SetFS(sel); | 
|---|
| 4259 |  | 
|---|
| 4260 | return yyrc; | 
|---|
| 4261 | } | 
|---|
| 4262 |  | 
|---|
| 4263 | #undef  WinQueryClassName | 
|---|
| 4264 | #define WinQueryClassName _WinQueryClassName | 
|---|
| 4265 |  | 
|---|
| 4266 | inline BOOL _WinQueryUpdateRect(HWND a, PRECTL b) | 
|---|
| 4267 | { | 
|---|
| 4268 | BOOL yyrc; | 
|---|
| 4269 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4270 |  | 
|---|
| 4271 | yyrc = WinQueryUpdateRect(a, b); | 
|---|
| 4272 | SetFS(sel); | 
|---|
| 4273 |  | 
|---|
| 4274 | return yyrc; | 
|---|
| 4275 | } | 
|---|
| 4276 |  | 
|---|
| 4277 | #undef  WinQueryUpdateRect | 
|---|
| 4278 | #define WinQueryUpdateRect _WinQueryUpdateRect | 
|---|
| 4279 |  | 
|---|
| 4280 | inline LONG _WinQueryUpdateRegion(HWND a, HRGN b) | 
|---|
| 4281 | { | 
|---|
| 4282 | LONG yyrc; | 
|---|
| 4283 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4284 |  | 
|---|
| 4285 | yyrc = WinQueryUpdateRegion(a, b); | 
|---|
| 4286 | SetFS(sel); | 
|---|
| 4287 |  | 
|---|
| 4288 | return yyrc; | 
|---|
| 4289 | } | 
|---|
| 4290 |  | 
|---|
| 4291 | #undef  WinQueryUpdateRegion | 
|---|
| 4292 | #define WinQueryUpdateRegion _WinQueryUpdateRegion | 
|---|
| 4293 |  | 
|---|
| 4294 | inline HWND _WinQuerySysModalWindow(HWND a) | 
|---|
| 4295 | { | 
|---|
| 4296 | HWND yyrc; | 
|---|
| 4297 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4298 |  | 
|---|
| 4299 | yyrc = WinQuerySysModalWindow(a); | 
|---|
| 4300 | SetFS(sel); | 
|---|
| 4301 |  | 
|---|
| 4302 | return yyrc; | 
|---|
| 4303 | } | 
|---|
| 4304 |  | 
|---|
| 4305 | #undef  WinQuerySysModalWindow | 
|---|
| 4306 | #define WinQuerySysModalWindow _WinQuerySysModalWindow | 
|---|
| 4307 |  | 
|---|
| 4308 | inline HDC _WinQueryWindowDC(HWND a) | 
|---|
| 4309 | { | 
|---|
| 4310 | HDC yyrc; | 
|---|
| 4311 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4312 |  | 
|---|
| 4313 | yyrc = WinQueryWindowDC(a); | 
|---|
| 4314 | SetFS(sel); | 
|---|
| 4315 |  | 
|---|
| 4316 | return yyrc; | 
|---|
| 4317 | } | 
|---|
| 4318 |  | 
|---|
| 4319 | #undef  WinQueryWindowDC | 
|---|
| 4320 | #define WinQueryWindowDC _WinQueryWindowDC | 
|---|
| 4321 |  | 
|---|
| 4322 | inline PVOID _WinQueryWindowPtr(HWND a, LONG b) | 
|---|
| 4323 | { | 
|---|
| 4324 | PVOID yyrc; | 
|---|
| 4325 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4326 |  | 
|---|
| 4327 | yyrc = WinQueryWindowPtr(a, b); | 
|---|
| 4328 | SetFS(sel); | 
|---|
| 4329 |  | 
|---|
| 4330 | return yyrc; | 
|---|
| 4331 | } | 
|---|
| 4332 |  | 
|---|
| 4333 | #undef  WinQueryWindowPtr | 
|---|
| 4334 | #define WinQueryWindowPtr _WinQueryWindowPtr | 
|---|
| 4335 |  | 
|---|
| 4336 | inline ULONG _WinQueryWindowULong(HWND a, LONG b) | 
|---|
| 4337 | { | 
|---|
| 4338 | ULONG yyrc; | 
|---|
| 4339 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4340 |  | 
|---|
| 4341 | yyrc = WinQueryWindowULong(a, b); | 
|---|
| 4342 | SetFS(sel); | 
|---|
| 4343 |  | 
|---|
| 4344 | return yyrc; | 
|---|
| 4345 | } | 
|---|
| 4346 |  | 
|---|
| 4347 | #undef  WinQueryWindowULong | 
|---|
| 4348 | #define WinQueryWindowULong _WinQueryWindowULong | 
|---|
| 4349 |  | 
|---|
| 4350 | inline USHORT _WinQueryWindowUShort(HWND a, LONG b) | 
|---|
| 4351 | { | 
|---|
| 4352 | USHORT yyrc; | 
|---|
| 4353 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4354 |  | 
|---|
| 4355 | yyrc = WinQueryWindowUShort(a, b); | 
|---|
| 4356 | SetFS(sel); | 
|---|
| 4357 |  | 
|---|
| 4358 | return yyrc; | 
|---|
| 4359 | } | 
|---|
| 4360 |  | 
|---|
| 4361 | #undef  WinQueryWindowUShort | 
|---|
| 4362 | #define WinQueryWindowUShort _WinQueryWindowUShort | 
|---|
| 4363 |  | 
|---|
| 4364 | inline BOOL _WinSetSysModalWindow(HWND a, HWND b) | 
|---|
| 4365 | { | 
|---|
| 4366 | BOOL yyrc; | 
|---|
| 4367 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4368 |  | 
|---|
| 4369 | yyrc = WinSetSysModalWindow(a, b); | 
|---|
| 4370 | SetFS(sel); | 
|---|
| 4371 |  | 
|---|
| 4372 | return yyrc; | 
|---|
| 4373 | } | 
|---|
| 4374 |  | 
|---|
| 4375 | #undef  WinSetSysModalWindow | 
|---|
| 4376 | #define WinSetSysModalWindow _WinSetSysModalWindow | 
|---|
| 4377 |  | 
|---|
| 4378 | inline BOOL _WinSetWindowBits(HWND a, LONG b, ULONG c, ULONG d) | 
|---|
| 4379 | { | 
|---|
| 4380 | BOOL yyrc; | 
|---|
| 4381 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4382 |  | 
|---|
| 4383 | yyrc = WinSetWindowBits(a, b, c, d); | 
|---|
| 4384 | SetFS(sel); | 
|---|
| 4385 |  | 
|---|
| 4386 | return yyrc; | 
|---|
| 4387 | } | 
|---|
| 4388 |  | 
|---|
| 4389 | #undef  WinSetWindowBits | 
|---|
| 4390 | #define WinSetWindowBits _WinSetWindowBits | 
|---|
| 4391 |  | 
|---|
| 4392 | inline BOOL _WinSetWindowPtr(HWND a, LONG b, PVOID c) | 
|---|
| 4393 | { | 
|---|
| 4394 | BOOL yyrc; | 
|---|
| 4395 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4396 |  | 
|---|
| 4397 | yyrc = WinSetWindowPtr(a, b, c); | 
|---|
| 4398 | SetFS(sel); | 
|---|
| 4399 |  | 
|---|
| 4400 | return yyrc; | 
|---|
| 4401 | } | 
|---|
| 4402 |  | 
|---|
| 4403 | #undef  WinSetWindowPtr | 
|---|
| 4404 | #define WinSetWindowPtr _WinSetWindowPtr | 
|---|
| 4405 |  | 
|---|
| 4406 | inline BOOL _WinSetWindowULong(HWND a, LONG b, ULONG c) | 
|---|
| 4407 | { | 
|---|
| 4408 | BOOL yyrc; | 
|---|
| 4409 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4410 |  | 
|---|
| 4411 | yyrc = WinSetWindowULong(a, b, c); | 
|---|
| 4412 | SetFS(sel); | 
|---|
| 4413 |  | 
|---|
| 4414 | return yyrc; | 
|---|
| 4415 | } | 
|---|
| 4416 |  | 
|---|
| 4417 | #undef  WinSetWindowULong | 
|---|
| 4418 | #define WinSetWindowULong _WinSetWindowULong | 
|---|
| 4419 |  | 
|---|
| 4420 | inline BOOL _WinSetWindowUShort(HWND a, LONG b, USHORT c) | 
|---|
| 4421 | { | 
|---|
| 4422 | BOOL yyrc; | 
|---|
| 4423 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4424 |  | 
|---|
| 4425 | yyrc = WinSetWindowUShort(a, b, c); | 
|---|
| 4426 | SetFS(sel); | 
|---|
| 4427 |  | 
|---|
| 4428 | return yyrc; | 
|---|
| 4429 | } | 
|---|
| 4430 |  | 
|---|
| 4431 | #undef  WinSetWindowUShort | 
|---|
| 4432 | #define WinSetWindowUShort _WinSetWindowUShort | 
|---|
| 4433 |  | 
|---|
| 4434 | inline PFNWP _WinSubclassWindow(HWND a, PFNWP b) | 
|---|
| 4435 | { | 
|---|
| 4436 | PFNWP yyrc; | 
|---|
| 4437 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4438 |  | 
|---|
| 4439 | yyrc = WinSubclassWindow(a, b); | 
|---|
| 4440 | SetFS(sel); | 
|---|
| 4441 |  | 
|---|
| 4442 | return yyrc; | 
|---|
| 4443 | } | 
|---|
| 4444 |  | 
|---|
| 4445 | #undef  WinSubclassWindow | 
|---|
| 4446 | #define WinSubclassWindow _WinSubclassWindow | 
|---|
| 4447 |  | 
|---|
| 4448 | inline BOOL _WinValidateRect(HWND a, PRECTL b, BOOL c) | 
|---|
| 4449 | { | 
|---|
| 4450 | BOOL yyrc; | 
|---|
| 4451 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4452 |  | 
|---|
| 4453 | yyrc = WinValidateRect(a, b, c); | 
|---|
| 4454 | SetFS(sel); | 
|---|
| 4455 |  | 
|---|
| 4456 | return yyrc; | 
|---|
| 4457 | } | 
|---|
| 4458 |  | 
|---|
| 4459 | #undef  WinValidateRect | 
|---|
| 4460 | #define WinValidateRect _WinValidateRect | 
|---|
| 4461 |  | 
|---|
| 4462 | inline BOOL _WinValidateRegion(HWND a, HRGN b, BOOL c) | 
|---|
| 4463 | { | 
|---|
| 4464 | BOOL yyrc; | 
|---|
| 4465 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4466 |  | 
|---|
| 4467 | yyrc = WinValidateRegion(a, b, c); | 
|---|
| 4468 | SetFS(sel); | 
|---|
| 4469 |  | 
|---|
| 4470 | return yyrc; | 
|---|
| 4471 | } | 
|---|
| 4472 |  | 
|---|
| 4473 | #undef  WinValidateRegion | 
|---|
| 4474 | #define WinValidateRegion _WinValidateRegion | 
|---|
| 4475 |  | 
|---|
| 4476 | inline HWND _WinWindowFromDC(HDC a) | 
|---|
| 4477 | { | 
|---|
| 4478 | HWND yyrc; | 
|---|
| 4479 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4480 |  | 
|---|
| 4481 | yyrc = WinWindowFromDC(a); | 
|---|
| 4482 | SetFS(sel); | 
|---|
| 4483 |  | 
|---|
| 4484 | return yyrc; | 
|---|
| 4485 | } | 
|---|
| 4486 |  | 
|---|
| 4487 | #undef  WinWindowFromDC | 
|---|
| 4488 | #define WinWindowFromDC _WinWindowFromDC | 
|---|
| 4489 |  | 
|---|
| 4490 | inline HWND _WinWindowFromPoint(HWND a, PPOINTL b, BOOL c) | 
|---|
| 4491 | { | 
|---|
| 4492 | HWND yyrc; | 
|---|
| 4493 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4494 |  | 
|---|
| 4495 | yyrc = WinWindowFromPoint(a, b, c); | 
|---|
| 4496 | SetFS(sel); | 
|---|
| 4497 |  | 
|---|
| 4498 | return yyrc; | 
|---|
| 4499 | } | 
|---|
| 4500 |  | 
|---|
| 4501 | #undef  WinWindowFromPoint | 
|---|
| 4502 | #define WinWindowFromPoint _WinWindowFromPoint | 
|---|
| 4503 |  | 
|---|
| 4504 | #endif | 
|---|
| 4505 | #ifdef INCL_WINACCELERATORS | 
|---|
| 4506 | inline ULONG _WinCopyAccelTable(HACCEL a, PACCELTABLE b, ULONG c) | 
|---|
| 4507 | { | 
|---|
| 4508 | ULONG yyrc; | 
|---|
| 4509 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4510 |  | 
|---|
| 4511 | yyrc = WinCopyAccelTable(a, b, c); | 
|---|
| 4512 | SetFS(sel); | 
|---|
| 4513 |  | 
|---|
| 4514 | return yyrc; | 
|---|
| 4515 | } | 
|---|
| 4516 |  | 
|---|
| 4517 | #undef  WinCopyAccelTable | 
|---|
| 4518 | #define WinCopyAccelTable _WinCopyAccelTable | 
|---|
| 4519 |  | 
|---|
| 4520 | inline HACCEL _WinCreateAccelTable(HAB a, PACCELTABLE b) | 
|---|
| 4521 | { | 
|---|
| 4522 | HACCEL yyrc; | 
|---|
| 4523 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4524 |  | 
|---|
| 4525 | yyrc = WinCreateAccelTable(a, b); | 
|---|
| 4526 | SetFS(sel); | 
|---|
| 4527 |  | 
|---|
| 4528 | return yyrc; | 
|---|
| 4529 | } | 
|---|
| 4530 |  | 
|---|
| 4531 | #undef  WinCreateAccelTable | 
|---|
| 4532 | #define WinCreateAccelTable _WinCreateAccelTable | 
|---|
| 4533 |  | 
|---|
| 4534 | inline BOOL _WinDestroyAccelTable(HACCEL a) | 
|---|
| 4535 | { | 
|---|
| 4536 | BOOL yyrc; | 
|---|
| 4537 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4538 |  | 
|---|
| 4539 | yyrc = WinDestroyAccelTable(a); | 
|---|
| 4540 | SetFS(sel); | 
|---|
| 4541 |  | 
|---|
| 4542 | return yyrc; | 
|---|
| 4543 | } | 
|---|
| 4544 |  | 
|---|
| 4545 | #undef  WinDestroyAccelTable | 
|---|
| 4546 | #define WinDestroyAccelTable _WinDestroyAccelTable | 
|---|
| 4547 |  | 
|---|
| 4548 | inline HACCEL _WinLoadAccelTable(HAB a, HMODULE b, ULONG c) | 
|---|
| 4549 | { | 
|---|
| 4550 | HACCEL yyrc; | 
|---|
| 4551 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4552 |  | 
|---|
| 4553 | yyrc = WinLoadAccelTable(a, b, c); | 
|---|
| 4554 | SetFS(sel); | 
|---|
| 4555 |  | 
|---|
| 4556 | return yyrc; | 
|---|
| 4557 | } | 
|---|
| 4558 |  | 
|---|
| 4559 | #undef  WinLoadAccelTable | 
|---|
| 4560 | #define WinLoadAccelTable _WinLoadAccelTable | 
|---|
| 4561 |  | 
|---|
| 4562 | inline HACCEL _WinQueryAccelTable(HAB a, HWND b) | 
|---|
| 4563 | { | 
|---|
| 4564 | HACCEL yyrc; | 
|---|
| 4565 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4566 |  | 
|---|
| 4567 | yyrc = WinQueryAccelTable(a, b); | 
|---|
| 4568 | SetFS(sel); | 
|---|
| 4569 |  | 
|---|
| 4570 | return yyrc; | 
|---|
| 4571 | } | 
|---|
| 4572 |  | 
|---|
| 4573 | #undef  WinQueryAccelTable | 
|---|
| 4574 | #define WinQueryAccelTable _WinQueryAccelTable | 
|---|
| 4575 |  | 
|---|
| 4576 | inline BOOL _WinSetAccelTable(HAB a, HACCEL b, HWND c) | 
|---|
| 4577 | { | 
|---|
| 4578 | BOOL yyrc; | 
|---|
| 4579 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4580 |  | 
|---|
| 4581 | yyrc = WinSetAccelTable(a, b, c); | 
|---|
| 4582 | SetFS(sel); | 
|---|
| 4583 |  | 
|---|
| 4584 | return yyrc; | 
|---|
| 4585 | } | 
|---|
| 4586 |  | 
|---|
| 4587 | #undef  WinSetAccelTable | 
|---|
| 4588 | #define WinSetAccelTable _WinSetAccelTable | 
|---|
| 4589 |  | 
|---|
| 4590 | inline BOOL _WinTranslateAccel(HAB a, HWND b, HACCEL c, PQMSG d) | 
|---|
| 4591 | { | 
|---|
| 4592 | BOOL yyrc; | 
|---|
| 4593 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4594 |  | 
|---|
| 4595 | yyrc = WinTranslateAccel(a, b, c, d); | 
|---|
| 4596 | SetFS(sel); | 
|---|
| 4597 |  | 
|---|
| 4598 | return yyrc; | 
|---|
| 4599 | } | 
|---|
| 4600 |  | 
|---|
| 4601 | #undef  WinTranslateAccel | 
|---|
| 4602 | #define WinTranslateAccel _WinTranslateAccel | 
|---|
| 4603 |  | 
|---|
| 4604 | #endif | 
|---|
| 4605 | #ifdef INCL_WINATOM | 
|---|
| 4606 | inline ATOM _WinAddAtom(HATOMTBL a, PCSZ b) | 
|---|
| 4607 | { | 
|---|
| 4608 | ATOM yyrc; | 
|---|
| 4609 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4610 |  | 
|---|
| 4611 | yyrc = WinAddAtom(a, b); | 
|---|
| 4612 | SetFS(sel); | 
|---|
| 4613 |  | 
|---|
| 4614 | return yyrc; | 
|---|
| 4615 | } | 
|---|
| 4616 |  | 
|---|
| 4617 | #undef  WinAddAtom | 
|---|
| 4618 | #define WinAddAtom _WinAddAtom | 
|---|
| 4619 |  | 
|---|
| 4620 | inline HATOMTBL _WinCreateAtomTable(ULONG a, ULONG b) | 
|---|
| 4621 | { | 
|---|
| 4622 | HATOMTBL yyrc; | 
|---|
| 4623 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4624 |  | 
|---|
| 4625 | yyrc = WinCreateAtomTable(a, b); | 
|---|
| 4626 | SetFS(sel); | 
|---|
| 4627 |  | 
|---|
| 4628 | return yyrc; | 
|---|
| 4629 | } | 
|---|
| 4630 |  | 
|---|
| 4631 | #undef  WinCreateAtomTable | 
|---|
| 4632 | #define WinCreateAtomTable _WinCreateAtomTable | 
|---|
| 4633 |  | 
|---|
| 4634 | inline ATOM _WinDeleteAtom(HATOMTBL a, ATOM b) | 
|---|
| 4635 | { | 
|---|
| 4636 | ATOM yyrc; | 
|---|
| 4637 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4638 |  | 
|---|
| 4639 | yyrc = WinDeleteAtom(a, b); | 
|---|
| 4640 | SetFS(sel); | 
|---|
| 4641 |  | 
|---|
| 4642 | return yyrc; | 
|---|
| 4643 | } | 
|---|
| 4644 |  | 
|---|
| 4645 | #undef  WinDeleteAtom | 
|---|
| 4646 | #define WinDeleteAtom _WinDeleteAtom | 
|---|
| 4647 |  | 
|---|
| 4648 | inline HATOMTBL _WinDestroyAtomTable(HATOMTBL a) | 
|---|
| 4649 | { | 
|---|
| 4650 | HATOMTBL yyrc; | 
|---|
| 4651 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4652 |  | 
|---|
| 4653 | yyrc = WinDestroyAtomTable(a); | 
|---|
| 4654 | SetFS(sel); | 
|---|
| 4655 |  | 
|---|
| 4656 | return yyrc; | 
|---|
| 4657 | } | 
|---|
| 4658 |  | 
|---|
| 4659 | #undef  WinDestroyAtomTable | 
|---|
| 4660 | #define WinDestroyAtomTable _WinDestroyAtomTable | 
|---|
| 4661 |  | 
|---|
| 4662 | inline ATOM _WinFindAtom(HATOMTBL a, PCSZ b) | 
|---|
| 4663 | { | 
|---|
| 4664 | ATOM yyrc; | 
|---|
| 4665 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4666 |  | 
|---|
| 4667 | yyrc = WinFindAtom(a, b); | 
|---|
| 4668 | SetFS(sel); | 
|---|
| 4669 |  | 
|---|
| 4670 | return yyrc; | 
|---|
| 4671 | } | 
|---|
| 4672 |  | 
|---|
| 4673 | #undef  WinFindAtom | 
|---|
| 4674 | #define WinFindAtom _WinFindAtom | 
|---|
| 4675 |  | 
|---|
| 4676 | inline ULONG _WinQueryAtomLength(HATOMTBL a, ATOM b) | 
|---|
| 4677 | { | 
|---|
| 4678 | ULONG yyrc; | 
|---|
| 4679 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4680 |  | 
|---|
| 4681 | yyrc = WinQueryAtomLength(a, b); | 
|---|
| 4682 | SetFS(sel); | 
|---|
| 4683 |  | 
|---|
| 4684 | return yyrc; | 
|---|
| 4685 | } | 
|---|
| 4686 |  | 
|---|
| 4687 | #undef  WinQueryAtomLength | 
|---|
| 4688 | #define WinQueryAtomLength _WinQueryAtomLength | 
|---|
| 4689 |  | 
|---|
| 4690 | inline ULONG _WinQueryAtomName(HATOMTBL a, ATOM b, PSZ c, ULONG d) | 
|---|
| 4691 | { | 
|---|
| 4692 | ULONG yyrc; | 
|---|
| 4693 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4694 |  | 
|---|
| 4695 | yyrc = WinQueryAtomName(a, b, c, d); | 
|---|
| 4696 | SetFS(sel); | 
|---|
| 4697 |  | 
|---|
| 4698 | return yyrc; | 
|---|
| 4699 | } | 
|---|
| 4700 |  | 
|---|
| 4701 | #undef  WinQueryAtomName | 
|---|
| 4702 | #define WinQueryAtomName _WinQueryAtomName | 
|---|
| 4703 |  | 
|---|
| 4704 | inline ULONG _WinQueryAtomUsage(HATOMTBL a, ATOM b) | 
|---|
| 4705 | { | 
|---|
| 4706 | ULONG yyrc; | 
|---|
| 4707 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4708 |  | 
|---|
| 4709 | yyrc = WinQueryAtomUsage(a, b); | 
|---|
| 4710 | SetFS(sel); | 
|---|
| 4711 |  | 
|---|
| 4712 | return yyrc; | 
|---|
| 4713 | } | 
|---|
| 4714 |  | 
|---|
| 4715 | #undef  WinQueryAtomUsage | 
|---|
| 4716 | #define WinQueryAtomUsage _WinQueryAtomUsage | 
|---|
| 4717 |  | 
|---|
| 4718 | inline HATOMTBL _WinQuerySystemAtomTable() | 
|---|
| 4719 | { | 
|---|
| 4720 | HATOMTBL yyrc; | 
|---|
| 4721 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4722 |  | 
|---|
| 4723 | yyrc = WinQuerySystemAtomTable(); | 
|---|
| 4724 | SetFS(sel); | 
|---|
| 4725 |  | 
|---|
| 4726 | return yyrc; | 
|---|
| 4727 | } | 
|---|
| 4728 |  | 
|---|
| 4729 | #undef  WinQuerySystemAtomTable | 
|---|
| 4730 | #define WinQuerySystemAtomTable _WinQuerySystemAtomTable | 
|---|
| 4731 |  | 
|---|
| 4732 | #endif | 
|---|
| 4733 | #ifdef INCL_WINCLIPBOARD | 
|---|
| 4734 | inline BOOL _WinCloseClipbrd(HAB a) | 
|---|
| 4735 | { | 
|---|
| 4736 | BOOL yyrc; | 
|---|
| 4737 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4738 |  | 
|---|
| 4739 | yyrc = WinCloseClipbrd(a); | 
|---|
| 4740 | SetFS(sel); | 
|---|
| 4741 |  | 
|---|
| 4742 | return yyrc; | 
|---|
| 4743 | } | 
|---|
| 4744 |  | 
|---|
| 4745 | #undef  WinCloseClipbrd | 
|---|
| 4746 | #define WinCloseClipbrd _WinCloseClipbrd | 
|---|
| 4747 |  | 
|---|
| 4748 | inline BOOL _WinEmptyClipbrd(HAB a) | 
|---|
| 4749 | { | 
|---|
| 4750 | BOOL yyrc; | 
|---|
| 4751 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4752 |  | 
|---|
| 4753 | yyrc = WinEmptyClipbrd(a); | 
|---|
| 4754 | SetFS(sel); | 
|---|
| 4755 |  | 
|---|
| 4756 | return yyrc; | 
|---|
| 4757 | } | 
|---|
| 4758 |  | 
|---|
| 4759 | #undef  WinEmptyClipbrd | 
|---|
| 4760 | #define WinEmptyClipbrd _WinEmptyClipbrd | 
|---|
| 4761 |  | 
|---|
| 4762 | inline ULONG _WinEnumClipbrdFmts(HAB a, ULONG b) | 
|---|
| 4763 | { | 
|---|
| 4764 | ULONG yyrc; | 
|---|
| 4765 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4766 |  | 
|---|
| 4767 | yyrc = WinEnumClipbrdFmts(a, b); | 
|---|
| 4768 | SetFS(sel); | 
|---|
| 4769 |  | 
|---|
| 4770 | return yyrc; | 
|---|
| 4771 | } | 
|---|
| 4772 |  | 
|---|
| 4773 | #undef  WinEnumClipbrdFmts | 
|---|
| 4774 | #define WinEnumClipbrdFmts _WinEnumClipbrdFmts | 
|---|
| 4775 |  | 
|---|
| 4776 | inline BOOL _WinOpenClipbrd(HAB a) | 
|---|
| 4777 | { | 
|---|
| 4778 | BOOL yyrc; | 
|---|
| 4779 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4780 |  | 
|---|
| 4781 | yyrc = WinOpenClipbrd(a); | 
|---|
| 4782 | SetFS(sel); | 
|---|
| 4783 |  | 
|---|
| 4784 | return yyrc; | 
|---|
| 4785 | } | 
|---|
| 4786 |  | 
|---|
| 4787 | #undef  WinOpenClipbrd | 
|---|
| 4788 | #define WinOpenClipbrd _WinOpenClipbrd | 
|---|
| 4789 |  | 
|---|
| 4790 | inline ULONG _WinQueryClipbrdData(HAB a, ULONG b) | 
|---|
| 4791 | { | 
|---|
| 4792 | ULONG yyrc; | 
|---|
| 4793 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4794 |  | 
|---|
| 4795 | yyrc = WinQueryClipbrdData(a, b); | 
|---|
| 4796 | SetFS(sel); | 
|---|
| 4797 |  | 
|---|
| 4798 | return yyrc; | 
|---|
| 4799 | } | 
|---|
| 4800 |  | 
|---|
| 4801 | #undef  WinQueryClipbrdData | 
|---|
| 4802 | #define WinQueryClipbrdData _WinQueryClipbrdData | 
|---|
| 4803 |  | 
|---|
| 4804 | inline BOOL _WinQueryClipbrdFmtInfo(HAB a, ULONG b, PULONG c) | 
|---|
| 4805 | { | 
|---|
| 4806 | BOOL yyrc; | 
|---|
| 4807 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4808 |  | 
|---|
| 4809 | yyrc = WinQueryClipbrdFmtInfo(a, b, c); | 
|---|
| 4810 | SetFS(sel); | 
|---|
| 4811 |  | 
|---|
| 4812 | return yyrc; | 
|---|
| 4813 | } | 
|---|
| 4814 |  | 
|---|
| 4815 | #undef  WinQueryClipbrdFmtInfo | 
|---|
| 4816 | #define WinQueryClipbrdFmtInfo _WinQueryClipbrdFmtInfo | 
|---|
| 4817 |  | 
|---|
| 4818 | inline HWND _WinQueryClipbrdOwner(HAB a) | 
|---|
| 4819 | { | 
|---|
| 4820 | HWND yyrc; | 
|---|
| 4821 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4822 |  | 
|---|
| 4823 | yyrc = WinQueryClipbrdOwner(a); | 
|---|
| 4824 | SetFS(sel); | 
|---|
| 4825 |  | 
|---|
| 4826 | return yyrc; | 
|---|
| 4827 | } | 
|---|
| 4828 |  | 
|---|
| 4829 | #undef  WinQueryClipbrdOwner | 
|---|
| 4830 | #define WinQueryClipbrdOwner _WinQueryClipbrdOwner | 
|---|
| 4831 |  | 
|---|
| 4832 | inline HWND _WinQueryClipbrdViewer(HAB a) | 
|---|
| 4833 | { | 
|---|
| 4834 | HWND yyrc; | 
|---|
| 4835 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4836 |  | 
|---|
| 4837 | yyrc = WinQueryClipbrdViewer(a); | 
|---|
| 4838 | SetFS(sel); | 
|---|
| 4839 |  | 
|---|
| 4840 | return yyrc; | 
|---|
| 4841 | } | 
|---|
| 4842 |  | 
|---|
| 4843 | #undef  WinQueryClipbrdViewer | 
|---|
| 4844 | #define WinQueryClipbrdViewer _WinQueryClipbrdViewer | 
|---|
| 4845 |  | 
|---|
| 4846 | inline BOOL _WinSetClipbrdData(HAB a, ULONG b, ULONG c, ULONG d) | 
|---|
| 4847 | { | 
|---|
| 4848 | BOOL yyrc; | 
|---|
| 4849 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4850 |  | 
|---|
| 4851 | yyrc = WinSetClipbrdData(a, b, c, d); | 
|---|
| 4852 | SetFS(sel); | 
|---|
| 4853 |  | 
|---|
| 4854 | return yyrc; | 
|---|
| 4855 | } | 
|---|
| 4856 |  | 
|---|
| 4857 | #undef  WinSetClipbrdData | 
|---|
| 4858 | #define WinSetClipbrdData _WinSetClipbrdData | 
|---|
| 4859 |  | 
|---|
| 4860 | inline BOOL _WinSetClipbrdOwner(HAB a, HWND b) | 
|---|
| 4861 | { | 
|---|
| 4862 | BOOL yyrc; | 
|---|
| 4863 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4864 |  | 
|---|
| 4865 | yyrc = WinSetClipbrdOwner(a, b); | 
|---|
| 4866 | SetFS(sel); | 
|---|
| 4867 |  | 
|---|
| 4868 | return yyrc; | 
|---|
| 4869 | } | 
|---|
| 4870 |  | 
|---|
| 4871 | #undef  WinSetClipbrdOwner | 
|---|
| 4872 | #define WinSetClipbrdOwner _WinSetClipbrdOwner | 
|---|
| 4873 |  | 
|---|
| 4874 | inline BOOL _WinSetClipbrdViewer(HAB a, HWND b) | 
|---|
| 4875 | { | 
|---|
| 4876 | BOOL yyrc; | 
|---|
| 4877 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4878 |  | 
|---|
| 4879 | yyrc = WinSetClipbrdViewer(a, b); | 
|---|
| 4880 | SetFS(sel); | 
|---|
| 4881 |  | 
|---|
| 4882 | return yyrc; | 
|---|
| 4883 | } | 
|---|
| 4884 |  | 
|---|
| 4885 | #undef  WinSetClipbrdViewer | 
|---|
| 4886 | #define WinSetClipbrdViewer _WinSetClipbrdViewer | 
|---|
| 4887 |  | 
|---|
| 4888 | #endif | 
|---|
| 4889 | #ifdef INCL_WINDDE | 
|---|
| 4890 | inline BOOL _WinDdeInitiate(HWND a, PCSZ b, PCSZ c, PCONVCONTEXT d) | 
|---|
| 4891 | { | 
|---|
| 4892 | BOOL yyrc; | 
|---|
| 4893 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4894 |  | 
|---|
| 4895 | yyrc = WinDdeInitiate(a, b, c, d); | 
|---|
| 4896 | SetFS(sel); | 
|---|
| 4897 |  | 
|---|
| 4898 | return yyrc; | 
|---|
| 4899 | } | 
|---|
| 4900 |  | 
|---|
| 4901 | #undef  WinDdeInitiate | 
|---|
| 4902 | #define WinDdeInitiate _WinDdeInitiate | 
|---|
| 4903 |  | 
|---|
| 4904 | inline BOOL _WinDdePostMsg(HWND a, HWND b, ULONG c, PDDESTRUCT d, ULONG e) | 
|---|
| 4905 | { | 
|---|
| 4906 | BOOL yyrc; | 
|---|
| 4907 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4908 |  | 
|---|
| 4909 | yyrc = WinDdePostMsg(a, b, c, d, e); | 
|---|
| 4910 | SetFS(sel); | 
|---|
| 4911 |  | 
|---|
| 4912 | return yyrc; | 
|---|
| 4913 | } | 
|---|
| 4914 |  | 
|---|
| 4915 | #undef  WinDdePostMsg | 
|---|
| 4916 | #define WinDdePostMsg _WinDdePostMsg | 
|---|
| 4917 |  | 
|---|
| 4918 | inline MRESULT _WinDdeRespond(HWND a, HWND b, PCSZ c, PCSZ d, PCONVCONTEXT e) | 
|---|
| 4919 | { | 
|---|
| 4920 | MRESULT yyrc; | 
|---|
| 4921 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4922 |  | 
|---|
| 4923 | yyrc = WinDdeRespond(a, b, c, d, e); | 
|---|
| 4924 | SetFS(sel); | 
|---|
| 4925 |  | 
|---|
| 4926 | return yyrc; | 
|---|
| 4927 | } | 
|---|
| 4928 |  | 
|---|
| 4929 | #undef  WinDdeRespond | 
|---|
| 4930 | #define WinDdeRespond _WinDdeRespond | 
|---|
| 4931 |  | 
|---|
| 4932 | #endif | 
|---|
| 4933 | #ifdef INCL_WINCOUNTRY | 
|---|
| 4934 | inline ULONG _WinCompareStrings(HAB a, ULONG b, ULONG c, PCSZ d, PCSZ e, ULONG f) | 
|---|
| 4935 | { | 
|---|
| 4936 | ULONG yyrc; | 
|---|
| 4937 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4938 |  | 
|---|
| 4939 | yyrc = WinCompareStrings(a, b, c, d, e, f); | 
|---|
| 4940 | SetFS(sel); | 
|---|
| 4941 |  | 
|---|
| 4942 | return yyrc; | 
|---|
| 4943 | } | 
|---|
| 4944 |  | 
|---|
| 4945 | #undef  WinCompareStrings | 
|---|
| 4946 | #define WinCompareStrings _WinCompareStrings | 
|---|
| 4947 |  | 
|---|
| 4948 | inline UCHAR _WinCpTranslateChar(HAB a, ULONG b, UCHAR c, ULONG d) | 
|---|
| 4949 | { | 
|---|
| 4950 | UCHAR yyrc; | 
|---|
| 4951 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4952 |  | 
|---|
| 4953 | yyrc = WinCpTranslateChar(a, b, c, d); | 
|---|
| 4954 | SetFS(sel); | 
|---|
| 4955 |  | 
|---|
| 4956 | return yyrc; | 
|---|
| 4957 | } | 
|---|
| 4958 |  | 
|---|
| 4959 | #undef  WinCpTranslateChar | 
|---|
| 4960 | #define WinCpTranslateChar _WinCpTranslateChar | 
|---|
| 4961 |  | 
|---|
| 4962 | inline BOOL _WinCpTranslateString(HAB a, ULONG b, PCSZ c, ULONG d, ULONG e, PSZ f) | 
|---|
| 4963 | { | 
|---|
| 4964 | BOOL yyrc; | 
|---|
| 4965 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4966 |  | 
|---|
| 4967 | yyrc = WinCpTranslateString(a, b, c, d, e, f); | 
|---|
| 4968 | SetFS(sel); | 
|---|
| 4969 |  | 
|---|
| 4970 | return yyrc; | 
|---|
| 4971 | } | 
|---|
| 4972 |  | 
|---|
| 4973 | #undef  WinCpTranslateString | 
|---|
| 4974 | #define WinCpTranslateString _WinCpTranslateString | 
|---|
| 4975 |  | 
|---|
| 4976 | inline PCSZ _WinNextChar(HAB a, ULONG b, ULONG c, PCSZ d) | 
|---|
| 4977 | { | 
|---|
| 4978 | PCSZ yyrc; | 
|---|
| 4979 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4980 |  | 
|---|
| 4981 | yyrc = WinNextChar(a, b, c, d); | 
|---|
| 4982 | SetFS(sel); | 
|---|
| 4983 |  | 
|---|
| 4984 | return yyrc; | 
|---|
| 4985 | } | 
|---|
| 4986 |  | 
|---|
| 4987 | #undef  WinNextChar | 
|---|
| 4988 | #define WinNextChar _WinNextChar | 
|---|
| 4989 |  | 
|---|
| 4990 | inline PCSZ _WinPrevChar(HAB a, ULONG b, ULONG c, PCSZ d, PCSZ e) | 
|---|
| 4991 | { | 
|---|
| 4992 | PCSZ yyrc; | 
|---|
| 4993 | USHORT sel = RestoreOS2FS(); | 
|---|
| 4994 |  | 
|---|
| 4995 | yyrc = WinPrevChar(a, b, c, d, e); | 
|---|
| 4996 | SetFS(sel); | 
|---|
| 4997 |  | 
|---|
| 4998 | return yyrc; | 
|---|
| 4999 | } | 
|---|
| 5000 |  | 
|---|
| 5001 | #undef  WinPrevChar | 
|---|
| 5002 | #define WinPrevChar _WinPrevChar | 
|---|
| 5003 |  | 
|---|
| 5004 | inline ULONG _WinQueryCp(HMQ a) | 
|---|
| 5005 | { | 
|---|
| 5006 | ULONG yyrc; | 
|---|
| 5007 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5008 |  | 
|---|
| 5009 | yyrc = WinQueryCp(a); | 
|---|
| 5010 | SetFS(sel); | 
|---|
| 5011 |  | 
|---|
| 5012 | return yyrc; | 
|---|
| 5013 | } | 
|---|
| 5014 |  | 
|---|
| 5015 | #undef  WinQueryCp | 
|---|
| 5016 | #define WinQueryCp _WinQueryCp | 
|---|
| 5017 |  | 
|---|
| 5018 | inline ULONG _WinQueryCpList(HAB a, ULONG b, PULONG c) | 
|---|
| 5019 | { | 
|---|
| 5020 | ULONG yyrc; | 
|---|
| 5021 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5022 |  | 
|---|
| 5023 | yyrc = WinQueryCpList(a, b, c); | 
|---|
| 5024 | SetFS(sel); | 
|---|
| 5025 |  | 
|---|
| 5026 | return yyrc; | 
|---|
| 5027 | } | 
|---|
| 5028 |  | 
|---|
| 5029 | #undef  WinQueryCpList | 
|---|
| 5030 | #define WinQueryCpList _WinQueryCpList | 
|---|
| 5031 |  | 
|---|
| 5032 | inline BOOL _WinSetCp(HMQ a, ULONG b) | 
|---|
| 5033 | { | 
|---|
| 5034 | BOOL yyrc; | 
|---|
| 5035 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5036 |  | 
|---|
| 5037 | yyrc = WinSetCp(a, b); | 
|---|
| 5038 | SetFS(sel); | 
|---|
| 5039 |  | 
|---|
| 5040 | return yyrc; | 
|---|
| 5041 | } | 
|---|
| 5042 |  | 
|---|
| 5043 | #undef  WinSetCp | 
|---|
| 5044 | #define WinSetCp _WinSetCp | 
|---|
| 5045 |  | 
|---|
| 5046 | inline ULONG _WinUpper(HAB a, ULONG b, ULONG c, PSZ d) | 
|---|
| 5047 | { | 
|---|
| 5048 | ULONG yyrc; | 
|---|
| 5049 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5050 |  | 
|---|
| 5051 | yyrc = WinUpper(a, b, c, d); | 
|---|
| 5052 | SetFS(sel); | 
|---|
| 5053 |  | 
|---|
| 5054 | return yyrc; | 
|---|
| 5055 | } | 
|---|
| 5056 |  | 
|---|
| 5057 | #undef  WinUpper | 
|---|
| 5058 | #define WinUpper _WinUpper | 
|---|
| 5059 |  | 
|---|
| 5060 | inline ULONG _WinUpperChar(HAB a, ULONG b, ULONG c, ULONG d) | 
|---|
| 5061 | { | 
|---|
| 5062 | ULONG yyrc; | 
|---|
| 5063 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5064 |  | 
|---|
| 5065 | yyrc = WinUpperChar(a, b, c, d); | 
|---|
| 5066 | SetFS(sel); | 
|---|
| 5067 |  | 
|---|
| 5068 | return yyrc; | 
|---|
| 5069 | } | 
|---|
| 5070 |  | 
|---|
| 5071 | #undef  WinUpperChar | 
|---|
| 5072 | #define WinUpperChar _WinUpperChar | 
|---|
| 5073 |  | 
|---|
| 5074 | #endif | 
|---|
| 5075 | #ifdef INCL_WINCURSORS | 
|---|
| 5076 | inline BOOL _WinCreateCursor(HWND a, LONG b, LONG c, LONG d, LONG e, ULONG f, PRECTL g) | 
|---|
| 5077 | { | 
|---|
| 5078 | BOOL yyrc; | 
|---|
| 5079 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5080 |  | 
|---|
| 5081 | yyrc = WinCreateCursor(a, b, c, d, e, f, g); | 
|---|
| 5082 | SetFS(sel); | 
|---|
| 5083 |  | 
|---|
| 5084 | return yyrc; | 
|---|
| 5085 | } | 
|---|
| 5086 |  | 
|---|
| 5087 | #undef  WinCreateCursor | 
|---|
| 5088 | #define WinCreateCursor _WinCreateCursor | 
|---|
| 5089 |  | 
|---|
| 5090 | inline BOOL _WinDestroyCursor(HWND a) | 
|---|
| 5091 | { | 
|---|
| 5092 | BOOL yyrc; | 
|---|
| 5093 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5094 |  | 
|---|
| 5095 | yyrc = WinDestroyCursor(a); | 
|---|
| 5096 | SetFS(sel); | 
|---|
| 5097 |  | 
|---|
| 5098 | return yyrc; | 
|---|
| 5099 | } | 
|---|
| 5100 |  | 
|---|
| 5101 | #undef  WinDestroyCursor | 
|---|
| 5102 | #define WinDestroyCursor _WinDestroyCursor | 
|---|
| 5103 |  | 
|---|
| 5104 | inline BOOL _WinShowCursor(HWND a, BOOL b) | 
|---|
| 5105 | { | 
|---|
| 5106 | BOOL yyrc; | 
|---|
| 5107 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5108 |  | 
|---|
| 5109 | yyrc = WinShowCursor(a, b); | 
|---|
| 5110 | SetFS(sel); | 
|---|
| 5111 |  | 
|---|
| 5112 | return yyrc; | 
|---|
| 5113 | } | 
|---|
| 5114 |  | 
|---|
| 5115 | #undef  WinShowCursor | 
|---|
| 5116 | #define WinShowCursor _WinShowCursor | 
|---|
| 5117 |  | 
|---|
| 5118 | inline BOOL _WinQueryCursorInfo(HWND a, PCURSORINFO b) | 
|---|
| 5119 | { | 
|---|
| 5120 | BOOL yyrc; | 
|---|
| 5121 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5122 |  | 
|---|
| 5123 | yyrc = WinQueryCursorInfo(a, b); | 
|---|
| 5124 | SetFS(sel); | 
|---|
| 5125 |  | 
|---|
| 5126 | return yyrc; | 
|---|
| 5127 | } | 
|---|
| 5128 |  | 
|---|
| 5129 | #undef  WinQueryCursorInfo | 
|---|
| 5130 | #define WinQueryCursorInfo _WinQueryCursorInfo | 
|---|
| 5131 |  | 
|---|
| 5132 | #endif | 
|---|
| 5133 | #ifdef INCL_WINDESKTOP | 
|---|
| 5134 | inline BOOL _WinQueryDesktopBkgnd(HWND a, PDESKTOP b) | 
|---|
| 5135 | { | 
|---|
| 5136 | BOOL yyrc; | 
|---|
| 5137 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5138 |  | 
|---|
| 5139 | yyrc = WinQueryDesktopBkgnd(a, b); | 
|---|
| 5140 | SetFS(sel); | 
|---|
| 5141 |  | 
|---|
| 5142 | return yyrc; | 
|---|
| 5143 | } | 
|---|
| 5144 |  | 
|---|
| 5145 | #undef  WinQueryDesktopBkgnd | 
|---|
| 5146 | #define WinQueryDesktopBkgnd _WinQueryDesktopBkgnd | 
|---|
| 5147 |  | 
|---|
| 5148 | inline HBITMAP _WinSetDesktopBkgnd(HWND a, PDESKTOP b) | 
|---|
| 5149 | { | 
|---|
| 5150 | HBITMAP yyrc; | 
|---|
| 5151 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5152 |  | 
|---|
| 5153 | yyrc = WinSetDesktopBkgnd(a, b); | 
|---|
| 5154 | SetFS(sel); | 
|---|
| 5155 |  | 
|---|
| 5156 | return yyrc; | 
|---|
| 5157 | } | 
|---|
| 5158 |  | 
|---|
| 5159 | #undef  WinSetDesktopBkgnd | 
|---|
| 5160 | #define WinSetDesktopBkgnd _WinSetDesktopBkgnd | 
|---|
| 5161 |  | 
|---|
| 5162 | #endif | 
|---|
| 5163 | #ifdef INCL_WINDIALOGS | 
|---|
| 5164 | inline BOOL _WinAlarm(HWND a, ULONG b) | 
|---|
| 5165 | { | 
|---|
| 5166 | BOOL yyrc; | 
|---|
| 5167 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5168 |  | 
|---|
| 5169 | yyrc = WinAlarm(a, b); | 
|---|
| 5170 | SetFS(sel); | 
|---|
| 5171 |  | 
|---|
| 5172 | return yyrc; | 
|---|
| 5173 | } | 
|---|
| 5174 |  | 
|---|
| 5175 | #undef  WinAlarm | 
|---|
| 5176 | #define WinAlarm _WinAlarm | 
|---|
| 5177 |  | 
|---|
| 5178 | inline MRESULT _WinDefDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d) | 
|---|
| 5179 | { | 
|---|
| 5180 | MRESULT yyrc; | 
|---|
| 5181 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5182 |  | 
|---|
| 5183 | yyrc = WinDefDlgProc(a, b, c, d); | 
|---|
| 5184 | SetFS(sel); | 
|---|
| 5185 |  | 
|---|
| 5186 | return yyrc; | 
|---|
| 5187 | } | 
|---|
| 5188 |  | 
|---|
| 5189 | #undef  WinDefDlgProc | 
|---|
| 5190 | #define WinDefDlgProc _WinDefDlgProc | 
|---|
| 5191 |  | 
|---|
| 5192 | inline BOOL _WinDismissDlg(HWND a, ULONG b) | 
|---|
| 5193 | { | 
|---|
| 5194 | BOOL yyrc; | 
|---|
| 5195 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5196 |  | 
|---|
| 5197 | yyrc = WinDismissDlg(a, b); | 
|---|
| 5198 | SetFS(sel); | 
|---|
| 5199 |  | 
|---|
| 5200 | return yyrc; | 
|---|
| 5201 | } | 
|---|
| 5202 |  | 
|---|
| 5203 | #undef  WinDismissDlg | 
|---|
| 5204 | #define WinDismissDlg _WinDismissDlg | 
|---|
| 5205 |  | 
|---|
| 5206 | inline ULONG _WinDlgBox(HWND a, HWND b, PFNWP c, HMODULE d, ULONG e, PVOID f) | 
|---|
| 5207 | { | 
|---|
| 5208 | ULONG yyrc; | 
|---|
| 5209 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5210 |  | 
|---|
| 5211 | yyrc = WinDlgBox(a, b, c, d, e, f); | 
|---|
| 5212 | SetFS(sel); | 
|---|
| 5213 |  | 
|---|
| 5214 | return yyrc; | 
|---|
| 5215 | } | 
|---|
| 5216 |  | 
|---|
| 5217 | #undef  WinDlgBox | 
|---|
| 5218 | #define WinDlgBox _WinDlgBox | 
|---|
| 5219 |  | 
|---|
| 5220 | inline BOOL _WinGetDlgMsg(HWND a, PQMSG b) | 
|---|
| 5221 | { | 
|---|
| 5222 | BOOL yyrc; | 
|---|
| 5223 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5224 |  | 
|---|
| 5225 | yyrc = WinGetDlgMsg(a, b); | 
|---|
| 5226 | SetFS(sel); | 
|---|
| 5227 |  | 
|---|
| 5228 | return yyrc; | 
|---|
| 5229 | } | 
|---|
| 5230 |  | 
|---|
| 5231 | #undef  WinGetDlgMsg | 
|---|
| 5232 | #define WinGetDlgMsg _WinGetDlgMsg | 
|---|
| 5233 |  | 
|---|
| 5234 | inline HWND _WinLoadDlg(HWND a, HWND b, PFNWP c, HMODULE d, ULONG e, PVOID f) | 
|---|
| 5235 | { | 
|---|
| 5236 | HWND yyrc; | 
|---|
| 5237 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5238 |  | 
|---|
| 5239 | yyrc = WinLoadDlg(a, b, c, d, e, f); | 
|---|
| 5240 | SetFS(sel); | 
|---|
| 5241 |  | 
|---|
| 5242 | return yyrc; | 
|---|
| 5243 | } | 
|---|
| 5244 |  | 
|---|
| 5245 | #undef  WinLoadDlg | 
|---|
| 5246 | #define WinLoadDlg _WinLoadDlg | 
|---|
| 5247 |  | 
|---|
| 5248 | inline ULONG _WinMessageBox(HWND a, HWND b, PCSZ c, PCSZ d, ULONG e, ULONG f) | 
|---|
| 5249 | { | 
|---|
| 5250 | ULONG yyrc; | 
|---|
| 5251 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5252 |  | 
|---|
| 5253 | yyrc = WinMessageBox(a, b, c, d, e, f); | 
|---|
| 5254 | SetFS(sel); | 
|---|
| 5255 |  | 
|---|
| 5256 | return yyrc; | 
|---|
| 5257 | } | 
|---|
| 5258 |  | 
|---|
| 5259 | #undef  WinMessageBox | 
|---|
| 5260 | #define WinMessageBox _WinMessageBox | 
|---|
| 5261 |  | 
|---|
| 5262 | inline ULONG _WinMessageBox2(HWND a, HWND b, PSZ c, PSZ d, ULONG e, PMB2INFO f) | 
|---|
| 5263 | { | 
|---|
| 5264 | ULONG yyrc; | 
|---|
| 5265 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5266 |  | 
|---|
| 5267 | yyrc = WinMessageBox2(a, b, c, d, e, f); | 
|---|
| 5268 | SetFS(sel); | 
|---|
| 5269 |  | 
|---|
| 5270 | return yyrc; | 
|---|
| 5271 | } | 
|---|
| 5272 |  | 
|---|
| 5273 | #undef  WinMessageBox2 | 
|---|
| 5274 | #define WinMessageBox2 _WinMessageBox2 | 
|---|
| 5275 |  | 
|---|
| 5276 | inline BOOL _WinQueryDlgItemShort(HWND a, ULONG b, PSHORT c, BOOL d) | 
|---|
| 5277 | { | 
|---|
| 5278 | BOOL yyrc; | 
|---|
| 5279 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5280 |  | 
|---|
| 5281 | yyrc = WinQueryDlgItemShort(a, b, c, d); | 
|---|
| 5282 | SetFS(sel); | 
|---|
| 5283 |  | 
|---|
| 5284 | return yyrc; | 
|---|
| 5285 | } | 
|---|
| 5286 |  | 
|---|
| 5287 | #undef  WinQueryDlgItemShort | 
|---|
| 5288 | #define WinQueryDlgItemShort _WinQueryDlgItemShort | 
|---|
| 5289 |  | 
|---|
| 5290 | inline ULONG _WinQueryDlgItemText(HWND a, ULONG b, LONG c, PSZ d) | 
|---|
| 5291 | { | 
|---|
| 5292 | ULONG yyrc; | 
|---|
| 5293 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5294 |  | 
|---|
| 5295 | yyrc = WinQueryDlgItemText(a, b, c, d); | 
|---|
| 5296 | SetFS(sel); | 
|---|
| 5297 |  | 
|---|
| 5298 | return yyrc; | 
|---|
| 5299 | } | 
|---|
| 5300 |  | 
|---|
| 5301 | #undef  WinQueryDlgItemText | 
|---|
| 5302 | #define WinQueryDlgItemText _WinQueryDlgItemText | 
|---|
| 5303 |  | 
|---|
| 5304 | inline LONG _WinQueryDlgItemTextLength(HWND a, ULONG b) | 
|---|
| 5305 | { | 
|---|
| 5306 | LONG yyrc; | 
|---|
| 5307 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5308 |  | 
|---|
| 5309 | yyrc = WinQueryDlgItemTextLength(a, b); | 
|---|
| 5310 | SetFS(sel); | 
|---|
| 5311 |  | 
|---|
| 5312 | return yyrc; | 
|---|
| 5313 | } | 
|---|
| 5314 |  | 
|---|
| 5315 | #undef  WinQueryDlgItemTextLength | 
|---|
| 5316 | #define WinQueryDlgItemTextLength _WinQueryDlgItemTextLength | 
|---|
| 5317 |  | 
|---|
| 5318 | inline BOOL _WinSetDlgItemShort(HWND a, ULONG b, USHORT c, BOOL d) | 
|---|
| 5319 | { | 
|---|
| 5320 | BOOL yyrc; | 
|---|
| 5321 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5322 |  | 
|---|
| 5323 | yyrc = WinSetDlgItemShort(a, b, c, d); | 
|---|
| 5324 | SetFS(sel); | 
|---|
| 5325 |  | 
|---|
| 5326 | return yyrc; | 
|---|
| 5327 | } | 
|---|
| 5328 |  | 
|---|
| 5329 | #undef  WinSetDlgItemShort | 
|---|
| 5330 | #define WinSetDlgItemShort _WinSetDlgItemShort | 
|---|
| 5331 |  | 
|---|
| 5332 | inline BOOL _WinSetDlgItemText(HWND a, ULONG b, PCSZ c) | 
|---|
| 5333 | { | 
|---|
| 5334 | BOOL yyrc; | 
|---|
| 5335 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5336 |  | 
|---|
| 5337 | yyrc = WinSetDlgItemText(a, b, c); | 
|---|
| 5338 | SetFS(sel); | 
|---|
| 5339 |  | 
|---|
| 5340 | return yyrc; | 
|---|
| 5341 | } | 
|---|
| 5342 |  | 
|---|
| 5343 | #undef  WinSetDlgItemText | 
|---|
| 5344 | #define WinSetDlgItemText _WinSetDlgItemText | 
|---|
| 5345 |  | 
|---|
| 5346 | inline HWND _WinCreateDlg(HWND a, HWND b, PFNWP c, PDLGTEMPLATE d, PVOID e) | 
|---|
| 5347 | { | 
|---|
| 5348 | HWND yyrc; | 
|---|
| 5349 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5350 |  | 
|---|
| 5351 | yyrc = WinCreateDlg(a, b, c, d, e); | 
|---|
| 5352 | SetFS(sel); | 
|---|
| 5353 |  | 
|---|
| 5354 | return yyrc; | 
|---|
| 5355 | } | 
|---|
| 5356 |  | 
|---|
| 5357 | #undef  WinCreateDlg | 
|---|
| 5358 | #define WinCreateDlg _WinCreateDlg | 
|---|
| 5359 |  | 
|---|
| 5360 | inline HWND _WinEnumDlgItem(HWND a, HWND b, ULONG c) | 
|---|
| 5361 | { | 
|---|
| 5362 | HWND yyrc; | 
|---|
| 5363 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5364 |  | 
|---|
| 5365 | yyrc = WinEnumDlgItem(a, b, c); | 
|---|
| 5366 | SetFS(sel); | 
|---|
| 5367 |  | 
|---|
| 5368 | return yyrc; | 
|---|
| 5369 | } | 
|---|
| 5370 |  | 
|---|
| 5371 | #undef  WinEnumDlgItem | 
|---|
| 5372 | #define WinEnumDlgItem _WinEnumDlgItem | 
|---|
| 5373 |  | 
|---|
| 5374 | inline BOOL _WinMapDlgPoints(HWND a, PPOINTL b, ULONG c, BOOL d) | 
|---|
| 5375 | { | 
|---|
| 5376 | BOOL yyrc; | 
|---|
| 5377 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5378 |  | 
|---|
| 5379 | yyrc = WinMapDlgPoints(a, b, c, d); | 
|---|
| 5380 | SetFS(sel); | 
|---|
| 5381 |  | 
|---|
| 5382 | return yyrc; | 
|---|
| 5383 | } | 
|---|
| 5384 |  | 
|---|
| 5385 | #undef  WinMapDlgPoints | 
|---|
| 5386 | #define WinMapDlgPoints _WinMapDlgPoints | 
|---|
| 5387 |  | 
|---|
| 5388 | inline ULONG _WinProcessDlg(HWND a) | 
|---|
| 5389 | { | 
|---|
| 5390 | ULONG yyrc; | 
|---|
| 5391 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5392 |  | 
|---|
| 5393 | yyrc = WinProcessDlg(a); | 
|---|
| 5394 | SetFS(sel); | 
|---|
| 5395 |  | 
|---|
| 5396 | return yyrc; | 
|---|
| 5397 | } | 
|---|
| 5398 |  | 
|---|
| 5399 | #undef  WinProcessDlg | 
|---|
| 5400 | #define WinProcessDlg _WinProcessDlg | 
|---|
| 5401 |  | 
|---|
| 5402 | inline MRESULT _WinSendDlgItemMsg(HWND a, ULONG b, ULONG c, MPARAM d, MPARAM e) | 
|---|
| 5403 | { | 
|---|
| 5404 | MRESULT yyrc; | 
|---|
| 5405 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5406 |  | 
|---|
| 5407 | yyrc = WinSendDlgItemMsg(a, b, c, d, e); | 
|---|
| 5408 | SetFS(sel); | 
|---|
| 5409 |  | 
|---|
| 5410 | return yyrc; | 
|---|
| 5411 | } | 
|---|
| 5412 |  | 
|---|
| 5413 | #undef  WinSendDlgItemMsg | 
|---|
| 5414 | #define WinSendDlgItemMsg _WinSendDlgItemMsg | 
|---|
| 5415 |  | 
|---|
| 5416 | inline LONG _WinSubstituteStrings(HWND a, PCSZ b, LONG c, PSZ d) | 
|---|
| 5417 | { | 
|---|
| 5418 | LONG yyrc; | 
|---|
| 5419 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5420 |  | 
|---|
| 5421 | yyrc = WinSubstituteStrings(a, b, c, d); | 
|---|
| 5422 | SetFS(sel); | 
|---|
| 5423 |  | 
|---|
| 5424 | return yyrc; | 
|---|
| 5425 | } | 
|---|
| 5426 |  | 
|---|
| 5427 | #undef  WinSubstituteStrings | 
|---|
| 5428 | #define WinSubstituteStrings _WinSubstituteStrings | 
|---|
| 5429 |  | 
|---|
| 5430 | #endif | 
|---|
| 5431 | #ifdef INCL_WINERRORS | 
|---|
| 5432 | inline ERRORID _WinGetLastError(HAB a) | 
|---|
| 5433 | { | 
|---|
| 5434 | ERRORID yyrc; | 
|---|
| 5435 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5436 |  | 
|---|
| 5437 | yyrc = WinGetLastError(a); | 
|---|
| 5438 | SetFS(sel); | 
|---|
| 5439 |  | 
|---|
| 5440 | return yyrc; | 
|---|
| 5441 | } | 
|---|
| 5442 |  | 
|---|
| 5443 | #undef  WinGetLastError | 
|---|
| 5444 | #define WinGetLastError _WinGetLastError | 
|---|
| 5445 |  | 
|---|
| 5446 | inline BOOL _WinFreeErrorInfo(PERRINFO a) | 
|---|
| 5447 | { | 
|---|
| 5448 | BOOL yyrc; | 
|---|
| 5449 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5450 |  | 
|---|
| 5451 | yyrc = WinFreeErrorInfo(a); | 
|---|
| 5452 | SetFS(sel); | 
|---|
| 5453 |  | 
|---|
| 5454 | return yyrc; | 
|---|
| 5455 | } | 
|---|
| 5456 |  | 
|---|
| 5457 | #undef  WinFreeErrorInfo | 
|---|
| 5458 | #define WinFreeErrorInfo _WinFreeErrorInfo | 
|---|
| 5459 |  | 
|---|
| 5460 | inline PERRINFO _WinGetErrorInfo(HAB a) | 
|---|
| 5461 | { | 
|---|
| 5462 | PERRINFO yyrc; | 
|---|
| 5463 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5464 |  | 
|---|
| 5465 | yyrc = WinGetErrorInfo(a); | 
|---|
| 5466 | SetFS(sel); | 
|---|
| 5467 |  | 
|---|
| 5468 | return yyrc; | 
|---|
| 5469 | } | 
|---|
| 5470 |  | 
|---|
| 5471 | #undef  WinGetErrorInfo | 
|---|
| 5472 | #define WinGetErrorInfo _WinGetErrorInfo | 
|---|
| 5473 |  | 
|---|
| 5474 | #endif | 
|---|
| 5475 | #ifdef INCL_WINHOOKS | 
|---|
| 5476 | inline BOOL _WinCallMsgFilter(HAB a, PQMSG b, ULONG c) | 
|---|
| 5477 | { | 
|---|
| 5478 | BOOL yyrc; | 
|---|
| 5479 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5480 |  | 
|---|
| 5481 | yyrc = WinCallMsgFilter(a, b, c); | 
|---|
| 5482 | SetFS(sel); | 
|---|
| 5483 |  | 
|---|
| 5484 | return yyrc; | 
|---|
| 5485 | } | 
|---|
| 5486 |  | 
|---|
| 5487 | #undef  WinCallMsgFilter | 
|---|
| 5488 | #define WinCallMsgFilter _WinCallMsgFilter | 
|---|
| 5489 |  | 
|---|
| 5490 | inline BOOL _WinReleaseHook(HAB a, HMQ b, LONG c, PFN d, HMODULE e) | 
|---|
| 5491 | { | 
|---|
| 5492 | BOOL yyrc; | 
|---|
| 5493 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5494 |  | 
|---|
| 5495 | yyrc = WinReleaseHook(a, b, c, d, e); | 
|---|
| 5496 | SetFS(sel); | 
|---|
| 5497 |  | 
|---|
| 5498 | return yyrc; | 
|---|
| 5499 | } | 
|---|
| 5500 |  | 
|---|
| 5501 | #undef  WinReleaseHook | 
|---|
| 5502 | #define WinReleaseHook _WinReleaseHook | 
|---|
| 5503 |  | 
|---|
| 5504 | inline BOOL _WinSetHook(HAB a, HMQ b, LONG c, PFN d, HMODULE e) | 
|---|
| 5505 | { | 
|---|
| 5506 | BOOL yyrc; | 
|---|
| 5507 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5508 |  | 
|---|
| 5509 | yyrc = WinSetHook(a, b, c, d, e); | 
|---|
| 5510 | SetFS(sel); | 
|---|
| 5511 |  | 
|---|
| 5512 | return yyrc; | 
|---|
| 5513 | } | 
|---|
| 5514 |  | 
|---|
| 5515 | #undef  WinSetHook | 
|---|
| 5516 | #define WinSetHook _WinSetHook | 
|---|
| 5517 |  | 
|---|
| 5518 | #endif | 
|---|
| 5519 | #ifdef INCL_WININPUT | 
|---|
| 5520 | inline BOOL _WinFocusChange(HWND a, HWND b, ULONG c) | 
|---|
| 5521 | { | 
|---|
| 5522 | BOOL yyrc; | 
|---|
| 5523 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5524 |  | 
|---|
| 5525 | yyrc = WinFocusChange(a, b, c); | 
|---|
| 5526 | SetFS(sel); | 
|---|
| 5527 |  | 
|---|
| 5528 | return yyrc; | 
|---|
| 5529 | } | 
|---|
| 5530 |  | 
|---|
| 5531 | #undef  WinFocusChange | 
|---|
| 5532 | #define WinFocusChange _WinFocusChange | 
|---|
| 5533 |  | 
|---|
| 5534 | inline BOOL _WinLockupSystem(HAB a) | 
|---|
| 5535 | { | 
|---|
| 5536 | BOOL yyrc; | 
|---|
| 5537 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5538 |  | 
|---|
| 5539 | yyrc = WinLockupSystem(a); | 
|---|
| 5540 | SetFS(sel); | 
|---|
| 5541 |  | 
|---|
| 5542 | return yyrc; | 
|---|
| 5543 | } | 
|---|
| 5544 |  | 
|---|
| 5545 | #undef  WinLockupSystem | 
|---|
| 5546 | #define WinLockupSystem _WinLockupSystem | 
|---|
| 5547 |  | 
|---|
| 5548 | inline BOOL _WinSetFocus(HWND a, HWND b) | 
|---|
| 5549 | { | 
|---|
| 5550 | BOOL yyrc; | 
|---|
| 5551 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5552 |  | 
|---|
| 5553 | yyrc = WinSetFocus(a, b); | 
|---|
| 5554 | SetFS(sel); | 
|---|
| 5555 |  | 
|---|
| 5556 | return yyrc; | 
|---|
| 5557 | } | 
|---|
| 5558 |  | 
|---|
| 5559 | #undef  WinSetFocus | 
|---|
| 5560 | #define WinSetFocus _WinSetFocus | 
|---|
| 5561 |  | 
|---|
| 5562 | inline BOOL _WinUnlockSystem(HAB a, PSZ b) | 
|---|
| 5563 | { | 
|---|
| 5564 | BOOL yyrc; | 
|---|
| 5565 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5566 |  | 
|---|
| 5567 | yyrc = WinUnlockSystem(a, b); | 
|---|
| 5568 | SetFS(sel); | 
|---|
| 5569 |  | 
|---|
| 5570 | return yyrc; | 
|---|
| 5571 | } | 
|---|
| 5572 |  | 
|---|
| 5573 | #undef  WinUnlockSystem | 
|---|
| 5574 | #define WinUnlockSystem _WinUnlockSystem | 
|---|
| 5575 |  | 
|---|
| 5576 | inline BOOL _WinCheckInput(HAB a) | 
|---|
| 5577 | { | 
|---|
| 5578 | BOOL yyrc; | 
|---|
| 5579 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5580 |  | 
|---|
| 5581 | yyrc = WinCheckInput(a); | 
|---|
| 5582 | SetFS(sel); | 
|---|
| 5583 |  | 
|---|
| 5584 | return yyrc; | 
|---|
| 5585 | } | 
|---|
| 5586 |  | 
|---|
| 5587 | #undef  WinCheckInput | 
|---|
| 5588 | #define WinCheckInput _WinCheckInput | 
|---|
| 5589 |  | 
|---|
| 5590 | inline BOOL _WinEnablePhysInput(HWND a, BOOL b) | 
|---|
| 5591 | { | 
|---|
| 5592 | BOOL yyrc; | 
|---|
| 5593 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5594 |  | 
|---|
| 5595 | yyrc = WinEnablePhysInput(a, b); | 
|---|
| 5596 | SetFS(sel); | 
|---|
| 5597 |  | 
|---|
| 5598 | return yyrc; | 
|---|
| 5599 | } | 
|---|
| 5600 |  | 
|---|
| 5601 | #undef  WinEnablePhysInput | 
|---|
| 5602 | #define WinEnablePhysInput _WinEnablePhysInput | 
|---|
| 5603 |  | 
|---|
| 5604 | inline LONG _WinGetKeyState(HWND a, LONG b) | 
|---|
| 5605 | { | 
|---|
| 5606 | LONG yyrc; | 
|---|
| 5607 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5608 |  | 
|---|
| 5609 | yyrc = WinGetKeyState(a, b); | 
|---|
| 5610 | SetFS(sel); | 
|---|
| 5611 |  | 
|---|
| 5612 | return yyrc; | 
|---|
| 5613 | } | 
|---|
| 5614 |  | 
|---|
| 5615 | #undef  WinGetKeyState | 
|---|
| 5616 | #define WinGetKeyState _WinGetKeyState | 
|---|
| 5617 |  | 
|---|
| 5618 | inline LONG _WinGetPhysKeyState(HWND a, LONG b) | 
|---|
| 5619 | { | 
|---|
| 5620 | LONG yyrc; | 
|---|
| 5621 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5622 |  | 
|---|
| 5623 | yyrc = WinGetPhysKeyState(a, b); | 
|---|
| 5624 | SetFS(sel); | 
|---|
| 5625 |  | 
|---|
| 5626 | return yyrc; | 
|---|
| 5627 | } | 
|---|
| 5628 |  | 
|---|
| 5629 | #undef  WinGetPhysKeyState | 
|---|
| 5630 | #define WinGetPhysKeyState _WinGetPhysKeyState | 
|---|
| 5631 |  | 
|---|
| 5632 | inline BOOL _WinIsPhysInputEnabled(HWND a) | 
|---|
| 5633 | { | 
|---|
| 5634 | BOOL yyrc; | 
|---|
| 5635 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5636 |  | 
|---|
| 5637 | yyrc = WinIsPhysInputEnabled(a); | 
|---|
| 5638 | SetFS(sel); | 
|---|
| 5639 |  | 
|---|
| 5640 | return yyrc; | 
|---|
| 5641 | } | 
|---|
| 5642 |  | 
|---|
| 5643 | #undef  WinIsPhysInputEnabled | 
|---|
| 5644 | #define WinIsPhysInputEnabled _WinIsPhysInputEnabled | 
|---|
| 5645 |  | 
|---|
| 5646 | inline HWND _WinQueryCapture(HWND a) | 
|---|
| 5647 | { | 
|---|
| 5648 | HWND yyrc; | 
|---|
| 5649 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5650 |  | 
|---|
| 5651 | yyrc = WinQueryCapture(a); | 
|---|
| 5652 | SetFS(sel); | 
|---|
| 5653 |  | 
|---|
| 5654 | return yyrc; | 
|---|
| 5655 | } | 
|---|
| 5656 |  | 
|---|
| 5657 | #undef  WinQueryCapture | 
|---|
| 5658 | #define WinQueryCapture _WinQueryCapture | 
|---|
| 5659 |  | 
|---|
| 5660 | inline HWND _WinQueryFocus(HWND a) | 
|---|
| 5661 | { | 
|---|
| 5662 | HWND yyrc; | 
|---|
| 5663 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5664 |  | 
|---|
| 5665 | yyrc = WinQueryFocus(a); | 
|---|
| 5666 | SetFS(sel); | 
|---|
| 5667 |  | 
|---|
| 5668 | return yyrc; | 
|---|
| 5669 | } | 
|---|
| 5670 |  | 
|---|
| 5671 | #undef  WinQueryFocus | 
|---|
| 5672 | #define WinQueryFocus _WinQueryFocus | 
|---|
| 5673 |  | 
|---|
| 5674 | inline ULONG _WinQueryVisibleRegion(HWND a, HRGN b) | 
|---|
| 5675 | { | 
|---|
| 5676 | ULONG yyrc; | 
|---|
| 5677 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5678 |  | 
|---|
| 5679 | yyrc = WinQueryVisibleRegion(a, b); | 
|---|
| 5680 | SetFS(sel); | 
|---|
| 5681 |  | 
|---|
| 5682 | return yyrc; | 
|---|
| 5683 | } | 
|---|
| 5684 |  | 
|---|
| 5685 | #undef  WinQueryVisibleRegion | 
|---|
| 5686 | #define WinQueryVisibleRegion _WinQueryVisibleRegion | 
|---|
| 5687 |  | 
|---|
| 5688 | inline BOOL _WinSetCapture(HWND a, HWND b) | 
|---|
| 5689 | { | 
|---|
| 5690 | BOOL yyrc; | 
|---|
| 5691 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5692 |  | 
|---|
| 5693 | yyrc = WinSetCapture(a, b); | 
|---|
| 5694 | SetFS(sel); | 
|---|
| 5695 |  | 
|---|
| 5696 | return yyrc; | 
|---|
| 5697 | } | 
|---|
| 5698 |  | 
|---|
| 5699 | #undef  WinSetCapture | 
|---|
| 5700 | #define WinSetCapture _WinSetCapture | 
|---|
| 5701 |  | 
|---|
| 5702 | inline BOOL _WinSetKeyboardStateTable(HWND a, PBYTE b, BOOL c) | 
|---|
| 5703 | { | 
|---|
| 5704 | BOOL yyrc; | 
|---|
| 5705 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5706 |  | 
|---|
| 5707 | yyrc = WinSetKeyboardStateTable(a, b, c); | 
|---|
| 5708 | SetFS(sel); | 
|---|
| 5709 |  | 
|---|
| 5710 | return yyrc; | 
|---|
| 5711 | } | 
|---|
| 5712 |  | 
|---|
| 5713 | #undef  WinSetKeyboardStateTable | 
|---|
| 5714 | #define WinSetKeyboardStateTable _WinSetKeyboardStateTable | 
|---|
| 5715 |  | 
|---|
| 5716 | inline BOOL _WinSetVisibleRegionNotify(HWND a, BOOL b) | 
|---|
| 5717 | { | 
|---|
| 5718 | BOOL yyrc; | 
|---|
| 5719 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5720 |  | 
|---|
| 5721 | yyrc = WinSetVisibleRegionNotify(a, b); | 
|---|
| 5722 | SetFS(sel); | 
|---|
| 5723 |  | 
|---|
| 5724 | return yyrc; | 
|---|
| 5725 | } | 
|---|
| 5726 |  | 
|---|
| 5727 | #undef  WinSetVisibleRegionNotify | 
|---|
| 5728 | #define WinSetVisibleRegionNotify _WinSetVisibleRegionNotify | 
|---|
| 5729 |  | 
|---|
| 5730 | #endif | 
|---|
| 5731 | #ifdef INCL_WINLOAD | 
|---|
| 5732 | inline BOOL _WinDeleteLibrary(HAB a, HLIB b) | 
|---|
| 5733 | { | 
|---|
| 5734 | BOOL yyrc; | 
|---|
| 5735 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5736 |  | 
|---|
| 5737 | yyrc = WinDeleteLibrary(a, b); | 
|---|
| 5738 | SetFS(sel); | 
|---|
| 5739 |  | 
|---|
| 5740 | return yyrc; | 
|---|
| 5741 | } | 
|---|
| 5742 |  | 
|---|
| 5743 | #undef  WinDeleteLibrary | 
|---|
| 5744 | #define WinDeleteLibrary _WinDeleteLibrary | 
|---|
| 5745 |  | 
|---|
| 5746 | inline BOOL _WinDeleteProcedure(HAB a, PFNWP b) | 
|---|
| 5747 | { | 
|---|
| 5748 | BOOL yyrc; | 
|---|
| 5749 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5750 |  | 
|---|
| 5751 | yyrc = WinDeleteProcedure(a, b); | 
|---|
| 5752 | SetFS(sel); | 
|---|
| 5753 |  | 
|---|
| 5754 | return yyrc; | 
|---|
| 5755 | } | 
|---|
| 5756 |  | 
|---|
| 5757 | #undef  WinDeleteProcedure | 
|---|
| 5758 | #define WinDeleteProcedure _WinDeleteProcedure | 
|---|
| 5759 |  | 
|---|
| 5760 | inline HLIB _WinLoadLibrary(HAB a, PCSZ b) | 
|---|
| 5761 | { | 
|---|
| 5762 | HLIB yyrc; | 
|---|
| 5763 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5764 |  | 
|---|
| 5765 | yyrc = WinLoadLibrary(a, b); | 
|---|
| 5766 | SetFS(sel); | 
|---|
| 5767 |  | 
|---|
| 5768 | return yyrc; | 
|---|
| 5769 | } | 
|---|
| 5770 |  | 
|---|
| 5771 | #undef  WinLoadLibrary | 
|---|
| 5772 | #define WinLoadLibrary _WinLoadLibrary | 
|---|
| 5773 |  | 
|---|
| 5774 | inline PFNWP _WinLoadProcedure(HAB a, HLIB b, PSZ c) | 
|---|
| 5775 | { | 
|---|
| 5776 | PFNWP yyrc; | 
|---|
| 5777 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5778 |  | 
|---|
| 5779 | yyrc = WinLoadProcedure(a, b, c); | 
|---|
| 5780 | SetFS(sel); | 
|---|
| 5781 |  | 
|---|
| 5782 | return yyrc; | 
|---|
| 5783 | } | 
|---|
| 5784 |  | 
|---|
| 5785 | #undef  WinLoadProcedure | 
|---|
| 5786 | #define WinLoadProcedure _WinLoadProcedure | 
|---|
| 5787 |  | 
|---|
| 5788 | #endif | 
|---|
| 5789 | #ifdef INCL_WINMENUS | 
|---|
| 5790 | inline HWND _WinCreateMenu(HWND a, PVOID b) | 
|---|
| 5791 | { | 
|---|
| 5792 | HWND yyrc; | 
|---|
| 5793 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5794 |  | 
|---|
| 5795 | yyrc = WinCreateMenu(a, b); | 
|---|
| 5796 | SetFS(sel); | 
|---|
| 5797 |  | 
|---|
| 5798 | return yyrc; | 
|---|
| 5799 | } | 
|---|
| 5800 |  | 
|---|
| 5801 | #undef  WinCreateMenu | 
|---|
| 5802 | #define WinCreateMenu _WinCreateMenu | 
|---|
| 5803 |  | 
|---|
| 5804 | inline HWND _WinLoadMenu(HWND a, HMODULE b, ULONG c) | 
|---|
| 5805 | { | 
|---|
| 5806 | HWND yyrc; | 
|---|
| 5807 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5808 |  | 
|---|
| 5809 | yyrc = WinLoadMenu(a, b, c); | 
|---|
| 5810 | SetFS(sel); | 
|---|
| 5811 |  | 
|---|
| 5812 | return yyrc; | 
|---|
| 5813 | } | 
|---|
| 5814 |  | 
|---|
| 5815 | #undef  WinLoadMenu | 
|---|
| 5816 | #define WinLoadMenu _WinLoadMenu | 
|---|
| 5817 |  | 
|---|
| 5818 | inline BOOL _WinPopupMenu(HWND a, HWND b, HWND c, LONG d, LONG e, LONG f, ULONG g) | 
|---|
| 5819 | { | 
|---|
| 5820 | BOOL yyrc; | 
|---|
| 5821 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5822 |  | 
|---|
| 5823 | yyrc = WinPopupMenu(a, b, c, d, e, f, g); | 
|---|
| 5824 | SetFS(sel); | 
|---|
| 5825 |  | 
|---|
| 5826 | return yyrc; | 
|---|
| 5827 | } | 
|---|
| 5828 |  | 
|---|
| 5829 | #undef  WinPopupMenu | 
|---|
| 5830 | #define WinPopupMenu _WinPopupMenu | 
|---|
| 5831 |  | 
|---|
| 5832 | #endif | 
|---|
| 5833 | #ifdef INCL_WINMESSAGEMGR | 
|---|
| 5834 | inline BOOL _WinBroadcastMsg(HWND a, ULONG b, MPARAM c, MPARAM d, ULONG e) | 
|---|
| 5835 | { | 
|---|
| 5836 | BOOL yyrc; | 
|---|
| 5837 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5838 |  | 
|---|
| 5839 | yyrc = WinBroadcastMsg(a, b, c, d, e); | 
|---|
| 5840 | SetFS(sel); | 
|---|
| 5841 |  | 
|---|
| 5842 | return yyrc; | 
|---|
| 5843 | } | 
|---|
| 5844 |  | 
|---|
| 5845 | #undef  WinBroadcastMsg | 
|---|
| 5846 | #define WinBroadcastMsg _WinBroadcastMsg | 
|---|
| 5847 |  | 
|---|
| 5848 | inline BOOL _WinInSendMsg(HAB a) | 
|---|
| 5849 | { | 
|---|
| 5850 | BOOL yyrc; | 
|---|
| 5851 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5852 |  | 
|---|
| 5853 | yyrc = WinInSendMsg(a); | 
|---|
| 5854 | SetFS(sel); | 
|---|
| 5855 |  | 
|---|
| 5856 | return yyrc; | 
|---|
| 5857 | } | 
|---|
| 5858 |  | 
|---|
| 5859 | #undef  WinInSendMsg | 
|---|
| 5860 | #define WinInSendMsg _WinInSendMsg | 
|---|
| 5861 |  | 
|---|
| 5862 | inline BOOL _WinPostQueueMsg(HMQ a, ULONG b, MPARAM c, MPARAM d) | 
|---|
| 5863 | { | 
|---|
| 5864 | BOOL yyrc; | 
|---|
| 5865 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5866 |  | 
|---|
| 5867 | yyrc = WinPostQueueMsg(a, b, c, d); | 
|---|
| 5868 | SetFS(sel); | 
|---|
| 5869 |  | 
|---|
| 5870 | return yyrc; | 
|---|
| 5871 | } | 
|---|
| 5872 |  | 
|---|
| 5873 | #undef  WinPostQueueMsg | 
|---|
| 5874 | #define WinPostQueueMsg _WinPostQueueMsg | 
|---|
| 5875 |  | 
|---|
| 5876 | inline BOOL _WinQueryMsgPos(HAB a, PPOINTL b) | 
|---|
| 5877 | { | 
|---|
| 5878 | BOOL yyrc; | 
|---|
| 5879 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5880 |  | 
|---|
| 5881 | yyrc = WinQueryMsgPos(a, b); | 
|---|
| 5882 | SetFS(sel); | 
|---|
| 5883 |  | 
|---|
| 5884 | return yyrc; | 
|---|
| 5885 | } | 
|---|
| 5886 |  | 
|---|
| 5887 | #undef  WinQueryMsgPos | 
|---|
| 5888 | #define WinQueryMsgPos _WinQueryMsgPos | 
|---|
| 5889 |  | 
|---|
| 5890 | inline ULONG _WinQueryMsgTime(HAB a) | 
|---|
| 5891 | { | 
|---|
| 5892 | ULONG yyrc; | 
|---|
| 5893 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5894 |  | 
|---|
| 5895 | yyrc = WinQueryMsgTime(a); | 
|---|
| 5896 | SetFS(sel); | 
|---|
| 5897 |  | 
|---|
| 5898 | return yyrc; | 
|---|
| 5899 | } | 
|---|
| 5900 |  | 
|---|
| 5901 | #undef  WinQueryMsgTime | 
|---|
| 5902 | #define WinQueryMsgTime _WinQueryMsgTime | 
|---|
| 5903 |  | 
|---|
| 5904 | inline ULONG _WinQueryQueueStatus(HWND a) | 
|---|
| 5905 | { | 
|---|
| 5906 | ULONG yyrc; | 
|---|
| 5907 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5908 |  | 
|---|
| 5909 | yyrc = WinQueryQueueStatus(a); | 
|---|
| 5910 | SetFS(sel); | 
|---|
| 5911 |  | 
|---|
| 5912 | return yyrc; | 
|---|
| 5913 | } | 
|---|
| 5914 |  | 
|---|
| 5915 | #undef  WinQueryQueueStatus | 
|---|
| 5916 | #define WinQueryQueueStatus _WinQueryQueueStatus | 
|---|
| 5917 |  | 
|---|
| 5918 | inline ULONG _WinRequestMutexSem(HMTX a, ULONG b) | 
|---|
| 5919 | { | 
|---|
| 5920 | ULONG yyrc; | 
|---|
| 5921 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5922 |  | 
|---|
| 5923 | yyrc = WinRequestMutexSem(a, b); | 
|---|
| 5924 | SetFS(sel); | 
|---|
| 5925 |  | 
|---|
| 5926 | return yyrc; | 
|---|
| 5927 | } | 
|---|
| 5928 |  | 
|---|
| 5929 | #undef  WinRequestMutexSem | 
|---|
| 5930 | #define WinRequestMutexSem _WinRequestMutexSem | 
|---|
| 5931 |  | 
|---|
| 5932 | inline BOOL _WinSetClassMsgInterest(HAB a, PCSZ b, ULONG c, LONG d) | 
|---|
| 5933 | { | 
|---|
| 5934 | BOOL yyrc; | 
|---|
| 5935 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5936 |  | 
|---|
| 5937 | yyrc = WinSetClassMsgInterest(a, b, c, d); | 
|---|
| 5938 | SetFS(sel); | 
|---|
| 5939 |  | 
|---|
| 5940 | return yyrc; | 
|---|
| 5941 | } | 
|---|
| 5942 |  | 
|---|
| 5943 | #undef  WinSetClassMsgInterest | 
|---|
| 5944 | #define WinSetClassMsgInterest _WinSetClassMsgInterest | 
|---|
| 5945 |  | 
|---|
| 5946 | inline BOOL _WinSetMsgInterest(HWND a, ULONG b, LONG c) | 
|---|
| 5947 | { | 
|---|
| 5948 | BOOL yyrc; | 
|---|
| 5949 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5950 |  | 
|---|
| 5951 | yyrc = WinSetMsgInterest(a, b, c); | 
|---|
| 5952 | SetFS(sel); | 
|---|
| 5953 |  | 
|---|
| 5954 | return yyrc; | 
|---|
| 5955 | } | 
|---|
| 5956 |  | 
|---|
| 5957 | #undef  WinSetMsgInterest | 
|---|
| 5958 | #define WinSetMsgInterest _WinSetMsgInterest | 
|---|
| 5959 |  | 
|---|
| 5960 | inline ULONG _WinWaitEventSem(HEV a, ULONG b) | 
|---|
| 5961 | { | 
|---|
| 5962 | ULONG yyrc; | 
|---|
| 5963 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5964 |  | 
|---|
| 5965 | yyrc = WinWaitEventSem(a, b); | 
|---|
| 5966 | SetFS(sel); | 
|---|
| 5967 |  | 
|---|
| 5968 | return yyrc; | 
|---|
| 5969 | } | 
|---|
| 5970 |  | 
|---|
| 5971 | #undef  WinWaitEventSem | 
|---|
| 5972 | #define WinWaitEventSem _WinWaitEventSem | 
|---|
| 5973 |  | 
|---|
| 5974 | inline BOOL _WinWaitMsg(HAB a, ULONG b, ULONG c) | 
|---|
| 5975 | { | 
|---|
| 5976 | BOOL yyrc; | 
|---|
| 5977 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5978 |  | 
|---|
| 5979 | yyrc = WinWaitMsg(a, b, c); | 
|---|
| 5980 | SetFS(sel); | 
|---|
| 5981 |  | 
|---|
| 5982 | return yyrc; | 
|---|
| 5983 | } | 
|---|
| 5984 |  | 
|---|
| 5985 | #undef  WinWaitMsg | 
|---|
| 5986 | #define WinWaitMsg _WinWaitMsg | 
|---|
| 5987 |  | 
|---|
| 5988 | inline ULONG _WinWaitMuxWaitSem(HMUX a, ULONG b, PULONG c) | 
|---|
| 5989 | { | 
|---|
| 5990 | ULONG yyrc; | 
|---|
| 5991 | USHORT sel = RestoreOS2FS(); | 
|---|
| 5992 |  | 
|---|
| 5993 | yyrc = WinWaitMuxWaitSem(a, b, c); | 
|---|
| 5994 | SetFS(sel); | 
|---|
| 5995 |  | 
|---|
| 5996 | return yyrc; | 
|---|
| 5997 | } | 
|---|
| 5998 |  | 
|---|
| 5999 | #undef  WinWaitMuxWaitSem | 
|---|
| 6000 | #define WinWaitMuxWaitSem _WinWaitMuxWaitSem | 
|---|
| 6001 |  | 
|---|
| 6002 | #endif | 
|---|
| 6003 | #ifdef INCL_WINPALETTE | 
|---|
| 6004 | inline LONG _WinRealizePalette(HWND a, HPS b, PULONG c) | 
|---|
| 6005 | { | 
|---|
| 6006 | LONG yyrc; | 
|---|
| 6007 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6008 |  | 
|---|
| 6009 | yyrc = WinRealizePalette(a, b, c); | 
|---|
| 6010 | SetFS(sel); | 
|---|
| 6011 |  | 
|---|
| 6012 | return yyrc; | 
|---|
| 6013 | } | 
|---|
| 6014 |  | 
|---|
| 6015 | #undef  WinRealizePalette | 
|---|
| 6016 | #define WinRealizePalette _WinRealizePalette | 
|---|
| 6017 |  | 
|---|
| 6018 | #endif | 
|---|
| 6019 | #ifdef INCL_WINPOINTERS | 
|---|
| 6020 | inline HPOINTER _WinCreatePointer(HWND a, HBITMAP b, BOOL c, LONG d, LONG e) | 
|---|
| 6021 | { | 
|---|
| 6022 | HPOINTER yyrc; | 
|---|
| 6023 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6024 |  | 
|---|
| 6025 | yyrc = WinCreatePointer(a, b, c, d, e); | 
|---|
| 6026 | SetFS(sel); | 
|---|
| 6027 |  | 
|---|
| 6028 | return yyrc; | 
|---|
| 6029 | } | 
|---|
| 6030 |  | 
|---|
| 6031 | #undef  WinCreatePointer | 
|---|
| 6032 | #define WinCreatePointer _WinCreatePointer | 
|---|
| 6033 |  | 
|---|
| 6034 | inline HPOINTER _WinCreatePointerIndirect(HWND a, PPOINTERINFO b) | 
|---|
| 6035 | { | 
|---|
| 6036 | HPOINTER yyrc; | 
|---|
| 6037 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6038 |  | 
|---|
| 6039 | yyrc = WinCreatePointerIndirect(a, b); | 
|---|
| 6040 | SetFS(sel); | 
|---|
| 6041 |  | 
|---|
| 6042 | return yyrc; | 
|---|
| 6043 | } | 
|---|
| 6044 |  | 
|---|
| 6045 | #undef  WinCreatePointerIndirect | 
|---|
| 6046 | #define WinCreatePointerIndirect _WinCreatePointerIndirect | 
|---|
| 6047 |  | 
|---|
| 6048 | inline BOOL _WinDestroyPointer(HPOINTER a) | 
|---|
| 6049 | { | 
|---|
| 6050 | BOOL yyrc; | 
|---|
| 6051 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6052 |  | 
|---|
| 6053 | yyrc = WinDestroyPointer(a); | 
|---|
| 6054 | SetFS(sel); | 
|---|
| 6055 |  | 
|---|
| 6056 | return yyrc; | 
|---|
| 6057 | } | 
|---|
| 6058 |  | 
|---|
| 6059 | #undef  WinDestroyPointer | 
|---|
| 6060 | #define WinDestroyPointer _WinDestroyPointer | 
|---|
| 6061 |  | 
|---|
| 6062 | inline BOOL _WinDrawPointer(HPS a, LONG b, LONG c, HPOINTER d, ULONG e) | 
|---|
| 6063 | { | 
|---|
| 6064 | BOOL yyrc; | 
|---|
| 6065 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6066 |  | 
|---|
| 6067 | yyrc = WinDrawPointer(a, b, c, d, e); | 
|---|
| 6068 | SetFS(sel); | 
|---|
| 6069 |  | 
|---|
| 6070 | return yyrc; | 
|---|
| 6071 | } | 
|---|
| 6072 |  | 
|---|
| 6073 | #undef  WinDrawPointer | 
|---|
| 6074 | #define WinDrawPointer _WinDrawPointer | 
|---|
| 6075 |  | 
|---|
| 6076 | inline HBITMAP _WinGetSysBitmap(HWND a, ULONG b) | 
|---|
| 6077 | { | 
|---|
| 6078 | HBITMAP yyrc; | 
|---|
| 6079 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6080 |  | 
|---|
| 6081 | yyrc = WinGetSysBitmap(a, b); | 
|---|
| 6082 | SetFS(sel); | 
|---|
| 6083 |  | 
|---|
| 6084 | return yyrc; | 
|---|
| 6085 | } | 
|---|
| 6086 |  | 
|---|
| 6087 | #undef  WinGetSysBitmap | 
|---|
| 6088 | #define WinGetSysBitmap _WinGetSysBitmap | 
|---|
| 6089 |  | 
|---|
| 6090 | inline HPOINTER _WinLoadPointer(HWND a, HMODULE b, ULONG c) | 
|---|
| 6091 | { | 
|---|
| 6092 | HPOINTER yyrc; | 
|---|
| 6093 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6094 |  | 
|---|
| 6095 | yyrc = WinLoadPointer(a, b, c); | 
|---|
| 6096 | SetFS(sel); | 
|---|
| 6097 |  | 
|---|
| 6098 | return yyrc; | 
|---|
| 6099 | } | 
|---|
| 6100 |  | 
|---|
| 6101 | #undef  WinLoadPointer | 
|---|
| 6102 | #define WinLoadPointer _WinLoadPointer | 
|---|
| 6103 |  | 
|---|
| 6104 | inline BOOL _WinLockPointerUpdate(HWND a, HPOINTER b, ULONG c) | 
|---|
| 6105 | { | 
|---|
| 6106 | BOOL yyrc; | 
|---|
| 6107 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6108 |  | 
|---|
| 6109 | yyrc = WinLockPointerUpdate(a, b, c); | 
|---|
| 6110 | SetFS(sel); | 
|---|
| 6111 |  | 
|---|
| 6112 | return yyrc; | 
|---|
| 6113 | } | 
|---|
| 6114 |  | 
|---|
| 6115 | #undef  WinLockPointerUpdate | 
|---|
| 6116 | #define WinLockPointerUpdate _WinLockPointerUpdate | 
|---|
| 6117 |  | 
|---|
| 6118 | inline BOOL _WinQueryPointerPos(HWND a, PPOINTL b) | 
|---|
| 6119 | { | 
|---|
| 6120 | BOOL yyrc; | 
|---|
| 6121 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6122 |  | 
|---|
| 6123 | yyrc = WinQueryPointerPos(a, b); | 
|---|
| 6124 | SetFS(sel); | 
|---|
| 6125 |  | 
|---|
| 6126 | return yyrc; | 
|---|
| 6127 | } | 
|---|
| 6128 |  | 
|---|
| 6129 | #undef  WinQueryPointerPos | 
|---|
| 6130 | #define WinQueryPointerPos _WinQueryPointerPos | 
|---|
| 6131 |  | 
|---|
| 6132 | inline BOOL _WinQueryPointerInfo(HPOINTER a, PPOINTERINFO b) | 
|---|
| 6133 | { | 
|---|
| 6134 | BOOL yyrc; | 
|---|
| 6135 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6136 |  | 
|---|
| 6137 | yyrc = WinQueryPointerInfo(a, b); | 
|---|
| 6138 | SetFS(sel); | 
|---|
| 6139 |  | 
|---|
| 6140 | return yyrc; | 
|---|
| 6141 | } | 
|---|
| 6142 |  | 
|---|
| 6143 | #undef  WinQueryPointerInfo | 
|---|
| 6144 | #define WinQueryPointerInfo _WinQueryPointerInfo | 
|---|
| 6145 |  | 
|---|
| 6146 | inline HPOINTER _WinQuerySysPointer(HWND a, LONG b, BOOL c) | 
|---|
| 6147 | { | 
|---|
| 6148 | HPOINTER yyrc; | 
|---|
| 6149 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6150 |  | 
|---|
| 6151 | yyrc = WinQuerySysPointer(a, b, c); | 
|---|
| 6152 | SetFS(sel); | 
|---|
| 6153 |  | 
|---|
| 6154 | return yyrc; | 
|---|
| 6155 | } | 
|---|
| 6156 |  | 
|---|
| 6157 | #undef  WinQuerySysPointer | 
|---|
| 6158 | #define WinQuerySysPointer _WinQuerySysPointer | 
|---|
| 6159 |  | 
|---|
| 6160 | inline BOOL _WinQuerySysPointerData(HWND a, ULONG b, PICONINFO c) | 
|---|
| 6161 | { | 
|---|
| 6162 | BOOL yyrc; | 
|---|
| 6163 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6164 |  | 
|---|
| 6165 | yyrc = WinQuerySysPointerData(a, b, c); | 
|---|
| 6166 | SetFS(sel); | 
|---|
| 6167 |  | 
|---|
| 6168 | return yyrc; | 
|---|
| 6169 | } | 
|---|
| 6170 |  | 
|---|
| 6171 | #undef  WinQuerySysPointerData | 
|---|
| 6172 | #define WinQuerySysPointerData _WinQuerySysPointerData | 
|---|
| 6173 |  | 
|---|
| 6174 | inline BOOL _WinSetPointer(HWND a, HPOINTER b) | 
|---|
| 6175 | { | 
|---|
| 6176 | BOOL yyrc; | 
|---|
| 6177 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6178 |  | 
|---|
| 6179 | yyrc = WinSetPointer(a, b); | 
|---|
| 6180 | SetFS(sel); | 
|---|
| 6181 |  | 
|---|
| 6182 | return yyrc; | 
|---|
| 6183 | } | 
|---|
| 6184 |  | 
|---|
| 6185 | #undef  WinSetPointer | 
|---|
| 6186 | #define WinSetPointer _WinSetPointer | 
|---|
| 6187 |  | 
|---|
| 6188 | inline BOOL _WinSetPointerOwner(HPOINTER a, PID b, BOOL c) | 
|---|
| 6189 | { | 
|---|
| 6190 | BOOL yyrc; | 
|---|
| 6191 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6192 |  | 
|---|
| 6193 | yyrc = WinSetPointerOwner(a, b, c); | 
|---|
| 6194 | SetFS(sel); | 
|---|
| 6195 |  | 
|---|
| 6196 | return yyrc; | 
|---|
| 6197 | } | 
|---|
| 6198 |  | 
|---|
| 6199 | #undef  WinSetPointerOwner | 
|---|
| 6200 | #define WinSetPointerOwner _WinSetPointerOwner | 
|---|
| 6201 |  | 
|---|
| 6202 | inline BOOL _WinSetPointerPos(HWND a, LONG b, LONG c) | 
|---|
| 6203 | { | 
|---|
| 6204 | BOOL yyrc; | 
|---|
| 6205 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6206 |  | 
|---|
| 6207 | yyrc = WinSetPointerPos(a, b, c); | 
|---|
| 6208 | SetFS(sel); | 
|---|
| 6209 |  | 
|---|
| 6210 | return yyrc; | 
|---|
| 6211 | } | 
|---|
| 6212 |  | 
|---|
| 6213 | #undef  WinSetPointerPos | 
|---|
| 6214 | #define WinSetPointerPos _WinSetPointerPos | 
|---|
| 6215 |  | 
|---|
| 6216 | inline BOOL _WinSetSysPointerData(HWND a, ULONG b, PICONINFO c) | 
|---|
| 6217 | { | 
|---|
| 6218 | BOOL yyrc; | 
|---|
| 6219 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6220 |  | 
|---|
| 6221 | yyrc = WinSetSysPointerData(a, b, c); | 
|---|
| 6222 | SetFS(sel); | 
|---|
| 6223 |  | 
|---|
| 6224 | return yyrc; | 
|---|
| 6225 | } | 
|---|
| 6226 |  | 
|---|
| 6227 | #undef  WinSetSysPointerData | 
|---|
| 6228 | #define WinSetSysPointerData _WinSetSysPointerData | 
|---|
| 6229 |  | 
|---|
| 6230 | inline BOOL _WinShowPointer(HWND a, BOOL b) | 
|---|
| 6231 | { | 
|---|
| 6232 | BOOL yyrc; | 
|---|
| 6233 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6234 |  | 
|---|
| 6235 | yyrc = WinShowPointer(a, b); | 
|---|
| 6236 | SetFS(sel); | 
|---|
| 6237 |  | 
|---|
| 6238 | return yyrc; | 
|---|
| 6239 | } | 
|---|
| 6240 |  | 
|---|
| 6241 | #undef  WinShowPointer | 
|---|
| 6242 | #define WinShowPointer _WinShowPointer | 
|---|
| 6243 |  | 
|---|
| 6244 | #endif | 
|---|
| 6245 | #ifdef INCL_WINRECTANGLES | 
|---|
| 6246 | inline BOOL _WinCopyRect(HAB a, PRECTL b, PRECTL c) | 
|---|
| 6247 | { | 
|---|
| 6248 | BOOL yyrc; | 
|---|
| 6249 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6250 |  | 
|---|
| 6251 | yyrc = WinCopyRect(a, b, c); | 
|---|
| 6252 | SetFS(sel); | 
|---|
| 6253 |  | 
|---|
| 6254 | return yyrc; | 
|---|
| 6255 | } | 
|---|
| 6256 |  | 
|---|
| 6257 | #undef  WinCopyRect | 
|---|
| 6258 | #define WinCopyRect _WinCopyRect | 
|---|
| 6259 |  | 
|---|
| 6260 | inline BOOL _WinEqualRect(HAB a, PRECTL b, PRECTL c) | 
|---|
| 6261 | { | 
|---|
| 6262 | BOOL yyrc; | 
|---|
| 6263 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6264 |  | 
|---|
| 6265 | yyrc = WinEqualRect(a, b, c); | 
|---|
| 6266 | SetFS(sel); | 
|---|
| 6267 |  | 
|---|
| 6268 | return yyrc; | 
|---|
| 6269 | } | 
|---|
| 6270 |  | 
|---|
| 6271 | #undef  WinEqualRect | 
|---|
| 6272 | #define WinEqualRect _WinEqualRect | 
|---|
| 6273 |  | 
|---|
| 6274 | inline BOOL _WinInflateRect(HAB a, PRECTL b, LONG c, LONG d) | 
|---|
| 6275 | { | 
|---|
| 6276 | BOOL yyrc; | 
|---|
| 6277 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6278 |  | 
|---|
| 6279 | yyrc = WinInflateRect(a, b, c, d); | 
|---|
| 6280 | SetFS(sel); | 
|---|
| 6281 |  | 
|---|
| 6282 | return yyrc; | 
|---|
| 6283 | } | 
|---|
| 6284 |  | 
|---|
| 6285 | #undef  WinInflateRect | 
|---|
| 6286 | #define WinInflateRect _WinInflateRect | 
|---|
| 6287 |  | 
|---|
| 6288 | inline BOOL _WinIntersectRect(HAB a, PRECTL b, PRECTL c, PRECTL d) | 
|---|
| 6289 | { | 
|---|
| 6290 | BOOL yyrc; | 
|---|
| 6291 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6292 |  | 
|---|
| 6293 | yyrc = WinIntersectRect(a, b, c, d); | 
|---|
| 6294 | SetFS(sel); | 
|---|
| 6295 |  | 
|---|
| 6296 | return yyrc; | 
|---|
| 6297 | } | 
|---|
| 6298 |  | 
|---|
| 6299 | #undef  WinIntersectRect | 
|---|
| 6300 | #define WinIntersectRect _WinIntersectRect | 
|---|
| 6301 |  | 
|---|
| 6302 | inline BOOL _WinIsRectEmpty(HAB a, PRECTL b) | 
|---|
| 6303 | { | 
|---|
| 6304 | BOOL yyrc; | 
|---|
| 6305 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6306 |  | 
|---|
| 6307 | yyrc = WinIsRectEmpty(a, b); | 
|---|
| 6308 | SetFS(sel); | 
|---|
| 6309 |  | 
|---|
| 6310 | return yyrc; | 
|---|
| 6311 | } | 
|---|
| 6312 |  | 
|---|
| 6313 | #undef  WinIsRectEmpty | 
|---|
| 6314 | #define WinIsRectEmpty _WinIsRectEmpty | 
|---|
| 6315 |  | 
|---|
| 6316 | inline BOOL _WinMakePoints(HAB a, PPOINTL b, ULONG c) | 
|---|
| 6317 | { | 
|---|
| 6318 | BOOL yyrc; | 
|---|
| 6319 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6320 |  | 
|---|
| 6321 | yyrc = WinMakePoints(a, b, c); | 
|---|
| 6322 | SetFS(sel); | 
|---|
| 6323 |  | 
|---|
| 6324 | return yyrc; | 
|---|
| 6325 | } | 
|---|
| 6326 |  | 
|---|
| 6327 | #undef  WinMakePoints | 
|---|
| 6328 | #define WinMakePoints _WinMakePoints | 
|---|
| 6329 |  | 
|---|
| 6330 | inline BOOL _WinMakeRect(HAB a, PRECTL b) | 
|---|
| 6331 | { | 
|---|
| 6332 | BOOL yyrc; | 
|---|
| 6333 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6334 |  | 
|---|
| 6335 | yyrc = WinMakeRect(a, b); | 
|---|
| 6336 | SetFS(sel); | 
|---|
| 6337 |  | 
|---|
| 6338 | return yyrc; | 
|---|
| 6339 | } | 
|---|
| 6340 |  | 
|---|
| 6341 | #undef  WinMakeRect | 
|---|
| 6342 | #define WinMakeRect _WinMakeRect | 
|---|
| 6343 |  | 
|---|
| 6344 | inline BOOL _WinOffsetRect(HAB a, PRECTL b, LONG c, LONG d) | 
|---|
| 6345 | { | 
|---|
| 6346 | BOOL yyrc; | 
|---|
| 6347 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6348 |  | 
|---|
| 6349 | yyrc = WinOffsetRect(a, b, c, d); | 
|---|
| 6350 | SetFS(sel); | 
|---|
| 6351 |  | 
|---|
| 6352 | return yyrc; | 
|---|
| 6353 | } | 
|---|
| 6354 |  | 
|---|
| 6355 | #undef  WinOffsetRect | 
|---|
| 6356 | #define WinOffsetRect _WinOffsetRect | 
|---|
| 6357 |  | 
|---|
| 6358 | inline BOOL _WinPtInRect(HAB a, PRECTL b, PPOINTL c) | 
|---|
| 6359 | { | 
|---|
| 6360 | BOOL yyrc; | 
|---|
| 6361 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6362 |  | 
|---|
| 6363 | yyrc = WinPtInRect(a, b, c); | 
|---|
| 6364 | SetFS(sel); | 
|---|
| 6365 |  | 
|---|
| 6366 | return yyrc; | 
|---|
| 6367 | } | 
|---|
| 6368 |  | 
|---|
| 6369 | #undef  WinPtInRect | 
|---|
| 6370 | #define WinPtInRect _WinPtInRect | 
|---|
| 6371 |  | 
|---|
| 6372 | inline BOOL _WinSetRect(HAB a, PRECTL b, LONG c, LONG d, LONG e, LONG f) | 
|---|
| 6373 | { | 
|---|
| 6374 | BOOL yyrc; | 
|---|
| 6375 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6376 |  | 
|---|
| 6377 | yyrc = WinSetRect(a, b, c, d, e, f); | 
|---|
| 6378 | SetFS(sel); | 
|---|
| 6379 |  | 
|---|
| 6380 | return yyrc; | 
|---|
| 6381 | } | 
|---|
| 6382 |  | 
|---|
| 6383 | #undef  WinSetRect | 
|---|
| 6384 | #define WinSetRect _WinSetRect | 
|---|
| 6385 |  | 
|---|
| 6386 | inline BOOL _WinSetRectEmpty(HAB a, PRECTL b) | 
|---|
| 6387 | { | 
|---|
| 6388 | BOOL yyrc; | 
|---|
| 6389 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6390 |  | 
|---|
| 6391 | yyrc = WinSetRectEmpty(a, b); | 
|---|
| 6392 | SetFS(sel); | 
|---|
| 6393 |  | 
|---|
| 6394 | return yyrc; | 
|---|
| 6395 | } | 
|---|
| 6396 |  | 
|---|
| 6397 | #undef  WinSetRectEmpty | 
|---|
| 6398 | #define WinSetRectEmpty _WinSetRectEmpty | 
|---|
| 6399 |  | 
|---|
| 6400 | inline BOOL _WinSubtractRect(HAB a, PRECTL b, PRECTL c, PRECTL d) | 
|---|
| 6401 | { | 
|---|
| 6402 | BOOL yyrc; | 
|---|
| 6403 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6404 |  | 
|---|
| 6405 | yyrc = WinSubtractRect(a, b, c, d); | 
|---|
| 6406 | SetFS(sel); | 
|---|
| 6407 |  | 
|---|
| 6408 | return yyrc; | 
|---|
| 6409 | } | 
|---|
| 6410 |  | 
|---|
| 6411 | #undef  WinSubtractRect | 
|---|
| 6412 | #define WinSubtractRect _WinSubtractRect | 
|---|
| 6413 |  | 
|---|
| 6414 | inline BOOL _WinUnionRect(HAB a, PRECTL b, PRECTL c, PRECTL d) | 
|---|
| 6415 | { | 
|---|
| 6416 | BOOL yyrc; | 
|---|
| 6417 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6418 |  | 
|---|
| 6419 | yyrc = WinUnionRect(a, b, c, d); | 
|---|
| 6420 | SetFS(sel); | 
|---|
| 6421 |  | 
|---|
| 6422 | return yyrc; | 
|---|
| 6423 | } | 
|---|
| 6424 |  | 
|---|
| 6425 | #undef  WinUnionRect | 
|---|
| 6426 | #define WinUnionRect _WinUnionRect | 
|---|
| 6427 |  | 
|---|
| 6428 | #endif | 
|---|
| 6429 | #ifdef INCL_WINSYS | 
|---|
| 6430 | inline LONG _WinQueryControlColors(HWND a, LONG b, ULONG c, ULONG d, PCTLCOLOR e) | 
|---|
| 6431 | { | 
|---|
| 6432 | LONG yyrc; | 
|---|
| 6433 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6434 |  | 
|---|
| 6435 | yyrc = WinQueryControlColors(a, b, c, d, e); | 
|---|
| 6436 | SetFS(sel); | 
|---|
| 6437 |  | 
|---|
| 6438 | return yyrc; | 
|---|
| 6439 | } | 
|---|
| 6440 |  | 
|---|
| 6441 | #undef  WinQueryControlColors | 
|---|
| 6442 | #define WinQueryControlColors _WinQueryControlColors | 
|---|
| 6443 |  | 
|---|
| 6444 | inline ULONG _WinQueryPresParam(HWND a, ULONG b, ULONG c, PULONG d, ULONG e, PVOID f, ULONG g) | 
|---|
| 6445 | { | 
|---|
| 6446 | ULONG yyrc; | 
|---|
| 6447 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6448 |  | 
|---|
| 6449 | yyrc = WinQueryPresParam(a, b, c, d, e, f, g); | 
|---|
| 6450 | SetFS(sel); | 
|---|
| 6451 |  | 
|---|
| 6452 | return yyrc; | 
|---|
| 6453 | } | 
|---|
| 6454 |  | 
|---|
| 6455 | #undef  WinQueryPresParam | 
|---|
| 6456 | #define WinQueryPresParam _WinQueryPresParam | 
|---|
| 6457 |  | 
|---|
| 6458 | inline LONG _WinQuerySysColor(HWND a, LONG b, LONG c) | 
|---|
| 6459 | { | 
|---|
| 6460 | LONG yyrc; | 
|---|
| 6461 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6462 |  | 
|---|
| 6463 | yyrc = WinQuerySysColor(a, b, c); | 
|---|
| 6464 | SetFS(sel); | 
|---|
| 6465 |  | 
|---|
| 6466 | return yyrc; | 
|---|
| 6467 | } | 
|---|
| 6468 |  | 
|---|
| 6469 | #undef  WinQuerySysColor | 
|---|
| 6470 | #define WinQuerySysColor _WinQuerySysColor | 
|---|
| 6471 |  | 
|---|
| 6472 | inline LONG _WinQuerySysValue(HWND a, LONG b) | 
|---|
| 6473 | { | 
|---|
| 6474 | LONG yyrc; | 
|---|
| 6475 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6476 |  | 
|---|
| 6477 | yyrc = WinQuerySysValue(a, b); | 
|---|
| 6478 | SetFS(sel); | 
|---|
| 6479 |  | 
|---|
| 6480 | return yyrc; | 
|---|
| 6481 | } | 
|---|
| 6482 |  | 
|---|
| 6483 | #undef  WinQuerySysValue | 
|---|
| 6484 | #define WinQuerySysValue _WinQuerySysValue | 
|---|
| 6485 |  | 
|---|
| 6486 | inline BOOL _WinRemovePresParam(HWND a, ULONG b) | 
|---|
| 6487 | { | 
|---|
| 6488 | BOOL yyrc; | 
|---|
| 6489 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6490 |  | 
|---|
| 6491 | yyrc = WinRemovePresParam(a, b); | 
|---|
| 6492 | SetFS(sel); | 
|---|
| 6493 |  | 
|---|
| 6494 | return yyrc; | 
|---|
| 6495 | } | 
|---|
| 6496 |  | 
|---|
| 6497 | #undef  WinRemovePresParam | 
|---|
| 6498 | #define WinRemovePresParam _WinRemovePresParam | 
|---|
| 6499 |  | 
|---|
| 6500 | inline LONG _WinSetControlColors(HWND a, LONG b, ULONG c, ULONG d, PCTLCOLOR e) | 
|---|
| 6501 | { | 
|---|
| 6502 | LONG yyrc; | 
|---|
| 6503 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6504 |  | 
|---|
| 6505 | yyrc = WinSetControlColors(a, b, c, d, e); | 
|---|
| 6506 | SetFS(sel); | 
|---|
| 6507 |  | 
|---|
| 6508 | return yyrc; | 
|---|
| 6509 | } | 
|---|
| 6510 |  | 
|---|
| 6511 | #undef  WinSetControlColors | 
|---|
| 6512 | #define WinSetControlColors _WinSetControlColors | 
|---|
| 6513 |  | 
|---|
| 6514 | inline BOOL _WinSetPresParam(HWND a, ULONG b, ULONG c, PVOID d) | 
|---|
| 6515 | { | 
|---|
| 6516 | BOOL yyrc; | 
|---|
| 6517 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6518 |  | 
|---|
| 6519 | yyrc = WinSetPresParam(a, b, c, d); | 
|---|
| 6520 | SetFS(sel); | 
|---|
| 6521 |  | 
|---|
| 6522 | return yyrc; | 
|---|
| 6523 | } | 
|---|
| 6524 |  | 
|---|
| 6525 | #undef  WinSetPresParam | 
|---|
| 6526 | #define WinSetPresParam _WinSetPresParam | 
|---|
| 6527 |  | 
|---|
| 6528 | inline BOOL _WinSetSysColors(HWND a, ULONG b, ULONG c, LONG d, ULONG e, PLONG f) | 
|---|
| 6529 | { | 
|---|
| 6530 | BOOL yyrc; | 
|---|
| 6531 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6532 |  | 
|---|
| 6533 | yyrc = WinSetSysColors(a, b, c, d, e, f); | 
|---|
| 6534 | SetFS(sel); | 
|---|
| 6535 |  | 
|---|
| 6536 | return yyrc; | 
|---|
| 6537 | } | 
|---|
| 6538 |  | 
|---|
| 6539 | #undef  WinSetSysColors | 
|---|
| 6540 | #define WinSetSysColors _WinSetSysColors | 
|---|
| 6541 |  | 
|---|
| 6542 | inline BOOL _WinSetSysValue(HWND a, LONG b, LONG c) | 
|---|
| 6543 | { | 
|---|
| 6544 | BOOL yyrc; | 
|---|
| 6545 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6546 |  | 
|---|
| 6547 | yyrc = WinSetSysValue(a, b, c); | 
|---|
| 6548 | SetFS(sel); | 
|---|
| 6549 |  | 
|---|
| 6550 | return yyrc; | 
|---|
| 6551 | } | 
|---|
| 6552 |  | 
|---|
| 6553 | #undef  WinSetSysValue | 
|---|
| 6554 | #define WinSetSysValue _WinSetSysValue | 
|---|
| 6555 |  | 
|---|
| 6556 | #endif | 
|---|
| 6557 | #ifdef INCL_WINTHUNKAPI | 
|---|
| 6558 | inline PFN _WinQueryClassThunkProc(PCSZ a) | 
|---|
| 6559 | { | 
|---|
| 6560 | PFN yyrc; | 
|---|
| 6561 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6562 |  | 
|---|
| 6563 | yyrc = WinQueryClassThunkProc(a); | 
|---|
| 6564 | SetFS(sel); | 
|---|
| 6565 |  | 
|---|
| 6566 | return yyrc; | 
|---|
| 6567 | } | 
|---|
| 6568 |  | 
|---|
| 6569 | #undef  WinQueryClassThunkProc | 
|---|
| 6570 | #define WinQueryClassThunkProc _WinQueryClassThunkProc | 
|---|
| 6571 |  | 
|---|
| 6572 | inline LONG _WinQueryWindowModel(HWND a) | 
|---|
| 6573 | { | 
|---|
| 6574 | LONG yyrc; | 
|---|
| 6575 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6576 |  | 
|---|
| 6577 | yyrc = WinQueryWindowModel(a); | 
|---|
| 6578 | SetFS(sel); | 
|---|
| 6579 |  | 
|---|
| 6580 | return yyrc; | 
|---|
| 6581 | } | 
|---|
| 6582 |  | 
|---|
| 6583 | #undef  WinQueryWindowModel | 
|---|
| 6584 | #define WinQueryWindowModel _WinQueryWindowModel | 
|---|
| 6585 |  | 
|---|
| 6586 | inline PFN _WinQueryWindowThunkProc(HWND a) | 
|---|
| 6587 | { | 
|---|
| 6588 | PFN yyrc; | 
|---|
| 6589 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6590 |  | 
|---|
| 6591 | yyrc = WinQueryWindowThunkProc(a); | 
|---|
| 6592 | SetFS(sel); | 
|---|
| 6593 |  | 
|---|
| 6594 | return yyrc; | 
|---|
| 6595 | } | 
|---|
| 6596 |  | 
|---|
| 6597 | #undef  WinQueryWindowThunkProc | 
|---|
| 6598 | #define WinQueryWindowThunkProc _WinQueryWindowThunkProc | 
|---|
| 6599 |  | 
|---|
| 6600 | inline BOOL _WinSetClassThunkProc(PCSZ a, PFN b) | 
|---|
| 6601 | { | 
|---|
| 6602 | BOOL yyrc; | 
|---|
| 6603 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6604 |  | 
|---|
| 6605 | yyrc = WinSetClassThunkProc(a, b); | 
|---|
| 6606 | SetFS(sel); | 
|---|
| 6607 |  | 
|---|
| 6608 | return yyrc; | 
|---|
| 6609 | } | 
|---|
| 6610 |  | 
|---|
| 6611 | #undef  WinSetClassThunkProc | 
|---|
| 6612 | #define WinSetClassThunkProc _WinSetClassThunkProc | 
|---|
| 6613 |  | 
|---|
| 6614 | inline BOOL _WinSetWindowThunkProc(HWND a, PFN b) | 
|---|
| 6615 | { | 
|---|
| 6616 | BOOL yyrc; | 
|---|
| 6617 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6618 |  | 
|---|
| 6619 | yyrc = WinSetWindowThunkProc(a, b); | 
|---|
| 6620 | SetFS(sel); | 
|---|
| 6621 |  | 
|---|
| 6622 | return yyrc; | 
|---|
| 6623 | } | 
|---|
| 6624 |  | 
|---|
| 6625 | #undef  WinSetWindowThunkProc | 
|---|
| 6626 | #define WinSetWindowThunkProc _WinSetWindowThunkProc | 
|---|
| 6627 |  | 
|---|
| 6628 | #endif | 
|---|
| 6629 | #ifdef INCL_WINTIMER | 
|---|
| 6630 | inline ULONG _WinGetCurrentTime(HAB a) | 
|---|
| 6631 | { | 
|---|
| 6632 | ULONG yyrc; | 
|---|
| 6633 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6634 |  | 
|---|
| 6635 | yyrc = WinGetCurrentTime(a); | 
|---|
| 6636 | SetFS(sel); | 
|---|
| 6637 |  | 
|---|
| 6638 | return yyrc; | 
|---|
| 6639 | } | 
|---|
| 6640 |  | 
|---|
| 6641 | #undef  WinGetCurrentTime | 
|---|
| 6642 | #define WinGetCurrentTime _WinGetCurrentTime | 
|---|
| 6643 |  | 
|---|
| 6644 | inline ULONG _WinStartTimer(HAB a, HWND b, ULONG c, ULONG d) | 
|---|
| 6645 | { | 
|---|
| 6646 | ULONG yyrc; | 
|---|
| 6647 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6648 |  | 
|---|
| 6649 | yyrc = WinStartTimer(a, b, c, d); | 
|---|
| 6650 | SetFS(sel); | 
|---|
| 6651 |  | 
|---|
| 6652 | return yyrc; | 
|---|
| 6653 | } | 
|---|
| 6654 |  | 
|---|
| 6655 | #undef  WinStartTimer | 
|---|
| 6656 | #define WinStartTimer _WinStartTimer | 
|---|
| 6657 |  | 
|---|
| 6658 | inline BOOL _WinStopTimer(HAB a, HWND b, ULONG c) | 
|---|
| 6659 | { | 
|---|
| 6660 | BOOL yyrc; | 
|---|
| 6661 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6662 |  | 
|---|
| 6663 | yyrc = WinStopTimer(a, b, c); | 
|---|
| 6664 | SetFS(sel); | 
|---|
| 6665 |  | 
|---|
| 6666 | return yyrc; | 
|---|
| 6667 | } | 
|---|
| 6668 |  | 
|---|
| 6669 | #undef  WinStopTimer | 
|---|
| 6670 | #define WinStopTimer _WinStopTimer | 
|---|
| 6671 |  | 
|---|
| 6672 | #endif | 
|---|
| 6673 | #ifdef INCL_WINTRACKRECT | 
|---|
| 6674 | inline BOOL _WinShowTrackRect(HWND a, BOOL b) | 
|---|
| 6675 | { | 
|---|
| 6676 | BOOL yyrc; | 
|---|
| 6677 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6678 |  | 
|---|
| 6679 | yyrc = WinShowTrackRect(a, b); | 
|---|
| 6680 | SetFS(sel); | 
|---|
| 6681 |  | 
|---|
| 6682 | return yyrc; | 
|---|
| 6683 | } | 
|---|
| 6684 |  | 
|---|
| 6685 | #undef  WinShowTrackRect | 
|---|
| 6686 | #define WinShowTrackRect _WinShowTrackRect | 
|---|
| 6687 |  | 
|---|
| 6688 | inline BOOL _WinTrackRect(HWND a, HPS b, PTRACKINFO c) | 
|---|
| 6689 | { | 
|---|
| 6690 | BOOL yyrc; | 
|---|
| 6691 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6692 |  | 
|---|
| 6693 | yyrc = WinTrackRect(a, b, c); | 
|---|
| 6694 | SetFS(sel); | 
|---|
| 6695 |  | 
|---|
| 6696 | return yyrc; | 
|---|
| 6697 | } | 
|---|
| 6698 |  | 
|---|
| 6699 | #undef  WinTrackRect | 
|---|
| 6700 | #define WinTrackRect _WinTrackRect | 
|---|
| 6701 |  | 
|---|
| 6702 | #endif | 
|---|
| 6703 | #endif | 
|---|
| 6704 | #ifdef INCL_GPI | 
|---|
| 6705 | inline LONG _GpiAnimatePalette(HPAL a, ULONG b, ULONG c, ULONG d, PULONG e) | 
|---|
| 6706 | { | 
|---|
| 6707 | LONG yyrc; | 
|---|
| 6708 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6709 |  | 
|---|
| 6710 | yyrc = GpiAnimatePalette(a, b, c, d, e); | 
|---|
| 6711 | SetFS(sel); | 
|---|
| 6712 |  | 
|---|
| 6713 | return yyrc; | 
|---|
| 6714 | } | 
|---|
| 6715 |  | 
|---|
| 6716 | #undef  GpiAnimatePalette | 
|---|
| 6717 | #define GpiAnimatePalette _GpiAnimatePalette | 
|---|
| 6718 |  | 
|---|
| 6719 | inline BOOL _GpiBeginArea(HPS a, ULONG b) | 
|---|
| 6720 | { | 
|---|
| 6721 | BOOL yyrc; | 
|---|
| 6722 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6723 |  | 
|---|
| 6724 | yyrc = GpiBeginArea(a, b); | 
|---|
| 6725 | SetFS(sel); | 
|---|
| 6726 |  | 
|---|
| 6727 | return yyrc; | 
|---|
| 6728 | } | 
|---|
| 6729 |  | 
|---|
| 6730 | #undef  GpiBeginArea | 
|---|
| 6731 | #define GpiBeginArea _GpiBeginArea | 
|---|
| 6732 |  | 
|---|
| 6733 | inline BOOL _GpiBeginElement(HPS a, LONG b, PCSZ c) | 
|---|
| 6734 | { | 
|---|
| 6735 | BOOL yyrc; | 
|---|
| 6736 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6737 |  | 
|---|
| 6738 | yyrc = GpiBeginElement(a, b, c); | 
|---|
| 6739 | SetFS(sel); | 
|---|
| 6740 |  | 
|---|
| 6741 | return yyrc; | 
|---|
| 6742 | } | 
|---|
| 6743 |  | 
|---|
| 6744 | #undef  GpiBeginElement | 
|---|
| 6745 | #define GpiBeginElement _GpiBeginElement | 
|---|
| 6746 |  | 
|---|
| 6747 | inline BOOL _GpiBeginPath(HPS a, LONG b) | 
|---|
| 6748 | { | 
|---|
| 6749 | BOOL yyrc; | 
|---|
| 6750 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6751 |  | 
|---|
| 6752 | yyrc = GpiBeginPath(a, b); | 
|---|
| 6753 | SetFS(sel); | 
|---|
| 6754 |  | 
|---|
| 6755 | return yyrc; | 
|---|
| 6756 | } | 
|---|
| 6757 |  | 
|---|
| 6758 | #undef  GpiBeginPath | 
|---|
| 6759 | #define GpiBeginPath _GpiBeginPath | 
|---|
| 6760 |  | 
|---|
| 6761 | inline LONG _GpiBox(HPS a, LONG b, PPOINTL c, LONG d, LONG e) | 
|---|
| 6762 | { | 
|---|
| 6763 | LONG yyrc; | 
|---|
| 6764 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6765 |  | 
|---|
| 6766 | yyrc = GpiBox(a, b, c, d, e); | 
|---|
| 6767 | SetFS(sel); | 
|---|
| 6768 |  | 
|---|
| 6769 | return yyrc; | 
|---|
| 6770 | } | 
|---|
| 6771 |  | 
|---|
| 6772 | #undef  GpiBox | 
|---|
| 6773 | #define GpiBox _GpiBox | 
|---|
| 6774 |  | 
|---|
| 6775 | inline LONG _GpiCallSegmentMatrix(HPS a, LONG b, LONG c, PMATRIXLF d, LONG e) | 
|---|
| 6776 | { | 
|---|
| 6777 | LONG yyrc; | 
|---|
| 6778 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6779 |  | 
|---|
| 6780 | yyrc = GpiCallSegmentMatrix(a, b, c, d, e); | 
|---|
| 6781 | SetFS(sel); | 
|---|
| 6782 |  | 
|---|
| 6783 | return yyrc; | 
|---|
| 6784 | } | 
|---|
| 6785 |  | 
|---|
| 6786 | #undef  GpiCallSegmentMatrix | 
|---|
| 6787 | #define GpiCallSegmentMatrix _GpiCallSegmentMatrix | 
|---|
| 6788 |  | 
|---|
| 6789 | inline LONG _GpiCharString(HPS a, LONG b, PCH c) | 
|---|
| 6790 | { | 
|---|
| 6791 | LONG yyrc; | 
|---|
| 6792 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6793 |  | 
|---|
| 6794 | yyrc = GpiCharString(a, b, c); | 
|---|
| 6795 | SetFS(sel); | 
|---|
| 6796 |  | 
|---|
| 6797 | return yyrc; | 
|---|
| 6798 | } | 
|---|
| 6799 |  | 
|---|
| 6800 | #undef  GpiCharString | 
|---|
| 6801 | #define GpiCharString _GpiCharString | 
|---|
| 6802 |  | 
|---|
| 6803 | inline LONG _GpiCharStringAt(HPS a, PPOINTL b, LONG c, PCH d) | 
|---|
| 6804 | { | 
|---|
| 6805 | LONG yyrc; | 
|---|
| 6806 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6807 |  | 
|---|
| 6808 | yyrc = GpiCharStringAt(a, b, c, d); | 
|---|
| 6809 | SetFS(sel); | 
|---|
| 6810 |  | 
|---|
| 6811 | return yyrc; | 
|---|
| 6812 | } | 
|---|
| 6813 |  | 
|---|
| 6814 | #undef  GpiCharStringAt | 
|---|
| 6815 | #define GpiCharStringAt _GpiCharStringAt | 
|---|
| 6816 |  | 
|---|
| 6817 | inline LONG _GpiCharStringPos(HPS a, PRECTL b, ULONG c, LONG d, PCH e, PLONG f) | 
|---|
| 6818 | { | 
|---|
| 6819 | LONG yyrc; | 
|---|
| 6820 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6821 |  | 
|---|
| 6822 | yyrc = GpiCharStringPos(a, b, c, d, e, f); | 
|---|
| 6823 | SetFS(sel); | 
|---|
| 6824 |  | 
|---|
| 6825 | return yyrc; | 
|---|
| 6826 | } | 
|---|
| 6827 |  | 
|---|
| 6828 | #undef  GpiCharStringPos | 
|---|
| 6829 | #define GpiCharStringPos _GpiCharStringPos | 
|---|
| 6830 |  | 
|---|
| 6831 | inline LONG _GpiCharStringPosAt(HPS a, PPOINTL b, PRECTL c, ULONG d, LONG e, PCH f, PLONG g) | 
|---|
| 6832 | { | 
|---|
| 6833 | LONG yyrc; | 
|---|
| 6834 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6835 |  | 
|---|
| 6836 | yyrc = GpiCharStringPosAt(a, b, c, d, e, f, g); | 
|---|
| 6837 | SetFS(sel); | 
|---|
| 6838 |  | 
|---|
| 6839 | return yyrc; | 
|---|
| 6840 | } | 
|---|
| 6841 |  | 
|---|
| 6842 | #undef  GpiCharStringPosAt | 
|---|
| 6843 | #define GpiCharStringPosAt _GpiCharStringPosAt | 
|---|
| 6844 |  | 
|---|
| 6845 | inline BOOL _GpiCloseFigure(HPS a) | 
|---|
| 6846 | { | 
|---|
| 6847 | BOOL yyrc; | 
|---|
| 6848 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6849 |  | 
|---|
| 6850 | yyrc = GpiCloseFigure(a); | 
|---|
| 6851 | SetFS(sel); | 
|---|
| 6852 |  | 
|---|
| 6853 | return yyrc; | 
|---|
| 6854 | } | 
|---|
| 6855 |  | 
|---|
| 6856 | #undef  GpiCloseFigure | 
|---|
| 6857 | #define GpiCloseFigure _GpiCloseFigure | 
|---|
| 6858 |  | 
|---|
| 6859 | inline LONG _GpiCombineRegion(HPS a, HRGN b, HRGN c, HRGN d, LONG e) | 
|---|
| 6860 | { | 
|---|
| 6861 | LONG yyrc; | 
|---|
| 6862 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6863 |  | 
|---|
| 6864 | yyrc = GpiCombineRegion(a, b, c, d, e); | 
|---|
| 6865 | SetFS(sel); | 
|---|
| 6866 |  | 
|---|
| 6867 | return yyrc; | 
|---|
| 6868 | } | 
|---|
| 6869 |  | 
|---|
| 6870 | #undef  GpiCombineRegion | 
|---|
| 6871 | #define GpiCombineRegion _GpiCombineRegion | 
|---|
| 6872 |  | 
|---|
| 6873 | inline BOOL _GpiComment(HPS a, LONG b, PBYTE c) | 
|---|
| 6874 | { | 
|---|
| 6875 | BOOL yyrc; | 
|---|
| 6876 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6877 |  | 
|---|
| 6878 | yyrc = GpiComment(a, b, c); | 
|---|
| 6879 | SetFS(sel); | 
|---|
| 6880 |  | 
|---|
| 6881 | return yyrc; | 
|---|
| 6882 | } | 
|---|
| 6883 |  | 
|---|
| 6884 | #undef  GpiComment | 
|---|
| 6885 | #define GpiComment _GpiComment | 
|---|
| 6886 |  | 
|---|
| 6887 | inline BOOL _GpiConvert(HPS a, LONG b, LONG c, LONG d, PPOINTL e) | 
|---|
| 6888 | { | 
|---|
| 6889 | BOOL yyrc; | 
|---|
| 6890 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6891 |  | 
|---|
| 6892 | yyrc = GpiConvert(a, b, c, d, e); | 
|---|
| 6893 | SetFS(sel); | 
|---|
| 6894 |  | 
|---|
| 6895 | return yyrc; | 
|---|
| 6896 | } | 
|---|
| 6897 |  | 
|---|
| 6898 | #undef  GpiConvert | 
|---|
| 6899 | #define GpiConvert _GpiConvert | 
|---|
| 6900 |  | 
|---|
| 6901 | inline BOOL _GpiConvertWithMatrix(HPS a, LONG b, PPOINTL c, LONG d, PMATRIXLF e) | 
|---|
| 6902 | { | 
|---|
| 6903 | BOOL yyrc; | 
|---|
| 6904 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6905 |  | 
|---|
| 6906 | yyrc = GpiConvertWithMatrix(a, b, c, d, e); | 
|---|
| 6907 | SetFS(sel); | 
|---|
| 6908 |  | 
|---|
| 6909 | return yyrc; | 
|---|
| 6910 | } | 
|---|
| 6911 |  | 
|---|
| 6912 | #undef  GpiConvertWithMatrix | 
|---|
| 6913 | #define GpiConvertWithMatrix _GpiConvertWithMatrix | 
|---|
| 6914 |  | 
|---|
| 6915 | inline HMF _GpiCopyMetaFile(HMF a) | 
|---|
| 6916 | { | 
|---|
| 6917 | HMF yyrc; | 
|---|
| 6918 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6919 |  | 
|---|
| 6920 | yyrc = GpiCopyMetaFile(a); | 
|---|
| 6921 | SetFS(sel); | 
|---|
| 6922 |  | 
|---|
| 6923 | return yyrc; | 
|---|
| 6924 | } | 
|---|
| 6925 |  | 
|---|
| 6926 | #undef  GpiCopyMetaFile | 
|---|
| 6927 | #define GpiCopyMetaFile _GpiCopyMetaFile | 
|---|
| 6928 |  | 
|---|
| 6929 | inline BOOL _GpiCreateLogColorTable(HPS a, ULONG b, LONG c, LONG d, LONG e, PLONG f) | 
|---|
| 6930 | { | 
|---|
| 6931 | BOOL yyrc; | 
|---|
| 6932 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6933 |  | 
|---|
| 6934 | yyrc = GpiCreateLogColorTable(a, b, c, d, e, f); | 
|---|
| 6935 | SetFS(sel); | 
|---|
| 6936 |  | 
|---|
| 6937 | return yyrc; | 
|---|
| 6938 | } | 
|---|
| 6939 |  | 
|---|
| 6940 | #undef  GpiCreateLogColorTable | 
|---|
| 6941 | #define GpiCreateLogColorTable _GpiCreateLogColorTable | 
|---|
| 6942 |  | 
|---|
| 6943 | inline LONG _GpiCreateLogFont(HPS a, STR8 *b, LONG c, PFATTRS d) | 
|---|
| 6944 | { | 
|---|
| 6945 | LONG yyrc; | 
|---|
| 6946 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6947 |  | 
|---|
| 6948 | yyrc = GpiCreateLogFont(a, b, c, d); | 
|---|
| 6949 | SetFS(sel); | 
|---|
| 6950 |  | 
|---|
| 6951 | return yyrc; | 
|---|
| 6952 | } | 
|---|
| 6953 |  | 
|---|
| 6954 | #undef  GpiCreateLogFont | 
|---|
| 6955 | #define GpiCreateLogFont _GpiCreateLogFont | 
|---|
| 6956 |  | 
|---|
| 6957 | inline HPAL _GpiCreatePalette(HAB a, ULONG b, ULONG c, ULONG d, PULONG e) | 
|---|
| 6958 | { | 
|---|
| 6959 | HPAL yyrc; | 
|---|
| 6960 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6961 |  | 
|---|
| 6962 | yyrc = GpiCreatePalette(a, b, c, d, e); | 
|---|
| 6963 | SetFS(sel); | 
|---|
| 6964 |  | 
|---|
| 6965 | return yyrc; | 
|---|
| 6966 | } | 
|---|
| 6967 |  | 
|---|
| 6968 | #undef  GpiCreatePalette | 
|---|
| 6969 | #define GpiCreatePalette _GpiCreatePalette | 
|---|
| 6970 |  | 
|---|
| 6971 | inline HRGN _GpiCreateRegion(HPS a, LONG b, PRECTL c) | 
|---|
| 6972 | { | 
|---|
| 6973 | HRGN yyrc; | 
|---|
| 6974 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6975 |  | 
|---|
| 6976 | yyrc = GpiCreateRegion(a, b, c); | 
|---|
| 6977 | SetFS(sel); | 
|---|
| 6978 |  | 
|---|
| 6979 | return yyrc; | 
|---|
| 6980 | } | 
|---|
| 6981 |  | 
|---|
| 6982 | #undef  GpiCreateRegion | 
|---|
| 6983 | #define GpiCreateRegion _GpiCreateRegion | 
|---|
| 6984 |  | 
|---|
| 6985 | inline BOOL _GpiDeleteElement(HPS a) | 
|---|
| 6986 | { | 
|---|
| 6987 | BOOL yyrc; | 
|---|
| 6988 | USHORT sel = RestoreOS2FS(); | 
|---|
| 6989 |  | 
|---|
| 6990 | yyrc = GpiDeleteElement(a); | 
|---|
| 6991 | SetFS(sel); | 
|---|
| 6992 |  | 
|---|
| 6993 | return yyrc; | 
|---|
| 6994 | } | 
|---|
| 6995 |  | 
|---|
| 6996 | #undef  GpiDeleteElement | 
|---|
| 6997 | #define GpiDeleteElement _GpiDeleteElement | 
|---|
| 6998 |  | 
|---|
| 6999 | inline BOOL _GpiDeleteElementRange(HPS a, LONG b, LONG c) | 
|---|
| 7000 | { | 
|---|
| 7001 | BOOL yyrc; | 
|---|
| 7002 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7003 |  | 
|---|
| 7004 | yyrc = GpiDeleteElementRange(a, b, c); | 
|---|
| 7005 | SetFS(sel); | 
|---|
| 7006 |  | 
|---|
| 7007 | return yyrc; | 
|---|
| 7008 | } | 
|---|
| 7009 |  | 
|---|
| 7010 | #undef  GpiDeleteElementRange | 
|---|
| 7011 | #define GpiDeleteElementRange _GpiDeleteElementRange | 
|---|
| 7012 |  | 
|---|
| 7013 | inline BOOL _GpiDeleteElementsBetweenLabels(HPS a, LONG b, LONG c) | 
|---|
| 7014 | { | 
|---|
| 7015 | BOOL yyrc; | 
|---|
| 7016 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7017 |  | 
|---|
| 7018 | yyrc = GpiDeleteElementsBetweenLabels(a, b, c); | 
|---|
| 7019 | SetFS(sel); | 
|---|
| 7020 |  | 
|---|
| 7021 | return yyrc; | 
|---|
| 7022 | } | 
|---|
| 7023 |  | 
|---|
| 7024 | #undef  GpiDeleteElementsBetweenLabels | 
|---|
| 7025 | #define GpiDeleteElementsBetweenLabels _GpiDeleteElementsBetweenLabels | 
|---|
| 7026 |  | 
|---|
| 7027 | inline BOOL _GpiDeleteMetaFile(HMF a) | 
|---|
| 7028 | { | 
|---|
| 7029 | BOOL yyrc; | 
|---|
| 7030 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7031 |  | 
|---|
| 7032 | yyrc = GpiDeleteMetaFile(a); | 
|---|
| 7033 | SetFS(sel); | 
|---|
| 7034 |  | 
|---|
| 7035 | return yyrc; | 
|---|
| 7036 | } | 
|---|
| 7037 |  | 
|---|
| 7038 | #undef  GpiDeleteMetaFile | 
|---|
| 7039 | #define GpiDeleteMetaFile _GpiDeleteMetaFile | 
|---|
| 7040 |  | 
|---|
| 7041 | inline BOOL _GpiDeletePalette(HPAL a) | 
|---|
| 7042 | { | 
|---|
| 7043 | BOOL yyrc; | 
|---|
| 7044 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7045 |  | 
|---|
| 7046 | yyrc = GpiDeletePalette(a); | 
|---|
| 7047 | SetFS(sel); | 
|---|
| 7048 |  | 
|---|
| 7049 | return yyrc; | 
|---|
| 7050 | } | 
|---|
| 7051 |  | 
|---|
| 7052 | #undef  GpiDeletePalette | 
|---|
| 7053 | #define GpiDeletePalette _GpiDeletePalette | 
|---|
| 7054 |  | 
|---|
| 7055 | inline BOOL _GpiDeleteSetId(HPS a, LONG b) | 
|---|
| 7056 | { | 
|---|
| 7057 | BOOL yyrc; | 
|---|
| 7058 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7059 |  | 
|---|
| 7060 | yyrc = GpiDeleteSetId(a, b); | 
|---|
| 7061 | SetFS(sel); | 
|---|
| 7062 |  | 
|---|
| 7063 | return yyrc; | 
|---|
| 7064 | } | 
|---|
| 7065 |  | 
|---|
| 7066 | #undef  GpiDeleteSetId | 
|---|
| 7067 | #define GpiDeleteSetId _GpiDeleteSetId | 
|---|
| 7068 |  | 
|---|
| 7069 | inline BOOL _GpiDestroyRegion(HPS a, HRGN b) | 
|---|
| 7070 | { | 
|---|
| 7071 | BOOL yyrc; | 
|---|
| 7072 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7073 |  | 
|---|
| 7074 | yyrc = GpiDestroyRegion(a, b); | 
|---|
| 7075 | SetFS(sel); | 
|---|
| 7076 |  | 
|---|
| 7077 | return yyrc; | 
|---|
| 7078 | } | 
|---|
| 7079 |  | 
|---|
| 7080 | #undef  GpiDestroyRegion | 
|---|
| 7081 | #define GpiDestroyRegion _GpiDestroyRegion | 
|---|
| 7082 |  | 
|---|
| 7083 | inline LONG _GpiElement(HPS a, LONG b, PCSZ c, LONG d, PBYTE e) | 
|---|
| 7084 | { | 
|---|
| 7085 | LONG yyrc; | 
|---|
| 7086 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7087 |  | 
|---|
| 7088 | yyrc = GpiElement(a, b, c, d, e); | 
|---|
| 7089 | SetFS(sel); | 
|---|
| 7090 |  | 
|---|
| 7091 | return yyrc; | 
|---|
| 7092 | } | 
|---|
| 7093 |  | 
|---|
| 7094 | #undef  GpiElement | 
|---|
| 7095 | #define GpiElement _GpiElement | 
|---|
| 7096 |  | 
|---|
| 7097 | inline LONG _GpiEndArea(HPS a) | 
|---|
| 7098 | { | 
|---|
| 7099 | LONG yyrc; | 
|---|
| 7100 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7101 |  | 
|---|
| 7102 | yyrc = GpiEndArea(a); | 
|---|
| 7103 | SetFS(sel); | 
|---|
| 7104 |  | 
|---|
| 7105 | return yyrc; | 
|---|
| 7106 | } | 
|---|
| 7107 |  | 
|---|
| 7108 | #undef  GpiEndArea | 
|---|
| 7109 | #define GpiEndArea _GpiEndArea | 
|---|
| 7110 |  | 
|---|
| 7111 | inline BOOL _GpiEndElement(HPS a) | 
|---|
| 7112 | { | 
|---|
| 7113 | BOOL yyrc; | 
|---|
| 7114 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7115 |  | 
|---|
| 7116 | yyrc = GpiEndElement(a); | 
|---|
| 7117 | SetFS(sel); | 
|---|
| 7118 |  | 
|---|
| 7119 | return yyrc; | 
|---|
| 7120 | } | 
|---|
| 7121 |  | 
|---|
| 7122 | #undef  GpiEndElement | 
|---|
| 7123 | #define GpiEndElement _GpiEndElement | 
|---|
| 7124 |  | 
|---|
| 7125 | inline BOOL _GpiEndPath(HPS a) | 
|---|
| 7126 | { | 
|---|
| 7127 | BOOL yyrc; | 
|---|
| 7128 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7129 |  | 
|---|
| 7130 | yyrc = GpiEndPath(a); | 
|---|
| 7131 | SetFS(sel); | 
|---|
| 7132 |  | 
|---|
| 7133 | return yyrc; | 
|---|
| 7134 | } | 
|---|
| 7135 |  | 
|---|
| 7136 | #undef  GpiEndPath | 
|---|
| 7137 | #define GpiEndPath _GpiEndPath | 
|---|
| 7138 |  | 
|---|
| 7139 | inline LONG _GpiEqualRegion(HPS a, HRGN b, HRGN c) | 
|---|
| 7140 | { | 
|---|
| 7141 | LONG yyrc; | 
|---|
| 7142 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7143 |  | 
|---|
| 7144 | yyrc = GpiEqualRegion(a, b, c); | 
|---|
| 7145 | SetFS(sel); | 
|---|
| 7146 |  | 
|---|
| 7147 | return yyrc; | 
|---|
| 7148 | } | 
|---|
| 7149 |  | 
|---|
| 7150 | #undef  GpiEqualRegion | 
|---|
| 7151 | #define GpiEqualRegion _GpiEqualRegion | 
|---|
| 7152 |  | 
|---|
| 7153 | inline LONG _GpiExcludeClipRectangle(HPS a, PRECTL b) | 
|---|
| 7154 | { | 
|---|
| 7155 | LONG yyrc; | 
|---|
| 7156 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7157 |  | 
|---|
| 7158 | yyrc = GpiExcludeClipRectangle(a, b); | 
|---|
| 7159 | SetFS(sel); | 
|---|
| 7160 |  | 
|---|
| 7161 | return yyrc; | 
|---|
| 7162 | } | 
|---|
| 7163 |  | 
|---|
| 7164 | #undef  GpiExcludeClipRectangle | 
|---|
| 7165 | #define GpiExcludeClipRectangle _GpiExcludeClipRectangle | 
|---|
| 7166 |  | 
|---|
| 7167 | inline LONG _GpiFillPath(HPS a, LONG b, LONG c) | 
|---|
| 7168 | { | 
|---|
| 7169 | LONG yyrc; | 
|---|
| 7170 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7171 |  | 
|---|
| 7172 | yyrc = GpiFillPath(a, b, c); | 
|---|
| 7173 | SetFS(sel); | 
|---|
| 7174 |  | 
|---|
| 7175 | return yyrc; | 
|---|
| 7176 | } | 
|---|
| 7177 |  | 
|---|
| 7178 | #undef  GpiFillPath | 
|---|
| 7179 | #define GpiFillPath _GpiFillPath | 
|---|
| 7180 |  | 
|---|
| 7181 | inline LONG _GpiFrameRegion(HPS a, HRGN b, PSIZEL c) | 
|---|
| 7182 | { | 
|---|
| 7183 | LONG yyrc; | 
|---|
| 7184 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7185 |  | 
|---|
| 7186 | yyrc = GpiFrameRegion(a, b, c); | 
|---|
| 7187 | SetFS(sel); | 
|---|
| 7188 |  | 
|---|
| 7189 | return yyrc; | 
|---|
| 7190 | } | 
|---|
| 7191 |  | 
|---|
| 7192 | #undef  GpiFrameRegion | 
|---|
| 7193 | #define GpiFrameRegion _GpiFrameRegion | 
|---|
| 7194 |  | 
|---|
| 7195 | inline LONG _GpiFullArc(HPS a, LONG b, FIXED c) | 
|---|
| 7196 | { | 
|---|
| 7197 | LONG yyrc; | 
|---|
| 7198 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7199 |  | 
|---|
| 7200 | yyrc = GpiFullArc(a, b, c); | 
|---|
| 7201 | SetFS(sel); | 
|---|
| 7202 |  | 
|---|
| 7203 | return yyrc; | 
|---|
| 7204 | } | 
|---|
| 7205 |  | 
|---|
| 7206 | #undef  GpiFullArc | 
|---|
| 7207 | #define GpiFullArc _GpiFullArc | 
|---|
| 7208 |  | 
|---|
| 7209 | inline LONG _GpiImage(HPS a, LONG b, PSIZEL c, LONG d, PBYTE e) | 
|---|
| 7210 | { | 
|---|
| 7211 | LONG yyrc; | 
|---|
| 7212 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7213 |  | 
|---|
| 7214 | yyrc = GpiImage(a, b, c, d, e); | 
|---|
| 7215 | SetFS(sel); | 
|---|
| 7216 |  | 
|---|
| 7217 | return yyrc; | 
|---|
| 7218 | } | 
|---|
| 7219 |  | 
|---|
| 7220 | #undef  GpiImage | 
|---|
| 7221 | #define GpiImage _GpiImage | 
|---|
| 7222 |  | 
|---|
| 7223 | inline LONG _GpiIntersectClipRectangle(HPS a, PRECTL b) | 
|---|
| 7224 | { | 
|---|
| 7225 | LONG yyrc; | 
|---|
| 7226 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7227 |  | 
|---|
| 7228 | yyrc = GpiIntersectClipRectangle(a, b); | 
|---|
| 7229 | SetFS(sel); | 
|---|
| 7230 |  | 
|---|
| 7231 | return yyrc; | 
|---|
| 7232 | } | 
|---|
| 7233 |  | 
|---|
| 7234 | #undef  GpiIntersectClipRectangle | 
|---|
| 7235 | #define GpiIntersectClipRectangle _GpiIntersectClipRectangle | 
|---|
| 7236 |  | 
|---|
| 7237 | inline BOOL _GpiLabel(HPS a, LONG b) | 
|---|
| 7238 | { | 
|---|
| 7239 | BOOL yyrc; | 
|---|
| 7240 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7241 |  | 
|---|
| 7242 | yyrc = GpiLabel(a, b); | 
|---|
| 7243 | SetFS(sel); | 
|---|
| 7244 |  | 
|---|
| 7245 | return yyrc; | 
|---|
| 7246 | } | 
|---|
| 7247 |  | 
|---|
| 7248 | #undef  GpiLabel | 
|---|
| 7249 | #define GpiLabel _GpiLabel | 
|---|
| 7250 |  | 
|---|
| 7251 | inline LONG _GpiLine(HPS a, PPOINTL b) | 
|---|
| 7252 | { | 
|---|
| 7253 | LONG yyrc; | 
|---|
| 7254 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7255 |  | 
|---|
| 7256 | yyrc = GpiLine(a, b); | 
|---|
| 7257 | SetFS(sel); | 
|---|
| 7258 |  | 
|---|
| 7259 | return yyrc; | 
|---|
| 7260 | } | 
|---|
| 7261 |  | 
|---|
| 7262 | #undef  GpiLine | 
|---|
| 7263 | #define GpiLine _GpiLine | 
|---|
| 7264 |  | 
|---|
| 7265 | inline BOOL _GpiLoadFonts(HAB a, PCSZ b) | 
|---|
| 7266 | { | 
|---|
| 7267 | BOOL yyrc; | 
|---|
| 7268 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7269 |  | 
|---|
| 7270 | yyrc = GpiLoadFonts(a, b); | 
|---|
| 7271 | SetFS(sel); | 
|---|
| 7272 |  | 
|---|
| 7273 | return yyrc; | 
|---|
| 7274 | } | 
|---|
| 7275 |  | 
|---|
| 7276 | #undef  GpiLoadFonts | 
|---|
| 7277 | #define GpiLoadFonts _GpiLoadFonts | 
|---|
| 7278 |  | 
|---|
| 7279 | inline HMF _GpiLoadMetaFile(HAB a, PCSZ b) | 
|---|
| 7280 | { | 
|---|
| 7281 | HMF yyrc; | 
|---|
| 7282 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7283 |  | 
|---|
| 7284 | yyrc = GpiLoadMetaFile(a, b); | 
|---|
| 7285 | SetFS(sel); | 
|---|
| 7286 |  | 
|---|
| 7287 | return yyrc; | 
|---|
| 7288 | } | 
|---|
| 7289 |  | 
|---|
| 7290 | #undef  GpiLoadMetaFile | 
|---|
| 7291 | #define GpiLoadMetaFile _GpiLoadMetaFile | 
|---|
| 7292 |  | 
|---|
| 7293 | inline BOOL _GpiLoadPublicFonts(HAB a, PCSZ b) | 
|---|
| 7294 | { | 
|---|
| 7295 | BOOL yyrc; | 
|---|
| 7296 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7297 |  | 
|---|
| 7298 | yyrc = GpiLoadPublicFonts(a, b); | 
|---|
| 7299 | SetFS(sel); | 
|---|
| 7300 |  | 
|---|
| 7301 | return yyrc; | 
|---|
| 7302 | } | 
|---|
| 7303 |  | 
|---|
| 7304 | #undef  GpiLoadPublicFonts | 
|---|
| 7305 | #define GpiLoadPublicFonts _GpiLoadPublicFonts | 
|---|
| 7306 |  | 
|---|
| 7307 | inline LONG _GpiMarker(HPS a, PPOINTL b) | 
|---|
| 7308 | { | 
|---|
| 7309 | LONG yyrc; | 
|---|
| 7310 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7311 |  | 
|---|
| 7312 | yyrc = GpiMarker(a, b); | 
|---|
| 7313 | SetFS(sel); | 
|---|
| 7314 |  | 
|---|
| 7315 | return yyrc; | 
|---|
| 7316 | } | 
|---|
| 7317 |  | 
|---|
| 7318 | #undef  GpiMarker | 
|---|
| 7319 | #define GpiMarker _GpiMarker | 
|---|
| 7320 |  | 
|---|
| 7321 | inline BOOL _GpiModifyPath(HPS a, LONG b, LONG c) | 
|---|
| 7322 | { | 
|---|
| 7323 | BOOL yyrc; | 
|---|
| 7324 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7325 |  | 
|---|
| 7326 | yyrc = GpiModifyPath(a, b, c); | 
|---|
| 7327 | SetFS(sel); | 
|---|
| 7328 |  | 
|---|
| 7329 | return yyrc; | 
|---|
| 7330 | } | 
|---|
| 7331 |  | 
|---|
| 7332 | #undef  GpiModifyPath | 
|---|
| 7333 | #define GpiModifyPath _GpiModifyPath | 
|---|
| 7334 |  | 
|---|
| 7335 | inline BOOL _GpiMove(HPS a, PPOINTL b) | 
|---|
| 7336 | { | 
|---|
| 7337 | BOOL yyrc; | 
|---|
| 7338 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7339 |  | 
|---|
| 7340 | yyrc = GpiMove(a, b); | 
|---|
| 7341 | SetFS(sel); | 
|---|
| 7342 |  | 
|---|
| 7343 | return yyrc; | 
|---|
| 7344 | } | 
|---|
| 7345 |  | 
|---|
| 7346 | #undef  GpiMove | 
|---|
| 7347 | #define GpiMove _GpiMove | 
|---|
| 7348 |  | 
|---|
| 7349 | inline LONG _GpiOffsetClipRegion(HPS a, PPOINTL b) | 
|---|
| 7350 | { | 
|---|
| 7351 | LONG yyrc; | 
|---|
| 7352 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7353 |  | 
|---|
| 7354 | yyrc = GpiOffsetClipRegion(a, b); | 
|---|
| 7355 | SetFS(sel); | 
|---|
| 7356 |  | 
|---|
| 7357 | return yyrc; | 
|---|
| 7358 | } | 
|---|
| 7359 |  | 
|---|
| 7360 | #undef  GpiOffsetClipRegion | 
|---|
| 7361 | #define GpiOffsetClipRegion _GpiOffsetClipRegion | 
|---|
| 7362 |  | 
|---|
| 7363 | inline BOOL _GpiOffsetElementPointer(HPS a, LONG b) | 
|---|
| 7364 | { | 
|---|
| 7365 | BOOL yyrc; | 
|---|
| 7366 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7367 |  | 
|---|
| 7368 | yyrc = GpiOffsetElementPointer(a, b); | 
|---|
| 7369 | SetFS(sel); | 
|---|
| 7370 |  | 
|---|
| 7371 | return yyrc; | 
|---|
| 7372 | } | 
|---|
| 7373 |  | 
|---|
| 7374 | #undef  GpiOffsetElementPointer | 
|---|
| 7375 | #define GpiOffsetElementPointer _GpiOffsetElementPointer | 
|---|
| 7376 |  | 
|---|
| 7377 | inline BOOL _GpiOffsetRegion(HPS a, HRGN b, PPOINTL c) | 
|---|
| 7378 | { | 
|---|
| 7379 | BOOL yyrc; | 
|---|
| 7380 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7381 |  | 
|---|
| 7382 | yyrc = GpiOffsetRegion(a, b, c); | 
|---|
| 7383 | SetFS(sel); | 
|---|
| 7384 |  | 
|---|
| 7385 | return yyrc; | 
|---|
| 7386 | } | 
|---|
| 7387 |  | 
|---|
| 7388 | #undef  GpiOffsetRegion | 
|---|
| 7389 | #define GpiOffsetRegion _GpiOffsetRegion | 
|---|
| 7390 |  | 
|---|
| 7391 | inline LONG _GpiOutlinePath(HPS a, LONG b, LONG c) | 
|---|
| 7392 | { | 
|---|
| 7393 | LONG yyrc; | 
|---|
| 7394 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7395 |  | 
|---|
| 7396 | yyrc = GpiOutlinePath(a, b, c); | 
|---|
| 7397 | SetFS(sel); | 
|---|
| 7398 |  | 
|---|
| 7399 | return yyrc; | 
|---|
| 7400 | } | 
|---|
| 7401 |  | 
|---|
| 7402 | #undef  GpiOutlinePath | 
|---|
| 7403 | #define GpiOutlinePath _GpiOutlinePath | 
|---|
| 7404 |  | 
|---|
| 7405 | inline LONG _GpiPaintRegion(HPS a, HRGN b) | 
|---|
| 7406 | { | 
|---|
| 7407 | LONG yyrc; | 
|---|
| 7408 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7409 |  | 
|---|
| 7410 | yyrc = GpiPaintRegion(a, b); | 
|---|
| 7411 | SetFS(sel); | 
|---|
| 7412 |  | 
|---|
| 7413 | return yyrc; | 
|---|
| 7414 | } | 
|---|
| 7415 |  | 
|---|
| 7416 | #undef  GpiPaintRegion | 
|---|
| 7417 | #define GpiPaintRegion _GpiPaintRegion | 
|---|
| 7418 |  | 
|---|
| 7419 | inline LONG _GpiPartialArc(HPS a, PPOINTL b, FIXED c, FIXED d, FIXED e) | 
|---|
| 7420 | { | 
|---|
| 7421 | LONG yyrc; | 
|---|
| 7422 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7423 |  | 
|---|
| 7424 | yyrc = GpiPartialArc(a, b, c, d, e); | 
|---|
| 7425 | SetFS(sel); | 
|---|
| 7426 |  | 
|---|
| 7427 | return yyrc; | 
|---|
| 7428 | } | 
|---|
| 7429 |  | 
|---|
| 7430 | #undef  GpiPartialArc | 
|---|
| 7431 | #define GpiPartialArc _GpiPartialArc | 
|---|
| 7432 |  | 
|---|
| 7433 | inline HRGN _GpiPathToRegion(HPS a, LONG b, LONG c) | 
|---|
| 7434 | { | 
|---|
| 7435 | HRGN yyrc; | 
|---|
| 7436 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7437 |  | 
|---|
| 7438 | yyrc = GpiPathToRegion(a, b, c); | 
|---|
| 7439 | SetFS(sel); | 
|---|
| 7440 |  | 
|---|
| 7441 | return yyrc; | 
|---|
| 7442 | } | 
|---|
| 7443 |  | 
|---|
| 7444 | #undef  GpiPathToRegion | 
|---|
| 7445 | #define GpiPathToRegion _GpiPathToRegion | 
|---|
| 7446 |  | 
|---|
| 7447 | inline LONG _GpiPlayMetaFile(HPS a, HMF b, LONG c, PLONG d, PLONG e, LONG f, PSZ g) | 
|---|
| 7448 | { | 
|---|
| 7449 | LONG yyrc; | 
|---|
| 7450 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7451 |  | 
|---|
| 7452 | yyrc = GpiPlayMetaFile(a, b, c, d, e, f, g); | 
|---|
| 7453 | SetFS(sel); | 
|---|
| 7454 |  | 
|---|
| 7455 | return yyrc; | 
|---|
| 7456 | } | 
|---|
| 7457 |  | 
|---|
| 7458 | #undef  GpiPlayMetaFile | 
|---|
| 7459 | #define GpiPlayMetaFile _GpiPlayMetaFile | 
|---|
| 7460 |  | 
|---|
| 7461 | inline LONG _GpiPointArc(HPS a, PPOINTL b) | 
|---|
| 7462 | { | 
|---|
| 7463 | LONG yyrc; | 
|---|
| 7464 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7465 |  | 
|---|
| 7466 | yyrc = GpiPointArc(a, b); | 
|---|
| 7467 | SetFS(sel); | 
|---|
| 7468 |  | 
|---|
| 7469 | return yyrc; | 
|---|
| 7470 | } | 
|---|
| 7471 |  | 
|---|
| 7472 | #undef  GpiPointArc | 
|---|
| 7473 | #define GpiPointArc _GpiPointArc | 
|---|
| 7474 |  | 
|---|
| 7475 | inline LONG _GpiPolyFillet(HPS a, LONG b, PPOINTL c) | 
|---|
| 7476 | { | 
|---|
| 7477 | LONG yyrc; | 
|---|
| 7478 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7479 |  | 
|---|
| 7480 | yyrc = GpiPolyFillet(a, b, c); | 
|---|
| 7481 | SetFS(sel); | 
|---|
| 7482 |  | 
|---|
| 7483 | return yyrc; | 
|---|
| 7484 | } | 
|---|
| 7485 |  | 
|---|
| 7486 | #undef  GpiPolyFillet | 
|---|
| 7487 | #define GpiPolyFillet _GpiPolyFillet | 
|---|
| 7488 |  | 
|---|
| 7489 | inline LONG _GpiPolyFilletSharp(HPS a, LONG b, PPOINTL c, PFIXED d) | 
|---|
| 7490 | { | 
|---|
| 7491 | LONG yyrc; | 
|---|
| 7492 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7493 |  | 
|---|
| 7494 | yyrc = GpiPolyFilletSharp(a, b, c, d); | 
|---|
| 7495 | SetFS(sel); | 
|---|
| 7496 |  | 
|---|
| 7497 | return yyrc; | 
|---|
| 7498 | } | 
|---|
| 7499 |  | 
|---|
| 7500 | #undef  GpiPolyFilletSharp | 
|---|
| 7501 | #define GpiPolyFilletSharp _GpiPolyFilletSharp | 
|---|
| 7502 |  | 
|---|
| 7503 | inline LONG _GpiPolygons(HPS a, ULONG b, PPOLYGON c, ULONG d, ULONG e) | 
|---|
| 7504 | { | 
|---|
| 7505 | LONG yyrc; | 
|---|
| 7506 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7507 |  | 
|---|
| 7508 | yyrc = GpiPolygons(a, b, c, d, e); | 
|---|
| 7509 | SetFS(sel); | 
|---|
| 7510 |  | 
|---|
| 7511 | return yyrc; | 
|---|
| 7512 | } | 
|---|
| 7513 |  | 
|---|
| 7514 | inline HRGN _GpiCreatePolygonRegion(HPS a, ULONG b, PPOLYGON c, ULONG d) | 
|---|
| 7515 | { | 
|---|
| 7516 | HRGN yyrc; | 
|---|
| 7517 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7518 |  | 
|---|
| 7519 | yyrc = GpiCreatePolygonRegion(a, b, c, d); | 
|---|
| 7520 | SetFS(sel); | 
|---|
| 7521 |  | 
|---|
| 7522 | return yyrc; | 
|---|
| 7523 | } | 
|---|
| 7524 |  | 
|---|
| 7525 | #undef  GpiCreatePolygonRegion | 
|---|
| 7526 | #define GpiCreatePolygonRegion _GpiCreatePolygonRegion | 
|---|
| 7527 |  | 
|---|
| 7528 | inline HRGN _GpiCreateEllipticRegion(HPS a, PRECTL b) | 
|---|
| 7529 | { | 
|---|
| 7530 | HRGN yyrc; | 
|---|
| 7531 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7532 |  | 
|---|
| 7533 | yyrc = GpiCreateEllipticRegion(a, b); | 
|---|
| 7534 | SetFS(sel); | 
|---|
| 7535 |  | 
|---|
| 7536 | return yyrc; | 
|---|
| 7537 | } | 
|---|
| 7538 |  | 
|---|
| 7539 | #undef  GpiCreateEllipticRegion | 
|---|
| 7540 | #define GpiCreateEllipticRegion _GpiCreateEllipticRegion | 
|---|
| 7541 |  | 
|---|
| 7542 | inline HRGN _GpiCreateRoundRectRegion(HPS a, PPOINTL b, LONG c, LONG d) | 
|---|
| 7543 | { | 
|---|
| 7544 | HRGN yyrc; | 
|---|
| 7545 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7546 |  | 
|---|
| 7547 | yyrc = GpiCreateRoundRectRegion(a, b, c, d); | 
|---|
| 7548 | SetFS(sel); | 
|---|
| 7549 |  | 
|---|
| 7550 | return yyrc; | 
|---|
| 7551 | } | 
|---|
| 7552 |  | 
|---|
| 7553 | #undef  GpiCreateRoundRectRegion | 
|---|
| 7554 | #define GpiCreateRoundRectRegion _GpiCreateRoundRectRegion | 
|---|
| 7555 |  | 
|---|
| 7556 | #undef  GpiPolygons | 
|---|
| 7557 | #define GpiPolygons _GpiPolygons | 
|---|
| 7558 |  | 
|---|
| 7559 | inline LONG _GpiPolyLine(HPS a, LONG b, PPOINTL c) | 
|---|
| 7560 | { | 
|---|
| 7561 | LONG yyrc; | 
|---|
| 7562 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7563 |  | 
|---|
| 7564 | yyrc = GpiPolyLine(a, b, c); | 
|---|
| 7565 | SetFS(sel); | 
|---|
| 7566 |  | 
|---|
| 7567 | return yyrc; | 
|---|
| 7568 | } | 
|---|
| 7569 |  | 
|---|
| 7570 | #undef  GpiPolyLine | 
|---|
| 7571 | #define GpiPolyLine _GpiPolyLine | 
|---|
| 7572 |  | 
|---|
| 7573 | inline LONG _GpiPolyLineDisjoint(HPS a, LONG b, PPOINTL c) | 
|---|
| 7574 | { | 
|---|
| 7575 | LONG yyrc; | 
|---|
| 7576 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7577 |  | 
|---|
| 7578 | yyrc = GpiPolyLineDisjoint(a, b, c); | 
|---|
| 7579 | SetFS(sel); | 
|---|
| 7580 |  | 
|---|
| 7581 | return yyrc; | 
|---|
| 7582 | } | 
|---|
| 7583 |  | 
|---|
| 7584 | #undef  GpiPolyLineDisjoint | 
|---|
| 7585 | #define GpiPolyLineDisjoint _GpiPolyLineDisjoint | 
|---|
| 7586 |  | 
|---|
| 7587 | inline LONG _GpiPolyMarker(HPS a, LONG b, PPOINTL c) | 
|---|
| 7588 | { | 
|---|
| 7589 | LONG yyrc; | 
|---|
| 7590 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7591 |  | 
|---|
| 7592 | yyrc = GpiPolyMarker(a, b, c); | 
|---|
| 7593 | SetFS(sel); | 
|---|
| 7594 |  | 
|---|
| 7595 | return yyrc; | 
|---|
| 7596 | } | 
|---|
| 7597 |  | 
|---|
| 7598 | #undef  GpiPolyMarker | 
|---|
| 7599 | #define GpiPolyMarker _GpiPolyMarker | 
|---|
| 7600 |  | 
|---|
| 7601 | inline LONG _GpiPolySpline(HPS a, LONG b, PPOINTL c) | 
|---|
| 7602 | { | 
|---|
| 7603 | LONG yyrc; | 
|---|
| 7604 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7605 |  | 
|---|
| 7606 | yyrc = GpiPolySpline(a, b, c); | 
|---|
| 7607 | SetFS(sel); | 
|---|
| 7608 |  | 
|---|
| 7609 | return yyrc; | 
|---|
| 7610 | } | 
|---|
| 7611 |  | 
|---|
| 7612 | #undef  GpiPolySpline | 
|---|
| 7613 | #define GpiPolySpline _GpiPolySpline | 
|---|
| 7614 |  | 
|---|
| 7615 | inline BOOL _GpiPop(HPS a, LONG b) | 
|---|
| 7616 | { | 
|---|
| 7617 | BOOL yyrc; | 
|---|
| 7618 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7619 |  | 
|---|
| 7620 | yyrc = GpiPop(a, b); | 
|---|
| 7621 | SetFS(sel); | 
|---|
| 7622 |  | 
|---|
| 7623 | return yyrc; | 
|---|
| 7624 | } | 
|---|
| 7625 |  | 
|---|
| 7626 | #undef  GpiPop | 
|---|
| 7627 | #define GpiPop _GpiPop | 
|---|
| 7628 |  | 
|---|
| 7629 | inline LONG _GpiPtInRegion(HPS a, HRGN b, PPOINTL c) | 
|---|
| 7630 | { | 
|---|
| 7631 | LONG yyrc; | 
|---|
| 7632 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7633 |  | 
|---|
| 7634 | yyrc = GpiPtInRegion(a, b, c); | 
|---|
| 7635 | SetFS(sel); | 
|---|
| 7636 |  | 
|---|
| 7637 | return yyrc; | 
|---|
| 7638 | } | 
|---|
| 7639 |  | 
|---|
| 7640 | #undef  GpiPtInRegion | 
|---|
| 7641 | #define GpiPtInRegion _GpiPtInRegion | 
|---|
| 7642 |  | 
|---|
| 7643 | inline LONG _GpiPtVisible(HPS a, PPOINTL b) | 
|---|
| 7644 | { | 
|---|
| 7645 | LONG yyrc; | 
|---|
| 7646 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7647 |  | 
|---|
| 7648 | yyrc = GpiPtVisible(a, b); | 
|---|
| 7649 | SetFS(sel); | 
|---|
| 7650 |  | 
|---|
| 7651 | return yyrc; | 
|---|
| 7652 | } | 
|---|
| 7653 |  | 
|---|
| 7654 | #undef  GpiPtVisible | 
|---|
| 7655 | #define GpiPtVisible _GpiPtVisible | 
|---|
| 7656 |  | 
|---|
| 7657 | inline BOOL _GpiQueryArcParams(HPS a, PARCPARAMS b) | 
|---|
| 7658 | { | 
|---|
| 7659 | BOOL yyrc; | 
|---|
| 7660 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7661 |  | 
|---|
| 7662 | yyrc = GpiQueryArcParams(a, b); | 
|---|
| 7663 | SetFS(sel); | 
|---|
| 7664 |  | 
|---|
| 7665 | return yyrc; | 
|---|
| 7666 | } | 
|---|
| 7667 |  | 
|---|
| 7668 | #undef  GpiQueryArcParams | 
|---|
| 7669 | #define GpiQueryArcParams _GpiQueryArcParams | 
|---|
| 7670 |  | 
|---|
| 7671 | inline LONG _GpiQueryAttrMode(HPS a) | 
|---|
| 7672 | { | 
|---|
| 7673 | LONG yyrc; | 
|---|
| 7674 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7675 |  | 
|---|
| 7676 | yyrc = GpiQueryAttrMode(a); | 
|---|
| 7677 | SetFS(sel); | 
|---|
| 7678 |  | 
|---|
| 7679 | return yyrc; | 
|---|
| 7680 | } | 
|---|
| 7681 |  | 
|---|
| 7682 | #undef  GpiQueryAttrMode | 
|---|
| 7683 | #define GpiQueryAttrMode _GpiQueryAttrMode | 
|---|
| 7684 |  | 
|---|
| 7685 | inline LONG _GpiQueryAttrs(HPS a, LONG b, ULONG c, PBUNDLE d) | 
|---|
| 7686 | { | 
|---|
| 7687 | LONG yyrc; | 
|---|
| 7688 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7689 |  | 
|---|
| 7690 | yyrc = GpiQueryAttrs(a, b, c, d); | 
|---|
| 7691 | SetFS(sel); | 
|---|
| 7692 |  | 
|---|
| 7693 | return yyrc; | 
|---|
| 7694 | } | 
|---|
| 7695 |  | 
|---|
| 7696 | #undef  GpiQueryAttrs | 
|---|
| 7697 | #define GpiQueryAttrs _GpiQueryAttrs | 
|---|
| 7698 |  | 
|---|
| 7699 | inline LONG _GpiQueryBackColor(HPS a) | 
|---|
| 7700 | { | 
|---|
| 7701 | LONG yyrc; | 
|---|
| 7702 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7703 |  | 
|---|
| 7704 | yyrc = GpiQueryBackColor(a); | 
|---|
| 7705 | SetFS(sel); | 
|---|
| 7706 |  | 
|---|
| 7707 | return yyrc; | 
|---|
| 7708 | } | 
|---|
| 7709 |  | 
|---|
| 7710 | #undef  GpiQueryBackColor | 
|---|
| 7711 | #define GpiQueryBackColor _GpiQueryBackColor | 
|---|
| 7712 |  | 
|---|
| 7713 | inline LONG _GpiQueryBackMix(HPS a) | 
|---|
| 7714 | { | 
|---|
| 7715 | LONG yyrc; | 
|---|
| 7716 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7717 |  | 
|---|
| 7718 | yyrc = GpiQueryBackMix(a); | 
|---|
| 7719 | SetFS(sel); | 
|---|
| 7720 |  | 
|---|
| 7721 | return yyrc; | 
|---|
| 7722 | } | 
|---|
| 7723 |  | 
|---|
| 7724 | #undef  GpiQueryBackMix | 
|---|
| 7725 | #define GpiQueryBackMix _GpiQueryBackMix | 
|---|
| 7726 |  | 
|---|
| 7727 | inline BOOL _GpiQueryCharAngle(HPS a, PGRADIENTL b) | 
|---|
| 7728 | { | 
|---|
| 7729 | BOOL yyrc; | 
|---|
| 7730 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7731 |  | 
|---|
| 7732 | yyrc = GpiQueryCharAngle(a, b); | 
|---|
| 7733 | SetFS(sel); | 
|---|
| 7734 |  | 
|---|
| 7735 | return yyrc; | 
|---|
| 7736 | } | 
|---|
| 7737 |  | 
|---|
| 7738 | #undef  GpiQueryCharAngle | 
|---|
| 7739 | #define GpiQueryCharAngle _GpiQueryCharAngle | 
|---|
| 7740 |  | 
|---|
| 7741 | inline BOOL _GpiQueryCharBox(HPS a, PSIZEF b) | 
|---|
| 7742 | { | 
|---|
| 7743 | BOOL yyrc; | 
|---|
| 7744 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7745 |  | 
|---|
| 7746 | yyrc = GpiQueryCharBox(a, b); | 
|---|
| 7747 | SetFS(sel); | 
|---|
| 7748 |  | 
|---|
| 7749 | return yyrc; | 
|---|
| 7750 | } | 
|---|
| 7751 |  | 
|---|
| 7752 | #undef  GpiQueryCharBox | 
|---|
| 7753 | #define GpiQueryCharBox _GpiQueryCharBox | 
|---|
| 7754 |  | 
|---|
| 7755 | inline BOOL _GpiQueryCharBreakExtra(HPS a, PFIXED b) | 
|---|
| 7756 | { | 
|---|
| 7757 | BOOL yyrc; | 
|---|
| 7758 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7759 |  | 
|---|
| 7760 | yyrc = GpiQueryCharBreakExtra(a, b); | 
|---|
| 7761 | SetFS(sel); | 
|---|
| 7762 |  | 
|---|
| 7763 | return yyrc; | 
|---|
| 7764 | } | 
|---|
| 7765 |  | 
|---|
| 7766 | #undef  GpiQueryCharBreakExtra | 
|---|
| 7767 | #define GpiQueryCharBreakExtra _GpiQueryCharBreakExtra | 
|---|
| 7768 |  | 
|---|
| 7769 | inline LONG _GpiQueryCharDirection(HPS a) | 
|---|
| 7770 | { | 
|---|
| 7771 | LONG yyrc; | 
|---|
| 7772 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7773 |  | 
|---|
| 7774 | yyrc = GpiQueryCharDirection(a); | 
|---|
| 7775 | SetFS(sel); | 
|---|
| 7776 |  | 
|---|
| 7777 | return yyrc; | 
|---|
| 7778 | } | 
|---|
| 7779 |  | 
|---|
| 7780 | #undef  GpiQueryCharDirection | 
|---|
| 7781 | #define GpiQueryCharDirection _GpiQueryCharDirection | 
|---|
| 7782 |  | 
|---|
| 7783 | inline BOOL _GpiQueryCharExtra(HPS a, PFIXED b) | 
|---|
| 7784 | { | 
|---|
| 7785 | BOOL yyrc; | 
|---|
| 7786 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7787 |  | 
|---|
| 7788 | yyrc = GpiQueryCharExtra(a, b); | 
|---|
| 7789 | SetFS(sel); | 
|---|
| 7790 |  | 
|---|
| 7791 | return yyrc; | 
|---|
| 7792 | } | 
|---|
| 7793 |  | 
|---|
| 7794 | #undef  GpiQueryCharExtra | 
|---|
| 7795 | #define GpiQueryCharExtra _GpiQueryCharExtra | 
|---|
| 7796 |  | 
|---|
| 7797 | inline LONG _GpiQueryCharMode(HPS a) | 
|---|
| 7798 | { | 
|---|
| 7799 | LONG yyrc; | 
|---|
| 7800 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7801 |  | 
|---|
| 7802 | yyrc = GpiQueryCharMode(a); | 
|---|
| 7803 | SetFS(sel); | 
|---|
| 7804 |  | 
|---|
| 7805 | return yyrc; | 
|---|
| 7806 | } | 
|---|
| 7807 |  | 
|---|
| 7808 | #undef  GpiQueryCharMode | 
|---|
| 7809 | #define GpiQueryCharMode _GpiQueryCharMode | 
|---|
| 7810 |  | 
|---|
| 7811 | inline LONG _GpiQueryCharSet(HPS a) | 
|---|
| 7812 | { | 
|---|
| 7813 | LONG yyrc; | 
|---|
| 7814 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7815 |  | 
|---|
| 7816 | yyrc = GpiQueryCharSet(a); | 
|---|
| 7817 | SetFS(sel); | 
|---|
| 7818 |  | 
|---|
| 7819 | return yyrc; | 
|---|
| 7820 | } | 
|---|
| 7821 |  | 
|---|
| 7822 | #undef  GpiQueryCharSet | 
|---|
| 7823 | #define GpiQueryCharSet _GpiQueryCharSet | 
|---|
| 7824 |  | 
|---|
| 7825 | inline BOOL _GpiQueryCharShear(HPS a, PPOINTL b) | 
|---|
| 7826 | { | 
|---|
| 7827 | BOOL yyrc; | 
|---|
| 7828 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7829 |  | 
|---|
| 7830 | yyrc = GpiQueryCharShear(a, b); | 
|---|
| 7831 | SetFS(sel); | 
|---|
| 7832 |  | 
|---|
| 7833 | return yyrc; | 
|---|
| 7834 | } | 
|---|
| 7835 |  | 
|---|
| 7836 | #undef  GpiQueryCharShear | 
|---|
| 7837 | #define GpiQueryCharShear _GpiQueryCharShear | 
|---|
| 7838 |  | 
|---|
| 7839 | inline BOOL _GpiQueryCharStringPos(HPS a, ULONG b, LONG c, PCH d, PLONG e, PPOINTL f) | 
|---|
| 7840 | { | 
|---|
| 7841 | BOOL yyrc; | 
|---|
| 7842 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7843 |  | 
|---|
| 7844 | yyrc = GpiQueryCharStringPos(a, b, c, d, e, f); | 
|---|
| 7845 | SetFS(sel); | 
|---|
| 7846 |  | 
|---|
| 7847 | return yyrc; | 
|---|
| 7848 | } | 
|---|
| 7849 |  | 
|---|
| 7850 | #undef  GpiQueryCharStringPos | 
|---|
| 7851 | #define GpiQueryCharStringPos _GpiQueryCharStringPos | 
|---|
| 7852 |  | 
|---|
| 7853 | inline BOOL _GpiQueryCharStringPosAt(HPS a, PPOINTL b, ULONG c, LONG d, PCH e, PLONG f, PPOINTL g) | 
|---|
| 7854 | { | 
|---|
| 7855 | BOOL yyrc; | 
|---|
| 7856 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7857 |  | 
|---|
| 7858 | yyrc = GpiQueryCharStringPosAt(a, b, c, d, e, f, g); | 
|---|
| 7859 | SetFS(sel); | 
|---|
| 7860 |  | 
|---|
| 7861 | return yyrc; | 
|---|
| 7862 | } | 
|---|
| 7863 |  | 
|---|
| 7864 | #undef  GpiQueryCharStringPosAt | 
|---|
| 7865 | #define GpiQueryCharStringPosAt _GpiQueryCharStringPosAt | 
|---|
| 7866 |  | 
|---|
| 7867 | inline LONG _GpiQueryClipBox(HPS a, PRECTL b) | 
|---|
| 7868 | { | 
|---|
| 7869 | LONG yyrc; | 
|---|
| 7870 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7871 |  | 
|---|
| 7872 | yyrc = GpiQueryClipBox(a, b); | 
|---|
| 7873 | SetFS(sel); | 
|---|
| 7874 |  | 
|---|
| 7875 | return yyrc; | 
|---|
| 7876 | } | 
|---|
| 7877 |  | 
|---|
| 7878 | #undef  GpiQueryClipBox | 
|---|
| 7879 | #define GpiQueryClipBox _GpiQueryClipBox | 
|---|
| 7880 |  | 
|---|
| 7881 | inline HRGN _GpiQueryClipRegion(HPS a) | 
|---|
| 7882 | { | 
|---|
| 7883 | HRGN yyrc; | 
|---|
| 7884 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7885 |  | 
|---|
| 7886 | yyrc = GpiQueryClipRegion(a); | 
|---|
| 7887 | SetFS(sel); | 
|---|
| 7888 |  | 
|---|
| 7889 | return yyrc; | 
|---|
| 7890 | } | 
|---|
| 7891 |  | 
|---|
| 7892 | #undef  GpiQueryClipRegion | 
|---|
| 7893 | #define GpiQueryClipRegion _GpiQueryClipRegion | 
|---|
| 7894 |  | 
|---|
| 7895 | inline LONG _GpiQueryColor(HPS a) | 
|---|
| 7896 | { | 
|---|
| 7897 | LONG yyrc; | 
|---|
| 7898 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7899 |  | 
|---|
| 7900 | yyrc = GpiQueryColor(a); | 
|---|
| 7901 | SetFS(sel); | 
|---|
| 7902 |  | 
|---|
| 7903 | return yyrc; | 
|---|
| 7904 | } | 
|---|
| 7905 |  | 
|---|
| 7906 | #undef  GpiQueryColor | 
|---|
| 7907 | #define GpiQueryColor _GpiQueryColor | 
|---|
| 7908 |  | 
|---|
| 7909 | inline BOOL _GpiQueryColorData(HPS a, LONG b, PLONG c) | 
|---|
| 7910 | { | 
|---|
| 7911 | BOOL yyrc; | 
|---|
| 7912 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7913 |  | 
|---|
| 7914 | yyrc = GpiQueryColorData(a, b, c); | 
|---|
| 7915 | SetFS(sel); | 
|---|
| 7916 |  | 
|---|
| 7917 | return yyrc; | 
|---|
| 7918 | } | 
|---|
| 7919 |  | 
|---|
| 7920 | #undef  GpiQueryColorData | 
|---|
| 7921 | #define GpiQueryColorData _GpiQueryColorData | 
|---|
| 7922 |  | 
|---|
| 7923 | inline LONG _GpiQueryColorIndex(HPS a, ULONG b, LONG c) | 
|---|
| 7924 | { | 
|---|
| 7925 | LONG yyrc; | 
|---|
| 7926 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7927 |  | 
|---|
| 7928 | yyrc = GpiQueryColorIndex(a, b, c); | 
|---|
| 7929 | SetFS(sel); | 
|---|
| 7930 |  | 
|---|
| 7931 | return yyrc; | 
|---|
| 7932 | } | 
|---|
| 7933 |  | 
|---|
| 7934 | #undef  GpiQueryColorIndex | 
|---|
| 7935 | #define GpiQueryColorIndex _GpiQueryColorIndex | 
|---|
| 7936 |  | 
|---|
| 7937 | inline ULONG _GpiQueryCp(HPS a) | 
|---|
| 7938 | { | 
|---|
| 7939 | ULONG yyrc; | 
|---|
| 7940 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7941 |  | 
|---|
| 7942 | yyrc = GpiQueryCp(a); | 
|---|
| 7943 | SetFS(sel); | 
|---|
| 7944 |  | 
|---|
| 7945 | return yyrc; | 
|---|
| 7946 | } | 
|---|
| 7947 |  | 
|---|
| 7948 | #undef  GpiQueryCp | 
|---|
| 7949 | #define GpiQueryCp _GpiQueryCp | 
|---|
| 7950 |  | 
|---|
| 7951 | inline BOOL _GpiQueryCurrentPosition(HPS a, PPOINTL b) | 
|---|
| 7952 | { | 
|---|
| 7953 | BOOL yyrc; | 
|---|
| 7954 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7955 |  | 
|---|
| 7956 | yyrc = GpiQueryCurrentPosition(a, b); | 
|---|
| 7957 | SetFS(sel); | 
|---|
| 7958 |  | 
|---|
| 7959 | return yyrc; | 
|---|
| 7960 | } | 
|---|
| 7961 |  | 
|---|
| 7962 | #undef  GpiQueryCurrentPosition | 
|---|
| 7963 | #define GpiQueryCurrentPosition _GpiQueryCurrentPosition | 
|---|
| 7964 |  | 
|---|
| 7965 | inline BOOL _GpiQueryDefArcParams(HPS a, PARCPARAMS b) | 
|---|
| 7966 | { | 
|---|
| 7967 | BOOL yyrc; | 
|---|
| 7968 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7969 |  | 
|---|
| 7970 | yyrc = GpiQueryDefArcParams(a, b); | 
|---|
| 7971 | SetFS(sel); | 
|---|
| 7972 |  | 
|---|
| 7973 | return yyrc; | 
|---|
| 7974 | } | 
|---|
| 7975 |  | 
|---|
| 7976 | #undef  GpiQueryDefArcParams | 
|---|
| 7977 | #define GpiQueryDefArcParams _GpiQueryDefArcParams | 
|---|
| 7978 |  | 
|---|
| 7979 | inline BOOL _GpiQueryDefAttrs(HPS a, LONG b, ULONG c, PBUNDLE d) | 
|---|
| 7980 | { | 
|---|
| 7981 | BOOL yyrc; | 
|---|
| 7982 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7983 |  | 
|---|
| 7984 | yyrc = GpiQueryDefAttrs(a, b, c, d); | 
|---|
| 7985 | SetFS(sel); | 
|---|
| 7986 |  | 
|---|
| 7987 | return yyrc; | 
|---|
| 7988 | } | 
|---|
| 7989 |  | 
|---|
| 7990 | #undef  GpiQueryDefAttrs | 
|---|
| 7991 | #define GpiQueryDefAttrs _GpiQueryDefAttrs | 
|---|
| 7992 |  | 
|---|
| 7993 | inline BOOL _GpiQueryDefCharBox(HPS a, PSIZEL b) | 
|---|
| 7994 | { | 
|---|
| 7995 | BOOL yyrc; | 
|---|
| 7996 | USHORT sel = RestoreOS2FS(); | 
|---|
| 7997 |  | 
|---|
| 7998 | yyrc = GpiQueryDefCharBox(a, b); | 
|---|
| 7999 | SetFS(sel); | 
|---|
| 8000 |  | 
|---|
| 8001 | return yyrc; | 
|---|
| 8002 | } | 
|---|
| 8003 |  | 
|---|
| 8004 | #undef  GpiQueryDefCharBox | 
|---|
| 8005 | #define GpiQueryDefCharBox _GpiQueryDefCharBox | 
|---|
| 8006 |  | 
|---|
| 8007 | inline BOOL _GpiQueryDefTag(HPS a, PLONG b) | 
|---|
| 8008 | { | 
|---|
| 8009 | BOOL yyrc; | 
|---|
| 8010 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8011 |  | 
|---|
| 8012 | yyrc = GpiQueryDefTag(a, b); | 
|---|
| 8013 | SetFS(sel); | 
|---|
| 8014 |  | 
|---|
| 8015 | return yyrc; | 
|---|
| 8016 | } | 
|---|
| 8017 |  | 
|---|
| 8018 | #undef  GpiQueryDefTag | 
|---|
| 8019 | #define GpiQueryDefTag _GpiQueryDefTag | 
|---|
| 8020 |  | 
|---|
| 8021 | inline BOOL _GpiQueryDefViewingLimits(HPS a, PRECTL b) | 
|---|
| 8022 | { | 
|---|
| 8023 | BOOL yyrc; | 
|---|
| 8024 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8025 |  | 
|---|
| 8026 | yyrc = GpiQueryDefViewingLimits(a, b); | 
|---|
| 8027 | SetFS(sel); | 
|---|
| 8028 |  | 
|---|
| 8029 | return yyrc; | 
|---|
| 8030 | } | 
|---|
| 8031 |  | 
|---|
| 8032 | #undef  GpiQueryDefViewingLimits | 
|---|
| 8033 | #define GpiQueryDefViewingLimits _GpiQueryDefViewingLimits | 
|---|
| 8034 |  | 
|---|
| 8035 | inline BOOL _GpiQueryDefaultViewMatrix(HPS a, LONG b, PMATRIXLF c) | 
|---|
| 8036 | { | 
|---|
| 8037 | BOOL yyrc; | 
|---|
| 8038 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8039 |  | 
|---|
| 8040 | yyrc = GpiQueryDefaultViewMatrix(a, b, c); | 
|---|
| 8041 | SetFS(sel); | 
|---|
| 8042 |  | 
|---|
| 8043 | return yyrc; | 
|---|
| 8044 | } | 
|---|
| 8045 |  | 
|---|
| 8046 | #undef  GpiQueryDefaultViewMatrix | 
|---|
| 8047 | #define GpiQueryDefaultViewMatrix _GpiQueryDefaultViewMatrix | 
|---|
| 8048 |  | 
|---|
| 8049 | inline LONG _GpiQueryEditMode(HPS a) | 
|---|
| 8050 | { | 
|---|
| 8051 | LONG yyrc; | 
|---|
| 8052 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8053 |  | 
|---|
| 8054 | yyrc = GpiQueryEditMode(a); | 
|---|
| 8055 | SetFS(sel); | 
|---|
| 8056 |  | 
|---|
| 8057 | return yyrc; | 
|---|
| 8058 | } | 
|---|
| 8059 |  | 
|---|
| 8060 | #undef  GpiQueryEditMode | 
|---|
| 8061 | #define GpiQueryEditMode _GpiQueryEditMode | 
|---|
| 8062 |  | 
|---|
| 8063 | inline LONG _GpiQueryElement(HPS a, LONG b, LONG c, PBYTE d) | 
|---|
| 8064 | { | 
|---|
| 8065 | LONG yyrc; | 
|---|
| 8066 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8067 |  | 
|---|
| 8068 | yyrc = GpiQueryElement(a, b, c, d); | 
|---|
| 8069 | SetFS(sel); | 
|---|
| 8070 |  | 
|---|
| 8071 | return yyrc; | 
|---|
| 8072 | } | 
|---|
| 8073 |  | 
|---|
| 8074 | #undef  GpiQueryElement | 
|---|
| 8075 | #define GpiQueryElement _GpiQueryElement | 
|---|
| 8076 |  | 
|---|
| 8077 | inline LONG _GpiQueryElementPointer(HPS a) | 
|---|
| 8078 | { | 
|---|
| 8079 | LONG yyrc; | 
|---|
| 8080 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8081 |  | 
|---|
| 8082 | yyrc = GpiQueryElementPointer(a); | 
|---|
| 8083 | SetFS(sel); | 
|---|
| 8084 |  | 
|---|
| 8085 | return yyrc; | 
|---|
| 8086 | } | 
|---|
| 8087 |  | 
|---|
| 8088 | #undef  GpiQueryElementPointer | 
|---|
| 8089 | #define GpiQueryElementPointer _GpiQueryElementPointer | 
|---|
| 8090 |  | 
|---|
| 8091 | inline LONG _GpiQueryElementType(HPS a, PLONG b, LONG c, PSZ d) | 
|---|
| 8092 | { | 
|---|
| 8093 | LONG yyrc; | 
|---|
| 8094 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8095 |  | 
|---|
| 8096 | yyrc = GpiQueryElementType(a, b, c, d); | 
|---|
| 8097 | SetFS(sel); | 
|---|
| 8098 |  | 
|---|
| 8099 | return yyrc; | 
|---|
| 8100 | } | 
|---|
| 8101 |  | 
|---|
| 8102 | #undef  GpiQueryElementType | 
|---|
| 8103 | #define GpiQueryElementType _GpiQueryElementType | 
|---|
| 8104 |  | 
|---|
| 8105 | inline ULONG _GpiQueryFaceString(HPS a, PCSZ b, PFACENAMEDESC c, LONG d, PSZ e) | 
|---|
| 8106 | { | 
|---|
| 8107 | ULONG yyrc; | 
|---|
| 8108 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8109 |  | 
|---|
| 8110 | yyrc = GpiQueryFaceString(a, b, c, d, e); | 
|---|
| 8111 | SetFS(sel); | 
|---|
| 8112 |  | 
|---|
| 8113 | return yyrc; | 
|---|
| 8114 | } | 
|---|
| 8115 |  | 
|---|
| 8116 | #undef  GpiQueryFaceString | 
|---|
| 8117 | #define GpiQueryFaceString _GpiQueryFaceString | 
|---|
| 8118 |  | 
|---|
| 8119 | inline ULONG _GpiQueryFontAction(HAB a, ULONG b) | 
|---|
| 8120 | { | 
|---|
| 8121 | ULONG yyrc; | 
|---|
| 8122 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8123 |  | 
|---|
| 8124 | yyrc = GpiQueryFontAction(a, b); | 
|---|
| 8125 | SetFS(sel); | 
|---|
| 8126 |  | 
|---|
| 8127 | return yyrc; | 
|---|
| 8128 | } | 
|---|
| 8129 |  | 
|---|
| 8130 | #undef  GpiQueryFontAction | 
|---|
| 8131 | #define GpiQueryFontAction _GpiQueryFontAction | 
|---|
| 8132 |  | 
|---|
| 8133 | inline LONG _GpiQueryFontFileDescriptions(HAB a, PCSZ b, PLONG c, PFFDESCS d) | 
|---|
| 8134 | { | 
|---|
| 8135 | LONG yyrc; | 
|---|
| 8136 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8137 |  | 
|---|
| 8138 | yyrc = GpiQueryFontFileDescriptions(a, b, c, d); | 
|---|
| 8139 | SetFS(sel); | 
|---|
| 8140 |  | 
|---|
| 8141 | return yyrc; | 
|---|
| 8142 | } | 
|---|
| 8143 |  | 
|---|
| 8144 | #undef  GpiQueryFontFileDescriptions | 
|---|
| 8145 | #define GpiQueryFontFileDescriptions _GpiQueryFontFileDescriptions | 
|---|
| 8146 |  | 
|---|
| 8147 | inline BOOL _GpiQueryFontMetrics(HPS a, LONG b, PFONTMETRICS c) | 
|---|
| 8148 | { | 
|---|
| 8149 | BOOL yyrc; | 
|---|
| 8150 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8151 |  | 
|---|
| 8152 | yyrc = GpiQueryFontMetrics(a, b, c); | 
|---|
| 8153 | SetFS(sel); | 
|---|
| 8154 |  | 
|---|
| 8155 | return yyrc; | 
|---|
| 8156 | } | 
|---|
| 8157 |  | 
|---|
| 8158 | #undef  GpiQueryFontMetrics | 
|---|
| 8159 | #define GpiQueryFontMetrics _GpiQueryFontMetrics | 
|---|
| 8160 |  | 
|---|
| 8161 | inline LONG _GpiQueryFonts(HPS a, ULONG b, PCSZ c, PLONG d, LONG e, PFONTMETRICS f) | 
|---|
| 8162 | { | 
|---|
| 8163 | LONG yyrc; | 
|---|
| 8164 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8165 |  | 
|---|
| 8166 | yyrc = GpiQueryFonts(a, b, c, d, e, f); | 
|---|
| 8167 | SetFS(sel); | 
|---|
| 8168 |  | 
|---|
| 8169 | return yyrc; | 
|---|
| 8170 | } | 
|---|
| 8171 |  | 
|---|
| 8172 | #undef  GpiQueryFonts | 
|---|
| 8173 | #define GpiQueryFonts _GpiQueryFonts | 
|---|
| 8174 |  | 
|---|
| 8175 | inline LONG _GpiQueryFullFontFileDescs(HAB a, PCSZ b, PLONG c, PVOID d, PLONG e) | 
|---|
| 8176 | { | 
|---|
| 8177 | LONG yyrc; | 
|---|
| 8178 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8179 |  | 
|---|
| 8180 | yyrc = GpiQueryFullFontFileDescs(a, b, c, d, e); | 
|---|
| 8181 | SetFS(sel); | 
|---|
| 8182 |  | 
|---|
| 8183 | return yyrc; | 
|---|
| 8184 | } | 
|---|
| 8185 |  | 
|---|
| 8186 | #undef  GpiQueryFullFontFileDescs | 
|---|
| 8187 | #define GpiQueryFullFontFileDescs _GpiQueryFullFontFileDescs | 
|---|
| 8188 |  | 
|---|
| 8189 | inline BOOL _GpiQueryGraphicsField(HPS a, PRECTL b) | 
|---|
| 8190 | { | 
|---|
| 8191 | BOOL yyrc; | 
|---|
| 8192 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8193 |  | 
|---|
| 8194 | yyrc = GpiQueryGraphicsField(a, b); | 
|---|
| 8195 | SetFS(sel); | 
|---|
| 8196 |  | 
|---|
| 8197 | return yyrc; | 
|---|
| 8198 | } | 
|---|
| 8199 |  | 
|---|
| 8200 | #undef  GpiQueryGraphicsField | 
|---|
| 8201 | #define GpiQueryGraphicsField _GpiQueryGraphicsField | 
|---|
| 8202 |  | 
|---|
| 8203 | inline LONG _GpiQueryKerningPairs(HPS a, LONG b, PKERNINGPAIRS c) | 
|---|
| 8204 | { | 
|---|
| 8205 | LONG yyrc; | 
|---|
| 8206 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8207 |  | 
|---|
| 8208 | yyrc = GpiQueryKerningPairs(a, b, c); | 
|---|
| 8209 | SetFS(sel); | 
|---|
| 8210 |  | 
|---|
| 8211 | return yyrc; | 
|---|
| 8212 | } | 
|---|
| 8213 |  | 
|---|
| 8214 | #undef  GpiQueryKerningPairs | 
|---|
| 8215 | #define GpiQueryKerningPairs _GpiQueryKerningPairs | 
|---|
| 8216 |  | 
|---|
| 8217 | inline LONG _GpiQueryLineEnd(HPS a) | 
|---|
| 8218 | { | 
|---|
| 8219 | LONG yyrc; | 
|---|
| 8220 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8221 |  | 
|---|
| 8222 | yyrc = GpiQueryLineEnd(a); | 
|---|
| 8223 | SetFS(sel); | 
|---|
| 8224 |  | 
|---|
| 8225 | return yyrc; | 
|---|
| 8226 | } | 
|---|
| 8227 |  | 
|---|
| 8228 | #undef  GpiQueryLineEnd | 
|---|
| 8229 | #define GpiQueryLineEnd _GpiQueryLineEnd | 
|---|
| 8230 |  | 
|---|
| 8231 | inline LONG _GpiQueryLineJoin(HPS a) | 
|---|
| 8232 | { | 
|---|
| 8233 | LONG yyrc; | 
|---|
| 8234 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8235 |  | 
|---|
| 8236 | yyrc = GpiQueryLineJoin(a); | 
|---|
| 8237 | SetFS(sel); | 
|---|
| 8238 |  | 
|---|
| 8239 | return yyrc; | 
|---|
| 8240 | } | 
|---|
| 8241 |  | 
|---|
| 8242 | #undef  GpiQueryLineJoin | 
|---|
| 8243 | #define GpiQueryLineJoin _GpiQueryLineJoin | 
|---|
| 8244 |  | 
|---|
| 8245 | inline LONG _GpiQueryLineType(HPS a) | 
|---|
| 8246 | { | 
|---|
| 8247 | LONG yyrc; | 
|---|
| 8248 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8249 |  | 
|---|
| 8250 | yyrc = GpiQueryLineType(a); | 
|---|
| 8251 | SetFS(sel); | 
|---|
| 8252 |  | 
|---|
| 8253 | return yyrc; | 
|---|
| 8254 | } | 
|---|
| 8255 |  | 
|---|
| 8256 | #undef  GpiQueryLineType | 
|---|
| 8257 | #define GpiQueryLineType _GpiQueryLineType | 
|---|
| 8258 |  | 
|---|
| 8259 | inline FIXED _GpiQueryLineWidth(HPS a) | 
|---|
| 8260 | { | 
|---|
| 8261 | FIXED yyrc; | 
|---|
| 8262 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8263 |  | 
|---|
| 8264 | yyrc = GpiQueryLineWidth(a); | 
|---|
| 8265 | SetFS(sel); | 
|---|
| 8266 |  | 
|---|
| 8267 | return yyrc; | 
|---|
| 8268 | } | 
|---|
| 8269 |  | 
|---|
| 8270 | #undef  GpiQueryLineWidth | 
|---|
| 8271 | #define GpiQueryLineWidth _GpiQueryLineWidth | 
|---|
| 8272 |  | 
|---|
| 8273 | inline LONG _GpiQueryLineWidthGeom(HPS a) | 
|---|
| 8274 | { | 
|---|
| 8275 | LONG yyrc; | 
|---|
| 8276 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8277 |  | 
|---|
| 8278 | yyrc = GpiQueryLineWidthGeom(a); | 
|---|
| 8279 | SetFS(sel); | 
|---|
| 8280 |  | 
|---|
| 8281 | return yyrc; | 
|---|
| 8282 | } | 
|---|
| 8283 |  | 
|---|
| 8284 | #undef  GpiQueryLineWidthGeom | 
|---|
| 8285 | #define GpiQueryLineWidthGeom _GpiQueryLineWidthGeom | 
|---|
| 8286 |  | 
|---|
| 8287 | inline LONG _GpiQueryLogColorTable(HPS a, ULONG b, LONG c, LONG d, PLONG e) | 
|---|
| 8288 | { | 
|---|
| 8289 | LONG yyrc; | 
|---|
| 8290 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8291 |  | 
|---|
| 8292 | yyrc = GpiQueryLogColorTable(a, b, c, d, e); | 
|---|
| 8293 | SetFS(sel); | 
|---|
| 8294 |  | 
|---|
| 8295 | return yyrc; | 
|---|
| 8296 | } | 
|---|
| 8297 |  | 
|---|
| 8298 | #undef  GpiQueryLogColorTable | 
|---|
| 8299 | #define GpiQueryLogColorTable _GpiQueryLogColorTable | 
|---|
| 8300 |  | 
|---|
| 8301 | inline BOOL _GpiQueryLogicalFont(HPS a, LONG b, PSTR8 c, PFATTRS d, LONG e) | 
|---|
| 8302 | { | 
|---|
| 8303 | BOOL yyrc; | 
|---|
| 8304 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8305 |  | 
|---|
| 8306 | yyrc = GpiQueryLogicalFont(a, b, c, d, e); | 
|---|
| 8307 | SetFS(sel); | 
|---|
| 8308 |  | 
|---|
| 8309 | return yyrc; | 
|---|
| 8310 | } | 
|---|
| 8311 |  | 
|---|
| 8312 | #undef  GpiQueryLogicalFont | 
|---|
| 8313 | #define GpiQueryLogicalFont _GpiQueryLogicalFont | 
|---|
| 8314 |  | 
|---|
| 8315 | inline LONG _GpiQueryMarker(HPS a) | 
|---|
| 8316 | { | 
|---|
| 8317 | LONG yyrc; | 
|---|
| 8318 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8319 |  | 
|---|
| 8320 | yyrc = GpiQueryMarker(a); | 
|---|
| 8321 | SetFS(sel); | 
|---|
| 8322 |  | 
|---|
| 8323 | return yyrc; | 
|---|
| 8324 | } | 
|---|
| 8325 |  | 
|---|
| 8326 | #undef  GpiQueryMarker | 
|---|
| 8327 | #define GpiQueryMarker _GpiQueryMarker | 
|---|
| 8328 |  | 
|---|
| 8329 | inline BOOL _GpiQueryMarkerBox(HPS a, PSIZEF b) | 
|---|
| 8330 | { | 
|---|
| 8331 | BOOL yyrc; | 
|---|
| 8332 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8333 |  | 
|---|
| 8334 | yyrc = GpiQueryMarkerBox(a, b); | 
|---|
| 8335 | SetFS(sel); | 
|---|
| 8336 |  | 
|---|
| 8337 | return yyrc; | 
|---|
| 8338 | } | 
|---|
| 8339 |  | 
|---|
| 8340 | #undef  GpiQueryMarkerBox | 
|---|
| 8341 | #define GpiQueryMarkerBox _GpiQueryMarkerBox | 
|---|
| 8342 |  | 
|---|
| 8343 | inline LONG _GpiQueryMarkerSet(HPS a) | 
|---|
| 8344 | { | 
|---|
| 8345 | LONG yyrc; | 
|---|
| 8346 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8347 |  | 
|---|
| 8348 | yyrc = GpiQueryMarkerSet(a); | 
|---|
| 8349 | SetFS(sel); | 
|---|
| 8350 |  | 
|---|
| 8351 | return yyrc; | 
|---|
| 8352 | } | 
|---|
| 8353 |  | 
|---|
| 8354 | #undef  GpiQueryMarkerSet | 
|---|
| 8355 | #define GpiQueryMarkerSet _GpiQueryMarkerSet | 
|---|
| 8356 |  | 
|---|
| 8357 | inline BOOL _GpiQueryMetaFileBits(HMF a, LONG b, LONG c, PBYTE d) | 
|---|
| 8358 | { | 
|---|
| 8359 | BOOL yyrc; | 
|---|
| 8360 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8361 |  | 
|---|
| 8362 | yyrc = GpiQueryMetaFileBits(a, b, c, d); | 
|---|
| 8363 | SetFS(sel); | 
|---|
| 8364 |  | 
|---|
| 8365 | return yyrc; | 
|---|
| 8366 | } | 
|---|
| 8367 |  | 
|---|
| 8368 | #undef  GpiQueryMetaFileBits | 
|---|
| 8369 | #define GpiQueryMetaFileBits _GpiQueryMetaFileBits | 
|---|
| 8370 |  | 
|---|
| 8371 | inline LONG _GpiQueryMetaFileLength(HMF a) | 
|---|
| 8372 | { | 
|---|
| 8373 | LONG yyrc; | 
|---|
| 8374 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8375 |  | 
|---|
| 8376 | yyrc = GpiQueryMetaFileLength(a); | 
|---|
| 8377 | SetFS(sel); | 
|---|
| 8378 |  | 
|---|
| 8379 | return yyrc; | 
|---|
| 8380 | } | 
|---|
| 8381 |  | 
|---|
| 8382 | #undef  GpiQueryMetaFileLength | 
|---|
| 8383 | #define GpiQueryMetaFileLength _GpiQueryMetaFileLength | 
|---|
| 8384 |  | 
|---|
| 8385 | inline LONG _GpiQueryMix(HPS a) | 
|---|
| 8386 | { | 
|---|
| 8387 | LONG yyrc; | 
|---|
| 8388 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8389 |  | 
|---|
| 8390 | yyrc = GpiQueryMix(a); | 
|---|
| 8391 | SetFS(sel); | 
|---|
| 8392 |  | 
|---|
| 8393 | return yyrc; | 
|---|
| 8394 | } | 
|---|
| 8395 |  | 
|---|
| 8396 | #undef  GpiQueryMix | 
|---|
| 8397 | #define GpiQueryMix _GpiQueryMix | 
|---|
| 8398 |  | 
|---|
| 8399 | inline BOOL _GpiQueryModelTransformMatrix(HPS a, LONG b, PMATRIXLF c) | 
|---|
| 8400 | { | 
|---|
| 8401 | BOOL yyrc; | 
|---|
| 8402 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8403 |  | 
|---|
| 8404 | yyrc = GpiQueryModelTransformMatrix(a, b, c); | 
|---|
| 8405 | SetFS(sel); | 
|---|
| 8406 |  | 
|---|
| 8407 | return yyrc; | 
|---|
| 8408 | } | 
|---|
| 8409 |  | 
|---|
| 8410 | #undef  GpiQueryModelTransformMatrix | 
|---|
| 8411 | #define GpiQueryModelTransformMatrix _GpiQueryModelTransformMatrix | 
|---|
| 8412 |  | 
|---|
| 8413 | inline LONG _GpiQueryNearestColor(HPS a, ULONG b, LONG c) | 
|---|
| 8414 | { | 
|---|
| 8415 | LONG yyrc; | 
|---|
| 8416 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8417 |  | 
|---|
| 8418 | yyrc = GpiQueryNearestColor(a, b, c); | 
|---|
| 8419 | SetFS(sel); | 
|---|
| 8420 |  | 
|---|
| 8421 | return yyrc; | 
|---|
| 8422 | } | 
|---|
| 8423 |  | 
|---|
| 8424 | #undef  GpiQueryNearestColor | 
|---|
| 8425 | #define GpiQueryNearestColor _GpiQueryNearestColor | 
|---|
| 8426 |  | 
|---|
| 8427 | inline LONG _GpiQueryNumberSetIds(HPS a) | 
|---|
| 8428 | { | 
|---|
| 8429 | LONG yyrc; | 
|---|
| 8430 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8431 |  | 
|---|
| 8432 | yyrc = GpiQueryNumberSetIds(a); | 
|---|
| 8433 | SetFS(sel); | 
|---|
| 8434 |  | 
|---|
| 8435 | return yyrc; | 
|---|
| 8436 | } | 
|---|
| 8437 |  | 
|---|
| 8438 | #undef  GpiQueryNumberSetIds | 
|---|
| 8439 | #define GpiQueryNumberSetIds _GpiQueryNumberSetIds | 
|---|
| 8440 |  | 
|---|
| 8441 | inline BOOL _GpiQueryPageViewport(HPS a, PRECTL b) | 
|---|
| 8442 | { | 
|---|
| 8443 | BOOL yyrc; | 
|---|
| 8444 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8445 |  | 
|---|
| 8446 | yyrc = GpiQueryPageViewport(a, b); | 
|---|
| 8447 | SetFS(sel); | 
|---|
| 8448 |  | 
|---|
| 8449 | return yyrc; | 
|---|
| 8450 | } | 
|---|
| 8451 |  | 
|---|
| 8452 | #undef  GpiQueryPageViewport | 
|---|
| 8453 | #define GpiQueryPageViewport _GpiQueryPageViewport | 
|---|
| 8454 |  | 
|---|
| 8455 | inline HPAL _GpiQueryPalette(HPS a) | 
|---|
| 8456 | { | 
|---|
| 8457 | HPAL yyrc; | 
|---|
| 8458 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8459 |  | 
|---|
| 8460 | yyrc = GpiQueryPalette(a); | 
|---|
| 8461 | SetFS(sel); | 
|---|
| 8462 |  | 
|---|
| 8463 | return yyrc; | 
|---|
| 8464 | } | 
|---|
| 8465 |  | 
|---|
| 8466 | #undef  GpiQueryPalette | 
|---|
| 8467 | #define GpiQueryPalette _GpiQueryPalette | 
|---|
| 8468 |  | 
|---|
| 8469 | inline LONG _GpiQueryPaletteInfo(HPAL a, HPS b, ULONG c, ULONG d, ULONG e, PULONG f) | 
|---|
| 8470 | { | 
|---|
| 8471 | LONG yyrc; | 
|---|
| 8472 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8473 |  | 
|---|
| 8474 | yyrc = GpiQueryPaletteInfo(a, b, c, d, e, f); | 
|---|
| 8475 | SetFS(sel); | 
|---|
| 8476 |  | 
|---|
| 8477 | return yyrc; | 
|---|
| 8478 | } | 
|---|
| 8479 |  | 
|---|
| 8480 | #undef  GpiQueryPaletteInfo | 
|---|
| 8481 | #define GpiQueryPaletteInfo _GpiQueryPaletteInfo | 
|---|
| 8482 |  | 
|---|
| 8483 | inline LONG _GpiQueryPattern(HPS a) | 
|---|
| 8484 | { | 
|---|
| 8485 | LONG yyrc; | 
|---|
| 8486 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8487 |  | 
|---|
| 8488 | yyrc = GpiQueryPattern(a); | 
|---|
| 8489 | SetFS(sel); | 
|---|
| 8490 |  | 
|---|
| 8491 | return yyrc; | 
|---|
| 8492 | } | 
|---|
| 8493 |  | 
|---|
| 8494 | #undef  GpiQueryPattern | 
|---|
| 8495 | #define GpiQueryPattern _GpiQueryPattern | 
|---|
| 8496 |  | 
|---|
| 8497 | inline BOOL _GpiQueryPatternRefPoint(HPS a, PPOINTL b) | 
|---|
| 8498 | { | 
|---|
| 8499 | BOOL yyrc; | 
|---|
| 8500 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8501 |  | 
|---|
| 8502 | yyrc = GpiQueryPatternRefPoint(a, b); | 
|---|
| 8503 | SetFS(sel); | 
|---|
| 8504 |  | 
|---|
| 8505 | return yyrc; | 
|---|
| 8506 | } | 
|---|
| 8507 |  | 
|---|
| 8508 | #undef  GpiQueryPatternRefPoint | 
|---|
| 8509 | #define GpiQueryPatternRefPoint _GpiQueryPatternRefPoint | 
|---|
| 8510 |  | 
|---|
| 8511 | inline LONG _GpiQueryPatternSet(HPS a) | 
|---|
| 8512 | { | 
|---|
| 8513 | LONG yyrc; | 
|---|
| 8514 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8515 |  | 
|---|
| 8516 | yyrc = GpiQueryPatternSet(a); | 
|---|
| 8517 | SetFS(sel); | 
|---|
| 8518 |  | 
|---|
| 8519 | return yyrc; | 
|---|
| 8520 | } | 
|---|
| 8521 |  | 
|---|
| 8522 | #undef  GpiQueryPatternSet | 
|---|
| 8523 | #define GpiQueryPatternSet _GpiQueryPatternSet | 
|---|
| 8524 |  | 
|---|
| 8525 | inline LONG _GpiQueryRealColors(HPS a, ULONG b, LONG c, LONG d, PLONG e) | 
|---|
| 8526 | { | 
|---|
| 8527 | LONG yyrc; | 
|---|
| 8528 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8529 |  | 
|---|
| 8530 | yyrc = GpiQueryRealColors(a, b, c, d, e); | 
|---|
| 8531 | SetFS(sel); | 
|---|
| 8532 |  | 
|---|
| 8533 | return yyrc; | 
|---|
| 8534 | } | 
|---|
| 8535 |  | 
|---|
| 8536 | #undef  GpiQueryRealColors | 
|---|
| 8537 | #define GpiQueryRealColors _GpiQueryRealColors | 
|---|
| 8538 |  | 
|---|
| 8539 | inline LONG _GpiQueryRegionBox(HPS a, HRGN b, PRECTL c) | 
|---|
| 8540 | { | 
|---|
| 8541 | LONG yyrc; | 
|---|
| 8542 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8543 |  | 
|---|
| 8544 | yyrc = GpiQueryRegionBox(a, b, c); | 
|---|
| 8545 | SetFS(sel); | 
|---|
| 8546 |  | 
|---|
| 8547 | return yyrc; | 
|---|
| 8548 | } | 
|---|
| 8549 |  | 
|---|
| 8550 | #undef  GpiQueryRegionBox | 
|---|
| 8551 | #define GpiQueryRegionBox _GpiQueryRegionBox | 
|---|
| 8552 |  | 
|---|
| 8553 | inline BOOL _GpiQueryRegionRects(HPS a, HRGN b, PRECTL c, PRGNRECT d, PRECTL e) | 
|---|
| 8554 | { | 
|---|
| 8555 | BOOL yyrc; | 
|---|
| 8556 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8557 |  | 
|---|
| 8558 | yyrc = GpiQueryRegionRects(a, b, c, d, e); | 
|---|
| 8559 | SetFS(sel); | 
|---|
| 8560 |  | 
|---|
| 8561 | return yyrc; | 
|---|
| 8562 | } | 
|---|
| 8563 |  | 
|---|
| 8564 | #undef  GpiQueryRegionRects | 
|---|
| 8565 | #define GpiQueryRegionRects _GpiQueryRegionRects | 
|---|
| 8566 |  | 
|---|
| 8567 | inline LONG _GpiQueryRGBColor(HPS a, ULONG b, LONG c) | 
|---|
| 8568 | { | 
|---|
| 8569 | LONG yyrc; | 
|---|
| 8570 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8571 |  | 
|---|
| 8572 | yyrc = GpiQueryRGBColor(a, b, c); | 
|---|
| 8573 | SetFS(sel); | 
|---|
| 8574 |  | 
|---|
| 8575 | return yyrc; | 
|---|
| 8576 | } | 
|---|
| 8577 |  | 
|---|
| 8578 | #undef  GpiQueryRGBColor | 
|---|
| 8579 | #define GpiQueryRGBColor _GpiQueryRGBColor | 
|---|
| 8580 |  | 
|---|
| 8581 | inline BOOL _GpiQuerySegmentTransformMatrix(HPS a, LONG b, LONG c, PMATRIXLF d) | 
|---|
| 8582 | { | 
|---|
| 8583 | BOOL yyrc; | 
|---|
| 8584 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8585 |  | 
|---|
| 8586 | yyrc = GpiQuerySegmentTransformMatrix(a, b, c, d); | 
|---|
| 8587 | SetFS(sel); | 
|---|
| 8588 |  | 
|---|
| 8589 | return yyrc; | 
|---|
| 8590 | } | 
|---|
| 8591 |  | 
|---|
| 8592 | #undef  GpiQuerySegmentTransformMatrix | 
|---|
| 8593 | #define GpiQuerySegmentTransformMatrix _GpiQuerySegmentTransformMatrix | 
|---|
| 8594 |  | 
|---|
| 8595 | inline BOOL _GpiQuerySetIds(HPS a, LONG b, PLONG c, PSTR8 d, PLONG e) | 
|---|
| 8596 | { | 
|---|
| 8597 | BOOL yyrc; | 
|---|
| 8598 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8599 |  | 
|---|
| 8600 | yyrc = GpiQuerySetIds(a, b, c, d, e); | 
|---|
| 8601 | SetFS(sel); | 
|---|
| 8602 |  | 
|---|
| 8603 | return yyrc; | 
|---|
| 8604 | } | 
|---|
| 8605 |  | 
|---|
| 8606 | #undef  GpiQuerySetIds | 
|---|
| 8607 | #define GpiQuerySetIds _GpiQuerySetIds | 
|---|
| 8608 |  | 
|---|
| 8609 | inline BOOL _GpiQueryTextAlignment(HPS a, PLONG b, PLONG c) | 
|---|
| 8610 | { | 
|---|
| 8611 | BOOL yyrc; | 
|---|
| 8612 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8613 |  | 
|---|
| 8614 | yyrc = GpiQueryTextAlignment(a, b, c); | 
|---|
| 8615 | SetFS(sel); | 
|---|
| 8616 |  | 
|---|
| 8617 | return yyrc; | 
|---|
| 8618 | } | 
|---|
| 8619 |  | 
|---|
| 8620 | #undef  GpiQueryTextAlignment | 
|---|
| 8621 | #define GpiQueryTextAlignment _GpiQueryTextAlignment | 
|---|
| 8622 |  | 
|---|
| 8623 | inline BOOL _GpiQueryTextBox(HPS a, LONG b, PCH c, LONG d, PPOINTL e) | 
|---|
| 8624 | { | 
|---|
| 8625 | BOOL yyrc; | 
|---|
| 8626 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8627 |  | 
|---|
| 8628 | yyrc = GpiQueryTextBox(a, b, c, d, e); | 
|---|
| 8629 | SetFS(sel); | 
|---|
| 8630 |  | 
|---|
| 8631 | return yyrc; | 
|---|
| 8632 | } | 
|---|
| 8633 |  | 
|---|
| 8634 | #undef  GpiQueryTextBox | 
|---|
| 8635 | #define GpiQueryTextBox _GpiQueryTextBox | 
|---|
| 8636 |  | 
|---|
| 8637 | inline BOOL _GpiQueryViewingLimits(HPS a, PRECTL b) | 
|---|
| 8638 | { | 
|---|
| 8639 | BOOL yyrc; | 
|---|
| 8640 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8641 |  | 
|---|
| 8642 | yyrc = GpiQueryViewingLimits(a, b); | 
|---|
| 8643 | SetFS(sel); | 
|---|
| 8644 |  | 
|---|
| 8645 | return yyrc; | 
|---|
| 8646 | } | 
|---|
| 8647 |  | 
|---|
| 8648 | #undef  GpiQueryViewingLimits | 
|---|
| 8649 | #define GpiQueryViewingLimits _GpiQueryViewingLimits | 
|---|
| 8650 |  | 
|---|
| 8651 | inline BOOL _GpiQueryViewingTransformMatrix(HPS a, LONG b, PMATRIXLF c) | 
|---|
| 8652 | { | 
|---|
| 8653 | BOOL yyrc; | 
|---|
| 8654 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8655 |  | 
|---|
| 8656 | yyrc = GpiQueryViewingTransformMatrix(a, b, c); | 
|---|
| 8657 | SetFS(sel); | 
|---|
| 8658 |  | 
|---|
| 8659 | return yyrc; | 
|---|
| 8660 | } | 
|---|
| 8661 |  | 
|---|
| 8662 | #undef  GpiQueryViewingTransformMatrix | 
|---|
| 8663 | #define GpiQueryViewingTransformMatrix _GpiQueryViewingTransformMatrix | 
|---|
| 8664 |  | 
|---|
| 8665 | inline BOOL _GpiQueryWidthTable(HPS a, LONG b, LONG c, PLONG d) | 
|---|
| 8666 | { | 
|---|
| 8667 | BOOL yyrc; | 
|---|
| 8668 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8669 |  | 
|---|
| 8670 | yyrc = GpiQueryWidthTable(a, b, c, d); | 
|---|
| 8671 | SetFS(sel); | 
|---|
| 8672 |  | 
|---|
| 8673 | return yyrc; | 
|---|
| 8674 | } | 
|---|
| 8675 |  | 
|---|
| 8676 | #undef  GpiQueryWidthTable | 
|---|
| 8677 | #define GpiQueryWidthTable _GpiQueryWidthTable | 
|---|
| 8678 |  | 
|---|
| 8679 | inline LONG _GpiRectInRegion(HPS a, HRGN b, PRECTL c) | 
|---|
| 8680 | { | 
|---|
| 8681 | LONG yyrc; | 
|---|
| 8682 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8683 |  | 
|---|
| 8684 | yyrc = GpiRectInRegion(a, b, c); | 
|---|
| 8685 | SetFS(sel); | 
|---|
| 8686 |  | 
|---|
| 8687 | return yyrc; | 
|---|
| 8688 | } | 
|---|
| 8689 |  | 
|---|
| 8690 | #undef  GpiRectInRegion | 
|---|
| 8691 | #define GpiRectInRegion _GpiRectInRegion | 
|---|
| 8692 |  | 
|---|
| 8693 | inline LONG _GpiRectVisible(HPS a, PRECTL b) | 
|---|
| 8694 | { | 
|---|
| 8695 | LONG yyrc; | 
|---|
| 8696 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8697 |  | 
|---|
| 8698 | yyrc = GpiRectVisible(a, b); | 
|---|
| 8699 | SetFS(sel); | 
|---|
| 8700 |  | 
|---|
| 8701 | return yyrc; | 
|---|
| 8702 | } | 
|---|
| 8703 |  | 
|---|
| 8704 | #undef  GpiRectVisible | 
|---|
| 8705 | #define GpiRectVisible _GpiRectVisible | 
|---|
| 8706 |  | 
|---|
| 8707 | inline BOOL _GpiRotate(HPS a, PMATRIXLF b, LONG c, FIXED d, PPOINTL e) | 
|---|
| 8708 | { | 
|---|
| 8709 | BOOL yyrc; | 
|---|
| 8710 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8711 |  | 
|---|
| 8712 | yyrc = GpiRotate(a, b, c, d, e); | 
|---|
| 8713 | SetFS(sel); | 
|---|
| 8714 |  | 
|---|
| 8715 | return yyrc; | 
|---|
| 8716 | } | 
|---|
| 8717 |  | 
|---|
| 8718 | #undef  GpiRotate | 
|---|
| 8719 | #define GpiRotate _GpiRotate | 
|---|
| 8720 |  | 
|---|
| 8721 | inline BOOL _GpiSaveMetaFile(HMF a, PCSZ b) | 
|---|
| 8722 | { | 
|---|
| 8723 | BOOL yyrc; | 
|---|
| 8724 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8725 |  | 
|---|
| 8726 | yyrc = GpiSaveMetaFile(a, b); | 
|---|
| 8727 | SetFS(sel); | 
|---|
| 8728 |  | 
|---|
| 8729 | return yyrc; | 
|---|
| 8730 | } | 
|---|
| 8731 |  | 
|---|
| 8732 | #undef  GpiSaveMetaFile | 
|---|
| 8733 | #define GpiSaveMetaFile _GpiSaveMetaFile | 
|---|
| 8734 |  | 
|---|
| 8735 | inline BOOL _GpiScale(HPS a, PMATRIXLF b, LONG c, PFIXED d, PPOINTL e) | 
|---|
| 8736 | { | 
|---|
| 8737 | BOOL yyrc; | 
|---|
| 8738 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8739 |  | 
|---|
| 8740 | yyrc = GpiScale(a, b, c, d, e); | 
|---|
| 8741 | SetFS(sel); | 
|---|
| 8742 |  | 
|---|
| 8743 | return yyrc; | 
|---|
| 8744 | } | 
|---|
| 8745 |  | 
|---|
| 8746 | #undef  GpiScale | 
|---|
| 8747 | #define GpiScale _GpiScale | 
|---|
| 8748 |  | 
|---|
| 8749 | inline HPAL _GpiSelectPalette(HPS a, HPAL b) | 
|---|
| 8750 | { | 
|---|
| 8751 | HPAL yyrc; | 
|---|
| 8752 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8753 |  | 
|---|
| 8754 | yyrc = GpiSelectPalette(a, b); | 
|---|
| 8755 | SetFS(sel); | 
|---|
| 8756 |  | 
|---|
| 8757 | return yyrc; | 
|---|
| 8758 | } | 
|---|
| 8759 |  | 
|---|
| 8760 | #undef  GpiSelectPalette | 
|---|
| 8761 | #define GpiSelectPalette _GpiSelectPalette | 
|---|
| 8762 |  | 
|---|
| 8763 | inline BOOL _GpiSetArcParams(HPS a, PARCPARAMS b) | 
|---|
| 8764 | { | 
|---|
| 8765 | BOOL yyrc; | 
|---|
| 8766 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8767 |  | 
|---|
| 8768 | yyrc = GpiSetArcParams(a, b); | 
|---|
| 8769 | SetFS(sel); | 
|---|
| 8770 |  | 
|---|
| 8771 | return yyrc; | 
|---|
| 8772 | } | 
|---|
| 8773 |  | 
|---|
| 8774 | #undef  GpiSetArcParams | 
|---|
| 8775 | #define GpiSetArcParams _GpiSetArcParams | 
|---|
| 8776 |  | 
|---|
| 8777 | inline BOOL _GpiSetAttrMode(HPS a, LONG b) | 
|---|
| 8778 | { | 
|---|
| 8779 | BOOL yyrc; | 
|---|
| 8780 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8781 |  | 
|---|
| 8782 | yyrc = GpiSetAttrMode(a, b); | 
|---|
| 8783 | SetFS(sel); | 
|---|
| 8784 |  | 
|---|
| 8785 | return yyrc; | 
|---|
| 8786 | } | 
|---|
| 8787 |  | 
|---|
| 8788 | #undef  GpiSetAttrMode | 
|---|
| 8789 | #define GpiSetAttrMode _GpiSetAttrMode | 
|---|
| 8790 |  | 
|---|
| 8791 | inline BOOL _GpiSetAttrs(HPS a, LONG b, ULONG c, ULONG d, PVOID e) | 
|---|
| 8792 | { | 
|---|
| 8793 | BOOL yyrc; | 
|---|
| 8794 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8795 |  | 
|---|
| 8796 | yyrc = GpiSetAttrs(a, b, c, d, e); | 
|---|
| 8797 | SetFS(sel); | 
|---|
| 8798 |  | 
|---|
| 8799 | return yyrc; | 
|---|
| 8800 | } | 
|---|
| 8801 |  | 
|---|
| 8802 | #undef  GpiSetAttrs | 
|---|
| 8803 | #define GpiSetAttrs _GpiSetAttrs | 
|---|
| 8804 |  | 
|---|
| 8805 | inline BOOL _GpiSetBackColor(HPS a, LONG b) | 
|---|
| 8806 | { | 
|---|
| 8807 | BOOL yyrc; | 
|---|
| 8808 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8809 |  | 
|---|
| 8810 | yyrc = GpiSetBackColor(a, b); | 
|---|
| 8811 | SetFS(sel); | 
|---|
| 8812 |  | 
|---|
| 8813 | return yyrc; | 
|---|
| 8814 | } | 
|---|
| 8815 |  | 
|---|
| 8816 | #undef  GpiSetBackColor | 
|---|
| 8817 | #define GpiSetBackColor _GpiSetBackColor | 
|---|
| 8818 |  | 
|---|
| 8819 | inline BOOL _GpiSetBackMix(HPS a, LONG b) | 
|---|
| 8820 | { | 
|---|
| 8821 | BOOL yyrc; | 
|---|
| 8822 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8823 |  | 
|---|
| 8824 | yyrc = GpiSetBackMix(a, b); | 
|---|
| 8825 | SetFS(sel); | 
|---|
| 8826 |  | 
|---|
| 8827 | return yyrc; | 
|---|
| 8828 | } | 
|---|
| 8829 |  | 
|---|
| 8830 | #undef  GpiSetBackMix | 
|---|
| 8831 | #define GpiSetBackMix _GpiSetBackMix | 
|---|
| 8832 |  | 
|---|
| 8833 | inline BOOL _GpiSetCharAngle(HPS a, PGRADIENTL b) | 
|---|
| 8834 | { | 
|---|
| 8835 | BOOL yyrc; | 
|---|
| 8836 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8837 |  | 
|---|
| 8838 | yyrc = GpiSetCharAngle(a, b); | 
|---|
| 8839 | SetFS(sel); | 
|---|
| 8840 |  | 
|---|
| 8841 | return yyrc; | 
|---|
| 8842 | } | 
|---|
| 8843 |  | 
|---|
| 8844 | #undef  GpiSetCharAngle | 
|---|
| 8845 | #define GpiSetCharAngle _GpiSetCharAngle | 
|---|
| 8846 |  | 
|---|
| 8847 | inline BOOL _GpiSetCharBox(HPS a, PSIZEF b) | 
|---|
| 8848 | { | 
|---|
| 8849 | BOOL yyrc; | 
|---|
| 8850 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8851 |  | 
|---|
| 8852 | yyrc = GpiSetCharBox(a, b); | 
|---|
| 8853 | SetFS(sel); | 
|---|
| 8854 |  | 
|---|
| 8855 | return yyrc; | 
|---|
| 8856 | } | 
|---|
| 8857 |  | 
|---|
| 8858 | #undef  GpiSetCharBox | 
|---|
| 8859 | #define GpiSetCharBox _GpiSetCharBox | 
|---|
| 8860 |  | 
|---|
| 8861 | inline BOOL _GpiSetCharBreakExtra(HPS a, FIXED b) | 
|---|
| 8862 | { | 
|---|
| 8863 | BOOL yyrc; | 
|---|
| 8864 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8865 |  | 
|---|
| 8866 | yyrc = GpiSetCharBreakExtra(a, b); | 
|---|
| 8867 | SetFS(sel); | 
|---|
| 8868 |  | 
|---|
| 8869 | return yyrc; | 
|---|
| 8870 | } | 
|---|
| 8871 |  | 
|---|
| 8872 | #undef  GpiSetCharBreakExtra | 
|---|
| 8873 | #define GpiSetCharBreakExtra _GpiSetCharBreakExtra | 
|---|
| 8874 |  | 
|---|
| 8875 | inline BOOL _GpiSetCharDirection(HPS a, LONG b) | 
|---|
| 8876 | { | 
|---|
| 8877 | BOOL yyrc; | 
|---|
| 8878 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8879 |  | 
|---|
| 8880 | yyrc = GpiSetCharDirection(a, b); | 
|---|
| 8881 | SetFS(sel); | 
|---|
| 8882 |  | 
|---|
| 8883 | return yyrc; | 
|---|
| 8884 | } | 
|---|
| 8885 |  | 
|---|
| 8886 | #undef  GpiSetCharDirection | 
|---|
| 8887 | #define GpiSetCharDirection _GpiSetCharDirection | 
|---|
| 8888 |  | 
|---|
| 8889 | inline BOOL _GpiSetCharExtra(HPS a, FIXED b) | 
|---|
| 8890 | { | 
|---|
| 8891 | BOOL yyrc; | 
|---|
| 8892 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8893 |  | 
|---|
| 8894 | yyrc = GpiSetCharExtra(a, b); | 
|---|
| 8895 | SetFS(sel); | 
|---|
| 8896 |  | 
|---|
| 8897 | return yyrc; | 
|---|
| 8898 | } | 
|---|
| 8899 |  | 
|---|
| 8900 | #undef  GpiSetCharExtra | 
|---|
| 8901 | #define GpiSetCharExtra _GpiSetCharExtra | 
|---|
| 8902 |  | 
|---|
| 8903 | inline BOOL _GpiSetCharMode(HPS a, LONG b) | 
|---|
| 8904 | { | 
|---|
| 8905 | BOOL yyrc; | 
|---|
| 8906 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8907 |  | 
|---|
| 8908 | yyrc = GpiSetCharMode(a, b); | 
|---|
| 8909 | SetFS(sel); | 
|---|
| 8910 |  | 
|---|
| 8911 | return yyrc; | 
|---|
| 8912 | } | 
|---|
| 8913 |  | 
|---|
| 8914 | #undef  GpiSetCharMode | 
|---|
| 8915 | #define GpiSetCharMode _GpiSetCharMode | 
|---|
| 8916 |  | 
|---|
| 8917 | inline BOOL _GpiSetCharSet(HPS a, LONG b) | 
|---|
| 8918 | { | 
|---|
| 8919 | BOOL yyrc; | 
|---|
| 8920 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8921 |  | 
|---|
| 8922 | yyrc = GpiSetCharSet(a, b); | 
|---|
| 8923 | SetFS(sel); | 
|---|
| 8924 |  | 
|---|
| 8925 | return yyrc; | 
|---|
| 8926 | } | 
|---|
| 8927 |  | 
|---|
| 8928 | #undef  GpiSetCharSet | 
|---|
| 8929 | #define GpiSetCharSet _GpiSetCharSet | 
|---|
| 8930 |  | 
|---|
| 8931 | inline BOOL _GpiSetCharShear(HPS a, PPOINTL b) | 
|---|
| 8932 | { | 
|---|
| 8933 | BOOL yyrc; | 
|---|
| 8934 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8935 |  | 
|---|
| 8936 | yyrc = GpiSetCharShear(a, b); | 
|---|
| 8937 | SetFS(sel); | 
|---|
| 8938 |  | 
|---|
| 8939 | return yyrc; | 
|---|
| 8940 | } | 
|---|
| 8941 |  | 
|---|
| 8942 | #undef  GpiSetCharShear | 
|---|
| 8943 | #define GpiSetCharShear _GpiSetCharShear | 
|---|
| 8944 |  | 
|---|
| 8945 | inline BOOL _GpiSetClipPath(HPS a, LONG b, LONG c) | 
|---|
| 8946 | { | 
|---|
| 8947 | BOOL yyrc; | 
|---|
| 8948 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8949 |  | 
|---|
| 8950 | yyrc = GpiSetClipPath(a, b, c); | 
|---|
| 8951 | SetFS(sel); | 
|---|
| 8952 |  | 
|---|
| 8953 | return yyrc; | 
|---|
| 8954 | } | 
|---|
| 8955 |  | 
|---|
| 8956 | #undef  GpiSetClipPath | 
|---|
| 8957 | #define GpiSetClipPath _GpiSetClipPath | 
|---|
| 8958 |  | 
|---|
| 8959 | inline LONG _GpiSetClipRegion(HPS a, HRGN b, PHRGN c) | 
|---|
| 8960 | { | 
|---|
| 8961 | LONG yyrc; | 
|---|
| 8962 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8963 |  | 
|---|
| 8964 | yyrc = GpiSetClipRegion(a, b, c); | 
|---|
| 8965 | SetFS(sel); | 
|---|
| 8966 |  | 
|---|
| 8967 | return yyrc; | 
|---|
| 8968 | } | 
|---|
| 8969 |  | 
|---|
| 8970 | #undef  GpiSetClipRegion | 
|---|
| 8971 | #define GpiSetClipRegion _GpiSetClipRegion | 
|---|
| 8972 |  | 
|---|
| 8973 | inline BOOL _GpiSetColor(HPS a, LONG b) | 
|---|
| 8974 | { | 
|---|
| 8975 | BOOL yyrc; | 
|---|
| 8976 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8977 |  | 
|---|
| 8978 | yyrc = GpiSetColor(a, b); | 
|---|
| 8979 | SetFS(sel); | 
|---|
| 8980 |  | 
|---|
| 8981 | return yyrc; | 
|---|
| 8982 | } | 
|---|
| 8983 |  | 
|---|
| 8984 | #undef  GpiSetColor | 
|---|
| 8985 | #define GpiSetColor _GpiSetColor | 
|---|
| 8986 |  | 
|---|
| 8987 | inline BOOL _GpiSetCp(HPS a, ULONG b) | 
|---|
| 8988 | { | 
|---|
| 8989 | BOOL yyrc; | 
|---|
| 8990 | USHORT sel = RestoreOS2FS(); | 
|---|
| 8991 |  | 
|---|
| 8992 | yyrc = GpiSetCp(a, b); | 
|---|
| 8993 | SetFS(sel); | 
|---|
| 8994 |  | 
|---|
| 8995 | return yyrc; | 
|---|
| 8996 | } | 
|---|
| 8997 |  | 
|---|
| 8998 | #undef  GpiSetCp | 
|---|
| 8999 | #define GpiSetCp _GpiSetCp | 
|---|
| 9000 |  | 
|---|
| 9001 | inline BOOL _GpiSetCurrentPosition(HPS a, PPOINTL b) | 
|---|
| 9002 | { | 
|---|
| 9003 | BOOL yyrc; | 
|---|
| 9004 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9005 |  | 
|---|
| 9006 | yyrc = GpiSetCurrentPosition(a, b); | 
|---|
| 9007 | SetFS(sel); | 
|---|
| 9008 |  | 
|---|
| 9009 | return yyrc; | 
|---|
| 9010 | } | 
|---|
| 9011 |  | 
|---|
| 9012 | #undef  GpiSetCurrentPosition | 
|---|
| 9013 | #define GpiSetCurrentPosition _GpiSetCurrentPosition | 
|---|
| 9014 |  | 
|---|
| 9015 | inline BOOL _GpiSetDefArcParams(HPS a, PARCPARAMS b) | 
|---|
| 9016 | { | 
|---|
| 9017 | BOOL yyrc; | 
|---|
| 9018 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9019 |  | 
|---|
| 9020 | yyrc = GpiSetDefArcParams(a, b); | 
|---|
| 9021 | SetFS(sel); | 
|---|
| 9022 |  | 
|---|
| 9023 | return yyrc; | 
|---|
| 9024 | } | 
|---|
| 9025 |  | 
|---|
| 9026 | #undef  GpiSetDefArcParams | 
|---|
| 9027 | #define GpiSetDefArcParams _GpiSetDefArcParams | 
|---|
| 9028 |  | 
|---|
| 9029 | inline BOOL _GpiSetDefAttrs(HPS a, LONG b, ULONG c, PVOID d) | 
|---|
| 9030 | { | 
|---|
| 9031 | BOOL yyrc; | 
|---|
| 9032 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9033 |  | 
|---|
| 9034 | yyrc = GpiSetDefAttrs(a, b, c, d); | 
|---|
| 9035 | SetFS(sel); | 
|---|
| 9036 |  | 
|---|
| 9037 | return yyrc; | 
|---|
| 9038 | } | 
|---|
| 9039 |  | 
|---|
| 9040 | #undef  GpiSetDefAttrs | 
|---|
| 9041 | #define GpiSetDefAttrs _GpiSetDefAttrs | 
|---|
| 9042 |  | 
|---|
| 9043 | inline BOOL _GpiSetDefaultViewMatrix(HPS a, LONG b, PMATRIXLF c, LONG d) | 
|---|
| 9044 | { | 
|---|
| 9045 | BOOL yyrc; | 
|---|
| 9046 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9047 |  | 
|---|
| 9048 | yyrc = GpiSetDefaultViewMatrix(a, b, c, d); | 
|---|
| 9049 | SetFS(sel); | 
|---|
| 9050 |  | 
|---|
| 9051 | return yyrc; | 
|---|
| 9052 | } | 
|---|
| 9053 |  | 
|---|
| 9054 | #undef  GpiSetDefaultViewMatrix | 
|---|
| 9055 | #define GpiSetDefaultViewMatrix _GpiSetDefaultViewMatrix | 
|---|
| 9056 |  | 
|---|
| 9057 | inline BOOL _GpiSetDefTag(HPS a, LONG b) | 
|---|
| 9058 | { | 
|---|
| 9059 | BOOL yyrc; | 
|---|
| 9060 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9061 |  | 
|---|
| 9062 | yyrc = GpiSetDefTag(a, b); | 
|---|
| 9063 | SetFS(sel); | 
|---|
| 9064 |  | 
|---|
| 9065 | return yyrc; | 
|---|
| 9066 | } | 
|---|
| 9067 |  | 
|---|
| 9068 | #undef  GpiSetDefTag | 
|---|
| 9069 | #define GpiSetDefTag _GpiSetDefTag | 
|---|
| 9070 |  | 
|---|
| 9071 | inline BOOL _GpiSetDefViewingLimits(HPS a, PRECTL b) | 
|---|
| 9072 | { | 
|---|
| 9073 | BOOL yyrc; | 
|---|
| 9074 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9075 |  | 
|---|
| 9076 | yyrc = GpiSetDefViewingLimits(a, b); | 
|---|
| 9077 | SetFS(sel); | 
|---|
| 9078 |  | 
|---|
| 9079 | return yyrc; | 
|---|
| 9080 | } | 
|---|
| 9081 |  | 
|---|
| 9082 | #undef  GpiSetDefViewingLimits | 
|---|
| 9083 | #define GpiSetDefViewingLimits _GpiSetDefViewingLimits | 
|---|
| 9084 |  | 
|---|
| 9085 | inline BOOL _GpiSetEditMode(HPS a, LONG b) | 
|---|
| 9086 | { | 
|---|
| 9087 | BOOL yyrc; | 
|---|
| 9088 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9089 |  | 
|---|
| 9090 | yyrc = GpiSetEditMode(a, b); | 
|---|
| 9091 | SetFS(sel); | 
|---|
| 9092 |  | 
|---|
| 9093 | return yyrc; | 
|---|
| 9094 | } | 
|---|
| 9095 |  | 
|---|
| 9096 | #undef  GpiSetEditMode | 
|---|
| 9097 | #define GpiSetEditMode _GpiSetEditMode | 
|---|
| 9098 |  | 
|---|
| 9099 | inline BOOL _GpiSetElementPointer(HPS a, LONG b) | 
|---|
| 9100 | { | 
|---|
| 9101 | BOOL yyrc; | 
|---|
| 9102 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9103 |  | 
|---|
| 9104 | yyrc = GpiSetElementPointer(a, b); | 
|---|
| 9105 | SetFS(sel); | 
|---|
| 9106 |  | 
|---|
| 9107 | return yyrc; | 
|---|
| 9108 | } | 
|---|
| 9109 |  | 
|---|
| 9110 | #undef  GpiSetElementPointer | 
|---|
| 9111 | #define GpiSetElementPointer _GpiSetElementPointer | 
|---|
| 9112 |  | 
|---|
| 9113 | inline BOOL _GpiSetElementPointerAtLabel(HPS a, LONG b) | 
|---|
| 9114 | { | 
|---|
| 9115 | BOOL yyrc; | 
|---|
| 9116 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9117 |  | 
|---|
| 9118 | yyrc = GpiSetElementPointerAtLabel(a, b); | 
|---|
| 9119 | SetFS(sel); | 
|---|
| 9120 |  | 
|---|
| 9121 | return yyrc; | 
|---|
| 9122 | } | 
|---|
| 9123 |  | 
|---|
| 9124 | #undef  GpiSetElementPointerAtLabel | 
|---|
| 9125 | #define GpiSetElementPointerAtLabel _GpiSetElementPointerAtLabel | 
|---|
| 9126 |  | 
|---|
| 9127 | inline BOOL _GpiSetGraphicsField(HPS a, PRECTL b) | 
|---|
| 9128 | { | 
|---|
| 9129 | BOOL yyrc; | 
|---|
| 9130 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9131 |  | 
|---|
| 9132 | yyrc = GpiSetGraphicsField(a, b); | 
|---|
| 9133 | SetFS(sel); | 
|---|
| 9134 |  | 
|---|
| 9135 | return yyrc; | 
|---|
| 9136 | } | 
|---|
| 9137 |  | 
|---|
| 9138 | #undef  GpiSetGraphicsField | 
|---|
| 9139 | #define GpiSetGraphicsField _GpiSetGraphicsField | 
|---|
| 9140 |  | 
|---|
| 9141 | inline BOOL _GpiSetLineEnd(HPS a, LONG b) | 
|---|
| 9142 | { | 
|---|
| 9143 | BOOL yyrc; | 
|---|
| 9144 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9145 |  | 
|---|
| 9146 | yyrc = GpiSetLineEnd(a, b); | 
|---|
| 9147 | SetFS(sel); | 
|---|
| 9148 |  | 
|---|
| 9149 | return yyrc; | 
|---|
| 9150 | } | 
|---|
| 9151 |  | 
|---|
| 9152 | #undef  GpiSetLineEnd | 
|---|
| 9153 | #define GpiSetLineEnd _GpiSetLineEnd | 
|---|
| 9154 |  | 
|---|
| 9155 | inline BOOL _GpiSetLineJoin(HPS a, LONG b) | 
|---|
| 9156 | { | 
|---|
| 9157 | BOOL yyrc; | 
|---|
| 9158 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9159 |  | 
|---|
| 9160 | yyrc = GpiSetLineJoin(a, b); | 
|---|
| 9161 | SetFS(sel); | 
|---|
| 9162 |  | 
|---|
| 9163 | return yyrc; | 
|---|
| 9164 | } | 
|---|
| 9165 |  | 
|---|
| 9166 | #undef  GpiSetLineJoin | 
|---|
| 9167 | #define GpiSetLineJoin _GpiSetLineJoin | 
|---|
| 9168 |  | 
|---|
| 9169 | inline BOOL _GpiSetLineType(HPS a, LONG b) | 
|---|
| 9170 | { | 
|---|
| 9171 | BOOL yyrc; | 
|---|
| 9172 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9173 |  | 
|---|
| 9174 | yyrc = GpiSetLineType(a, b); | 
|---|
| 9175 | SetFS(sel); | 
|---|
| 9176 |  | 
|---|
| 9177 | return yyrc; | 
|---|
| 9178 | } | 
|---|
| 9179 |  | 
|---|
| 9180 | #undef  GpiSetLineType | 
|---|
| 9181 | #define GpiSetLineType _GpiSetLineType | 
|---|
| 9182 |  | 
|---|
| 9183 | inline BOOL _GpiSetLineWidth(HPS a, FIXED b) | 
|---|
| 9184 | { | 
|---|
| 9185 | BOOL yyrc; | 
|---|
| 9186 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9187 |  | 
|---|
| 9188 | yyrc = GpiSetLineWidth(a, b); | 
|---|
| 9189 | SetFS(sel); | 
|---|
| 9190 |  | 
|---|
| 9191 | return yyrc; | 
|---|
| 9192 | } | 
|---|
| 9193 |  | 
|---|
| 9194 | #undef  GpiSetLineWidth | 
|---|
| 9195 | #define GpiSetLineWidth _GpiSetLineWidth | 
|---|
| 9196 |  | 
|---|
| 9197 | inline BOOL _GpiSetLineWidthGeom(HPS a, LONG b) | 
|---|
| 9198 | { | 
|---|
| 9199 | BOOL yyrc; | 
|---|
| 9200 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9201 |  | 
|---|
| 9202 | yyrc = GpiSetLineWidthGeom(a, b); | 
|---|
| 9203 | SetFS(sel); | 
|---|
| 9204 |  | 
|---|
| 9205 | return yyrc; | 
|---|
| 9206 | } | 
|---|
| 9207 |  | 
|---|
| 9208 | #undef  GpiSetLineWidthGeom | 
|---|
| 9209 | #define GpiSetLineWidthGeom _GpiSetLineWidthGeom | 
|---|
| 9210 |  | 
|---|
| 9211 | inline BOOL _GpiSetMarker(HPS a, LONG b) | 
|---|
| 9212 | { | 
|---|
| 9213 | BOOL yyrc; | 
|---|
| 9214 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9215 |  | 
|---|
| 9216 | yyrc = GpiSetMarker(a, b); | 
|---|
| 9217 | SetFS(sel); | 
|---|
| 9218 |  | 
|---|
| 9219 | return yyrc; | 
|---|
| 9220 | } | 
|---|
| 9221 |  | 
|---|
| 9222 | #undef  GpiSetMarker | 
|---|
| 9223 | #define GpiSetMarker _GpiSetMarker | 
|---|
| 9224 |  | 
|---|
| 9225 | inline BOOL _GpiSetMarkerBox(HPS a, PSIZEF b) | 
|---|
| 9226 | { | 
|---|
| 9227 | BOOL yyrc; | 
|---|
| 9228 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9229 |  | 
|---|
| 9230 | yyrc = GpiSetMarkerBox(a, b); | 
|---|
| 9231 | SetFS(sel); | 
|---|
| 9232 |  | 
|---|
| 9233 | return yyrc; | 
|---|
| 9234 | } | 
|---|
| 9235 |  | 
|---|
| 9236 | #undef  GpiSetMarkerBox | 
|---|
| 9237 | #define GpiSetMarkerBox _GpiSetMarkerBox | 
|---|
| 9238 |  | 
|---|
| 9239 | inline BOOL _GpiSetMarkerSet(HPS a, LONG b) | 
|---|
| 9240 | { | 
|---|
| 9241 | BOOL yyrc; | 
|---|
| 9242 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9243 |  | 
|---|
| 9244 | yyrc = GpiSetMarkerSet(a, b); | 
|---|
| 9245 | SetFS(sel); | 
|---|
| 9246 |  | 
|---|
| 9247 | return yyrc; | 
|---|
| 9248 | } | 
|---|
| 9249 |  | 
|---|
| 9250 | #undef  GpiSetMarkerSet | 
|---|
| 9251 | #define GpiSetMarkerSet _GpiSetMarkerSet | 
|---|
| 9252 |  | 
|---|
| 9253 | inline BOOL _GpiSetMetaFileBits(HMF a, LONG b, LONG c, PBYTE d) | 
|---|
| 9254 | { | 
|---|
| 9255 | BOOL yyrc; | 
|---|
| 9256 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9257 |  | 
|---|
| 9258 | yyrc = GpiSetMetaFileBits(a, b, c, d); | 
|---|
| 9259 | SetFS(sel); | 
|---|
| 9260 |  | 
|---|
| 9261 | return yyrc; | 
|---|
| 9262 | } | 
|---|
| 9263 |  | 
|---|
| 9264 | #undef  GpiSetMetaFileBits | 
|---|
| 9265 | #define GpiSetMetaFileBits _GpiSetMetaFileBits | 
|---|
| 9266 |  | 
|---|
| 9267 | inline BOOL _GpiSetMix(HPS a, LONG b) | 
|---|
| 9268 | { | 
|---|
| 9269 | BOOL yyrc; | 
|---|
| 9270 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9271 |  | 
|---|
| 9272 | yyrc = GpiSetMix(a, b); | 
|---|
| 9273 | SetFS(sel); | 
|---|
| 9274 |  | 
|---|
| 9275 | return yyrc; | 
|---|
| 9276 | } | 
|---|
| 9277 |  | 
|---|
| 9278 | #undef  GpiSetMix | 
|---|
| 9279 | #define GpiSetMix _GpiSetMix | 
|---|
| 9280 |  | 
|---|
| 9281 | inline BOOL _GpiSetModelTransformMatrix(HPS a, LONG b, PMATRIXLF c, LONG d) | 
|---|
| 9282 | { | 
|---|
| 9283 | BOOL yyrc; | 
|---|
| 9284 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9285 |  | 
|---|
| 9286 | yyrc = GpiSetModelTransformMatrix(a, b, c, d); | 
|---|
| 9287 | SetFS(sel); | 
|---|
| 9288 |  | 
|---|
| 9289 | return yyrc; | 
|---|
| 9290 | } | 
|---|
| 9291 |  | 
|---|
| 9292 | #undef  GpiSetModelTransformMatrix | 
|---|
| 9293 | #define GpiSetModelTransformMatrix _GpiSetModelTransformMatrix | 
|---|
| 9294 |  | 
|---|
| 9295 | inline BOOL _GpiSetPageViewport(HPS a, PRECTL b) | 
|---|
| 9296 | { | 
|---|
| 9297 | BOOL yyrc; | 
|---|
| 9298 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9299 |  | 
|---|
| 9300 | yyrc = GpiSetPageViewport(a, b); | 
|---|
| 9301 | SetFS(sel); | 
|---|
| 9302 |  | 
|---|
| 9303 | return yyrc; | 
|---|
| 9304 | } | 
|---|
| 9305 |  | 
|---|
| 9306 | #undef  GpiSetPageViewport | 
|---|
| 9307 | #define GpiSetPageViewport _GpiSetPageViewport | 
|---|
| 9308 |  | 
|---|
| 9309 | inline BOOL _GpiSetPaletteEntries(HPAL a, ULONG b, ULONG c, ULONG d, ULONG *e) | 
|---|
| 9310 | { | 
|---|
| 9311 | BOOL yyrc; | 
|---|
| 9312 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9313 |  | 
|---|
| 9314 | yyrc = GpiSetPaletteEntries(a, b, c, d, e); | 
|---|
| 9315 | SetFS(sel); | 
|---|
| 9316 |  | 
|---|
| 9317 | return yyrc; | 
|---|
| 9318 | } | 
|---|
| 9319 |  | 
|---|
| 9320 | #undef  GpiSetPaletteEntries | 
|---|
| 9321 | #define GpiSetPaletteEntries _GpiSetPaletteEntries | 
|---|
| 9322 |  | 
|---|
| 9323 | inline BOOL _GpiSetPattern(HPS a, LONG b) | 
|---|
| 9324 | { | 
|---|
| 9325 | BOOL yyrc; | 
|---|
| 9326 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9327 |  | 
|---|
| 9328 | yyrc = GpiSetPattern(a, b); | 
|---|
| 9329 | SetFS(sel); | 
|---|
| 9330 |  | 
|---|
| 9331 | return yyrc; | 
|---|
| 9332 | } | 
|---|
| 9333 |  | 
|---|
| 9334 | #undef  GpiSetPattern | 
|---|
| 9335 | #define GpiSetPattern _GpiSetPattern | 
|---|
| 9336 |  | 
|---|
| 9337 | inline BOOL _GpiSetPatternRefPoint(HPS a, PPOINTL b) | 
|---|
| 9338 | { | 
|---|
| 9339 | BOOL yyrc; | 
|---|
| 9340 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9341 |  | 
|---|
| 9342 | yyrc = GpiSetPatternRefPoint(a, b); | 
|---|
| 9343 | SetFS(sel); | 
|---|
| 9344 |  | 
|---|
| 9345 | return yyrc; | 
|---|
| 9346 | } | 
|---|
| 9347 |  | 
|---|
| 9348 | #undef  GpiSetPatternRefPoint | 
|---|
| 9349 | #define GpiSetPatternRefPoint _GpiSetPatternRefPoint | 
|---|
| 9350 |  | 
|---|
| 9351 | inline BOOL _GpiSetPatternSet(HPS a, LONG b) | 
|---|
| 9352 | { | 
|---|
| 9353 | BOOL yyrc; | 
|---|
| 9354 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9355 |  | 
|---|
| 9356 | yyrc = GpiSetPatternSet(a, b); | 
|---|
| 9357 | SetFS(sel); | 
|---|
| 9358 |  | 
|---|
| 9359 | return yyrc; | 
|---|
| 9360 | } | 
|---|
| 9361 |  | 
|---|
| 9362 | #undef  GpiSetPatternSet | 
|---|
| 9363 | #define GpiSetPatternSet _GpiSetPatternSet | 
|---|
| 9364 |  | 
|---|
| 9365 | inline BOOL _GpiSetRegion(HPS a, HRGN b, LONG c, PRECTL d) | 
|---|
| 9366 | { | 
|---|
| 9367 | BOOL yyrc; | 
|---|
| 9368 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9369 |  | 
|---|
| 9370 | yyrc = GpiSetRegion(a, b, c, d); | 
|---|
| 9371 | SetFS(sel); | 
|---|
| 9372 |  | 
|---|
| 9373 | return yyrc; | 
|---|
| 9374 | } | 
|---|
| 9375 |  | 
|---|
| 9376 | #undef  GpiSetRegion | 
|---|
| 9377 | #define GpiSetRegion _GpiSetRegion | 
|---|
| 9378 |  | 
|---|
| 9379 | inline BOOL _GpiSetSegmentTransformMatrix(HPS a, LONG b, LONG c, MATRIXLF *d, LONG e) | 
|---|
| 9380 | { | 
|---|
| 9381 | BOOL yyrc; | 
|---|
| 9382 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9383 |  | 
|---|
| 9384 | yyrc = GpiSetSegmentTransformMatrix(a, b, c, d, e); | 
|---|
| 9385 | SetFS(sel); | 
|---|
| 9386 |  | 
|---|
| 9387 | return yyrc; | 
|---|
| 9388 | } | 
|---|
| 9389 |  | 
|---|
| 9390 | #undef  GpiSetSegmentTransformMatrix | 
|---|
| 9391 | #define GpiSetSegmentTransformMatrix _GpiSetSegmentTransformMatrix | 
|---|
| 9392 |  | 
|---|
| 9393 | inline BOOL _GpiSetTextAlignment(HPS a, LONG b, LONG c) | 
|---|
| 9394 | { | 
|---|
| 9395 | BOOL yyrc; | 
|---|
| 9396 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9397 |  | 
|---|
| 9398 | yyrc = GpiSetTextAlignment(a, b, c); | 
|---|
| 9399 | SetFS(sel); | 
|---|
| 9400 |  | 
|---|
| 9401 | return yyrc; | 
|---|
| 9402 | } | 
|---|
| 9403 |  | 
|---|
| 9404 | #undef  GpiSetTextAlignment | 
|---|
| 9405 | #define GpiSetTextAlignment _GpiSetTextAlignment | 
|---|
| 9406 |  | 
|---|
| 9407 | inline BOOL _GpiSetViewingLimits(HPS a, PRECTL b) | 
|---|
| 9408 | { | 
|---|
| 9409 | BOOL yyrc; | 
|---|
| 9410 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9411 |  | 
|---|
| 9412 | yyrc = GpiSetViewingLimits(a, b); | 
|---|
| 9413 | SetFS(sel); | 
|---|
| 9414 |  | 
|---|
| 9415 | return yyrc; | 
|---|
| 9416 | } | 
|---|
| 9417 |  | 
|---|
| 9418 | #undef  GpiSetViewingLimits | 
|---|
| 9419 | #define GpiSetViewingLimits _GpiSetViewingLimits | 
|---|
| 9420 |  | 
|---|
| 9421 | inline BOOL _GpiSetViewingTransformMatrix(HPS a, LONG b, MATRIXLF *c, LONG d) | 
|---|
| 9422 | { | 
|---|
| 9423 | BOOL yyrc; | 
|---|
| 9424 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9425 |  | 
|---|
| 9426 | yyrc = GpiSetViewingTransformMatrix(a, b, c, d); | 
|---|
| 9427 | SetFS(sel); | 
|---|
| 9428 |  | 
|---|
| 9429 | return yyrc; | 
|---|
| 9430 | } | 
|---|
| 9431 |  | 
|---|
| 9432 | #undef  GpiSetViewingTransformMatrix | 
|---|
| 9433 | #define GpiSetViewingTransformMatrix _GpiSetViewingTransformMatrix | 
|---|
| 9434 |  | 
|---|
| 9435 | inline LONG _GpiStrokePath(HPS a, LONG b, ULONG c) | 
|---|
| 9436 | { | 
|---|
| 9437 | LONG yyrc; | 
|---|
| 9438 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9439 |  | 
|---|
| 9440 | yyrc = GpiStrokePath(a, b, c); | 
|---|
| 9441 | SetFS(sel); | 
|---|
| 9442 |  | 
|---|
| 9443 | return yyrc; | 
|---|
| 9444 | } | 
|---|
| 9445 |  | 
|---|
| 9446 | #undef  GpiStrokePath | 
|---|
| 9447 | #define GpiStrokePath _GpiStrokePath | 
|---|
| 9448 |  | 
|---|
| 9449 | inline BOOL _GpiTranslate(HPS a, PMATRIXLF b, LONG c, PPOINTL d) | 
|---|
| 9450 | { | 
|---|
| 9451 | BOOL yyrc; | 
|---|
| 9452 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9453 |  | 
|---|
| 9454 | yyrc = GpiTranslate(a, b, c, d); | 
|---|
| 9455 | SetFS(sel); | 
|---|
| 9456 |  | 
|---|
| 9457 | return yyrc; | 
|---|
| 9458 | } | 
|---|
| 9459 |  | 
|---|
| 9460 | #undef  GpiTranslate | 
|---|
| 9461 | #define GpiTranslate _GpiTranslate | 
|---|
| 9462 |  | 
|---|
| 9463 | inline BOOL _GpiUnloadFonts(HAB a, PCSZ b) | 
|---|
| 9464 | { | 
|---|
| 9465 | BOOL yyrc; | 
|---|
| 9466 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9467 |  | 
|---|
| 9468 | yyrc = GpiUnloadFonts(a, b); | 
|---|
| 9469 | SetFS(sel); | 
|---|
| 9470 |  | 
|---|
| 9471 | return yyrc; | 
|---|
| 9472 | } | 
|---|
| 9473 |  | 
|---|
| 9474 | #undef  GpiUnloadFonts | 
|---|
| 9475 | #define GpiUnloadFonts _GpiUnloadFonts | 
|---|
| 9476 |  | 
|---|
| 9477 | inline BOOL _GpiUnloadPublicFonts(HAB a, PCSZ b) | 
|---|
| 9478 | { | 
|---|
| 9479 | BOOL yyrc; | 
|---|
| 9480 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9481 |  | 
|---|
| 9482 | yyrc = GpiUnloadPublicFonts(a, b); | 
|---|
| 9483 | SetFS(sel); | 
|---|
| 9484 |  | 
|---|
| 9485 | return yyrc; | 
|---|
| 9486 | } | 
|---|
| 9487 |  | 
|---|
| 9488 | #undef  GpiUnloadPublicFonts | 
|---|
| 9489 | #define GpiUnloadPublicFonts _GpiUnloadPublicFonts | 
|---|
| 9490 |  | 
|---|
| 9491 | #ifdef INCL_GPIBITMAPS | 
|---|
| 9492 | inline LONG _GpiBitBlt(HPS a, HPS b, LONG c, PPOINTL d, LONG e, ULONG f) | 
|---|
| 9493 | { | 
|---|
| 9494 | LONG yyrc; | 
|---|
| 9495 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9496 |  | 
|---|
| 9497 | yyrc = GpiBitBlt(a, b, c, d, e, f); | 
|---|
| 9498 | SetFS(sel); | 
|---|
| 9499 |  | 
|---|
| 9500 | return yyrc; | 
|---|
| 9501 | } | 
|---|
| 9502 |  | 
|---|
| 9503 | #undef  GpiBitBlt | 
|---|
| 9504 | #define GpiBitBlt _GpiBitBlt | 
|---|
| 9505 |  | 
|---|
| 9506 | inline BOOL _GpiDeleteBitmap(HBITMAP a) | 
|---|
| 9507 | { | 
|---|
| 9508 | BOOL yyrc; | 
|---|
| 9509 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9510 |  | 
|---|
| 9511 | yyrc = GpiDeleteBitmap(a); | 
|---|
| 9512 | SetFS(sel); | 
|---|
| 9513 |  | 
|---|
| 9514 | return yyrc; | 
|---|
| 9515 | } | 
|---|
| 9516 |  | 
|---|
| 9517 | #undef  GpiDeleteBitmap | 
|---|
| 9518 | #define GpiDeleteBitmap _GpiDeleteBitmap | 
|---|
| 9519 |  | 
|---|
| 9520 | inline HBITMAP _GpiLoadBitmap(HPS a, HMODULE b, ULONG c, LONG d, LONG e) | 
|---|
| 9521 | { | 
|---|
| 9522 | HBITMAP yyrc; | 
|---|
| 9523 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9524 |  | 
|---|
| 9525 | yyrc = GpiLoadBitmap(a, b, c, d, e); | 
|---|
| 9526 | SetFS(sel); | 
|---|
| 9527 |  | 
|---|
| 9528 | return yyrc; | 
|---|
| 9529 | } | 
|---|
| 9530 |  | 
|---|
| 9531 | #undef  GpiLoadBitmap | 
|---|
| 9532 | #define GpiLoadBitmap _GpiLoadBitmap | 
|---|
| 9533 |  | 
|---|
| 9534 | inline HBITMAP _GpiSetBitmap(HPS a, HBITMAP b) | 
|---|
| 9535 | { | 
|---|
| 9536 | HBITMAP yyrc; | 
|---|
| 9537 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9538 |  | 
|---|
| 9539 | yyrc = GpiSetBitmap(a, b); | 
|---|
| 9540 | SetFS(sel); | 
|---|
| 9541 |  | 
|---|
| 9542 | return yyrc; | 
|---|
| 9543 | } | 
|---|
| 9544 |  | 
|---|
| 9545 | #undef  GpiSetBitmap | 
|---|
| 9546 | #define GpiSetBitmap _GpiSetBitmap | 
|---|
| 9547 |  | 
|---|
| 9548 | inline LONG _GpiWCBitBlt(HPS a, HBITMAP b, LONG c, PPOINTL d, LONG e, ULONG f) | 
|---|
| 9549 | { | 
|---|
| 9550 | LONG yyrc; | 
|---|
| 9551 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9552 |  | 
|---|
| 9553 | yyrc = GpiWCBitBlt(a, b, c, d, e, f); | 
|---|
| 9554 | SetFS(sel); | 
|---|
| 9555 |  | 
|---|
| 9556 | return yyrc; | 
|---|
| 9557 | } | 
|---|
| 9558 |  | 
|---|
| 9559 | #undef  GpiWCBitBlt | 
|---|
| 9560 | #define GpiWCBitBlt _GpiWCBitBlt | 
|---|
| 9561 |  | 
|---|
| 9562 | inline HBITMAP _GpiCreateBitmap(HPS a, BITMAPINFOHEADER2 *b, ULONG c, PBYTE d, BITMAPINFO2 *e) | 
|---|
| 9563 | { | 
|---|
| 9564 | HBITMAP yyrc; | 
|---|
| 9565 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9566 |  | 
|---|
| 9567 | yyrc = GpiCreateBitmap(a, b, c, d, e); | 
|---|
| 9568 | SetFS(sel); | 
|---|
| 9569 |  | 
|---|
| 9570 | return yyrc; | 
|---|
| 9571 | } | 
|---|
| 9572 |  | 
|---|
| 9573 | #undef  GpiCreateBitmap | 
|---|
| 9574 | #define GpiCreateBitmap _GpiCreateBitmap | 
|---|
| 9575 |  | 
|---|
| 9576 | inline LONG _GpiDrawBits(HPS a, PVOID b, BITMAPINFO2 *c, LONG d, PPOINTL e, LONG f, ULONG g) | 
|---|
| 9577 | { | 
|---|
| 9578 | LONG yyrc; | 
|---|
| 9579 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9580 |  | 
|---|
| 9581 | yyrc = GpiDrawBits(a, b, c, d, e, f, g); | 
|---|
| 9582 | SetFS(sel); | 
|---|
| 9583 |  | 
|---|
| 9584 | return yyrc; | 
|---|
| 9585 | } | 
|---|
| 9586 |  | 
|---|
| 9587 | #undef  GpiDrawBits | 
|---|
| 9588 | #define GpiDrawBits _GpiDrawBits | 
|---|
| 9589 |  | 
|---|
| 9590 | inline LONG _GpiFloodFill(HPS a, LONG b, LONG c) | 
|---|
| 9591 | { | 
|---|
| 9592 | LONG yyrc; | 
|---|
| 9593 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9594 |  | 
|---|
| 9595 | yyrc = GpiFloodFill(a, b, c); | 
|---|
| 9596 | SetFS(sel); | 
|---|
| 9597 |  | 
|---|
| 9598 | return yyrc; | 
|---|
| 9599 | } | 
|---|
| 9600 |  | 
|---|
| 9601 | #undef  GpiFloodFill | 
|---|
| 9602 | #define GpiFloodFill _GpiFloodFill | 
|---|
| 9603 |  | 
|---|
| 9604 | inline LONG _GpiQueryBitmapBits(HPS a, LONG b, LONG c, PBYTE d, PBITMAPINFO2 e) | 
|---|
| 9605 | { | 
|---|
| 9606 | LONG yyrc; | 
|---|
| 9607 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9608 |  | 
|---|
| 9609 | yyrc = GpiQueryBitmapBits(a, b, c, d, e); | 
|---|
| 9610 | SetFS(sel); | 
|---|
| 9611 |  | 
|---|
| 9612 | return yyrc; | 
|---|
| 9613 | } | 
|---|
| 9614 |  | 
|---|
| 9615 | #undef  GpiQueryBitmapBits | 
|---|
| 9616 | #define GpiQueryBitmapBits _GpiQueryBitmapBits | 
|---|
| 9617 |  | 
|---|
| 9618 | inline BOOL _GpiQueryBitmapDimension(HBITMAP a, PSIZEL b) | 
|---|
| 9619 | { | 
|---|
| 9620 | BOOL yyrc; | 
|---|
| 9621 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9622 |  | 
|---|
| 9623 | yyrc = GpiQueryBitmapDimension(a, b); | 
|---|
| 9624 | SetFS(sel); | 
|---|
| 9625 |  | 
|---|
| 9626 | return yyrc; | 
|---|
| 9627 | } | 
|---|
| 9628 |  | 
|---|
| 9629 | #undef  GpiQueryBitmapDimension | 
|---|
| 9630 | #define GpiQueryBitmapDimension _GpiQueryBitmapDimension | 
|---|
| 9631 |  | 
|---|
| 9632 | inline HBITMAP _GpiQueryBitmapHandle(HPS a, LONG b) | 
|---|
| 9633 | { | 
|---|
| 9634 | HBITMAP yyrc; | 
|---|
| 9635 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9636 |  | 
|---|
| 9637 | yyrc = GpiQueryBitmapHandle(a, b); | 
|---|
| 9638 | SetFS(sel); | 
|---|
| 9639 |  | 
|---|
| 9640 | return yyrc; | 
|---|
| 9641 | } | 
|---|
| 9642 |  | 
|---|
| 9643 | #undef  GpiQueryBitmapHandle | 
|---|
| 9644 | #define GpiQueryBitmapHandle _GpiQueryBitmapHandle | 
|---|
| 9645 |  | 
|---|
| 9646 | inline BOOL _GpiQueryBitmapInfoHeader(HBITMAP a, PBITMAPINFOHEADER2 b) | 
|---|
| 9647 | { | 
|---|
| 9648 | BOOL yyrc; | 
|---|
| 9649 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9650 |  | 
|---|
| 9651 | yyrc = GpiQueryBitmapInfoHeader(a, b); | 
|---|
| 9652 | SetFS(sel); | 
|---|
| 9653 |  | 
|---|
| 9654 | return yyrc; | 
|---|
| 9655 | } | 
|---|
| 9656 |  | 
|---|
| 9657 | #undef  GpiQueryBitmapInfoHeader | 
|---|
| 9658 | #define GpiQueryBitmapInfoHeader _GpiQueryBitmapInfoHeader | 
|---|
| 9659 |  | 
|---|
| 9660 | inline BOOL _GpiQueryBitmapParameters(HBITMAP a, PBITMAPINFOHEADER b) | 
|---|
| 9661 | { | 
|---|
| 9662 | BOOL yyrc; | 
|---|
| 9663 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9664 |  | 
|---|
| 9665 | yyrc = GpiQueryBitmapParameters(a, b); | 
|---|
| 9666 | SetFS(sel); | 
|---|
| 9667 |  | 
|---|
| 9668 | return yyrc; | 
|---|
| 9669 | } | 
|---|
| 9670 |  | 
|---|
| 9671 | #undef  GpiQueryBitmapParameters | 
|---|
| 9672 | #define GpiQueryBitmapParameters _GpiQueryBitmapParameters | 
|---|
| 9673 |  | 
|---|
| 9674 | inline BOOL _GpiQueryDeviceBitmapFormats(HPS a, LONG b, PLONG c) | 
|---|
| 9675 | { | 
|---|
| 9676 | BOOL yyrc; | 
|---|
| 9677 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9678 |  | 
|---|
| 9679 | yyrc = GpiQueryDeviceBitmapFormats(a, b, c); | 
|---|
| 9680 | SetFS(sel); | 
|---|
| 9681 |  | 
|---|
| 9682 | return yyrc; | 
|---|
| 9683 | } | 
|---|
| 9684 |  | 
|---|
| 9685 | #undef  GpiQueryDeviceBitmapFormats | 
|---|
| 9686 | #define GpiQueryDeviceBitmapFormats _GpiQueryDeviceBitmapFormats | 
|---|
| 9687 |  | 
|---|
| 9688 | inline LONG _GpiSetBitmapBits(HPS a, LONG b, LONG c, PBYTE d, BITMAPINFO2 *e) | 
|---|
| 9689 | { | 
|---|
| 9690 | LONG yyrc; | 
|---|
| 9691 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9692 |  | 
|---|
| 9693 | yyrc = GpiSetBitmapBits(a, b, c, d, e); | 
|---|
| 9694 | SetFS(sel); | 
|---|
| 9695 |  | 
|---|
| 9696 | return yyrc; | 
|---|
| 9697 | } | 
|---|
| 9698 |  | 
|---|
| 9699 | #undef  GpiSetBitmapBits | 
|---|
| 9700 | #define GpiSetBitmapBits _GpiSetBitmapBits | 
|---|
| 9701 |  | 
|---|
| 9702 | inline LONG _GpiQueryPel(HPS a, PPOINTL b) | 
|---|
| 9703 | { | 
|---|
| 9704 | LONG yyrc; | 
|---|
| 9705 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9706 |  | 
|---|
| 9707 | yyrc = GpiQueryPel(a, b); | 
|---|
| 9708 | SetFS(sel); | 
|---|
| 9709 |  | 
|---|
| 9710 | return yyrc; | 
|---|
| 9711 | } | 
|---|
| 9712 |  | 
|---|
| 9713 | #undef  GpiQueryPel | 
|---|
| 9714 | #define GpiQueryPel _GpiQueryPel | 
|---|
| 9715 |  | 
|---|
| 9716 | inline BOOL _GpiSetBitmapDimension(HBITMAP a, SIZEL *b) | 
|---|
| 9717 | { | 
|---|
| 9718 | BOOL yyrc; | 
|---|
| 9719 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9720 |  | 
|---|
| 9721 | yyrc = GpiSetBitmapDimension(a, b); | 
|---|
| 9722 | SetFS(sel); | 
|---|
| 9723 |  | 
|---|
| 9724 | return yyrc; | 
|---|
| 9725 | } | 
|---|
| 9726 |  | 
|---|
| 9727 | #undef  GpiSetBitmapDimension | 
|---|
| 9728 | #define GpiSetBitmapDimension _GpiSetBitmapDimension | 
|---|
| 9729 |  | 
|---|
| 9730 | inline BOOL _GpiSetBitmapId(HPS a, HBITMAP b, LONG c) | 
|---|
| 9731 | { | 
|---|
| 9732 | BOOL yyrc; | 
|---|
| 9733 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9734 |  | 
|---|
| 9735 | yyrc = GpiSetBitmapId(a, b, c); | 
|---|
| 9736 | SetFS(sel); | 
|---|
| 9737 |  | 
|---|
| 9738 | return yyrc; | 
|---|
| 9739 | } | 
|---|
| 9740 |  | 
|---|
| 9741 | #undef  GpiSetBitmapId | 
|---|
| 9742 | #define GpiSetBitmapId _GpiSetBitmapId | 
|---|
| 9743 |  | 
|---|
| 9744 | inline LONG _GpiSetPel(HPS a, PPOINTL b) | 
|---|
| 9745 | { | 
|---|
| 9746 | LONG yyrc; | 
|---|
| 9747 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9748 |  | 
|---|
| 9749 | yyrc = GpiSetPel(a, b); | 
|---|
| 9750 | SetFS(sel); | 
|---|
| 9751 |  | 
|---|
| 9752 | return yyrc; | 
|---|
| 9753 | } | 
|---|
| 9754 |  | 
|---|
| 9755 | #undef  GpiSetPel | 
|---|
| 9756 | #define GpiSetPel _GpiSetPel | 
|---|
| 9757 |  | 
|---|
| 9758 | #endif | 
|---|
| 9759 | #ifdef INCL_GPICONTROL | 
|---|
| 9760 | inline BOOL _GpiAssociate(HPS a, HDC b) | 
|---|
| 9761 | { | 
|---|
| 9762 | BOOL yyrc; | 
|---|
| 9763 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9764 |  | 
|---|
| 9765 | yyrc = GpiAssociate(a, b); | 
|---|
| 9766 | SetFS(sel); | 
|---|
| 9767 |  | 
|---|
| 9768 | return yyrc; | 
|---|
| 9769 | } | 
|---|
| 9770 |  | 
|---|
| 9771 | #undef  GpiAssociate | 
|---|
| 9772 | #define GpiAssociate _GpiAssociate | 
|---|
| 9773 |  | 
|---|
| 9774 | inline HPS _GpiCreatePS(HAB a, HDC b, PSIZEL c, ULONG d) | 
|---|
| 9775 | { | 
|---|
| 9776 | HPS yyrc; | 
|---|
| 9777 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9778 |  | 
|---|
| 9779 | yyrc = GpiCreatePS(a, b, c, d); | 
|---|
| 9780 | SetFS(sel); | 
|---|
| 9781 |  | 
|---|
| 9782 | return yyrc; | 
|---|
| 9783 | } | 
|---|
| 9784 |  | 
|---|
| 9785 | #undef  GpiCreatePS | 
|---|
| 9786 | #define GpiCreatePS _GpiCreatePS | 
|---|
| 9787 |  | 
|---|
| 9788 | inline BOOL _GpiDestroyPS(HPS a) | 
|---|
| 9789 | { | 
|---|
| 9790 | BOOL yyrc; | 
|---|
| 9791 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9792 |  | 
|---|
| 9793 | yyrc = GpiDestroyPS(a); | 
|---|
| 9794 | SetFS(sel); | 
|---|
| 9795 |  | 
|---|
| 9796 | return yyrc; | 
|---|
| 9797 | } | 
|---|
| 9798 |  | 
|---|
| 9799 | #undef  GpiDestroyPS | 
|---|
| 9800 | #define GpiDestroyPS _GpiDestroyPS | 
|---|
| 9801 |  | 
|---|
| 9802 | inline BOOL _GpiErase(HPS a) | 
|---|
| 9803 | { | 
|---|
| 9804 | BOOL yyrc; | 
|---|
| 9805 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9806 |  | 
|---|
| 9807 | yyrc = GpiErase(a); | 
|---|
| 9808 | SetFS(sel); | 
|---|
| 9809 |  | 
|---|
| 9810 | return yyrc; | 
|---|
| 9811 | } | 
|---|
| 9812 |  | 
|---|
| 9813 | #undef  GpiErase | 
|---|
| 9814 | #define GpiErase _GpiErase | 
|---|
| 9815 |  | 
|---|
| 9816 | inline HDC _GpiQueryDevice(HPS a) | 
|---|
| 9817 | { | 
|---|
| 9818 | HDC yyrc; | 
|---|
| 9819 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9820 |  | 
|---|
| 9821 | yyrc = GpiQueryDevice(a); | 
|---|
| 9822 | SetFS(sel); | 
|---|
| 9823 |  | 
|---|
| 9824 | return yyrc; | 
|---|
| 9825 | } | 
|---|
| 9826 |  | 
|---|
| 9827 | #undef  GpiQueryDevice | 
|---|
| 9828 | #define GpiQueryDevice _GpiQueryDevice | 
|---|
| 9829 |  | 
|---|
| 9830 | inline BOOL _GpiRestorePS(HPS a, LONG b) | 
|---|
| 9831 | { | 
|---|
| 9832 | BOOL yyrc; | 
|---|
| 9833 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9834 |  | 
|---|
| 9835 | yyrc = GpiRestorePS(a, b); | 
|---|
| 9836 | SetFS(sel); | 
|---|
| 9837 |  | 
|---|
| 9838 | return yyrc; | 
|---|
| 9839 | } | 
|---|
| 9840 |  | 
|---|
| 9841 | #undef  GpiRestorePS | 
|---|
| 9842 | #define GpiRestorePS _GpiRestorePS | 
|---|
| 9843 |  | 
|---|
| 9844 | inline LONG _GpiSavePS(HPS a) | 
|---|
| 9845 | { | 
|---|
| 9846 | LONG yyrc; | 
|---|
| 9847 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9848 |  | 
|---|
| 9849 | yyrc = GpiSavePS(a); | 
|---|
| 9850 | SetFS(sel); | 
|---|
| 9851 |  | 
|---|
| 9852 | return yyrc; | 
|---|
| 9853 | } | 
|---|
| 9854 |  | 
|---|
| 9855 | #undef  GpiSavePS | 
|---|
| 9856 | #define GpiSavePS _GpiSavePS | 
|---|
| 9857 |  | 
|---|
| 9858 | inline LONG _GpiErrorSegmentData(HPS a, PLONG b, PLONG c) | 
|---|
| 9859 | { | 
|---|
| 9860 | LONG yyrc; | 
|---|
| 9861 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9862 |  | 
|---|
| 9863 | yyrc = GpiErrorSegmentData(a, b, c); | 
|---|
| 9864 | SetFS(sel); | 
|---|
| 9865 |  | 
|---|
| 9866 | return yyrc; | 
|---|
| 9867 | } | 
|---|
| 9868 |  | 
|---|
| 9869 | #undef  GpiErrorSegmentData | 
|---|
| 9870 | #define GpiErrorSegmentData _GpiErrorSegmentData | 
|---|
| 9871 |  | 
|---|
| 9872 | inline LONG _GpiQueryDrawControl(HPS a, LONG b) | 
|---|
| 9873 | { | 
|---|
| 9874 | LONG yyrc; | 
|---|
| 9875 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9876 |  | 
|---|
| 9877 | yyrc = GpiQueryDrawControl(a, b); | 
|---|
| 9878 | SetFS(sel); | 
|---|
| 9879 |  | 
|---|
| 9880 | return yyrc; | 
|---|
| 9881 | } | 
|---|
| 9882 |  | 
|---|
| 9883 | #undef  GpiQueryDrawControl | 
|---|
| 9884 | #define GpiQueryDrawControl _GpiQueryDrawControl | 
|---|
| 9885 |  | 
|---|
| 9886 | inline LONG _GpiQueryDrawingMode(HPS a) | 
|---|
| 9887 | { | 
|---|
| 9888 | LONG yyrc; | 
|---|
| 9889 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9890 |  | 
|---|
| 9891 | yyrc = GpiQueryDrawingMode(a); | 
|---|
| 9892 | SetFS(sel); | 
|---|
| 9893 |  | 
|---|
| 9894 | return yyrc; | 
|---|
| 9895 | } | 
|---|
| 9896 |  | 
|---|
| 9897 | #undef  GpiQueryDrawingMode | 
|---|
| 9898 | #define GpiQueryDrawingMode _GpiQueryDrawingMode | 
|---|
| 9899 |  | 
|---|
| 9900 | inline ULONG _GpiQueryPS(HPS a, PSIZEL b) | 
|---|
| 9901 | { | 
|---|
| 9902 | ULONG yyrc; | 
|---|
| 9903 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9904 |  | 
|---|
| 9905 | yyrc = GpiQueryPS(a, b); | 
|---|
| 9906 | SetFS(sel); | 
|---|
| 9907 |  | 
|---|
| 9908 | return yyrc; | 
|---|
| 9909 | } | 
|---|
| 9910 |  | 
|---|
| 9911 | #undef  GpiQueryPS | 
|---|
| 9912 | #define GpiQueryPS _GpiQueryPS | 
|---|
| 9913 |  | 
|---|
| 9914 | inline BOOL _GpiResetPS(HPS a, ULONG b) | 
|---|
| 9915 | { | 
|---|
| 9916 | BOOL yyrc; | 
|---|
| 9917 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9918 |  | 
|---|
| 9919 | yyrc = GpiResetPS(a, b); | 
|---|
| 9920 | SetFS(sel); | 
|---|
| 9921 |  | 
|---|
| 9922 | return yyrc; | 
|---|
| 9923 | } | 
|---|
| 9924 |  | 
|---|
| 9925 | #undef  GpiResetPS | 
|---|
| 9926 | #define GpiResetPS _GpiResetPS | 
|---|
| 9927 |  | 
|---|
| 9928 | inline LONG _GpiQueryStopDraw(HPS a) | 
|---|
| 9929 | { | 
|---|
| 9930 | LONG yyrc; | 
|---|
| 9931 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9932 |  | 
|---|
| 9933 | yyrc = GpiQueryStopDraw(a); | 
|---|
| 9934 | SetFS(sel); | 
|---|
| 9935 |  | 
|---|
| 9936 | return yyrc; | 
|---|
| 9937 | } | 
|---|
| 9938 |  | 
|---|
| 9939 | #undef  GpiQueryStopDraw | 
|---|
| 9940 | #define GpiQueryStopDraw _GpiQueryStopDraw | 
|---|
| 9941 |  | 
|---|
| 9942 | inline BOOL _GpiSetDrawControl(HPS a, LONG b, LONG c) | 
|---|
| 9943 | { | 
|---|
| 9944 | BOOL yyrc; | 
|---|
| 9945 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9946 |  | 
|---|
| 9947 | yyrc = GpiSetDrawControl(a, b, c); | 
|---|
| 9948 | SetFS(sel); | 
|---|
| 9949 |  | 
|---|
| 9950 | return yyrc; | 
|---|
| 9951 | } | 
|---|
| 9952 |  | 
|---|
| 9953 | #undef  GpiSetDrawControl | 
|---|
| 9954 | #define GpiSetDrawControl _GpiSetDrawControl | 
|---|
| 9955 |  | 
|---|
| 9956 | inline BOOL _GpiSetDrawingMode(HPS a, LONG b) | 
|---|
| 9957 | { | 
|---|
| 9958 | BOOL yyrc; | 
|---|
| 9959 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9960 |  | 
|---|
| 9961 | yyrc = GpiSetDrawingMode(a, b); | 
|---|
| 9962 | SetFS(sel); | 
|---|
| 9963 |  | 
|---|
| 9964 | return yyrc; | 
|---|
| 9965 | } | 
|---|
| 9966 |  | 
|---|
| 9967 | #undef  GpiSetDrawingMode | 
|---|
| 9968 | #define GpiSetDrawingMode _GpiSetDrawingMode | 
|---|
| 9969 |  | 
|---|
| 9970 | inline BOOL _GpiSetPS(HPS a, SIZEL *b, ULONG c) | 
|---|
| 9971 | { | 
|---|
| 9972 | BOOL yyrc; | 
|---|
| 9973 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9974 |  | 
|---|
| 9975 | yyrc = GpiSetPS(a, b, c); | 
|---|
| 9976 | SetFS(sel); | 
|---|
| 9977 |  | 
|---|
| 9978 | return yyrc; | 
|---|
| 9979 | } | 
|---|
| 9980 |  | 
|---|
| 9981 | #undef  GpiSetPS | 
|---|
| 9982 | #define GpiSetPS _GpiSetPS | 
|---|
| 9983 |  | 
|---|
| 9984 | inline BOOL _GpiSetStopDraw(HPS a, LONG b) | 
|---|
| 9985 | { | 
|---|
| 9986 | BOOL yyrc; | 
|---|
| 9987 | USHORT sel = RestoreOS2FS(); | 
|---|
| 9988 |  | 
|---|
| 9989 | yyrc = GpiSetStopDraw(a, b); | 
|---|
| 9990 | SetFS(sel); | 
|---|
| 9991 |  | 
|---|
| 9992 | return yyrc; | 
|---|
| 9993 | } | 
|---|
| 9994 |  | 
|---|
| 9995 | #undef  GpiSetStopDraw | 
|---|
| 9996 | #define GpiSetStopDraw _GpiSetStopDraw | 
|---|
| 9997 |  | 
|---|
| 9998 | #endif | 
|---|
| 9999 | #ifdef INCL_GPICORRELATION | 
|---|
| 10000 | inline LONG _GpiCorrelateChain(HPS a, LONG b, PPOINTL c, LONG d, LONG e, PLONG f) | 
|---|
| 10001 | { | 
|---|
| 10002 | LONG yyrc; | 
|---|
| 10003 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10004 |  | 
|---|
| 10005 | yyrc = GpiCorrelateChain(a, b, c, d, e, f); | 
|---|
| 10006 | SetFS(sel); | 
|---|
| 10007 |  | 
|---|
| 10008 | return yyrc; | 
|---|
| 10009 | } | 
|---|
| 10010 |  | 
|---|
| 10011 | #undef  GpiCorrelateChain | 
|---|
| 10012 | #define GpiCorrelateChain _GpiCorrelateChain | 
|---|
| 10013 |  | 
|---|
| 10014 | inline LONG _GpiCorrelateFrom(HPS a, LONG b, LONG c, LONG d, PPOINTL e, LONG f, LONG g, PLONG h) | 
|---|
| 10015 | { | 
|---|
| 10016 | LONG yyrc; | 
|---|
| 10017 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10018 |  | 
|---|
| 10019 | yyrc = GpiCorrelateFrom(a, b, c, d, e, f, g, h); | 
|---|
| 10020 | SetFS(sel); | 
|---|
| 10021 |  | 
|---|
| 10022 | return yyrc; | 
|---|
| 10023 | } | 
|---|
| 10024 |  | 
|---|
| 10025 | #undef  GpiCorrelateFrom | 
|---|
| 10026 | #define GpiCorrelateFrom _GpiCorrelateFrom | 
|---|
| 10027 |  | 
|---|
| 10028 | inline LONG _GpiCorrelateSegment(HPS a, LONG b, LONG c, PPOINTL d, LONG e, LONG f, PLONG g) | 
|---|
| 10029 | { | 
|---|
| 10030 | LONG yyrc; | 
|---|
| 10031 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10032 |  | 
|---|
| 10033 | yyrc = GpiCorrelateSegment(a, b, c, d, e, f, g); | 
|---|
| 10034 | SetFS(sel); | 
|---|
| 10035 |  | 
|---|
| 10036 | return yyrc; | 
|---|
| 10037 | } | 
|---|
| 10038 |  | 
|---|
| 10039 | #undef  GpiCorrelateSegment | 
|---|
| 10040 | #define GpiCorrelateSegment _GpiCorrelateSegment | 
|---|
| 10041 |  | 
|---|
| 10042 | inline BOOL _GpiQueryBoundaryData(HPS a, PRECTL b) | 
|---|
| 10043 | { | 
|---|
| 10044 | BOOL yyrc; | 
|---|
| 10045 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10046 |  | 
|---|
| 10047 | yyrc = GpiQueryBoundaryData(a, b); | 
|---|
| 10048 | SetFS(sel); | 
|---|
| 10049 |  | 
|---|
| 10050 | return yyrc; | 
|---|
| 10051 | } | 
|---|
| 10052 |  | 
|---|
| 10053 | #undef  GpiQueryBoundaryData | 
|---|
| 10054 | #define GpiQueryBoundaryData _GpiQueryBoundaryData | 
|---|
| 10055 |  | 
|---|
| 10056 | inline BOOL _GpiQueryPickAperturePosition(HPS a, PPOINTL b) | 
|---|
| 10057 | { | 
|---|
| 10058 | BOOL yyrc; | 
|---|
| 10059 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10060 |  | 
|---|
| 10061 | yyrc = GpiQueryPickAperturePosition(a, b); | 
|---|
| 10062 | SetFS(sel); | 
|---|
| 10063 |  | 
|---|
| 10064 | return yyrc; | 
|---|
| 10065 | } | 
|---|
| 10066 |  | 
|---|
| 10067 | #undef  GpiQueryPickAperturePosition | 
|---|
| 10068 | #define GpiQueryPickAperturePosition _GpiQueryPickAperturePosition | 
|---|
| 10069 |  | 
|---|
| 10070 | inline BOOL _GpiQueryPickApertureSize(HPS a, PSIZEL b) | 
|---|
| 10071 | { | 
|---|
| 10072 | BOOL yyrc; | 
|---|
| 10073 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10074 |  | 
|---|
| 10075 | yyrc = GpiQueryPickApertureSize(a, b); | 
|---|
| 10076 | SetFS(sel); | 
|---|
| 10077 |  | 
|---|
| 10078 | return yyrc; | 
|---|
| 10079 | } | 
|---|
| 10080 |  | 
|---|
| 10081 | #undef  GpiQueryPickApertureSize | 
|---|
| 10082 | #define GpiQueryPickApertureSize _GpiQueryPickApertureSize | 
|---|
| 10083 |  | 
|---|
| 10084 | inline BOOL _GpiQueryTag(HPS a, PLONG b) | 
|---|
| 10085 | { | 
|---|
| 10086 | BOOL yyrc; | 
|---|
| 10087 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10088 |  | 
|---|
| 10089 | yyrc = GpiQueryTag(a, b); | 
|---|
| 10090 | SetFS(sel); | 
|---|
| 10091 |  | 
|---|
| 10092 | return yyrc; | 
|---|
| 10093 | } | 
|---|
| 10094 |  | 
|---|
| 10095 | #undef  GpiQueryTag | 
|---|
| 10096 | #define GpiQueryTag _GpiQueryTag | 
|---|
| 10097 |  | 
|---|
| 10098 | inline BOOL _GpiResetBoundaryData(HPS a) | 
|---|
| 10099 | { | 
|---|
| 10100 | BOOL yyrc; | 
|---|
| 10101 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10102 |  | 
|---|
| 10103 | yyrc = GpiResetBoundaryData(a); | 
|---|
| 10104 | SetFS(sel); | 
|---|
| 10105 |  | 
|---|
| 10106 | return yyrc; | 
|---|
| 10107 | } | 
|---|
| 10108 |  | 
|---|
| 10109 | #undef  GpiResetBoundaryData | 
|---|
| 10110 | #define GpiResetBoundaryData _GpiResetBoundaryData | 
|---|
| 10111 |  | 
|---|
| 10112 | inline BOOL _GpiSetPickAperturePosition(HPS a, PPOINTL b) | 
|---|
| 10113 | { | 
|---|
| 10114 | BOOL yyrc; | 
|---|
| 10115 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10116 |  | 
|---|
| 10117 | yyrc = GpiSetPickAperturePosition(a, b); | 
|---|
| 10118 | SetFS(sel); | 
|---|
| 10119 |  | 
|---|
| 10120 | return yyrc; | 
|---|
| 10121 | } | 
|---|
| 10122 |  | 
|---|
| 10123 | #undef  GpiSetPickAperturePosition | 
|---|
| 10124 | #define GpiSetPickAperturePosition _GpiSetPickAperturePosition | 
|---|
| 10125 |  | 
|---|
| 10126 | inline BOOL _GpiSetPickApertureSize(HPS a, LONG b, SIZEL *c) | 
|---|
| 10127 | { | 
|---|
| 10128 | BOOL yyrc; | 
|---|
| 10129 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10130 |  | 
|---|
| 10131 | yyrc = GpiSetPickApertureSize(a, b, c); | 
|---|
| 10132 | SetFS(sel); | 
|---|
| 10133 |  | 
|---|
| 10134 | return yyrc; | 
|---|
| 10135 | } | 
|---|
| 10136 |  | 
|---|
| 10137 | #undef  GpiSetPickApertureSize | 
|---|
| 10138 | #define GpiSetPickApertureSize _GpiSetPickApertureSize | 
|---|
| 10139 |  | 
|---|
| 10140 | inline BOOL _GpiSetTag(HPS a, LONG b) | 
|---|
| 10141 | { | 
|---|
| 10142 | BOOL yyrc; | 
|---|
| 10143 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10144 |  | 
|---|
| 10145 | yyrc = GpiSetTag(a, b); | 
|---|
| 10146 | SetFS(sel); | 
|---|
| 10147 |  | 
|---|
| 10148 | return yyrc; | 
|---|
| 10149 | } | 
|---|
| 10150 |  | 
|---|
| 10151 | #undef  GpiSetTag | 
|---|
| 10152 | #define GpiSetTag _GpiSetTag | 
|---|
| 10153 |  | 
|---|
| 10154 | #endif | 
|---|
| 10155 | #ifdef INCL_GPIINK | 
|---|
| 10156 | inline BOOL _GpiBeginInkPath(HPS a, LONG b, ULONG c) | 
|---|
| 10157 | { | 
|---|
| 10158 | BOOL yyrc; | 
|---|
| 10159 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10160 |  | 
|---|
| 10161 | yyrc = GpiBeginInkPath(a, b, c); | 
|---|
| 10162 | SetFS(sel); | 
|---|
| 10163 |  | 
|---|
| 10164 | return yyrc; | 
|---|
| 10165 | } | 
|---|
| 10166 |  | 
|---|
| 10167 | #undef  GpiBeginInkPath | 
|---|
| 10168 | #define GpiBeginInkPath _GpiBeginInkPath | 
|---|
| 10169 |  | 
|---|
| 10170 | inline BOOL _GpiEndInkPath(HPS a, ULONG b) | 
|---|
| 10171 | { | 
|---|
| 10172 | BOOL yyrc; | 
|---|
| 10173 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10174 |  | 
|---|
| 10175 | yyrc = GpiEndInkPath(a, b); | 
|---|
| 10176 | SetFS(sel); | 
|---|
| 10177 |  | 
|---|
| 10178 | return yyrc; | 
|---|
| 10179 | } | 
|---|
| 10180 |  | 
|---|
| 10181 | #undef  GpiEndInkPath | 
|---|
| 10182 | #define GpiEndInkPath _GpiEndInkPath | 
|---|
| 10183 |  | 
|---|
| 10184 | inline LONG _GpiStrokeInkPath(HPS a, LONG b, LONG c, PPOINTL d, ULONG e) | 
|---|
| 10185 | { | 
|---|
| 10186 | LONG yyrc; | 
|---|
| 10187 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10188 |  | 
|---|
| 10189 | yyrc = GpiStrokeInkPath(a, b, c, d, e); | 
|---|
| 10190 | SetFS(sel); | 
|---|
| 10191 |  | 
|---|
| 10192 | return yyrc; | 
|---|
| 10193 | } | 
|---|
| 10194 |  | 
|---|
| 10195 | #undef  GpiStrokeInkPath | 
|---|
| 10196 | #define GpiStrokeInkPath _GpiStrokeInkPath | 
|---|
| 10197 |  | 
|---|
| 10198 | #endif | 
|---|
| 10199 | #ifdef INCL_GPISEGMENTS | 
|---|
| 10200 | inline BOOL _GpiCloseSegment(HPS a) | 
|---|
| 10201 | { | 
|---|
| 10202 | BOOL yyrc; | 
|---|
| 10203 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10204 |  | 
|---|
| 10205 | yyrc = GpiCloseSegment(a); | 
|---|
| 10206 | SetFS(sel); | 
|---|
| 10207 |  | 
|---|
| 10208 | return yyrc; | 
|---|
| 10209 | } | 
|---|
| 10210 |  | 
|---|
| 10211 | #undef  GpiCloseSegment | 
|---|
| 10212 | #define GpiCloseSegment _GpiCloseSegment | 
|---|
| 10213 |  | 
|---|
| 10214 | inline BOOL _GpiDeleteSegment(HPS a, LONG b) | 
|---|
| 10215 | { | 
|---|
| 10216 | BOOL yyrc; | 
|---|
| 10217 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10218 |  | 
|---|
| 10219 | yyrc = GpiDeleteSegment(a, b); | 
|---|
| 10220 | SetFS(sel); | 
|---|
| 10221 |  | 
|---|
| 10222 | return yyrc; | 
|---|
| 10223 | } | 
|---|
| 10224 |  | 
|---|
| 10225 | #undef  GpiDeleteSegment | 
|---|
| 10226 | #define GpiDeleteSegment _GpiDeleteSegment | 
|---|
| 10227 |  | 
|---|
| 10228 | inline BOOL _GpiDeleteSegments(HPS a, LONG b, LONG c) | 
|---|
| 10229 | { | 
|---|
| 10230 | BOOL yyrc; | 
|---|
| 10231 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10232 |  | 
|---|
| 10233 | yyrc = GpiDeleteSegments(a, b, c); | 
|---|
| 10234 | SetFS(sel); | 
|---|
| 10235 |  | 
|---|
| 10236 | return yyrc; | 
|---|
| 10237 | } | 
|---|
| 10238 |  | 
|---|
| 10239 | #undef  GpiDeleteSegments | 
|---|
| 10240 | #define GpiDeleteSegments _GpiDeleteSegments | 
|---|
| 10241 |  | 
|---|
| 10242 | inline BOOL _GpiDrawChain(HPS a) | 
|---|
| 10243 | { | 
|---|
| 10244 | BOOL yyrc; | 
|---|
| 10245 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10246 |  | 
|---|
| 10247 | yyrc = GpiDrawChain(a); | 
|---|
| 10248 | SetFS(sel); | 
|---|
| 10249 |  | 
|---|
| 10250 | return yyrc; | 
|---|
| 10251 | } | 
|---|
| 10252 |  | 
|---|
| 10253 | #undef  GpiDrawChain | 
|---|
| 10254 | #define GpiDrawChain _GpiDrawChain | 
|---|
| 10255 |  | 
|---|
| 10256 | inline BOOL _GpiDrawDynamics(HPS a) | 
|---|
| 10257 | { | 
|---|
| 10258 | BOOL yyrc; | 
|---|
| 10259 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10260 |  | 
|---|
| 10261 | yyrc = GpiDrawDynamics(a); | 
|---|
| 10262 | SetFS(sel); | 
|---|
| 10263 |  | 
|---|
| 10264 | return yyrc; | 
|---|
| 10265 | } | 
|---|
| 10266 |  | 
|---|
| 10267 | #undef  GpiDrawDynamics | 
|---|
| 10268 | #define GpiDrawDynamics _GpiDrawDynamics | 
|---|
| 10269 |  | 
|---|
| 10270 | inline BOOL _GpiDrawFrom(HPS a, LONG b, LONG c) | 
|---|
| 10271 | { | 
|---|
| 10272 | BOOL yyrc; | 
|---|
| 10273 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10274 |  | 
|---|
| 10275 | yyrc = GpiDrawFrom(a, b, c); | 
|---|
| 10276 | SetFS(sel); | 
|---|
| 10277 |  | 
|---|
| 10278 | return yyrc; | 
|---|
| 10279 | } | 
|---|
| 10280 |  | 
|---|
| 10281 | #undef  GpiDrawFrom | 
|---|
| 10282 | #define GpiDrawFrom _GpiDrawFrom | 
|---|
| 10283 |  | 
|---|
| 10284 | inline BOOL _GpiDrawSegment(HPS a, LONG b) | 
|---|
| 10285 | { | 
|---|
| 10286 | BOOL yyrc; | 
|---|
| 10287 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10288 |  | 
|---|
| 10289 | yyrc = GpiDrawSegment(a, b); | 
|---|
| 10290 | SetFS(sel); | 
|---|
| 10291 |  | 
|---|
| 10292 | return yyrc; | 
|---|
| 10293 | } | 
|---|
| 10294 |  | 
|---|
| 10295 | #undef  GpiDrawSegment | 
|---|
| 10296 | #define GpiDrawSegment _GpiDrawSegment | 
|---|
| 10297 |  | 
|---|
| 10298 | inline LONG _GpiGetData(HPS a, LONG b, PLONG c, LONG d, LONG e, PBYTE f) | 
|---|
| 10299 | { | 
|---|
| 10300 | LONG yyrc; | 
|---|
| 10301 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10302 |  | 
|---|
| 10303 | yyrc = GpiGetData(a, b, c, d, e, f); | 
|---|
| 10304 | SetFS(sel); | 
|---|
| 10305 |  | 
|---|
| 10306 | return yyrc; | 
|---|
| 10307 | } | 
|---|
| 10308 |  | 
|---|
| 10309 | #undef  GpiGetData | 
|---|
| 10310 | #define GpiGetData _GpiGetData | 
|---|
| 10311 |  | 
|---|
| 10312 | inline BOOL _GpiOpenSegment(HPS a, LONG b) | 
|---|
| 10313 | { | 
|---|
| 10314 | BOOL yyrc; | 
|---|
| 10315 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10316 |  | 
|---|
| 10317 | yyrc = GpiOpenSegment(a, b); | 
|---|
| 10318 | SetFS(sel); | 
|---|
| 10319 |  | 
|---|
| 10320 | return yyrc; | 
|---|
| 10321 | } | 
|---|
| 10322 |  | 
|---|
| 10323 | #undef  GpiOpenSegment | 
|---|
| 10324 | #define GpiOpenSegment _GpiOpenSegment | 
|---|
| 10325 |  | 
|---|
| 10326 | inline LONG _GpiPutData(HPS a, LONG b, PLONG c, PBYTE d) | 
|---|
| 10327 | { | 
|---|
| 10328 | LONG yyrc; | 
|---|
| 10329 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10330 |  | 
|---|
| 10331 | yyrc = GpiPutData(a, b, c, d); | 
|---|
| 10332 | SetFS(sel); | 
|---|
| 10333 |  | 
|---|
| 10334 | return yyrc; | 
|---|
| 10335 | } | 
|---|
| 10336 |  | 
|---|
| 10337 | #undef  GpiPutData | 
|---|
| 10338 | #define GpiPutData _GpiPutData | 
|---|
| 10339 |  | 
|---|
| 10340 | inline LONG _GpiQueryInitialSegmentAttrs(HPS a, LONG b) | 
|---|
| 10341 | { | 
|---|
| 10342 | LONG yyrc; | 
|---|
| 10343 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10344 |  | 
|---|
| 10345 | yyrc = GpiQueryInitialSegmentAttrs(a, b); | 
|---|
| 10346 | SetFS(sel); | 
|---|
| 10347 |  | 
|---|
| 10348 | return yyrc; | 
|---|
| 10349 | } | 
|---|
| 10350 |  | 
|---|
| 10351 | #undef  GpiQueryInitialSegmentAttrs | 
|---|
| 10352 | #define GpiQueryInitialSegmentAttrs _GpiQueryInitialSegmentAttrs | 
|---|
| 10353 |  | 
|---|
| 10354 | inline LONG _GpiQuerySegmentAttrs(HPS a, LONG b, LONG c) | 
|---|
| 10355 | { | 
|---|
| 10356 | LONG yyrc; | 
|---|
| 10357 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10358 |  | 
|---|
| 10359 | yyrc = GpiQuerySegmentAttrs(a, b, c); | 
|---|
| 10360 | SetFS(sel); | 
|---|
| 10361 |  | 
|---|
| 10362 | return yyrc; | 
|---|
| 10363 | } | 
|---|
| 10364 |  | 
|---|
| 10365 | #undef  GpiQuerySegmentAttrs | 
|---|
| 10366 | #define GpiQuerySegmentAttrs _GpiQuerySegmentAttrs | 
|---|
| 10367 |  | 
|---|
| 10368 | inline LONG _GpiQuerySegmentNames(HPS a, LONG b, LONG c, LONG d, PLONG e) | 
|---|
| 10369 | { | 
|---|
| 10370 | LONG yyrc; | 
|---|
| 10371 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10372 |  | 
|---|
| 10373 | yyrc = GpiQuerySegmentNames(a, b, c, d, e); | 
|---|
| 10374 | SetFS(sel); | 
|---|
| 10375 |  | 
|---|
| 10376 | return yyrc; | 
|---|
| 10377 | } | 
|---|
| 10378 |  | 
|---|
| 10379 | #undef  GpiQuerySegmentNames | 
|---|
| 10380 | #define GpiQuerySegmentNames _GpiQuerySegmentNames | 
|---|
| 10381 |  | 
|---|
| 10382 | inline LONG _GpiQuerySegmentPriority(HPS a, LONG b, LONG c) | 
|---|
| 10383 | { | 
|---|
| 10384 | LONG yyrc; | 
|---|
| 10385 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10386 |  | 
|---|
| 10387 | yyrc = GpiQuerySegmentPriority(a, b, c); | 
|---|
| 10388 | SetFS(sel); | 
|---|
| 10389 |  | 
|---|
| 10390 | return yyrc; | 
|---|
| 10391 | } | 
|---|
| 10392 |  | 
|---|
| 10393 | #undef  GpiQuerySegmentPriority | 
|---|
| 10394 | #define GpiQuerySegmentPriority _GpiQuerySegmentPriority | 
|---|
| 10395 |  | 
|---|
| 10396 | inline BOOL _GpiRemoveDynamics(HPS a, LONG b, LONG c) | 
|---|
| 10397 | { | 
|---|
| 10398 | BOOL yyrc; | 
|---|
| 10399 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10400 |  | 
|---|
| 10401 | yyrc = GpiRemoveDynamics(a, b, c); | 
|---|
| 10402 | SetFS(sel); | 
|---|
| 10403 |  | 
|---|
| 10404 | return yyrc; | 
|---|
| 10405 | } | 
|---|
| 10406 |  | 
|---|
| 10407 | #undef  GpiRemoveDynamics | 
|---|
| 10408 | #define GpiRemoveDynamics _GpiRemoveDynamics | 
|---|
| 10409 |  | 
|---|
| 10410 | inline BOOL _GpiSetInitialSegmentAttrs(HPS a, LONG b, LONG c) | 
|---|
| 10411 | { | 
|---|
| 10412 | BOOL yyrc; | 
|---|
| 10413 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10414 |  | 
|---|
| 10415 | yyrc = GpiSetInitialSegmentAttrs(a, b, c); | 
|---|
| 10416 | SetFS(sel); | 
|---|
| 10417 |  | 
|---|
| 10418 | return yyrc; | 
|---|
| 10419 | } | 
|---|
| 10420 |  | 
|---|
| 10421 | #undef  GpiSetInitialSegmentAttrs | 
|---|
| 10422 | #define GpiSetInitialSegmentAttrs _GpiSetInitialSegmentAttrs | 
|---|
| 10423 |  | 
|---|
| 10424 | inline BOOL _GpiSetSegmentAttrs(HPS a, LONG b, LONG c, LONG d) | 
|---|
| 10425 | { | 
|---|
| 10426 | BOOL yyrc; | 
|---|
| 10427 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10428 |  | 
|---|
| 10429 | yyrc = GpiSetSegmentAttrs(a, b, c, d); | 
|---|
| 10430 | SetFS(sel); | 
|---|
| 10431 |  | 
|---|
| 10432 | return yyrc; | 
|---|
| 10433 | } | 
|---|
| 10434 |  | 
|---|
| 10435 | #undef  GpiSetSegmentAttrs | 
|---|
| 10436 | #define GpiSetSegmentAttrs _GpiSetSegmentAttrs | 
|---|
| 10437 |  | 
|---|
| 10438 | inline BOOL _GpiSetSegmentPriority(HPS a, LONG b, LONG c, LONG d) | 
|---|
| 10439 | { | 
|---|
| 10440 | BOOL yyrc; | 
|---|
| 10441 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10442 |  | 
|---|
| 10443 | yyrc = GpiSetSegmentPriority(a, b, c, d); | 
|---|
| 10444 | SetFS(sel); | 
|---|
| 10445 |  | 
|---|
| 10446 | return yyrc; | 
|---|
| 10447 | } | 
|---|
| 10448 |  | 
|---|
| 10449 | #undef  GpiSetSegmentPriority | 
|---|
| 10450 | #define GpiSetSegmentPriority _GpiSetSegmentPriority | 
|---|
| 10451 |  | 
|---|
| 10452 | #endif | 
|---|
| 10453 | #ifdef INCL_DEV | 
|---|
| 10454 | inline LONG _DevEscape(HDC a, LONG b, LONG c, PBYTE d, PLONG e, PBYTE f) | 
|---|
| 10455 | { | 
|---|
| 10456 | LONG yyrc; | 
|---|
| 10457 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10458 |  | 
|---|
| 10459 | yyrc = DevEscape(a, b, c, d, e, f); | 
|---|
| 10460 | SetFS(sel); | 
|---|
| 10461 |  | 
|---|
| 10462 | return yyrc; | 
|---|
| 10463 | } | 
|---|
| 10464 |  | 
|---|
| 10465 | #undef  DevEscape | 
|---|
| 10466 | #define DevEscape _DevEscape | 
|---|
| 10467 |  | 
|---|
| 10468 | inline LONG _DevPostEscape(PCSZ a, PCSZ b, PCSZ c, PCSZ d, ULONG e, ULONG f, PBYTE g, ULONG h, PBYTE i) | 
|---|
| 10469 | { | 
|---|
| 10470 | LONG yyrc; | 
|---|
| 10471 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10472 |  | 
|---|
| 10473 | yyrc = DevPostEscape(a, b, c, d, e, f, g, h, i); | 
|---|
| 10474 | SetFS(sel); | 
|---|
| 10475 |  | 
|---|
| 10476 | return yyrc; | 
|---|
| 10477 | } | 
|---|
| 10478 |  | 
|---|
| 10479 | #undef  DevPostEscape | 
|---|
| 10480 | #define DevPostEscape _DevPostEscape | 
|---|
| 10481 |  | 
|---|
| 10482 | inline LONG _DevPostDeviceModes(HAB a, PDRIVDATA b, PCSZ c, PCSZ d, PCSZ e, ULONG f) | 
|---|
| 10483 | { | 
|---|
| 10484 | LONG yyrc; | 
|---|
| 10485 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10486 |  | 
|---|
| 10487 | yyrc = DevPostDeviceModes(a, b, c, d, e, f); | 
|---|
| 10488 | SetFS(sel); | 
|---|
| 10489 |  | 
|---|
| 10490 | return yyrc; | 
|---|
| 10491 | } | 
|---|
| 10492 |  | 
|---|
| 10493 | #undef  DevPostDeviceModes | 
|---|
| 10494 | #define DevPostDeviceModes _DevPostDeviceModes | 
|---|
| 10495 |  | 
|---|
| 10496 | inline BOOL _DevQueryDeviceNames(HAB a, PCSZ b, PLONG c, PSTR32 d, PSTR64 e, PLONG f, PSTR16 g) | 
|---|
| 10497 | { | 
|---|
| 10498 | BOOL yyrc; | 
|---|
| 10499 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10500 |  | 
|---|
| 10501 | yyrc = DevQueryDeviceNames(a, b, c, d, e, f, g); | 
|---|
| 10502 | SetFS(sel); | 
|---|
| 10503 |  | 
|---|
| 10504 | return yyrc; | 
|---|
| 10505 | } | 
|---|
| 10506 |  | 
|---|
| 10507 | #undef  DevQueryDeviceNames | 
|---|
| 10508 | #define DevQueryDeviceNames _DevQueryDeviceNames | 
|---|
| 10509 |  | 
|---|
| 10510 | inline LONG _DevQueryHardcopyCaps(HDC a, LONG b, LONG c, PHCINFO d) | 
|---|
| 10511 | { | 
|---|
| 10512 | LONG yyrc; | 
|---|
| 10513 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10514 |  | 
|---|
| 10515 | yyrc = DevQueryHardcopyCaps(a, b, c, d); | 
|---|
| 10516 | SetFS(sel); | 
|---|
| 10517 |  | 
|---|
| 10518 | return yyrc; | 
|---|
| 10519 | } | 
|---|
| 10520 |  | 
|---|
| 10521 | #undef  DevQueryHardcopyCaps | 
|---|
| 10522 | #define DevQueryHardcopyCaps _DevQueryHardcopyCaps | 
|---|
| 10523 |  | 
|---|
| 10524 | #endif | 
|---|
| 10525 | inline HMF _DevCloseDC(HDC a) | 
|---|
| 10526 | { | 
|---|
| 10527 | HMF yyrc; | 
|---|
| 10528 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10529 |  | 
|---|
| 10530 | yyrc = DevCloseDC(a); | 
|---|
| 10531 | SetFS(sel); | 
|---|
| 10532 |  | 
|---|
| 10533 | return yyrc; | 
|---|
| 10534 | } | 
|---|
| 10535 |  | 
|---|
| 10536 | #undef  DevCloseDC | 
|---|
| 10537 | #define DevCloseDC _DevCloseDC | 
|---|
| 10538 |  | 
|---|
| 10539 | inline HDC _DevOpenDC(HAB a, LONG b, PCSZ c, LONG d, PDEVOPENDATA e, HDC f) | 
|---|
| 10540 | { | 
|---|
| 10541 | HDC yyrc; | 
|---|
| 10542 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10543 |  | 
|---|
| 10544 | yyrc = DevOpenDC(a, b, c, d, e, f); | 
|---|
| 10545 | SetFS(sel); | 
|---|
| 10546 |  | 
|---|
| 10547 | return yyrc; | 
|---|
| 10548 | } | 
|---|
| 10549 |  | 
|---|
| 10550 | #undef  DevOpenDC | 
|---|
| 10551 | #define DevOpenDC _DevOpenDC | 
|---|
| 10552 |  | 
|---|
| 10553 | inline BOOL _DevQueryCaps(HDC a, LONG b, LONG c, PLONG d) | 
|---|
| 10554 | { | 
|---|
| 10555 | BOOL yyrc; | 
|---|
| 10556 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10557 |  | 
|---|
| 10558 | yyrc = DevQueryCaps(a, b, c, d); | 
|---|
| 10559 | SetFS(sel); | 
|---|
| 10560 |  | 
|---|
| 10561 | return yyrc; | 
|---|
| 10562 | } | 
|---|
| 10563 |  | 
|---|
| 10564 | #undef  DevQueryCaps | 
|---|
| 10565 | #define DevQueryCaps _DevQueryCaps | 
|---|
| 10566 |  | 
|---|
| 10567 | #endif | 
|---|
| 10568 | #ifdef INCL_WINPROGRAMLIST | 
|---|
| 10569 | inline HPROGRAM _PrfAddProgram(HINI a, PPROGDETAILS b, HPROGRAM c) | 
|---|
| 10570 | { | 
|---|
| 10571 | HPROGRAM yyrc; | 
|---|
| 10572 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10573 |  | 
|---|
| 10574 | yyrc = PrfAddProgram(a, b, c); | 
|---|
| 10575 | SetFS(sel); | 
|---|
| 10576 |  | 
|---|
| 10577 | return yyrc; | 
|---|
| 10578 | } | 
|---|
| 10579 |  | 
|---|
| 10580 | #undef  PrfAddProgram | 
|---|
| 10581 | #define PrfAddProgram _PrfAddProgram | 
|---|
| 10582 |  | 
|---|
| 10583 | inline BOOL _PrfChangeProgram(HINI a, HPROGRAM b, PPROGDETAILS c) | 
|---|
| 10584 | { | 
|---|
| 10585 | BOOL yyrc; | 
|---|
| 10586 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10587 |  | 
|---|
| 10588 | yyrc = PrfChangeProgram(a, b, c); | 
|---|
| 10589 | SetFS(sel); | 
|---|
| 10590 |  | 
|---|
| 10591 | return yyrc; | 
|---|
| 10592 | } | 
|---|
| 10593 |  | 
|---|
| 10594 | #undef  PrfChangeProgram | 
|---|
| 10595 | #define PrfChangeProgram _PrfChangeProgram | 
|---|
| 10596 |  | 
|---|
| 10597 | inline HPROGRAM _PrfCreateGroup(HINI a, PCSZ b, UCHAR c) | 
|---|
| 10598 | { | 
|---|
| 10599 | HPROGRAM yyrc; | 
|---|
| 10600 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10601 |  | 
|---|
| 10602 | yyrc = PrfCreateGroup(a, b, c); | 
|---|
| 10603 | SetFS(sel); | 
|---|
| 10604 |  | 
|---|
| 10605 | return yyrc; | 
|---|
| 10606 | } | 
|---|
| 10607 |  | 
|---|
| 10608 | #undef  PrfCreateGroup | 
|---|
| 10609 | #define PrfCreateGroup _PrfCreateGroup | 
|---|
| 10610 |  | 
|---|
| 10611 | inline BOOL _PrfDestroyGroup(HINI a, HPROGRAM b) | 
|---|
| 10612 | { | 
|---|
| 10613 | BOOL yyrc; | 
|---|
| 10614 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10615 |  | 
|---|
| 10616 | yyrc = PrfDestroyGroup(a, b); | 
|---|
| 10617 | SetFS(sel); | 
|---|
| 10618 |  | 
|---|
| 10619 | return yyrc; | 
|---|
| 10620 | } | 
|---|
| 10621 |  | 
|---|
| 10622 | #undef  PrfDestroyGroup | 
|---|
| 10623 | #define PrfDestroyGroup _PrfDestroyGroup | 
|---|
| 10624 |  | 
|---|
| 10625 | inline PROGCATEGORY _PrfQueryProgramCategory(HINI a, PCSZ b) | 
|---|
| 10626 | { | 
|---|
| 10627 | PROGCATEGORY yyrc; | 
|---|
| 10628 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10629 |  | 
|---|
| 10630 | yyrc = PrfQueryProgramCategory(a, b); | 
|---|
| 10631 | SetFS(sel); | 
|---|
| 10632 |  | 
|---|
| 10633 | return yyrc; | 
|---|
| 10634 | } | 
|---|
| 10635 |  | 
|---|
| 10636 | #undef  PrfQueryProgramCategory | 
|---|
| 10637 | #define PrfQueryProgramCategory _PrfQueryProgramCategory | 
|---|
| 10638 |  | 
|---|
| 10639 | inline ULONG _PrfQueryProgramHandle(HINI a, PCSZ b, PHPROGARRAY c, ULONG d, PULONG e) | 
|---|
| 10640 | { | 
|---|
| 10641 | ULONG yyrc; | 
|---|
| 10642 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10643 |  | 
|---|
| 10644 | yyrc = PrfQueryProgramHandle(a, b, c, d, e); | 
|---|
| 10645 | SetFS(sel); | 
|---|
| 10646 |  | 
|---|
| 10647 | return yyrc; | 
|---|
| 10648 | } | 
|---|
| 10649 |  | 
|---|
| 10650 | #undef  PrfQueryProgramHandle | 
|---|
| 10651 | #define PrfQueryProgramHandle _PrfQueryProgramHandle | 
|---|
| 10652 |  | 
|---|
| 10653 | inline ULONG _PrfQueryProgramTitles(HINI a, HPROGRAM b, PPROGTITLE c, ULONG d, PULONG e) | 
|---|
| 10654 | { | 
|---|
| 10655 | ULONG yyrc; | 
|---|
| 10656 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10657 |  | 
|---|
| 10658 | yyrc = PrfQueryProgramTitles(a, b, c, d, e); | 
|---|
| 10659 | SetFS(sel); | 
|---|
| 10660 |  | 
|---|
| 10661 | return yyrc; | 
|---|
| 10662 | } | 
|---|
| 10663 |  | 
|---|
| 10664 | #undef  PrfQueryProgramTitles | 
|---|
| 10665 | #define PrfQueryProgramTitles _PrfQueryProgramTitles | 
|---|
| 10666 |  | 
|---|
| 10667 | inline ULONG _PrfQueryDefinition(HINI a, HPROGRAM b, PPROGDETAILS c, ULONG d) | 
|---|
| 10668 | { | 
|---|
| 10669 | ULONG yyrc; | 
|---|
| 10670 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10671 |  | 
|---|
| 10672 | yyrc = PrfQueryDefinition(a, b, c, d); | 
|---|
| 10673 | SetFS(sel); | 
|---|
| 10674 |  | 
|---|
| 10675 | return yyrc; | 
|---|
| 10676 | } | 
|---|
| 10677 |  | 
|---|
| 10678 | #undef  PrfQueryDefinition | 
|---|
| 10679 | #define PrfQueryDefinition _PrfQueryDefinition | 
|---|
| 10680 |  | 
|---|
| 10681 | inline BOOL _PrfRemoveProgram(HINI a, HPROGRAM b) | 
|---|
| 10682 | { | 
|---|
| 10683 | BOOL yyrc; | 
|---|
| 10684 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10685 |  | 
|---|
| 10686 | yyrc = PrfRemoveProgram(a, b); | 
|---|
| 10687 | SetFS(sel); | 
|---|
| 10688 |  | 
|---|
| 10689 | return yyrc; | 
|---|
| 10690 | } | 
|---|
| 10691 |  | 
|---|
| 10692 | #undef  PrfRemoveProgram | 
|---|
| 10693 | #define PrfRemoveProgram _PrfRemoveProgram | 
|---|
| 10694 |  | 
|---|
| 10695 | inline HAPP _WinStartApp(HWND a, PPROGDETAILS b, PCSZ c, PVOID d, ULONG e) | 
|---|
| 10696 | { | 
|---|
| 10697 | HAPP yyrc; | 
|---|
| 10698 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10699 |  | 
|---|
| 10700 | yyrc = WinStartApp(a, b, c, d, e); | 
|---|
| 10701 | SetFS(sel); | 
|---|
| 10702 |  | 
|---|
| 10703 | return yyrc; | 
|---|
| 10704 | } | 
|---|
| 10705 |  | 
|---|
| 10706 | #undef  WinStartApp | 
|---|
| 10707 | #define WinStartApp _WinStartApp | 
|---|
| 10708 |  | 
|---|
| 10709 | inline BOOL _WinTerminateApp(HAPP a) | 
|---|
| 10710 | { | 
|---|
| 10711 | BOOL yyrc; | 
|---|
| 10712 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10713 |  | 
|---|
| 10714 | yyrc = WinTerminateApp(a); | 
|---|
| 10715 | SetFS(sel); | 
|---|
| 10716 |  | 
|---|
| 10717 | return yyrc; | 
|---|
| 10718 | } | 
|---|
| 10719 |  | 
|---|
| 10720 | #undef  WinTerminateApp | 
|---|
| 10721 | #define WinTerminateApp _WinTerminateApp | 
|---|
| 10722 |  | 
|---|
| 10723 | #endif | 
|---|
| 10724 | #ifdef INCL_WINSWITCHLIST | 
|---|
| 10725 | inline HSWITCH _WinAddSwitchEntry(PSWCNTRL a) | 
|---|
| 10726 | { | 
|---|
| 10727 | HSWITCH yyrc; | 
|---|
| 10728 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10729 |  | 
|---|
| 10730 | yyrc = WinAddSwitchEntry(a); | 
|---|
| 10731 | SetFS(sel); | 
|---|
| 10732 |  | 
|---|
| 10733 | return yyrc; | 
|---|
| 10734 | } | 
|---|
| 10735 |  | 
|---|
| 10736 | #undef  WinAddSwitchEntry | 
|---|
| 10737 | #define WinAddSwitchEntry _WinAddSwitchEntry | 
|---|
| 10738 |  | 
|---|
| 10739 | inline ULONG _WinRemoveSwitchEntry(HSWITCH a) | 
|---|
| 10740 | { | 
|---|
| 10741 | ULONG yyrc; | 
|---|
| 10742 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10743 |  | 
|---|
| 10744 | yyrc = WinRemoveSwitchEntry(a); | 
|---|
| 10745 | SetFS(sel); | 
|---|
| 10746 |  | 
|---|
| 10747 | return yyrc; | 
|---|
| 10748 | } | 
|---|
| 10749 |  | 
|---|
| 10750 | #undef  WinRemoveSwitchEntry | 
|---|
| 10751 | #define WinRemoveSwitchEntry _WinRemoveSwitchEntry | 
|---|
| 10752 |  | 
|---|
| 10753 | inline ULONG _WinChangeSwitchEntry(HSWITCH a, PSWCNTRL b) | 
|---|
| 10754 | { | 
|---|
| 10755 | ULONG yyrc; | 
|---|
| 10756 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10757 |  | 
|---|
| 10758 | yyrc = WinChangeSwitchEntry(a, b); | 
|---|
| 10759 | SetFS(sel); | 
|---|
| 10760 |  | 
|---|
| 10761 | return yyrc; | 
|---|
| 10762 | } | 
|---|
| 10763 |  | 
|---|
| 10764 | #undef  WinChangeSwitchEntry | 
|---|
| 10765 | #define WinChangeSwitchEntry _WinChangeSwitchEntry | 
|---|
| 10766 |  | 
|---|
| 10767 | inline HSWITCH _WinCreateSwitchEntry(HAB a, PSWCNTRL b) | 
|---|
| 10768 | { | 
|---|
| 10769 | HSWITCH yyrc; | 
|---|
| 10770 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10771 |  | 
|---|
| 10772 | yyrc = WinCreateSwitchEntry(a, b); | 
|---|
| 10773 | SetFS(sel); | 
|---|
| 10774 |  | 
|---|
| 10775 | return yyrc; | 
|---|
| 10776 | } | 
|---|
| 10777 |  | 
|---|
| 10778 | #undef  WinCreateSwitchEntry | 
|---|
| 10779 | #define WinCreateSwitchEntry _WinCreateSwitchEntry | 
|---|
| 10780 |  | 
|---|
| 10781 | inline ULONG _WinQuerySessionTitle(HAB a, ULONG b, PSZ c, ULONG d) | 
|---|
| 10782 | { | 
|---|
| 10783 | ULONG yyrc; | 
|---|
| 10784 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10785 |  | 
|---|
| 10786 | yyrc = WinQuerySessionTitle(a, b, c, d); | 
|---|
| 10787 | SetFS(sel); | 
|---|
| 10788 |  | 
|---|
| 10789 | return yyrc; | 
|---|
| 10790 | } | 
|---|
| 10791 |  | 
|---|
| 10792 | #undef  WinQuerySessionTitle | 
|---|
| 10793 | #define WinQuerySessionTitle _WinQuerySessionTitle | 
|---|
| 10794 |  | 
|---|
| 10795 | inline ULONG _WinQuerySwitchEntry(HSWITCH a, PSWCNTRL b) | 
|---|
| 10796 | { | 
|---|
| 10797 | ULONG yyrc; | 
|---|
| 10798 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10799 |  | 
|---|
| 10800 | yyrc = WinQuerySwitchEntry(a, b); | 
|---|
| 10801 | SetFS(sel); | 
|---|
| 10802 |  | 
|---|
| 10803 | return yyrc; | 
|---|
| 10804 | } | 
|---|
| 10805 |  | 
|---|
| 10806 | #undef  WinQuerySwitchEntry | 
|---|
| 10807 | #define WinQuerySwitchEntry _WinQuerySwitchEntry | 
|---|
| 10808 |  | 
|---|
| 10809 | inline HSWITCH _WinQuerySwitchHandle(HWND a, PID b) | 
|---|
| 10810 | { | 
|---|
| 10811 | HSWITCH yyrc; | 
|---|
| 10812 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10813 |  | 
|---|
| 10814 | yyrc = WinQuerySwitchHandle(a, b); | 
|---|
| 10815 | SetFS(sel); | 
|---|
| 10816 |  | 
|---|
| 10817 | return yyrc; | 
|---|
| 10818 | } | 
|---|
| 10819 |  | 
|---|
| 10820 | #undef  WinQuerySwitchHandle | 
|---|
| 10821 | #define WinQuerySwitchHandle _WinQuerySwitchHandle | 
|---|
| 10822 |  | 
|---|
| 10823 | inline ULONG _WinQuerySwitchList(HAB a, PSWBLOCK b, ULONG c) | 
|---|
| 10824 | { | 
|---|
| 10825 | ULONG yyrc; | 
|---|
| 10826 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10827 |  | 
|---|
| 10828 | yyrc = WinQuerySwitchList(a, b, c); | 
|---|
| 10829 | SetFS(sel); | 
|---|
| 10830 |  | 
|---|
| 10831 | return yyrc; | 
|---|
| 10832 | } | 
|---|
| 10833 |  | 
|---|
| 10834 | #undef  WinQuerySwitchList | 
|---|
| 10835 | #define WinQuerySwitchList _WinQuerySwitchList | 
|---|
| 10836 |  | 
|---|
| 10837 | inline ULONG _WinQueryTaskSizePos(HAB a, ULONG b, PSWP c) | 
|---|
| 10838 | { | 
|---|
| 10839 | ULONG yyrc; | 
|---|
| 10840 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10841 |  | 
|---|
| 10842 | yyrc = WinQueryTaskSizePos(a, b, c); | 
|---|
| 10843 | SetFS(sel); | 
|---|
| 10844 |  | 
|---|
| 10845 | return yyrc; | 
|---|
| 10846 | } | 
|---|
| 10847 |  | 
|---|
| 10848 | #undef  WinQueryTaskSizePos | 
|---|
| 10849 | #define WinQueryTaskSizePos _WinQueryTaskSizePos | 
|---|
| 10850 |  | 
|---|
| 10851 | inline ULONG _WinQueryTaskTitle(ULONG a, PSZ b, ULONG c) | 
|---|
| 10852 | { | 
|---|
| 10853 | ULONG yyrc; | 
|---|
| 10854 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10855 |  | 
|---|
| 10856 | yyrc = WinQueryTaskTitle(a, b, c); | 
|---|
| 10857 | SetFS(sel); | 
|---|
| 10858 |  | 
|---|
| 10859 | return yyrc; | 
|---|
| 10860 | } | 
|---|
| 10861 |  | 
|---|
| 10862 | #undef  WinQueryTaskTitle | 
|---|
| 10863 | #define WinQueryTaskTitle _WinQueryTaskTitle | 
|---|
| 10864 |  | 
|---|
| 10865 | inline ULONG _WinSwitchToProgram(HSWITCH a) | 
|---|
| 10866 | { | 
|---|
| 10867 | ULONG yyrc; | 
|---|
| 10868 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10869 |  | 
|---|
| 10870 | yyrc = WinSwitchToProgram(a); | 
|---|
| 10871 | SetFS(sel); | 
|---|
| 10872 |  | 
|---|
| 10873 | return yyrc; | 
|---|
| 10874 | } | 
|---|
| 10875 |  | 
|---|
| 10876 | #undef  WinSwitchToProgram | 
|---|
| 10877 | #define WinSwitchToProgram _WinSwitchToProgram | 
|---|
| 10878 |  | 
|---|
| 10879 | #endif | 
|---|
| 10880 | #ifdef INCL_WINSHELLDATA | 
|---|
| 10881 | inline BOOL _PrfCloseProfile(HINI a) | 
|---|
| 10882 | { | 
|---|
| 10883 | BOOL yyrc; | 
|---|
| 10884 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10885 |  | 
|---|
| 10886 | yyrc = PrfCloseProfile(a); | 
|---|
| 10887 | SetFS(sel); | 
|---|
| 10888 |  | 
|---|
| 10889 | return yyrc; | 
|---|
| 10890 | } | 
|---|
| 10891 |  | 
|---|
| 10892 | #undef  PrfCloseProfile | 
|---|
| 10893 | #define PrfCloseProfile _PrfCloseProfile | 
|---|
| 10894 |  | 
|---|
| 10895 | inline HINI _PrfOpenProfile(HAB a, PCSZ b) | 
|---|
| 10896 | { | 
|---|
| 10897 | HINI yyrc; | 
|---|
| 10898 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10899 |  | 
|---|
| 10900 | yyrc = PrfOpenProfile(a, b); | 
|---|
| 10901 | SetFS(sel); | 
|---|
| 10902 |  | 
|---|
| 10903 | return yyrc; | 
|---|
| 10904 | } | 
|---|
| 10905 |  | 
|---|
| 10906 | #undef  PrfOpenProfile | 
|---|
| 10907 | #define PrfOpenProfile _PrfOpenProfile | 
|---|
| 10908 |  | 
|---|
| 10909 | inline BOOL _PrfQueryProfile(HAB a, PPRFPROFILE b) | 
|---|
| 10910 | { | 
|---|
| 10911 | BOOL yyrc; | 
|---|
| 10912 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10913 |  | 
|---|
| 10914 | yyrc = PrfQueryProfile(a, b); | 
|---|
| 10915 | SetFS(sel); | 
|---|
| 10916 |  | 
|---|
| 10917 | return yyrc; | 
|---|
| 10918 | } | 
|---|
| 10919 |  | 
|---|
| 10920 | #undef  PrfQueryProfile | 
|---|
| 10921 | #define PrfQueryProfile _PrfQueryProfile | 
|---|
| 10922 |  | 
|---|
| 10923 | inline BOOL _PrfQueryProfileData(HINI a, PCSZ b, PCSZ c, PVOID d, PULONG e) | 
|---|
| 10924 | { | 
|---|
| 10925 | BOOL yyrc; | 
|---|
| 10926 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10927 |  | 
|---|
| 10928 | yyrc = PrfQueryProfileData(a, b, c, d, e); | 
|---|
| 10929 | SetFS(sel); | 
|---|
| 10930 |  | 
|---|
| 10931 | return yyrc; | 
|---|
| 10932 | } | 
|---|
| 10933 |  | 
|---|
| 10934 | #undef  PrfQueryProfileData | 
|---|
| 10935 | #define PrfQueryProfileData _PrfQueryProfileData | 
|---|
| 10936 |  | 
|---|
| 10937 | inline LONG _PrfQueryProfileInt(HINI a, PCSZ b, PCSZ c, LONG d) | 
|---|
| 10938 | { | 
|---|
| 10939 | LONG yyrc; | 
|---|
| 10940 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10941 |  | 
|---|
| 10942 | yyrc = PrfQueryProfileInt(a, b, c, d); | 
|---|
| 10943 | SetFS(sel); | 
|---|
| 10944 |  | 
|---|
| 10945 | return yyrc; | 
|---|
| 10946 | } | 
|---|
| 10947 |  | 
|---|
| 10948 | #undef  PrfQueryProfileInt | 
|---|
| 10949 | #define PrfQueryProfileInt _PrfQueryProfileInt | 
|---|
| 10950 |  | 
|---|
| 10951 | inline BOOL _PrfQueryProfileSize(HINI a, PCSZ b, PCSZ c, PULONG d) | 
|---|
| 10952 | { | 
|---|
| 10953 | BOOL yyrc; | 
|---|
| 10954 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10955 |  | 
|---|
| 10956 | yyrc = PrfQueryProfileSize(a, b, c, d); | 
|---|
| 10957 | SetFS(sel); | 
|---|
| 10958 |  | 
|---|
| 10959 | return yyrc; | 
|---|
| 10960 | } | 
|---|
| 10961 |  | 
|---|
| 10962 | #undef  PrfQueryProfileSize | 
|---|
| 10963 | #define PrfQueryProfileSize _PrfQueryProfileSize | 
|---|
| 10964 |  | 
|---|
| 10965 | inline ULONG _PrfQueryProfileString(HINI a, PCSZ b, PCSZ c, PCSZ d, PVOID e, ULONG f) | 
|---|
| 10966 | { | 
|---|
| 10967 | ULONG yyrc; | 
|---|
| 10968 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10969 |  | 
|---|
| 10970 | yyrc = PrfQueryProfileString(a, b, c, d, e, f); | 
|---|
| 10971 | SetFS(sel); | 
|---|
| 10972 |  | 
|---|
| 10973 | return yyrc; | 
|---|
| 10974 | } | 
|---|
| 10975 |  | 
|---|
| 10976 | #undef  PrfQueryProfileString | 
|---|
| 10977 | #define PrfQueryProfileString _PrfQueryProfileString | 
|---|
| 10978 |  | 
|---|
| 10979 | inline BOOL _PrfReset(HAB a, PPRFPROFILE b) | 
|---|
| 10980 | { | 
|---|
| 10981 | BOOL yyrc; | 
|---|
| 10982 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10983 |  | 
|---|
| 10984 | yyrc = PrfReset(a, b); | 
|---|
| 10985 | SetFS(sel); | 
|---|
| 10986 |  | 
|---|
| 10987 | return yyrc; | 
|---|
| 10988 | } | 
|---|
| 10989 |  | 
|---|
| 10990 | #undef  PrfReset | 
|---|
| 10991 | #define PrfReset _PrfReset | 
|---|
| 10992 |  | 
|---|
| 10993 | inline BOOL _PrfWriteProfileData(HINI a, PCSZ b, PCSZ c, PVOID d, ULONG e) | 
|---|
| 10994 | { | 
|---|
| 10995 | BOOL yyrc; | 
|---|
| 10996 | USHORT sel = RestoreOS2FS(); | 
|---|
| 10997 |  | 
|---|
| 10998 | yyrc = PrfWriteProfileData(a, b, c, d, e); | 
|---|
| 10999 | SetFS(sel); | 
|---|
| 11000 |  | 
|---|
| 11001 | return yyrc; | 
|---|
| 11002 | } | 
|---|
| 11003 |  | 
|---|
| 11004 | #undef  PrfWriteProfileData | 
|---|
| 11005 | #define PrfWriteProfileData _PrfWriteProfileData | 
|---|
| 11006 |  | 
|---|
| 11007 | inline BOOL _PrfWriteProfileString(HINI a, PCSZ b, PCSZ c, PCSZ d) | 
|---|
| 11008 | { | 
|---|
| 11009 | BOOL yyrc; | 
|---|
| 11010 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11011 |  | 
|---|
| 11012 | yyrc = PrfWriteProfileString(a, b, c, d); | 
|---|
| 11013 | SetFS(sel); | 
|---|
| 11014 |  | 
|---|
| 11015 | return yyrc; | 
|---|
| 11016 | } | 
|---|
| 11017 |  | 
|---|
| 11018 | #undef  PrfWriteProfileString | 
|---|
| 11019 | #define PrfWriteProfileString _PrfWriteProfileString | 
|---|
| 11020 |  | 
|---|
| 11021 | #endif | 
|---|
| 11022 | #ifdef INCL_WINSTDFILE | 
|---|
| 11023 | inline MRESULT _WinDefFileDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d) | 
|---|
| 11024 | { | 
|---|
| 11025 | MRESULT yyrc; | 
|---|
| 11026 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11027 |  | 
|---|
| 11028 | yyrc = WinDefFileDlgProc(a, b, c, d); | 
|---|
| 11029 | SetFS(sel); | 
|---|
| 11030 |  | 
|---|
| 11031 | return yyrc; | 
|---|
| 11032 | } | 
|---|
| 11033 |  | 
|---|
| 11034 | #undef  WinDefFileDlgProc | 
|---|
| 11035 | #define WinDefFileDlgProc _WinDefFileDlgProc | 
|---|
| 11036 |  | 
|---|
| 11037 | inline HWND _WinFileDlg(HWND a, HWND b, PFILEDLG c) | 
|---|
| 11038 | { | 
|---|
| 11039 | HWND yyrc; | 
|---|
| 11040 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11041 |  | 
|---|
| 11042 | yyrc = WinFileDlg(a, b, c); | 
|---|
| 11043 | SetFS(sel); | 
|---|
| 11044 |  | 
|---|
| 11045 | return yyrc; | 
|---|
| 11046 | } | 
|---|
| 11047 |  | 
|---|
| 11048 | #undef  WinFileDlg | 
|---|
| 11049 | #define WinFileDlg _WinFileDlg | 
|---|
| 11050 |  | 
|---|
| 11051 | inline BOOL _WinFreeFileDlgList(PAPSZ a) | 
|---|
| 11052 | { | 
|---|
| 11053 | BOOL yyrc; | 
|---|
| 11054 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11055 |  | 
|---|
| 11056 | yyrc = WinFreeFileDlgList(a); | 
|---|
| 11057 | SetFS(sel); | 
|---|
| 11058 |  | 
|---|
| 11059 | return yyrc; | 
|---|
| 11060 | } | 
|---|
| 11061 |  | 
|---|
| 11062 | #undef  WinFreeFileDlgList | 
|---|
| 11063 | #define WinFreeFileDlgList _WinFreeFileDlgList | 
|---|
| 11064 |  | 
|---|
| 11065 | #endif | 
|---|
| 11066 | #ifdef INCL_WINSTDFONT | 
|---|
| 11067 | inline HWND _WinFontDlg(HWND a, HWND b, PFONTDLG c) | 
|---|
| 11068 | { | 
|---|
| 11069 | HWND yyrc; | 
|---|
| 11070 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11071 |  | 
|---|
| 11072 | yyrc = WinFontDlg(a, b, c); | 
|---|
| 11073 | SetFS(sel); | 
|---|
| 11074 |  | 
|---|
| 11075 | return yyrc; | 
|---|
| 11076 | } | 
|---|
| 11077 |  | 
|---|
| 11078 | #undef  WinFontDlg | 
|---|
| 11079 | #define WinFontDlg _WinFontDlg | 
|---|
| 11080 |  | 
|---|
| 11081 | inline MRESULT _WinDefFontDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d) | 
|---|
| 11082 | { | 
|---|
| 11083 | MRESULT yyrc; | 
|---|
| 11084 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11085 |  | 
|---|
| 11086 | yyrc = WinDefFontDlgProc(a, b, c, d); | 
|---|
| 11087 | SetFS(sel); | 
|---|
| 11088 |  | 
|---|
| 11089 | return yyrc; | 
|---|
| 11090 | } | 
|---|
| 11091 |  | 
|---|
| 11092 | #undef  WinDefFontDlgProc | 
|---|
| 11093 | #define WinDefFontDlgProc _WinDefFontDlgProc | 
|---|
| 11094 |  | 
|---|
| 11095 | #endif | 
|---|
| 11096 | #ifdef INCL_WINSTDDRAG | 
|---|
| 11097 | inline BOOL _DrgAcceptDroppedFiles(HWND a, PCSZ b, PCSZ c, ULONG d, ULONG e) | 
|---|
| 11098 | { | 
|---|
| 11099 | BOOL yyrc; | 
|---|
| 11100 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11101 |  | 
|---|
| 11102 | yyrc = DrgAcceptDroppedFiles(a, b, c, d, e); | 
|---|
| 11103 | SetFS(sel); | 
|---|
| 11104 |  | 
|---|
| 11105 | return yyrc; | 
|---|
| 11106 | } | 
|---|
| 11107 |  | 
|---|
| 11108 | #undef  DrgAcceptDroppedFiles | 
|---|
| 11109 | #define DrgAcceptDroppedFiles _DrgAcceptDroppedFiles | 
|---|
| 11110 |  | 
|---|
| 11111 | inline BOOL _DrgAccessDraginfo(PDRAGINFO a) | 
|---|
| 11112 | { | 
|---|
| 11113 | BOOL yyrc; | 
|---|
| 11114 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11115 |  | 
|---|
| 11116 | yyrc = DrgAccessDraginfo(a); | 
|---|
| 11117 | SetFS(sel); | 
|---|
| 11118 |  | 
|---|
| 11119 | return yyrc; | 
|---|
| 11120 | } | 
|---|
| 11121 |  | 
|---|
| 11122 | #undef  DrgAccessDraginfo | 
|---|
| 11123 | #define DrgAccessDraginfo _DrgAccessDraginfo | 
|---|
| 11124 |  | 
|---|
| 11125 | inline HSTR _DrgAddStrHandle(PCSZ a) | 
|---|
| 11126 | { | 
|---|
| 11127 | HSTR yyrc; | 
|---|
| 11128 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11129 |  | 
|---|
| 11130 | yyrc = DrgAddStrHandle(a); | 
|---|
| 11131 | SetFS(sel); | 
|---|
| 11132 |  | 
|---|
| 11133 | return yyrc; | 
|---|
| 11134 | } | 
|---|
| 11135 |  | 
|---|
| 11136 | #undef  DrgAddStrHandle | 
|---|
| 11137 | #define DrgAddStrHandle _DrgAddStrHandle | 
|---|
| 11138 |  | 
|---|
| 11139 | inline PDRAGINFO _DrgAllocDraginfo(ULONG a) | 
|---|
| 11140 | { | 
|---|
| 11141 | PDRAGINFO yyrc; | 
|---|
| 11142 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11143 |  | 
|---|
| 11144 | yyrc = DrgAllocDraginfo(a); | 
|---|
| 11145 | SetFS(sel); | 
|---|
| 11146 |  | 
|---|
| 11147 | return yyrc; | 
|---|
| 11148 | } | 
|---|
| 11149 |  | 
|---|
| 11150 | #undef  DrgAllocDraginfo | 
|---|
| 11151 | #define DrgAllocDraginfo _DrgAllocDraginfo | 
|---|
| 11152 |  | 
|---|
| 11153 | inline PDRAGTRANSFER _DrgAllocDragtransfer(ULONG a) | 
|---|
| 11154 | { | 
|---|
| 11155 | PDRAGTRANSFER yyrc; | 
|---|
| 11156 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11157 |  | 
|---|
| 11158 | yyrc = DrgAllocDragtransfer(a); | 
|---|
| 11159 | SetFS(sel); | 
|---|
| 11160 |  | 
|---|
| 11161 | return yyrc; | 
|---|
| 11162 | } | 
|---|
| 11163 |  | 
|---|
| 11164 | #undef  DrgAllocDragtransfer | 
|---|
| 11165 | #define DrgAllocDragtransfer _DrgAllocDragtransfer | 
|---|
| 11166 |  | 
|---|
| 11167 | inline BOOL _DrgCancelLazyDrag() | 
|---|
| 11168 | { | 
|---|
| 11169 | BOOL yyrc; | 
|---|
| 11170 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11171 |  | 
|---|
| 11172 | yyrc = DrgCancelLazyDrag(); | 
|---|
| 11173 | SetFS(sel); | 
|---|
| 11174 |  | 
|---|
| 11175 | return yyrc; | 
|---|
| 11176 | } | 
|---|
| 11177 |  | 
|---|
| 11178 | #undef  DrgCancelLazyDrag | 
|---|
| 11179 | #define DrgCancelLazyDrag _DrgCancelLazyDrag | 
|---|
| 11180 |  | 
|---|
| 11181 | inline BOOL _DrgDeleteDraginfoStrHandles(PDRAGINFO a) | 
|---|
| 11182 | { | 
|---|
| 11183 | BOOL yyrc; | 
|---|
| 11184 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11185 |  | 
|---|
| 11186 | yyrc = DrgDeleteDraginfoStrHandles(a); | 
|---|
| 11187 | SetFS(sel); | 
|---|
| 11188 |  | 
|---|
| 11189 | return yyrc; | 
|---|
| 11190 | } | 
|---|
| 11191 |  | 
|---|
| 11192 | #undef  DrgDeleteDraginfoStrHandles | 
|---|
| 11193 | #define DrgDeleteDraginfoStrHandles _DrgDeleteDraginfoStrHandles | 
|---|
| 11194 |  | 
|---|
| 11195 | inline BOOL _DrgDeleteStrHandle(HSTR a) | 
|---|
| 11196 | { | 
|---|
| 11197 | BOOL yyrc; | 
|---|
| 11198 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11199 |  | 
|---|
| 11200 | yyrc = DrgDeleteStrHandle(a); | 
|---|
| 11201 | SetFS(sel); | 
|---|
| 11202 |  | 
|---|
| 11203 | return yyrc; | 
|---|
| 11204 | } | 
|---|
| 11205 |  | 
|---|
| 11206 | #undef  DrgDeleteStrHandle | 
|---|
| 11207 | #define DrgDeleteStrHandle _DrgDeleteStrHandle | 
|---|
| 11208 |  | 
|---|
| 11209 | inline HWND _DrgDrag(HWND a, PDRAGINFO b, PDRAGIMAGE c, ULONG d, LONG e, PVOID f) | 
|---|
| 11210 | { | 
|---|
| 11211 | HWND yyrc; | 
|---|
| 11212 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11213 |  | 
|---|
| 11214 | yyrc = DrgDrag(a, b, c, d, e, f); | 
|---|
| 11215 | SetFS(sel); | 
|---|
| 11216 |  | 
|---|
| 11217 | return yyrc; | 
|---|
| 11218 | } | 
|---|
| 11219 |  | 
|---|
| 11220 | #undef  DrgDrag | 
|---|
| 11221 | #define DrgDrag _DrgDrag | 
|---|
| 11222 |  | 
|---|
| 11223 | inline BOOL _DrgDragFiles(HWND a, PCSZ *b, PCSZ *c, PCSZ *d, ULONG e, HPOINTER f, ULONG g, BOOL h, ULONG i) | 
|---|
| 11224 | { | 
|---|
| 11225 | BOOL yyrc; | 
|---|
| 11226 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11227 |  | 
|---|
| 11228 | yyrc = DrgDragFiles(a, b, c, d, e, f, g, h, i); | 
|---|
| 11229 | SetFS(sel); | 
|---|
| 11230 |  | 
|---|
| 11231 | return yyrc; | 
|---|
| 11232 | } | 
|---|
| 11233 |  | 
|---|
| 11234 | #undef  DrgDragFiles | 
|---|
| 11235 | #define DrgDragFiles _DrgDragFiles | 
|---|
| 11236 |  | 
|---|
| 11237 | inline BOOL _DrgFreeDraginfo(PDRAGINFO a) | 
|---|
| 11238 | { | 
|---|
| 11239 | BOOL yyrc; | 
|---|
| 11240 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11241 |  | 
|---|
| 11242 | yyrc = DrgFreeDraginfo(a); | 
|---|
| 11243 | SetFS(sel); | 
|---|
| 11244 |  | 
|---|
| 11245 | return yyrc; | 
|---|
| 11246 | } | 
|---|
| 11247 |  | 
|---|
| 11248 | #undef  DrgFreeDraginfo | 
|---|
| 11249 | #define DrgFreeDraginfo _DrgFreeDraginfo | 
|---|
| 11250 |  | 
|---|
| 11251 | inline BOOL _DrgFreeDragtransfer(PDRAGTRANSFER a) | 
|---|
| 11252 | { | 
|---|
| 11253 | BOOL yyrc; | 
|---|
| 11254 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11255 |  | 
|---|
| 11256 | yyrc = DrgFreeDragtransfer(a); | 
|---|
| 11257 | SetFS(sel); | 
|---|
| 11258 |  | 
|---|
| 11259 | return yyrc; | 
|---|
| 11260 | } | 
|---|
| 11261 |  | 
|---|
| 11262 | #undef  DrgFreeDragtransfer | 
|---|
| 11263 | #define DrgFreeDragtransfer _DrgFreeDragtransfer | 
|---|
| 11264 |  | 
|---|
| 11265 | inline HPS _DrgGetPS(HWND a) | 
|---|
| 11266 | { | 
|---|
| 11267 | HPS yyrc; | 
|---|
| 11268 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11269 |  | 
|---|
| 11270 | yyrc = DrgGetPS(a); | 
|---|
| 11271 | SetFS(sel); | 
|---|
| 11272 |  | 
|---|
| 11273 | return yyrc; | 
|---|
| 11274 | } | 
|---|
| 11275 |  | 
|---|
| 11276 | #undef  DrgGetPS | 
|---|
| 11277 | #define DrgGetPS _DrgGetPS | 
|---|
| 11278 |  | 
|---|
| 11279 | inline BOOL _DrgLazyDrag(HWND a, PDRAGINFO b, PDRAGIMAGE c, ULONG d, PVOID e) | 
|---|
| 11280 | { | 
|---|
| 11281 | BOOL yyrc; | 
|---|
| 11282 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11283 |  | 
|---|
| 11284 | yyrc = DrgLazyDrag(a, b, c, d, e); | 
|---|
| 11285 | SetFS(sel); | 
|---|
| 11286 |  | 
|---|
| 11287 | return yyrc; | 
|---|
| 11288 | } | 
|---|
| 11289 |  | 
|---|
| 11290 | #undef  DrgLazyDrag | 
|---|
| 11291 | #define DrgLazyDrag _DrgLazyDrag | 
|---|
| 11292 |  | 
|---|
| 11293 | inline BOOL _DrgLazyDrop(HWND a, ULONG b, PPOINTL c) | 
|---|
| 11294 | { | 
|---|
| 11295 | BOOL yyrc; | 
|---|
| 11296 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11297 |  | 
|---|
| 11298 | yyrc = DrgLazyDrop(a, b, c); | 
|---|
| 11299 | SetFS(sel); | 
|---|
| 11300 |  | 
|---|
| 11301 | return yyrc; | 
|---|
| 11302 | } | 
|---|
| 11303 |  | 
|---|
| 11304 | #undef  DrgLazyDrop | 
|---|
| 11305 | #define DrgLazyDrop _DrgLazyDrop | 
|---|
| 11306 |  | 
|---|
| 11307 | inline BOOL _DrgPostTransferMsg(HWND a, ULONG b, PDRAGTRANSFER c, ULONG d, ULONG e, BOOL f) | 
|---|
| 11308 | { | 
|---|
| 11309 | BOOL yyrc; | 
|---|
| 11310 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11311 |  | 
|---|
| 11312 | yyrc = DrgPostTransferMsg(a, b, c, d, e, f); | 
|---|
| 11313 | SetFS(sel); | 
|---|
| 11314 |  | 
|---|
| 11315 | return yyrc; | 
|---|
| 11316 | } | 
|---|
| 11317 |  | 
|---|
| 11318 | #undef  DrgPostTransferMsg | 
|---|
| 11319 | #define DrgPostTransferMsg _DrgPostTransferMsg | 
|---|
| 11320 |  | 
|---|
| 11321 | inline BOOL _DrgPushDraginfo(PDRAGINFO a, HWND b) | 
|---|
| 11322 | { | 
|---|
| 11323 | BOOL yyrc; | 
|---|
| 11324 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11325 |  | 
|---|
| 11326 | yyrc = DrgPushDraginfo(a, b); | 
|---|
| 11327 | SetFS(sel); | 
|---|
| 11328 |  | 
|---|
| 11329 | return yyrc; | 
|---|
| 11330 | } | 
|---|
| 11331 |  | 
|---|
| 11332 | #undef  DrgPushDraginfo | 
|---|
| 11333 | #define DrgPushDraginfo _DrgPushDraginfo | 
|---|
| 11334 |  | 
|---|
| 11335 | inline PDRAGINFO _DrgQueryDraginfoPtr(PDRAGINFO a) | 
|---|
| 11336 | { | 
|---|
| 11337 | PDRAGINFO yyrc; | 
|---|
| 11338 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11339 |  | 
|---|
| 11340 | yyrc = DrgQueryDraginfoPtr(a); | 
|---|
| 11341 | SetFS(sel); | 
|---|
| 11342 |  | 
|---|
| 11343 | return yyrc; | 
|---|
| 11344 | } | 
|---|
| 11345 |  | 
|---|
| 11346 | #undef  DrgQueryDraginfoPtr | 
|---|
| 11347 | #define DrgQueryDraginfoPtr _DrgQueryDraginfoPtr | 
|---|
| 11348 |  | 
|---|
| 11349 | inline PDRAGINFO _DrgQueryDraginfoPtrFromHwnd(HWND a) | 
|---|
| 11350 | { | 
|---|
| 11351 | PDRAGINFO yyrc; | 
|---|
| 11352 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11353 |  | 
|---|
| 11354 | yyrc = DrgQueryDraginfoPtrFromHwnd(a); | 
|---|
| 11355 | SetFS(sel); | 
|---|
| 11356 |  | 
|---|
| 11357 | return yyrc; | 
|---|
| 11358 | } | 
|---|
| 11359 |  | 
|---|
| 11360 | #undef  DrgQueryDraginfoPtrFromHwnd | 
|---|
| 11361 | #define DrgQueryDraginfoPtrFromHwnd _DrgQueryDraginfoPtrFromHwnd | 
|---|
| 11362 |  | 
|---|
| 11363 | inline PDRAGINFO _DrgQueryDraginfoPtrFromDragitem(PDRAGITEM a) | 
|---|
| 11364 | { | 
|---|
| 11365 | PDRAGINFO yyrc; | 
|---|
| 11366 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11367 |  | 
|---|
| 11368 | yyrc = DrgQueryDraginfoPtrFromDragitem(a); | 
|---|
| 11369 | SetFS(sel); | 
|---|
| 11370 |  | 
|---|
| 11371 | return yyrc; | 
|---|
| 11372 | } | 
|---|
| 11373 |  | 
|---|
| 11374 | #undef  DrgQueryDraginfoPtrFromDragitem | 
|---|
| 11375 | #define DrgQueryDraginfoPtrFromDragitem _DrgQueryDraginfoPtrFromDragitem | 
|---|
| 11376 |  | 
|---|
| 11377 | inline BOOL _DrgQueryDragitem(PDRAGINFO a, ULONG b, PDRAGITEM c, ULONG d) | 
|---|
| 11378 | { | 
|---|
| 11379 | BOOL yyrc; | 
|---|
| 11380 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11381 |  | 
|---|
| 11382 | yyrc = DrgQueryDragitem(a, b, c, d); | 
|---|
| 11383 | SetFS(sel); | 
|---|
| 11384 |  | 
|---|
| 11385 | return yyrc; | 
|---|
| 11386 | } | 
|---|
| 11387 |  | 
|---|
| 11388 | #undef  DrgQueryDragitem | 
|---|
| 11389 | #define DrgQueryDragitem _DrgQueryDragitem | 
|---|
| 11390 |  | 
|---|
| 11391 | inline ULONG _DrgQueryDragitemCount(PDRAGINFO a) | 
|---|
| 11392 | { | 
|---|
| 11393 | ULONG yyrc; | 
|---|
| 11394 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11395 |  | 
|---|
| 11396 | yyrc = DrgQueryDragitemCount(a); | 
|---|
| 11397 | SetFS(sel); | 
|---|
| 11398 |  | 
|---|
| 11399 | return yyrc; | 
|---|
| 11400 | } | 
|---|
| 11401 |  | 
|---|
| 11402 | #undef  DrgQueryDragitemCount | 
|---|
| 11403 | #define DrgQueryDragitemCount _DrgQueryDragitemCount | 
|---|
| 11404 |  | 
|---|
| 11405 | inline PDRAGITEM _DrgQueryDragitemPtr(PDRAGINFO a, ULONG b) | 
|---|
| 11406 | { | 
|---|
| 11407 | PDRAGITEM yyrc; | 
|---|
| 11408 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11409 |  | 
|---|
| 11410 | yyrc = DrgQueryDragitemPtr(a, b); | 
|---|
| 11411 | SetFS(sel); | 
|---|
| 11412 |  | 
|---|
| 11413 | return yyrc; | 
|---|
| 11414 | } | 
|---|
| 11415 |  | 
|---|
| 11416 | #undef  DrgQueryDragitemPtr | 
|---|
| 11417 | #define DrgQueryDragitemPtr _DrgQueryDragitemPtr | 
|---|
| 11418 |  | 
|---|
| 11419 | inline ULONG _DrgQueryDragStatus() | 
|---|
| 11420 | { | 
|---|
| 11421 | ULONG yyrc; | 
|---|
| 11422 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11423 |  | 
|---|
| 11424 | yyrc = DrgQueryDragStatus(); | 
|---|
| 11425 | SetFS(sel); | 
|---|
| 11426 |  | 
|---|
| 11427 | return yyrc; | 
|---|
| 11428 | } | 
|---|
| 11429 |  | 
|---|
| 11430 | #undef  DrgQueryDragStatus | 
|---|
| 11431 | #define DrgQueryDragStatus _DrgQueryDragStatus | 
|---|
| 11432 |  | 
|---|
| 11433 | inline BOOL _DrgQueryNativeRMF(PDRAGITEM a, ULONG b, PCHAR c) | 
|---|
| 11434 | { | 
|---|
| 11435 | BOOL yyrc; | 
|---|
| 11436 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11437 |  | 
|---|
| 11438 | yyrc = DrgQueryNativeRMF(a, b, c); | 
|---|
| 11439 | SetFS(sel); | 
|---|
| 11440 |  | 
|---|
| 11441 | return yyrc; | 
|---|
| 11442 | } | 
|---|
| 11443 |  | 
|---|
| 11444 | #undef  DrgQueryNativeRMF | 
|---|
| 11445 | #define DrgQueryNativeRMF _DrgQueryNativeRMF | 
|---|
| 11446 |  | 
|---|
| 11447 | inline ULONG _DrgQueryNativeRMFLen(PDRAGITEM a) | 
|---|
| 11448 | { | 
|---|
| 11449 | ULONG yyrc; | 
|---|
| 11450 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11451 |  | 
|---|
| 11452 | yyrc = DrgQueryNativeRMFLen(a); | 
|---|
| 11453 | SetFS(sel); | 
|---|
| 11454 |  | 
|---|
| 11455 | return yyrc; | 
|---|
| 11456 | } | 
|---|
| 11457 |  | 
|---|
| 11458 | #undef  DrgQueryNativeRMFLen | 
|---|
| 11459 | #define DrgQueryNativeRMFLen _DrgQueryNativeRMFLen | 
|---|
| 11460 |  | 
|---|
| 11461 | inline ULONG _DrgQueryStrName(HSTR a, ULONG b, PSZ c) | 
|---|
| 11462 | { | 
|---|
| 11463 | ULONG yyrc; | 
|---|
| 11464 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11465 |  | 
|---|
| 11466 | yyrc = DrgQueryStrName(a, b, c); | 
|---|
| 11467 | SetFS(sel); | 
|---|
| 11468 |  | 
|---|
| 11469 | return yyrc; | 
|---|
| 11470 | } | 
|---|
| 11471 |  | 
|---|
| 11472 | #undef  DrgQueryStrName | 
|---|
| 11473 | #define DrgQueryStrName _DrgQueryStrName | 
|---|
| 11474 |  | 
|---|
| 11475 | inline ULONG _DrgQueryStrNameLen(HSTR a) | 
|---|
| 11476 | { | 
|---|
| 11477 | ULONG yyrc; | 
|---|
| 11478 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11479 |  | 
|---|
| 11480 | yyrc = DrgQueryStrNameLen(a); | 
|---|
| 11481 | SetFS(sel); | 
|---|
| 11482 |  | 
|---|
| 11483 | return yyrc; | 
|---|
| 11484 | } | 
|---|
| 11485 |  | 
|---|
| 11486 | #undef  DrgQueryStrNameLen | 
|---|
| 11487 | #define DrgQueryStrNameLen _DrgQueryStrNameLen | 
|---|
| 11488 |  | 
|---|
| 11489 | inline BOOL _DrgQueryTrueType(PDRAGITEM a, ULONG b, PSZ c) | 
|---|
| 11490 | { | 
|---|
| 11491 | BOOL yyrc; | 
|---|
| 11492 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11493 |  | 
|---|
| 11494 | yyrc = DrgQueryTrueType(a, b, c); | 
|---|
| 11495 | SetFS(sel); | 
|---|
| 11496 |  | 
|---|
| 11497 | return yyrc; | 
|---|
| 11498 | } | 
|---|
| 11499 |  | 
|---|
| 11500 | #undef  DrgQueryTrueType | 
|---|
| 11501 | #define DrgQueryTrueType _DrgQueryTrueType | 
|---|
| 11502 |  | 
|---|
| 11503 | inline ULONG _DrgQueryTrueTypeLen(PDRAGITEM a) | 
|---|
| 11504 | { | 
|---|
| 11505 | ULONG yyrc; | 
|---|
| 11506 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11507 |  | 
|---|
| 11508 | yyrc = DrgQueryTrueTypeLen(a); | 
|---|
| 11509 | SetFS(sel); | 
|---|
| 11510 |  | 
|---|
| 11511 | return yyrc; | 
|---|
| 11512 | } | 
|---|
| 11513 |  | 
|---|
| 11514 | #undef  DrgQueryTrueTypeLen | 
|---|
| 11515 | #define DrgQueryTrueTypeLen _DrgQueryTrueTypeLen | 
|---|
| 11516 |  | 
|---|
| 11517 | inline PDRAGINFO _DrgReallocDraginfo(PDRAGINFO a, ULONG b) | 
|---|
| 11518 | { | 
|---|
| 11519 | PDRAGINFO yyrc; | 
|---|
| 11520 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11521 |  | 
|---|
| 11522 | yyrc = DrgReallocDraginfo(a, b); | 
|---|
| 11523 | SetFS(sel); | 
|---|
| 11524 |  | 
|---|
| 11525 | return yyrc; | 
|---|
| 11526 | } | 
|---|
| 11527 |  | 
|---|
| 11528 | #undef  DrgReallocDraginfo | 
|---|
| 11529 | #define DrgReallocDraginfo _DrgReallocDraginfo | 
|---|
| 11530 |  | 
|---|
| 11531 | inline BOOL _DrgReleasePS(HPS a) | 
|---|
| 11532 | { | 
|---|
| 11533 | BOOL yyrc; | 
|---|
| 11534 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11535 |  | 
|---|
| 11536 | yyrc = DrgReleasePS(a); | 
|---|
| 11537 | SetFS(sel); | 
|---|
| 11538 |  | 
|---|
| 11539 | return yyrc; | 
|---|
| 11540 | } | 
|---|
| 11541 |  | 
|---|
| 11542 | #undef  DrgReleasePS | 
|---|
| 11543 | #define DrgReleasePS _DrgReleasePS | 
|---|
| 11544 |  | 
|---|
| 11545 | inline MRESULT _DrgSendTransferMsg(HWND a, ULONG b, MPARAM c, MPARAM d) | 
|---|
| 11546 | { | 
|---|
| 11547 | MRESULT yyrc; | 
|---|
| 11548 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11549 |  | 
|---|
| 11550 | yyrc = DrgSendTransferMsg(a, b, c, d); | 
|---|
| 11551 | SetFS(sel); | 
|---|
| 11552 |  | 
|---|
| 11553 | return yyrc; | 
|---|
| 11554 | } | 
|---|
| 11555 |  | 
|---|
| 11556 | #undef  DrgSendTransferMsg | 
|---|
| 11557 | #define DrgSendTransferMsg _DrgSendTransferMsg | 
|---|
| 11558 |  | 
|---|
| 11559 | inline BOOL _DrgSetDragImage(PDRAGINFO a, PDRAGIMAGE b, ULONG c, PVOID d) | 
|---|
| 11560 | { | 
|---|
| 11561 | BOOL yyrc; | 
|---|
| 11562 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11563 |  | 
|---|
| 11564 | yyrc = DrgSetDragImage(a, b, c, d); | 
|---|
| 11565 | SetFS(sel); | 
|---|
| 11566 |  | 
|---|
| 11567 | return yyrc; | 
|---|
| 11568 | } | 
|---|
| 11569 |  | 
|---|
| 11570 | #undef  DrgSetDragImage | 
|---|
| 11571 | #define DrgSetDragImage _DrgSetDragImage | 
|---|
| 11572 |  | 
|---|
| 11573 | inline BOOL _DrgSetDragitem(PDRAGINFO a, PDRAGITEM b, ULONG c, ULONG d) | 
|---|
| 11574 | { | 
|---|
| 11575 | BOOL yyrc; | 
|---|
| 11576 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11577 |  | 
|---|
| 11578 | yyrc = DrgSetDragitem(a, b, c, d); | 
|---|
| 11579 | SetFS(sel); | 
|---|
| 11580 |  | 
|---|
| 11581 | return yyrc; | 
|---|
| 11582 | } | 
|---|
| 11583 |  | 
|---|
| 11584 | #undef  DrgSetDragitem | 
|---|
| 11585 | #define DrgSetDragitem _DrgSetDragitem | 
|---|
| 11586 |  | 
|---|
| 11587 | inline BOOL _DrgSetDragPointer(PDRAGINFO a, HPOINTER b) | 
|---|
| 11588 | { | 
|---|
| 11589 | BOOL yyrc; | 
|---|
| 11590 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11591 |  | 
|---|
| 11592 | yyrc = DrgSetDragPointer(a, b); | 
|---|
| 11593 | SetFS(sel); | 
|---|
| 11594 |  | 
|---|
| 11595 | return yyrc; | 
|---|
| 11596 | } | 
|---|
| 11597 |  | 
|---|
| 11598 | #undef  DrgSetDragPointer | 
|---|
| 11599 | #define DrgSetDragPointer _DrgSetDragPointer | 
|---|
| 11600 |  | 
|---|
| 11601 | inline BOOL _DrgVerifyNativeRMF(PDRAGITEM a, PCSZ b) | 
|---|
| 11602 | { | 
|---|
| 11603 | BOOL yyrc; | 
|---|
| 11604 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11605 |  | 
|---|
| 11606 | yyrc = DrgVerifyNativeRMF(a, b); | 
|---|
| 11607 | SetFS(sel); | 
|---|
| 11608 |  | 
|---|
| 11609 | return yyrc; | 
|---|
| 11610 | } | 
|---|
| 11611 |  | 
|---|
| 11612 | #undef  DrgVerifyNativeRMF | 
|---|
| 11613 | #define DrgVerifyNativeRMF _DrgVerifyNativeRMF | 
|---|
| 11614 |  | 
|---|
| 11615 | inline BOOL _DrgVerifyRMF(PDRAGITEM a, PCSZ b, PCSZ c) | 
|---|
| 11616 | { | 
|---|
| 11617 | BOOL yyrc; | 
|---|
| 11618 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11619 |  | 
|---|
| 11620 | yyrc = DrgVerifyRMF(a, b, c); | 
|---|
| 11621 | SetFS(sel); | 
|---|
| 11622 |  | 
|---|
| 11623 | return yyrc; | 
|---|
| 11624 | } | 
|---|
| 11625 |  | 
|---|
| 11626 | #undef  DrgVerifyRMF | 
|---|
| 11627 | #define DrgVerifyRMF _DrgVerifyRMF | 
|---|
| 11628 |  | 
|---|
| 11629 | inline BOOL _DrgVerifyTrueType(PDRAGITEM a, PCSZ b) | 
|---|
| 11630 | { | 
|---|
| 11631 | BOOL yyrc; | 
|---|
| 11632 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11633 |  | 
|---|
| 11634 | yyrc = DrgVerifyTrueType(a, b); | 
|---|
| 11635 | SetFS(sel); | 
|---|
| 11636 |  | 
|---|
| 11637 | return yyrc; | 
|---|
| 11638 | } | 
|---|
| 11639 |  | 
|---|
| 11640 | #undef  DrgVerifyTrueType | 
|---|
| 11641 | #define DrgVerifyTrueType _DrgVerifyTrueType | 
|---|
| 11642 |  | 
|---|
| 11643 | inline BOOL _DrgVerifyType(PDRAGITEM a, PCSZ b) | 
|---|
| 11644 | { | 
|---|
| 11645 | BOOL yyrc; | 
|---|
| 11646 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11647 |  | 
|---|
| 11648 | yyrc = DrgVerifyType(a, b); | 
|---|
| 11649 | SetFS(sel); | 
|---|
| 11650 |  | 
|---|
| 11651 | return yyrc; | 
|---|
| 11652 | } | 
|---|
| 11653 |  | 
|---|
| 11654 | #undef  DrgVerifyType | 
|---|
| 11655 | #define DrgVerifyType _DrgVerifyType | 
|---|
| 11656 |  | 
|---|
| 11657 | inline BOOL _DrgVerifyTypeSet(PDRAGITEM a, PCSZ b, ULONG c, PSZ d) | 
|---|
| 11658 | { | 
|---|
| 11659 | BOOL yyrc; | 
|---|
| 11660 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11661 |  | 
|---|
| 11662 | yyrc = DrgVerifyTypeSet(a, b, c, d); | 
|---|
| 11663 | SetFS(sel); | 
|---|
| 11664 |  | 
|---|
| 11665 | return yyrc; | 
|---|
| 11666 | } | 
|---|
| 11667 |  | 
|---|
| 11668 | #undef  DrgVerifyTypeSet | 
|---|
| 11669 | #define DrgVerifyTypeSet _DrgVerifyTypeSet | 
|---|
| 11670 |  | 
|---|
| 11671 | #endif | 
|---|
| 11672 | #ifdef INCL_WPCLASS | 
|---|
| 11673 | inline HOBJECT _WinCopyObject(HOBJECT a, HOBJECT b, ULONG c) | 
|---|
| 11674 | { | 
|---|
| 11675 | HOBJECT yyrc; | 
|---|
| 11676 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11677 |  | 
|---|
| 11678 | yyrc = WinCopyObject(a, b, c); | 
|---|
| 11679 | SetFS(sel); | 
|---|
| 11680 |  | 
|---|
| 11681 | return yyrc; | 
|---|
| 11682 | } | 
|---|
| 11683 |  | 
|---|
| 11684 | #undef  WinCopyObject | 
|---|
| 11685 | #define WinCopyObject _WinCopyObject | 
|---|
| 11686 |  | 
|---|
| 11687 | inline HOBJECT _WinCreateObject(PCSZ a, PCSZ b, PCSZ c, PCSZ d, ULONG e) | 
|---|
| 11688 | { | 
|---|
| 11689 | HOBJECT yyrc; | 
|---|
| 11690 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11691 |  | 
|---|
| 11692 | yyrc = WinCreateObject(a, b, c, d, e); | 
|---|
| 11693 | SetFS(sel); | 
|---|
| 11694 |  | 
|---|
| 11695 | return yyrc; | 
|---|
| 11696 | } | 
|---|
| 11697 |  | 
|---|
| 11698 | #undef  WinCreateObject | 
|---|
| 11699 | #define WinCreateObject _WinCreateObject | 
|---|
| 11700 |  | 
|---|
| 11701 | inline HOBJECT _WinCreateShadow(HOBJECT a, HOBJECT b, ULONG c) | 
|---|
| 11702 | { | 
|---|
| 11703 | HOBJECT yyrc; | 
|---|
| 11704 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11705 |  | 
|---|
| 11706 | yyrc = WinCreateShadow(a, b, c); | 
|---|
| 11707 | SetFS(sel); | 
|---|
| 11708 |  | 
|---|
| 11709 | return yyrc; | 
|---|
| 11710 | } | 
|---|
| 11711 |  | 
|---|
| 11712 | #undef  WinCreateShadow | 
|---|
| 11713 | #define WinCreateShadow _WinCreateShadow | 
|---|
| 11714 |  | 
|---|
| 11715 | inline BOOL _WinDeregisterObjectClass(PCSZ a) | 
|---|
| 11716 | { | 
|---|
| 11717 | BOOL yyrc; | 
|---|
| 11718 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11719 |  | 
|---|
| 11720 | yyrc = WinDeregisterObjectClass(a); | 
|---|
| 11721 | SetFS(sel); | 
|---|
| 11722 |  | 
|---|
| 11723 | return yyrc; | 
|---|
| 11724 | } | 
|---|
| 11725 |  | 
|---|
| 11726 | #undef  WinDeregisterObjectClass | 
|---|
| 11727 | #define WinDeregisterObjectClass _WinDeregisterObjectClass | 
|---|
| 11728 |  | 
|---|
| 11729 | inline BOOL _WinDestroyObject(HOBJECT a) | 
|---|
| 11730 | { | 
|---|
| 11731 | BOOL yyrc; | 
|---|
| 11732 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11733 |  | 
|---|
| 11734 | yyrc = WinDestroyObject(a); | 
|---|
| 11735 | SetFS(sel); | 
|---|
| 11736 |  | 
|---|
| 11737 | return yyrc; | 
|---|
| 11738 | } | 
|---|
| 11739 |  | 
|---|
| 11740 | #undef  WinDestroyObject | 
|---|
| 11741 | #define WinDestroyObject _WinDestroyObject | 
|---|
| 11742 |  | 
|---|
| 11743 | inline BOOL _WinEnumObjectClasses(POBJCLASS a, PULONG b) | 
|---|
| 11744 | { | 
|---|
| 11745 | BOOL yyrc; | 
|---|
| 11746 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11747 |  | 
|---|
| 11748 | yyrc = WinEnumObjectClasses(a, b); | 
|---|
| 11749 | SetFS(sel); | 
|---|
| 11750 |  | 
|---|
| 11751 | return yyrc; | 
|---|
| 11752 | } | 
|---|
| 11753 |  | 
|---|
| 11754 | #undef  WinEnumObjectClasses | 
|---|
| 11755 | #define WinEnumObjectClasses _WinEnumObjectClasses | 
|---|
| 11756 |  | 
|---|
| 11757 | inline BOOL _WinIsSOMDDReady() | 
|---|
| 11758 | { | 
|---|
| 11759 | BOOL yyrc; | 
|---|
| 11760 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11761 |  | 
|---|
| 11762 | yyrc = WinIsSOMDDReady(); | 
|---|
| 11763 | SetFS(sel); | 
|---|
| 11764 |  | 
|---|
| 11765 | return yyrc; | 
|---|
| 11766 | } | 
|---|
| 11767 |  | 
|---|
| 11768 | #undef  WinIsSOMDDReady | 
|---|
| 11769 | #define WinIsSOMDDReady _WinIsSOMDDReady | 
|---|
| 11770 |  | 
|---|
| 11771 | inline BOOL _WinIsWPDServerReady() | 
|---|
| 11772 | { | 
|---|
| 11773 | BOOL yyrc; | 
|---|
| 11774 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11775 |  | 
|---|
| 11776 | yyrc = WinIsWPDServerReady(); | 
|---|
| 11777 | SetFS(sel); | 
|---|
| 11778 |  | 
|---|
| 11779 | return yyrc; | 
|---|
| 11780 | } | 
|---|
| 11781 |  | 
|---|
| 11782 | #undef  WinIsWPDServerReady | 
|---|
| 11783 | #define WinIsWPDServerReady _WinIsWPDServerReady | 
|---|
| 11784 |  | 
|---|
| 11785 | inline HOBJECT _WinMoveObject(HOBJECT a, HOBJECT b, ULONG c) | 
|---|
| 11786 | { | 
|---|
| 11787 | HOBJECT yyrc; | 
|---|
| 11788 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11789 |  | 
|---|
| 11790 | yyrc = WinMoveObject(a, b, c); | 
|---|
| 11791 | SetFS(sel); | 
|---|
| 11792 |  | 
|---|
| 11793 | return yyrc; | 
|---|
| 11794 | } | 
|---|
| 11795 |  | 
|---|
| 11796 | #undef  WinMoveObject | 
|---|
| 11797 | #define WinMoveObject _WinMoveObject | 
|---|
| 11798 |  | 
|---|
| 11799 | inline BOOL _WinOpenObject(HOBJECT a, ULONG b, BOOL c) | 
|---|
| 11800 | { | 
|---|
| 11801 | BOOL yyrc; | 
|---|
| 11802 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11803 |  | 
|---|
| 11804 | yyrc = WinOpenObject(a, b, c); | 
|---|
| 11805 | SetFS(sel); | 
|---|
| 11806 |  | 
|---|
| 11807 | return yyrc; | 
|---|
| 11808 | } | 
|---|
| 11809 |  | 
|---|
| 11810 | #undef  WinOpenObject | 
|---|
| 11811 | #define WinOpenObject _WinOpenObject | 
|---|
| 11812 |  | 
|---|
| 11813 | inline BOOL _WinQueryActiveDesktopPathname(PSZ a, ULONG b) | 
|---|
| 11814 | { | 
|---|
| 11815 | BOOL yyrc; | 
|---|
| 11816 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11817 |  | 
|---|
| 11818 | yyrc = WinQueryActiveDesktopPathname(a, b); | 
|---|
| 11819 | SetFS(sel); | 
|---|
| 11820 |  | 
|---|
| 11821 | return yyrc; | 
|---|
| 11822 | } | 
|---|
| 11823 |  | 
|---|
| 11824 | #undef  WinQueryActiveDesktopPathname | 
|---|
| 11825 | #define WinQueryActiveDesktopPathname _WinQueryActiveDesktopPathname | 
|---|
| 11826 |  | 
|---|
| 11827 | inline HOBJECT _WinQueryObject(PCSZ a) | 
|---|
| 11828 | { | 
|---|
| 11829 | HOBJECT yyrc; | 
|---|
| 11830 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11831 |  | 
|---|
| 11832 | yyrc = WinQueryObject(a); | 
|---|
| 11833 | SetFS(sel); | 
|---|
| 11834 |  | 
|---|
| 11835 | return yyrc; | 
|---|
| 11836 | } | 
|---|
| 11837 |  | 
|---|
| 11838 | #undef  WinQueryObject | 
|---|
| 11839 | #define WinQueryObject _WinQueryObject | 
|---|
| 11840 |  | 
|---|
| 11841 | inline BOOL _WinQueryObjectPath(HOBJECT a, PSZ b, ULONG c) | 
|---|
| 11842 | { | 
|---|
| 11843 | BOOL yyrc; | 
|---|
| 11844 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11845 |  | 
|---|
| 11846 | yyrc = WinQueryObjectPath(a, b, c); | 
|---|
| 11847 | SetFS(sel); | 
|---|
| 11848 |  | 
|---|
| 11849 | return yyrc; | 
|---|
| 11850 | } | 
|---|
| 11851 |  | 
|---|
| 11852 | #undef  WinQueryObjectPath | 
|---|
| 11853 | #define WinQueryObjectPath _WinQueryObjectPath | 
|---|
| 11854 |  | 
|---|
| 11855 | inline BOOL _WinRegisterObjectClass(PCSZ a, PCSZ b) | 
|---|
| 11856 | { | 
|---|
| 11857 | BOOL yyrc; | 
|---|
| 11858 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11859 |  | 
|---|
| 11860 | yyrc = WinRegisterObjectClass(a, b); | 
|---|
| 11861 | SetFS(sel); | 
|---|
| 11862 |  | 
|---|
| 11863 | return yyrc; | 
|---|
| 11864 | } | 
|---|
| 11865 |  | 
|---|
| 11866 | #undef  WinRegisterObjectClass | 
|---|
| 11867 | #define WinRegisterObjectClass _WinRegisterObjectClass | 
|---|
| 11868 |  | 
|---|
| 11869 | inline BOOL _WinReplaceObjectClass(PCSZ a, PCSZ b, BOOL c) | 
|---|
| 11870 | { | 
|---|
| 11871 | BOOL yyrc; | 
|---|
| 11872 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11873 |  | 
|---|
| 11874 | yyrc = WinReplaceObjectClass(a, b, c); | 
|---|
| 11875 | SetFS(sel); | 
|---|
| 11876 |  | 
|---|
| 11877 | return yyrc; | 
|---|
| 11878 | } | 
|---|
| 11879 |  | 
|---|
| 11880 | #undef  WinReplaceObjectClass | 
|---|
| 11881 | #define WinReplaceObjectClass _WinReplaceObjectClass | 
|---|
| 11882 |  | 
|---|
| 11883 | inline ULONG _WinRestartSOMDD(BOOL a) | 
|---|
| 11884 | { | 
|---|
| 11885 | ULONG yyrc; | 
|---|
| 11886 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11887 |  | 
|---|
| 11888 | yyrc = WinRestartSOMDD(a); | 
|---|
| 11889 | SetFS(sel); | 
|---|
| 11890 |  | 
|---|
| 11891 | return yyrc; | 
|---|
| 11892 | } | 
|---|
| 11893 |  | 
|---|
| 11894 | #undef  WinRestartSOMDD | 
|---|
| 11895 | #define WinRestartSOMDD _WinRestartSOMDD | 
|---|
| 11896 |  | 
|---|
| 11897 | inline ULONG _WinRestartWPDServer(BOOL a) | 
|---|
| 11898 | { | 
|---|
| 11899 | ULONG yyrc; | 
|---|
| 11900 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11901 |  | 
|---|
| 11902 | yyrc = WinRestartWPDServer(a); | 
|---|
| 11903 | SetFS(sel); | 
|---|
| 11904 |  | 
|---|
| 11905 | return yyrc; | 
|---|
| 11906 | } | 
|---|
| 11907 |  | 
|---|
| 11908 | #undef  WinRestartWPDServer | 
|---|
| 11909 | #define WinRestartWPDServer _WinRestartWPDServer | 
|---|
| 11910 |  | 
|---|
| 11911 | inline BOOL _WinSaveObject(HOBJECT a, BOOL b) | 
|---|
| 11912 | { | 
|---|
| 11913 | BOOL yyrc; | 
|---|
| 11914 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11915 |  | 
|---|
| 11916 | yyrc = WinSaveObject(a, b); | 
|---|
| 11917 | SetFS(sel); | 
|---|
| 11918 |  | 
|---|
| 11919 | return yyrc; | 
|---|
| 11920 | } | 
|---|
| 11921 |  | 
|---|
| 11922 | #undef  WinSaveObject | 
|---|
| 11923 | #define WinSaveObject _WinSaveObject | 
|---|
| 11924 |  | 
|---|
| 11925 | inline BOOL _WinSetObjectData(HOBJECT a, PCSZ b) | 
|---|
| 11926 | { | 
|---|
| 11927 | BOOL yyrc; | 
|---|
| 11928 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11929 |  | 
|---|
| 11930 | yyrc = WinSetObjectData(a, b); | 
|---|
| 11931 | SetFS(sel); | 
|---|
| 11932 |  | 
|---|
| 11933 | return yyrc; | 
|---|
| 11934 | } | 
|---|
| 11935 |  | 
|---|
| 11936 | #undef  WinSetObjectData | 
|---|
| 11937 | #define WinSetObjectData _WinSetObjectData | 
|---|
| 11938 |  | 
|---|
| 11939 | inline BOOL _WinFreeFileIcon(HPOINTER a) | 
|---|
| 11940 | { | 
|---|
| 11941 | BOOL yyrc; | 
|---|
| 11942 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11943 |  | 
|---|
| 11944 | yyrc = WinFreeFileIcon(a); | 
|---|
| 11945 | SetFS(sel); | 
|---|
| 11946 |  | 
|---|
| 11947 | return yyrc; | 
|---|
| 11948 | } | 
|---|
| 11949 |  | 
|---|
| 11950 | #undef  WinFreeFileIcon | 
|---|
| 11951 | #define WinFreeFileIcon _WinFreeFileIcon | 
|---|
| 11952 |  | 
|---|
| 11953 | inline HPOINTER _WinLoadFileIcon(PCSZ a, BOOL b) | 
|---|
| 11954 | { | 
|---|
| 11955 | HPOINTER yyrc; | 
|---|
| 11956 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11957 |  | 
|---|
| 11958 | yyrc = WinLoadFileIcon(a, b); | 
|---|
| 11959 | SetFS(sel); | 
|---|
| 11960 |  | 
|---|
| 11961 | return yyrc; | 
|---|
| 11962 | } | 
|---|
| 11963 |  | 
|---|
| 11964 | #undef  WinLoadFileIcon | 
|---|
| 11965 | #define WinLoadFileIcon _WinLoadFileIcon | 
|---|
| 11966 |  | 
|---|
| 11967 | inline BOOL _WinRestoreWindowPos(PCSZ a, PCSZ b, HWND c) | 
|---|
| 11968 | { | 
|---|
| 11969 | BOOL yyrc; | 
|---|
| 11970 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11971 |  | 
|---|
| 11972 | yyrc = WinRestoreWindowPos(a, b, c); | 
|---|
| 11973 | SetFS(sel); | 
|---|
| 11974 |  | 
|---|
| 11975 | return yyrc; | 
|---|
| 11976 | } | 
|---|
| 11977 |  | 
|---|
| 11978 | #undef  WinRestoreWindowPos | 
|---|
| 11979 | #define WinRestoreWindowPos _WinRestoreWindowPos | 
|---|
| 11980 |  | 
|---|
| 11981 | inline BOOL _WinSetFileIcon(PCSZ a, PICONINFO b) | 
|---|
| 11982 | { | 
|---|
| 11983 | BOOL yyrc; | 
|---|
| 11984 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11985 |  | 
|---|
| 11986 | yyrc = WinSetFileIcon(a, b); | 
|---|
| 11987 | SetFS(sel); | 
|---|
| 11988 |  | 
|---|
| 11989 | return yyrc; | 
|---|
| 11990 | } | 
|---|
| 11991 |  | 
|---|
| 11992 | #undef  WinSetFileIcon | 
|---|
| 11993 | #define WinSetFileIcon _WinSetFileIcon | 
|---|
| 11994 |  | 
|---|
| 11995 | inline BOOL _WinShutdownSystem(HAB a, HMQ b) | 
|---|
| 11996 | { | 
|---|
| 11997 | BOOL yyrc; | 
|---|
| 11998 | USHORT sel = RestoreOS2FS(); | 
|---|
| 11999 |  | 
|---|
| 12000 | yyrc = WinShutdownSystem(a, b); | 
|---|
| 12001 | SetFS(sel); | 
|---|
| 12002 |  | 
|---|
| 12003 | return yyrc; | 
|---|
| 12004 | } | 
|---|
| 12005 |  | 
|---|
| 12006 | #undef  WinShutdownSystem | 
|---|
| 12007 | #define WinShutdownSystem _WinShutdownSystem | 
|---|
| 12008 |  | 
|---|
| 12009 | inline BOOL _WinStoreWindowPos(PCSZ a, PCSZ b, HWND c) | 
|---|
| 12010 | { | 
|---|
| 12011 | BOOL yyrc; | 
|---|
| 12012 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12013 |  | 
|---|
| 12014 | yyrc = WinStoreWindowPos(a, b, c); | 
|---|
| 12015 | SetFS(sel); | 
|---|
| 12016 |  | 
|---|
| 12017 | return yyrc; | 
|---|
| 12018 | } | 
|---|
| 12019 |  | 
|---|
| 12020 | #undef  WinStoreWindowPos | 
|---|
| 12021 | #define WinStoreWindowPos _WinStoreWindowPos | 
|---|
| 12022 |  | 
|---|
| 12023 | #endif | 
|---|
| 12024 | #ifdef INCL_SPL | 
|---|
| 12025 | inline BOOL _SplStdClose(HDC a) | 
|---|
| 12026 | { | 
|---|
| 12027 | BOOL yyrc; | 
|---|
| 12028 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12029 |  | 
|---|
| 12030 | yyrc = SplStdClose(a); | 
|---|
| 12031 | SetFS(sel); | 
|---|
| 12032 |  | 
|---|
| 12033 | return yyrc; | 
|---|
| 12034 | } | 
|---|
| 12035 |  | 
|---|
| 12036 | #undef  SplStdClose | 
|---|
| 12037 | #define SplStdClose _SplStdClose | 
|---|
| 12038 |  | 
|---|
| 12039 | inline BOOL _SplStdDelete(HSTD a) | 
|---|
| 12040 | { | 
|---|
| 12041 | BOOL yyrc; | 
|---|
| 12042 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12043 |  | 
|---|
| 12044 | yyrc = SplStdDelete(a); | 
|---|
| 12045 | SetFS(sel); | 
|---|
| 12046 |  | 
|---|
| 12047 | return yyrc; | 
|---|
| 12048 | } | 
|---|
| 12049 |  | 
|---|
| 12050 | #undef  SplStdDelete | 
|---|
| 12051 | #define SplStdDelete _SplStdDelete | 
|---|
| 12052 |  | 
|---|
| 12053 | inline BOOL _SplStdGetBits(HSTD a, LONG b, LONG c, PCH d) | 
|---|
| 12054 | { | 
|---|
| 12055 | BOOL yyrc; | 
|---|
| 12056 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12057 |  | 
|---|
| 12058 | yyrc = SplStdGetBits(a, b, c, d); | 
|---|
| 12059 | SetFS(sel); | 
|---|
| 12060 |  | 
|---|
| 12061 | return yyrc; | 
|---|
| 12062 | } | 
|---|
| 12063 |  | 
|---|
| 12064 | #undef  SplStdGetBits | 
|---|
| 12065 | #define SplStdGetBits _SplStdGetBits | 
|---|
| 12066 |  | 
|---|
| 12067 | inline BOOL _SplStdOpen(HDC a) | 
|---|
| 12068 | { | 
|---|
| 12069 | BOOL yyrc; | 
|---|
| 12070 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12071 |  | 
|---|
| 12072 | yyrc = SplStdOpen(a); | 
|---|
| 12073 | SetFS(sel); | 
|---|
| 12074 |  | 
|---|
| 12075 | return yyrc; | 
|---|
| 12076 | } | 
|---|
| 12077 |  | 
|---|
| 12078 | #undef  SplStdOpen | 
|---|
| 12079 | #define SplStdOpen _SplStdOpen | 
|---|
| 12080 |  | 
|---|
| 12081 | inline LONG _SplStdQueryLength(HSTD a) | 
|---|
| 12082 | { | 
|---|
| 12083 | LONG yyrc; | 
|---|
| 12084 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12085 |  | 
|---|
| 12086 | yyrc = SplStdQueryLength(a); | 
|---|
| 12087 | SetFS(sel); | 
|---|
| 12088 |  | 
|---|
| 12089 | return yyrc; | 
|---|
| 12090 | } | 
|---|
| 12091 |  | 
|---|
| 12092 | #undef  SplStdQueryLength | 
|---|
| 12093 | #define SplStdQueryLength _SplStdQueryLength | 
|---|
| 12094 |  | 
|---|
| 12095 | inline BOOL _SplStdStart(HDC a) | 
|---|
| 12096 | { | 
|---|
| 12097 | BOOL yyrc; | 
|---|
| 12098 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12099 |  | 
|---|
| 12100 | yyrc = SplStdStart(a); | 
|---|
| 12101 | SetFS(sel); | 
|---|
| 12102 |  | 
|---|
| 12103 | return yyrc; | 
|---|
| 12104 | } | 
|---|
| 12105 |  | 
|---|
| 12106 | #undef  SplStdStart | 
|---|
| 12107 | #define SplStdStart _SplStdStart | 
|---|
| 12108 |  | 
|---|
| 12109 | inline HSTD _SplStdStop(HDC a) | 
|---|
| 12110 | { | 
|---|
| 12111 | HSTD yyrc; | 
|---|
| 12112 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12113 |  | 
|---|
| 12114 | yyrc = SplStdStop(a); | 
|---|
| 12115 | SetFS(sel); | 
|---|
| 12116 |  | 
|---|
| 12117 | return yyrc; | 
|---|
| 12118 | } | 
|---|
| 12119 |  | 
|---|
| 12120 | #undef  SplStdStop | 
|---|
| 12121 | #define SplStdStop _SplStdStop | 
|---|
| 12122 |  | 
|---|
| 12123 | inline SPLERR _SplControlDevice(PSZ a, PSZ b, ULONG c) | 
|---|
| 12124 | { | 
|---|
| 12125 | SPLERR yyrc; | 
|---|
| 12126 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12127 |  | 
|---|
| 12128 | yyrc = SplControlDevice(a, b, c); | 
|---|
| 12129 | SetFS(sel); | 
|---|
| 12130 |  | 
|---|
| 12131 | return yyrc; | 
|---|
| 12132 | } | 
|---|
| 12133 |  | 
|---|
| 12134 | #undef  SplControlDevice | 
|---|
| 12135 | #define SplControlDevice _SplControlDevice | 
|---|
| 12136 |  | 
|---|
| 12137 | inline SPLERR _SplCopyJob(PCSZ a, PCSZ b, ULONG c, PCSZ d, PCSZ e, PULONG f) | 
|---|
| 12138 | { | 
|---|
| 12139 | SPLERR yyrc; | 
|---|
| 12140 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12141 |  | 
|---|
| 12142 | yyrc = SplCopyJob(a, b, c, d, e, f); | 
|---|
| 12143 | SetFS(sel); | 
|---|
| 12144 |  | 
|---|
| 12145 | return yyrc; | 
|---|
| 12146 | } | 
|---|
| 12147 |  | 
|---|
| 12148 | #undef  SplCopyJob | 
|---|
| 12149 | #define SplCopyJob _SplCopyJob | 
|---|
| 12150 |  | 
|---|
| 12151 | inline SPLERR _SplCreateDevice(PSZ a, ULONG b, PVOID c, ULONG d) | 
|---|
| 12152 | { | 
|---|
| 12153 | SPLERR yyrc; | 
|---|
| 12154 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12155 |  | 
|---|
| 12156 | yyrc = SplCreateDevice(a, b, c, d); | 
|---|
| 12157 | SetFS(sel); | 
|---|
| 12158 |  | 
|---|
| 12159 | return yyrc; | 
|---|
| 12160 | } | 
|---|
| 12161 |  | 
|---|
| 12162 | #undef  SplCreateDevice | 
|---|
| 12163 | #define SplCreateDevice _SplCreateDevice | 
|---|
| 12164 |  | 
|---|
| 12165 | inline SPLERR _SplCreatePort(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f) | 
|---|
| 12166 | { | 
|---|
| 12167 | SPLERR yyrc; | 
|---|
| 12168 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12169 |  | 
|---|
| 12170 | yyrc = SplCreatePort(a, b, c, d, e, f); | 
|---|
| 12171 | SetFS(sel); | 
|---|
| 12172 |  | 
|---|
| 12173 | return yyrc; | 
|---|
| 12174 | } | 
|---|
| 12175 |  | 
|---|
| 12176 | #undef  SplCreatePort | 
|---|
| 12177 | #define SplCreatePort _SplCreatePort | 
|---|
| 12178 |  | 
|---|
| 12179 | inline SPLERR _SplCreateQueue(PSZ a, ULONG b, PVOID c, ULONG d) | 
|---|
| 12180 | { | 
|---|
| 12181 | SPLERR yyrc; | 
|---|
| 12182 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12183 |  | 
|---|
| 12184 | yyrc = SplCreateQueue(a, b, c, d); | 
|---|
| 12185 | SetFS(sel); | 
|---|
| 12186 |  | 
|---|
| 12187 | return yyrc; | 
|---|
| 12188 | } | 
|---|
| 12189 |  | 
|---|
| 12190 | #undef  SplCreateQueue | 
|---|
| 12191 | #define SplCreateQueue _SplCreateQueue | 
|---|
| 12192 |  | 
|---|
| 12193 | inline SPLERR _SplDeleteDevice(PSZ a, PSZ b) | 
|---|
| 12194 | { | 
|---|
| 12195 | SPLERR yyrc; | 
|---|
| 12196 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12197 |  | 
|---|
| 12198 | yyrc = SplDeleteDevice(a, b); | 
|---|
| 12199 | SetFS(sel); | 
|---|
| 12200 |  | 
|---|
| 12201 | return yyrc; | 
|---|
| 12202 | } | 
|---|
| 12203 |  | 
|---|
| 12204 | #undef  SplDeleteDevice | 
|---|
| 12205 | #define SplDeleteDevice _SplDeleteDevice | 
|---|
| 12206 |  | 
|---|
| 12207 | inline SPLERR _SplDeleteJob(PSZ a, PSZ b, ULONG c) | 
|---|
| 12208 | { | 
|---|
| 12209 | SPLERR yyrc; | 
|---|
| 12210 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12211 |  | 
|---|
| 12212 | yyrc = SplDeleteJob(a, b, c); | 
|---|
| 12213 | SetFS(sel); | 
|---|
| 12214 |  | 
|---|
| 12215 | return yyrc; | 
|---|
| 12216 | } | 
|---|
| 12217 |  | 
|---|
| 12218 | #undef  SplDeleteJob | 
|---|
| 12219 | #define SplDeleteJob _SplDeleteJob | 
|---|
| 12220 |  | 
|---|
| 12221 | inline SPLERR _SplDeletePort(PCSZ a, PCSZ b) | 
|---|
| 12222 | { | 
|---|
| 12223 | SPLERR yyrc; | 
|---|
| 12224 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12225 |  | 
|---|
| 12226 | yyrc = SplDeletePort(a, b); | 
|---|
| 12227 | SetFS(sel); | 
|---|
| 12228 |  | 
|---|
| 12229 | return yyrc; | 
|---|
| 12230 | } | 
|---|
| 12231 |  | 
|---|
| 12232 | #undef  SplDeletePort | 
|---|
| 12233 | #define SplDeletePort _SplDeletePort | 
|---|
| 12234 |  | 
|---|
| 12235 | inline SPLERR _SplDeleteQueue(PSZ a, PSZ b) | 
|---|
| 12236 | { | 
|---|
| 12237 | SPLERR yyrc; | 
|---|
| 12238 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12239 |  | 
|---|
| 12240 | yyrc = SplDeleteQueue(a, b); | 
|---|
| 12241 | SetFS(sel); | 
|---|
| 12242 |  | 
|---|
| 12243 | return yyrc; | 
|---|
| 12244 | } | 
|---|
| 12245 |  | 
|---|
| 12246 | #undef  SplDeleteQueue | 
|---|
| 12247 | #define SplDeleteQueue _SplDeleteQueue | 
|---|
| 12248 |  | 
|---|
| 12249 | inline SPLERR _SplEnumDevice(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h) | 
|---|
| 12250 | { | 
|---|
| 12251 | SPLERR yyrc; | 
|---|
| 12252 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12253 |  | 
|---|
| 12254 | yyrc = SplEnumDevice(a, b, c, d, e, f, g, h); | 
|---|
| 12255 | SetFS(sel); | 
|---|
| 12256 |  | 
|---|
| 12257 | return yyrc; | 
|---|
| 12258 | } | 
|---|
| 12259 |  | 
|---|
| 12260 | #undef  SplEnumDevice | 
|---|
| 12261 | #define SplEnumDevice _SplEnumDevice | 
|---|
| 12262 |  | 
|---|
| 12263 | inline SPLERR _SplEnumDriver(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h) | 
|---|
| 12264 | { | 
|---|
| 12265 | SPLERR yyrc; | 
|---|
| 12266 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12267 |  | 
|---|
| 12268 | yyrc = SplEnumDriver(a, b, c, d, e, f, g, h); | 
|---|
| 12269 | SetFS(sel); | 
|---|
| 12270 |  | 
|---|
| 12271 | return yyrc; | 
|---|
| 12272 | } | 
|---|
| 12273 |  | 
|---|
| 12274 | #undef  SplEnumDriver | 
|---|
| 12275 | #define SplEnumDriver _SplEnumDriver | 
|---|
| 12276 |  | 
|---|
| 12277 | inline SPLERR _SplEnumJob(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f, PULONG g, PULONG h, PVOID i) | 
|---|
| 12278 | { | 
|---|
| 12279 | SPLERR yyrc; | 
|---|
| 12280 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12281 |  | 
|---|
| 12282 | yyrc = SplEnumJob(a, b, c, d, e, f, g, h, i); | 
|---|
| 12283 | SetFS(sel); | 
|---|
| 12284 |  | 
|---|
| 12285 | return yyrc; | 
|---|
| 12286 | } | 
|---|
| 12287 |  | 
|---|
| 12288 | #undef  SplEnumJob | 
|---|
| 12289 | #define SplEnumJob _SplEnumJob | 
|---|
| 12290 |  | 
|---|
| 12291 | inline SPLERR _SplEnumPort(PCSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h) | 
|---|
| 12292 | { | 
|---|
| 12293 | SPLERR yyrc; | 
|---|
| 12294 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12295 |  | 
|---|
| 12296 | yyrc = SplEnumPort(a, b, c, d, e, f, g, h); | 
|---|
| 12297 | SetFS(sel); | 
|---|
| 12298 |  | 
|---|
| 12299 | return yyrc; | 
|---|
| 12300 | } | 
|---|
| 12301 |  | 
|---|
| 12302 | #undef  SplEnumPort | 
|---|
| 12303 | #define SplEnumPort _SplEnumPort | 
|---|
| 12304 |  | 
|---|
| 12305 | inline SPLERR _SplEnumPrinter(PSZ a, ULONG b, ULONG c, PVOID d, ULONG e, PULONG f, PULONG g, PULONG h, PVOID i) | 
|---|
| 12306 | { | 
|---|
| 12307 | SPLERR yyrc; | 
|---|
| 12308 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12309 |  | 
|---|
| 12310 | yyrc = SplEnumPrinter(a, b, c, d, e, f, g, h, i); | 
|---|
| 12311 | SetFS(sel); | 
|---|
| 12312 |  | 
|---|
| 12313 | return yyrc; | 
|---|
| 12314 | } | 
|---|
| 12315 |  | 
|---|
| 12316 | #undef  SplEnumPrinter | 
|---|
| 12317 | #define SplEnumPrinter _SplEnumPrinter | 
|---|
| 12318 |  | 
|---|
| 12319 | inline SPLERR _SplEnumQueue(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h) | 
|---|
| 12320 | { | 
|---|
| 12321 | SPLERR yyrc; | 
|---|
| 12322 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12323 |  | 
|---|
| 12324 | yyrc = SplEnumQueue(a, b, c, d, e, f, g, h); | 
|---|
| 12325 | SetFS(sel); | 
|---|
| 12326 |  | 
|---|
| 12327 | return yyrc; | 
|---|
| 12328 | } | 
|---|
| 12329 |  | 
|---|
| 12330 | #undef  SplEnumQueue | 
|---|
| 12331 | #define SplEnumQueue _SplEnumQueue | 
|---|
| 12332 |  | 
|---|
| 12333 | inline SPLERR _SplEnumQueueProcessor(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h) | 
|---|
| 12334 | { | 
|---|
| 12335 | SPLERR yyrc; | 
|---|
| 12336 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12337 |  | 
|---|
| 12338 | yyrc = SplEnumQueueProcessor(a, b, c, d, e, f, g, h); | 
|---|
| 12339 | SetFS(sel); | 
|---|
| 12340 |  | 
|---|
| 12341 | return yyrc; | 
|---|
| 12342 | } | 
|---|
| 12343 |  | 
|---|
| 12344 | #undef  SplEnumQueueProcessor | 
|---|
| 12345 | #define SplEnumQueueProcessor _SplEnumQueueProcessor | 
|---|
| 12346 |  | 
|---|
| 12347 | inline SPLERR _SplHoldJob(PCSZ a, PCSZ b, ULONG c) | 
|---|
| 12348 | { | 
|---|
| 12349 | SPLERR yyrc; | 
|---|
| 12350 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12351 |  | 
|---|
| 12352 | yyrc = SplHoldJob(a, b, c); | 
|---|
| 12353 | SetFS(sel); | 
|---|
| 12354 |  | 
|---|
| 12355 | return yyrc; | 
|---|
| 12356 | } | 
|---|
| 12357 |  | 
|---|
| 12358 | #undef  SplHoldJob | 
|---|
| 12359 | #define SplHoldJob _SplHoldJob | 
|---|
| 12360 |  | 
|---|
| 12361 | inline SPLERR _SplHoldQueue(PSZ a, PSZ b) | 
|---|
| 12362 | { | 
|---|
| 12363 | SPLERR yyrc; | 
|---|
| 12364 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12365 |  | 
|---|
| 12366 | yyrc = SplHoldQueue(a, b); | 
|---|
| 12367 | SetFS(sel); | 
|---|
| 12368 |  | 
|---|
| 12369 | return yyrc; | 
|---|
| 12370 | } | 
|---|
| 12371 |  | 
|---|
| 12372 | #undef  SplHoldQueue | 
|---|
| 12373 | #define SplHoldQueue _SplHoldQueue | 
|---|
| 12374 |  | 
|---|
| 12375 | inline SPLERR _SplPurgeQueue(PSZ a, PSZ b) | 
|---|
| 12376 | { | 
|---|
| 12377 | SPLERR yyrc; | 
|---|
| 12378 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12379 |  | 
|---|
| 12380 | yyrc = SplPurgeQueue(a, b); | 
|---|
| 12381 | SetFS(sel); | 
|---|
| 12382 |  | 
|---|
| 12383 | return yyrc; | 
|---|
| 12384 | } | 
|---|
| 12385 |  | 
|---|
| 12386 | #undef  SplPurgeQueue | 
|---|
| 12387 | #define SplPurgeQueue _SplPurgeQueue | 
|---|
| 12388 |  | 
|---|
| 12389 | inline SPLERR _SplQueryDevice(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f) | 
|---|
| 12390 | { | 
|---|
| 12391 | SPLERR yyrc; | 
|---|
| 12392 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12393 |  | 
|---|
| 12394 | yyrc = SplQueryDevice(a, b, c, d, e, f); | 
|---|
| 12395 | SetFS(sel); | 
|---|
| 12396 |  | 
|---|
| 12397 | return yyrc; | 
|---|
| 12398 | } | 
|---|
| 12399 |  | 
|---|
| 12400 | #undef  SplQueryDevice | 
|---|
| 12401 | #define SplQueryDevice _SplQueryDevice | 
|---|
| 12402 |  | 
|---|
| 12403 | inline SPLERR _SplQueryDriver(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f, PULONG g) | 
|---|
| 12404 | { | 
|---|
| 12405 | SPLERR yyrc; | 
|---|
| 12406 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12407 |  | 
|---|
| 12408 | yyrc = SplQueryDriver(a, b, c, d, e, f, g); | 
|---|
| 12409 | SetFS(sel); | 
|---|
| 12410 |  | 
|---|
| 12411 | return yyrc; | 
|---|
| 12412 | } | 
|---|
| 12413 |  | 
|---|
| 12414 | #undef  SplQueryDriver | 
|---|
| 12415 | #define SplQueryDriver _SplQueryDriver | 
|---|
| 12416 |  | 
|---|
| 12417 | inline SPLERR _SplQueryJob(PSZ a, PSZ b, ULONG c, ULONG d, PVOID e, ULONG f, PULONG g) | 
|---|
| 12418 | { | 
|---|
| 12419 | SPLERR yyrc; | 
|---|
| 12420 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12421 |  | 
|---|
| 12422 | yyrc = SplQueryJob(a, b, c, d, e, f, g); | 
|---|
| 12423 | SetFS(sel); | 
|---|
| 12424 |  | 
|---|
| 12425 | return yyrc; | 
|---|
| 12426 | } | 
|---|
| 12427 |  | 
|---|
| 12428 | #undef  SplQueryJob | 
|---|
| 12429 | #define SplQueryJob _SplQueryJob | 
|---|
| 12430 |  | 
|---|
| 12431 | inline SPLERR _SplQueryPort(PCSZ a, PCSZ b, ULONG c, PVOID d, ULONG e, PULONG f) | 
|---|
| 12432 | { | 
|---|
| 12433 | SPLERR yyrc; | 
|---|
| 12434 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12435 |  | 
|---|
| 12436 | yyrc = SplQueryPort(a, b, c, d, e, f); | 
|---|
| 12437 | SetFS(sel); | 
|---|
| 12438 |  | 
|---|
| 12439 | return yyrc; | 
|---|
| 12440 | } | 
|---|
| 12441 |  | 
|---|
| 12442 | #undef  SplQueryPort | 
|---|
| 12443 | #define SplQueryPort _SplQueryPort | 
|---|
| 12444 |  | 
|---|
| 12445 | inline SPLERR _SplQueryQueue(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f) | 
|---|
| 12446 | { | 
|---|
| 12447 | SPLERR yyrc; | 
|---|
| 12448 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12449 |  | 
|---|
| 12450 | yyrc = SplQueryQueue(a, b, c, d, e, f); | 
|---|
| 12451 | SetFS(sel); | 
|---|
| 12452 |  | 
|---|
| 12453 | return yyrc; | 
|---|
| 12454 | } | 
|---|
| 12455 |  | 
|---|
| 12456 | #undef  SplQueryQueue | 
|---|
| 12457 | #define SplQueryQueue _SplQueryQueue | 
|---|
| 12458 |  | 
|---|
| 12459 | inline SPLERR _SplReleaseJob(PCSZ a, PCSZ b, ULONG c) | 
|---|
| 12460 | { | 
|---|
| 12461 | SPLERR yyrc; | 
|---|
| 12462 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12463 |  | 
|---|
| 12464 | yyrc = SplReleaseJob(a, b, c); | 
|---|
| 12465 | SetFS(sel); | 
|---|
| 12466 |  | 
|---|
| 12467 | return yyrc; | 
|---|
| 12468 | } | 
|---|
| 12469 |  | 
|---|
| 12470 | #undef  SplReleaseJob | 
|---|
| 12471 | #define SplReleaseJob _SplReleaseJob | 
|---|
| 12472 |  | 
|---|
| 12473 | inline SPLERR _SplReleaseQueue(PSZ a, PSZ b) | 
|---|
| 12474 | { | 
|---|
| 12475 | SPLERR yyrc; | 
|---|
| 12476 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12477 |  | 
|---|
| 12478 | yyrc = SplReleaseQueue(a, b); | 
|---|
| 12479 | SetFS(sel); | 
|---|
| 12480 |  | 
|---|
| 12481 | return yyrc; | 
|---|
| 12482 | } | 
|---|
| 12483 |  | 
|---|
| 12484 | #undef  SplReleaseQueue | 
|---|
| 12485 | #define SplReleaseQueue _SplReleaseQueue | 
|---|
| 12486 |  | 
|---|
| 12487 | inline SPLERR _SplSetDevice(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, ULONG f) | 
|---|
| 12488 | { | 
|---|
| 12489 | SPLERR yyrc; | 
|---|
| 12490 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12491 |  | 
|---|
| 12492 | yyrc = SplSetDevice(a, b, c, d, e, f); | 
|---|
| 12493 | SetFS(sel); | 
|---|
| 12494 |  | 
|---|
| 12495 | return yyrc; | 
|---|
| 12496 | } | 
|---|
| 12497 |  | 
|---|
| 12498 | #undef  SplSetDevice | 
|---|
| 12499 | #define SplSetDevice _SplSetDevice | 
|---|
| 12500 |  | 
|---|
| 12501 | inline SPLERR _SplSetDriver(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f, ULONG g) | 
|---|
| 12502 | { | 
|---|
| 12503 | SPLERR yyrc; | 
|---|
| 12504 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12505 |  | 
|---|
| 12506 | yyrc = SplSetDriver(a, b, c, d, e, f, g); | 
|---|
| 12507 | SetFS(sel); | 
|---|
| 12508 |  | 
|---|
| 12509 | return yyrc; | 
|---|
| 12510 | } | 
|---|
| 12511 |  | 
|---|
| 12512 | #undef  SplSetDriver | 
|---|
| 12513 | #define SplSetDriver _SplSetDriver | 
|---|
| 12514 |  | 
|---|
| 12515 | inline SPLERR _SplSetJob(PSZ a, PSZ b, ULONG c, ULONG d, PVOID e, ULONG f, ULONG g) | 
|---|
| 12516 | { | 
|---|
| 12517 | SPLERR yyrc; | 
|---|
| 12518 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12519 |  | 
|---|
| 12520 | yyrc = SplSetJob(a, b, c, d, e, f, g); | 
|---|
| 12521 | SetFS(sel); | 
|---|
| 12522 |  | 
|---|
| 12523 | return yyrc; | 
|---|
| 12524 | } | 
|---|
| 12525 |  | 
|---|
| 12526 | #undef  SplSetJob | 
|---|
| 12527 | #define SplSetJob _SplSetJob | 
|---|
| 12528 |  | 
|---|
| 12529 | inline SPLERR _SplSetPort(PCSZ a, PCSZ b, ULONG c, PVOID d, ULONG e, ULONG f) | 
|---|
| 12530 | { | 
|---|
| 12531 | SPLERR yyrc; | 
|---|
| 12532 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12533 |  | 
|---|
| 12534 | yyrc = SplSetPort(a, b, c, d, e, f); | 
|---|
| 12535 | SetFS(sel); | 
|---|
| 12536 |  | 
|---|
| 12537 | return yyrc; | 
|---|
| 12538 | } | 
|---|
| 12539 |  | 
|---|
| 12540 | #undef  SplSetPort | 
|---|
| 12541 | #define SplSetPort _SplSetPort | 
|---|
| 12542 |  | 
|---|
| 12543 | inline SPLERR _SplSetQueue(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, ULONG f) | 
|---|
| 12544 | { | 
|---|
| 12545 | SPLERR yyrc; | 
|---|
| 12546 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12547 |  | 
|---|
| 12548 | yyrc = SplSetQueue(a, b, c, d, e, f); | 
|---|
| 12549 | SetFS(sel); | 
|---|
| 12550 |  | 
|---|
| 12551 | return yyrc; | 
|---|
| 12552 | } | 
|---|
| 12553 |  | 
|---|
| 12554 | #undef  SplSetQueue | 
|---|
| 12555 | #define SplSetQueue _SplSetQueue | 
|---|
| 12556 |  | 
|---|
| 12557 | inline ULONG _SplMessageBox(PSZ a, ULONG b, ULONG c, PSZ d, PSZ e, ULONG f, ULONG g) | 
|---|
| 12558 | { | 
|---|
| 12559 | ULONG yyrc; | 
|---|
| 12560 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12561 |  | 
|---|
| 12562 | yyrc = SplMessageBox(a, b, c, d, e, f, g); | 
|---|
| 12563 | SetFS(sel); | 
|---|
| 12564 |  | 
|---|
| 12565 | return yyrc; | 
|---|
| 12566 | } | 
|---|
| 12567 |  | 
|---|
| 12568 | #undef  SplMessageBox | 
|---|
| 12569 | #define SplMessageBox _SplMessageBox | 
|---|
| 12570 |  | 
|---|
| 12571 | inline BOOL _SplQmAbort(HSPL a) | 
|---|
| 12572 | { | 
|---|
| 12573 | BOOL yyrc; | 
|---|
| 12574 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12575 |  | 
|---|
| 12576 | yyrc = SplQmAbort(a); | 
|---|
| 12577 | SetFS(sel); | 
|---|
| 12578 |  | 
|---|
| 12579 | return yyrc; | 
|---|
| 12580 | } | 
|---|
| 12581 |  | 
|---|
| 12582 | #undef  SplQmAbort | 
|---|
| 12583 | #define SplQmAbort _SplQmAbort | 
|---|
| 12584 |  | 
|---|
| 12585 | inline BOOL _SplQmAbortDoc(HSPL a) | 
|---|
| 12586 | { | 
|---|
| 12587 | BOOL yyrc; | 
|---|
| 12588 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12589 |  | 
|---|
| 12590 | yyrc = SplQmAbortDoc(a); | 
|---|
| 12591 | SetFS(sel); | 
|---|
| 12592 |  | 
|---|
| 12593 | return yyrc; | 
|---|
| 12594 | } | 
|---|
| 12595 |  | 
|---|
| 12596 | #undef  SplQmAbortDoc | 
|---|
| 12597 | #define SplQmAbortDoc _SplQmAbortDoc | 
|---|
| 12598 |  | 
|---|
| 12599 | inline BOOL _SplQmClose(HSPL a) | 
|---|
| 12600 | { | 
|---|
| 12601 | BOOL yyrc; | 
|---|
| 12602 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12603 |  | 
|---|
| 12604 | yyrc = SplQmClose(a); | 
|---|
| 12605 | SetFS(sel); | 
|---|
| 12606 |  | 
|---|
| 12607 | return yyrc; | 
|---|
| 12608 | } | 
|---|
| 12609 |  | 
|---|
| 12610 | #undef  SplQmClose | 
|---|
| 12611 | #define SplQmClose _SplQmClose | 
|---|
| 12612 |  | 
|---|
| 12613 | inline BOOL _SplQmEndDoc(HSPL a) | 
|---|
| 12614 | { | 
|---|
| 12615 | BOOL yyrc; | 
|---|
| 12616 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12617 |  | 
|---|
| 12618 | yyrc = SplQmEndDoc(a); | 
|---|
| 12619 | SetFS(sel); | 
|---|
| 12620 |  | 
|---|
| 12621 | return yyrc; | 
|---|
| 12622 | } | 
|---|
| 12623 |  | 
|---|
| 12624 | #undef  SplQmEndDoc | 
|---|
| 12625 | #define SplQmEndDoc _SplQmEndDoc | 
|---|
| 12626 |  | 
|---|
| 12627 | inline ULONG _SplQmGetJobID(HSPL a, ULONG b, PVOID c, ULONG d, PULONG e) | 
|---|
| 12628 | { | 
|---|
| 12629 | ULONG yyrc; | 
|---|
| 12630 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12631 |  | 
|---|
| 12632 | yyrc = SplQmGetJobID(a, b, c, d, e); | 
|---|
| 12633 | SetFS(sel); | 
|---|
| 12634 |  | 
|---|
| 12635 | return yyrc; | 
|---|
| 12636 | } | 
|---|
| 12637 |  | 
|---|
| 12638 | #undef  SplQmGetJobID | 
|---|
| 12639 | #define SplQmGetJobID _SplQmGetJobID | 
|---|
| 12640 |  | 
|---|
| 12641 | inline BOOL _SplQmNewPage(HSPL a, ULONG b) | 
|---|
| 12642 | { | 
|---|
| 12643 | BOOL yyrc; | 
|---|
| 12644 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12645 |  | 
|---|
| 12646 | yyrc = SplQmNewPage(a, b); | 
|---|
| 12647 | SetFS(sel); | 
|---|
| 12648 |  | 
|---|
| 12649 | return yyrc; | 
|---|
| 12650 | } | 
|---|
| 12651 |  | 
|---|
| 12652 | #undef  SplQmNewPage | 
|---|
| 12653 | #define SplQmNewPage _SplQmNewPage | 
|---|
| 12654 |  | 
|---|
| 12655 | inline HSPL _SplQmOpen(PSZ a, LONG b, PQMOPENDATA c) | 
|---|
| 12656 | { | 
|---|
| 12657 | HSPL yyrc; | 
|---|
| 12658 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12659 |  | 
|---|
| 12660 | yyrc = SplQmOpen(a, b, c); | 
|---|
| 12661 | SetFS(sel); | 
|---|
| 12662 |  | 
|---|
| 12663 | return yyrc; | 
|---|
| 12664 | } | 
|---|
| 12665 |  | 
|---|
| 12666 | #undef  SplQmOpen | 
|---|
| 12667 | #define SplQmOpen _SplQmOpen | 
|---|
| 12668 |  | 
|---|
| 12669 | inline BOOL _SplQmStartDoc(HSPL a, PSZ b) | 
|---|
| 12670 | { | 
|---|
| 12671 | BOOL yyrc; | 
|---|
| 12672 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12673 |  | 
|---|
| 12674 | yyrc = SplQmStartDoc(a, b); | 
|---|
| 12675 | SetFS(sel); | 
|---|
| 12676 |  | 
|---|
| 12677 | return yyrc; | 
|---|
| 12678 | } | 
|---|
| 12679 |  | 
|---|
| 12680 | #undef  SplQmStartDoc | 
|---|
| 12681 | #define SplQmStartDoc _SplQmStartDoc | 
|---|
| 12682 |  | 
|---|
| 12683 | inline BOOL _SplQmWrite(HSPL a, LONG b, PVOID c) | 
|---|
| 12684 | { | 
|---|
| 12685 | BOOL yyrc; | 
|---|
| 12686 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12687 |  | 
|---|
| 12688 | yyrc = SplQmWrite(a, b, c); | 
|---|
| 12689 | SetFS(sel); | 
|---|
| 12690 |  | 
|---|
| 12691 | return yyrc; | 
|---|
| 12692 | } | 
|---|
| 12693 |  | 
|---|
| 12694 | #undef  SplQmWrite | 
|---|
| 12695 | #define SplQmWrite _SplQmWrite | 
|---|
| 12696 |  | 
|---|
| 12697 | #endif | 
|---|
| 12698 | #ifdef INCL_WINHELP | 
|---|
| 12699 | inline BOOL _WinAssociateHelpInstance(HWND a, HWND b) | 
|---|
| 12700 | { | 
|---|
| 12701 | BOOL yyrc; | 
|---|
| 12702 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12703 |  | 
|---|
| 12704 | yyrc = WinAssociateHelpInstance(a, b); | 
|---|
| 12705 | SetFS(sel); | 
|---|
| 12706 |  | 
|---|
| 12707 | return yyrc; | 
|---|
| 12708 | } | 
|---|
| 12709 |  | 
|---|
| 12710 | #undef  WinAssociateHelpInstance | 
|---|
| 12711 | #define WinAssociateHelpInstance _WinAssociateHelpInstance | 
|---|
| 12712 |  | 
|---|
| 12713 | inline HWND _WinCreateHelpInstance(HAB a, PHELPINIT b) | 
|---|
| 12714 | { | 
|---|
| 12715 | HWND yyrc; | 
|---|
| 12716 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12717 |  | 
|---|
| 12718 | yyrc = WinCreateHelpInstance(a, b); | 
|---|
| 12719 | SetFS(sel); | 
|---|
| 12720 |  | 
|---|
| 12721 | return yyrc; | 
|---|
| 12722 | } | 
|---|
| 12723 |  | 
|---|
| 12724 | #undef  WinCreateHelpInstance | 
|---|
| 12725 | #define WinCreateHelpInstance _WinCreateHelpInstance | 
|---|
| 12726 |  | 
|---|
| 12727 | inline BOOL _WinCreateHelpTable(HWND a, PHELPTABLE b) | 
|---|
| 12728 | { | 
|---|
| 12729 | BOOL yyrc; | 
|---|
| 12730 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12731 |  | 
|---|
| 12732 | yyrc = WinCreateHelpTable(a, b); | 
|---|
| 12733 | SetFS(sel); | 
|---|
| 12734 |  | 
|---|
| 12735 | return yyrc; | 
|---|
| 12736 | } | 
|---|
| 12737 |  | 
|---|
| 12738 | #undef  WinCreateHelpTable | 
|---|
| 12739 | #define WinCreateHelpTable _WinCreateHelpTable | 
|---|
| 12740 |  | 
|---|
| 12741 | inline BOOL _WinDestroyHelpInstance(HWND a) | 
|---|
| 12742 | { | 
|---|
| 12743 | BOOL yyrc; | 
|---|
| 12744 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12745 |  | 
|---|
| 12746 | yyrc = WinDestroyHelpInstance(a); | 
|---|
| 12747 | SetFS(sel); | 
|---|
| 12748 |  | 
|---|
| 12749 | return yyrc; | 
|---|
| 12750 | } | 
|---|
| 12751 |  | 
|---|
| 12752 | #undef  WinDestroyHelpInstance | 
|---|
| 12753 | #define WinDestroyHelpInstance _WinDestroyHelpInstance | 
|---|
| 12754 |  | 
|---|
| 12755 | inline BOOL _WinLoadHelpTable(HWND a, ULONG b, HMODULE c) | 
|---|
| 12756 | { | 
|---|
| 12757 | BOOL yyrc; | 
|---|
| 12758 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12759 |  | 
|---|
| 12760 | yyrc = WinLoadHelpTable(a, b, c); | 
|---|
| 12761 | SetFS(sel); | 
|---|
| 12762 |  | 
|---|
| 12763 | return yyrc; | 
|---|
| 12764 | } | 
|---|
| 12765 |  | 
|---|
| 12766 | #undef  WinLoadHelpTable | 
|---|
| 12767 | #define WinLoadHelpTable _WinLoadHelpTable | 
|---|
| 12768 |  | 
|---|
| 12769 | inline HWND _WinQueryHelpInstance(HWND a) | 
|---|
| 12770 | { | 
|---|
| 12771 | HWND yyrc; | 
|---|
| 12772 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12773 |  | 
|---|
| 12774 | yyrc = WinQueryHelpInstance(a); | 
|---|
| 12775 | SetFS(sel); | 
|---|
| 12776 |  | 
|---|
| 12777 | return yyrc; | 
|---|
| 12778 | } | 
|---|
| 12779 |  | 
|---|
| 12780 | #undef  WinQueryHelpInstance | 
|---|
| 12781 | #define WinQueryHelpInstance _WinQueryHelpInstance | 
|---|
| 12782 |  | 
|---|
| 12783 | #endif | 
|---|
| 12784 | #ifdef INCL_DDF | 
|---|
| 12785 | inline BOOL _DdfBeginList(HDDF a, ULONG b, ULONG c, ULONG d) | 
|---|
| 12786 | { | 
|---|
| 12787 | BOOL yyrc; | 
|---|
| 12788 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12789 |  | 
|---|
| 12790 | yyrc = DdfBeginList(a, b, c, d); | 
|---|
| 12791 | SetFS(sel); | 
|---|
| 12792 |  | 
|---|
| 12793 | return yyrc; | 
|---|
| 12794 | } | 
|---|
| 12795 |  | 
|---|
| 12796 | #undef  DdfBeginList | 
|---|
| 12797 | #define DdfBeginList _DdfBeginList | 
|---|
| 12798 |  | 
|---|
| 12799 | inline BOOL _DdfBitmap(HDDF a, HBITMAP b, ULONG c) | 
|---|
| 12800 | { | 
|---|
| 12801 | BOOL yyrc; | 
|---|
| 12802 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12803 |  | 
|---|
| 12804 | yyrc = DdfBitmap(a, b, c); | 
|---|
| 12805 | SetFS(sel); | 
|---|
| 12806 |  | 
|---|
| 12807 | return yyrc; | 
|---|
| 12808 | } | 
|---|
| 12809 |  | 
|---|
| 12810 | #undef  DdfBitmap | 
|---|
| 12811 | #define DdfBitmap _DdfBitmap | 
|---|
| 12812 |  | 
|---|
| 12813 | inline BOOL _DdfEndList(HDDF a) | 
|---|
| 12814 | { | 
|---|
| 12815 | BOOL yyrc; | 
|---|
| 12816 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12817 |  | 
|---|
| 12818 | yyrc = DdfEndList(a); | 
|---|
| 12819 | SetFS(sel); | 
|---|
| 12820 |  | 
|---|
| 12821 | return yyrc; | 
|---|
| 12822 | } | 
|---|
| 12823 |  | 
|---|
| 12824 | #undef  DdfEndList | 
|---|
| 12825 | #define DdfEndList _DdfEndList | 
|---|
| 12826 |  | 
|---|
| 12827 | inline BOOL _DdfHyperText(HDDF a, PCSZ b, PCSZ c, ULONG d) | 
|---|
| 12828 | { | 
|---|
| 12829 | BOOL yyrc; | 
|---|
| 12830 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12831 |  | 
|---|
| 12832 | yyrc = DdfHyperText(a, b, c, d); | 
|---|
| 12833 | SetFS(sel); | 
|---|
| 12834 |  | 
|---|
| 12835 | return yyrc; | 
|---|
| 12836 | } | 
|---|
| 12837 |  | 
|---|
| 12838 | #undef  DdfHyperText | 
|---|
| 12839 | #define DdfHyperText _DdfHyperText | 
|---|
| 12840 |  | 
|---|
| 12841 | inline BOOL _DdfInform(HDDF a, PCSZ b, ULONG c) | 
|---|
| 12842 | { | 
|---|
| 12843 | BOOL yyrc; | 
|---|
| 12844 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12845 |  | 
|---|
| 12846 | yyrc = DdfInform(a, b, c); | 
|---|
| 12847 | SetFS(sel); | 
|---|
| 12848 |  | 
|---|
| 12849 | return yyrc; | 
|---|
| 12850 | } | 
|---|
| 12851 |  | 
|---|
| 12852 | #undef  DdfInform | 
|---|
| 12853 | #define DdfInform _DdfInform | 
|---|
| 12854 |  | 
|---|
| 12855 | inline HDDF _DdfInitialize(HWND a, ULONG b, ULONG c) | 
|---|
| 12856 | { | 
|---|
| 12857 | HDDF yyrc; | 
|---|
| 12858 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12859 |  | 
|---|
| 12860 | yyrc = DdfInitialize(a, b, c); | 
|---|
| 12861 | SetFS(sel); | 
|---|
| 12862 |  | 
|---|
| 12863 | return yyrc; | 
|---|
| 12864 | } | 
|---|
| 12865 |  | 
|---|
| 12866 | #undef  DdfInitialize | 
|---|
| 12867 | #define DdfInitialize _DdfInitialize | 
|---|
| 12868 |  | 
|---|
| 12869 | inline BOOL _DdfListItem(HDDF a, PCSZ b, PCSZ c) | 
|---|
| 12870 | { | 
|---|
| 12871 | BOOL yyrc; | 
|---|
| 12872 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12873 |  | 
|---|
| 12874 | yyrc = DdfListItem(a, b, c); | 
|---|
| 12875 | SetFS(sel); | 
|---|
| 12876 |  | 
|---|
| 12877 | return yyrc; | 
|---|
| 12878 | } | 
|---|
| 12879 |  | 
|---|
| 12880 | #undef  DdfListItem | 
|---|
| 12881 | #define DdfListItem _DdfListItem | 
|---|
| 12882 |  | 
|---|
| 12883 | inline BOOL _DdfMetafile(HDDF a, HMF b, PRECTL c) | 
|---|
| 12884 | { | 
|---|
| 12885 | BOOL yyrc; | 
|---|
| 12886 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12887 |  | 
|---|
| 12888 | yyrc = DdfMetafile(a, b, c); | 
|---|
| 12889 | SetFS(sel); | 
|---|
| 12890 |  | 
|---|
| 12891 | return yyrc; | 
|---|
| 12892 | } | 
|---|
| 12893 |  | 
|---|
| 12894 | #undef  DdfMetafile | 
|---|
| 12895 | #define DdfMetafile _DdfMetafile | 
|---|
| 12896 |  | 
|---|
| 12897 | inline BOOL _DdfPara(HDDF a) | 
|---|
| 12898 | { | 
|---|
| 12899 | BOOL yyrc; | 
|---|
| 12900 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12901 |  | 
|---|
| 12902 | yyrc = DdfPara(a); | 
|---|
| 12903 | SetFS(sel); | 
|---|
| 12904 |  | 
|---|
| 12905 | return yyrc; | 
|---|
| 12906 | } | 
|---|
| 12907 |  | 
|---|
| 12908 | #undef  DdfPara | 
|---|
| 12909 | #define DdfPara _DdfPara | 
|---|
| 12910 |  | 
|---|
| 12911 | inline BOOL _DdfSetColor(HDDF a, COLOR b, COLOR c) | 
|---|
| 12912 | { | 
|---|
| 12913 | BOOL yyrc; | 
|---|
| 12914 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12915 |  | 
|---|
| 12916 | yyrc = DdfSetColor(a, b, c); | 
|---|
| 12917 | SetFS(sel); | 
|---|
| 12918 |  | 
|---|
| 12919 | return yyrc; | 
|---|
| 12920 | } | 
|---|
| 12921 |  | 
|---|
| 12922 | #undef  DdfSetColor | 
|---|
| 12923 | #define DdfSetColor _DdfSetColor | 
|---|
| 12924 |  | 
|---|
| 12925 | inline BOOL _DdfSetFont(HDDF a, PCSZ b, ULONG c, ULONG d) | 
|---|
| 12926 | { | 
|---|
| 12927 | BOOL yyrc; | 
|---|
| 12928 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12929 |  | 
|---|
| 12930 | yyrc = DdfSetFont(a, b, c, d); | 
|---|
| 12931 | SetFS(sel); | 
|---|
| 12932 |  | 
|---|
| 12933 | return yyrc; | 
|---|
| 12934 | } | 
|---|
| 12935 |  | 
|---|
| 12936 | #undef  DdfSetFont | 
|---|
| 12937 | #define DdfSetFont _DdfSetFont | 
|---|
| 12938 |  | 
|---|
| 12939 | inline BOOL _DdfSetFontStyle(HDDF a, ULONG b) | 
|---|
| 12940 | { | 
|---|
| 12941 | BOOL yyrc; | 
|---|
| 12942 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12943 |  | 
|---|
| 12944 | yyrc = DdfSetFontStyle(a, b); | 
|---|
| 12945 | SetFS(sel); | 
|---|
| 12946 |  | 
|---|
| 12947 | return yyrc; | 
|---|
| 12948 | } | 
|---|
| 12949 |  | 
|---|
| 12950 | #undef  DdfSetFontStyle | 
|---|
| 12951 | #define DdfSetFontStyle _DdfSetFontStyle | 
|---|
| 12952 |  | 
|---|
| 12953 | inline BOOL _DdfSetFormat(HDDF a, ULONG b) | 
|---|
| 12954 | { | 
|---|
| 12955 | BOOL yyrc; | 
|---|
| 12956 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12957 |  | 
|---|
| 12958 | yyrc = DdfSetFormat(a, b); | 
|---|
| 12959 | SetFS(sel); | 
|---|
| 12960 |  | 
|---|
| 12961 | return yyrc; | 
|---|
| 12962 | } | 
|---|
| 12963 |  | 
|---|
| 12964 | #undef  DdfSetFormat | 
|---|
| 12965 | #define DdfSetFormat _DdfSetFormat | 
|---|
| 12966 |  | 
|---|
| 12967 | inline BOOL _DdfSetTextAlign(HDDF a, ULONG b) | 
|---|
| 12968 | { | 
|---|
| 12969 | BOOL yyrc; | 
|---|
| 12970 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12971 |  | 
|---|
| 12972 | yyrc = DdfSetTextAlign(a, b); | 
|---|
| 12973 | SetFS(sel); | 
|---|
| 12974 |  | 
|---|
| 12975 | return yyrc; | 
|---|
| 12976 | } | 
|---|
| 12977 |  | 
|---|
| 12978 | #undef  DdfSetTextAlign | 
|---|
| 12979 | #define DdfSetTextAlign _DdfSetTextAlign | 
|---|
| 12980 |  | 
|---|
| 12981 | inline BOOL _DdfText(HDDF a, PCSZ b) | 
|---|
| 12982 | { | 
|---|
| 12983 | BOOL yyrc; | 
|---|
| 12984 | USHORT sel = RestoreOS2FS(); | 
|---|
| 12985 |  | 
|---|
| 12986 | yyrc = DdfText(a, b); | 
|---|
| 12987 | SetFS(sel); | 
|---|
| 12988 |  | 
|---|
| 12989 | return yyrc; | 
|---|
| 12990 | } | 
|---|
| 12991 |  | 
|---|
| 12992 | #undef  DdfText | 
|---|
| 12993 | #define DdfText _DdfText | 
|---|
| 12994 |  | 
|---|
| 12995 | #endif | 
|---|
| 12996 | #ifdef INCL_AVIO | 
|---|
| 12997 | inline USHORT _VioAssociate(HDC a, HVPS b) | 
|---|
| 12998 | { | 
|---|
| 12999 | USHORT yyrc; | 
|---|
| 13000 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13001 |  | 
|---|
| 13002 | yyrc = VIO16ASSOCIATE(a, b); | 
|---|
| 13003 | SetFS(sel); | 
|---|
| 13004 |  | 
|---|
| 13005 | return yyrc; | 
|---|
| 13006 | } | 
|---|
| 13007 |  | 
|---|
| 13008 | #undef  VioAssociate | 
|---|
| 13009 | #define VioAssociate _VioAssociate | 
|---|
| 13010 |  | 
|---|
| 13011 | inline USHORT _VioCreateLogFont(PFATTRS a, LONG b, PSTR8 c, HVPS d) | 
|---|
| 13012 | { | 
|---|
| 13013 | USHORT yyrc; | 
|---|
| 13014 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13015 |  | 
|---|
| 13016 | yyrc = VIO16CREATELOGFONT(a, b, c, d); | 
|---|
| 13017 | SetFS(sel); | 
|---|
| 13018 |  | 
|---|
| 13019 | return yyrc; | 
|---|
| 13020 | } | 
|---|
| 13021 |  | 
|---|
| 13022 | #undef  VioCreateLogFont | 
|---|
| 13023 | #define VioCreateLogFont _VioCreateLogFont | 
|---|
| 13024 |  | 
|---|
| 13025 | inline USHORT _VioCreatePS(PHVPS a, SHORT b, SHORT c, SHORT d, SHORT e, HVPS f) | 
|---|
| 13026 | { | 
|---|
| 13027 | USHORT yyrc; | 
|---|
| 13028 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13029 |  | 
|---|
| 13030 | yyrc = VIO16CREATEPS(a, b, c, d, e, f); | 
|---|
| 13031 | SetFS(sel); | 
|---|
| 13032 |  | 
|---|
| 13033 | return yyrc; | 
|---|
| 13034 | } | 
|---|
| 13035 |  | 
|---|
| 13036 | #undef  VioCreatePS | 
|---|
| 13037 | #define VioCreatePS _VioCreatePS | 
|---|
| 13038 |  | 
|---|
| 13039 | inline USHORT _VioDeleteSetId(LONG a, HVPS b) | 
|---|
| 13040 | { | 
|---|
| 13041 | USHORT yyrc; | 
|---|
| 13042 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13043 |  | 
|---|
| 13044 | yyrc = VIO16DELETESETID(a, b); | 
|---|
| 13045 | SetFS(sel); | 
|---|
| 13046 |  | 
|---|
| 13047 | return yyrc; | 
|---|
| 13048 | } | 
|---|
| 13049 |  | 
|---|
| 13050 | #undef  VioDeleteSetId | 
|---|
| 13051 | #define VioDeleteSetId _VioDeleteSetId | 
|---|
| 13052 |  | 
|---|
| 13053 | inline USHORT _VioDestroyPS(HVPS a) | 
|---|
| 13054 | { | 
|---|
| 13055 | USHORT yyrc; | 
|---|
| 13056 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13057 |  | 
|---|
| 13058 | yyrc = VIO16DESTROYPS(a); | 
|---|
| 13059 | SetFS(sel); | 
|---|
| 13060 |  | 
|---|
| 13061 | return yyrc; | 
|---|
| 13062 | } | 
|---|
| 13063 |  | 
|---|
| 13064 | #undef  VioDestroyPS | 
|---|
| 13065 | #define VioDestroyPS _VioDestroyPS | 
|---|
| 13066 |  | 
|---|
| 13067 | inline USHORT _VioGetDeviceCellSize(PSHORT a, PSHORT b, HVPS c) | 
|---|
| 13068 | { | 
|---|
| 13069 | USHORT yyrc; | 
|---|
| 13070 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13071 |  | 
|---|
| 13072 | yyrc = VIO16GETDEVICECELLSIZE(a, b, c); | 
|---|
| 13073 | SetFS(sel); | 
|---|
| 13074 |  | 
|---|
| 13075 | return yyrc; | 
|---|
| 13076 | } | 
|---|
| 13077 |  | 
|---|
| 13078 | #undef  VioGetDeviceCellSize | 
|---|
| 13079 | #define VioGetDeviceCellSize _VioGetDeviceCellSize | 
|---|
| 13080 |  | 
|---|
| 13081 | inline USHORT _VioGetOrg(PSHORT a, PSHORT b, HVPS c) | 
|---|
| 13082 | { | 
|---|
| 13083 | USHORT yyrc; | 
|---|
| 13084 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13085 |  | 
|---|
| 13086 | yyrc = VIO16GETORG(a, b, c); | 
|---|
| 13087 | SetFS(sel); | 
|---|
| 13088 |  | 
|---|
| 13089 | return yyrc; | 
|---|
| 13090 | } | 
|---|
| 13091 |  | 
|---|
| 13092 | #undef  VioGetOrg | 
|---|
| 13093 | #define VioGetOrg _VioGetOrg | 
|---|
| 13094 |  | 
|---|
| 13095 | inline USHORT _VioQueryFonts(PLONG a, PFONTMETRICS b, LONG c, PLONG d, PSZ e, ULONG f, HVPS g) | 
|---|
| 13096 | { | 
|---|
| 13097 | USHORT yyrc; | 
|---|
| 13098 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13099 |  | 
|---|
| 13100 | yyrc = VIO16QUERYFONTS(a, b, c, d, e, f, g); | 
|---|
| 13101 | SetFS(sel); | 
|---|
| 13102 |  | 
|---|
| 13103 | return yyrc; | 
|---|
| 13104 | } | 
|---|
| 13105 |  | 
|---|
| 13106 | #undef  VioQueryFonts | 
|---|
| 13107 | #define VioQueryFonts _VioQueryFonts | 
|---|
| 13108 |  | 
|---|
| 13109 | inline USHORT _VioQuerySetIds(PLONG a, PSTR8 b, PLONG c, LONG d, HVPS e) | 
|---|
| 13110 | { | 
|---|
| 13111 | USHORT yyrc; | 
|---|
| 13112 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13113 |  | 
|---|
| 13114 | yyrc = VIO16QUERYSETIDS(a, b, c, d, e); | 
|---|
| 13115 | SetFS(sel); | 
|---|
| 13116 |  | 
|---|
| 13117 | return yyrc; | 
|---|
| 13118 | } | 
|---|
| 13119 |  | 
|---|
| 13120 | #undef  VioQuerySetIds | 
|---|
| 13121 | #define VioQuerySetIds _VioQuerySetIds | 
|---|
| 13122 |  | 
|---|
| 13123 | inline USHORT _VioSetDeviceCellSize(SHORT a, SHORT b, HVPS c) | 
|---|
| 13124 | { | 
|---|
| 13125 | USHORT yyrc; | 
|---|
| 13126 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13127 |  | 
|---|
| 13128 | yyrc = VIO16SETDEVICECELLSIZE(a, b, c); | 
|---|
| 13129 | SetFS(sel); | 
|---|
| 13130 |  | 
|---|
| 13131 | return yyrc; | 
|---|
| 13132 | } | 
|---|
| 13133 |  | 
|---|
| 13134 | #undef  VioSetDeviceCellSize | 
|---|
| 13135 | #define VioSetDeviceCellSize _VioSetDeviceCellSize | 
|---|
| 13136 |  | 
|---|
| 13137 | inline USHORT _VioSetOrg(SHORT a, SHORT b, HVPS c) | 
|---|
| 13138 | { | 
|---|
| 13139 | USHORT yyrc; | 
|---|
| 13140 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13141 |  | 
|---|
| 13142 | yyrc = VIO16SETORG(a, b, c); | 
|---|
| 13143 | SetFS(sel); | 
|---|
| 13144 |  | 
|---|
| 13145 | return yyrc; | 
|---|
| 13146 | } | 
|---|
| 13147 |  | 
|---|
| 13148 | #undef  VioSetOrg | 
|---|
| 13149 | #define VioSetOrg _VioSetOrg | 
|---|
| 13150 |  | 
|---|
| 13151 | inline USHORT _VioShowPS(SHORT a, SHORT b, SHORT c, HVPS d) | 
|---|
| 13152 | { | 
|---|
| 13153 | USHORT yyrc; | 
|---|
| 13154 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13155 |  | 
|---|
| 13156 | yyrc = VIO16SHOWPS(a, b, c, d); | 
|---|
| 13157 | SetFS(sel); | 
|---|
| 13158 |  | 
|---|
| 13159 | return yyrc; | 
|---|
| 13160 | } | 
|---|
| 13161 |  | 
|---|
| 13162 | #undef  VioShowPS | 
|---|
| 13163 | #define VioShowPS _VioShowPS | 
|---|
| 13164 |  | 
|---|
| 13165 | inline MRESULT _WinDefAVioWindowProc(HWND a, USHORT b, ULONG c, ULONG d) | 
|---|
| 13166 | { | 
|---|
| 13167 | MRESULT yyrc; | 
|---|
| 13168 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13169 |  | 
|---|
| 13170 | yyrc = WinDefAVioWindowProc(a, b, c, d); | 
|---|
| 13171 | SetFS(sel); | 
|---|
| 13172 |  | 
|---|
| 13173 | return yyrc; | 
|---|
| 13174 | } | 
|---|
| 13175 |  | 
|---|
| 13176 | #undef  WinDefAVioWindowProc | 
|---|
| 13177 | #define WinDefAVioWindowProc _WinDefAVioWindowProc | 
|---|
| 13178 |  | 
|---|
| 13179 | #endif | 
|---|
| 13180 | #ifdef INCL_KBD | 
|---|
| 13181 | inline USHORT _KbdCharIn(PKBDKEYINFO a, USHORT b, HKBD c) | 
|---|
| 13182 | { | 
|---|
| 13183 | USHORT yyrc; | 
|---|
| 13184 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13185 |  | 
|---|
| 13186 | yyrc = KbdCharIn(a, b, c); | 
|---|
| 13187 | SetFS(sel); | 
|---|
| 13188 |  | 
|---|
| 13189 | return yyrc; | 
|---|
| 13190 | } | 
|---|
| 13191 |  | 
|---|
| 13192 | #undef  KbdCharIn | 
|---|
| 13193 | #define KbdCharIn _KbdCharIn | 
|---|
| 13194 |  | 
|---|
| 13195 | inline USHORT _KbdClose(HKBD a) | 
|---|
| 13196 | { | 
|---|
| 13197 | USHORT yyrc; | 
|---|
| 13198 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13199 |  | 
|---|
| 13200 | yyrc = KbdClose(a); | 
|---|
| 13201 | SetFS(sel); | 
|---|
| 13202 |  | 
|---|
| 13203 | return yyrc; | 
|---|
| 13204 | } | 
|---|
| 13205 |  | 
|---|
| 13206 | #undef  KbdClose | 
|---|
| 13207 | #define KbdClose _KbdClose | 
|---|
| 13208 |  | 
|---|
| 13209 | inline USHORT _KbdDeRegister() | 
|---|
| 13210 | { | 
|---|
| 13211 | USHORT yyrc; | 
|---|
| 13212 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13213 |  | 
|---|
| 13214 | yyrc = KbdDeRegister(); | 
|---|
| 13215 | SetFS(sel); | 
|---|
| 13216 |  | 
|---|
| 13217 | return yyrc; | 
|---|
| 13218 | } | 
|---|
| 13219 |  | 
|---|
| 13220 | #undef  KbdDeRegister | 
|---|
| 13221 | #define KbdDeRegister _KbdDeRegister | 
|---|
| 13222 |  | 
|---|
| 13223 | inline USHORT _KbdFlushBuffer(HKBD a) | 
|---|
| 13224 | { | 
|---|
| 13225 | USHORT yyrc; | 
|---|
| 13226 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13227 |  | 
|---|
| 13228 | yyrc = KbdFlushBuffer(a); | 
|---|
| 13229 | SetFS(sel); | 
|---|
| 13230 |  | 
|---|
| 13231 | return yyrc; | 
|---|
| 13232 | } | 
|---|
| 13233 |  | 
|---|
| 13234 | #undef  KbdFlushBuffer | 
|---|
| 13235 | #define KbdFlushBuffer _KbdFlushBuffer | 
|---|
| 13236 |  | 
|---|
| 13237 | inline USHORT _KbdFreeFocus(HKBD a) | 
|---|
| 13238 | { | 
|---|
| 13239 | USHORT yyrc; | 
|---|
| 13240 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13241 |  | 
|---|
| 13242 | yyrc = KbdFreeFocus(a); | 
|---|
| 13243 | SetFS(sel); | 
|---|
| 13244 |  | 
|---|
| 13245 | return yyrc; | 
|---|
| 13246 | } | 
|---|
| 13247 |  | 
|---|
| 13248 | #undef  KbdFreeFocus | 
|---|
| 13249 | #define KbdFreeFocus _KbdFreeFocus | 
|---|
| 13250 |  | 
|---|
| 13251 | inline USHORT _KbdGetCp(ULONG a, PUSHORT b, HKBD c) | 
|---|
| 13252 | { | 
|---|
| 13253 | USHORT yyrc; | 
|---|
| 13254 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13255 |  | 
|---|
| 13256 | yyrc = KbdGetCp(a, b, c); | 
|---|
| 13257 | SetFS(sel); | 
|---|
| 13258 |  | 
|---|
| 13259 | return yyrc; | 
|---|
| 13260 | } | 
|---|
| 13261 |  | 
|---|
| 13262 | #undef  KbdGetCp | 
|---|
| 13263 | #define KbdGetCp _KbdGetCp | 
|---|
| 13264 |  | 
|---|
| 13265 | inline USHORT _KbdGetFocus(USHORT a, HKBD b) | 
|---|
| 13266 | { | 
|---|
| 13267 | USHORT yyrc; | 
|---|
| 13268 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13269 |  | 
|---|
| 13270 | yyrc = KbdGetFocus(a, b); | 
|---|
| 13271 | SetFS(sel); | 
|---|
| 13272 |  | 
|---|
| 13273 | return yyrc; | 
|---|
| 13274 | } | 
|---|
| 13275 |  | 
|---|
| 13276 | #undef  KbdGetFocus | 
|---|
| 13277 | #define KbdGetFocus _KbdGetFocus | 
|---|
| 13278 |  | 
|---|
| 13279 | inline USHORT _KbdGetHWID(PKBDHWID a, HKBD b) | 
|---|
| 13280 | { | 
|---|
| 13281 | USHORT yyrc; | 
|---|
| 13282 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13283 |  | 
|---|
| 13284 | yyrc = KbdGetHWID(a, b); | 
|---|
| 13285 | SetFS(sel); | 
|---|
| 13286 |  | 
|---|
| 13287 | return yyrc; | 
|---|
| 13288 | } | 
|---|
| 13289 |  | 
|---|
| 13290 | #undef  KbdGetHWID | 
|---|
| 13291 | #define KbdGetHWID _KbdGetHWID | 
|---|
| 13292 |  | 
|---|
| 13293 | inline USHORT _KbdGetStatus(PKBDINFO a, HKBD b) | 
|---|
| 13294 | { | 
|---|
| 13295 | USHORT yyrc; | 
|---|
| 13296 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13297 |  | 
|---|
| 13298 | yyrc = KbdGetStatus(a, b); | 
|---|
| 13299 | SetFS(sel); | 
|---|
| 13300 |  | 
|---|
| 13301 | return yyrc; | 
|---|
| 13302 | } | 
|---|
| 13303 |  | 
|---|
| 13304 | #undef  KbdGetStatus | 
|---|
| 13305 | #define KbdGetStatus _KbdGetStatus | 
|---|
| 13306 |  | 
|---|
| 13307 | inline USHORT _KbdOpen(PHKBD a) | 
|---|
| 13308 | { | 
|---|
| 13309 | USHORT yyrc; | 
|---|
| 13310 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13311 |  | 
|---|
| 13312 | yyrc = KbdOpen(a); | 
|---|
| 13313 | SetFS(sel); | 
|---|
| 13314 |  | 
|---|
| 13315 | return yyrc; | 
|---|
| 13316 | } | 
|---|
| 13317 |  | 
|---|
| 13318 | #undef  KbdOpen | 
|---|
| 13319 | #define KbdOpen _KbdOpen | 
|---|
| 13320 |  | 
|---|
| 13321 | inline USHORT _KbdPeek(PKBDKEYINFO a, HKBD b) | 
|---|
| 13322 | { | 
|---|
| 13323 | USHORT yyrc; | 
|---|
| 13324 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13325 |  | 
|---|
| 13326 | yyrc = KbdPeek(a, b); | 
|---|
| 13327 | SetFS(sel); | 
|---|
| 13328 |  | 
|---|
| 13329 | return yyrc; | 
|---|
| 13330 | } | 
|---|
| 13331 |  | 
|---|
| 13332 | #undef  KbdPeek | 
|---|
| 13333 | #define KbdPeek _KbdPeek | 
|---|
| 13334 |  | 
|---|
| 13335 | inline USHORT _KbdRegister(PSZ a, PSZ b, ULONG c) | 
|---|
| 13336 | { | 
|---|
| 13337 | USHORT yyrc; | 
|---|
| 13338 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13339 |  | 
|---|
| 13340 | yyrc = KbdRegister(a, b, c); | 
|---|
| 13341 | SetFS(sel); | 
|---|
| 13342 |  | 
|---|
| 13343 | return yyrc; | 
|---|
| 13344 | } | 
|---|
| 13345 |  | 
|---|
| 13346 | #undef  KbdRegister | 
|---|
| 13347 | #define KbdRegister _KbdRegister | 
|---|
| 13348 |  | 
|---|
| 13349 | inline USHORT _KbdSetCp(USHORT a, USHORT b, HKBD c) | 
|---|
| 13350 | { | 
|---|
| 13351 | USHORT yyrc; | 
|---|
| 13352 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13353 |  | 
|---|
| 13354 | yyrc = KbdSetCp(a, b, c); | 
|---|
| 13355 | SetFS(sel); | 
|---|
| 13356 |  | 
|---|
| 13357 | return yyrc; | 
|---|
| 13358 | } | 
|---|
| 13359 |  | 
|---|
| 13360 | #undef  KbdSetCp | 
|---|
| 13361 | #define KbdSetCp _KbdSetCp | 
|---|
| 13362 |  | 
|---|
| 13363 | inline USHORT _KbdSetCustXt(PUSHORT a, HKBD b) | 
|---|
| 13364 | { | 
|---|
| 13365 | USHORT yyrc; | 
|---|
| 13366 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13367 |  | 
|---|
| 13368 | yyrc = KbdSetCustXt(a, b); | 
|---|
| 13369 | SetFS(sel); | 
|---|
| 13370 |  | 
|---|
| 13371 | return yyrc; | 
|---|
| 13372 | } | 
|---|
| 13373 |  | 
|---|
| 13374 | #undef  KbdSetCustXt | 
|---|
| 13375 | #define KbdSetCustXt _KbdSetCustXt | 
|---|
| 13376 |  | 
|---|
| 13377 | inline USHORT _KbdSetFgnd() | 
|---|
| 13378 | { | 
|---|
| 13379 | USHORT yyrc; | 
|---|
| 13380 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13381 |  | 
|---|
| 13382 | yyrc = KbdSetFgnd(); | 
|---|
| 13383 | SetFS(sel); | 
|---|
| 13384 |  | 
|---|
| 13385 | return yyrc; | 
|---|
| 13386 | } | 
|---|
| 13387 |  | 
|---|
| 13388 | #undef  KbdSetFgnd | 
|---|
| 13389 | #define KbdSetFgnd _KbdSetFgnd | 
|---|
| 13390 |  | 
|---|
| 13391 | inline USHORT _KbdSetHWID(PKBDHWID a, HKBD b) | 
|---|
| 13392 | { | 
|---|
| 13393 | USHORT yyrc; | 
|---|
| 13394 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13395 |  | 
|---|
| 13396 | yyrc = KbdSetHWID(a, b); | 
|---|
| 13397 | SetFS(sel); | 
|---|
| 13398 |  | 
|---|
| 13399 | return yyrc; | 
|---|
| 13400 | } | 
|---|
| 13401 |  | 
|---|
| 13402 | #undef  KbdSetHWID | 
|---|
| 13403 | #define KbdSetHWID _KbdSetHWID | 
|---|
| 13404 |  | 
|---|
| 13405 | inline USHORT _KbdSetStatus(PKBDINFO a, HKBD b) | 
|---|
| 13406 | { | 
|---|
| 13407 | USHORT yyrc; | 
|---|
| 13408 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13409 |  | 
|---|
| 13410 | yyrc = KbdSetStatus(a, b); | 
|---|
| 13411 | SetFS(sel); | 
|---|
| 13412 |  | 
|---|
| 13413 | return yyrc; | 
|---|
| 13414 | } | 
|---|
| 13415 |  | 
|---|
| 13416 | #undef  KbdSetStatus | 
|---|
| 13417 | #define KbdSetStatus _KbdSetStatus | 
|---|
| 13418 |  | 
|---|
| 13419 | inline USHORT _KbdStringIn(PCH a, PSTRINGINBUF b, USHORT c, HKBD d) | 
|---|
| 13420 | { | 
|---|
| 13421 | USHORT yyrc; | 
|---|
| 13422 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13423 |  | 
|---|
| 13424 | yyrc = KbdStringIn(a, b, c, d); | 
|---|
| 13425 | SetFS(sel); | 
|---|
| 13426 |  | 
|---|
| 13427 | return yyrc; | 
|---|
| 13428 | } | 
|---|
| 13429 |  | 
|---|
| 13430 | #undef  KbdStringIn | 
|---|
| 13431 | #define KbdStringIn _KbdStringIn | 
|---|
| 13432 |  | 
|---|
| 13433 | inline USHORT _KbdSynch(USHORT a) | 
|---|
| 13434 | { | 
|---|
| 13435 | USHORT yyrc; | 
|---|
| 13436 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13437 |  | 
|---|
| 13438 | yyrc = KbdSynch(a); | 
|---|
| 13439 | SetFS(sel); | 
|---|
| 13440 |  | 
|---|
| 13441 | return yyrc; | 
|---|
| 13442 | } | 
|---|
| 13443 |  | 
|---|
| 13444 | #undef  KbdSynch | 
|---|
| 13445 | #define KbdSynch _KbdSynch | 
|---|
| 13446 |  | 
|---|
| 13447 | inline USHORT _KbdXlate(PKBDTRANS a, HKBD b) | 
|---|
| 13448 | { | 
|---|
| 13449 | USHORT yyrc; | 
|---|
| 13450 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13451 |  | 
|---|
| 13452 | yyrc = KbdXlate(a, b); | 
|---|
| 13453 | SetFS(sel); | 
|---|
| 13454 |  | 
|---|
| 13455 | return yyrc; | 
|---|
| 13456 | } | 
|---|
| 13457 |  | 
|---|
| 13458 | #undef  KbdXlate | 
|---|
| 13459 | #define KbdXlate _KbdXlate | 
|---|
| 13460 |  | 
|---|
| 13461 | #endif | 
|---|
| 13462 | #ifdef INCL_VIO | 
|---|
| 13463 | inline USHORT _VioCheckCharType(PUSHORT a, USHORT b, USHORT c, HVIO d) | 
|---|
| 13464 | { | 
|---|
| 13465 | USHORT yyrc; | 
|---|
| 13466 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13467 |  | 
|---|
| 13468 | yyrc = VIO16CHECKCHARTYPE(a, b, c, d); | 
|---|
| 13469 | SetFS(sel); | 
|---|
| 13470 |  | 
|---|
| 13471 | return yyrc; | 
|---|
| 13472 | } | 
|---|
| 13473 |  | 
|---|
| 13474 | #undef  VioCheckCharType | 
|---|
| 13475 | #define VioCheckCharType _VioCheckCharType | 
|---|
| 13476 |  | 
|---|
| 13477 | inline USHORT _VioDeRegister() | 
|---|
| 13478 | { | 
|---|
| 13479 | USHORT yyrc; | 
|---|
| 13480 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13481 |  | 
|---|
| 13482 | yyrc = VIO16DEREGISTER(); | 
|---|
| 13483 | SetFS(sel); | 
|---|
| 13484 |  | 
|---|
| 13485 | return yyrc; | 
|---|
| 13486 | } | 
|---|
| 13487 |  | 
|---|
| 13488 | #undef  VioDeRegister | 
|---|
| 13489 | #define VioDeRegister _VioDeRegister | 
|---|
| 13490 |  | 
|---|
| 13491 | inline USHORT _VioEndPopUp(HVIO a) | 
|---|
| 13492 | { | 
|---|
| 13493 | USHORT yyrc; | 
|---|
| 13494 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13495 |  | 
|---|
| 13496 | yyrc = VIO16ENDPOPUP(a); | 
|---|
| 13497 | SetFS(sel); | 
|---|
| 13498 |  | 
|---|
| 13499 | return yyrc; | 
|---|
| 13500 | } | 
|---|
| 13501 |  | 
|---|
| 13502 | #undef  VioEndPopUp | 
|---|
| 13503 | #define VioEndPopUp _VioEndPopUp | 
|---|
| 13504 |  | 
|---|
| 13505 | inline USHORT _VioGetAnsi(PUSHORT a, HVIO b) | 
|---|
| 13506 | { | 
|---|
| 13507 | USHORT yyrc; | 
|---|
| 13508 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13509 |  | 
|---|
| 13510 | yyrc = VIO16GETANSI(a, b); | 
|---|
| 13511 | SetFS(sel); | 
|---|
| 13512 |  | 
|---|
| 13513 | return yyrc; | 
|---|
| 13514 | } | 
|---|
| 13515 |  | 
|---|
| 13516 | #undef  VioGetAnsi | 
|---|
| 13517 | #define VioGetAnsi _VioGetAnsi | 
|---|
| 13518 |  | 
|---|
| 13519 | inline USHORT _VioGetBuf(PULONG a, PUSHORT b, HVIO c) | 
|---|
| 13520 | { | 
|---|
| 13521 | USHORT yyrc; | 
|---|
| 13522 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13523 |  | 
|---|
| 13524 | yyrc = VIO16GETBUF(a, b, c); | 
|---|
| 13525 | SetFS(sel); | 
|---|
| 13526 |  | 
|---|
| 13527 | return yyrc; | 
|---|
| 13528 | } | 
|---|
| 13529 |  | 
|---|
| 13530 | #undef  VioGetBuf | 
|---|
| 13531 | #define VioGetBuf _VioGetBuf | 
|---|
| 13532 |  | 
|---|
| 13533 | inline USHORT _VioGetConfig(USHORT a, PVIOCONFIGINFO b, HVIO c) | 
|---|
| 13534 | { | 
|---|
| 13535 | USHORT yyrc; | 
|---|
| 13536 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13537 |  | 
|---|
| 13538 | yyrc = VIO16GETCONFIG(a, b, c); | 
|---|
| 13539 | SetFS(sel); | 
|---|
| 13540 |  | 
|---|
| 13541 | return yyrc; | 
|---|
| 13542 | } | 
|---|
| 13543 |  | 
|---|
| 13544 | #undef  VioGetConfig | 
|---|
| 13545 | #define VioGetConfig _VioGetConfig | 
|---|
| 13546 |  | 
|---|
| 13547 | inline USHORT _VioGetCp(USHORT a, PUSHORT b, HVIO c) | 
|---|
| 13548 | { | 
|---|
| 13549 | USHORT yyrc; | 
|---|
| 13550 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13551 |  | 
|---|
| 13552 | yyrc = VIO16GETCP(a, b, c); | 
|---|
| 13553 | SetFS(sel); | 
|---|
| 13554 |  | 
|---|
| 13555 | return yyrc; | 
|---|
| 13556 | } | 
|---|
| 13557 |  | 
|---|
| 13558 | #undef  VioGetCp | 
|---|
| 13559 | #define VioGetCp _VioGetCp | 
|---|
| 13560 |  | 
|---|
| 13561 | inline USHORT _VioGetCurPos(PUSHORT a, PUSHORT b, HVIO c) | 
|---|
| 13562 | { | 
|---|
| 13563 | USHORT yyrc; | 
|---|
| 13564 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13565 |  | 
|---|
| 13566 | yyrc = VIO16GETCURPOS(a, b, c); | 
|---|
| 13567 | SetFS(sel); | 
|---|
| 13568 |  | 
|---|
| 13569 | return yyrc; | 
|---|
| 13570 | } | 
|---|
| 13571 |  | 
|---|
| 13572 | #undef  VioGetCurPos | 
|---|
| 13573 | #define VioGetCurPos _VioGetCurPos | 
|---|
| 13574 |  | 
|---|
| 13575 | inline USHORT _VioGetCurType(PVIOCURSORINFO a, HVIO b) | 
|---|
| 13576 | { | 
|---|
| 13577 | USHORT yyrc; | 
|---|
| 13578 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13579 |  | 
|---|
| 13580 | yyrc = VIO16GETCURTYPE(a, b); | 
|---|
| 13581 | SetFS(sel); | 
|---|
| 13582 |  | 
|---|
| 13583 | return yyrc; | 
|---|
| 13584 | } | 
|---|
| 13585 |  | 
|---|
| 13586 | #undef  VioGetCurType | 
|---|
| 13587 | #define VioGetCurType _VioGetCurType | 
|---|
| 13588 |  | 
|---|
| 13589 | inline USHORT _VioGetFont(PVIOFONTINFO a, HVIO b) | 
|---|
| 13590 | { | 
|---|
| 13591 | USHORT yyrc; | 
|---|
| 13592 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13593 |  | 
|---|
| 13594 | yyrc = VIO16GETFONT(a, b); | 
|---|
| 13595 | SetFS(sel); | 
|---|
| 13596 |  | 
|---|
| 13597 | return yyrc; | 
|---|
| 13598 | } | 
|---|
| 13599 |  | 
|---|
| 13600 | #undef  VioGetFont | 
|---|
| 13601 | #define VioGetFont _VioGetFont | 
|---|
| 13602 |  | 
|---|
| 13603 | inline USHORT _VioGetMode(PVIOMODEINFO a, HVIO b) | 
|---|
| 13604 | { | 
|---|
| 13605 | USHORT yyrc; | 
|---|
| 13606 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13607 |  | 
|---|
| 13608 | yyrc = VIO16GETMODE(a, b); | 
|---|
| 13609 | SetFS(sel); | 
|---|
| 13610 |  | 
|---|
| 13611 | return yyrc; | 
|---|
| 13612 | } | 
|---|
| 13613 |  | 
|---|
| 13614 | #undef  VioGetMode | 
|---|
| 13615 | #define VioGetMode _VioGetMode | 
|---|
| 13616 |  | 
|---|
| 13617 | inline USHORT _VioGetPhysBuf(PVIOPHYSBUF a, USHORT b) | 
|---|
| 13618 | { | 
|---|
| 13619 | USHORT yyrc; | 
|---|
| 13620 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13621 |  | 
|---|
| 13622 | yyrc = VIO16GETPHYSBUF(a, b); | 
|---|
| 13623 | SetFS(sel); | 
|---|
| 13624 |  | 
|---|
| 13625 | return yyrc; | 
|---|
| 13626 | } | 
|---|
| 13627 |  | 
|---|
| 13628 | #undef  VioGetPhysBuf | 
|---|
| 13629 | #define VioGetPhysBuf _VioGetPhysBuf | 
|---|
| 13630 |  | 
|---|
| 13631 | inline USHORT _VioGetState(PVOID a, HVIO b) | 
|---|
| 13632 | { | 
|---|
| 13633 | USHORT yyrc; | 
|---|
| 13634 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13635 |  | 
|---|
| 13636 | yyrc = VIO16GETSTATE(a, b); | 
|---|
| 13637 | SetFS(sel); | 
|---|
| 13638 |  | 
|---|
| 13639 | return yyrc; | 
|---|
| 13640 | } | 
|---|
| 13641 |  | 
|---|
| 13642 | #undef  VioGetState | 
|---|
| 13643 | #define VioGetState _VioGetState | 
|---|
| 13644 |  | 
|---|
| 13645 | inline USHORT _VioModeUndo(USHORT a, USHORT b, USHORT c) | 
|---|
| 13646 | { | 
|---|
| 13647 | USHORT yyrc; | 
|---|
| 13648 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13649 |  | 
|---|
| 13650 | yyrc = VIO16MODEUNDO(a, b, c); | 
|---|
| 13651 | SetFS(sel); | 
|---|
| 13652 |  | 
|---|
| 13653 | return yyrc; | 
|---|
| 13654 | } | 
|---|
| 13655 |  | 
|---|
| 13656 | #undef  VioModeUndo | 
|---|
| 13657 | #define VioModeUndo _VioModeUndo | 
|---|
| 13658 |  | 
|---|
| 13659 | inline USHORT _VioModeWait(USHORT a, PUSHORT b, USHORT c) | 
|---|
| 13660 | { | 
|---|
| 13661 | USHORT yyrc; | 
|---|
| 13662 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13663 |  | 
|---|
| 13664 | yyrc = VIO16MODEWAIT(a, b, c); | 
|---|
| 13665 | SetFS(sel); | 
|---|
| 13666 |  | 
|---|
| 13667 | return yyrc; | 
|---|
| 13668 | } | 
|---|
| 13669 |  | 
|---|
| 13670 | #undef  VioModeWait | 
|---|
| 13671 | #define VioModeWait _VioModeWait | 
|---|
| 13672 |  | 
|---|
| 13673 | inline USHORT _VioPopUp(PUSHORT a, HVIO b) | 
|---|
| 13674 | { | 
|---|
| 13675 | USHORT yyrc; | 
|---|
| 13676 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13677 |  | 
|---|
| 13678 | yyrc = VIO16POPUP(a, b); | 
|---|
| 13679 | SetFS(sel); | 
|---|
| 13680 |  | 
|---|
| 13681 | return yyrc; | 
|---|
| 13682 | } | 
|---|
| 13683 |  | 
|---|
| 13684 | #undef  VioPopUp | 
|---|
| 13685 | #define VioPopUp _VioPopUp | 
|---|
| 13686 |  | 
|---|
| 13687 | inline USHORT _VioPrtSc(HVIO a) | 
|---|
| 13688 | { | 
|---|
| 13689 | USHORT yyrc; | 
|---|
| 13690 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13691 |  | 
|---|
| 13692 | yyrc = VIO16PRTSC(a); | 
|---|
| 13693 | SetFS(sel); | 
|---|
| 13694 |  | 
|---|
| 13695 | return yyrc; | 
|---|
| 13696 | } | 
|---|
| 13697 |  | 
|---|
| 13698 | #undef  VioPrtSc | 
|---|
| 13699 | #define VioPrtSc _VioPrtSc | 
|---|
| 13700 |  | 
|---|
| 13701 | inline USHORT _VioPrtScToggle(HVIO a) | 
|---|
| 13702 | { | 
|---|
| 13703 | USHORT yyrc; | 
|---|
| 13704 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13705 |  | 
|---|
| 13706 | yyrc = VIO16PRTSCTOGGLE(a); | 
|---|
| 13707 | SetFS(sel); | 
|---|
| 13708 |  | 
|---|
| 13709 | return yyrc; | 
|---|
| 13710 | } | 
|---|
| 13711 |  | 
|---|
| 13712 | #undef  VioPrtScToggle | 
|---|
| 13713 | #define VioPrtScToggle _VioPrtScToggle | 
|---|
| 13714 |  | 
|---|
| 13715 | inline USHORT _VioReadCellStr(PCH a, PUSHORT b, USHORT c, USHORT d, HVIO e) | 
|---|
| 13716 | { | 
|---|
| 13717 | USHORT yyrc; | 
|---|
| 13718 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13719 |  | 
|---|
| 13720 | yyrc = VIO16READCELLSTR(a, b, c, d, e); | 
|---|
| 13721 | SetFS(sel); | 
|---|
| 13722 |  | 
|---|
| 13723 | return yyrc; | 
|---|
| 13724 | } | 
|---|
| 13725 |  | 
|---|
| 13726 | #undef  VioReadCellStr | 
|---|
| 13727 | #define VioReadCellStr _VioReadCellStr | 
|---|
| 13728 |  | 
|---|
| 13729 | inline USHORT _VioReadCharStr(PCH a, PUSHORT b, USHORT c, USHORT d, HVIO e) | 
|---|
| 13730 | { | 
|---|
| 13731 | USHORT yyrc; | 
|---|
| 13732 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13733 |  | 
|---|
| 13734 | yyrc = VIO16READCHARSTR(a, b, c, d, e); | 
|---|
| 13735 | SetFS(sel); | 
|---|
| 13736 |  | 
|---|
| 13737 | return yyrc; | 
|---|
| 13738 | } | 
|---|
| 13739 |  | 
|---|
| 13740 | #undef  VioReadCharStr | 
|---|
| 13741 | #define VioReadCharStr _VioReadCharStr | 
|---|
| 13742 |  | 
|---|
| 13743 | inline USHORT _VioRegister(PSZ a, PSZ b, ULONG c, ULONG d) | 
|---|
| 13744 | { | 
|---|
| 13745 | USHORT yyrc; | 
|---|
| 13746 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13747 |  | 
|---|
| 13748 | yyrc = VIO16REGISTER(a, b, c, d); | 
|---|
| 13749 | SetFS(sel); | 
|---|
| 13750 |  | 
|---|
| 13751 | return yyrc; | 
|---|
| 13752 | } | 
|---|
| 13753 |  | 
|---|
| 13754 | #undef  VioRegister | 
|---|
| 13755 | #define VioRegister _VioRegister | 
|---|
| 13756 |  | 
|---|
| 13757 | inline USHORT _VioSavRedrawUndo(USHORT a, USHORT b, USHORT c) | 
|---|
| 13758 | { | 
|---|
| 13759 | USHORT yyrc; | 
|---|
| 13760 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13761 |  | 
|---|
| 13762 | yyrc = VIO16SAVREDRAWUNDO(a, b, c); | 
|---|
| 13763 | SetFS(sel); | 
|---|
| 13764 |  | 
|---|
| 13765 | return yyrc; | 
|---|
| 13766 | } | 
|---|
| 13767 |  | 
|---|
| 13768 | #undef  VioSavRedrawUndo | 
|---|
| 13769 | #define VioSavRedrawUndo _VioSavRedrawUndo | 
|---|
| 13770 |  | 
|---|
| 13771 | inline USHORT _VioSavRedrawWait(USHORT a, PUSHORT b, USHORT c) | 
|---|
| 13772 | { | 
|---|
| 13773 | USHORT yyrc; | 
|---|
| 13774 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13775 |  | 
|---|
| 13776 | yyrc = VIO16SAVREDRAWWAIT(a, b, c); | 
|---|
| 13777 | SetFS(sel); | 
|---|
| 13778 |  | 
|---|
| 13779 | return yyrc; | 
|---|
| 13780 | } | 
|---|
| 13781 |  | 
|---|
| 13782 | #undef  VioSavRedrawWait | 
|---|
| 13783 | #define VioSavRedrawWait _VioSavRedrawWait | 
|---|
| 13784 |  | 
|---|
| 13785 | inline USHORT _VioScrLock(USHORT a, PUCHAR b, HVIO c) | 
|---|
| 13786 | { | 
|---|
| 13787 | USHORT yyrc; | 
|---|
| 13788 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13789 |  | 
|---|
| 13790 | yyrc = VIO16SCRLOCK(a, b, c); | 
|---|
| 13791 | SetFS(sel); | 
|---|
| 13792 |  | 
|---|
| 13793 | return yyrc; | 
|---|
| 13794 | } | 
|---|
| 13795 |  | 
|---|
| 13796 | #undef  VioScrLock | 
|---|
| 13797 | #define VioScrLock _VioScrLock | 
|---|
| 13798 |  | 
|---|
| 13799 | inline USHORT _VioScrollDn(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g) | 
|---|
| 13800 | { | 
|---|
| 13801 | USHORT yyrc; | 
|---|
| 13802 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13803 |  | 
|---|
| 13804 | yyrc = VIO16SCROLLDN(a, b, c, d, e, f, g); | 
|---|
| 13805 | SetFS(sel); | 
|---|
| 13806 |  | 
|---|
| 13807 | return yyrc; | 
|---|
| 13808 | } | 
|---|
| 13809 |  | 
|---|
| 13810 | #undef  VioScrollDn | 
|---|
| 13811 | #define VioScrollDn _VioScrollDn | 
|---|
| 13812 |  | 
|---|
| 13813 | inline USHORT _VioScrollLf(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g) | 
|---|
| 13814 | { | 
|---|
| 13815 | USHORT yyrc; | 
|---|
| 13816 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13817 |  | 
|---|
| 13818 | yyrc = VIO16SCROLLLF(a, b, c, d, e, f, g); | 
|---|
| 13819 | SetFS(sel); | 
|---|
| 13820 |  | 
|---|
| 13821 | return yyrc; | 
|---|
| 13822 | } | 
|---|
| 13823 |  | 
|---|
| 13824 | #undef  VioScrollLf | 
|---|
| 13825 | #define VioScrollLf _VioScrollLf | 
|---|
| 13826 |  | 
|---|
| 13827 | inline USHORT _VioScrollRt(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g) | 
|---|
| 13828 | { | 
|---|
| 13829 | USHORT yyrc; | 
|---|
| 13830 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13831 |  | 
|---|
| 13832 | yyrc = VIO16SCROLLRT(a, b, c, d, e, f, g); | 
|---|
| 13833 | SetFS(sel); | 
|---|
| 13834 |  | 
|---|
| 13835 | return yyrc; | 
|---|
| 13836 | } | 
|---|
| 13837 |  | 
|---|
| 13838 | #undef  VioScrollRt | 
|---|
| 13839 | #define VioScrollRt _VioScrollRt | 
|---|
| 13840 |  | 
|---|
| 13841 | inline USHORT _VioScrollUp(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g) | 
|---|
| 13842 | { | 
|---|
| 13843 | USHORT yyrc; | 
|---|
| 13844 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13845 |  | 
|---|
| 13846 | yyrc = VIO16SCROLLUP(a, b, c, d, e, f, g); | 
|---|
| 13847 | SetFS(sel); | 
|---|
| 13848 |  | 
|---|
| 13849 | return yyrc; | 
|---|
| 13850 | } | 
|---|
| 13851 |  | 
|---|
| 13852 | #undef  VioScrollUp | 
|---|
| 13853 | #define VioScrollUp _VioScrollUp | 
|---|
| 13854 |  | 
|---|
| 13855 | inline USHORT _VioScrUnLock(HVIO a) | 
|---|
| 13856 | { | 
|---|
| 13857 | USHORT yyrc; | 
|---|
| 13858 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13859 |  | 
|---|
| 13860 | yyrc = VIO16SCRUNLOCK(a); | 
|---|
| 13861 | SetFS(sel); | 
|---|
| 13862 |  | 
|---|
| 13863 | return yyrc; | 
|---|
| 13864 | } | 
|---|
| 13865 |  | 
|---|
| 13866 | #undef  VioScrUnLock | 
|---|
| 13867 | #define VioScrUnLock _VioScrUnLock | 
|---|
| 13868 |  | 
|---|
| 13869 | inline USHORT _VioSetAnsi(USHORT a, HVIO b) | 
|---|
| 13870 | { | 
|---|
| 13871 | USHORT yyrc; | 
|---|
| 13872 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13873 |  | 
|---|
| 13874 | yyrc = VIO16SETANSI(a, b); | 
|---|
| 13875 | SetFS(sel); | 
|---|
| 13876 |  | 
|---|
| 13877 | return yyrc; | 
|---|
| 13878 | } | 
|---|
| 13879 |  | 
|---|
| 13880 | #undef  VioSetAnsi | 
|---|
| 13881 | #define VioSetAnsi _VioSetAnsi | 
|---|
| 13882 |  | 
|---|
| 13883 | inline USHORT _VioSetCp(USHORT a, USHORT b, HVIO c) | 
|---|
| 13884 | { | 
|---|
| 13885 | USHORT yyrc; | 
|---|
| 13886 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13887 |  | 
|---|
| 13888 | yyrc = VIO16SETCP(a, b, c); | 
|---|
| 13889 | SetFS(sel); | 
|---|
| 13890 |  | 
|---|
| 13891 | return yyrc; | 
|---|
| 13892 | } | 
|---|
| 13893 |  | 
|---|
| 13894 | #undef  VioSetCp | 
|---|
| 13895 | #define VioSetCp _VioSetCp | 
|---|
| 13896 |  | 
|---|
| 13897 | inline USHORT _VioSetCurPos(USHORT a, USHORT b, HVIO c) | 
|---|
| 13898 | { | 
|---|
| 13899 | USHORT yyrc; | 
|---|
| 13900 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13901 |  | 
|---|
| 13902 | yyrc = VIO16SETCURPOS(a, b, c); | 
|---|
| 13903 | SetFS(sel); | 
|---|
| 13904 |  | 
|---|
| 13905 | return yyrc; | 
|---|
| 13906 | } | 
|---|
| 13907 |  | 
|---|
| 13908 | #undef  VioSetCurPos | 
|---|
| 13909 | #define VioSetCurPos _VioSetCurPos | 
|---|
| 13910 |  | 
|---|
| 13911 | inline USHORT _VioSetCurType(PVIOCURSORINFO a, HVIO b) | 
|---|
| 13912 | { | 
|---|
| 13913 | USHORT yyrc; | 
|---|
| 13914 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13915 |  | 
|---|
| 13916 | yyrc = VIO16SETCURTYPE(a, b); | 
|---|
| 13917 | SetFS(sel); | 
|---|
| 13918 |  | 
|---|
| 13919 | return yyrc; | 
|---|
| 13920 | } | 
|---|
| 13921 |  | 
|---|
| 13922 | #undef  VioSetCurType | 
|---|
| 13923 | #define VioSetCurType _VioSetCurType | 
|---|
| 13924 |  | 
|---|
| 13925 | inline USHORT _VioSetFont(PVIOFONTINFO a, HVIO b) | 
|---|
| 13926 | { | 
|---|
| 13927 | USHORT yyrc; | 
|---|
| 13928 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13929 |  | 
|---|
| 13930 | yyrc = VIO16SETFONT(a, b); | 
|---|
| 13931 | SetFS(sel); | 
|---|
| 13932 |  | 
|---|
| 13933 | return yyrc; | 
|---|
| 13934 | } | 
|---|
| 13935 |  | 
|---|
| 13936 | #undef  VioSetFont | 
|---|
| 13937 | #define VioSetFont _VioSetFont | 
|---|
| 13938 |  | 
|---|
| 13939 | inline USHORT _VioSetMode(PVIOMODEINFO a, HVIO b) | 
|---|
| 13940 | { | 
|---|
| 13941 | USHORT yyrc; | 
|---|
| 13942 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13943 |  | 
|---|
| 13944 | yyrc = VIO16SETMODE(a, b); | 
|---|
| 13945 | SetFS(sel); | 
|---|
| 13946 |  | 
|---|
| 13947 | return yyrc; | 
|---|
| 13948 | } | 
|---|
| 13949 |  | 
|---|
| 13950 | #undef  VioSetMode | 
|---|
| 13951 | #define VioSetMode _VioSetMode | 
|---|
| 13952 |  | 
|---|
| 13953 | inline USHORT _VioSetState(PVOID a, HVIO b) | 
|---|
| 13954 | { | 
|---|
| 13955 | USHORT yyrc; | 
|---|
| 13956 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13957 |  | 
|---|
| 13958 | yyrc = VIO16SETSTATE(a, b); | 
|---|
| 13959 | SetFS(sel); | 
|---|
| 13960 |  | 
|---|
| 13961 | return yyrc; | 
|---|
| 13962 | } | 
|---|
| 13963 |  | 
|---|
| 13964 | #undef  VioSetState | 
|---|
| 13965 | #define VioSetState _VioSetState | 
|---|
| 13966 |  | 
|---|
| 13967 | inline USHORT _VioShowBuf(USHORT a, USHORT b, HVIO c) | 
|---|
| 13968 | { | 
|---|
| 13969 | USHORT yyrc; | 
|---|
| 13970 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13971 |  | 
|---|
| 13972 | yyrc = VIO16SHOWBUF(a, b, c); | 
|---|
| 13973 | SetFS(sel); | 
|---|
| 13974 |  | 
|---|
| 13975 | return yyrc; | 
|---|
| 13976 | } | 
|---|
| 13977 |  | 
|---|
| 13978 | #undef  VioShowBuf | 
|---|
| 13979 | #define VioShowBuf _VioShowBuf | 
|---|
| 13980 |  | 
|---|
| 13981 | inline USHORT _VioWrtCellStr(PCH a, USHORT b, USHORT c, USHORT d, HVIO e) | 
|---|
| 13982 | { | 
|---|
| 13983 | USHORT yyrc; | 
|---|
| 13984 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13985 |  | 
|---|
| 13986 | yyrc = VIO16WRTCELLSTR(a, b, c, d, e); | 
|---|
| 13987 | SetFS(sel); | 
|---|
| 13988 |  | 
|---|
| 13989 | return yyrc; | 
|---|
| 13990 | } | 
|---|
| 13991 |  | 
|---|
| 13992 | #undef  VioWrtCellStr | 
|---|
| 13993 | #define VioWrtCellStr _VioWrtCellStr | 
|---|
| 13994 |  | 
|---|
| 13995 | inline USHORT _VioWrtCharStr(PCH a, USHORT b, USHORT c, USHORT d, HVIO e) | 
|---|
| 13996 | { | 
|---|
| 13997 | USHORT yyrc; | 
|---|
| 13998 | USHORT sel = RestoreOS2FS(); | 
|---|
| 13999 |  | 
|---|
| 14000 | yyrc = VIO16WRTCHARSTR(a, b, c, d, e); | 
|---|
| 14001 | SetFS(sel); | 
|---|
| 14002 |  | 
|---|
| 14003 | return yyrc; | 
|---|
| 14004 | } | 
|---|
| 14005 |  | 
|---|
| 14006 | #undef  VioWrtCharStr | 
|---|
| 14007 | #define VioWrtCharStr _VioWrtCharStr | 
|---|
| 14008 |  | 
|---|
| 14009 | inline USHORT _VioWrtCharStrAtt(PCH a, USHORT b, USHORT c, USHORT d, PBYTE e, HVIO f) | 
|---|
| 14010 | { | 
|---|
| 14011 | USHORT yyrc; | 
|---|
| 14012 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14013 |  | 
|---|
| 14014 | yyrc = VIO16WRTCHARSTRATT(a, b, c, d, e, f); | 
|---|
| 14015 | SetFS(sel); | 
|---|
| 14016 |  | 
|---|
| 14017 | return yyrc; | 
|---|
| 14018 | } | 
|---|
| 14019 |  | 
|---|
| 14020 | #undef  VioWrtCharStrAtt | 
|---|
| 14021 | #define VioWrtCharStrAtt _VioWrtCharStrAtt | 
|---|
| 14022 |  | 
|---|
| 14023 | inline USHORT _VioWrtNAttr(PBYTE a, USHORT b, USHORT c, USHORT d, HVIO e) | 
|---|
| 14024 | { | 
|---|
| 14025 | USHORT yyrc; | 
|---|
| 14026 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14027 |  | 
|---|
| 14028 | yyrc = VIO16WRTNATTR(a, b, c, d, e); | 
|---|
| 14029 | SetFS(sel); | 
|---|
| 14030 |  | 
|---|
| 14031 | return yyrc; | 
|---|
| 14032 | } | 
|---|
| 14033 |  | 
|---|
| 14034 | #undef  VioWrtNAttr | 
|---|
| 14035 | #define VioWrtNAttr _VioWrtNAttr | 
|---|
| 14036 |  | 
|---|
| 14037 | inline USHORT _VioWrtNCell(PBYTE a, USHORT b, USHORT c, USHORT d, HVIO e) | 
|---|
| 14038 | { | 
|---|
| 14039 | USHORT yyrc; | 
|---|
| 14040 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14041 |  | 
|---|
| 14042 | yyrc = VIO16WRTNCELL(a, b, c, d, e); | 
|---|
| 14043 | SetFS(sel); | 
|---|
| 14044 |  | 
|---|
| 14045 | return yyrc; | 
|---|
| 14046 | } | 
|---|
| 14047 |  | 
|---|
| 14048 | #undef  VioWrtNCell | 
|---|
| 14049 | #define VioWrtNCell _VioWrtNCell | 
|---|
| 14050 |  | 
|---|
| 14051 | inline USHORT _VioWrtNChar(PCH a, USHORT b, USHORT c, USHORT d, HVIO e) | 
|---|
| 14052 | { | 
|---|
| 14053 | USHORT yyrc; | 
|---|
| 14054 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14055 |  | 
|---|
| 14056 | yyrc = VIO16WRTNCHAR(a, b, c, d, e); | 
|---|
| 14057 | SetFS(sel); | 
|---|
| 14058 |  | 
|---|
| 14059 | return yyrc; | 
|---|
| 14060 | } | 
|---|
| 14061 |  | 
|---|
| 14062 | #undef  VioWrtNChar | 
|---|
| 14063 | #define VioWrtNChar _VioWrtNChar | 
|---|
| 14064 |  | 
|---|
| 14065 | inline USHORT _VioWrtTTY(PCH a, USHORT b, HVIO c) | 
|---|
| 14066 | { | 
|---|
| 14067 | USHORT yyrc; | 
|---|
| 14068 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14069 |  | 
|---|
| 14070 | yyrc = VIO16WRTTTY(a, b, c); | 
|---|
| 14071 | SetFS(sel); | 
|---|
| 14072 |  | 
|---|
| 14073 | return yyrc; | 
|---|
| 14074 | } | 
|---|
| 14075 |  | 
|---|
| 14076 | #undef  VioWrtTTY | 
|---|
| 14077 | #define VioWrtTTY _VioWrtTTY | 
|---|
| 14078 |  | 
|---|
| 14079 | #endif | 
|---|
| 14080 | #ifdef INCL_MOU | 
|---|
| 14081 | inline USHORT _MouClose(HMOU a) | 
|---|
| 14082 | { | 
|---|
| 14083 | USHORT yyrc; | 
|---|
| 14084 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14085 |  | 
|---|
| 14086 | yyrc = MOU16CLOSE(a); | 
|---|
| 14087 | SetFS(sel); | 
|---|
| 14088 |  | 
|---|
| 14089 | return yyrc; | 
|---|
| 14090 | } | 
|---|
| 14091 |  | 
|---|
| 14092 | #undef  MouClose | 
|---|
| 14093 | #define MouClose _MouClose | 
|---|
| 14094 |  | 
|---|
| 14095 | inline USHORT _MouDeRegister() | 
|---|
| 14096 | { | 
|---|
| 14097 | USHORT yyrc; | 
|---|
| 14098 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14099 |  | 
|---|
| 14100 | yyrc = MOU16DEREGISTER(); | 
|---|
| 14101 | SetFS(sel); | 
|---|
| 14102 |  | 
|---|
| 14103 | return yyrc; | 
|---|
| 14104 | } | 
|---|
| 14105 |  | 
|---|
| 14106 | #undef  MouDeRegister | 
|---|
| 14107 | #define MouDeRegister _MouDeRegister | 
|---|
| 14108 |  | 
|---|
| 14109 | inline USHORT _MouDrawPtr(HMOU a) | 
|---|
| 14110 | { | 
|---|
| 14111 | USHORT yyrc; | 
|---|
| 14112 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14113 |  | 
|---|
| 14114 | yyrc = MOU16DRAWPTR(a); | 
|---|
| 14115 | SetFS(sel); | 
|---|
| 14116 |  | 
|---|
| 14117 | return yyrc; | 
|---|
| 14118 | } | 
|---|
| 14119 |  | 
|---|
| 14120 | #undef  MouDrawPtr | 
|---|
| 14121 | #define MouDrawPtr _MouDrawPtr | 
|---|
| 14122 |  | 
|---|
| 14123 | inline USHORT _MouFlushQue(HMOU a) | 
|---|
| 14124 | { | 
|---|
| 14125 | USHORT yyrc; | 
|---|
| 14126 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14127 |  | 
|---|
| 14128 | yyrc = MOU16FLUSHQUE(a); | 
|---|
| 14129 | SetFS(sel); | 
|---|
| 14130 |  | 
|---|
| 14131 | return yyrc; | 
|---|
| 14132 | } | 
|---|
| 14133 |  | 
|---|
| 14134 | #undef  MouFlushQue | 
|---|
| 14135 | #define MouFlushQue _MouFlushQue | 
|---|
| 14136 |  | 
|---|
| 14137 | inline USHORT _MouGetDevStatus(PUSHORT a, HMOU b) | 
|---|
| 14138 | { | 
|---|
| 14139 | USHORT yyrc; | 
|---|
| 14140 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14141 |  | 
|---|
| 14142 | yyrc = MOU16GETDEVSTATUS(a, b); | 
|---|
| 14143 | SetFS(sel); | 
|---|
| 14144 |  | 
|---|
| 14145 | return yyrc; | 
|---|
| 14146 | } | 
|---|
| 14147 |  | 
|---|
| 14148 | #undef  MouGetDevStatus | 
|---|
| 14149 | #define MouGetDevStatus _MouGetDevStatus | 
|---|
| 14150 |  | 
|---|
| 14151 | inline USHORT _MouGetEventMask(PUSHORT a, HMOU b) | 
|---|
| 14152 | { | 
|---|
| 14153 | USHORT yyrc; | 
|---|
| 14154 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14155 |  | 
|---|
| 14156 | yyrc = MOU16GETEVENTMASK(a, b); | 
|---|
| 14157 | SetFS(sel); | 
|---|
| 14158 |  | 
|---|
| 14159 | return yyrc; | 
|---|
| 14160 | } | 
|---|
| 14161 |  | 
|---|
| 14162 | #undef  MouGetEventMask | 
|---|
| 14163 | #define MouGetEventMask _MouGetEventMask | 
|---|
| 14164 |  | 
|---|
| 14165 | inline USHORT _MouGetNumButtons(PUSHORT a, HMOU b) | 
|---|
| 14166 | { | 
|---|
| 14167 | USHORT yyrc; | 
|---|
| 14168 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14169 |  | 
|---|
| 14170 | yyrc = MOU16GETNUMBUTTONS(a, b); | 
|---|
| 14171 | SetFS(sel); | 
|---|
| 14172 |  | 
|---|
| 14173 | return yyrc; | 
|---|
| 14174 | } | 
|---|
| 14175 |  | 
|---|
| 14176 | #undef  MouGetNumButtons | 
|---|
| 14177 | #define MouGetNumButtons _MouGetNumButtons | 
|---|
| 14178 |  | 
|---|
| 14179 | inline USHORT _MouGetNumMickeys(PUSHORT a, HMOU b) | 
|---|
| 14180 | { | 
|---|
| 14181 | USHORT yyrc; | 
|---|
| 14182 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14183 |  | 
|---|
| 14184 | yyrc = MOU16GETNUMMICKEYS(a, b); | 
|---|
| 14185 | SetFS(sel); | 
|---|
| 14186 |  | 
|---|
| 14187 | return yyrc; | 
|---|
| 14188 | } | 
|---|
| 14189 |  | 
|---|
| 14190 | #undef  MouGetNumMickeys | 
|---|
| 14191 | #define MouGetNumMickeys _MouGetNumMickeys | 
|---|
| 14192 |  | 
|---|
| 14193 | inline USHORT _MouGetNumQueEl(PMOUQUEINFO a, HMOU b) | 
|---|
| 14194 | { | 
|---|
| 14195 | USHORT yyrc; | 
|---|
| 14196 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14197 |  | 
|---|
| 14198 | yyrc = MOU16GETNUMQUEEL(a, b); | 
|---|
| 14199 | SetFS(sel); | 
|---|
| 14200 |  | 
|---|
| 14201 | return yyrc; | 
|---|
| 14202 | } | 
|---|
| 14203 |  | 
|---|
| 14204 | #undef  MouGetNumQueEl | 
|---|
| 14205 | #define MouGetNumQueEl _MouGetNumQueEl | 
|---|
| 14206 |  | 
|---|
| 14207 | inline USHORT _MouGetPtrPos(PPTRLOC a, HMOU b) | 
|---|
| 14208 | { | 
|---|
| 14209 | USHORT yyrc; | 
|---|
| 14210 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14211 |  | 
|---|
| 14212 | yyrc = MOU16GETPTRPOS(a, b); | 
|---|
| 14213 | SetFS(sel); | 
|---|
| 14214 |  | 
|---|
| 14215 | return yyrc; | 
|---|
| 14216 | } | 
|---|
| 14217 |  | 
|---|
| 14218 | #undef  MouGetPtrPos | 
|---|
| 14219 | #define MouGetPtrPos _MouGetPtrPos | 
|---|
| 14220 |  | 
|---|
| 14221 | inline USHORT _MouGetPtrShape(PBYTE a, PPTRSHAPE b, HMOU c) | 
|---|
| 14222 | { | 
|---|
| 14223 | USHORT yyrc; | 
|---|
| 14224 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14225 |  | 
|---|
| 14226 | yyrc = MOU16GETPTRSHAPE(a, b, c); | 
|---|
| 14227 | SetFS(sel); | 
|---|
| 14228 |  | 
|---|
| 14229 | return yyrc; | 
|---|
| 14230 | } | 
|---|
| 14231 |  | 
|---|
| 14232 | #undef  MouGetPtrShape | 
|---|
| 14233 | #define MouGetPtrShape _MouGetPtrShape | 
|---|
| 14234 |  | 
|---|
| 14235 | inline USHORT _MouGetScaleFact(PSCALEFACT a, HMOU b) | 
|---|
| 14236 | { | 
|---|
| 14237 | USHORT yyrc; | 
|---|
| 14238 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14239 |  | 
|---|
| 14240 | yyrc = MOU16GETSCALEFACT(a, b); | 
|---|
| 14241 | SetFS(sel); | 
|---|
| 14242 |  | 
|---|
| 14243 | return yyrc; | 
|---|
| 14244 | } | 
|---|
| 14245 |  | 
|---|
| 14246 | #undef  MouGetScaleFact | 
|---|
| 14247 | #define MouGetScaleFact _MouGetScaleFact | 
|---|
| 14248 |  | 
|---|
| 14249 | inline USHORT _MouGetThreshold(PTHRESHOLD a, HMOU b) | 
|---|
| 14250 | { | 
|---|
| 14251 | USHORT yyrc; | 
|---|
| 14252 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14253 |  | 
|---|
| 14254 | yyrc = MOU16GETTHRESHOLD(a, b); | 
|---|
| 14255 | SetFS(sel); | 
|---|
| 14256 |  | 
|---|
| 14257 | return yyrc; | 
|---|
| 14258 | } | 
|---|
| 14259 |  | 
|---|
| 14260 | #undef  MouGetThreshold | 
|---|
| 14261 | #define MouGetThreshold _MouGetThreshold | 
|---|
| 14262 |  | 
|---|
| 14263 | inline USHORT _MouInitReal(PSZ a) | 
|---|
| 14264 | { | 
|---|
| 14265 | USHORT yyrc; | 
|---|
| 14266 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14267 |  | 
|---|
| 14268 | yyrc = MOU16INITREAL(a); | 
|---|
| 14269 | SetFS(sel); | 
|---|
| 14270 |  | 
|---|
| 14271 | return yyrc; | 
|---|
| 14272 | } | 
|---|
| 14273 |  | 
|---|
| 14274 | #undef  MouInitReal | 
|---|
| 14275 | #define MouInitReal _MouInitReal | 
|---|
| 14276 |  | 
|---|
| 14277 | inline USHORT _MouOpen(PSZ a, PHMOU b) | 
|---|
| 14278 | { | 
|---|
| 14279 | USHORT yyrc; | 
|---|
| 14280 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14281 |  | 
|---|
| 14282 | yyrc = MOU16OPEN(a, b); | 
|---|
| 14283 | SetFS(sel); | 
|---|
| 14284 |  | 
|---|
| 14285 | return yyrc; | 
|---|
| 14286 | } | 
|---|
| 14287 |  | 
|---|
| 14288 | #undef  MouOpen | 
|---|
| 14289 | #define MouOpen _MouOpen | 
|---|
| 14290 |  | 
|---|
| 14291 | inline USHORT _MouReadEventQue(PMOUEVENTINFO a, PUSHORT b, HMOU c) | 
|---|
| 14292 | { | 
|---|
| 14293 | USHORT yyrc; | 
|---|
| 14294 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14295 |  | 
|---|
| 14296 | yyrc = MOU16READEVENTQUE(a, b, c); | 
|---|
| 14297 | SetFS(sel); | 
|---|
| 14298 |  | 
|---|
| 14299 | return yyrc; | 
|---|
| 14300 | } | 
|---|
| 14301 |  | 
|---|
| 14302 | #undef  MouReadEventQue | 
|---|
| 14303 | #define MouReadEventQue _MouReadEventQue | 
|---|
| 14304 |  | 
|---|
| 14305 | inline USHORT _MouRegister(PSZ a, PSZ b, ULONG c) | 
|---|
| 14306 | { | 
|---|
| 14307 | USHORT yyrc; | 
|---|
| 14308 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14309 |  | 
|---|
| 14310 | yyrc = MOU16REGISTER(a, b, c); | 
|---|
| 14311 | SetFS(sel); | 
|---|
| 14312 |  | 
|---|
| 14313 | return yyrc; | 
|---|
| 14314 | } | 
|---|
| 14315 |  | 
|---|
| 14316 | #undef  MouRegister | 
|---|
| 14317 | #define MouRegister _MouRegister | 
|---|
| 14318 |  | 
|---|
| 14319 | inline USHORT _MouRemovePtr(PNOPTRRECT a, HMOU b) | 
|---|
| 14320 | { | 
|---|
| 14321 | USHORT yyrc; | 
|---|
| 14322 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14323 |  | 
|---|
| 14324 | yyrc = MOU16REMOVEPTR(a, b); | 
|---|
| 14325 | SetFS(sel); | 
|---|
| 14326 |  | 
|---|
| 14327 | return yyrc; | 
|---|
| 14328 | } | 
|---|
| 14329 |  | 
|---|
| 14330 | #undef  MouRemovePtr | 
|---|
| 14331 | #define MouRemovePtr _MouRemovePtr | 
|---|
| 14332 |  | 
|---|
| 14333 | inline USHORT _MouSetDevStatus(PUSHORT a, HMOU b) | 
|---|
| 14334 | { | 
|---|
| 14335 | USHORT yyrc; | 
|---|
| 14336 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14337 |  | 
|---|
| 14338 | yyrc = MOU16SETDEVSTATUS(a, b); | 
|---|
| 14339 | SetFS(sel); | 
|---|
| 14340 |  | 
|---|
| 14341 | return yyrc; | 
|---|
| 14342 | } | 
|---|
| 14343 |  | 
|---|
| 14344 | #undef  MouSetDevStatus | 
|---|
| 14345 | #define MouSetDevStatus _MouSetDevStatus | 
|---|
| 14346 |  | 
|---|
| 14347 | inline USHORT _MouSetEventMask(PUSHORT a, HMOU b) | 
|---|
| 14348 | { | 
|---|
| 14349 | USHORT yyrc; | 
|---|
| 14350 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14351 |  | 
|---|
| 14352 | yyrc = MOU16SETEVENTMASK(a, b); | 
|---|
| 14353 | SetFS(sel); | 
|---|
| 14354 |  | 
|---|
| 14355 | return yyrc; | 
|---|
| 14356 | } | 
|---|
| 14357 |  | 
|---|
| 14358 | #undef  MouSetEventMask | 
|---|
| 14359 | #define MouSetEventMask _MouSetEventMask | 
|---|
| 14360 |  | 
|---|
| 14361 | inline USHORT _MouSetPtrPos(PPTRLOC a, HMOU b) | 
|---|
| 14362 | { | 
|---|
| 14363 | USHORT yyrc; | 
|---|
| 14364 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14365 |  | 
|---|
| 14366 | yyrc = MOU16SETPTRPOS(a, b); | 
|---|
| 14367 | SetFS(sel); | 
|---|
| 14368 |  | 
|---|
| 14369 | return yyrc; | 
|---|
| 14370 | } | 
|---|
| 14371 |  | 
|---|
| 14372 | #undef  MouSetPtrPos | 
|---|
| 14373 | #define MouSetPtrPos _MouSetPtrPos | 
|---|
| 14374 |  | 
|---|
| 14375 | inline USHORT _MouSetPtrShape(PBYTE a, PPTRSHAPE b, HMOU c) | 
|---|
| 14376 | { | 
|---|
| 14377 | USHORT yyrc; | 
|---|
| 14378 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14379 |  | 
|---|
| 14380 | yyrc = MOU16SETPTRSHAPE(a, b, c); | 
|---|
| 14381 | SetFS(sel); | 
|---|
| 14382 |  | 
|---|
| 14383 | return yyrc; | 
|---|
| 14384 | } | 
|---|
| 14385 |  | 
|---|
| 14386 | #undef  MouSetPtrShape | 
|---|
| 14387 | #define MouSetPtrShape _MouSetPtrShape | 
|---|
| 14388 |  | 
|---|
| 14389 | inline USHORT _MouSetScaleFact(PSCALEFACT a, HMOU b) | 
|---|
| 14390 | { | 
|---|
| 14391 | USHORT yyrc; | 
|---|
| 14392 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14393 |  | 
|---|
| 14394 | yyrc = MOU16SETSCALEFACT(a, b); | 
|---|
| 14395 | SetFS(sel); | 
|---|
| 14396 |  | 
|---|
| 14397 | return yyrc; | 
|---|
| 14398 | } | 
|---|
| 14399 |  | 
|---|
| 14400 | #undef  MouSetScaleFact | 
|---|
| 14401 | #define MouSetScaleFact _MouSetScaleFact | 
|---|
| 14402 |  | 
|---|
| 14403 | inline USHORT _MouSetThreshold(PTHRESHOLD a, HMOU b) | 
|---|
| 14404 | { | 
|---|
| 14405 | USHORT yyrc; | 
|---|
| 14406 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14407 |  | 
|---|
| 14408 | yyrc = MOU16SETTHRESHOLD(a, b); | 
|---|
| 14409 | SetFS(sel); | 
|---|
| 14410 |  | 
|---|
| 14411 | return yyrc; | 
|---|
| 14412 | } | 
|---|
| 14413 |  | 
|---|
| 14414 | #undef  MouSetThreshold | 
|---|
| 14415 | #define MouSetThreshold _MouSetThreshold | 
|---|
| 14416 |  | 
|---|
| 14417 | inline USHORT _MouSynch(USHORT a) | 
|---|
| 14418 | { | 
|---|
| 14419 | USHORT yyrc; | 
|---|
| 14420 | USHORT sel = RestoreOS2FS(); | 
|---|
| 14421 |  | 
|---|
| 14422 | yyrc = MOU16SYNCH(a); | 
|---|
| 14423 | SetFS(sel); | 
|---|
| 14424 |  | 
|---|
| 14425 | return yyrc; | 
|---|
| 14426 | } | 
|---|
| 14427 |  | 
|---|
| 14428 | #undef  MouSynch | 
|---|
| 14429 | #define MouSynch _MouSynch | 
|---|
| 14430 |  | 
|---|
| 14431 | #endif | 
|---|
| 14432 |  | 
|---|
| 14433 | #endif | 
|---|