| 1 | /* $Id: os2wrap.h,v 1.13 1999-12-15 09:25:12 achimha Exp $ */
|
|---|
| 2 | #ifndef __OS2WRAP_H__
|
|---|
| 3 | #define __OS2WRAP_H__
|
|---|
| 4 |
|
|---|
| 5 | #include <os2.h>
|
|---|
| 6 | #include <os2sel.h>
|
|---|
| 7 | #include <os2newapi.h>
|
|---|
| 8 |
|
|---|
| 9 | #if (__IBMC__ > 300)
|
|---|
| 10 | // VA3.6: inline is a C++ keywork, must be translated to _inline or _Inline or __inline in C code
|
|---|
| 11 | #define inline _inline
|
|---|
| 12 | #endif
|
|---|
| 13 |
|
|---|
| 14 | #ifdef INCL_DOSMEMMGR
|
|---|
| 15 | inline ULONG _DosAllocMem(PPVOID a, ULONG b, ULONG c)
|
|---|
| 16 | {
|
|---|
| 17 | ULONG yyrc;
|
|---|
| 18 | USHORT sel = RestoreOS2FS();
|
|---|
| 19 |
|
|---|
| 20 | yyrc = DosAllocMem(a, b, c);
|
|---|
| 21 | SetFS(sel);
|
|---|
| 22 |
|
|---|
| 23 | return yyrc;
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | #undef DosAllocMem
|
|---|
| 27 | #define DosAllocMem _DosAllocMem
|
|---|
| 28 |
|
|---|
| 29 | inline ULONG _DosAllocSharedMem(PPVOID a, PCSZ b, ULONG c, ULONG d)
|
|---|
| 30 | {
|
|---|
| 31 | ULONG yyrc;
|
|---|
| 32 | USHORT sel = RestoreOS2FS();
|
|---|
| 33 |
|
|---|
| 34 | yyrc = DosAllocSharedMem(a, b, c, d);
|
|---|
| 35 | SetFS(sel);
|
|---|
| 36 |
|
|---|
| 37 | return yyrc;
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | #undef DosAllocSharedMem
|
|---|
| 41 | #define DosAllocSharedMem _DosAllocSharedMem
|
|---|
| 42 |
|
|---|
| 43 | inline ULONG _DosFreeMem(PVOID a)
|
|---|
| 44 | {
|
|---|
| 45 | ULONG yyrc;
|
|---|
| 46 | USHORT sel = RestoreOS2FS();
|
|---|
| 47 |
|
|---|
| 48 | yyrc = DosFreeMem(a);
|
|---|
| 49 | SetFS(sel);
|
|---|
| 50 |
|
|---|
| 51 | return yyrc;
|
|---|
| 52 | }
|
|---|
| 53 |
|
|---|
| 54 | #undef DosFreeMem
|
|---|
| 55 | #define DosFreeMem _DosFreeMem
|
|---|
| 56 |
|
|---|
| 57 | inline ULONG _DosGetNamedSharedMem(PPVOID a, PCSZ b, ULONG c)
|
|---|
| 58 | {
|
|---|
| 59 | ULONG yyrc;
|
|---|
| 60 | USHORT sel = RestoreOS2FS();
|
|---|
| 61 |
|
|---|
| 62 | yyrc = DosGetNamedSharedMem(a, b, c);
|
|---|
| 63 | SetFS(sel);
|
|---|
| 64 |
|
|---|
| 65 | return yyrc;
|
|---|
| 66 | }
|
|---|
| 67 |
|
|---|
| 68 | #undef DosGetNamedSharedMem
|
|---|
| 69 | #define DosGetNamedSharedMem _DosGetNamedSharedMem
|
|---|
| 70 |
|
|---|
| 71 | inline ULONG _DosGetSharedMem(PVOID a, ULONG b)
|
|---|
| 72 | {
|
|---|
| 73 | ULONG yyrc;
|
|---|
| 74 | USHORT sel = RestoreOS2FS();
|
|---|
| 75 |
|
|---|
| 76 | yyrc = DosGetSharedMem(a, b);
|
|---|
| 77 | SetFS(sel);
|
|---|
| 78 |
|
|---|
| 79 | return yyrc;
|
|---|
| 80 | }
|
|---|
| 81 |
|
|---|
| 82 | #undef DosGetSharedMem
|
|---|
| 83 | #define DosGetSharedMem _DosGetSharedMem
|
|---|
| 84 |
|
|---|
| 85 | inline ULONG _DosGiveSharedMem(PVOID a, PID b, ULONG c)
|
|---|
| 86 | {
|
|---|
| 87 | ULONG yyrc;
|
|---|
| 88 | USHORT sel = RestoreOS2FS();
|
|---|
| 89 |
|
|---|
| 90 | yyrc = DosGiveSharedMem(a, b, c);
|
|---|
| 91 | SetFS(sel);
|
|---|
| 92 |
|
|---|
| 93 | return yyrc;
|
|---|
| 94 | }
|
|---|
| 95 |
|
|---|
| 96 | #undef DosGiveSharedMem
|
|---|
| 97 | #define DosGiveSharedMem _DosGiveSharedMem
|
|---|
| 98 |
|
|---|
| 99 | inline ULONG _DosQueryMem(PVOID a, PULONG b, PULONG c)
|
|---|
| 100 | {
|
|---|
| 101 | ULONG yyrc;
|
|---|
| 102 | USHORT sel = RestoreOS2FS();
|
|---|
| 103 |
|
|---|
| 104 | yyrc = DosQueryMem(a, b, c);
|
|---|
| 105 | SetFS(sel);
|
|---|
| 106 |
|
|---|
| 107 | return yyrc;
|
|---|
| 108 | }
|
|---|
| 109 |
|
|---|
| 110 | #undef DosQueryMem
|
|---|
| 111 | #define DosQueryMem _DosQueryMem
|
|---|
| 112 |
|
|---|
| 113 | inline ULONG _DosSetMem(PVOID a, ULONG b, ULONG c)
|
|---|
| 114 | {
|
|---|
| 115 | ULONG yyrc;
|
|---|
| 116 | USHORT sel = RestoreOS2FS();
|
|---|
| 117 |
|
|---|
| 118 | yyrc = DosSetMem(a, b, c);
|
|---|
| 119 | SetFS(sel);
|
|---|
| 120 |
|
|---|
| 121 | return yyrc;
|
|---|
| 122 | }
|
|---|
| 123 |
|
|---|
| 124 | #undef DosSetMem
|
|---|
| 125 | #define DosSetMem _DosSetMem
|
|---|
| 126 |
|
|---|
| 127 | inline ULONG _DosSubAllocMem(PVOID a, PPVOID b, ULONG c)
|
|---|
| 128 | {
|
|---|
| 129 | ULONG yyrc;
|
|---|
| 130 | USHORT sel = RestoreOS2FS();
|
|---|
| 131 |
|
|---|
| 132 | yyrc = DosSubAllocMem(a, b, c);
|
|---|
| 133 | SetFS(sel);
|
|---|
| 134 |
|
|---|
| 135 | return yyrc;
|
|---|
| 136 | }
|
|---|
| 137 |
|
|---|
| 138 | #undef DosSubAllocMem
|
|---|
| 139 | #define DosSubAllocMem _DosSubAllocMem
|
|---|
| 140 |
|
|---|
| 141 | inline ULONG _DosSubFreeMem(PVOID a, PVOID b, ULONG c)
|
|---|
| 142 | {
|
|---|
| 143 | ULONG yyrc;
|
|---|
| 144 | USHORT sel = RestoreOS2FS();
|
|---|
| 145 |
|
|---|
| 146 | yyrc = DosSubFreeMem(a, b, c);
|
|---|
| 147 | SetFS(sel);
|
|---|
| 148 |
|
|---|
| 149 | return yyrc;
|
|---|
| 150 | }
|
|---|
| 151 |
|
|---|
| 152 | #undef DosSubFreeMem
|
|---|
| 153 | #define DosSubFreeMem _DosSubFreeMem
|
|---|
| 154 |
|
|---|
| 155 | inline ULONG _DosSubSetMem(PVOID a, ULONG b, ULONG c)
|
|---|
| 156 | {
|
|---|
| 157 | ULONG yyrc;
|
|---|
| 158 | USHORT sel = RestoreOS2FS();
|
|---|
| 159 |
|
|---|
| 160 | yyrc = DosSubSetMem(a, b, c);
|
|---|
| 161 | SetFS(sel);
|
|---|
| 162 |
|
|---|
| 163 | return yyrc;
|
|---|
| 164 | }
|
|---|
| 165 |
|
|---|
| 166 | #undef DosSubSetMem
|
|---|
| 167 | #define DosSubSetMem _DosSubSetMem
|
|---|
| 168 |
|
|---|
| 169 | inline ULONG _DosSubUnsetMem(PVOID a)
|
|---|
| 170 | {
|
|---|
| 171 | ULONG yyrc;
|
|---|
| 172 | USHORT sel = RestoreOS2FS();
|
|---|
| 173 |
|
|---|
| 174 | yyrc = DosSubUnsetMem(a);
|
|---|
| 175 | SetFS(sel);
|
|---|
| 176 |
|
|---|
| 177 | return yyrc;
|
|---|
| 178 | }
|
|---|
| 179 |
|
|---|
| 180 | #undef DosSubUnsetMem
|
|---|
| 181 | #define DosSubUnsetMem _DosSubUnsetMem
|
|---|
| 182 |
|
|---|
| 183 | #endif
|
|---|
| 184 | #ifdef INCL_DOSFILEMGR
|
|---|
| 185 | inline ULONG _DosCancelLockRequest(HFILE a, PFILELOCK b)
|
|---|
| 186 | {
|
|---|
| 187 | ULONG yyrc;
|
|---|
| 188 | USHORT sel = RestoreOS2FS();
|
|---|
| 189 |
|
|---|
| 190 | yyrc = DosCancelLockRequest(a, b);
|
|---|
| 191 | SetFS(sel);
|
|---|
| 192 |
|
|---|
| 193 | return yyrc;
|
|---|
| 194 | }
|
|---|
| 195 |
|
|---|
| 196 | #undef DosCancelLockRequest
|
|---|
| 197 | #define DosCancelLockRequest _DosCancelLockRequest
|
|---|
| 198 |
|
|---|
| 199 | inline ULONG _DosClose(HFILE a)
|
|---|
| 200 | {
|
|---|
| 201 | ULONG yyrc;
|
|---|
| 202 | USHORT sel = RestoreOS2FS();
|
|---|
| 203 |
|
|---|
| 204 | yyrc = DosClose(a);
|
|---|
| 205 | SetFS(sel);
|
|---|
| 206 |
|
|---|
| 207 | return yyrc;
|
|---|
| 208 | }
|
|---|
| 209 |
|
|---|
| 210 | #undef DosClose
|
|---|
| 211 | #define DosClose _DosClose
|
|---|
| 212 |
|
|---|
| 213 | inline ULONG _DosCopy(PCSZ a, PCSZ b, ULONG c)
|
|---|
| 214 | {
|
|---|
| 215 | ULONG yyrc;
|
|---|
| 216 | USHORT sel = RestoreOS2FS();
|
|---|
| 217 |
|
|---|
| 218 | yyrc = DosCopy(a, b, c);
|
|---|
| 219 | SetFS(sel);
|
|---|
| 220 |
|
|---|
| 221 | return yyrc;
|
|---|
| 222 | }
|
|---|
| 223 |
|
|---|
| 224 | #undef DosCopy
|
|---|
| 225 | #define DosCopy _DosCopy
|
|---|
| 226 |
|
|---|
| 227 | inline ULONG _DosCreateDir(PCSZ a, PEAOP2 b)
|
|---|
| 228 | {
|
|---|
| 229 | ULONG yyrc;
|
|---|
| 230 | USHORT sel = RestoreOS2FS();
|
|---|
| 231 |
|
|---|
| 232 | yyrc = DosCreateDir(a, b);
|
|---|
| 233 | SetFS(sel);
|
|---|
| 234 |
|
|---|
| 235 | return yyrc;
|
|---|
| 236 | }
|
|---|
| 237 |
|
|---|
| 238 | #undef DosCreateDir
|
|---|
| 239 | #define DosCreateDir _DosCreateDir
|
|---|
| 240 |
|
|---|
| 241 | inline ULONG _DosDelete(PCSZ a)
|
|---|
| 242 | {
|
|---|
| 243 | ULONG yyrc;
|
|---|
| 244 | USHORT sel = RestoreOS2FS();
|
|---|
| 245 |
|
|---|
| 246 | yyrc = DosDelete(a);
|
|---|
| 247 | SetFS(sel);
|
|---|
| 248 |
|
|---|
| 249 | return yyrc;
|
|---|
| 250 | }
|
|---|
| 251 |
|
|---|
| 252 | #undef DosDelete
|
|---|
| 253 | #define DosDelete _DosDelete
|
|---|
| 254 |
|
|---|
| 255 | inline ULONG _DosDeleteDir(PCSZ a)
|
|---|
| 256 | {
|
|---|
| 257 | ULONG yyrc;
|
|---|
| 258 | USHORT sel = RestoreOS2FS();
|
|---|
| 259 |
|
|---|
| 260 | yyrc = DosDeleteDir(a);
|
|---|
| 261 | SetFS(sel);
|
|---|
| 262 |
|
|---|
| 263 | return yyrc;
|
|---|
| 264 | }
|
|---|
| 265 |
|
|---|
| 266 | #undef DosDeleteDir
|
|---|
| 267 | #define DosDeleteDir _DosDeleteDir
|
|---|
| 268 |
|
|---|
| 269 | inline ULONG _DosDupHandle(HFILE a, PHFILE b)
|
|---|
| 270 | {
|
|---|
| 271 | ULONG yyrc;
|
|---|
| 272 | USHORT sel = RestoreOS2FS();
|
|---|
| 273 |
|
|---|
| 274 | yyrc = DosDupHandle(a, b);
|
|---|
| 275 | SetFS(sel);
|
|---|
| 276 |
|
|---|
| 277 | return yyrc;
|
|---|
| 278 | }
|
|---|
| 279 |
|
|---|
| 280 | #undef DosDupHandle
|
|---|
| 281 | #define DosDupHandle _DosDupHandle
|
|---|
| 282 |
|
|---|
| 283 | inline ULONG _DosEditName(ULONG a, PCSZ b, PCSZ c, PBYTE d, ULONG e)
|
|---|
| 284 | {
|
|---|
| 285 | ULONG yyrc;
|
|---|
| 286 | USHORT sel = RestoreOS2FS();
|
|---|
| 287 |
|
|---|
| 288 | yyrc = DosEditName(a, b, c, d, e);
|
|---|
| 289 | SetFS(sel);
|
|---|
| 290 |
|
|---|
| 291 | return yyrc;
|
|---|
| 292 | }
|
|---|
| 293 |
|
|---|
| 294 | #undef DosEditName
|
|---|
| 295 | #define DosEditName _DosEditName
|
|---|
| 296 |
|
|---|
| 297 | inline ULONG _DosEnumAttribute(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g)
|
|---|
| 298 | {
|
|---|
| 299 | ULONG yyrc;
|
|---|
| 300 | USHORT sel = RestoreOS2FS();
|
|---|
| 301 |
|
|---|
| 302 | yyrc = DosEnumAttribute(a, b, c, d, e, f, g);
|
|---|
| 303 | SetFS(sel);
|
|---|
| 304 |
|
|---|
| 305 | return yyrc;
|
|---|
| 306 | }
|
|---|
| 307 |
|
|---|
| 308 | #undef DosEnumAttribute
|
|---|
| 309 | #define DosEnumAttribute _DosEnumAttribute
|
|---|
| 310 |
|
|---|
| 311 | inline ULONG _DosFindClose(HDIR a)
|
|---|
| 312 | {
|
|---|
| 313 | ULONG yyrc;
|
|---|
| 314 | USHORT sel = RestoreOS2FS();
|
|---|
| 315 |
|
|---|
| 316 | yyrc = DosFindClose(a);
|
|---|
| 317 | SetFS(sel);
|
|---|
| 318 |
|
|---|
| 319 | return yyrc;
|
|---|
| 320 | }
|
|---|
| 321 |
|
|---|
| 322 | #undef DosFindClose
|
|---|
| 323 | #define DosFindClose _DosFindClose
|
|---|
| 324 |
|
|---|
| 325 | inline ULONG _DosFindFirst(PCSZ a, PHDIR b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g)
|
|---|
| 326 | {
|
|---|
| 327 | ULONG yyrc;
|
|---|
| 328 | USHORT sel = RestoreOS2FS();
|
|---|
| 329 |
|
|---|
| 330 | yyrc = DosFindFirst(a, b, c, d, e, f, g);
|
|---|
| 331 | SetFS(sel);
|
|---|
| 332 |
|
|---|
| 333 | return yyrc;
|
|---|
| 334 | }
|
|---|
| 335 |
|
|---|
| 336 | #undef DosFindFirst
|
|---|
| 337 | #define DosFindFirst _DosFindFirst
|
|---|
| 338 |
|
|---|
| 339 | inline ULONG _DosFindNext(HDIR a, PVOID b, ULONG c, PULONG d)
|
|---|
| 340 | {
|
|---|
| 341 | ULONG yyrc;
|
|---|
| 342 | USHORT sel = RestoreOS2FS();
|
|---|
| 343 |
|
|---|
| 344 | yyrc = DosFindNext(a, b, c, d);
|
|---|
| 345 | SetFS(sel);
|
|---|
| 346 |
|
|---|
| 347 | return yyrc;
|
|---|
| 348 | }
|
|---|
| 349 |
|
|---|
| 350 | #undef DosFindNext
|
|---|
| 351 | #define DosFindNext _DosFindNext
|
|---|
| 352 |
|
|---|
| 353 | inline ULONG _DosForceDelete(PCSZ a)
|
|---|
| 354 | {
|
|---|
| 355 | ULONG yyrc;
|
|---|
| 356 | USHORT sel = RestoreOS2FS();
|
|---|
| 357 |
|
|---|
| 358 | yyrc = DosForceDelete(a);
|
|---|
| 359 | SetFS(sel);
|
|---|
| 360 |
|
|---|
| 361 | return yyrc;
|
|---|
| 362 | }
|
|---|
| 363 |
|
|---|
| 364 | #undef DosForceDelete
|
|---|
| 365 | #define DosForceDelete _DosForceDelete
|
|---|
| 366 |
|
|---|
| 367 | inline ULONG _DosFSAttach(PCSZ a, PCSZ b, PVOID c, ULONG d, ULONG e)
|
|---|
| 368 | {
|
|---|
| 369 | ULONG yyrc;
|
|---|
| 370 | USHORT sel = RestoreOS2FS();
|
|---|
| 371 |
|
|---|
| 372 | yyrc = DosFSAttach(a, b, c, d, e);
|
|---|
| 373 | SetFS(sel);
|
|---|
| 374 |
|
|---|
| 375 | return yyrc;
|
|---|
| 376 | }
|
|---|
| 377 |
|
|---|
| 378 | #undef DosFSAttach
|
|---|
| 379 | #define DosFSAttach _DosFSAttach
|
|---|
| 380 |
|
|---|
| 381 | inline ULONG _DosFSCtl(PVOID a, ULONG b, PULONG c, PVOID d, ULONG e, PULONG f, ULONG g, PCSZ h, HFILE i, ULONG j)
|
|---|
| 382 | {
|
|---|
| 383 | ULONG yyrc;
|
|---|
| 384 | USHORT sel = RestoreOS2FS();
|
|---|
| 385 |
|
|---|
| 386 | yyrc = DosFSCtl(a, b, c, d, e, f, g, h, i, j);
|
|---|
| 387 | SetFS(sel);
|
|---|
| 388 |
|
|---|
| 389 | return yyrc;
|
|---|
| 390 | }
|
|---|
| 391 |
|
|---|
| 392 | #undef DosFSCtl
|
|---|
| 393 | #define DosFSCtl _DosFSCtl
|
|---|
| 394 |
|
|---|
| 395 | inline ULONG _DosMove(PCSZ a, PCSZ b)
|
|---|
| 396 | {
|
|---|
| 397 | ULONG yyrc;
|
|---|
| 398 | USHORT sel = RestoreOS2FS();
|
|---|
| 399 |
|
|---|
| 400 | yyrc = DosMove(a, b);
|
|---|
| 401 | SetFS(sel);
|
|---|
| 402 |
|
|---|
| 403 | return yyrc;
|
|---|
| 404 | }
|
|---|
| 405 |
|
|---|
| 406 | #undef DosMove
|
|---|
| 407 | #define DosMove _DosMove
|
|---|
| 408 |
|
|---|
| 409 | inline ULONG _DosOpen(PCSZ a, PHFILE b, PULONG c, ULONG d, ULONG e, ULONG f, ULONG g, PEAOP2 h)
|
|---|
| 410 | {
|
|---|
| 411 | ULONG yyrc;
|
|---|
| 412 | USHORT sel = RestoreOS2FS();
|
|---|
| 413 |
|
|---|
| 414 | yyrc = DosOpen(a, b, c, d, e, f, g, h);
|
|---|
| 415 | SetFS(sel);
|
|---|
| 416 |
|
|---|
| 417 | return yyrc;
|
|---|
| 418 | }
|
|---|
| 419 |
|
|---|
| 420 | #undef DosOpen
|
|---|
| 421 | #define DosOpen _DosOpen
|
|---|
| 422 |
|
|---|
| 423 | inline ULONG _DosProtectClose(HFILE a, FHLOCK b)
|
|---|
| 424 | {
|
|---|
| 425 | ULONG yyrc;
|
|---|
| 426 | USHORT sel = RestoreOS2FS();
|
|---|
| 427 |
|
|---|
| 428 | yyrc = DosProtectClose(a, b);
|
|---|
| 429 | SetFS(sel);
|
|---|
| 430 |
|
|---|
| 431 | return yyrc;
|
|---|
| 432 | }
|
|---|
| 433 |
|
|---|
| 434 | #undef DosProtectClose
|
|---|
| 435 | #define DosProtectClose _DosProtectClose
|
|---|
| 436 |
|
|---|
| 437 | inline ULONG _DosProtectEnumAttribute(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g, FHLOCK h)
|
|---|
| 438 | {
|
|---|
| 439 | ULONG yyrc;
|
|---|
| 440 | USHORT sel = RestoreOS2FS();
|
|---|
| 441 |
|
|---|
| 442 | yyrc = DosProtectEnumAttribute(a, b, c, d, e, f, g, h);
|
|---|
| 443 | SetFS(sel);
|
|---|
| 444 |
|
|---|
| 445 | return yyrc;
|
|---|
| 446 | }
|
|---|
| 447 |
|
|---|
| 448 | #undef DosProtectEnumAttribute
|
|---|
| 449 | #define DosProtectEnumAttribute _DosProtectEnumAttribute
|
|---|
| 450 |
|
|---|
| 451 | inline ULONG _DosProtectOpen(PCSZ a, PHFILE b, PULONG c, ULONG d, ULONG e, ULONG f, ULONG g, PEAOP2 h, PFHLOCK i)
|
|---|
| 452 | {
|
|---|
| 453 | ULONG yyrc;
|
|---|
| 454 | USHORT sel = RestoreOS2FS();
|
|---|
| 455 |
|
|---|
| 456 | yyrc = DosProtectOpen(a, b, c, d, e, f, g, h, i);
|
|---|
| 457 | SetFS(sel);
|
|---|
| 458 |
|
|---|
| 459 | return yyrc;
|
|---|
| 460 | }
|
|---|
| 461 |
|
|---|
| 462 | #undef DosProtectOpen
|
|---|
| 463 | #define DosProtectOpen _DosProtectOpen
|
|---|
| 464 |
|
|---|
| 465 | inline ULONG _DosProtectQueryFHState(HFILE a, PULONG b, FHLOCK c)
|
|---|
| 466 | {
|
|---|
| 467 | ULONG yyrc;
|
|---|
| 468 | USHORT sel = RestoreOS2FS();
|
|---|
| 469 |
|
|---|
| 470 | yyrc = DosProtectQueryFHState(a, b, c);
|
|---|
| 471 | SetFS(sel);
|
|---|
| 472 |
|
|---|
| 473 | return yyrc;
|
|---|
| 474 | }
|
|---|
| 475 |
|
|---|
| 476 | #undef DosProtectQueryFHState
|
|---|
| 477 | #define DosProtectQueryFHState _DosProtectQueryFHState
|
|---|
| 478 |
|
|---|
| 479 | inline ULONG _DosProtectQueryFileInfo(HFILE a, ULONG b, PVOID c, ULONG d, FHLOCK e)
|
|---|
| 480 | {
|
|---|
| 481 | ULONG yyrc;
|
|---|
| 482 | USHORT sel = RestoreOS2FS();
|
|---|
| 483 |
|
|---|
| 484 | yyrc = DosProtectQueryFileInfo(a, b, c, d, e);
|
|---|
| 485 | SetFS(sel);
|
|---|
| 486 |
|
|---|
| 487 | return yyrc;
|
|---|
| 488 | }
|
|---|
| 489 |
|
|---|
| 490 | #undef DosProtectQueryFileInfo
|
|---|
| 491 | #define DosProtectQueryFileInfo _DosProtectQueryFileInfo
|
|---|
| 492 |
|
|---|
| 493 | inline ULONG _DosProtectRead(HFILE a, PVOID b, ULONG c, PULONG d, FHLOCK e)
|
|---|
| 494 | {
|
|---|
| 495 | ULONG yyrc;
|
|---|
| 496 | USHORT sel = RestoreOS2FS();
|
|---|
| 497 |
|
|---|
| 498 | yyrc = DosProtectRead(a, b, c, d, e);
|
|---|
| 499 | SetFS(sel);
|
|---|
| 500 |
|
|---|
| 501 | return yyrc;
|
|---|
| 502 | }
|
|---|
| 503 |
|
|---|
| 504 | #undef DosProtectRead
|
|---|
| 505 | #define DosProtectRead _DosProtectRead
|
|---|
| 506 |
|
|---|
| 507 | inline ULONG _DosProtectSetFHState(HFILE a, ULONG b, FHLOCK c)
|
|---|
| 508 | {
|
|---|
| 509 | ULONG yyrc;
|
|---|
| 510 | USHORT sel = RestoreOS2FS();
|
|---|
| 511 |
|
|---|
| 512 | yyrc = DosProtectSetFHState(a, b, c);
|
|---|
| 513 | SetFS(sel);
|
|---|
| 514 |
|
|---|
| 515 | return yyrc;
|
|---|
| 516 | }
|
|---|
| 517 |
|
|---|
| 518 | #undef DosProtectSetFHState
|
|---|
| 519 | #define DosProtectSetFHState _DosProtectSetFHState
|
|---|
| 520 |
|
|---|
| 521 | inline ULONG _DosProtectSetFileInfo(HFILE a, ULONG b, PVOID c, ULONG d, FHLOCK e)
|
|---|
| 522 | {
|
|---|
| 523 | ULONG yyrc;
|
|---|
| 524 | USHORT sel = RestoreOS2FS();
|
|---|
| 525 |
|
|---|
| 526 | yyrc = DosProtectSetFileInfo(a, b, c, d, e);
|
|---|
| 527 | SetFS(sel);
|
|---|
| 528 |
|
|---|
| 529 | return yyrc;
|
|---|
| 530 | }
|
|---|
| 531 |
|
|---|
| 532 | #undef DosProtectSetFileInfo
|
|---|
| 533 | #define DosProtectSetFileInfo _DosProtectSetFileInfo
|
|---|
| 534 |
|
|---|
| 535 | inline ULONG _DosProtectSetFileLocks(HFILE a, PFILELOCK b, PFILELOCK c, ULONG d, ULONG e, FHLOCK f)
|
|---|
| 536 | {
|
|---|
| 537 | ULONG yyrc;
|
|---|
| 538 | USHORT sel = RestoreOS2FS();
|
|---|
| 539 |
|
|---|
| 540 | yyrc = DosProtectSetFileLocks(a, b, c, d, e, f);
|
|---|
| 541 | SetFS(sel);
|
|---|
| 542 |
|
|---|
| 543 | return yyrc;
|
|---|
| 544 | }
|
|---|
| 545 |
|
|---|
| 546 | #undef DosProtectSetFileLocks
|
|---|
| 547 | #define DosProtectSetFileLocks _DosProtectSetFileLocks
|
|---|
| 548 |
|
|---|
| 549 | inline ULONG _DosProtectSetFilePtr(HFILE a, LONG b, ULONG c, PULONG d, FHLOCK e)
|
|---|
| 550 | {
|
|---|
| 551 | ULONG yyrc;
|
|---|
| 552 | USHORT sel = RestoreOS2FS();
|
|---|
| 553 |
|
|---|
| 554 | yyrc = DosProtectSetFilePtr(a, b, c, d, e);
|
|---|
| 555 | SetFS(sel);
|
|---|
| 556 |
|
|---|
| 557 | return yyrc;
|
|---|
| 558 | }
|
|---|
| 559 |
|
|---|
| 560 | #undef DosProtectSetFilePtr
|
|---|
| 561 | #define DosProtectSetFilePtr _DosProtectSetFilePtr
|
|---|
| 562 |
|
|---|
| 563 | inline ULONG _DosProtectSetFileSize(HFILE a, ULONG b, FHLOCK c)
|
|---|
| 564 | {
|
|---|
| 565 | ULONG yyrc;
|
|---|
| 566 | USHORT sel = RestoreOS2FS();
|
|---|
| 567 |
|
|---|
| 568 | yyrc = DosProtectSetFileSize(a, b, c);
|
|---|
| 569 | SetFS(sel);
|
|---|
| 570 |
|
|---|
| 571 | return yyrc;
|
|---|
| 572 | }
|
|---|
| 573 |
|
|---|
| 574 | #undef DosProtectSetFileSize
|
|---|
| 575 | #define DosProtectSetFileSize _DosProtectSetFileSize
|
|---|
| 576 |
|
|---|
| 577 | inline ULONG _DosProtectWrite(HFILE a, PVOID b, ULONG c, PULONG d, FHLOCK e)
|
|---|
| 578 | {
|
|---|
| 579 | ULONG yyrc;
|
|---|
| 580 | USHORT sel = RestoreOS2FS();
|
|---|
| 581 |
|
|---|
| 582 | yyrc = DosProtectWrite(a, b, c, d, e);
|
|---|
| 583 | SetFS(sel);
|
|---|
| 584 |
|
|---|
| 585 | return yyrc;
|
|---|
| 586 | }
|
|---|
| 587 |
|
|---|
| 588 | #undef DosProtectWrite
|
|---|
| 589 | #define DosProtectWrite _DosProtectWrite
|
|---|
| 590 |
|
|---|
| 591 | inline ULONG _DosQueryCurrentDir(ULONG a, PBYTE b, PULONG c)
|
|---|
| 592 | {
|
|---|
| 593 | ULONG yyrc;
|
|---|
| 594 | USHORT sel = RestoreOS2FS();
|
|---|
| 595 |
|
|---|
| 596 | yyrc = DosQueryCurrentDir(a, b, c);
|
|---|
| 597 | SetFS(sel);
|
|---|
| 598 |
|
|---|
| 599 | return yyrc;
|
|---|
| 600 | }
|
|---|
| 601 |
|
|---|
| 602 | #undef DosQueryCurrentDir
|
|---|
| 603 | #define DosQueryCurrentDir _DosQueryCurrentDir
|
|---|
| 604 |
|
|---|
| 605 | inline ULONG _DosQueryCurrentDisk(PULONG a, PULONG b)
|
|---|
| 606 | {
|
|---|
| 607 | ULONG yyrc;
|
|---|
| 608 | USHORT sel = RestoreOS2FS();
|
|---|
| 609 |
|
|---|
| 610 | yyrc = DosQueryCurrentDisk(a, b);
|
|---|
| 611 | SetFS(sel);
|
|---|
| 612 |
|
|---|
| 613 | return yyrc;
|
|---|
| 614 | }
|
|---|
| 615 |
|
|---|
| 616 | #undef DosQueryCurrentDisk
|
|---|
| 617 | #define DosQueryCurrentDisk _DosQueryCurrentDisk
|
|---|
| 618 |
|
|---|
| 619 | inline ULONG _DosQueryFHState(HFILE a, PULONG b)
|
|---|
| 620 | {
|
|---|
| 621 | ULONG yyrc;
|
|---|
| 622 | USHORT sel = RestoreOS2FS();
|
|---|
| 623 |
|
|---|
| 624 | yyrc = DosQueryFHState(a, b);
|
|---|
| 625 | SetFS(sel);
|
|---|
| 626 |
|
|---|
| 627 | return yyrc;
|
|---|
| 628 | }
|
|---|
| 629 |
|
|---|
| 630 | #undef DosQueryFHState
|
|---|
| 631 | #define DosQueryFHState _DosQueryFHState
|
|---|
| 632 |
|
|---|
| 633 | inline ULONG _DosQueryFileInfo(HFILE a, ULONG b, PVOID c, ULONG d)
|
|---|
| 634 | {
|
|---|
| 635 | ULONG yyrc;
|
|---|
| 636 | USHORT sel = RestoreOS2FS();
|
|---|
| 637 |
|
|---|
| 638 | yyrc = DosQueryFileInfo(a, b, c, d);
|
|---|
| 639 | SetFS(sel);
|
|---|
| 640 |
|
|---|
| 641 | return yyrc;
|
|---|
| 642 | }
|
|---|
| 643 |
|
|---|
| 644 | #undef DosQueryFileInfo
|
|---|
| 645 | #define DosQueryFileInfo _DosQueryFileInfo
|
|---|
| 646 |
|
|---|
| 647 | inline ULONG _DosQueryFSAttach(PCSZ a, ULONG b, ULONG c, PFSQBUFFER2 d, PULONG e)
|
|---|
| 648 | {
|
|---|
| 649 | ULONG yyrc;
|
|---|
| 650 | USHORT sel = RestoreOS2FS();
|
|---|
| 651 |
|
|---|
| 652 | yyrc = DosQueryFSAttach(a, b, c, d, e);
|
|---|
| 653 | SetFS(sel);
|
|---|
| 654 |
|
|---|
| 655 | return yyrc;
|
|---|
| 656 | }
|
|---|
| 657 |
|
|---|
| 658 | #undef DosQueryFSAttach
|
|---|
| 659 | #define DosQueryFSAttach _DosQueryFSAttach
|
|---|
| 660 |
|
|---|
| 661 | inline ULONG _DosQueryFSInfo(ULONG a, ULONG b, PVOID c, ULONG d)
|
|---|
| 662 | {
|
|---|
| 663 | ULONG yyrc;
|
|---|
| 664 | USHORT sel = RestoreOS2FS();
|
|---|
| 665 |
|
|---|
| 666 | yyrc = DosQueryFSInfo(a, b, c, d);
|
|---|
| 667 | SetFS(sel);
|
|---|
| 668 |
|
|---|
| 669 | return yyrc;
|
|---|
| 670 | }
|
|---|
| 671 |
|
|---|
| 672 | #undef DosQueryFSInfo
|
|---|
| 673 | #define DosQueryFSInfo _DosQueryFSInfo
|
|---|
| 674 |
|
|---|
| 675 | inline ULONG _DosQueryHType(HFILE a, PULONG b, PULONG c)
|
|---|
| 676 | {
|
|---|
| 677 | ULONG yyrc;
|
|---|
| 678 | USHORT sel = RestoreOS2FS();
|
|---|
| 679 |
|
|---|
| 680 | yyrc = DosQueryHType(a, b, c);
|
|---|
| 681 | SetFS(sel);
|
|---|
| 682 |
|
|---|
| 683 | return yyrc;
|
|---|
| 684 | }
|
|---|
| 685 |
|
|---|
| 686 | #undef DosQueryHType
|
|---|
| 687 | #define DosQueryHType _DosQueryHType
|
|---|
| 688 |
|
|---|
| 689 | inline ULONG _DosQueryPathInfo(PCSZ a, ULONG b, PVOID c, ULONG d)
|
|---|
| 690 | {
|
|---|
| 691 | ULONG yyrc;
|
|---|
| 692 | USHORT sel = RestoreOS2FS();
|
|---|
| 693 |
|
|---|
| 694 | yyrc = DosQueryPathInfo(a, b, c, d);
|
|---|
| 695 | SetFS(sel);
|
|---|
| 696 |
|
|---|
| 697 | return yyrc;
|
|---|
| 698 | }
|
|---|
| 699 |
|
|---|
| 700 | #undef DosQueryPathInfo
|
|---|
| 701 | #define DosQueryPathInfo _DosQueryPathInfo
|
|---|
| 702 |
|
|---|
| 703 | inline ULONG _DosQueryVerify(PBOOL32 a)
|
|---|
| 704 | {
|
|---|
| 705 | ULONG yyrc;
|
|---|
| 706 | USHORT sel = RestoreOS2FS();
|
|---|
| 707 |
|
|---|
| 708 | yyrc = DosQueryVerify(a);
|
|---|
| 709 | SetFS(sel);
|
|---|
| 710 |
|
|---|
| 711 | return yyrc;
|
|---|
| 712 | }
|
|---|
| 713 |
|
|---|
| 714 | #undef DosQueryVerify
|
|---|
| 715 | #define DosQueryVerify _DosQueryVerify
|
|---|
| 716 |
|
|---|
| 717 | inline ULONG _DosRead(HFILE a, PVOID b, ULONG c, PULONG d)
|
|---|
| 718 | {
|
|---|
| 719 | ULONG yyrc;
|
|---|
| 720 | USHORT sel = RestoreOS2FS();
|
|---|
| 721 |
|
|---|
| 722 | yyrc = DosRead(a, b, c, d);
|
|---|
| 723 | SetFS(sel);
|
|---|
| 724 |
|
|---|
| 725 | return yyrc;
|
|---|
| 726 | }
|
|---|
| 727 |
|
|---|
| 728 | #undef DosRead
|
|---|
| 729 | #define DosRead _DosRead
|
|---|
| 730 |
|
|---|
| 731 | inline ULONG _DosResetBuffer(HFILE a)
|
|---|
| 732 | {
|
|---|
| 733 | ULONG yyrc;
|
|---|
| 734 | USHORT sel = RestoreOS2FS();
|
|---|
| 735 |
|
|---|
| 736 | yyrc = DosResetBuffer(a);
|
|---|
| 737 | SetFS(sel);
|
|---|
| 738 |
|
|---|
| 739 | return yyrc;
|
|---|
| 740 | }
|
|---|
| 741 |
|
|---|
| 742 | #undef DosResetBuffer
|
|---|
| 743 | #define DosResetBuffer _DosResetBuffer
|
|---|
| 744 |
|
|---|
| 745 | inline ULONG _DosSetCurrentDir(PCSZ a)
|
|---|
| 746 | {
|
|---|
| 747 | ULONG yyrc;
|
|---|
| 748 | USHORT sel = RestoreOS2FS();
|
|---|
| 749 |
|
|---|
| 750 | yyrc = DosSetCurrentDir(a);
|
|---|
| 751 | SetFS(sel);
|
|---|
| 752 |
|
|---|
| 753 | return yyrc;
|
|---|
| 754 | }
|
|---|
| 755 |
|
|---|
| 756 | #undef DosSetCurrentDir
|
|---|
| 757 | #define DosSetCurrentDir _DosSetCurrentDir
|
|---|
| 758 |
|
|---|
| 759 | inline ULONG _DosSetDefaultDisk(ULONG a)
|
|---|
| 760 | {
|
|---|
| 761 | ULONG yyrc;
|
|---|
| 762 | USHORT sel = RestoreOS2FS();
|
|---|
| 763 |
|
|---|
| 764 | yyrc = DosSetDefaultDisk(a);
|
|---|
| 765 | SetFS(sel);
|
|---|
| 766 |
|
|---|
| 767 | return yyrc;
|
|---|
| 768 | }
|
|---|
| 769 |
|
|---|
| 770 | #undef DosSetDefaultDisk
|
|---|
| 771 | #define DosSetDefaultDisk _DosSetDefaultDisk
|
|---|
| 772 |
|
|---|
| 773 | inline ULONG _DosSetFHState(HFILE a, ULONG b)
|
|---|
| 774 | {
|
|---|
| 775 | ULONG yyrc;
|
|---|
| 776 | USHORT sel = RestoreOS2FS();
|
|---|
| 777 |
|
|---|
| 778 | yyrc = DosSetFHState(a, b);
|
|---|
| 779 | SetFS(sel);
|
|---|
| 780 |
|
|---|
| 781 | return yyrc;
|
|---|
| 782 | }
|
|---|
| 783 |
|
|---|
| 784 | #undef DosSetFHState
|
|---|
| 785 | #define DosSetFHState _DosSetFHState
|
|---|
| 786 |
|
|---|
| 787 | inline ULONG _DosSetFileInfo(HFILE a, ULONG b, PVOID c, ULONG d)
|
|---|
| 788 | {
|
|---|
| 789 | ULONG yyrc;
|
|---|
| 790 | USHORT sel = RestoreOS2FS();
|
|---|
| 791 |
|
|---|
| 792 | yyrc = DosSetFileInfo(a, b, c, d);
|
|---|
| 793 | SetFS(sel);
|
|---|
| 794 |
|
|---|
| 795 | return yyrc;
|
|---|
| 796 | }
|
|---|
| 797 |
|
|---|
| 798 | #undef DosSetFileInfo
|
|---|
| 799 | #define DosSetFileInfo _DosSetFileInfo
|
|---|
| 800 |
|
|---|
| 801 | inline ULONG _DosSetFileLocks(HFILE a, PFILELOCK b, PFILELOCK c, ULONG d, ULONG e)
|
|---|
| 802 | {
|
|---|
| 803 | ULONG yyrc;
|
|---|
| 804 | USHORT sel = RestoreOS2FS();
|
|---|
| 805 |
|
|---|
| 806 | yyrc = DosSetFileLocks(a, b, c, d, e);
|
|---|
| 807 | SetFS(sel);
|
|---|
| 808 |
|
|---|
| 809 | return yyrc;
|
|---|
| 810 | }
|
|---|
| 811 |
|
|---|
| 812 | #undef DosSetFileLocks
|
|---|
| 813 | #define DosSetFileLocks _DosSetFileLocks
|
|---|
| 814 |
|
|---|
| 815 | inline ULONG _DosSetFilePtr(HFILE a, LONG b, ULONG c, PULONG d)
|
|---|
| 816 | {
|
|---|
| 817 | ULONG yyrc;
|
|---|
| 818 | USHORT sel = RestoreOS2FS();
|
|---|
| 819 |
|
|---|
| 820 | yyrc = DosSetFilePtr(a, b, c, d);
|
|---|
| 821 | SetFS(sel);
|
|---|
| 822 |
|
|---|
| 823 | return yyrc;
|
|---|
| 824 | }
|
|---|
| 825 |
|
|---|
| 826 | #undef DosSetFilePtr
|
|---|
| 827 | #define DosSetFilePtr _DosSetFilePtr
|
|---|
| 828 |
|
|---|
| 829 | inline ULONG _DosSetFileSize(HFILE a, ULONG b)
|
|---|
| 830 | {
|
|---|
| 831 | ULONG yyrc;
|
|---|
| 832 | USHORT sel = RestoreOS2FS();
|
|---|
| 833 |
|
|---|
| 834 | yyrc = DosSetFileSize(a, b);
|
|---|
| 835 | SetFS(sel);
|
|---|
| 836 |
|
|---|
| 837 | return yyrc;
|
|---|
| 838 | }
|
|---|
| 839 |
|
|---|
| 840 | #undef DosSetFileSize
|
|---|
| 841 | #define DosSetFileSize _DosSetFileSize
|
|---|
| 842 |
|
|---|
| 843 | inline ULONG _DosSetFSInfo(ULONG a, ULONG b, PVOID c, ULONG d)
|
|---|
| 844 | {
|
|---|
| 845 | ULONG yyrc;
|
|---|
| 846 | USHORT sel = RestoreOS2FS();
|
|---|
| 847 |
|
|---|
| 848 | yyrc = DosSetFSInfo(a, b, c, d);
|
|---|
| 849 | SetFS(sel);
|
|---|
| 850 |
|
|---|
| 851 | return yyrc;
|
|---|
| 852 | }
|
|---|
| 853 |
|
|---|
| 854 | #undef DosSetFSInfo
|
|---|
| 855 | #define DosSetFSInfo _DosSetFSInfo
|
|---|
| 856 |
|
|---|
| 857 | inline ULONG _DosSetMaxFH(ULONG a)
|
|---|
| 858 | {
|
|---|
| 859 | ULONG yyrc;
|
|---|
| 860 | USHORT sel = RestoreOS2FS();
|
|---|
| 861 |
|
|---|
| 862 | yyrc = DosSetMaxFH(a);
|
|---|
| 863 | SetFS(sel);
|
|---|
| 864 |
|
|---|
| 865 | return yyrc;
|
|---|
| 866 | }
|
|---|
| 867 |
|
|---|
| 868 | #undef DosSetMaxFH
|
|---|
| 869 | #define DosSetMaxFH _DosSetMaxFH
|
|---|
| 870 |
|
|---|
| 871 | inline ULONG _DosSetPathInfo(PCSZ a, ULONG b, PVOID c, ULONG d, ULONG e)
|
|---|
| 872 | {
|
|---|
| 873 | ULONG yyrc;
|
|---|
| 874 | USHORT sel = RestoreOS2FS();
|
|---|
| 875 |
|
|---|
| 876 | yyrc = DosSetPathInfo(a, b, c, d, e);
|
|---|
| 877 | SetFS(sel);
|
|---|
| 878 |
|
|---|
| 879 | return yyrc;
|
|---|
| 880 | }
|
|---|
| 881 |
|
|---|
| 882 | #undef DosSetPathInfo
|
|---|
| 883 | #define DosSetPathInfo _DosSetPathInfo
|
|---|
| 884 |
|
|---|
| 885 | inline ULONG _DosSetRelMaxFH(PLONG a, PULONG b)
|
|---|
| 886 | {
|
|---|
| 887 | ULONG yyrc;
|
|---|
| 888 | USHORT sel = RestoreOS2FS();
|
|---|
| 889 |
|
|---|
| 890 | yyrc = DosSetRelMaxFH(a, b);
|
|---|
| 891 | SetFS(sel);
|
|---|
| 892 |
|
|---|
| 893 | return yyrc;
|
|---|
| 894 | }
|
|---|
| 895 |
|
|---|
| 896 | #undef DosSetRelMaxFH
|
|---|
| 897 | #define DosSetRelMaxFH _DosSetRelMaxFH
|
|---|
| 898 |
|
|---|
| 899 | inline ULONG _DosSetVerify(BOOL32 a)
|
|---|
| 900 | {
|
|---|
| 901 | ULONG yyrc;
|
|---|
| 902 | USHORT sel = RestoreOS2FS();
|
|---|
| 903 |
|
|---|
| 904 | yyrc = DosSetVerify(a);
|
|---|
| 905 | SetFS(sel);
|
|---|
| 906 |
|
|---|
| 907 | return yyrc;
|
|---|
| 908 | }
|
|---|
| 909 |
|
|---|
| 910 | #undef DosSetVerify
|
|---|
| 911 | #define DosSetVerify _DosSetVerify
|
|---|
| 912 |
|
|---|
| 913 | inline ULONG _DosShutdown(ULONG a)
|
|---|
| 914 | {
|
|---|
| 915 | ULONG yyrc;
|
|---|
| 916 | USHORT sel = RestoreOS2FS();
|
|---|
| 917 |
|
|---|
| 918 | yyrc = DosShutdown(a);
|
|---|
| 919 | SetFS(sel);
|
|---|
| 920 |
|
|---|
| 921 | return yyrc;
|
|---|
| 922 | }
|
|---|
| 923 |
|
|---|
| 924 | #undef DosShutdown
|
|---|
| 925 | #define DosShutdown _DosShutdown
|
|---|
| 926 |
|
|---|
| 927 | inline ULONG _DosWrite(HFILE a, PVOID b, ULONG c, PULONG d)
|
|---|
| 928 | {
|
|---|
| 929 | ULONG yyrc;
|
|---|
| 930 | USHORT sel = RestoreOS2FS();
|
|---|
| 931 |
|
|---|
| 932 | yyrc = DosWrite(a, b, c, d);
|
|---|
| 933 | SetFS(sel);
|
|---|
| 934 |
|
|---|
| 935 | return yyrc;
|
|---|
| 936 | }
|
|---|
| 937 |
|
|---|
| 938 | #undef DosWrite
|
|---|
| 939 | #define DosWrite _DosWrite
|
|---|
| 940 |
|
|---|
| 941 | #endif
|
|---|
| 942 | #ifdef INCL_DOSMISC
|
|---|
| 943 | inline ULONG _DosSearchPath(ULONG a, PCSZ b, PCSZ c, PBYTE d, ULONG e)
|
|---|
| 944 | {
|
|---|
| 945 | ULONG yyrc;
|
|---|
| 946 | USHORT sel = RestoreOS2FS();
|
|---|
| 947 |
|
|---|
| 948 | yyrc = DosSearchPath(a, b, c, d, e);
|
|---|
| 949 | SetFS(sel);
|
|---|
| 950 |
|
|---|
| 951 | return yyrc;
|
|---|
| 952 | }
|
|---|
| 953 |
|
|---|
| 954 | #undef DosSearchPath
|
|---|
| 955 | #define DosSearchPath _DosSearchPath
|
|---|
| 956 |
|
|---|
| 957 | inline ULONG _DosError(ULONG error)
|
|---|
| 958 | {
|
|---|
| 959 | ULONG yyrc;
|
|---|
| 960 | USHORT sel = RestoreOS2FS();
|
|---|
| 961 |
|
|---|
| 962 | yyrc = DosError(error);
|
|---|
| 963 | SetFS(sel);
|
|---|
| 964 |
|
|---|
| 965 | return yyrc;
|
|---|
| 966 | }
|
|---|
| 967 |
|
|---|
| 968 | #undef DosError
|
|---|
| 969 | #define DosError _DosError
|
|---|
| 970 |
|
|---|
| 971 | #endif
|
|---|
| 972 | #ifdef INCL_DOSDEVICES
|
|---|
| 973 | inline ULONG _DosDevConfig(PVOID a, ULONG b)
|
|---|
| 974 | {
|
|---|
| 975 | ULONG yyrc;
|
|---|
| 976 | USHORT sel = RestoreOS2FS();
|
|---|
| 977 |
|
|---|
| 978 | yyrc = DosDevConfig(a, b);
|
|---|
| 979 | SetFS(sel);
|
|---|
| 980 |
|
|---|
| 981 | return yyrc;
|
|---|
| 982 | }
|
|---|
| 983 |
|
|---|
| 984 | #undef DosDevConfig
|
|---|
| 985 | #define DosDevConfig _DosDevConfig
|
|---|
| 986 |
|
|---|
| 987 | inline ULONG _DosDevIOCtl(HFILE a, ULONG b, ULONG c, PVOID d, ULONG e, PULONG f, PVOID g, ULONG h, PULONG i)
|
|---|
| 988 | {
|
|---|
| 989 | ULONG yyrc;
|
|---|
| 990 | USHORT sel = RestoreOS2FS();
|
|---|
| 991 |
|
|---|
| 992 | yyrc = DosDevIOCtl(a, b, c, d, e, f, g, h, i);
|
|---|
| 993 | SetFS(sel);
|
|---|
| 994 |
|
|---|
| 995 | return yyrc;
|
|---|
| 996 | }
|
|---|
| 997 |
|
|---|
| 998 | #undef DosDevIOCtl
|
|---|
| 999 | #define DosDevIOCtl _DosDevIOCtl
|
|---|
| 1000 |
|
|---|
| 1001 | inline ULONG _DosPhysicalDisk(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e)
|
|---|
| 1002 | {
|
|---|
| 1003 | ULONG yyrc;
|
|---|
| 1004 | USHORT sel = RestoreOS2FS();
|
|---|
| 1005 |
|
|---|
| 1006 | yyrc = DosPhysicalDisk(a, b, c, d, e);
|
|---|
| 1007 | SetFS(sel);
|
|---|
| 1008 |
|
|---|
| 1009 | return yyrc;
|
|---|
| 1010 | }
|
|---|
| 1011 |
|
|---|
| 1012 | #undef DosPhysicalDisk
|
|---|
| 1013 | #define DosPhysicalDisk _DosPhysicalDisk
|
|---|
| 1014 |
|
|---|
| 1015 | #endif
|
|---|
| 1016 | #ifdef INCL_DOSNLS
|
|---|
| 1017 | inline ULONG _DosMapCase(ULONG a, PCOUNTRYCODE b, PCHAR c)
|
|---|
| 1018 | {
|
|---|
| 1019 | ULONG yyrc;
|
|---|
| 1020 | USHORT sel = RestoreOS2FS();
|
|---|
| 1021 |
|
|---|
| 1022 | yyrc = DosMapCase(a, b, c);
|
|---|
| 1023 | SetFS(sel);
|
|---|
| 1024 |
|
|---|
| 1025 | return yyrc;
|
|---|
| 1026 | }
|
|---|
| 1027 |
|
|---|
| 1028 | #undef DosMapCase
|
|---|
| 1029 | #define DosMapCase _DosMapCase
|
|---|
| 1030 |
|
|---|
| 1031 | inline ULONG _DosQueryCollate(ULONG a, PCOUNTRYCODE b, PCHAR c, PULONG d)
|
|---|
| 1032 | {
|
|---|
| 1033 | ULONG yyrc;
|
|---|
| 1034 | USHORT sel = RestoreOS2FS();
|
|---|
| 1035 |
|
|---|
| 1036 | yyrc = DosQueryCollate(a, b, c, d);
|
|---|
| 1037 | SetFS(sel);
|
|---|
| 1038 |
|
|---|
| 1039 | return yyrc;
|
|---|
| 1040 | }
|
|---|
| 1041 |
|
|---|
| 1042 | #undef DosQueryCollate
|
|---|
| 1043 | #define DosQueryCollate _DosQueryCollate
|
|---|
| 1044 |
|
|---|
| 1045 | inline ULONG _DosQueryCp(ULONG a, PULONG b, PULONG c)
|
|---|
| 1046 | {
|
|---|
| 1047 | ULONG yyrc;
|
|---|
| 1048 | USHORT sel = RestoreOS2FS();
|
|---|
| 1049 |
|
|---|
| 1050 | yyrc = DosQueryCp(a, b, c);
|
|---|
| 1051 | SetFS(sel);
|
|---|
| 1052 |
|
|---|
| 1053 | return yyrc;
|
|---|
| 1054 | }
|
|---|
| 1055 |
|
|---|
| 1056 | #undef DosQueryCp
|
|---|
| 1057 | #define DosQueryCp _DosQueryCp
|
|---|
| 1058 |
|
|---|
| 1059 | inline ULONG _DosQueryCtryInfo(ULONG a, PCOUNTRYCODE b, PCOUNTRYINFO c, PULONG d)
|
|---|
| 1060 | {
|
|---|
| 1061 | ULONG yyrc;
|
|---|
| 1062 | USHORT sel = RestoreOS2FS();
|
|---|
| 1063 |
|
|---|
| 1064 | yyrc = DosQueryCtryInfo(a, b, c, d);
|
|---|
| 1065 | SetFS(sel);
|
|---|
| 1066 |
|
|---|
| 1067 | return yyrc;
|
|---|
| 1068 | }
|
|---|
| 1069 |
|
|---|
| 1070 | #undef DosQueryCtryInfo
|
|---|
| 1071 | #define DosQueryCtryInfo _DosQueryCtryInfo
|
|---|
| 1072 |
|
|---|
| 1073 | inline ULONG _DosQueryDBCSEnv(ULONG a, PCOUNTRYCODE b, PCHAR c)
|
|---|
| 1074 | {
|
|---|
| 1075 | ULONG yyrc;
|
|---|
| 1076 | USHORT sel = RestoreOS2FS();
|
|---|
| 1077 |
|
|---|
| 1078 | yyrc = DosQueryDBCSEnv(a, b, c);
|
|---|
| 1079 | SetFS(sel);
|
|---|
| 1080 |
|
|---|
| 1081 | return yyrc;
|
|---|
| 1082 | }
|
|---|
| 1083 |
|
|---|
| 1084 | #undef DosQueryDBCSEnv
|
|---|
| 1085 | #define DosQueryDBCSEnv _DosQueryDBCSEnv
|
|---|
| 1086 |
|
|---|
| 1087 | inline ULONG _DosSetProcessCp(ULONG a)
|
|---|
| 1088 | {
|
|---|
| 1089 | ULONG yyrc;
|
|---|
| 1090 | USHORT sel = RestoreOS2FS();
|
|---|
| 1091 |
|
|---|
| 1092 | yyrc = DosSetProcessCp(a);
|
|---|
| 1093 | SetFS(sel);
|
|---|
| 1094 |
|
|---|
| 1095 | return yyrc;
|
|---|
| 1096 | }
|
|---|
| 1097 |
|
|---|
| 1098 | #undef DosSetProcessCp
|
|---|
| 1099 | #define DosSetProcessCp _DosSetProcessCp
|
|---|
| 1100 |
|
|---|
| 1101 | #endif
|
|---|
| 1102 | #ifdef INCL_DOSMODULEMGR
|
|---|
| 1103 | inline ULONG _DosFreeModule(HMODULE a)
|
|---|
| 1104 | {
|
|---|
| 1105 | ULONG yyrc;
|
|---|
| 1106 | USHORT sel = RestoreOS2FS();
|
|---|
| 1107 |
|
|---|
| 1108 | yyrc = DosFreeModule(a);
|
|---|
| 1109 | SetFS(sel);
|
|---|
| 1110 |
|
|---|
| 1111 | return yyrc;
|
|---|
| 1112 | }
|
|---|
| 1113 |
|
|---|
| 1114 | #undef DosFreeModule
|
|---|
| 1115 | #define DosFreeModule _DosFreeModule
|
|---|
| 1116 |
|
|---|
| 1117 | inline ULONG _DosLoadModule(PSZ a, ULONG b, PCSZ c, PHMODULE d)
|
|---|
| 1118 | {
|
|---|
| 1119 | ULONG yyrc;
|
|---|
| 1120 | USHORT sel = RestoreOS2FS();
|
|---|
| 1121 |
|
|---|
| 1122 | yyrc = DosLoadModule(a, b, c, d);
|
|---|
| 1123 | SetFS(sel);
|
|---|
| 1124 |
|
|---|
| 1125 | return yyrc;
|
|---|
| 1126 | }
|
|---|
| 1127 |
|
|---|
| 1128 | #undef DosLoadModule
|
|---|
| 1129 | #define DosLoadModule _DosLoadModule
|
|---|
| 1130 |
|
|---|
| 1131 | inline ULONG _DosQueryModuleHandle(PCSZ a, PHMODULE b)
|
|---|
| 1132 | {
|
|---|
| 1133 | ULONG yyrc;
|
|---|
| 1134 | USHORT sel = RestoreOS2FS();
|
|---|
| 1135 |
|
|---|
| 1136 | yyrc = DosQueryModuleHandle(a, b);
|
|---|
| 1137 | SetFS(sel);
|
|---|
| 1138 |
|
|---|
| 1139 | return yyrc;
|
|---|
| 1140 | }
|
|---|
| 1141 |
|
|---|
| 1142 | #undef DosQueryModuleHandle
|
|---|
| 1143 | #define DosQueryModuleHandle _DosQueryModuleHandle
|
|---|
| 1144 |
|
|---|
| 1145 | inline ULONG _DosQueryModuleName(HMODULE a, ULONG b, PCHAR c)
|
|---|
| 1146 | {
|
|---|
| 1147 | ULONG yyrc;
|
|---|
| 1148 | USHORT sel = RestoreOS2FS();
|
|---|
| 1149 |
|
|---|
| 1150 | yyrc = DosQueryModuleName(a, b, c);
|
|---|
| 1151 | SetFS(sel);
|
|---|
| 1152 |
|
|---|
| 1153 | return yyrc;
|
|---|
| 1154 | }
|
|---|
| 1155 |
|
|---|
| 1156 | #undef DosQueryModuleName
|
|---|
| 1157 | #define DosQueryModuleName _DosQueryModuleName
|
|---|
| 1158 |
|
|---|
| 1159 | inline ULONG _DosQueryProcAddr(HMODULE a, ULONG b, PCSZ c, PFN *d)
|
|---|
| 1160 | {
|
|---|
| 1161 | ULONG yyrc;
|
|---|
| 1162 | USHORT sel = RestoreOS2FS();
|
|---|
| 1163 |
|
|---|
| 1164 | yyrc = DosQueryProcAddr(a, b, c, d);
|
|---|
| 1165 | SetFS(sel);
|
|---|
| 1166 |
|
|---|
| 1167 | return yyrc;
|
|---|
| 1168 | }
|
|---|
| 1169 |
|
|---|
| 1170 | #undef DosQueryProcAddr
|
|---|
| 1171 | #define DosQueryProcAddr _DosQueryProcAddr
|
|---|
| 1172 |
|
|---|
| 1173 | inline ULONG _DosQueryProcType(HMODULE a, ULONG b, PCSZ c, PULONG d)
|
|---|
| 1174 | {
|
|---|
| 1175 | ULONG yyrc;
|
|---|
| 1176 | USHORT sel = RestoreOS2FS();
|
|---|
| 1177 |
|
|---|
| 1178 | yyrc = DosQueryProcType(a, b, c, d);
|
|---|
| 1179 | SetFS(sel);
|
|---|
| 1180 |
|
|---|
| 1181 | return yyrc;
|
|---|
| 1182 | }
|
|---|
| 1183 |
|
|---|
| 1184 | #undef DosQueryProcType
|
|---|
| 1185 | #define DosQueryProcType _DosQueryProcType
|
|---|
| 1186 |
|
|---|
| 1187 | #endif
|
|---|
| 1188 | #ifdef INCL_DOSRESOURCES
|
|---|
| 1189 | inline ULONG _DosFreeResource(PVOID a)
|
|---|
| 1190 | {
|
|---|
| 1191 | ULONG yyrc;
|
|---|
| 1192 | USHORT sel = RestoreOS2FS();
|
|---|
| 1193 |
|
|---|
| 1194 | yyrc = DosFreeResource(a);
|
|---|
| 1195 | SetFS(sel);
|
|---|
| 1196 |
|
|---|
| 1197 | return yyrc;
|
|---|
| 1198 | }
|
|---|
| 1199 |
|
|---|
| 1200 | #undef DosFreeResource
|
|---|
| 1201 | #define DosFreeResource _DosFreeResource
|
|---|
| 1202 |
|
|---|
| 1203 | inline ULONG _DosGetResource(HMODULE a, ULONG b, ULONG c, PPVOID d)
|
|---|
| 1204 | {
|
|---|
| 1205 | ULONG yyrc;
|
|---|
| 1206 | USHORT sel = RestoreOS2FS();
|
|---|
| 1207 |
|
|---|
| 1208 | yyrc = DosGetResource(a, b, c, d);
|
|---|
| 1209 | SetFS(sel);
|
|---|
| 1210 |
|
|---|
| 1211 | return yyrc;
|
|---|
| 1212 | }
|
|---|
| 1213 |
|
|---|
| 1214 | #undef DosGetResource
|
|---|
| 1215 | #define DosGetResource _DosGetResource
|
|---|
| 1216 |
|
|---|
| 1217 | inline ULONG _DosQueryResourceSize(HMODULE a, ULONG b, ULONG c, PULONG d)
|
|---|
| 1218 | {
|
|---|
| 1219 | ULONG yyrc;
|
|---|
| 1220 | USHORT sel = RestoreOS2FS();
|
|---|
| 1221 |
|
|---|
| 1222 | yyrc = DosQueryResourceSize(a, b, c, d);
|
|---|
| 1223 | SetFS(sel);
|
|---|
| 1224 |
|
|---|
| 1225 | return yyrc;
|
|---|
| 1226 | }
|
|---|
| 1227 |
|
|---|
| 1228 | #undef DosQueryResourceSize
|
|---|
| 1229 | #define DosQueryResourceSize _DosQueryResourceSize
|
|---|
| 1230 |
|
|---|
| 1231 | #endif
|
|---|
| 1232 | #ifdef INCL_DOSPROCESS
|
|---|
| 1233 | inline ULONG _DosBeep(ULONG a, ULONG b)
|
|---|
| 1234 | {
|
|---|
| 1235 | ULONG yyrc;
|
|---|
| 1236 | USHORT sel = RestoreOS2FS();
|
|---|
| 1237 |
|
|---|
| 1238 | yyrc = DosBeep(a, b);
|
|---|
| 1239 | SetFS(sel);
|
|---|
| 1240 |
|
|---|
| 1241 | return yyrc;
|
|---|
| 1242 | }
|
|---|
| 1243 |
|
|---|
| 1244 | #undef DosBeep
|
|---|
| 1245 | #define DosBeep _DosBeep
|
|---|
| 1246 |
|
|---|
| 1247 | inline VOID _DosExit(ULONG a, ULONG b)
|
|---|
| 1248 | {
|
|---|
| 1249 | USHORT sel = RestoreOS2FS();
|
|---|
| 1250 |
|
|---|
| 1251 | DosExit(a, b);
|
|---|
| 1252 | SetFS(sel);
|
|---|
| 1253 | }
|
|---|
| 1254 |
|
|---|
| 1255 | #undef DosExit
|
|---|
| 1256 | #define DosExit _DosExit
|
|---|
| 1257 |
|
|---|
| 1258 | inline ULONG _DosAllocThreadLocalMemory(ULONG a, PULONG *b)
|
|---|
| 1259 | {
|
|---|
| 1260 | ULONG yyrc;
|
|---|
| 1261 | USHORT sel = RestoreOS2FS();
|
|---|
| 1262 |
|
|---|
| 1263 | yyrc = DosAllocThreadLocalMemory(a, b);
|
|---|
| 1264 | SetFS(sel);
|
|---|
| 1265 |
|
|---|
| 1266 | return yyrc;
|
|---|
| 1267 | }
|
|---|
| 1268 |
|
|---|
| 1269 | #undef DosAllocThreadLocalMemory
|
|---|
| 1270 | #define DosAllocThreadLocalMemory _DosAllocThreadLocalMemory
|
|---|
| 1271 |
|
|---|
| 1272 | inline ULONG _DosCreateThread(PTID a, PFNTHREAD b, ULONG c, ULONG d, ULONG e)
|
|---|
| 1273 | {
|
|---|
| 1274 | ULONG yyrc;
|
|---|
| 1275 | USHORT sel = RestoreOS2FS();
|
|---|
| 1276 |
|
|---|
| 1277 | yyrc = DosCreateThread(a, b, c, d, e);
|
|---|
| 1278 | SetFS(sel);
|
|---|
| 1279 |
|
|---|
| 1280 | return yyrc;
|
|---|
| 1281 | }
|
|---|
| 1282 |
|
|---|
| 1283 | #undef DosCreateThread
|
|---|
| 1284 | #define DosCreateThread _DosCreateThread
|
|---|
| 1285 |
|
|---|
| 1286 | inline ULONG _DosEnterCritSec()
|
|---|
| 1287 | {
|
|---|
| 1288 | ULONG yyrc;
|
|---|
| 1289 | USHORT sel = RestoreOS2FS();
|
|---|
| 1290 |
|
|---|
| 1291 | yyrc = DosEnterCritSec();
|
|---|
| 1292 | SetFS(sel);
|
|---|
| 1293 |
|
|---|
| 1294 | return yyrc;
|
|---|
| 1295 | }
|
|---|
| 1296 |
|
|---|
| 1297 | #undef DosEnterCritSec
|
|---|
| 1298 | #define DosEnterCritSec _DosEnterCritSec
|
|---|
| 1299 |
|
|---|
| 1300 | inline ULONG _DosExecPgm(PCHAR a, LONG b, ULONG c, PCSZ d, PCSZ e, PRESULTCODES f, PCSZ g)
|
|---|
| 1301 | {
|
|---|
| 1302 | ULONG yyrc;
|
|---|
| 1303 | USHORT sel = RestoreOS2FS();
|
|---|
| 1304 |
|
|---|
| 1305 | yyrc = DosExecPgm(a, b, c, d, e, f, g);
|
|---|
| 1306 | SetFS(sel);
|
|---|
| 1307 |
|
|---|
| 1308 | return yyrc;
|
|---|
| 1309 | }
|
|---|
| 1310 |
|
|---|
| 1311 | #undef DosExecPgm
|
|---|
| 1312 | #define DosExecPgm _DosExecPgm
|
|---|
| 1313 |
|
|---|
| 1314 | inline ULONG _DosExitCritSec()
|
|---|
| 1315 | {
|
|---|
| 1316 | ULONG yyrc;
|
|---|
| 1317 | USHORT sel = RestoreOS2FS();
|
|---|
| 1318 |
|
|---|
| 1319 | yyrc = DosExitCritSec();
|
|---|
| 1320 | SetFS(sel);
|
|---|
| 1321 |
|
|---|
| 1322 | return yyrc;
|
|---|
| 1323 | }
|
|---|
| 1324 |
|
|---|
| 1325 | #undef DosExitCritSec
|
|---|
| 1326 | #define DosExitCritSec _DosExitCritSec
|
|---|
| 1327 |
|
|---|
| 1328 | inline ULONG _DosExitList(ULONG a, PFNEXITLIST b)
|
|---|
| 1329 | {
|
|---|
| 1330 | ULONG yyrc;
|
|---|
| 1331 | USHORT sel = RestoreOS2FS();
|
|---|
| 1332 |
|
|---|
| 1333 | yyrc = DosExitList(a, b);
|
|---|
| 1334 | SetFS(sel);
|
|---|
| 1335 |
|
|---|
| 1336 | return yyrc;
|
|---|
| 1337 | }
|
|---|
| 1338 |
|
|---|
| 1339 | #undef DosExitList
|
|---|
| 1340 | #define DosExitList _DosExitList
|
|---|
| 1341 |
|
|---|
| 1342 | inline ULONG _DosFreeThreadLocalMemory(ULONG *a)
|
|---|
| 1343 | {
|
|---|
| 1344 | ULONG yyrc;
|
|---|
| 1345 | USHORT sel = RestoreOS2FS();
|
|---|
| 1346 |
|
|---|
| 1347 | yyrc = DosFreeThreadLocalMemory(a);
|
|---|
| 1348 | SetFS(sel);
|
|---|
| 1349 |
|
|---|
| 1350 | return yyrc;
|
|---|
| 1351 | }
|
|---|
| 1352 |
|
|---|
| 1353 | #undef DosFreeThreadLocalMemory
|
|---|
| 1354 | #define DosFreeThreadLocalMemory _DosFreeThreadLocalMemory
|
|---|
| 1355 |
|
|---|
| 1356 | inline ULONG _DosGetInfoBlocks(PTIB *a, PPIB *b)
|
|---|
| 1357 | {
|
|---|
| 1358 | ULONG yyrc;
|
|---|
| 1359 | USHORT sel = RestoreOS2FS();
|
|---|
| 1360 |
|
|---|
| 1361 | yyrc = DosGetInfoBlocks(a, b);
|
|---|
| 1362 | SetFS(sel);
|
|---|
| 1363 |
|
|---|
| 1364 | return yyrc;
|
|---|
| 1365 | }
|
|---|
| 1366 |
|
|---|
| 1367 | #undef DosGetInfoBlocks
|
|---|
| 1368 | #define DosGetInfoBlocks _DosGetInfoBlocks
|
|---|
| 1369 |
|
|---|
| 1370 | inline ULONG _DosKillProcess(ULONG a, PID b)
|
|---|
| 1371 | {
|
|---|
| 1372 | ULONG yyrc;
|
|---|
| 1373 | USHORT sel = RestoreOS2FS();
|
|---|
| 1374 |
|
|---|
| 1375 | yyrc = DosKillProcess(a, b);
|
|---|
| 1376 | SetFS(sel);
|
|---|
| 1377 |
|
|---|
| 1378 | return yyrc;
|
|---|
| 1379 | }
|
|---|
| 1380 |
|
|---|
| 1381 | #undef DosKillProcess
|
|---|
| 1382 | #define DosKillProcess _DosKillProcess
|
|---|
| 1383 |
|
|---|
| 1384 | inline ULONG _DosKillThread(TID a)
|
|---|
| 1385 | {
|
|---|
| 1386 | ULONG yyrc;
|
|---|
| 1387 | USHORT sel = RestoreOS2FS();
|
|---|
| 1388 |
|
|---|
| 1389 | yyrc = DosKillThread(a);
|
|---|
| 1390 | SetFS(sel);
|
|---|
| 1391 |
|
|---|
| 1392 | return yyrc;
|
|---|
| 1393 | }
|
|---|
| 1394 |
|
|---|
| 1395 | #undef DosKillThread
|
|---|
| 1396 | #define DosKillThread _DosKillThread
|
|---|
| 1397 |
|
|---|
| 1398 | inline ULONG _DosResumeThread(TID a)
|
|---|
| 1399 | {
|
|---|
| 1400 | ULONG yyrc;
|
|---|
| 1401 | USHORT sel = RestoreOS2FS();
|
|---|
| 1402 |
|
|---|
| 1403 | yyrc = DosResumeThread(a);
|
|---|
| 1404 | SetFS(sel);
|
|---|
| 1405 |
|
|---|
| 1406 | return yyrc;
|
|---|
| 1407 | }
|
|---|
| 1408 |
|
|---|
| 1409 | #undef DosResumeThread
|
|---|
| 1410 | #define DosResumeThread _DosResumeThread
|
|---|
| 1411 |
|
|---|
| 1412 | inline ULONG _DosSetPriority(ULONG a, ULONG b, LONG c, ULONG d)
|
|---|
| 1413 | {
|
|---|
| 1414 | ULONG yyrc;
|
|---|
| 1415 | USHORT sel = RestoreOS2FS();
|
|---|
| 1416 |
|
|---|
| 1417 | yyrc = DosSetPriority(a, b, c, d);
|
|---|
| 1418 | SetFS(sel);
|
|---|
| 1419 |
|
|---|
| 1420 | return yyrc;
|
|---|
| 1421 | }
|
|---|
| 1422 |
|
|---|
| 1423 | #undef DosSetPriority
|
|---|
| 1424 | #define DosSetPriority _DosSetPriority
|
|---|
| 1425 |
|
|---|
| 1426 | inline ULONG _DosSleep(ULONG a)
|
|---|
| 1427 | {
|
|---|
| 1428 | ULONG yyrc;
|
|---|
| 1429 | USHORT sel = RestoreOS2FS();
|
|---|
| 1430 |
|
|---|
| 1431 | yyrc = DosSleep(a);
|
|---|
| 1432 | SetFS(sel);
|
|---|
| 1433 |
|
|---|
| 1434 | return yyrc;
|
|---|
| 1435 | }
|
|---|
| 1436 |
|
|---|
| 1437 | #undef DosSleep
|
|---|
| 1438 | #define DosSleep _DosSleep
|
|---|
| 1439 |
|
|---|
| 1440 | inline ULONG _DosSuspendThread(TID a)
|
|---|
| 1441 | {
|
|---|
| 1442 | ULONG yyrc;
|
|---|
| 1443 | USHORT sel = RestoreOS2FS();
|
|---|
| 1444 |
|
|---|
| 1445 | yyrc = DosSuspendThread(a);
|
|---|
| 1446 | SetFS(sel);
|
|---|
| 1447 |
|
|---|
| 1448 | return yyrc;
|
|---|
| 1449 | }
|
|---|
| 1450 |
|
|---|
| 1451 | #undef DosSuspendThread
|
|---|
| 1452 | #define DosSuspendThread _DosSuspendThread
|
|---|
| 1453 |
|
|---|
| 1454 | inline ULONG _DosWaitChild(ULONG a, ULONG b, PRESULTCODES c, PPID d, PID e)
|
|---|
| 1455 | {
|
|---|
| 1456 | ULONG yyrc;
|
|---|
| 1457 | USHORT sel = RestoreOS2FS();
|
|---|
| 1458 |
|
|---|
| 1459 | yyrc = DosWaitChild(a, b, c, d, e);
|
|---|
| 1460 | SetFS(sel);
|
|---|
| 1461 |
|
|---|
| 1462 | return yyrc;
|
|---|
| 1463 | }
|
|---|
| 1464 |
|
|---|
| 1465 | #undef DosWaitChild
|
|---|
| 1466 | #define DosWaitChild _DosWaitChild
|
|---|
| 1467 |
|
|---|
| 1468 | inline ULONG _DosWaitThread(PTID a, ULONG b)
|
|---|
| 1469 | {
|
|---|
| 1470 | ULONG yyrc;
|
|---|
| 1471 | USHORT sel = RestoreOS2FS();
|
|---|
| 1472 |
|
|---|
| 1473 | yyrc = DosWaitThread(a, b);
|
|---|
| 1474 | SetFS(sel);
|
|---|
| 1475 |
|
|---|
| 1476 | return yyrc;
|
|---|
| 1477 | }
|
|---|
| 1478 |
|
|---|
| 1479 | #undef DosWaitThread
|
|---|
| 1480 | #define DosWaitThread _DosWaitThread
|
|---|
| 1481 |
|
|---|
| 1482 | #endif
|
|---|
| 1483 |
|
|---|
| 1484 | #ifdef INCL_DOSSESMGR
|
|---|
| 1485 | inline ULONG _DosQueryAppType(PCSZ a, PULONG b)
|
|---|
| 1486 | {
|
|---|
| 1487 | ULONG yyrc;
|
|---|
| 1488 | USHORT sel = RestoreOS2FS();
|
|---|
| 1489 |
|
|---|
| 1490 | yyrc = DosQueryAppType(a, b);
|
|---|
| 1491 | SetFS(sel);
|
|---|
| 1492 |
|
|---|
| 1493 | return yyrc;
|
|---|
| 1494 | }
|
|---|
| 1495 |
|
|---|
| 1496 | #undef DosQueryAppType
|
|---|
| 1497 | #define DosQueryAppType _DosQueryAppType
|
|---|
| 1498 |
|
|---|
| 1499 | inline ULONG _DosSelectSession(ULONG a)
|
|---|
| 1500 | {
|
|---|
| 1501 | ULONG yyrc;
|
|---|
| 1502 | USHORT sel = RestoreOS2FS();
|
|---|
| 1503 |
|
|---|
| 1504 | yyrc = DosSelectSession(a);
|
|---|
| 1505 | SetFS(sel);
|
|---|
| 1506 |
|
|---|
| 1507 | return yyrc;
|
|---|
| 1508 | }
|
|---|
| 1509 |
|
|---|
| 1510 | #undef DosSelectSession
|
|---|
| 1511 | #define DosSelectSession _DosSelectSession
|
|---|
| 1512 |
|
|---|
| 1513 | inline ULONG _DosSetSession(ULONG a, PSTATUSDATA b)
|
|---|
| 1514 | {
|
|---|
| 1515 | ULONG yyrc;
|
|---|
| 1516 | USHORT sel = RestoreOS2FS();
|
|---|
| 1517 |
|
|---|
| 1518 | yyrc = DosSetSession(a, b);
|
|---|
| 1519 | SetFS(sel);
|
|---|
| 1520 |
|
|---|
| 1521 | return yyrc;
|
|---|
| 1522 | }
|
|---|
| 1523 |
|
|---|
| 1524 | #undef DosSetSession
|
|---|
| 1525 | #define DosSetSession _DosSetSession
|
|---|
| 1526 |
|
|---|
| 1527 | inline ULONG _DosStartSession(PSTARTDATA a, PULONG b, PPID c)
|
|---|
| 1528 | {
|
|---|
| 1529 | ULONG yyrc;
|
|---|
| 1530 | USHORT sel = RestoreOS2FS();
|
|---|
| 1531 |
|
|---|
| 1532 | yyrc = DosStartSession(a, b, c);
|
|---|
| 1533 | SetFS(sel);
|
|---|
| 1534 |
|
|---|
| 1535 | return yyrc;
|
|---|
| 1536 | }
|
|---|
| 1537 |
|
|---|
| 1538 | #undef DosStartSession
|
|---|
| 1539 | #define DosStartSession _DosStartSession
|
|---|
| 1540 |
|
|---|
| 1541 | inline ULONG _DosStopSession(ULONG a, ULONG b)
|
|---|
| 1542 | {
|
|---|
| 1543 | ULONG yyrc;
|
|---|
| 1544 | USHORT sel = RestoreOS2FS();
|
|---|
| 1545 |
|
|---|
| 1546 | yyrc = DosStopSession(a, b);
|
|---|
| 1547 | SetFS(sel);
|
|---|
| 1548 |
|
|---|
| 1549 | return yyrc;
|
|---|
| 1550 | }
|
|---|
| 1551 |
|
|---|
| 1552 | #undef DosStopSession
|
|---|
| 1553 | #define DosStopSession _DosStopSession
|
|---|
| 1554 |
|
|---|
| 1555 | #endif
|
|---|
| 1556 | #ifdef INCL_DOSSEMAPHORES
|
|---|
| 1557 | inline ULONG _DosCloseEventSem(HEV a)
|
|---|
| 1558 | {
|
|---|
| 1559 | ULONG yyrc;
|
|---|
| 1560 | USHORT sel = RestoreOS2FS();
|
|---|
| 1561 |
|
|---|
| 1562 | yyrc = DosCloseEventSem(a);
|
|---|
| 1563 | SetFS(sel);
|
|---|
| 1564 |
|
|---|
| 1565 | return yyrc;
|
|---|
| 1566 | }
|
|---|
| 1567 |
|
|---|
| 1568 | #undef DosCloseEventSem
|
|---|
| 1569 | #define DosCloseEventSem _DosCloseEventSem
|
|---|
| 1570 |
|
|---|
| 1571 | inline ULONG _DosCreateEventSem(PCSZ a, PHEV b, ULONG c, BOOL32 d)
|
|---|
| 1572 | {
|
|---|
| 1573 | ULONG yyrc;
|
|---|
| 1574 | USHORT sel = RestoreOS2FS();
|
|---|
| 1575 |
|
|---|
| 1576 | yyrc = DosCreateEventSem(a, b, c, d);
|
|---|
| 1577 | SetFS(sel);
|
|---|
| 1578 |
|
|---|
| 1579 | return yyrc;
|
|---|
| 1580 | }
|
|---|
| 1581 |
|
|---|
| 1582 | #undef DosCreateEventSem
|
|---|
| 1583 | #define DosCreateEventSem _DosCreateEventSem
|
|---|
| 1584 |
|
|---|
| 1585 | inline ULONG _DosOpenEventSem(PCSZ a, PHEV b)
|
|---|
| 1586 | {
|
|---|
| 1587 | ULONG yyrc;
|
|---|
| 1588 | USHORT sel = RestoreOS2FS();
|
|---|
| 1589 |
|
|---|
| 1590 | yyrc = DosOpenEventSem(a, b);
|
|---|
| 1591 | SetFS(sel);
|
|---|
| 1592 |
|
|---|
| 1593 | return yyrc;
|
|---|
| 1594 | }
|
|---|
| 1595 |
|
|---|
| 1596 | #undef DosOpenEventSem
|
|---|
| 1597 | #define DosOpenEventSem _DosOpenEventSem
|
|---|
| 1598 |
|
|---|
| 1599 | inline ULONG _DosPostEventSem(HEV a)
|
|---|
| 1600 | {
|
|---|
| 1601 | ULONG yyrc;
|
|---|
| 1602 | USHORT sel = RestoreOS2FS();
|
|---|
| 1603 |
|
|---|
| 1604 | yyrc = DosPostEventSem(a);
|
|---|
| 1605 | SetFS(sel);
|
|---|
| 1606 |
|
|---|
| 1607 | return yyrc;
|
|---|
| 1608 | }
|
|---|
| 1609 |
|
|---|
| 1610 | #undef DosPostEventSem
|
|---|
| 1611 | #define DosPostEventSem _DosPostEventSem
|
|---|
| 1612 |
|
|---|
| 1613 | inline ULONG _DosQueryEventSem(HEV a, PULONG b)
|
|---|
| 1614 | {
|
|---|
| 1615 | ULONG yyrc;
|
|---|
| 1616 | USHORT sel = RestoreOS2FS();
|
|---|
| 1617 |
|
|---|
| 1618 | yyrc = DosQueryEventSem(a, b);
|
|---|
| 1619 | SetFS(sel);
|
|---|
| 1620 |
|
|---|
| 1621 | return yyrc;
|
|---|
| 1622 | }
|
|---|
| 1623 |
|
|---|
| 1624 | #undef DosQueryEventSem
|
|---|
| 1625 | #define DosQueryEventSem _DosQueryEventSem
|
|---|
| 1626 |
|
|---|
| 1627 | inline ULONG _DosResetEventSem(HEV a, PULONG b)
|
|---|
| 1628 | {
|
|---|
| 1629 | ULONG yyrc;
|
|---|
| 1630 | USHORT sel = RestoreOS2FS();
|
|---|
| 1631 |
|
|---|
| 1632 | yyrc = DosResetEventSem(a, b);
|
|---|
| 1633 | SetFS(sel);
|
|---|
| 1634 |
|
|---|
| 1635 | return yyrc;
|
|---|
| 1636 | }
|
|---|
| 1637 |
|
|---|
| 1638 | #undef DosResetEventSem
|
|---|
| 1639 | #define DosResetEventSem _DosResetEventSem
|
|---|
| 1640 |
|
|---|
| 1641 | inline ULONG _DosWaitEventSem(HEV a, ULONG b)
|
|---|
| 1642 | {
|
|---|
| 1643 | ULONG yyrc;
|
|---|
| 1644 | USHORT sel = RestoreOS2FS();
|
|---|
| 1645 |
|
|---|
| 1646 | yyrc = DosWaitEventSem(a, b);
|
|---|
| 1647 | SetFS(sel);
|
|---|
| 1648 |
|
|---|
| 1649 | return yyrc;
|
|---|
| 1650 | }
|
|---|
| 1651 |
|
|---|
| 1652 | #undef DosWaitEventSem
|
|---|
| 1653 | #define DosWaitEventSem _DosWaitEventSem
|
|---|
| 1654 |
|
|---|
| 1655 | inline ULONG _DosCloseMutexSem(HMTX a)
|
|---|
| 1656 | {
|
|---|
| 1657 | ULONG yyrc;
|
|---|
| 1658 | USHORT sel = RestoreOS2FS();
|
|---|
| 1659 |
|
|---|
| 1660 | yyrc = DosCloseMutexSem(a);
|
|---|
| 1661 | SetFS(sel);
|
|---|
| 1662 |
|
|---|
| 1663 | return yyrc;
|
|---|
| 1664 | }
|
|---|
| 1665 |
|
|---|
| 1666 | #undef DosCloseMutexSem
|
|---|
| 1667 | #define DosCloseMutexSem _DosCloseMutexSem
|
|---|
| 1668 |
|
|---|
| 1669 | inline ULONG _DosCreateMutexSem(PCSZ a, PHMTX b, ULONG c, BOOL32 d)
|
|---|
| 1670 | {
|
|---|
| 1671 | ULONG yyrc;
|
|---|
| 1672 | USHORT sel = RestoreOS2FS();
|
|---|
| 1673 |
|
|---|
| 1674 | yyrc = DosCreateMutexSem(a, b, c, d);
|
|---|
| 1675 | SetFS(sel);
|
|---|
| 1676 |
|
|---|
| 1677 | return yyrc;
|
|---|
| 1678 | }
|
|---|
| 1679 |
|
|---|
| 1680 | #undef DosCreateMutexSem
|
|---|
| 1681 | #define DosCreateMutexSem _DosCreateMutexSem
|
|---|
| 1682 |
|
|---|
| 1683 | inline ULONG _DosOpenMutexSem(PCSZ a, PHMTX b)
|
|---|
| 1684 | {
|
|---|
| 1685 | ULONG yyrc;
|
|---|
| 1686 | USHORT sel = RestoreOS2FS();
|
|---|
| 1687 |
|
|---|
| 1688 | yyrc = DosOpenMutexSem(a, b);
|
|---|
| 1689 | SetFS(sel);
|
|---|
| 1690 |
|
|---|
| 1691 | return yyrc;
|
|---|
| 1692 | }
|
|---|
| 1693 |
|
|---|
| 1694 | #undef DosOpenMutexSem
|
|---|
| 1695 | #define DosOpenMutexSem _DosOpenMutexSem
|
|---|
| 1696 |
|
|---|
| 1697 | inline ULONG _DosQueryMutexSem(HMTX a, PPID b, PTID c, PULONG d)
|
|---|
| 1698 | {
|
|---|
| 1699 | ULONG yyrc;
|
|---|
| 1700 | USHORT sel = RestoreOS2FS();
|
|---|
| 1701 |
|
|---|
| 1702 | yyrc = DosQueryMutexSem(a, b, c, d);
|
|---|
| 1703 | SetFS(sel);
|
|---|
| 1704 |
|
|---|
| 1705 | return yyrc;
|
|---|
| 1706 | }
|
|---|
| 1707 |
|
|---|
| 1708 | #undef DosQueryMutexSem
|
|---|
| 1709 | #define DosQueryMutexSem _DosQueryMutexSem
|
|---|
| 1710 |
|
|---|
| 1711 | inline ULONG _DosReleaseMutexSem(HMTX a)
|
|---|
| 1712 | {
|
|---|
| 1713 | ULONG yyrc;
|
|---|
| 1714 | USHORT sel = RestoreOS2FS();
|
|---|
| 1715 |
|
|---|
| 1716 | yyrc = DosReleaseMutexSem(a);
|
|---|
| 1717 | SetFS(sel);
|
|---|
| 1718 |
|
|---|
| 1719 | return yyrc;
|
|---|
| 1720 | }
|
|---|
| 1721 |
|
|---|
| 1722 | #undef DosReleaseMutexSem
|
|---|
| 1723 | #define DosReleaseMutexSem _DosReleaseMutexSem
|
|---|
| 1724 |
|
|---|
| 1725 | inline ULONG _DosRequestMutexSem(HMTX a, ULONG b)
|
|---|
| 1726 | {
|
|---|
| 1727 | ULONG yyrc;
|
|---|
| 1728 | USHORT sel = RestoreOS2FS();
|
|---|
| 1729 |
|
|---|
| 1730 | yyrc = DosRequestMutexSem(a, b);
|
|---|
| 1731 | SetFS(sel);
|
|---|
| 1732 |
|
|---|
| 1733 | return yyrc;
|
|---|
| 1734 | }
|
|---|
| 1735 |
|
|---|
| 1736 | #undef DosRequestMutexSem
|
|---|
| 1737 | #define DosRequestMutexSem _DosRequestMutexSem
|
|---|
| 1738 |
|
|---|
| 1739 | inline ULONG _DosAddMuxWaitSem(HMUX a, PSEMRECORD b)
|
|---|
| 1740 | {
|
|---|
| 1741 | ULONG yyrc;
|
|---|
| 1742 | USHORT sel = RestoreOS2FS();
|
|---|
| 1743 |
|
|---|
| 1744 | yyrc = DosAddMuxWaitSem(a, b);
|
|---|
| 1745 | SetFS(sel);
|
|---|
| 1746 |
|
|---|
| 1747 | return yyrc;
|
|---|
| 1748 | }
|
|---|
| 1749 |
|
|---|
| 1750 | #undef DosAddMuxWaitSem
|
|---|
| 1751 | #define DosAddMuxWaitSem _DosAddMuxWaitSem
|
|---|
| 1752 |
|
|---|
| 1753 | inline ULONG _DosCloseMuxWaitSem(HMUX a)
|
|---|
| 1754 | {
|
|---|
| 1755 | ULONG yyrc;
|
|---|
| 1756 | USHORT sel = RestoreOS2FS();
|
|---|
| 1757 |
|
|---|
| 1758 | yyrc = DosCloseMuxWaitSem(a);
|
|---|
| 1759 | SetFS(sel);
|
|---|
| 1760 |
|
|---|
| 1761 | return yyrc;
|
|---|
| 1762 | }
|
|---|
| 1763 |
|
|---|
| 1764 | #undef DosCloseMuxWaitSem
|
|---|
| 1765 | #define DosCloseMuxWaitSem _DosCloseMuxWaitSem
|
|---|
| 1766 |
|
|---|
| 1767 | inline ULONG _DosCreateMuxWaitSem(PCSZ a, PHMUX b, ULONG c, PSEMRECORD d, ULONG e)
|
|---|
| 1768 | {
|
|---|
| 1769 | ULONG yyrc;
|
|---|
| 1770 | USHORT sel = RestoreOS2FS();
|
|---|
| 1771 |
|
|---|
| 1772 | yyrc = DosCreateMuxWaitSem(a, b, c, d, e);
|
|---|
| 1773 | SetFS(sel);
|
|---|
| 1774 |
|
|---|
| 1775 | return yyrc;
|
|---|
| 1776 | }
|
|---|
| 1777 |
|
|---|
| 1778 | #undef DosCreateMuxWaitSem
|
|---|
| 1779 | #define DosCreateMuxWaitSem _DosCreateMuxWaitSem
|
|---|
| 1780 |
|
|---|
| 1781 | inline ULONG _DosDeleteMuxWaitSem(HMUX a, HSEM b)
|
|---|
| 1782 | {
|
|---|
| 1783 | ULONG yyrc;
|
|---|
| 1784 | USHORT sel = RestoreOS2FS();
|
|---|
| 1785 |
|
|---|
| 1786 | yyrc = DosDeleteMuxWaitSem(a, b);
|
|---|
| 1787 | SetFS(sel);
|
|---|
| 1788 |
|
|---|
| 1789 | return yyrc;
|
|---|
| 1790 | }
|
|---|
| 1791 |
|
|---|
| 1792 | #undef DosDeleteMuxWaitSem
|
|---|
| 1793 | #define DosDeleteMuxWaitSem _DosDeleteMuxWaitSem
|
|---|
| 1794 |
|
|---|
| 1795 | inline ULONG _DosOpenMuxWaitSem(PCSZ a, PHMUX b)
|
|---|
| 1796 | {
|
|---|
| 1797 | ULONG yyrc;
|
|---|
| 1798 | USHORT sel = RestoreOS2FS();
|
|---|
| 1799 |
|
|---|
| 1800 | yyrc = DosOpenMuxWaitSem(a, b);
|
|---|
| 1801 | SetFS(sel);
|
|---|
| 1802 |
|
|---|
| 1803 | return yyrc;
|
|---|
| 1804 | }
|
|---|
| 1805 |
|
|---|
| 1806 | #undef DosOpenMuxWaitSem
|
|---|
| 1807 | #define DosOpenMuxWaitSem _DosOpenMuxWaitSem
|
|---|
| 1808 |
|
|---|
| 1809 | inline ULONG _DosQueryMuxWaitSem(HMUX a, PULONG b, PSEMRECORD c, PULONG d)
|
|---|
| 1810 | {
|
|---|
| 1811 | ULONG yyrc;
|
|---|
| 1812 | USHORT sel = RestoreOS2FS();
|
|---|
| 1813 |
|
|---|
| 1814 | yyrc = DosQueryMuxWaitSem(a, b, c, d);
|
|---|
| 1815 | SetFS(sel);
|
|---|
| 1816 |
|
|---|
| 1817 | return yyrc;
|
|---|
| 1818 | }
|
|---|
| 1819 |
|
|---|
| 1820 | #undef DosQueryMuxWaitSem
|
|---|
| 1821 | #define DosQueryMuxWaitSem _DosQueryMuxWaitSem
|
|---|
| 1822 |
|
|---|
| 1823 | inline ULONG _DosWaitMuxWaitSem(HMUX a, ULONG b, PULONG c)
|
|---|
| 1824 | {
|
|---|
| 1825 | ULONG yyrc;
|
|---|
| 1826 | USHORT sel = RestoreOS2FS();
|
|---|
| 1827 |
|
|---|
| 1828 | yyrc = DosWaitMuxWaitSem(a, b, c);
|
|---|
| 1829 | SetFS(sel);
|
|---|
| 1830 |
|
|---|
| 1831 | return yyrc;
|
|---|
| 1832 | }
|
|---|
| 1833 |
|
|---|
| 1834 | #undef DosWaitMuxWaitSem
|
|---|
| 1835 | #define DosWaitMuxWaitSem _DosWaitMuxWaitSem
|
|---|
| 1836 |
|
|---|
| 1837 | #endif
|
|---|
| 1838 | #ifdef INCL_DOSNMPIPES
|
|---|
| 1839 | inline ULONG _DosCallNPipe(PCSZ a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g)
|
|---|
| 1840 | {
|
|---|
| 1841 | ULONG yyrc;
|
|---|
| 1842 | USHORT sel = RestoreOS2FS();
|
|---|
| 1843 |
|
|---|
| 1844 | yyrc = DosCallNPipe(a, b, c, d, e, f, g);
|
|---|
| 1845 | SetFS(sel);
|
|---|
| 1846 |
|
|---|
| 1847 | return yyrc;
|
|---|
| 1848 | }
|
|---|
| 1849 |
|
|---|
| 1850 | #undef DosCallNPipe
|
|---|
| 1851 | #define DosCallNPipe _DosCallNPipe
|
|---|
| 1852 |
|
|---|
| 1853 | inline ULONG _DosConnectNPipe(HPIPE a)
|
|---|
| 1854 | {
|
|---|
| 1855 | ULONG yyrc;
|
|---|
| 1856 | USHORT sel = RestoreOS2FS();
|
|---|
| 1857 |
|
|---|
| 1858 | yyrc = DosConnectNPipe(a);
|
|---|
| 1859 | SetFS(sel);
|
|---|
| 1860 |
|
|---|
| 1861 | return yyrc;
|
|---|
| 1862 | }
|
|---|
| 1863 |
|
|---|
| 1864 | #undef DosConnectNPipe
|
|---|
| 1865 | #define DosConnectNPipe _DosConnectNPipe
|
|---|
| 1866 |
|
|---|
| 1867 | inline ULONG _DosCreateNPipe(PCSZ a, PHPIPE b, ULONG c, ULONG d, ULONG e, ULONG f, ULONG g)
|
|---|
| 1868 | {
|
|---|
| 1869 | ULONG yyrc;
|
|---|
| 1870 | USHORT sel = RestoreOS2FS();
|
|---|
| 1871 |
|
|---|
| 1872 | yyrc = DosCreateNPipe(a, b, c, d, e, f, g);
|
|---|
| 1873 | SetFS(sel);
|
|---|
| 1874 |
|
|---|
| 1875 | return yyrc;
|
|---|
| 1876 | }
|
|---|
| 1877 |
|
|---|
| 1878 | #undef DosCreateNPipe
|
|---|
| 1879 | #define DosCreateNPipe _DosCreateNPipe
|
|---|
| 1880 |
|
|---|
| 1881 | inline ULONG _DosDisConnectNPipe(HPIPE a)
|
|---|
| 1882 | {
|
|---|
| 1883 | ULONG yyrc;
|
|---|
| 1884 | USHORT sel = RestoreOS2FS();
|
|---|
| 1885 |
|
|---|
| 1886 | yyrc = DosDisConnectNPipe(a);
|
|---|
| 1887 | SetFS(sel);
|
|---|
| 1888 |
|
|---|
| 1889 | return yyrc;
|
|---|
| 1890 | }
|
|---|
| 1891 |
|
|---|
| 1892 | #undef DosDisConnectNPipe
|
|---|
| 1893 | #define DosDisConnectNPipe _DosDisConnectNPipe
|
|---|
| 1894 |
|
|---|
| 1895 | inline ULONG _DosPeekNPipe(HPIPE a, PVOID b, ULONG c, PULONG d, PAVAILDATA e, PULONG f)
|
|---|
| 1896 | {
|
|---|
| 1897 | ULONG yyrc;
|
|---|
| 1898 | USHORT sel = RestoreOS2FS();
|
|---|
| 1899 |
|
|---|
| 1900 | yyrc = DosPeekNPipe(a, b, c, d, e, f);
|
|---|
| 1901 | SetFS(sel);
|
|---|
| 1902 |
|
|---|
| 1903 | return yyrc;
|
|---|
| 1904 | }
|
|---|
| 1905 |
|
|---|
| 1906 | #undef DosPeekNPipe
|
|---|
| 1907 | #define DosPeekNPipe _DosPeekNPipe
|
|---|
| 1908 |
|
|---|
| 1909 | inline ULONG _DosQueryNPHState(HPIPE a, PULONG b)
|
|---|
| 1910 | {
|
|---|
| 1911 | ULONG yyrc;
|
|---|
| 1912 | USHORT sel = RestoreOS2FS();
|
|---|
| 1913 |
|
|---|
| 1914 | yyrc = DosQueryNPHState(a, b);
|
|---|
| 1915 | SetFS(sel);
|
|---|
| 1916 |
|
|---|
| 1917 | return yyrc;
|
|---|
| 1918 | }
|
|---|
| 1919 |
|
|---|
| 1920 | #undef DosQueryNPHState
|
|---|
| 1921 | #define DosQueryNPHState _DosQueryNPHState
|
|---|
| 1922 |
|
|---|
| 1923 | inline ULONG _DosQueryNPipeInfo(HPIPE a, ULONG b, PVOID c, ULONG d)
|
|---|
| 1924 | {
|
|---|
| 1925 | ULONG yyrc;
|
|---|
| 1926 | USHORT sel = RestoreOS2FS();
|
|---|
| 1927 |
|
|---|
| 1928 | yyrc = DosQueryNPipeInfo(a, b, c, d);
|
|---|
| 1929 | SetFS(sel);
|
|---|
| 1930 |
|
|---|
| 1931 | return yyrc;
|
|---|
| 1932 | }
|
|---|
| 1933 |
|
|---|
| 1934 | #undef DosQueryNPipeInfo
|
|---|
| 1935 | #define DosQueryNPipeInfo _DosQueryNPipeInfo
|
|---|
| 1936 |
|
|---|
| 1937 | inline ULONG _DosQueryNPipeSemState(HSEM a, PPIPESEMSTATE b, ULONG c)
|
|---|
| 1938 | {
|
|---|
| 1939 | ULONG yyrc;
|
|---|
| 1940 | USHORT sel = RestoreOS2FS();
|
|---|
| 1941 |
|
|---|
| 1942 | yyrc = DosQueryNPipeSemState(a, b, c);
|
|---|
| 1943 | SetFS(sel);
|
|---|
| 1944 |
|
|---|
| 1945 | return yyrc;
|
|---|
| 1946 | }
|
|---|
| 1947 |
|
|---|
| 1948 | #undef DosQueryNPipeSemState
|
|---|
| 1949 | #define DosQueryNPipeSemState _DosQueryNPipeSemState
|
|---|
| 1950 |
|
|---|
| 1951 | //AH: Different definition in 4.5 toolkit headers!!!
|
|---|
| 1952 | //we don't need it so far, so let's just remove it for now
|
|---|
| 1953 | #if 0
|
|---|
| 1954 | inline ULONG _DosRawReadNPipe(PCSZ a, ULONG b, PULONG c, PVOID d)
|
|---|
| 1955 | {
|
|---|
| 1956 | ULONG yyrc;
|
|---|
| 1957 | USHORT sel = RestoreOS2FS();
|
|---|
| 1958 |
|
|---|
| 1959 | yyrc = DosRawReadNPipe(a, b, c, d);
|
|---|
| 1960 | SetFS(sel);
|
|---|
| 1961 |
|
|---|
| 1962 | return yyrc;
|
|---|
| 1963 | }
|
|---|
| 1964 |
|
|---|
| 1965 | #undef DosRawReadNPipe
|
|---|
| 1966 | #define DosRawReadNPipe _DosRawReadNPipe
|
|---|
| 1967 |
|
|---|
| 1968 | inline ULONG _DosRawWriteNPipe(PCSZ a, ULONG b)
|
|---|
| 1969 | {
|
|---|
| 1970 | ULONG yyrc;
|
|---|
| 1971 | USHORT sel = RestoreOS2FS();
|
|---|
| 1972 |
|
|---|
| 1973 | yyrc = DosRawWriteNPipe(a, b);
|
|---|
| 1974 | SetFS(sel);
|
|---|
| 1975 |
|
|---|
| 1976 | return yyrc;
|
|---|
| 1977 | }
|
|---|
| 1978 |
|
|---|
| 1979 | #undef DosRawWriteNPipe
|
|---|
| 1980 | #define DosRawWriteNPipe _DosRawWriteNPipe
|
|---|
| 1981 |
|
|---|
| 1982 | #endif
|
|---|
| 1983 |
|
|---|
| 1984 | inline ULONG _DosSetNPHState(HPIPE a, ULONG b)
|
|---|
| 1985 | {
|
|---|
| 1986 | ULONG yyrc;
|
|---|
| 1987 | USHORT sel = RestoreOS2FS();
|
|---|
| 1988 |
|
|---|
| 1989 | yyrc = DosSetNPHState(a, b);
|
|---|
| 1990 | SetFS(sel);
|
|---|
| 1991 |
|
|---|
| 1992 | return yyrc;
|
|---|
| 1993 | }
|
|---|
| 1994 |
|
|---|
| 1995 | #undef DosSetNPHState
|
|---|
| 1996 | #define DosSetNPHState _DosSetNPHState
|
|---|
| 1997 |
|
|---|
| 1998 | inline ULONG _DosSetNPipeSem(HPIPE a, HSEM b, ULONG c)
|
|---|
| 1999 | {
|
|---|
| 2000 | ULONG yyrc;
|
|---|
| 2001 | USHORT sel = RestoreOS2FS();
|
|---|
| 2002 |
|
|---|
| 2003 | yyrc = DosSetNPipeSem(a, b, c);
|
|---|
| 2004 | SetFS(sel);
|
|---|
| 2005 |
|
|---|
| 2006 | return yyrc;
|
|---|
| 2007 | }
|
|---|
| 2008 |
|
|---|
| 2009 | #undef DosSetNPipeSem
|
|---|
| 2010 | #define DosSetNPipeSem _DosSetNPipeSem
|
|---|
| 2011 |
|
|---|
| 2012 | inline ULONG _DosTransactNPipe(HPIPE a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f)
|
|---|
| 2013 | {
|
|---|
| 2014 | ULONG yyrc;
|
|---|
| 2015 | USHORT sel = RestoreOS2FS();
|
|---|
| 2016 |
|
|---|
| 2017 | yyrc = DosTransactNPipe(a, b, c, d, e, f);
|
|---|
| 2018 | SetFS(sel);
|
|---|
| 2019 |
|
|---|
| 2020 | return yyrc;
|
|---|
| 2021 | }
|
|---|
| 2022 |
|
|---|
| 2023 | #undef DosTransactNPipe
|
|---|
| 2024 | #define DosTransactNPipe _DosTransactNPipe
|
|---|
| 2025 |
|
|---|
| 2026 | inline ULONG _DosWaitNPipe(PCSZ a, ULONG b)
|
|---|
| 2027 | {
|
|---|
| 2028 | ULONG yyrc;
|
|---|
| 2029 | USHORT sel = RestoreOS2FS();
|
|---|
| 2030 |
|
|---|
| 2031 | yyrc = DosWaitNPipe(a, b);
|
|---|
| 2032 | SetFS(sel);
|
|---|
| 2033 |
|
|---|
| 2034 | return yyrc;
|
|---|
| 2035 | }
|
|---|
| 2036 |
|
|---|
| 2037 | #undef DosWaitNPipe
|
|---|
| 2038 | #define DosWaitNPipe _DosWaitNPipe
|
|---|
| 2039 |
|
|---|
| 2040 | inline ULONG _DosCreatePipe(PHFILE a, PHFILE b, ULONG c)
|
|---|
| 2041 | {
|
|---|
| 2042 | ULONG yyrc;
|
|---|
| 2043 | USHORT sel = RestoreOS2FS();
|
|---|
| 2044 |
|
|---|
| 2045 | yyrc = DosCreatePipe(a, b, c);
|
|---|
| 2046 | SetFS(sel);
|
|---|
| 2047 |
|
|---|
| 2048 | return yyrc;
|
|---|
| 2049 | }
|
|---|
| 2050 |
|
|---|
| 2051 | #undef DosCreatePipe
|
|---|
| 2052 | #define DosCreatePipe _DosCreatePipe
|
|---|
| 2053 |
|
|---|
| 2054 | #endif
|
|---|
| 2055 | #ifdef INCL_DOSQUEUES
|
|---|
| 2056 | inline ULONG _DosCloseQueue(HQUEUE a)
|
|---|
| 2057 | {
|
|---|
| 2058 | ULONG yyrc;
|
|---|
| 2059 | USHORT sel = RestoreOS2FS();
|
|---|
| 2060 |
|
|---|
| 2061 | yyrc = DosCloseQueue(a);
|
|---|
| 2062 | SetFS(sel);
|
|---|
| 2063 |
|
|---|
| 2064 | return yyrc;
|
|---|
| 2065 | }
|
|---|
| 2066 |
|
|---|
| 2067 | #undef DosCloseQueue
|
|---|
| 2068 | #define DosCloseQueue _DosCloseQueue
|
|---|
| 2069 |
|
|---|
| 2070 | inline ULONG _DosCreateQueue(PHQUEUE a, ULONG b, PCSZ c)
|
|---|
| 2071 | {
|
|---|
| 2072 | ULONG yyrc;
|
|---|
| 2073 | USHORT sel = RestoreOS2FS();
|
|---|
| 2074 |
|
|---|
| 2075 | yyrc = DosCreateQueue(a, b, c);
|
|---|
| 2076 | SetFS(sel);
|
|---|
| 2077 |
|
|---|
| 2078 | return yyrc;
|
|---|
| 2079 | }
|
|---|
| 2080 |
|
|---|
| 2081 | #undef DosCreateQueue
|
|---|
| 2082 | #define DosCreateQueue _DosCreateQueue
|
|---|
| 2083 |
|
|---|
| 2084 | inline ULONG _DosOpenQueue(PPID a, PHQUEUE b, PCSZ c)
|
|---|
| 2085 | {
|
|---|
| 2086 | ULONG yyrc;
|
|---|
| 2087 | USHORT sel = RestoreOS2FS();
|
|---|
| 2088 |
|
|---|
| 2089 | yyrc = DosOpenQueue(a, b, c);
|
|---|
| 2090 | SetFS(sel);
|
|---|
| 2091 |
|
|---|
| 2092 | return yyrc;
|
|---|
| 2093 | }
|
|---|
| 2094 |
|
|---|
| 2095 | #undef DosOpenQueue
|
|---|
| 2096 | #define DosOpenQueue _DosOpenQueue
|
|---|
| 2097 |
|
|---|
| 2098 | inline ULONG _DosPeekQueue(HQUEUE a, PREQUESTDATA b, PULONG c, PPVOID d, PULONG e, BOOL32 f, PBYTE g, HEV h)
|
|---|
| 2099 | {
|
|---|
| 2100 | ULONG yyrc;
|
|---|
| 2101 | USHORT sel = RestoreOS2FS();
|
|---|
| 2102 |
|
|---|
| 2103 | yyrc = DosPeekQueue(a, b, c, d, e, f, g, h);
|
|---|
| 2104 | SetFS(sel);
|
|---|
| 2105 |
|
|---|
| 2106 | return yyrc;
|
|---|
| 2107 | }
|
|---|
| 2108 |
|
|---|
| 2109 | #undef DosPeekQueue
|
|---|
| 2110 | #define DosPeekQueue _DosPeekQueue
|
|---|
| 2111 |
|
|---|
| 2112 | inline ULONG _DosPurgeQueue(HQUEUE a)
|
|---|
| 2113 | {
|
|---|
| 2114 | ULONG yyrc;
|
|---|
| 2115 | USHORT sel = RestoreOS2FS();
|
|---|
| 2116 |
|
|---|
| 2117 | yyrc = DosPurgeQueue(a);
|
|---|
| 2118 | SetFS(sel);
|
|---|
| 2119 |
|
|---|
| 2120 | return yyrc;
|
|---|
| 2121 | }
|
|---|
| 2122 |
|
|---|
| 2123 | #undef DosPurgeQueue
|
|---|
| 2124 | #define DosPurgeQueue _DosPurgeQueue
|
|---|
| 2125 |
|
|---|
| 2126 | inline ULONG _DosQueryQueue(HQUEUE a, PULONG b)
|
|---|
| 2127 | {
|
|---|
| 2128 | ULONG yyrc;
|
|---|
| 2129 | USHORT sel = RestoreOS2FS();
|
|---|
| 2130 |
|
|---|
| 2131 | yyrc = DosQueryQueue(a, b);
|
|---|
| 2132 | SetFS(sel);
|
|---|
| 2133 |
|
|---|
| 2134 | return yyrc;
|
|---|
| 2135 | }
|
|---|
| 2136 |
|
|---|
| 2137 | #undef DosQueryQueue
|
|---|
| 2138 | #define DosQueryQueue _DosQueryQueue
|
|---|
| 2139 |
|
|---|
| 2140 | inline ULONG _DosReadQueue(HQUEUE a, PREQUESTDATA b, PULONG c, PPVOID d, ULONG e, BOOL32 f, PBYTE g, HEV h)
|
|---|
| 2141 | {
|
|---|
| 2142 | ULONG yyrc;
|
|---|
| 2143 | USHORT sel = RestoreOS2FS();
|
|---|
| 2144 |
|
|---|
| 2145 | yyrc = DosReadQueue(a, b, c, d, e, f, g, h);
|
|---|
| 2146 | SetFS(sel);
|
|---|
| 2147 |
|
|---|
| 2148 | return yyrc;
|
|---|
| 2149 | }
|
|---|
| 2150 |
|
|---|
| 2151 | #undef DosReadQueue
|
|---|
| 2152 | #define DosReadQueue _DosReadQueue
|
|---|
| 2153 |
|
|---|
| 2154 | inline ULONG _DosWriteQueue(HQUEUE a, ULONG b, ULONG c, PVOID d, ULONG e)
|
|---|
| 2155 | {
|
|---|
| 2156 | ULONG yyrc;
|
|---|
| 2157 | USHORT sel = RestoreOS2FS();
|
|---|
| 2158 |
|
|---|
| 2159 | yyrc = DosWriteQueue(a, b, c, d, e);
|
|---|
| 2160 | SetFS(sel);
|
|---|
| 2161 |
|
|---|
| 2162 | return yyrc;
|
|---|
| 2163 | }
|
|---|
| 2164 |
|
|---|
| 2165 | #undef DosWriteQueue
|
|---|
| 2166 | #define DosWriteQueue _DosWriteQueue
|
|---|
| 2167 |
|
|---|
| 2168 | #endif
|
|---|
| 2169 | #ifdef INCL_DOSEXCEPTIONS
|
|---|
| 2170 | inline ULONG _DosAcknowledgeSignalException(ULONG a)
|
|---|
| 2171 | {
|
|---|
| 2172 | ULONG yyrc;
|
|---|
| 2173 | USHORT sel = RestoreOS2FS();
|
|---|
| 2174 |
|
|---|
| 2175 | yyrc = DosAcknowledgeSignalException(a);
|
|---|
| 2176 | SetFS(sel);
|
|---|
| 2177 |
|
|---|
| 2178 | return yyrc;
|
|---|
| 2179 | }
|
|---|
| 2180 |
|
|---|
| 2181 | #undef DosAcknowledgeSignalException
|
|---|
| 2182 | #define DosAcknowledgeSignalException _DosAcknowledgeSignalException
|
|---|
| 2183 |
|
|---|
| 2184 | inline ULONG _DosEnterMustComplete(PULONG a)
|
|---|
| 2185 | {
|
|---|
| 2186 | ULONG yyrc;
|
|---|
| 2187 | USHORT sel = RestoreOS2FS();
|
|---|
| 2188 |
|
|---|
| 2189 | yyrc = DosEnterMustComplete(a);
|
|---|
| 2190 | SetFS(sel);
|
|---|
| 2191 |
|
|---|
| 2192 | return yyrc;
|
|---|
| 2193 | }
|
|---|
| 2194 |
|
|---|
| 2195 | #undef DosEnterMustComplete
|
|---|
| 2196 | #define DosEnterMustComplete _DosEnterMustComplete
|
|---|
| 2197 |
|
|---|
| 2198 | inline ULONG _DosExitMustComplete(PULONG a)
|
|---|
| 2199 | {
|
|---|
| 2200 | ULONG yyrc;
|
|---|
| 2201 | USHORT sel = RestoreOS2FS();
|
|---|
| 2202 |
|
|---|
| 2203 | yyrc = DosExitMustComplete(a);
|
|---|
| 2204 | SetFS(sel);
|
|---|
| 2205 |
|
|---|
| 2206 | return yyrc;
|
|---|
| 2207 | }
|
|---|
| 2208 |
|
|---|
| 2209 | #undef DosExitMustComplete
|
|---|
| 2210 | #define DosExitMustComplete _DosExitMustComplete
|
|---|
| 2211 |
|
|---|
| 2212 | inline ULONG _DosQueryThreadContext(TID a, ULONG b, PCONTEXTRECORD c)
|
|---|
| 2213 | {
|
|---|
| 2214 | ULONG yyrc;
|
|---|
| 2215 | USHORT sel = RestoreOS2FS();
|
|---|
| 2216 |
|
|---|
| 2217 | yyrc = DosQueryThreadContext(a, b, c);
|
|---|
| 2218 | SetFS(sel);
|
|---|
| 2219 |
|
|---|
| 2220 | return yyrc;
|
|---|
| 2221 | }
|
|---|
| 2222 |
|
|---|
| 2223 | #undef DosQueryThreadContext
|
|---|
| 2224 | #define DosQueryThreadContext _DosQueryThreadContext
|
|---|
| 2225 |
|
|---|
| 2226 | inline ULONG _DosRaiseException(PEXCEPTIONREPORTRECORD a)
|
|---|
| 2227 | {
|
|---|
| 2228 | ULONG yyrc;
|
|---|
| 2229 | USHORT sel = RestoreOS2FS();
|
|---|
| 2230 |
|
|---|
| 2231 | yyrc = DosRaiseException(a);
|
|---|
| 2232 | SetFS(sel);
|
|---|
| 2233 |
|
|---|
| 2234 | return yyrc;
|
|---|
| 2235 | }
|
|---|
| 2236 |
|
|---|
| 2237 | #undef DosRaiseException
|
|---|
| 2238 | #define DosRaiseException _DosRaiseException
|
|---|
| 2239 |
|
|---|
| 2240 | inline ULONG _DosSendSignalException(PID a, ULONG b)
|
|---|
| 2241 | {
|
|---|
| 2242 | ULONG yyrc;
|
|---|
| 2243 | USHORT sel = RestoreOS2FS();
|
|---|
| 2244 |
|
|---|
| 2245 | yyrc = DosSendSignalException(a, b);
|
|---|
| 2246 | SetFS(sel);
|
|---|
| 2247 |
|
|---|
| 2248 | return yyrc;
|
|---|
| 2249 | }
|
|---|
| 2250 |
|
|---|
| 2251 | #undef DosSendSignalException
|
|---|
| 2252 | #define DosSendSignalException _DosSendSignalException
|
|---|
| 2253 |
|
|---|
| 2254 | inline ULONG _DosSetExceptionHandler(PEXCEPTIONREGISTRATIONRECORD a)
|
|---|
| 2255 | {
|
|---|
| 2256 | ULONG yyrc;
|
|---|
| 2257 | USHORT sel = RestoreOS2FS();
|
|---|
| 2258 |
|
|---|
| 2259 | yyrc = DosSetExceptionHandler(a);
|
|---|
| 2260 | SetFS(sel);
|
|---|
| 2261 |
|
|---|
| 2262 | return yyrc;
|
|---|
| 2263 | }
|
|---|
| 2264 |
|
|---|
| 2265 | #undef DosSetExceptionHandler
|
|---|
| 2266 | #define DosSetExceptionHandler _DosSetExceptionHandler
|
|---|
| 2267 |
|
|---|
| 2268 | inline ULONG _DosSetSignalExceptionFocus(BOOL32 a, PULONG b)
|
|---|
| 2269 | {
|
|---|
| 2270 | ULONG yyrc;
|
|---|
| 2271 | USHORT sel = RestoreOS2FS();
|
|---|
| 2272 |
|
|---|
| 2273 | yyrc = DosSetSignalExceptionFocus(a, b);
|
|---|
| 2274 | SetFS(sel);
|
|---|
| 2275 |
|
|---|
| 2276 | return yyrc;
|
|---|
| 2277 | }
|
|---|
| 2278 |
|
|---|
| 2279 | #undef DosSetSignalExceptionFocus
|
|---|
| 2280 | #define DosSetSignalExceptionFocus _DosSetSignalExceptionFocus
|
|---|
| 2281 |
|
|---|
| 2282 | inline ULONG _DosUnsetExceptionHandler(PEXCEPTIONREGISTRATIONRECORD a)
|
|---|
| 2283 | {
|
|---|
| 2284 | ULONG yyrc;
|
|---|
| 2285 | USHORT sel = RestoreOS2FS();
|
|---|
| 2286 |
|
|---|
| 2287 | yyrc = DosUnsetExceptionHandler(a);
|
|---|
| 2288 | SetFS(sel);
|
|---|
| 2289 |
|
|---|
| 2290 | return yyrc;
|
|---|
| 2291 | }
|
|---|
| 2292 |
|
|---|
| 2293 | #undef DosUnsetExceptionHandler
|
|---|
| 2294 | #define DosUnsetExceptionHandler _DosUnsetExceptionHandler
|
|---|
| 2295 |
|
|---|
| 2296 | inline ULONG _DosUnwindException(PEXCEPTIONREGISTRATIONRECORD a, PVOID b, PEXCEPTIONREPORTRECORD c)
|
|---|
| 2297 | {
|
|---|
| 2298 | ULONG yyrc;
|
|---|
| 2299 | USHORT sel = RestoreOS2FS();
|
|---|
| 2300 |
|
|---|
| 2301 | yyrc = DosUnwindException(a, b, c);
|
|---|
| 2302 | SetFS(sel);
|
|---|
| 2303 |
|
|---|
| 2304 | return yyrc;
|
|---|
| 2305 | }
|
|---|
| 2306 |
|
|---|
| 2307 | #undef DosUnwindException
|
|---|
| 2308 | #define DosUnwindException _DosUnwindException
|
|---|
| 2309 |
|
|---|
| 2310 | #endif
|
|---|
| 2311 | #ifdef INCL_DOSMISC
|
|---|
| 2312 | inline ULONG _DosQuerySysInfo(ULONG a, ULONG b, PVOID c, ULONG d)
|
|---|
| 2313 | {
|
|---|
| 2314 | ULONG yyrc;
|
|---|
| 2315 | USHORT sel = RestoreOS2FS();
|
|---|
| 2316 |
|
|---|
| 2317 | yyrc = DosQuerySysInfo(a, b, c, d);
|
|---|
| 2318 | SetFS(sel);
|
|---|
| 2319 |
|
|---|
| 2320 | return yyrc;
|
|---|
| 2321 | }
|
|---|
| 2322 |
|
|---|
| 2323 | #undef DosQuerySysInfo
|
|---|
| 2324 | #define DosQuerySysInfo _DosQuerySysInfo
|
|---|
| 2325 |
|
|---|
| 2326 | inline ULONG _DosScanEnv(PCSZ a, PCSZ *b)
|
|---|
| 2327 | {
|
|---|
| 2328 | ULONG yyrc;
|
|---|
| 2329 | USHORT sel = RestoreOS2FS();
|
|---|
| 2330 |
|
|---|
| 2331 | yyrc = DosScanEnv(a, b);
|
|---|
| 2332 | SetFS(sel);
|
|---|
| 2333 |
|
|---|
| 2334 | return yyrc;
|
|---|
| 2335 | }
|
|---|
| 2336 |
|
|---|
| 2337 | #undef DosScanEnv
|
|---|
| 2338 | #define DosScanEnv _DosScanEnv
|
|---|
| 2339 |
|
|---|
| 2340 | inline ULONG _DosQueryRASInfo(ULONG a, PPVOID b)
|
|---|
| 2341 | {
|
|---|
| 2342 | ULONG yyrc;
|
|---|
| 2343 | USHORT sel = RestoreOS2FS();
|
|---|
| 2344 |
|
|---|
| 2345 | yyrc = DosQueryRASInfo(a, b);
|
|---|
| 2346 | SetFS(sel);
|
|---|
| 2347 |
|
|---|
| 2348 | return yyrc;
|
|---|
| 2349 | }
|
|---|
| 2350 |
|
|---|
| 2351 | #undef DosQueryRASInfo
|
|---|
| 2352 | #define DosQueryRASInfo _DosQueryRASInfo
|
|---|
| 2353 |
|
|---|
| 2354 | #endif
|
|---|
| 2355 | #ifdef INCL_DOSDATETIME
|
|---|
| 2356 | inline ULONG _DosGetDateTime(PDATETIME a)
|
|---|
| 2357 | {
|
|---|
| 2358 | ULONG yyrc;
|
|---|
| 2359 | USHORT sel = RestoreOS2FS();
|
|---|
| 2360 |
|
|---|
| 2361 | yyrc = DosGetDateTime(a);
|
|---|
| 2362 | SetFS(sel);
|
|---|
| 2363 |
|
|---|
| 2364 | return yyrc;
|
|---|
| 2365 | }
|
|---|
| 2366 |
|
|---|
| 2367 | #undef DosGetDateTime
|
|---|
| 2368 | #define DosGetDateTime _DosGetDateTime
|
|---|
| 2369 |
|
|---|
| 2370 | inline ULONG _DosSetDateTime(PDATETIME a)
|
|---|
| 2371 | {
|
|---|
| 2372 | ULONG yyrc;
|
|---|
| 2373 | USHORT sel = RestoreOS2FS();
|
|---|
| 2374 |
|
|---|
| 2375 | yyrc = DosSetDateTime(a);
|
|---|
| 2376 | SetFS(sel);
|
|---|
| 2377 |
|
|---|
| 2378 | return yyrc;
|
|---|
| 2379 | }
|
|---|
| 2380 |
|
|---|
| 2381 | #undef DosSetDateTime
|
|---|
| 2382 | #define DosSetDateTime _DosSetDateTime
|
|---|
| 2383 |
|
|---|
| 2384 | inline ULONG _DosAsyncTimer(ULONG a, HSEM b, PHTIMER c)
|
|---|
| 2385 | {
|
|---|
| 2386 | ULONG yyrc;
|
|---|
| 2387 | USHORT sel = RestoreOS2FS();
|
|---|
| 2388 |
|
|---|
| 2389 | yyrc = DosAsyncTimer(a, b, c);
|
|---|
| 2390 | SetFS(sel);
|
|---|
| 2391 |
|
|---|
| 2392 | return yyrc;
|
|---|
| 2393 | }
|
|---|
| 2394 |
|
|---|
| 2395 | #undef DosAsyncTimer
|
|---|
| 2396 | #define DosAsyncTimer _DosAsyncTimer
|
|---|
| 2397 |
|
|---|
| 2398 | inline ULONG _DosStartTimer(ULONG a, HSEM b, PHTIMER c)
|
|---|
| 2399 | {
|
|---|
| 2400 | ULONG yyrc;
|
|---|
| 2401 | USHORT sel = RestoreOS2FS();
|
|---|
| 2402 |
|
|---|
| 2403 | yyrc = DosStartTimer(a, b, c);
|
|---|
| 2404 | SetFS(sel);
|
|---|
| 2405 |
|
|---|
| 2406 | return yyrc;
|
|---|
| 2407 | }
|
|---|
| 2408 |
|
|---|
| 2409 | #undef DosStartTimer
|
|---|
| 2410 | #define DosStartTimer _DosStartTimer
|
|---|
| 2411 |
|
|---|
| 2412 | inline ULONG _DosStopTimer(HTIMER a)
|
|---|
| 2413 | {
|
|---|
| 2414 | ULONG yyrc;
|
|---|
| 2415 | USHORT sel = RestoreOS2FS();
|
|---|
| 2416 |
|
|---|
| 2417 | yyrc = DosStopTimer(a);
|
|---|
| 2418 | SetFS(sel);
|
|---|
| 2419 |
|
|---|
| 2420 | return yyrc;
|
|---|
| 2421 | }
|
|---|
| 2422 |
|
|---|
| 2423 | #undef DosStopTimer
|
|---|
| 2424 | #define DosStopTimer _DosStopTimer
|
|---|
| 2425 |
|
|---|
| 2426 | #endif
|
|---|
| 2427 | #ifdef DosTmrQueryFreq
|
|---|
| 2428 | inline ULONG _DosTmrQueryFreq(PULONG a)
|
|---|
| 2429 | {
|
|---|
| 2430 | ULONG yyrc;
|
|---|
| 2431 | USHORT sel = RestoreOS2FS();
|
|---|
| 2432 |
|
|---|
| 2433 | yyrc = DosTmrQueryFreq(a);
|
|---|
| 2434 | SetFS(sel);
|
|---|
| 2435 |
|
|---|
| 2436 | return yyrc;
|
|---|
| 2437 | }
|
|---|
| 2438 |
|
|---|
| 2439 | #undef DosTmrQueryFreq
|
|---|
| 2440 | #define DosTmrQueryFreq _DosTmrQueryFreq
|
|---|
| 2441 |
|
|---|
| 2442 | inline ULONG _DosTmrQueryTime(PQWORD a)
|
|---|
| 2443 | {
|
|---|
| 2444 | ULONG yyrc;
|
|---|
| 2445 | USHORT sel = RestoreOS2FS();
|
|---|
| 2446 |
|
|---|
| 2447 | yyrc = DosTmrQueryTime(a);
|
|---|
| 2448 | SetFS(sel);
|
|---|
| 2449 |
|
|---|
| 2450 | return yyrc;
|
|---|
| 2451 | }
|
|---|
| 2452 |
|
|---|
| 2453 | #undef DosTmrQueryTime
|
|---|
| 2454 | #define DosTmrQueryTime _DosTmrQueryTime
|
|---|
| 2455 |
|
|---|
| 2456 | #endif
|
|---|
| 2457 | #ifdef INCL_DOSMVDM
|
|---|
| 2458 | inline ULONG _DosCloseVDD(HVDD a)
|
|---|
| 2459 | {
|
|---|
| 2460 | ULONG yyrc;
|
|---|
| 2461 | USHORT sel = RestoreOS2FS();
|
|---|
| 2462 |
|
|---|
| 2463 | yyrc = DosCloseVDD(a);
|
|---|
| 2464 | SetFS(sel);
|
|---|
| 2465 |
|
|---|
| 2466 | return yyrc;
|
|---|
| 2467 | }
|
|---|
| 2468 |
|
|---|
| 2469 | #undef DosCloseVDD
|
|---|
| 2470 | #define DosCloseVDD _DosCloseVDD
|
|---|
| 2471 |
|
|---|
| 2472 | inline ULONG _DosOpenVDD(PCSZ a, PHVDD b)
|
|---|
| 2473 | {
|
|---|
| 2474 | ULONG yyrc;
|
|---|
| 2475 | USHORT sel = RestoreOS2FS();
|
|---|
| 2476 |
|
|---|
| 2477 | yyrc = DosOpenVDD(a, b);
|
|---|
| 2478 | SetFS(sel);
|
|---|
| 2479 |
|
|---|
| 2480 | return yyrc;
|
|---|
| 2481 | }
|
|---|
| 2482 |
|
|---|
| 2483 | #undef DosOpenVDD
|
|---|
| 2484 | #define DosOpenVDD _DosOpenVDD
|
|---|
| 2485 |
|
|---|
| 2486 | inline ULONG _DosQueryDOSProperty(SGID a, PCSZ b, ULONG c, PSZ d)
|
|---|
| 2487 | {
|
|---|
| 2488 | ULONG yyrc;
|
|---|
| 2489 | USHORT sel = RestoreOS2FS();
|
|---|
| 2490 |
|
|---|
| 2491 | yyrc = DosQueryDOSProperty(a, b, c, d);
|
|---|
| 2492 | SetFS(sel);
|
|---|
| 2493 |
|
|---|
| 2494 | return yyrc;
|
|---|
| 2495 | }
|
|---|
| 2496 |
|
|---|
| 2497 | #undef DosQueryDOSProperty
|
|---|
| 2498 | #define DosQueryDOSProperty _DosQueryDOSProperty
|
|---|
| 2499 |
|
|---|
| 2500 | inline ULONG _DosRequestVDD(HVDD a, SGID b, ULONG c, ULONG d, PVOID e, ULONG f, PVOID g)
|
|---|
| 2501 | {
|
|---|
| 2502 | ULONG yyrc;
|
|---|
| 2503 | USHORT sel = RestoreOS2FS();
|
|---|
| 2504 |
|
|---|
| 2505 | yyrc = DosRequestVDD(a, b, c, d, e, f, g);
|
|---|
| 2506 | SetFS(sel);
|
|---|
| 2507 |
|
|---|
| 2508 | return yyrc;
|
|---|
| 2509 | }
|
|---|
| 2510 |
|
|---|
| 2511 | #undef DosRequestVDD
|
|---|
| 2512 | #define DosRequestVDD _DosRequestVDD
|
|---|
| 2513 |
|
|---|
| 2514 | inline ULONG _DosSetDOSProperty(SGID a, PCSZ b, ULONG c, PCSZ d)
|
|---|
| 2515 | {
|
|---|
| 2516 | ULONG yyrc;
|
|---|
| 2517 | USHORT sel = RestoreOS2FS();
|
|---|
| 2518 |
|
|---|
| 2519 | yyrc = DosSetDOSProperty(a, b, c, d);
|
|---|
| 2520 | SetFS(sel);
|
|---|
| 2521 |
|
|---|
| 2522 | return yyrc;
|
|---|
| 2523 | }
|
|---|
| 2524 |
|
|---|
| 2525 | #undef DosSetDOSProperty
|
|---|
| 2526 | #define DosSetDOSProperty _DosSetDOSProperty
|
|---|
| 2527 |
|
|---|
| 2528 | #endif
|
|---|
| 2529 | #ifdef INCL_DOSPROCESS
|
|---|
| 2530 | inline ULONG _DosDebug(uDB_t *a)
|
|---|
| 2531 | {
|
|---|
| 2532 | ULONG yyrc;
|
|---|
| 2533 | USHORT sel = RestoreOS2FS();
|
|---|
| 2534 |
|
|---|
| 2535 | yyrc = DosDebug(a);
|
|---|
| 2536 | SetFS(sel);
|
|---|
| 2537 |
|
|---|
| 2538 | return yyrc;
|
|---|
| 2539 | }
|
|---|
| 2540 |
|
|---|
| 2541 | #undef DosDebug
|
|---|
| 2542 | #define DosDebug _DosDebug
|
|---|
| 2543 |
|
|---|
| 2544 | #endif
|
|---|
| 2545 | #ifdef INCL_DOSMISC
|
|---|
| 2546 | inline ULONG _DosGetMessage(PCHAR *a, ULONG b, PCHAR c, ULONG d, ULONG e, PCSZ f, PULONG g)
|
|---|
| 2547 | {
|
|---|
| 2548 | ULONG yyrc;
|
|---|
| 2549 | USHORT sel = RestoreOS2FS();
|
|---|
| 2550 |
|
|---|
| 2551 | yyrc = DosGetMessage(a, b, c, d, e, f, g);
|
|---|
| 2552 | SetFS(sel);
|
|---|
| 2553 |
|
|---|
| 2554 | return yyrc;
|
|---|
| 2555 | }
|
|---|
| 2556 |
|
|---|
| 2557 | #undef DosGetMessage
|
|---|
| 2558 | #define DosGetMessage _DosGetMessage
|
|---|
| 2559 |
|
|---|
| 2560 | inline ULONG _DosInsertMessage(PCHAR *a, ULONG b, PCSZ c, ULONG d, PCHAR e, ULONG f, PULONG g)
|
|---|
| 2561 | {
|
|---|
| 2562 | ULONG yyrc;
|
|---|
| 2563 | USHORT sel = RestoreOS2FS();
|
|---|
| 2564 |
|
|---|
| 2565 | yyrc = DosInsertMessage(a, b, c, d, e, f, g);
|
|---|
| 2566 | SetFS(sel);
|
|---|
| 2567 |
|
|---|
| 2568 | return yyrc;
|
|---|
| 2569 | }
|
|---|
| 2570 |
|
|---|
| 2571 | #undef DosInsertMessage
|
|---|
| 2572 | #define DosInsertMessage _DosInsertMessage
|
|---|
| 2573 |
|
|---|
| 2574 | inline ULONG _DosPutMessage(HFILE a, ULONG b, PCHAR c)
|
|---|
| 2575 | {
|
|---|
| 2576 | ULONG yyrc;
|
|---|
| 2577 | USHORT sel = RestoreOS2FS();
|
|---|
| 2578 |
|
|---|
| 2579 | yyrc = DosPutMessage(a, b, c);
|
|---|
| 2580 | SetFS(sel);
|
|---|
| 2581 |
|
|---|
| 2582 | return yyrc;
|
|---|
| 2583 | }
|
|---|
| 2584 |
|
|---|
| 2585 | #undef DosPutMessage
|
|---|
| 2586 | #define DosPutMessage _DosPutMessage
|
|---|
| 2587 |
|
|---|
| 2588 | inline ULONG _DosQueryMessageCP(PCHAR a, ULONG b, PCSZ c, PULONG d)
|
|---|
| 2589 | {
|
|---|
| 2590 | ULONG yyrc;
|
|---|
| 2591 | USHORT sel = RestoreOS2FS();
|
|---|
| 2592 |
|
|---|
| 2593 | yyrc = DosQueryMessageCP(a, b, c, d);
|
|---|
| 2594 | SetFS(sel);
|
|---|
| 2595 |
|
|---|
| 2596 | return yyrc;
|
|---|
| 2597 | }
|
|---|
| 2598 |
|
|---|
| 2599 | #undef DosQueryMessageCP
|
|---|
| 2600 | #define DosQueryMessageCP _DosQueryMessageCP
|
|---|
| 2601 |
|
|---|
| 2602 | #endif
|
|---|
| 2603 | #ifdef INCL_DOSRAS
|
|---|
| 2604 | inline ULONG _DosDumpProcess(ULONG a, ULONG b, PID c)
|
|---|
| 2605 | {
|
|---|
| 2606 | ULONG yyrc;
|
|---|
| 2607 | USHORT sel = RestoreOS2FS();
|
|---|
| 2608 |
|
|---|
| 2609 | yyrc = DosDumpProcess(a, b, c);
|
|---|
| 2610 | SetFS(sel);
|
|---|
| 2611 |
|
|---|
| 2612 | return yyrc;
|
|---|
| 2613 | }
|
|---|
| 2614 |
|
|---|
| 2615 | #undef DosDumpProcess
|
|---|
| 2616 | #define DosDumpProcess _DosDumpProcess
|
|---|
| 2617 |
|
|---|
| 2618 | inline ULONG _DosForceSystemDump(ULONG a)
|
|---|
| 2619 | {
|
|---|
| 2620 | ULONG yyrc;
|
|---|
| 2621 | USHORT sel = RestoreOS2FS();
|
|---|
| 2622 |
|
|---|
| 2623 | yyrc = DosForceSystemDump(a);
|
|---|
| 2624 | SetFS(sel);
|
|---|
| 2625 |
|
|---|
| 2626 | return yyrc;
|
|---|
| 2627 | }
|
|---|
| 2628 |
|
|---|
| 2629 | #undef DosForceSystemDump
|
|---|
| 2630 | #define DosForceSystemDump _DosForceSystemDump
|
|---|
| 2631 |
|
|---|
| 2632 | inline ULONG _DosQueryRASInfo(ULONG a, PPVOID b)
|
|---|
| 2633 | {
|
|---|
| 2634 | ULONG yyrc;
|
|---|
| 2635 | USHORT sel = RestoreOS2FS();
|
|---|
| 2636 |
|
|---|
| 2637 | yyrc = DosQueryRASInfo(a, b);
|
|---|
| 2638 | SetFS(sel);
|
|---|
| 2639 |
|
|---|
| 2640 | return yyrc;
|
|---|
| 2641 | }
|
|---|
| 2642 |
|
|---|
| 2643 | #undef DosQueryRASInfo
|
|---|
| 2644 | #define DosQueryRASInfo _DosQueryRASInfo
|
|---|
| 2645 |
|
|---|
| 2646 | inline ULONG _DosSuppressPopUps(ULONG a, ULONG b)
|
|---|
| 2647 | {
|
|---|
| 2648 | ULONG yyrc;
|
|---|
| 2649 | USHORT sel = RestoreOS2FS();
|
|---|
| 2650 |
|
|---|
| 2651 | yyrc = DosSuppressPopUps(a, b);
|
|---|
| 2652 | SetFS(sel);
|
|---|
| 2653 |
|
|---|
| 2654 | return yyrc;
|
|---|
| 2655 | }
|
|---|
| 2656 |
|
|---|
| 2657 | #undef DosSuppressPopUps
|
|---|
| 2658 | #define DosSuppressPopUps _DosSuppressPopUps
|
|---|
| 2659 |
|
|---|
| 2660 | #endif
|
|---|
| 2661 | #ifdef INCL_RXSUBCOM
|
|---|
| 2662 | inline ULONG _RexxDeregisterSubcom(PCSZ a, PCSZ b)
|
|---|
| 2663 | {
|
|---|
| 2664 | ULONG yyrc;
|
|---|
| 2665 | USHORT sel = RestoreOS2FS();
|
|---|
| 2666 |
|
|---|
| 2667 | yyrc = RexxDeregisterSubcom(a, b);
|
|---|
| 2668 | SetFS(sel);
|
|---|
| 2669 |
|
|---|
| 2670 | return yyrc;
|
|---|
| 2671 | }
|
|---|
| 2672 |
|
|---|
| 2673 | #undef RexxDeregisterSubcom
|
|---|
| 2674 | #define RexxDeregisterSubcom _RexxDeregisterSubcom
|
|---|
| 2675 |
|
|---|
| 2676 | inline ULONG _RexxQuerySubcom(PCSZ a, PCSZ b, PUSHORT c, PUCHAR d)
|
|---|
| 2677 | {
|
|---|
| 2678 | ULONG yyrc;
|
|---|
| 2679 | USHORT sel = RestoreOS2FS();
|
|---|
| 2680 |
|
|---|
| 2681 | yyrc = RexxQuerySubcom(a, b, c, d);
|
|---|
| 2682 | SetFS(sel);
|
|---|
| 2683 |
|
|---|
| 2684 | return yyrc;
|
|---|
| 2685 | }
|
|---|
| 2686 |
|
|---|
| 2687 | #undef RexxQuerySubcom
|
|---|
| 2688 | #define RexxQuerySubcom _RexxQuerySubcom
|
|---|
| 2689 |
|
|---|
| 2690 | inline ULONG _RexxRegisterSubcomDll(PCSZ a, PCSZ b, PCSZ c, PUCHAR d, ULONG e)
|
|---|
| 2691 | {
|
|---|
| 2692 | ULONG yyrc;
|
|---|
| 2693 | USHORT sel = RestoreOS2FS();
|
|---|
| 2694 |
|
|---|
| 2695 | yyrc = RexxRegisterSubcomDll(a, b, c, d, e);
|
|---|
| 2696 | SetFS(sel);
|
|---|
| 2697 |
|
|---|
| 2698 | return yyrc;
|
|---|
| 2699 | }
|
|---|
| 2700 |
|
|---|
| 2701 | #undef RexxRegisterSubcomDll
|
|---|
| 2702 | #define RexxRegisterSubcomDll _RexxRegisterSubcomDll
|
|---|
| 2703 |
|
|---|
| 2704 | inline ULONG _RexxRegisterSubcomExe(PCSZ a, PFN b, PUCHAR c)
|
|---|
| 2705 | {
|
|---|
| 2706 | ULONG yyrc;
|
|---|
| 2707 | USHORT sel = RestoreOS2FS();
|
|---|
| 2708 |
|
|---|
| 2709 | yyrc = RexxRegisterSubcomExe(a, b, c);
|
|---|
| 2710 | SetFS(sel);
|
|---|
| 2711 |
|
|---|
| 2712 | return yyrc;
|
|---|
| 2713 | }
|
|---|
| 2714 |
|
|---|
| 2715 | #undef RexxRegisterSubcomExe
|
|---|
| 2716 | #define RexxRegisterSubcomExe _RexxRegisterSubcomExe
|
|---|
| 2717 |
|
|---|
| 2718 | #endif
|
|---|
| 2719 | #ifdef INCL_RXSHV
|
|---|
| 2720 | inline ULONG _RexxVariablePool(PSHVBLOCK a)
|
|---|
| 2721 | {
|
|---|
| 2722 | ULONG yyrc;
|
|---|
| 2723 | USHORT sel = RestoreOS2FS();
|
|---|
| 2724 |
|
|---|
| 2725 | yyrc = RexxVariablePool(a);
|
|---|
| 2726 | SetFS(sel);
|
|---|
| 2727 |
|
|---|
| 2728 | return yyrc;
|
|---|
| 2729 | }
|
|---|
| 2730 |
|
|---|
| 2731 | #undef RexxVariablePool
|
|---|
| 2732 | #define RexxVariablePool _RexxVariablePool
|
|---|
| 2733 |
|
|---|
| 2734 | #endif
|
|---|
| 2735 | #ifdef INCL_RXFUNC
|
|---|
| 2736 | inline ULONG _RexxDeregisterFunction(PCSZ a)
|
|---|
| 2737 | {
|
|---|
| 2738 | ULONG yyrc;
|
|---|
| 2739 | USHORT sel = RestoreOS2FS();
|
|---|
| 2740 |
|
|---|
| 2741 | yyrc = RexxDeregisterFunction(a);
|
|---|
| 2742 | SetFS(sel);
|
|---|
| 2743 |
|
|---|
| 2744 | return yyrc;
|
|---|
| 2745 | }
|
|---|
| 2746 |
|
|---|
| 2747 | #undef RexxDeregisterFunction
|
|---|
| 2748 | #define RexxDeregisterFunction _RexxDeregisterFunction
|
|---|
| 2749 |
|
|---|
| 2750 | inline ULONG _RexxQueryFunction(PCSZ a)
|
|---|
| 2751 | {
|
|---|
| 2752 | ULONG yyrc;
|
|---|
| 2753 | USHORT sel = RestoreOS2FS();
|
|---|
| 2754 |
|
|---|
| 2755 | yyrc = RexxQueryFunction(a);
|
|---|
| 2756 | SetFS(sel);
|
|---|
| 2757 |
|
|---|
| 2758 | return yyrc;
|
|---|
| 2759 | }
|
|---|
| 2760 |
|
|---|
| 2761 | #undef RexxQueryFunction
|
|---|
| 2762 | #define RexxQueryFunction _RexxQueryFunction
|
|---|
| 2763 |
|
|---|
| 2764 | inline ULONG _RexxRegisterFunctionDll(PCSZ a, PCSZ b, PCSZ c)
|
|---|
| 2765 | {
|
|---|
| 2766 | ULONG yyrc;
|
|---|
| 2767 | USHORT sel = RestoreOS2FS();
|
|---|
| 2768 |
|
|---|
| 2769 | yyrc = RexxRegisterFunctionDll(a, b, c);
|
|---|
| 2770 | SetFS(sel);
|
|---|
| 2771 |
|
|---|
| 2772 | return yyrc;
|
|---|
| 2773 | }
|
|---|
| 2774 |
|
|---|
| 2775 | #undef RexxRegisterFunctionDll
|
|---|
| 2776 | #define RexxRegisterFunctionDll _RexxRegisterFunctionDll
|
|---|
| 2777 |
|
|---|
| 2778 | inline ULONG _RexxRegisterFunctionExe(PCSZ a, RexxFunctionHandler *b)
|
|---|
| 2779 | {
|
|---|
| 2780 | ULONG yyrc;
|
|---|
| 2781 | USHORT sel = RestoreOS2FS();
|
|---|
| 2782 |
|
|---|
| 2783 | yyrc = RexxRegisterFunctionExe(a, b);
|
|---|
| 2784 | SetFS(sel);
|
|---|
| 2785 |
|
|---|
| 2786 | return yyrc;
|
|---|
| 2787 | }
|
|---|
| 2788 |
|
|---|
| 2789 | #undef RexxRegisterFunctionExe
|
|---|
| 2790 | #define RexxRegisterFunctionExe _RexxRegisterFunctionExe
|
|---|
| 2791 |
|
|---|
| 2792 | #endif
|
|---|
| 2793 | #ifdef INCL_RXSYSEXIT
|
|---|
| 2794 | inline ULONG _RexxDeregisterExit(PCSZ a, PCSZ b)
|
|---|
| 2795 | {
|
|---|
| 2796 | ULONG yyrc;
|
|---|
| 2797 | USHORT sel = RestoreOS2FS();
|
|---|
| 2798 |
|
|---|
| 2799 | yyrc = RexxDeregisterExit(a, b);
|
|---|
| 2800 | SetFS(sel);
|
|---|
| 2801 |
|
|---|
| 2802 | return yyrc;
|
|---|
| 2803 | }
|
|---|
| 2804 |
|
|---|
| 2805 | #undef RexxDeregisterExit
|
|---|
| 2806 | #define RexxDeregisterExit _RexxDeregisterExit
|
|---|
| 2807 |
|
|---|
| 2808 | inline ULONG _RexxQueryExit(PCSZ a, PCSZ b, PUSHORT c, PUCHAR d)
|
|---|
| 2809 | {
|
|---|
| 2810 | ULONG yyrc;
|
|---|
| 2811 | USHORT sel = RestoreOS2FS();
|
|---|
| 2812 |
|
|---|
| 2813 | yyrc = RexxQueryExit(a, b, c, d);
|
|---|
| 2814 | SetFS(sel);
|
|---|
| 2815 |
|
|---|
| 2816 | return yyrc;
|
|---|
| 2817 | }
|
|---|
| 2818 |
|
|---|
| 2819 | #undef RexxQueryExit
|
|---|
| 2820 | #define RexxQueryExit _RexxQueryExit
|
|---|
| 2821 |
|
|---|
| 2822 | inline ULONG _RexxRegisterExitDll(PCSZ a, PCSZ b, PCSZ c, PUCHAR d, ULONG e)
|
|---|
| 2823 | {
|
|---|
| 2824 | ULONG yyrc;
|
|---|
| 2825 | USHORT sel = RestoreOS2FS();
|
|---|
| 2826 |
|
|---|
| 2827 | yyrc = RexxRegisterExitDll(a, b, c, d, e);
|
|---|
| 2828 | SetFS(sel);
|
|---|
| 2829 |
|
|---|
| 2830 | return yyrc;
|
|---|
| 2831 | }
|
|---|
| 2832 |
|
|---|
| 2833 | #undef RexxRegisterExitDll
|
|---|
| 2834 | #define RexxRegisterExitDll _RexxRegisterExitDll
|
|---|
| 2835 |
|
|---|
| 2836 | inline ULONG _RexxRegisterExitExe(PCSZ a, PFN b, PUCHAR c)
|
|---|
| 2837 | {
|
|---|
| 2838 | ULONG yyrc;
|
|---|
| 2839 | USHORT sel = RestoreOS2FS();
|
|---|
| 2840 |
|
|---|
| 2841 | yyrc = RexxRegisterExitExe(a, b, c);
|
|---|
| 2842 | SetFS(sel);
|
|---|
| 2843 |
|
|---|
| 2844 | return yyrc;
|
|---|
| 2845 | }
|
|---|
| 2846 |
|
|---|
| 2847 | #undef RexxRegisterExitExe
|
|---|
| 2848 | #define RexxRegisterExitExe _RexxRegisterExitExe
|
|---|
| 2849 |
|
|---|
| 2850 | #endif
|
|---|
| 2851 | #ifdef INCL_RXARI
|
|---|
| 2852 | inline ULONG _RexxResetTrace(PID a, TID b)
|
|---|
| 2853 | {
|
|---|
| 2854 | ULONG yyrc;
|
|---|
| 2855 | USHORT sel = RestoreOS2FS();
|
|---|
| 2856 |
|
|---|
| 2857 | yyrc = RexxResetTrace(a, b);
|
|---|
| 2858 | SetFS(sel);
|
|---|
| 2859 |
|
|---|
| 2860 | return yyrc;
|
|---|
| 2861 | }
|
|---|
| 2862 |
|
|---|
| 2863 | #undef RexxResetTrace
|
|---|
| 2864 | #define RexxResetTrace _RexxResetTrace
|
|---|
| 2865 |
|
|---|
| 2866 | inline ULONG _RexxSetHalt(PID a, TID b)
|
|---|
| 2867 | {
|
|---|
| 2868 | ULONG yyrc;
|
|---|
| 2869 | USHORT sel = RestoreOS2FS();
|
|---|
| 2870 |
|
|---|
| 2871 | yyrc = RexxSetHalt(a, b);
|
|---|
| 2872 | SetFS(sel);
|
|---|
| 2873 |
|
|---|
| 2874 | return yyrc;
|
|---|
| 2875 | }
|
|---|
| 2876 |
|
|---|
| 2877 | #undef RexxSetHalt
|
|---|
| 2878 | #define RexxSetHalt _RexxSetHalt
|
|---|
| 2879 |
|
|---|
| 2880 | inline ULONG _RexxSetTrace(PID a, TID b)
|
|---|
| 2881 | {
|
|---|
| 2882 | ULONG yyrc;
|
|---|
| 2883 | USHORT sel = RestoreOS2FS();
|
|---|
| 2884 |
|
|---|
| 2885 | yyrc = RexxSetTrace(a, b);
|
|---|
| 2886 | SetFS(sel);
|
|---|
| 2887 |
|
|---|
| 2888 | return yyrc;
|
|---|
| 2889 | }
|
|---|
| 2890 |
|
|---|
| 2891 | #undef RexxSetTrace
|
|---|
| 2892 | #define RexxSetTrace _RexxSetTrace
|
|---|
| 2893 |
|
|---|
| 2894 | #endif
|
|---|
| 2895 | #ifdef INCL_RXMACRO
|
|---|
| 2896 | inline ULONG _RexxAddMacro(PCSZ a, PCSZ b, ULONG c)
|
|---|
| 2897 | {
|
|---|
| 2898 | ULONG yyrc;
|
|---|
| 2899 | USHORT sel = RestoreOS2FS();
|
|---|
| 2900 |
|
|---|
| 2901 | yyrc = RexxAddMacro(a, b, c);
|
|---|
| 2902 | SetFS(sel);
|
|---|
| 2903 |
|
|---|
| 2904 | return yyrc;
|
|---|
| 2905 | }
|
|---|
| 2906 |
|
|---|
| 2907 | #undef RexxAddMacro
|
|---|
| 2908 | #define RexxAddMacro _RexxAddMacro
|
|---|
| 2909 |
|
|---|
| 2910 | inline ULONG _RexxClearMacroSpace()
|
|---|
| 2911 | {
|
|---|
| 2912 | ULONG yyrc;
|
|---|
| 2913 | USHORT sel = RestoreOS2FS();
|
|---|
| 2914 |
|
|---|
| 2915 | yyrc = RexxClearMacroSpace();
|
|---|
| 2916 | SetFS(sel);
|
|---|
| 2917 |
|
|---|
| 2918 | return yyrc;
|
|---|
| 2919 | }
|
|---|
| 2920 |
|
|---|
| 2921 | #undef RexxClearMacroSpace
|
|---|
| 2922 | #define RexxClearMacroSpace _RexxClearMacroSpace
|
|---|
| 2923 |
|
|---|
| 2924 | inline ULONG _RexxDropMacro(PCSZ a)
|
|---|
| 2925 | {
|
|---|
| 2926 | ULONG yyrc;
|
|---|
| 2927 | USHORT sel = RestoreOS2FS();
|
|---|
| 2928 |
|
|---|
| 2929 | yyrc = RexxDropMacro(a);
|
|---|
| 2930 | SetFS(sel);
|
|---|
| 2931 |
|
|---|
| 2932 | return yyrc;
|
|---|
| 2933 | }
|
|---|
| 2934 |
|
|---|
| 2935 | #undef RexxDropMacro
|
|---|
| 2936 | #define RexxDropMacro _RexxDropMacro
|
|---|
| 2937 |
|
|---|
| 2938 | inline ULONG _RexxLoadMacroSpace(ULONG a, PCSZ *b, PCSZ c)
|
|---|
| 2939 | {
|
|---|
| 2940 | ULONG yyrc;
|
|---|
| 2941 | USHORT sel = RestoreOS2FS();
|
|---|
| 2942 |
|
|---|
| 2943 | yyrc = RexxLoadMacroSpace(a, b, c);
|
|---|
| 2944 | SetFS(sel);
|
|---|
| 2945 |
|
|---|
| 2946 | return yyrc;
|
|---|
| 2947 | }
|
|---|
| 2948 |
|
|---|
| 2949 | #undef RexxLoadMacroSpace
|
|---|
| 2950 | #define RexxLoadMacroSpace _RexxLoadMacroSpace
|
|---|
| 2951 |
|
|---|
| 2952 | inline ULONG _RexxQueryMacro(PCSZ a, PUSHORT b)
|
|---|
| 2953 | {
|
|---|
| 2954 | ULONG yyrc;
|
|---|
| 2955 | USHORT sel = RestoreOS2FS();
|
|---|
| 2956 |
|
|---|
| 2957 | yyrc = RexxQueryMacro(a, b);
|
|---|
| 2958 | SetFS(sel);
|
|---|
| 2959 |
|
|---|
| 2960 | return yyrc;
|
|---|
| 2961 | }
|
|---|
| 2962 |
|
|---|
| 2963 | #undef RexxQueryMacro
|
|---|
| 2964 | #define RexxQueryMacro _RexxQueryMacro
|
|---|
| 2965 |
|
|---|
| 2966 | inline ULONG _RexxReorderMacro(PCSZ a, ULONG b)
|
|---|
| 2967 | {
|
|---|
| 2968 | ULONG yyrc;
|
|---|
| 2969 | USHORT sel = RestoreOS2FS();
|
|---|
| 2970 |
|
|---|
| 2971 | yyrc = RexxReorderMacro(a, b);
|
|---|
| 2972 | SetFS(sel);
|
|---|
| 2973 |
|
|---|
| 2974 | return yyrc;
|
|---|
| 2975 | }
|
|---|
| 2976 |
|
|---|
| 2977 | #undef RexxReorderMacro
|
|---|
| 2978 | #define RexxReorderMacro _RexxReorderMacro
|
|---|
| 2979 |
|
|---|
| 2980 | inline ULONG _RexxSaveMacroSpace(ULONG a, PCSZ *b, PCSZ c)
|
|---|
| 2981 | {
|
|---|
| 2982 | ULONG yyrc;
|
|---|
| 2983 | USHORT sel = RestoreOS2FS();
|
|---|
| 2984 |
|
|---|
| 2985 | yyrc = RexxSaveMacroSpace(a, b, c);
|
|---|
| 2986 | SetFS(sel);
|
|---|
| 2987 |
|
|---|
| 2988 | return yyrc;
|
|---|
| 2989 | }
|
|---|
| 2990 |
|
|---|
| 2991 | #undef RexxSaveMacroSpace
|
|---|
| 2992 | #define RexxSaveMacroSpace _RexxSaveMacroSpace
|
|---|
| 2993 |
|
|---|
| 2994 | inline LONG _RexxStart(LONG a, PRXSTRING b, PCSZ c, PRXSTRING d, PCSZ e, LONG f, PRXSYSEXIT g, PSHORT h, PRXSTRING i)
|
|---|
| 2995 | {
|
|---|
| 2996 | LONG yyrc;
|
|---|
| 2997 | USHORT sel = RestoreOS2FS();
|
|---|
| 2998 |
|
|---|
| 2999 | yyrc = RexxStart(a, b, c, d, e, f, g, h, i);
|
|---|
| 3000 | SetFS(sel);
|
|---|
| 3001 |
|
|---|
| 3002 | return yyrc;
|
|---|
| 3003 | }
|
|---|
| 3004 |
|
|---|
| 3005 | #undef RexxStart
|
|---|
| 3006 | #define RexxStart _RexxStart
|
|---|
| 3007 |
|
|---|
| 3008 | #endif
|
|---|
| 3009 | #ifdef INCL_WIN
|
|---|
| 3010 | #ifdef INCL_WINMESSAGEMGR
|
|---|
| 3011 | inline BOOL _WinCancelShutdown(HMQ a, BOOL b)
|
|---|
| 3012 | {
|
|---|
| 3013 | BOOL yyrc;
|
|---|
| 3014 | USHORT sel = RestoreOS2FS();
|
|---|
| 3015 |
|
|---|
| 3016 | yyrc = WinCancelShutdown(a, b);
|
|---|
| 3017 | SetFS(sel);
|
|---|
| 3018 |
|
|---|
| 3019 | return yyrc;
|
|---|
| 3020 | }
|
|---|
| 3021 |
|
|---|
| 3022 | #undef WinCancelShutdown
|
|---|
| 3023 | #define WinCancelShutdown _WinCancelShutdown
|
|---|
| 3024 |
|
|---|
| 3025 | inline HMQ _WinCreateMsgQueue(HAB a, LONG b)
|
|---|
| 3026 | {
|
|---|
| 3027 | HMQ yyrc;
|
|---|
| 3028 | USHORT sel = RestoreOS2FS();
|
|---|
| 3029 |
|
|---|
| 3030 | yyrc = WinCreateMsgQueue(a, b);
|
|---|
| 3031 | SetFS(sel);
|
|---|
| 3032 |
|
|---|
| 3033 | return yyrc;
|
|---|
| 3034 | }
|
|---|
| 3035 |
|
|---|
| 3036 | #undef WinCreateMsgQueue
|
|---|
| 3037 | #define WinCreateMsgQueue _WinCreateMsgQueue
|
|---|
| 3038 |
|
|---|
| 3039 | inline BOOL _WinDestroyMsgQueue(HMQ a)
|
|---|
| 3040 | {
|
|---|
| 3041 | BOOL yyrc;
|
|---|
| 3042 | USHORT sel = RestoreOS2FS();
|
|---|
| 3043 |
|
|---|
| 3044 | yyrc = WinDestroyMsgQueue(a);
|
|---|
| 3045 | SetFS(sel);
|
|---|
| 3046 |
|
|---|
| 3047 | return yyrc;
|
|---|
| 3048 | }
|
|---|
| 3049 |
|
|---|
| 3050 | #undef WinDestroyMsgQueue
|
|---|
| 3051 | #define WinDestroyMsgQueue _WinDestroyMsgQueue
|
|---|
| 3052 |
|
|---|
| 3053 | inline MRESULT _WinDispatchMsg(HAB a, PQMSG b)
|
|---|
| 3054 | {
|
|---|
| 3055 | MRESULT yyrc;
|
|---|
| 3056 | USHORT sel = RestoreOS2FS();
|
|---|
| 3057 |
|
|---|
| 3058 | yyrc = WinDispatchMsg(a, b);
|
|---|
| 3059 | SetFS(sel);
|
|---|
| 3060 |
|
|---|
| 3061 | return yyrc;
|
|---|
| 3062 | }
|
|---|
| 3063 |
|
|---|
| 3064 | #undef WinDispatchMsg
|
|---|
| 3065 | #define WinDispatchMsg _WinDispatchMsg
|
|---|
| 3066 |
|
|---|
| 3067 | inline BOOL _WinGetMsg(HAB a, PQMSG b, HWND c, ULONG d, ULONG e)
|
|---|
| 3068 | {
|
|---|
| 3069 | BOOL yyrc;
|
|---|
| 3070 | USHORT sel = RestoreOS2FS();
|
|---|
| 3071 |
|
|---|
| 3072 | yyrc = WinGetMsg(a, b, c, d, e);
|
|---|
| 3073 | SetFS(sel);
|
|---|
| 3074 |
|
|---|
| 3075 | return yyrc;
|
|---|
| 3076 | }
|
|---|
| 3077 |
|
|---|
| 3078 | #undef WinGetMsg
|
|---|
| 3079 | #define WinGetMsg _WinGetMsg
|
|---|
| 3080 |
|
|---|
| 3081 | inline BOOL _WinLockInput(HMQ a, ULONG b)
|
|---|
| 3082 | {
|
|---|
| 3083 | BOOL yyrc;
|
|---|
| 3084 | USHORT sel = RestoreOS2FS();
|
|---|
| 3085 |
|
|---|
| 3086 | yyrc = WinLockInput(a, b);
|
|---|
| 3087 | SetFS(sel);
|
|---|
| 3088 |
|
|---|
| 3089 | return yyrc;
|
|---|
| 3090 | }
|
|---|
| 3091 |
|
|---|
| 3092 | #undef WinLockInput
|
|---|
| 3093 | #define WinLockInput _WinLockInput
|
|---|
| 3094 |
|
|---|
| 3095 | inline BOOL _WinPeekMsg(HAB a, PQMSG b, HWND c, ULONG d, ULONG e, ULONG f)
|
|---|
| 3096 | {
|
|---|
| 3097 | BOOL yyrc;
|
|---|
| 3098 | USHORT sel = RestoreOS2FS();
|
|---|
| 3099 |
|
|---|
| 3100 | yyrc = WinPeekMsg(a, b, c, d, e, f);
|
|---|
| 3101 | SetFS(sel);
|
|---|
| 3102 |
|
|---|
| 3103 | return yyrc;
|
|---|
| 3104 | }
|
|---|
| 3105 |
|
|---|
| 3106 | #undef WinPeekMsg
|
|---|
| 3107 | #define WinPeekMsg _WinPeekMsg
|
|---|
| 3108 |
|
|---|
| 3109 | inline BOOL _WinPostMsg(HWND a, ULONG b, MPARAM c, MPARAM d)
|
|---|
| 3110 | {
|
|---|
| 3111 | BOOL yyrc;
|
|---|
| 3112 | USHORT sel = RestoreOS2FS();
|
|---|
| 3113 |
|
|---|
| 3114 | yyrc = WinPostMsg(a, b, c, d);
|
|---|
| 3115 | SetFS(sel);
|
|---|
| 3116 |
|
|---|
| 3117 | return yyrc;
|
|---|
| 3118 | }
|
|---|
| 3119 |
|
|---|
| 3120 | #undef WinPostMsg
|
|---|
| 3121 | #define WinPostMsg _WinPostMsg
|
|---|
| 3122 |
|
|---|
| 3123 | inline HMQ _WinQueueFromID(HAB a, PID b, TID c)
|
|---|
| 3124 | {
|
|---|
| 3125 | HMQ yyrc;
|
|---|
| 3126 | USHORT sel = RestoreOS2FS();
|
|---|
| 3127 |
|
|---|
| 3128 | yyrc = WinQueueFromID(a, b, c);
|
|---|
| 3129 | SetFS(sel);
|
|---|
| 3130 |
|
|---|
| 3131 | return yyrc;
|
|---|
| 3132 | }
|
|---|
| 3133 |
|
|---|
| 3134 | #undef WinQueueFromID
|
|---|
| 3135 | #define WinQueueFromID _WinQueueFromID
|
|---|
| 3136 |
|
|---|
| 3137 | inline BOOL _WinQueryQueueInfo(HMQ a, PMQINFO b, ULONG c)
|
|---|
| 3138 | {
|
|---|
| 3139 | BOOL yyrc;
|
|---|
| 3140 | USHORT sel = RestoreOS2FS();
|
|---|
| 3141 |
|
|---|
| 3142 | yyrc = WinQueryQueueInfo(a, b, c);
|
|---|
| 3143 | SetFS(sel);
|
|---|
| 3144 |
|
|---|
| 3145 | return yyrc;
|
|---|
| 3146 | }
|
|---|
| 3147 |
|
|---|
| 3148 | #undef WinQueryQueueInfo
|
|---|
| 3149 | #define WinQueryQueueInfo _WinQueryQueueInfo
|
|---|
| 3150 |
|
|---|
| 3151 | inline HMQ _WinQuerySendMsg(HAB a, HMQ b, HMQ c, PQMSG d)
|
|---|
| 3152 | {
|
|---|
| 3153 | HMQ yyrc;
|
|---|
| 3154 | USHORT sel = RestoreOS2FS();
|
|---|
| 3155 |
|
|---|
| 3156 | yyrc = WinQuerySendMsg(a, b, c, d);
|
|---|
| 3157 | SetFS(sel);
|
|---|
| 3158 |
|
|---|
| 3159 | return yyrc;
|
|---|
| 3160 | }
|
|---|
| 3161 |
|
|---|
| 3162 | #undef WinQuerySendMsg
|
|---|
| 3163 | #define WinQuerySendMsg _WinQuerySendMsg
|
|---|
| 3164 |
|
|---|
| 3165 | inline BOOL _WinRegisterUserDatatype(HAB a, LONG b, LONG c, PLONG d)
|
|---|
| 3166 | {
|
|---|
| 3167 | BOOL yyrc;
|
|---|
| 3168 | USHORT sel = RestoreOS2FS();
|
|---|
| 3169 |
|
|---|
| 3170 | yyrc = WinRegisterUserDatatype(a, b, c, d);
|
|---|
| 3171 | SetFS(sel);
|
|---|
| 3172 |
|
|---|
| 3173 | return yyrc;
|
|---|
| 3174 | }
|
|---|
| 3175 |
|
|---|
| 3176 | #undef WinRegisterUserDatatype
|
|---|
| 3177 | #define WinRegisterUserDatatype _WinRegisterUserDatatype
|
|---|
| 3178 |
|
|---|
| 3179 | inline BOOL _WinRegisterUserMsg(HAB a, ULONG b, LONG c, LONG d, LONG e, LONG f, LONG g)
|
|---|
| 3180 | {
|
|---|
| 3181 | BOOL yyrc;
|
|---|
| 3182 | USHORT sel = RestoreOS2FS();
|
|---|
| 3183 |
|
|---|
| 3184 | yyrc = WinRegisterUserMsg(a, b, c, d, e, f, g);
|
|---|
| 3185 | SetFS(sel);
|
|---|
| 3186 |
|
|---|
| 3187 | return yyrc;
|
|---|
| 3188 | }
|
|---|
| 3189 |
|
|---|
| 3190 | #undef WinRegisterUserMsg
|
|---|
| 3191 | #define WinRegisterUserMsg _WinRegisterUserMsg
|
|---|
| 3192 |
|
|---|
| 3193 | inline BOOL _WinReplyMsg(HAB a, HMQ b, HMQ c, MRESULT d)
|
|---|
| 3194 | {
|
|---|
| 3195 | BOOL yyrc;
|
|---|
| 3196 | USHORT sel = RestoreOS2FS();
|
|---|
| 3197 |
|
|---|
| 3198 | yyrc = WinReplyMsg(a, b, c, d);
|
|---|
| 3199 | SetFS(sel);
|
|---|
| 3200 |
|
|---|
| 3201 | return yyrc;
|
|---|
| 3202 | }
|
|---|
| 3203 |
|
|---|
| 3204 | #undef WinReplyMsg
|
|---|
| 3205 | #define WinReplyMsg _WinReplyMsg
|
|---|
| 3206 |
|
|---|
| 3207 | inline MRESULT _WinSendMsg(HWND a, ULONG b, MPARAM c, MPARAM d)
|
|---|
| 3208 | {
|
|---|
| 3209 | MRESULT yyrc;
|
|---|
| 3210 | USHORT sel = RestoreOS2FS();
|
|---|
| 3211 |
|
|---|
| 3212 | yyrc = WinSendMsg(a, b, c, d);
|
|---|
| 3213 | SetFS(sel);
|
|---|
| 3214 |
|
|---|
| 3215 | return yyrc;
|
|---|
| 3216 | }
|
|---|
| 3217 |
|
|---|
| 3218 | #undef WinSendMsg
|
|---|
| 3219 | #define WinSendMsg _WinSendMsg
|
|---|
| 3220 |
|
|---|
| 3221 | inline BOOL _WinSetMsgMode(HAB a, PCSZ b, LONG c)
|
|---|
| 3222 | {
|
|---|
| 3223 | BOOL yyrc;
|
|---|
| 3224 | USHORT sel = RestoreOS2FS();
|
|---|
| 3225 |
|
|---|
| 3226 | yyrc = WinSetMsgMode(a, b, c);
|
|---|
| 3227 | SetFS(sel);
|
|---|
| 3228 |
|
|---|
| 3229 | return yyrc;
|
|---|
| 3230 | }
|
|---|
| 3231 |
|
|---|
| 3232 | #undef WinSetMsgMode
|
|---|
| 3233 | #define WinSetMsgMode _WinSetMsgMode
|
|---|
| 3234 |
|
|---|
| 3235 | inline BOOL _WinSetSynchroMode(HAB a, LONG b)
|
|---|
| 3236 | {
|
|---|
| 3237 | BOOL yyrc;
|
|---|
| 3238 | USHORT sel = RestoreOS2FS();
|
|---|
| 3239 |
|
|---|
| 3240 | yyrc = WinSetSynchroMode(a, b);
|
|---|
| 3241 | SetFS(sel);
|
|---|
| 3242 |
|
|---|
| 3243 | return yyrc;
|
|---|
| 3244 | }
|
|---|
| 3245 |
|
|---|
| 3246 | #undef WinSetSynchroMode
|
|---|
| 3247 | #define WinSetSynchroMode _WinSetSynchroMode
|
|---|
| 3248 |
|
|---|
| 3249 | inline BOOL _WinThreadAssocQueue(HAB a, HMQ b)
|
|---|
| 3250 | {
|
|---|
| 3251 | BOOL yyrc;
|
|---|
| 3252 | USHORT sel = RestoreOS2FS();
|
|---|
| 3253 |
|
|---|
| 3254 | yyrc = WinThreadAssocQueue(a, b);
|
|---|
| 3255 | SetFS(sel);
|
|---|
| 3256 |
|
|---|
| 3257 | return yyrc;
|
|---|
| 3258 | }
|
|---|
| 3259 |
|
|---|
| 3260 | #undef WinThreadAssocQueue
|
|---|
| 3261 | #define WinThreadAssocQueue _WinThreadAssocQueue
|
|---|
| 3262 |
|
|---|
| 3263 | inline BOOL _WinWakeThread(HMQ a)
|
|---|
| 3264 | {
|
|---|
| 3265 | BOOL yyrc;
|
|---|
| 3266 | USHORT sel = RestoreOS2FS();
|
|---|
| 3267 |
|
|---|
| 3268 | yyrc = WinWakeThread(a);
|
|---|
| 3269 | SetFS(sel);
|
|---|
| 3270 |
|
|---|
| 3271 | return yyrc;
|
|---|
| 3272 | }
|
|---|
| 3273 |
|
|---|
| 3274 | #undef WinWakeThread
|
|---|
| 3275 | #define WinWakeThread _WinWakeThread
|
|---|
| 3276 |
|
|---|
| 3277 | #endif
|
|---|
| 3278 | 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)
|
|---|
| 3279 | {
|
|---|
| 3280 | HWND yyrc;
|
|---|
| 3281 | USHORT sel = RestoreOS2FS();
|
|---|
| 3282 |
|
|---|
| 3283 | yyrc = WinCreateWindow(a, b, c, d, e, f, g, h, i, j, k, l, m);
|
|---|
| 3284 | SetFS(sel);
|
|---|
| 3285 |
|
|---|
| 3286 | return yyrc;
|
|---|
| 3287 | }
|
|---|
| 3288 |
|
|---|
| 3289 | #undef WinCreateWindow
|
|---|
| 3290 | #define WinCreateWindow _WinCreateWindow
|
|---|
| 3291 |
|
|---|
| 3292 | inline BOOL _WinDrawBitmap(HPS a, HBITMAP b, PRECTL c, PPOINTL d, LONG e, LONG f, ULONG g)
|
|---|
| 3293 | {
|
|---|
| 3294 | BOOL yyrc;
|
|---|
| 3295 | USHORT sel = RestoreOS2FS();
|
|---|
| 3296 |
|
|---|
| 3297 | yyrc = WinDrawBitmap(a, b, c, d, e, f, g);
|
|---|
| 3298 | SetFS(sel);
|
|---|
| 3299 |
|
|---|
| 3300 | return yyrc;
|
|---|
| 3301 | }
|
|---|
| 3302 |
|
|---|
| 3303 | #undef WinDrawBitmap
|
|---|
| 3304 | #define WinDrawBitmap _WinDrawBitmap
|
|---|
| 3305 |
|
|---|
| 3306 | inline BOOL _WinDrawBorder(HPS a, PRECTL b, LONG c, LONG d, LONG e, LONG f, ULONG g)
|
|---|
| 3307 | {
|
|---|
| 3308 | BOOL yyrc;
|
|---|
| 3309 | USHORT sel = RestoreOS2FS();
|
|---|
| 3310 |
|
|---|
| 3311 | yyrc = WinDrawBorder(a, b, c, d, e, f, g);
|
|---|
| 3312 | SetFS(sel);
|
|---|
| 3313 |
|
|---|
| 3314 | return yyrc;
|
|---|
| 3315 | }
|
|---|
| 3316 |
|
|---|
| 3317 | #undef WinDrawBorder
|
|---|
| 3318 | #define WinDrawBorder _WinDrawBorder
|
|---|
| 3319 |
|
|---|
| 3320 | inline LONG _WinDrawText(HPS a, LONG b, PCH c, PRECTL d, LONG e, LONG f, ULONG g)
|
|---|
| 3321 | {
|
|---|
| 3322 | LONG yyrc;
|
|---|
| 3323 | USHORT sel = RestoreOS2FS();
|
|---|
| 3324 |
|
|---|
| 3325 | yyrc = WinDrawText(a, b, c, d, e, f, g);
|
|---|
| 3326 | SetFS(sel);
|
|---|
| 3327 |
|
|---|
| 3328 | return yyrc;
|
|---|
| 3329 | }
|
|---|
| 3330 |
|
|---|
| 3331 | #undef WinDrawText
|
|---|
| 3332 | #define WinDrawText _WinDrawText
|
|---|
| 3333 |
|
|---|
| 3334 | inline BOOL _WinEnableWindow(HWND a, BOOL b)
|
|---|
| 3335 | {
|
|---|
| 3336 | BOOL yyrc;
|
|---|
| 3337 | USHORT sel = RestoreOS2FS();
|
|---|
| 3338 |
|
|---|
| 3339 | yyrc = WinEnableWindow(a, b);
|
|---|
| 3340 | SetFS(sel);
|
|---|
| 3341 |
|
|---|
| 3342 | return yyrc;
|
|---|
| 3343 | }
|
|---|
| 3344 |
|
|---|
| 3345 | #undef WinEnableWindow
|
|---|
| 3346 | #define WinEnableWindow _WinEnableWindow
|
|---|
| 3347 |
|
|---|
| 3348 | inline BOOL _WinEnableWindowUpdate(HWND a, BOOL b)
|
|---|
| 3349 | {
|
|---|
| 3350 | BOOL yyrc;
|
|---|
| 3351 | USHORT sel = RestoreOS2FS();
|
|---|
| 3352 |
|
|---|
| 3353 | yyrc = WinEnableWindowUpdate(a, b);
|
|---|
| 3354 | SetFS(sel);
|
|---|
| 3355 |
|
|---|
| 3356 | return yyrc;
|
|---|
| 3357 | }
|
|---|
| 3358 |
|
|---|
| 3359 | #undef WinEnableWindowUpdate
|
|---|
| 3360 | #define WinEnableWindowUpdate _WinEnableWindowUpdate
|
|---|
| 3361 |
|
|---|
| 3362 | inline BOOL _WinInvalidateRect(HWND a, PRECTL b, BOOL c)
|
|---|
| 3363 | {
|
|---|
| 3364 | BOOL yyrc;
|
|---|
| 3365 | USHORT sel = RestoreOS2FS();
|
|---|
| 3366 |
|
|---|
| 3367 | yyrc = WinInvalidateRect(a, b, c);
|
|---|
| 3368 | SetFS(sel);
|
|---|
| 3369 |
|
|---|
| 3370 | return yyrc;
|
|---|
| 3371 | }
|
|---|
| 3372 |
|
|---|
| 3373 | #undef WinInvalidateRect
|
|---|
| 3374 | #define WinInvalidateRect _WinInvalidateRect
|
|---|
| 3375 |
|
|---|
| 3376 | inline BOOL _WinInvalidateRegion(HWND a, HRGN b, BOOL c)
|
|---|
| 3377 | {
|
|---|
| 3378 | BOOL yyrc;
|
|---|
| 3379 | USHORT sel = RestoreOS2FS();
|
|---|
| 3380 |
|
|---|
| 3381 | yyrc = WinInvalidateRegion(a, b, c);
|
|---|
| 3382 | SetFS(sel);
|
|---|
| 3383 |
|
|---|
| 3384 | return yyrc;
|
|---|
| 3385 | }
|
|---|
| 3386 |
|
|---|
| 3387 | #undef WinInvalidateRegion
|
|---|
| 3388 | #define WinInvalidateRegion _WinInvalidateRegion
|
|---|
| 3389 |
|
|---|
| 3390 | inline BOOL _WinInvertRect(HPS a, PRECTL b)
|
|---|
| 3391 | {
|
|---|
| 3392 | BOOL yyrc;
|
|---|
| 3393 | USHORT sel = RestoreOS2FS();
|
|---|
| 3394 |
|
|---|
| 3395 | yyrc = WinInvertRect(a, b);
|
|---|
| 3396 | SetFS(sel);
|
|---|
| 3397 |
|
|---|
| 3398 | return yyrc;
|
|---|
| 3399 | }
|
|---|
| 3400 |
|
|---|
| 3401 | #undef WinInvertRect
|
|---|
| 3402 | #define WinInvertRect _WinInvertRect
|
|---|
| 3403 |
|
|---|
| 3404 | inline BOOL _WinIsChild(HWND a, HWND b)
|
|---|
| 3405 | {
|
|---|
| 3406 | BOOL yyrc;
|
|---|
| 3407 | USHORT sel = RestoreOS2FS();
|
|---|
| 3408 |
|
|---|
| 3409 | yyrc = WinIsChild(a, b);
|
|---|
| 3410 | SetFS(sel);
|
|---|
| 3411 |
|
|---|
| 3412 | return yyrc;
|
|---|
| 3413 | }
|
|---|
| 3414 |
|
|---|
| 3415 | #undef WinIsChild
|
|---|
| 3416 | #define WinIsChild _WinIsChild
|
|---|
| 3417 |
|
|---|
| 3418 | inline BOOL _WinIsWindow(HAB a, HWND b)
|
|---|
| 3419 | {
|
|---|
| 3420 | BOOL yyrc;
|
|---|
| 3421 | USHORT sel = RestoreOS2FS();
|
|---|
| 3422 |
|
|---|
| 3423 | yyrc = WinIsWindow(a, b);
|
|---|
| 3424 | SetFS(sel);
|
|---|
| 3425 |
|
|---|
| 3426 | return yyrc;
|
|---|
| 3427 | }
|
|---|
| 3428 |
|
|---|
| 3429 | #undef WinIsWindow
|
|---|
| 3430 | #define WinIsWindow _WinIsWindow
|
|---|
| 3431 |
|
|---|
| 3432 | inline BOOL _WinIsWindowEnabled(HWND a)
|
|---|
| 3433 | {
|
|---|
| 3434 | BOOL yyrc;
|
|---|
| 3435 | USHORT sel = RestoreOS2FS();
|
|---|
| 3436 |
|
|---|
| 3437 | yyrc = WinIsWindowEnabled(a);
|
|---|
| 3438 | SetFS(sel);
|
|---|
| 3439 |
|
|---|
| 3440 | return yyrc;
|
|---|
| 3441 | }
|
|---|
| 3442 |
|
|---|
| 3443 | #undef WinIsWindowEnabled
|
|---|
| 3444 | #define WinIsWindowEnabled _WinIsWindowEnabled
|
|---|
| 3445 |
|
|---|
| 3446 | inline BOOL _WinIsWindowVisible(HWND a)
|
|---|
| 3447 | {
|
|---|
| 3448 | BOOL yyrc;
|
|---|
| 3449 | USHORT sel = RestoreOS2FS();
|
|---|
| 3450 |
|
|---|
| 3451 | yyrc = WinIsWindowVisible(a);
|
|---|
| 3452 | SetFS(sel);
|
|---|
| 3453 |
|
|---|
| 3454 | return yyrc;
|
|---|
| 3455 | }
|
|---|
| 3456 |
|
|---|
| 3457 | #undef WinIsWindowVisible
|
|---|
| 3458 | #define WinIsWindowVisible _WinIsWindowVisible
|
|---|
| 3459 |
|
|---|
| 3460 | inline LONG _WinLoadMessage(HAB a, HMODULE b, ULONG c, LONG d, PSZ e)
|
|---|
| 3461 | {
|
|---|
| 3462 | LONG yyrc;
|
|---|
| 3463 | USHORT sel = RestoreOS2FS();
|
|---|
| 3464 |
|
|---|
| 3465 | yyrc = WinLoadMessage(a, b, c, d, e);
|
|---|
| 3466 | SetFS(sel);
|
|---|
| 3467 |
|
|---|
| 3468 | return yyrc;
|
|---|
| 3469 | }
|
|---|
| 3470 |
|
|---|
| 3471 | #undef WinLoadMessage
|
|---|
| 3472 | #define WinLoadMessage _WinLoadMessage
|
|---|
| 3473 |
|
|---|
| 3474 | inline LONG _WinLoadString(HAB a, HMODULE b, ULONG c, LONG d, PSZ e)
|
|---|
| 3475 | {
|
|---|
| 3476 | LONG yyrc;
|
|---|
| 3477 | USHORT sel = RestoreOS2FS();
|
|---|
| 3478 |
|
|---|
| 3479 | yyrc = WinLoadString(a, b, c, d, e);
|
|---|
| 3480 | SetFS(sel);
|
|---|
| 3481 |
|
|---|
| 3482 | return yyrc;
|
|---|
| 3483 | }
|
|---|
| 3484 |
|
|---|
| 3485 | #undef WinLoadString
|
|---|
| 3486 | #define WinLoadString _WinLoadString
|
|---|
| 3487 |
|
|---|
| 3488 | inline LONG _WinMultWindowFromIDs(HWND a, PHWND b, ULONG c, ULONG d)
|
|---|
| 3489 | {
|
|---|
| 3490 | LONG yyrc;
|
|---|
| 3491 | USHORT sel = RestoreOS2FS();
|
|---|
| 3492 |
|
|---|
| 3493 | yyrc = WinMultWindowFromIDs(a, b, c, d);
|
|---|
| 3494 | SetFS(sel);
|
|---|
| 3495 |
|
|---|
| 3496 | return yyrc;
|
|---|
| 3497 | }
|
|---|
| 3498 |
|
|---|
| 3499 | #undef WinMultWindowFromIDs
|
|---|
| 3500 | #define WinMultWindowFromIDs _WinMultWindowFromIDs
|
|---|
| 3501 |
|
|---|
| 3502 | inline HWND _WinQueryDesktopWindow(HAB a, HDC b)
|
|---|
| 3503 | {
|
|---|
| 3504 | HWND yyrc;
|
|---|
| 3505 | USHORT sel = RestoreOS2FS();
|
|---|
| 3506 |
|
|---|
| 3507 | yyrc = WinQueryDesktopWindow(a, b);
|
|---|
| 3508 | SetFS(sel);
|
|---|
| 3509 |
|
|---|
| 3510 | return yyrc;
|
|---|
| 3511 | }
|
|---|
| 3512 |
|
|---|
| 3513 | #undef WinQueryDesktopWindow
|
|---|
| 3514 | #define WinQueryDesktopWindow _WinQueryDesktopWindow
|
|---|
| 3515 |
|
|---|
| 3516 | inline HWND _WinQueryObjectWindow(HWND a)
|
|---|
| 3517 | {
|
|---|
| 3518 | HWND yyrc;
|
|---|
| 3519 | USHORT sel = RestoreOS2FS();
|
|---|
| 3520 |
|
|---|
| 3521 | yyrc = WinQueryObjectWindow(a);
|
|---|
| 3522 | SetFS(sel);
|
|---|
| 3523 |
|
|---|
| 3524 | return yyrc;
|
|---|
| 3525 | }
|
|---|
| 3526 |
|
|---|
| 3527 | #undef WinQueryObjectWindow
|
|---|
| 3528 | #define WinQueryObjectWindow _WinQueryObjectWindow
|
|---|
| 3529 |
|
|---|
| 3530 | inline HPOINTER _WinQueryPointer(HWND a)
|
|---|
| 3531 | {
|
|---|
| 3532 | HPOINTER yyrc;
|
|---|
| 3533 | USHORT sel = RestoreOS2FS();
|
|---|
| 3534 |
|
|---|
| 3535 | yyrc = WinQueryPointer(a);
|
|---|
| 3536 | SetFS(sel);
|
|---|
| 3537 |
|
|---|
| 3538 | return yyrc;
|
|---|
| 3539 | }
|
|---|
| 3540 |
|
|---|
| 3541 | #undef WinQueryPointer
|
|---|
| 3542 | #define WinQueryPointer _WinQueryPointer
|
|---|
| 3543 |
|
|---|
| 3544 | inline HWND _WinQueryWindow(HWND a, LONG b)
|
|---|
| 3545 | {
|
|---|
| 3546 | HWND yyrc;
|
|---|
| 3547 | USHORT sel = RestoreOS2FS();
|
|---|
| 3548 |
|
|---|
| 3549 | yyrc = WinQueryWindow(a, b);
|
|---|
| 3550 | SetFS(sel);
|
|---|
| 3551 |
|
|---|
| 3552 | return yyrc;
|
|---|
| 3553 | }
|
|---|
| 3554 |
|
|---|
| 3555 | #undef WinQueryWindow
|
|---|
| 3556 | #define WinQueryWindow _WinQueryWindow
|
|---|
| 3557 |
|
|---|
| 3558 | inline BOOL _WinQueryWindowPos(HWND a, PSWP b)
|
|---|
| 3559 | {
|
|---|
| 3560 | BOOL yyrc;
|
|---|
| 3561 | USHORT sel = RestoreOS2FS();
|
|---|
| 3562 |
|
|---|
| 3563 | yyrc = WinQueryWindowPos(a, b);
|
|---|
| 3564 | SetFS(sel);
|
|---|
| 3565 |
|
|---|
| 3566 | return yyrc;
|
|---|
| 3567 | }
|
|---|
| 3568 |
|
|---|
| 3569 | #undef WinQueryWindowPos
|
|---|
| 3570 | #define WinQueryWindowPos _WinQueryWindowPos
|
|---|
| 3571 |
|
|---|
| 3572 | inline BOOL _WinQueryWindowProcess(HWND a, PPID b, PTID c)
|
|---|
| 3573 | {
|
|---|
| 3574 | BOOL yyrc;
|
|---|
| 3575 | USHORT sel = RestoreOS2FS();
|
|---|
| 3576 |
|
|---|
| 3577 | yyrc = WinQueryWindowProcess(a, b, c);
|
|---|
| 3578 | SetFS(sel);
|
|---|
| 3579 |
|
|---|
| 3580 | return yyrc;
|
|---|
| 3581 | }
|
|---|
| 3582 |
|
|---|
| 3583 | #undef WinQueryWindowProcess
|
|---|
| 3584 | #define WinQueryWindowProcess _WinQueryWindowProcess
|
|---|
| 3585 |
|
|---|
| 3586 | inline LONG _WinQueryWindowText(HWND a, LONG b, PCH c)
|
|---|
| 3587 | {
|
|---|
| 3588 | LONG yyrc;
|
|---|
| 3589 | USHORT sel = RestoreOS2FS();
|
|---|
| 3590 |
|
|---|
| 3591 | yyrc = WinQueryWindowText(a, b, c);
|
|---|
| 3592 | SetFS(sel);
|
|---|
| 3593 |
|
|---|
| 3594 | return yyrc;
|
|---|
| 3595 | }
|
|---|
| 3596 |
|
|---|
| 3597 | #undef WinQueryWindowText
|
|---|
| 3598 | #define WinQueryWindowText _WinQueryWindowText
|
|---|
| 3599 |
|
|---|
| 3600 | inline LONG _WinQueryWindowTextLength(HWND a)
|
|---|
| 3601 | {
|
|---|
| 3602 | LONG yyrc;
|
|---|
| 3603 | USHORT sel = RestoreOS2FS();
|
|---|
| 3604 |
|
|---|
| 3605 | yyrc = WinQueryWindowTextLength(a);
|
|---|
| 3606 | SetFS(sel);
|
|---|
| 3607 |
|
|---|
| 3608 | return yyrc;
|
|---|
| 3609 | }
|
|---|
| 3610 |
|
|---|
| 3611 | #undef WinQueryWindowTextLength
|
|---|
| 3612 | #define WinQueryWindowTextLength _WinQueryWindowTextLength
|
|---|
| 3613 |
|
|---|
| 3614 | inline BOOL _WinSetMultWindowPos(HAB a, PSWP b, ULONG c)
|
|---|
| 3615 | {
|
|---|
| 3616 | BOOL yyrc;
|
|---|
| 3617 | USHORT sel = RestoreOS2FS();
|
|---|
| 3618 |
|
|---|
| 3619 | yyrc = WinSetMultWindowPos(a, b, c);
|
|---|
| 3620 | SetFS(sel);
|
|---|
| 3621 |
|
|---|
| 3622 | return yyrc;
|
|---|
| 3623 | }
|
|---|
| 3624 |
|
|---|
| 3625 | #undef WinSetMultWindowPos
|
|---|
| 3626 | #define WinSetMultWindowPos _WinSetMultWindowPos
|
|---|
| 3627 |
|
|---|
| 3628 | inline BOOL _WinSetOwner(HWND a, HWND b)
|
|---|
| 3629 | {
|
|---|
| 3630 | BOOL yyrc;
|
|---|
| 3631 | USHORT sel = RestoreOS2FS();
|
|---|
| 3632 |
|
|---|
| 3633 | yyrc = WinSetOwner(a, b);
|
|---|
| 3634 | SetFS(sel);
|
|---|
| 3635 |
|
|---|
| 3636 | return yyrc;
|
|---|
| 3637 | }
|
|---|
| 3638 |
|
|---|
| 3639 | #undef WinSetOwner
|
|---|
| 3640 | #define WinSetOwner _WinSetOwner
|
|---|
| 3641 |
|
|---|
| 3642 | inline BOOL _WinSetParent(HWND a, HWND b, BOOL c)
|
|---|
| 3643 | {
|
|---|
| 3644 | BOOL yyrc;
|
|---|
| 3645 | USHORT sel = RestoreOS2FS();
|
|---|
| 3646 |
|
|---|
| 3647 | yyrc = WinSetParent(a, b, c);
|
|---|
| 3648 | SetFS(sel);
|
|---|
| 3649 |
|
|---|
| 3650 | return yyrc;
|
|---|
| 3651 | }
|
|---|
| 3652 |
|
|---|
| 3653 | #undef WinSetParent
|
|---|
| 3654 | #define WinSetParent _WinSetParent
|
|---|
| 3655 |
|
|---|
| 3656 | inline BOOL _WinSetWindowPos(HWND a, HWND b, LONG c, LONG d, LONG e, LONG f, ULONG g)
|
|---|
| 3657 | {
|
|---|
| 3658 | BOOL yyrc;
|
|---|
| 3659 | USHORT sel = RestoreOS2FS();
|
|---|
| 3660 |
|
|---|
| 3661 | yyrc = WinSetWindowPos(a, b, c, d, e, f, g);
|
|---|
| 3662 | SetFS(sel);
|
|---|
| 3663 |
|
|---|
| 3664 | return yyrc;
|
|---|
| 3665 | }
|
|---|
| 3666 |
|
|---|
| 3667 | #undef WinSetWindowPos
|
|---|
| 3668 | #define WinSetWindowPos _WinSetWindowPos
|
|---|
| 3669 |
|
|---|
| 3670 | inline BOOL _WinSetWindowText(HWND a, PCSZ b)
|
|---|
| 3671 | {
|
|---|
| 3672 | BOOL yyrc;
|
|---|
| 3673 | USHORT sel = RestoreOS2FS();
|
|---|
| 3674 |
|
|---|
| 3675 | yyrc = WinSetWindowText(a, b);
|
|---|
| 3676 | SetFS(sel);
|
|---|
| 3677 |
|
|---|
| 3678 | return yyrc;
|
|---|
| 3679 | }
|
|---|
| 3680 |
|
|---|
| 3681 | #undef WinSetWindowText
|
|---|
| 3682 | #define WinSetWindowText _WinSetWindowText
|
|---|
| 3683 |
|
|---|
| 3684 | inline BOOL _WinUpdateWindow(HWND a)
|
|---|
| 3685 | {
|
|---|
| 3686 | BOOL yyrc;
|
|---|
| 3687 | USHORT sel = RestoreOS2FS();
|
|---|
| 3688 |
|
|---|
| 3689 | yyrc = WinUpdateWindow(a);
|
|---|
| 3690 | SetFS(sel);
|
|---|
| 3691 |
|
|---|
| 3692 | return yyrc;
|
|---|
| 3693 | }
|
|---|
| 3694 |
|
|---|
| 3695 | #undef WinUpdateWindow
|
|---|
| 3696 | #define WinUpdateWindow _WinUpdateWindow
|
|---|
| 3697 |
|
|---|
| 3698 | inline HWND _WinWindowFromID(HWND a, ULONG b)
|
|---|
| 3699 | {
|
|---|
| 3700 | HWND yyrc;
|
|---|
| 3701 | USHORT sel = RestoreOS2FS();
|
|---|
| 3702 |
|
|---|
| 3703 | yyrc = WinWindowFromID(a, b);
|
|---|
| 3704 | SetFS(sel);
|
|---|
| 3705 |
|
|---|
| 3706 | return yyrc;
|
|---|
| 3707 | }
|
|---|
| 3708 |
|
|---|
| 3709 | #undef WinWindowFromID
|
|---|
| 3710 | #define WinWindowFromID _WinWindowFromID
|
|---|
| 3711 |
|
|---|
| 3712 | #ifdef INCL_WINFRAMEMGR
|
|---|
| 3713 | inline HWND _WinCreateStdWindow(HWND a, ULONG b, PULONG c, PCSZ d, PCSZ e, ULONG f, HMODULE g, ULONG h, PHWND i)
|
|---|
| 3714 | {
|
|---|
| 3715 | HWND yyrc;
|
|---|
| 3716 | USHORT sel = RestoreOS2FS();
|
|---|
| 3717 |
|
|---|
| 3718 | yyrc = WinCreateStdWindow(a, b, c, d, e, f, g, h, i);
|
|---|
| 3719 | SetFS(sel);
|
|---|
| 3720 |
|
|---|
| 3721 | return yyrc;
|
|---|
| 3722 | }
|
|---|
| 3723 |
|
|---|
| 3724 | #undef WinCreateStdWindow
|
|---|
| 3725 | #define WinCreateStdWindow _WinCreateStdWindow
|
|---|
| 3726 |
|
|---|
| 3727 | inline BOOL _WinCalcFrameRect(HWND a, PRECTL b, BOOL c)
|
|---|
| 3728 | {
|
|---|
| 3729 | BOOL yyrc;
|
|---|
| 3730 | USHORT sel = RestoreOS2FS();
|
|---|
| 3731 |
|
|---|
| 3732 | yyrc = WinCalcFrameRect(a, b, c);
|
|---|
| 3733 | SetFS(sel);
|
|---|
| 3734 |
|
|---|
| 3735 | return yyrc;
|
|---|
| 3736 | }
|
|---|
| 3737 |
|
|---|
| 3738 | #undef WinCalcFrameRect
|
|---|
| 3739 | #define WinCalcFrameRect _WinCalcFrameRect
|
|---|
| 3740 |
|
|---|
| 3741 | inline BOOL _WinCreateFrameControls(HWND a, PFRAMECDATA b, PCSZ c)
|
|---|
| 3742 | {
|
|---|
| 3743 | BOOL yyrc;
|
|---|
| 3744 | USHORT sel = RestoreOS2FS();
|
|---|
| 3745 |
|
|---|
| 3746 | yyrc = WinCreateFrameControls(a, b, c);
|
|---|
| 3747 | SetFS(sel);
|
|---|
| 3748 |
|
|---|
| 3749 | return yyrc;
|
|---|
| 3750 | }
|
|---|
| 3751 |
|
|---|
| 3752 | #undef WinCreateFrameControls
|
|---|
| 3753 | #define WinCreateFrameControls _WinCreateFrameControls
|
|---|
| 3754 |
|
|---|
| 3755 | inline BOOL _WinFlashWindow(HWND a, BOOL b)
|
|---|
| 3756 | {
|
|---|
| 3757 | BOOL yyrc;
|
|---|
| 3758 | USHORT sel = RestoreOS2FS();
|
|---|
| 3759 |
|
|---|
| 3760 | yyrc = WinFlashWindow(a, b);
|
|---|
| 3761 | SetFS(sel);
|
|---|
| 3762 |
|
|---|
| 3763 | return yyrc;
|
|---|
| 3764 | }
|
|---|
| 3765 |
|
|---|
| 3766 | #undef WinFlashWindow
|
|---|
| 3767 | #define WinFlashWindow _WinFlashWindow
|
|---|
| 3768 |
|
|---|
| 3769 | inline BOOL _WinGetMaxPosition(HWND a, PSWP b)
|
|---|
| 3770 | {
|
|---|
| 3771 | BOOL yyrc;
|
|---|
| 3772 | USHORT sel = RestoreOS2FS();
|
|---|
| 3773 |
|
|---|
| 3774 | yyrc = WinGetMaxPosition(a, b);
|
|---|
| 3775 | SetFS(sel);
|
|---|
| 3776 |
|
|---|
| 3777 | return yyrc;
|
|---|
| 3778 | }
|
|---|
| 3779 |
|
|---|
| 3780 | #undef WinGetMaxPosition
|
|---|
| 3781 | #define WinGetMaxPosition _WinGetMaxPosition
|
|---|
| 3782 |
|
|---|
| 3783 | inline BOOL _WinGetMinPosition(HWND a, PSWP b, PPOINTL c)
|
|---|
| 3784 | {
|
|---|
| 3785 | BOOL yyrc;
|
|---|
| 3786 | USHORT sel = RestoreOS2FS();
|
|---|
| 3787 |
|
|---|
| 3788 | yyrc = WinGetMinPosition(a, b, c);
|
|---|
| 3789 | SetFS(sel);
|
|---|
| 3790 |
|
|---|
| 3791 | return yyrc;
|
|---|
| 3792 | }
|
|---|
| 3793 |
|
|---|
| 3794 | #undef WinGetMinPosition
|
|---|
| 3795 | #define WinGetMinPosition _WinGetMinPosition
|
|---|
| 3796 |
|
|---|
| 3797 | inline BOOL _WinSaveWindowPos(HSAVEWP a, PSWP b, ULONG c)
|
|---|
| 3798 | {
|
|---|
| 3799 | BOOL yyrc;
|
|---|
| 3800 | USHORT sel = RestoreOS2FS();
|
|---|
| 3801 |
|
|---|
| 3802 | yyrc = WinSaveWindowPos(a, b, c);
|
|---|
| 3803 | SetFS(sel);
|
|---|
| 3804 |
|
|---|
| 3805 | return yyrc;
|
|---|
| 3806 | }
|
|---|
| 3807 |
|
|---|
| 3808 | #undef WinSaveWindowPos
|
|---|
| 3809 | #define WinSaveWindowPos _WinSaveWindowPos
|
|---|
| 3810 |
|
|---|
| 3811 | #endif
|
|---|
| 3812 | #ifdef INCL_WINWINDOWMGR
|
|---|
| 3813 | inline HPS _WinBeginPaint(HWND a, HPS b, PRECTL c)
|
|---|
| 3814 | {
|
|---|
| 3815 | HPS yyrc;
|
|---|
| 3816 | USHORT sel = RestoreOS2FS();
|
|---|
| 3817 |
|
|---|
| 3818 | yyrc = WinBeginPaint(a, b, c);
|
|---|
| 3819 | SetFS(sel);
|
|---|
| 3820 |
|
|---|
| 3821 | return yyrc;
|
|---|
| 3822 | }
|
|---|
| 3823 |
|
|---|
| 3824 | #undef WinBeginPaint
|
|---|
| 3825 | #define WinBeginPaint _WinBeginPaint
|
|---|
| 3826 |
|
|---|
| 3827 | inline MRESULT _WinDefWindowProc(HWND a, ULONG b, MPARAM c, MPARAM d)
|
|---|
| 3828 | {
|
|---|
| 3829 | MRESULT yyrc;
|
|---|
| 3830 | USHORT sel = RestoreOS2FS();
|
|---|
| 3831 |
|
|---|
| 3832 | yyrc = WinDefWindowProc(a, b, c, d);
|
|---|
| 3833 | SetFS(sel);
|
|---|
| 3834 |
|
|---|
| 3835 | return yyrc;
|
|---|
| 3836 | }
|
|---|
| 3837 |
|
|---|
| 3838 | #undef WinDefWindowProc
|
|---|
| 3839 | #define WinDefWindowProc _WinDefWindowProc
|
|---|
| 3840 |
|
|---|
| 3841 | inline BOOL _WinDestroyWindow(HWND a)
|
|---|
| 3842 | {
|
|---|
| 3843 | BOOL yyrc;
|
|---|
| 3844 | USHORT sel = RestoreOS2FS();
|
|---|
| 3845 |
|
|---|
| 3846 | yyrc = WinDestroyWindow(a);
|
|---|
| 3847 | SetFS(sel);
|
|---|
| 3848 |
|
|---|
| 3849 | return yyrc;
|
|---|
| 3850 | }
|
|---|
| 3851 |
|
|---|
| 3852 | #undef WinDestroyWindow
|
|---|
| 3853 | #define WinDestroyWindow _WinDestroyWindow
|
|---|
| 3854 |
|
|---|
| 3855 | inline BOOL _WinEndPaint(HPS a)
|
|---|
| 3856 | {
|
|---|
| 3857 | BOOL yyrc;
|
|---|
| 3858 | USHORT sel = RestoreOS2FS();
|
|---|
| 3859 |
|
|---|
| 3860 | yyrc = WinEndPaint(a);
|
|---|
| 3861 | SetFS(sel);
|
|---|
| 3862 |
|
|---|
| 3863 | return yyrc;
|
|---|
| 3864 | }
|
|---|
| 3865 |
|
|---|
| 3866 | #undef WinEndPaint
|
|---|
| 3867 | #define WinEndPaint _WinEndPaint
|
|---|
| 3868 |
|
|---|
| 3869 | inline BOOL _WinFillRect(HPS a, PRECTL b, LONG c)
|
|---|
| 3870 | {
|
|---|
| 3871 | BOOL yyrc;
|
|---|
| 3872 | USHORT sel = RestoreOS2FS();
|
|---|
| 3873 |
|
|---|
| 3874 | yyrc = WinFillRect(a, b, c);
|
|---|
| 3875 | SetFS(sel);
|
|---|
| 3876 |
|
|---|
| 3877 | return yyrc;
|
|---|
| 3878 | }
|
|---|
| 3879 |
|
|---|
| 3880 | #undef WinFillRect
|
|---|
| 3881 | #define WinFillRect _WinFillRect
|
|---|
| 3882 |
|
|---|
| 3883 | inline HPS _WinGetClipPS(HWND a, HWND b, ULONG c)
|
|---|
| 3884 | {
|
|---|
| 3885 | HPS yyrc;
|
|---|
| 3886 | USHORT sel = RestoreOS2FS();
|
|---|
| 3887 |
|
|---|
| 3888 | yyrc = WinGetClipPS(a, b, c);
|
|---|
| 3889 | SetFS(sel);
|
|---|
| 3890 |
|
|---|
| 3891 | return yyrc;
|
|---|
| 3892 | }
|
|---|
| 3893 |
|
|---|
| 3894 | #undef WinGetClipPS
|
|---|
| 3895 | #define WinGetClipPS _WinGetClipPS
|
|---|
| 3896 |
|
|---|
| 3897 | inline HPS _WinGetPS(HWND a)
|
|---|
| 3898 | {
|
|---|
| 3899 | HPS yyrc;
|
|---|
| 3900 | USHORT sel = RestoreOS2FS();
|
|---|
| 3901 |
|
|---|
| 3902 | yyrc = WinGetPS(a);
|
|---|
| 3903 | SetFS(sel);
|
|---|
| 3904 |
|
|---|
| 3905 | return yyrc;
|
|---|
| 3906 | }
|
|---|
| 3907 |
|
|---|
| 3908 | #undef WinGetPS
|
|---|
| 3909 | #define WinGetPS _WinGetPS
|
|---|
| 3910 |
|
|---|
| 3911 | inline HAB _WinInitialize(ULONG a)
|
|---|
| 3912 | {
|
|---|
| 3913 | HAB yyrc;
|
|---|
| 3914 | USHORT sel = RestoreOS2FS();
|
|---|
| 3915 |
|
|---|
| 3916 | yyrc = WinInitialize(a);
|
|---|
| 3917 | SetFS(sel);
|
|---|
| 3918 |
|
|---|
| 3919 | return yyrc;
|
|---|
| 3920 | }
|
|---|
| 3921 |
|
|---|
| 3922 | #undef WinInitialize
|
|---|
| 3923 | #define WinInitialize _WinInitialize
|
|---|
| 3924 |
|
|---|
| 3925 | inline BOOL _WinIsWindowShowing(HWND a)
|
|---|
| 3926 | {
|
|---|
| 3927 | BOOL yyrc;
|
|---|
| 3928 | USHORT sel = RestoreOS2FS();
|
|---|
| 3929 |
|
|---|
| 3930 | yyrc = WinIsWindowShowing(a);
|
|---|
| 3931 | SetFS(sel);
|
|---|
| 3932 |
|
|---|
| 3933 | return yyrc;
|
|---|
| 3934 | }
|
|---|
| 3935 |
|
|---|
| 3936 | #undef WinIsWindowShowing
|
|---|
| 3937 | #define WinIsWindowShowing _WinIsWindowShowing
|
|---|
| 3938 |
|
|---|
| 3939 | inline HDC _WinOpenWindowDC(HWND a)
|
|---|
| 3940 | {
|
|---|
| 3941 | HDC yyrc;
|
|---|
| 3942 | USHORT sel = RestoreOS2FS();
|
|---|
| 3943 |
|
|---|
| 3944 | yyrc = WinOpenWindowDC(a);
|
|---|
| 3945 | SetFS(sel);
|
|---|
| 3946 |
|
|---|
| 3947 | return yyrc;
|
|---|
| 3948 | }
|
|---|
| 3949 |
|
|---|
| 3950 | #undef WinOpenWindowDC
|
|---|
| 3951 | #define WinOpenWindowDC _WinOpenWindowDC
|
|---|
| 3952 |
|
|---|
| 3953 | inline HAB _WinQueryAnchorBlock(HWND a)
|
|---|
| 3954 | {
|
|---|
| 3955 | HAB yyrc;
|
|---|
| 3956 | USHORT sel = RestoreOS2FS();
|
|---|
| 3957 |
|
|---|
| 3958 | yyrc = WinQueryAnchorBlock(a);
|
|---|
| 3959 | SetFS(sel);
|
|---|
| 3960 |
|
|---|
| 3961 | return yyrc;
|
|---|
| 3962 | }
|
|---|
| 3963 |
|
|---|
| 3964 | #undef WinQueryAnchorBlock
|
|---|
| 3965 | #define WinQueryAnchorBlock _WinQueryAnchorBlock
|
|---|
| 3966 |
|
|---|
| 3967 | inline ULONG _WinQueryVersion(HAB a)
|
|---|
| 3968 | {
|
|---|
| 3969 | ULONG yyrc;
|
|---|
| 3970 | USHORT sel = RestoreOS2FS();
|
|---|
| 3971 |
|
|---|
| 3972 | yyrc = WinQueryVersion(a);
|
|---|
| 3973 | SetFS(sel);
|
|---|
| 3974 |
|
|---|
| 3975 | return yyrc;
|
|---|
| 3976 | }
|
|---|
| 3977 |
|
|---|
| 3978 | #undef WinQueryVersion
|
|---|
| 3979 | #define WinQueryVersion _WinQueryVersion
|
|---|
| 3980 |
|
|---|
| 3981 | inline BOOL _WinQueryWindowRect(HWND a, PRECTL b)
|
|---|
| 3982 | {
|
|---|
| 3983 | BOOL yyrc;
|
|---|
| 3984 | USHORT sel = RestoreOS2FS();
|
|---|
| 3985 |
|
|---|
| 3986 | yyrc = WinQueryWindowRect(a, b);
|
|---|
| 3987 | SetFS(sel);
|
|---|
| 3988 |
|
|---|
| 3989 | return yyrc;
|
|---|
| 3990 | }
|
|---|
| 3991 |
|
|---|
| 3992 | #undef WinQueryWindowRect
|
|---|
| 3993 | #define WinQueryWindowRect _WinQueryWindowRect
|
|---|
| 3994 |
|
|---|
| 3995 | inline BOOL _WinRegisterClass(HAB a, PCSZ b, PFNWP c, ULONG d, ULONG e)
|
|---|
| 3996 | {
|
|---|
| 3997 | BOOL yyrc;
|
|---|
| 3998 | USHORT sel = RestoreOS2FS();
|
|---|
| 3999 |
|
|---|
| 4000 | yyrc = WinRegisterClass(a, b, c, d, e);
|
|---|
| 4001 | SetFS(sel);
|
|---|
| 4002 |
|
|---|
| 4003 | return yyrc;
|
|---|
| 4004 | }
|
|---|
| 4005 |
|
|---|
| 4006 | #undef WinRegisterClass
|
|---|
| 4007 | #define WinRegisterClass _WinRegisterClass
|
|---|
| 4008 |
|
|---|
| 4009 | inline BOOL _WinReleasePS(HPS a)
|
|---|
| 4010 | {
|
|---|
| 4011 | BOOL yyrc;
|
|---|
| 4012 | USHORT sel = RestoreOS2FS();
|
|---|
| 4013 |
|
|---|
| 4014 | yyrc = WinReleasePS(a);
|
|---|
| 4015 | SetFS(sel);
|
|---|
| 4016 |
|
|---|
| 4017 | return yyrc;
|
|---|
| 4018 | }
|
|---|
| 4019 |
|
|---|
| 4020 | #undef WinReleasePS
|
|---|
| 4021 | #define WinReleasePS _WinReleasePS
|
|---|
| 4022 |
|
|---|
| 4023 | inline LONG _WinScrollWindow(HWND a, LONG b, LONG c, PRECTL d, PRECTL e, HRGN f, PRECTL g, ULONG h)
|
|---|
| 4024 | {
|
|---|
| 4025 | LONG yyrc;
|
|---|
| 4026 | USHORT sel = RestoreOS2FS();
|
|---|
| 4027 |
|
|---|
| 4028 | yyrc = WinScrollWindow(a, b, c, d, e, f, g, h);
|
|---|
| 4029 | SetFS(sel);
|
|---|
| 4030 |
|
|---|
| 4031 | return yyrc;
|
|---|
| 4032 | }
|
|---|
| 4033 |
|
|---|
| 4034 | #undef WinScrollWindow
|
|---|
| 4035 | #define WinScrollWindow _WinScrollWindow
|
|---|
| 4036 |
|
|---|
| 4037 | inline BOOL _WinSetActiveWindow(HWND a, HWND b)
|
|---|
| 4038 | {
|
|---|
| 4039 | BOOL yyrc;
|
|---|
| 4040 | USHORT sel = RestoreOS2FS();
|
|---|
| 4041 |
|
|---|
| 4042 | yyrc = WinSetActiveWindow(a, b);
|
|---|
| 4043 | SetFS(sel);
|
|---|
| 4044 |
|
|---|
| 4045 | return yyrc;
|
|---|
| 4046 | }
|
|---|
| 4047 |
|
|---|
| 4048 | #undef WinSetActiveWindow
|
|---|
| 4049 | #define WinSetActiveWindow _WinSetActiveWindow
|
|---|
| 4050 |
|
|---|
| 4051 | inline BOOL _WinShowWindow(HWND a, BOOL b)
|
|---|
| 4052 | {
|
|---|
| 4053 | BOOL yyrc;
|
|---|
| 4054 | USHORT sel = RestoreOS2FS();
|
|---|
| 4055 |
|
|---|
| 4056 | yyrc = WinShowWindow(a, b);
|
|---|
| 4057 | SetFS(sel);
|
|---|
| 4058 |
|
|---|
| 4059 | return yyrc;
|
|---|
| 4060 | }
|
|---|
| 4061 |
|
|---|
| 4062 | #undef WinShowWindow
|
|---|
| 4063 | #define WinShowWindow _WinShowWindow
|
|---|
| 4064 |
|
|---|
| 4065 | inline BOOL _WinTerminate(HAB a)
|
|---|
| 4066 | {
|
|---|
| 4067 | BOOL yyrc;
|
|---|
| 4068 | USHORT sel = RestoreOS2FS();
|
|---|
| 4069 |
|
|---|
| 4070 | yyrc = WinTerminate(a);
|
|---|
| 4071 | SetFS(sel);
|
|---|
| 4072 |
|
|---|
| 4073 | return yyrc;
|
|---|
| 4074 | }
|
|---|
| 4075 |
|
|---|
| 4076 | #undef WinTerminate
|
|---|
| 4077 | #define WinTerminate _WinTerminate
|
|---|
| 4078 |
|
|---|
| 4079 | #endif
|
|---|
| 4080 | #ifdef INCL_WINWINDOWMGR
|
|---|
| 4081 | inline HENUM _WinBeginEnumWindows(HWND a)
|
|---|
| 4082 | {
|
|---|
| 4083 | HENUM yyrc;
|
|---|
| 4084 | USHORT sel = RestoreOS2FS();
|
|---|
| 4085 |
|
|---|
| 4086 | yyrc = WinBeginEnumWindows(a);
|
|---|
| 4087 | SetFS(sel);
|
|---|
| 4088 |
|
|---|
| 4089 | return yyrc;
|
|---|
| 4090 | }
|
|---|
| 4091 |
|
|---|
| 4092 | #undef WinBeginEnumWindows
|
|---|
| 4093 | #define WinBeginEnumWindows _WinBeginEnumWindows
|
|---|
| 4094 |
|
|---|
| 4095 | inline BOOL _WinEndEnumWindows(HENUM a)
|
|---|
| 4096 | {
|
|---|
| 4097 | BOOL yyrc;
|
|---|
| 4098 | USHORT sel = RestoreOS2FS();
|
|---|
| 4099 |
|
|---|
| 4100 | yyrc = WinEndEnumWindows(a);
|
|---|
| 4101 | SetFS(sel);
|
|---|
| 4102 |
|
|---|
| 4103 | return yyrc;
|
|---|
| 4104 | }
|
|---|
| 4105 |
|
|---|
| 4106 | #undef WinEndEnumWindows
|
|---|
| 4107 | #define WinEndEnumWindows _WinEndEnumWindows
|
|---|
| 4108 |
|
|---|
| 4109 | inline LONG _WinExcludeUpdateRegion(HPS a, HWND b)
|
|---|
| 4110 | {
|
|---|
| 4111 | LONG yyrc;
|
|---|
| 4112 | USHORT sel = RestoreOS2FS();
|
|---|
| 4113 |
|
|---|
| 4114 | yyrc = WinExcludeUpdateRegion(a, b);
|
|---|
| 4115 | SetFS(sel);
|
|---|
| 4116 |
|
|---|
| 4117 | return yyrc;
|
|---|
| 4118 | }
|
|---|
| 4119 |
|
|---|
| 4120 | #undef WinExcludeUpdateRegion
|
|---|
| 4121 | #define WinExcludeUpdateRegion _WinExcludeUpdateRegion
|
|---|
| 4122 |
|
|---|
| 4123 | inline HWND _WinGetNextWindow(HENUM a)
|
|---|
| 4124 | {
|
|---|
| 4125 | HWND yyrc;
|
|---|
| 4126 | USHORT sel = RestoreOS2FS();
|
|---|
| 4127 |
|
|---|
| 4128 | yyrc = WinGetNextWindow(a);
|
|---|
| 4129 | SetFS(sel);
|
|---|
| 4130 |
|
|---|
| 4131 | return yyrc;
|
|---|
| 4132 | }
|
|---|
| 4133 |
|
|---|
| 4134 | #undef WinGetNextWindow
|
|---|
| 4135 | #define WinGetNextWindow _WinGetNextWindow
|
|---|
| 4136 |
|
|---|
| 4137 | inline HPS _WinGetScreenPS(HWND a)
|
|---|
| 4138 | {
|
|---|
| 4139 | HPS yyrc;
|
|---|
| 4140 | USHORT sel = RestoreOS2FS();
|
|---|
| 4141 |
|
|---|
| 4142 | yyrc = WinGetScreenPS(a);
|
|---|
| 4143 | SetFS(sel);
|
|---|
| 4144 |
|
|---|
| 4145 | return yyrc;
|
|---|
| 4146 | }
|
|---|
| 4147 |
|
|---|
| 4148 | #undef WinGetScreenPS
|
|---|
| 4149 | #define WinGetScreenPS _WinGetScreenPS
|
|---|
| 4150 |
|
|---|
| 4151 | inline BOOL _WinIsThreadActive(HAB a)
|
|---|
| 4152 | {
|
|---|
| 4153 | BOOL yyrc;
|
|---|
| 4154 | USHORT sel = RestoreOS2FS();
|
|---|
| 4155 |
|
|---|
| 4156 | yyrc = WinIsThreadActive(a);
|
|---|
| 4157 | SetFS(sel);
|
|---|
| 4158 |
|
|---|
| 4159 | return yyrc;
|
|---|
| 4160 | }
|
|---|
| 4161 |
|
|---|
| 4162 | #undef WinIsThreadActive
|
|---|
| 4163 | #define WinIsThreadActive _WinIsThreadActive
|
|---|
| 4164 |
|
|---|
| 4165 | inline BOOL _WinLockVisRegions(HWND a, BOOL b)
|
|---|
| 4166 | {
|
|---|
| 4167 | BOOL yyrc;
|
|---|
| 4168 | USHORT sel = RestoreOS2FS();
|
|---|
| 4169 |
|
|---|
| 4170 | yyrc = WinLockVisRegions(a, b);
|
|---|
| 4171 | SetFS(sel);
|
|---|
| 4172 |
|
|---|
| 4173 | return yyrc;
|
|---|
| 4174 | }
|
|---|
| 4175 |
|
|---|
| 4176 | #undef WinLockVisRegions
|
|---|
| 4177 | #define WinLockVisRegions _WinLockVisRegions
|
|---|
| 4178 |
|
|---|
| 4179 | inline BOOL _WinLockWindowUpdate(HWND a, HWND b)
|
|---|
| 4180 | {
|
|---|
| 4181 | BOOL yyrc;
|
|---|
| 4182 | USHORT sel = RestoreOS2FS();
|
|---|
| 4183 |
|
|---|
| 4184 | yyrc = WinLockWindowUpdate(a, b);
|
|---|
| 4185 | SetFS(sel);
|
|---|
| 4186 |
|
|---|
| 4187 | return yyrc;
|
|---|
| 4188 | }
|
|---|
| 4189 |
|
|---|
| 4190 | #undef WinLockWindowUpdate
|
|---|
| 4191 | #define WinLockWindowUpdate _WinLockWindowUpdate
|
|---|
| 4192 |
|
|---|
| 4193 | inline BOOL _WinMapWindowPoints(HWND a, HWND b, PPOINTL c, LONG d)
|
|---|
| 4194 | {
|
|---|
| 4195 | BOOL yyrc;
|
|---|
| 4196 | USHORT sel = RestoreOS2FS();
|
|---|
| 4197 |
|
|---|
| 4198 | yyrc = WinMapWindowPoints(a, b, c, d);
|
|---|
| 4199 | SetFS(sel);
|
|---|
| 4200 |
|
|---|
| 4201 | return yyrc;
|
|---|
| 4202 | }
|
|---|
| 4203 |
|
|---|
| 4204 | #undef WinMapWindowPoints
|
|---|
| 4205 | #define WinMapWindowPoints _WinMapWindowPoints
|
|---|
| 4206 |
|
|---|
| 4207 | inline HWND _WinQueryActiveWindow(HWND a)
|
|---|
| 4208 | {
|
|---|
| 4209 | HWND yyrc;
|
|---|
| 4210 | USHORT sel = RestoreOS2FS();
|
|---|
| 4211 |
|
|---|
| 4212 | yyrc = WinQueryActiveWindow(a);
|
|---|
| 4213 | SetFS(sel);
|
|---|
| 4214 |
|
|---|
| 4215 | return yyrc;
|
|---|
| 4216 | }
|
|---|
| 4217 |
|
|---|
| 4218 | #undef WinQueryActiveWindow
|
|---|
| 4219 | #define WinQueryActiveWindow _WinQueryActiveWindow
|
|---|
| 4220 |
|
|---|
| 4221 | inline BOOL _WinQueryClassInfo(HAB a, PCSZ b, PCLASSINFO c)
|
|---|
| 4222 | {
|
|---|
| 4223 | BOOL yyrc;
|
|---|
| 4224 | USHORT sel = RestoreOS2FS();
|
|---|
| 4225 |
|
|---|
| 4226 | yyrc = WinQueryClassInfo(a, b, c);
|
|---|
| 4227 | SetFS(sel);
|
|---|
| 4228 |
|
|---|
| 4229 | return yyrc;
|
|---|
| 4230 | }
|
|---|
| 4231 |
|
|---|
| 4232 | #undef WinQueryClassInfo
|
|---|
| 4233 | #define WinQueryClassInfo _WinQueryClassInfo
|
|---|
| 4234 |
|
|---|
| 4235 | inline LONG _WinQueryClassName(HWND a, LONG b, PCH c)
|
|---|
| 4236 | {
|
|---|
| 4237 | LONG yyrc;
|
|---|
| 4238 | USHORT sel = RestoreOS2FS();
|
|---|
| 4239 |
|
|---|
| 4240 | yyrc = WinQueryClassName(a, b, c);
|
|---|
| 4241 | SetFS(sel);
|
|---|
| 4242 |
|
|---|
| 4243 | return yyrc;
|
|---|
| 4244 | }
|
|---|
| 4245 |
|
|---|
| 4246 | #undef WinQueryClassName
|
|---|
| 4247 | #define WinQueryClassName _WinQueryClassName
|
|---|
| 4248 |
|
|---|
| 4249 | inline BOOL _WinQueryUpdateRect(HWND a, PRECTL b)
|
|---|
| 4250 | {
|
|---|
| 4251 | BOOL yyrc;
|
|---|
| 4252 | USHORT sel = RestoreOS2FS();
|
|---|
| 4253 |
|
|---|
| 4254 | yyrc = WinQueryUpdateRect(a, b);
|
|---|
| 4255 | SetFS(sel);
|
|---|
| 4256 |
|
|---|
| 4257 | return yyrc;
|
|---|
| 4258 | }
|
|---|
| 4259 |
|
|---|
| 4260 | #undef WinQueryUpdateRect
|
|---|
| 4261 | #define WinQueryUpdateRect _WinQueryUpdateRect
|
|---|
| 4262 |
|
|---|
| 4263 | inline LONG _WinQueryUpdateRegion(HWND a, HRGN b)
|
|---|
| 4264 | {
|
|---|
| 4265 | LONG yyrc;
|
|---|
| 4266 | USHORT sel = RestoreOS2FS();
|
|---|
| 4267 |
|
|---|
| 4268 | yyrc = WinQueryUpdateRegion(a, b);
|
|---|
| 4269 | SetFS(sel);
|
|---|
| 4270 |
|
|---|
| 4271 | return yyrc;
|
|---|
| 4272 | }
|
|---|
| 4273 |
|
|---|
| 4274 | #undef WinQueryUpdateRegion
|
|---|
| 4275 | #define WinQueryUpdateRegion _WinQueryUpdateRegion
|
|---|
| 4276 |
|
|---|
| 4277 | inline HWND _WinQuerySysModalWindow(HWND a)
|
|---|
| 4278 | {
|
|---|
| 4279 | HWND yyrc;
|
|---|
| 4280 | USHORT sel = RestoreOS2FS();
|
|---|
| 4281 |
|
|---|
| 4282 | yyrc = WinQuerySysModalWindow(a);
|
|---|
| 4283 | SetFS(sel);
|
|---|
| 4284 |
|
|---|
| 4285 | return yyrc;
|
|---|
| 4286 | }
|
|---|
| 4287 |
|
|---|
| 4288 | #undef WinQuerySysModalWindow
|
|---|
| 4289 | #define WinQuerySysModalWindow _WinQuerySysModalWindow
|
|---|
| 4290 |
|
|---|
| 4291 | inline HDC _WinQueryWindowDC(HWND a)
|
|---|
| 4292 | {
|
|---|
| 4293 | HDC yyrc;
|
|---|
| 4294 | USHORT sel = RestoreOS2FS();
|
|---|
| 4295 |
|
|---|
| 4296 | yyrc = WinQueryWindowDC(a);
|
|---|
| 4297 | SetFS(sel);
|
|---|
| 4298 |
|
|---|
| 4299 | return yyrc;
|
|---|
| 4300 | }
|
|---|
| 4301 |
|
|---|
| 4302 | #undef WinQueryWindowDC
|
|---|
| 4303 | #define WinQueryWindowDC _WinQueryWindowDC
|
|---|
| 4304 |
|
|---|
| 4305 | inline PVOID _WinQueryWindowPtr(HWND a, LONG b)
|
|---|
| 4306 | {
|
|---|
| 4307 | PVOID yyrc;
|
|---|
| 4308 | USHORT sel = RestoreOS2FS();
|
|---|
| 4309 |
|
|---|
| 4310 | yyrc = WinQueryWindowPtr(a, b);
|
|---|
| 4311 | SetFS(sel);
|
|---|
| 4312 |
|
|---|
| 4313 | return yyrc;
|
|---|
| 4314 | }
|
|---|
| 4315 |
|
|---|
| 4316 | #undef WinQueryWindowPtr
|
|---|
| 4317 | #define WinQueryWindowPtr _WinQueryWindowPtr
|
|---|
| 4318 |
|
|---|
| 4319 | inline ULONG _WinQueryWindowULong(HWND a, LONG b)
|
|---|
| 4320 | {
|
|---|
| 4321 | ULONG yyrc;
|
|---|
| 4322 | USHORT sel = RestoreOS2FS();
|
|---|
| 4323 |
|
|---|
| 4324 | yyrc = WinQueryWindowULong(a, b);
|
|---|
| 4325 | SetFS(sel);
|
|---|
| 4326 |
|
|---|
| 4327 | return yyrc;
|
|---|
| 4328 | }
|
|---|
| 4329 |
|
|---|
| 4330 | #undef WinQueryWindowULong
|
|---|
| 4331 | #define WinQueryWindowULong _WinQueryWindowULong
|
|---|
| 4332 |
|
|---|
| 4333 | inline USHORT _WinQueryWindowUShort(HWND a, LONG b)
|
|---|
| 4334 | {
|
|---|
| 4335 | USHORT yyrc;
|
|---|
| 4336 | USHORT sel = RestoreOS2FS();
|
|---|
| 4337 |
|
|---|
| 4338 | yyrc = WinQueryWindowUShort(a, b);
|
|---|
| 4339 | SetFS(sel);
|
|---|
| 4340 |
|
|---|
| 4341 | return yyrc;
|
|---|
| 4342 | }
|
|---|
| 4343 |
|
|---|
| 4344 | #undef WinQueryWindowUShort
|
|---|
| 4345 | #define WinQueryWindowUShort _WinQueryWindowUShort
|
|---|
| 4346 |
|
|---|
| 4347 | inline BOOL _WinSetSysModalWindow(HWND a, HWND b)
|
|---|
| 4348 | {
|
|---|
| 4349 | BOOL yyrc;
|
|---|
| 4350 | USHORT sel = RestoreOS2FS();
|
|---|
| 4351 |
|
|---|
| 4352 | yyrc = WinSetSysModalWindow(a, b);
|
|---|
| 4353 | SetFS(sel);
|
|---|
| 4354 |
|
|---|
| 4355 | return yyrc;
|
|---|
| 4356 | }
|
|---|
| 4357 |
|
|---|
| 4358 | #undef WinSetSysModalWindow
|
|---|
| 4359 | #define WinSetSysModalWindow _WinSetSysModalWindow
|
|---|
| 4360 |
|
|---|
| 4361 | inline BOOL _WinSetWindowBits(HWND a, LONG b, ULONG c, ULONG d)
|
|---|
| 4362 | {
|
|---|
| 4363 | BOOL yyrc;
|
|---|
| 4364 | USHORT sel = RestoreOS2FS();
|
|---|
| 4365 |
|
|---|
| 4366 | yyrc = WinSetWindowBits(a, b, c, d);
|
|---|
| 4367 | SetFS(sel);
|
|---|
| 4368 |
|
|---|
| 4369 | return yyrc;
|
|---|
| 4370 | }
|
|---|
| 4371 |
|
|---|
| 4372 | #undef WinSetWindowBits
|
|---|
| 4373 | #define WinSetWindowBits _WinSetWindowBits
|
|---|
| 4374 |
|
|---|
| 4375 | inline BOOL _WinSetWindowPtr(HWND a, LONG b, PVOID c)
|
|---|
| 4376 | {
|
|---|
| 4377 | BOOL yyrc;
|
|---|
| 4378 | USHORT sel = RestoreOS2FS();
|
|---|
| 4379 |
|
|---|
| 4380 | yyrc = WinSetWindowPtr(a, b, c);
|
|---|
| 4381 | SetFS(sel);
|
|---|
| 4382 |
|
|---|
| 4383 | return yyrc;
|
|---|
| 4384 | }
|
|---|
| 4385 |
|
|---|
| 4386 | #undef WinSetWindowPtr
|
|---|
| 4387 | #define WinSetWindowPtr _WinSetWindowPtr
|
|---|
| 4388 |
|
|---|
| 4389 | inline BOOL _WinSetWindowULong(HWND a, LONG b, ULONG c)
|
|---|
| 4390 | {
|
|---|
| 4391 | BOOL yyrc;
|
|---|
| 4392 | USHORT sel = RestoreOS2FS();
|
|---|
| 4393 |
|
|---|
| 4394 | yyrc = WinSetWindowULong(a, b, c);
|
|---|
| 4395 | SetFS(sel);
|
|---|
| 4396 |
|
|---|
| 4397 | return yyrc;
|
|---|
| 4398 | }
|
|---|
| 4399 |
|
|---|
| 4400 | #undef WinSetWindowULong
|
|---|
| 4401 | #define WinSetWindowULong _WinSetWindowULong
|
|---|
| 4402 |
|
|---|
| 4403 | inline BOOL _WinSetWindowUShort(HWND a, LONG b, USHORT c)
|
|---|
| 4404 | {
|
|---|
| 4405 | BOOL yyrc;
|
|---|
| 4406 | USHORT sel = RestoreOS2FS();
|
|---|
| 4407 |
|
|---|
| 4408 | yyrc = WinSetWindowUShort(a, b, c);
|
|---|
| 4409 | SetFS(sel);
|
|---|
| 4410 |
|
|---|
| 4411 | return yyrc;
|
|---|
| 4412 | }
|
|---|
| 4413 |
|
|---|
| 4414 | #undef WinSetWindowUShort
|
|---|
| 4415 | #define WinSetWindowUShort _WinSetWindowUShort
|
|---|
| 4416 |
|
|---|
| 4417 | inline PFNWP _WinSubclassWindow(HWND a, PFNWP b)
|
|---|
| 4418 | {
|
|---|
| 4419 | PFNWP yyrc;
|
|---|
| 4420 | USHORT sel = RestoreOS2FS();
|
|---|
| 4421 |
|
|---|
| 4422 | yyrc = WinSubclassWindow(a, b);
|
|---|
| 4423 | SetFS(sel);
|
|---|
| 4424 |
|
|---|
| 4425 | return yyrc;
|
|---|
| 4426 | }
|
|---|
| 4427 |
|
|---|
| 4428 | #undef WinSubclassWindow
|
|---|
| 4429 | #define WinSubclassWindow _WinSubclassWindow
|
|---|
| 4430 |
|
|---|
| 4431 | inline BOOL _WinValidateRect(HWND a, PRECTL b, BOOL c)
|
|---|
| 4432 | {
|
|---|
| 4433 | BOOL yyrc;
|
|---|
| 4434 | USHORT sel = RestoreOS2FS();
|
|---|
| 4435 |
|
|---|
| 4436 | yyrc = WinValidateRect(a, b, c);
|
|---|
| 4437 | SetFS(sel);
|
|---|
| 4438 |
|
|---|
| 4439 | return yyrc;
|
|---|
| 4440 | }
|
|---|
| 4441 |
|
|---|
| 4442 | #undef WinValidateRect
|
|---|
| 4443 | #define WinValidateRect _WinValidateRect
|
|---|
| 4444 |
|
|---|
| 4445 | inline BOOL _WinValidateRegion(HWND a, HRGN b, BOOL c)
|
|---|
| 4446 | {
|
|---|
| 4447 | BOOL yyrc;
|
|---|
| 4448 | USHORT sel = RestoreOS2FS();
|
|---|
| 4449 |
|
|---|
| 4450 | yyrc = WinValidateRegion(a, b, c);
|
|---|
| 4451 | SetFS(sel);
|
|---|
| 4452 |
|
|---|
| 4453 | return yyrc;
|
|---|
| 4454 | }
|
|---|
| 4455 |
|
|---|
| 4456 | #undef WinValidateRegion
|
|---|
| 4457 | #define WinValidateRegion _WinValidateRegion
|
|---|
| 4458 |
|
|---|
| 4459 | inline HWND _WinWindowFromDC(HDC a)
|
|---|
| 4460 | {
|
|---|
| 4461 | HWND yyrc;
|
|---|
| 4462 | USHORT sel = RestoreOS2FS();
|
|---|
| 4463 |
|
|---|
| 4464 | yyrc = WinWindowFromDC(a);
|
|---|
| 4465 | SetFS(sel);
|
|---|
| 4466 |
|
|---|
| 4467 | return yyrc;
|
|---|
| 4468 | }
|
|---|
| 4469 |
|
|---|
| 4470 | #undef WinWindowFromDC
|
|---|
| 4471 | #define WinWindowFromDC _WinWindowFromDC
|
|---|
| 4472 |
|
|---|
| 4473 | inline HWND _WinWindowFromPoint(HWND a, PPOINTL b, BOOL c)
|
|---|
| 4474 | {
|
|---|
| 4475 | HWND yyrc;
|
|---|
| 4476 | USHORT sel = RestoreOS2FS();
|
|---|
| 4477 |
|
|---|
| 4478 | yyrc = WinWindowFromPoint(a, b, c);
|
|---|
| 4479 | SetFS(sel);
|
|---|
| 4480 |
|
|---|
| 4481 | return yyrc;
|
|---|
| 4482 | }
|
|---|
| 4483 |
|
|---|
| 4484 | #undef WinWindowFromPoint
|
|---|
| 4485 | #define WinWindowFromPoint _WinWindowFromPoint
|
|---|
| 4486 |
|
|---|
| 4487 | #endif
|
|---|
| 4488 | #ifdef INCL_WINACCELERATORS
|
|---|
| 4489 | inline ULONG _WinCopyAccelTable(HACCEL a, PACCELTABLE b, ULONG c)
|
|---|
| 4490 | {
|
|---|
| 4491 | ULONG yyrc;
|
|---|
| 4492 | USHORT sel = RestoreOS2FS();
|
|---|
| 4493 |
|
|---|
| 4494 | yyrc = WinCopyAccelTable(a, b, c);
|
|---|
| 4495 | SetFS(sel);
|
|---|
| 4496 |
|
|---|
| 4497 | return yyrc;
|
|---|
| 4498 | }
|
|---|
| 4499 |
|
|---|
| 4500 | #undef WinCopyAccelTable
|
|---|
| 4501 | #define WinCopyAccelTable _WinCopyAccelTable
|
|---|
| 4502 |
|
|---|
| 4503 | inline HACCEL _WinCreateAccelTable(HAB a, PACCELTABLE b)
|
|---|
| 4504 | {
|
|---|
| 4505 | HACCEL yyrc;
|
|---|
| 4506 | USHORT sel = RestoreOS2FS();
|
|---|
| 4507 |
|
|---|
| 4508 | yyrc = WinCreateAccelTable(a, b);
|
|---|
| 4509 | SetFS(sel);
|
|---|
| 4510 |
|
|---|
| 4511 | return yyrc;
|
|---|
| 4512 | }
|
|---|
| 4513 |
|
|---|
| 4514 | #undef WinCreateAccelTable
|
|---|
| 4515 | #define WinCreateAccelTable _WinCreateAccelTable
|
|---|
| 4516 |
|
|---|
| 4517 | inline BOOL _WinDestroyAccelTable(HACCEL a)
|
|---|
| 4518 | {
|
|---|
| 4519 | BOOL yyrc;
|
|---|
| 4520 | USHORT sel = RestoreOS2FS();
|
|---|
| 4521 |
|
|---|
| 4522 | yyrc = WinDestroyAccelTable(a);
|
|---|
| 4523 | SetFS(sel);
|
|---|
| 4524 |
|
|---|
| 4525 | return yyrc;
|
|---|
| 4526 | }
|
|---|
| 4527 |
|
|---|
| 4528 | #undef WinDestroyAccelTable
|
|---|
| 4529 | #define WinDestroyAccelTable _WinDestroyAccelTable
|
|---|
| 4530 |
|
|---|
| 4531 | inline HACCEL _WinLoadAccelTable(HAB a, HMODULE b, ULONG c)
|
|---|
| 4532 | {
|
|---|
| 4533 | HACCEL yyrc;
|
|---|
| 4534 | USHORT sel = RestoreOS2FS();
|
|---|
| 4535 |
|
|---|
| 4536 | yyrc = WinLoadAccelTable(a, b, c);
|
|---|
| 4537 | SetFS(sel);
|
|---|
| 4538 |
|
|---|
| 4539 | return yyrc;
|
|---|
| 4540 | }
|
|---|
| 4541 |
|
|---|
| 4542 | #undef WinLoadAccelTable
|
|---|
| 4543 | #define WinLoadAccelTable _WinLoadAccelTable
|
|---|
| 4544 |
|
|---|
| 4545 | inline HACCEL _WinQueryAccelTable(HAB a, HWND b)
|
|---|
| 4546 | {
|
|---|
| 4547 | HACCEL yyrc;
|
|---|
| 4548 | USHORT sel = RestoreOS2FS();
|
|---|
| 4549 |
|
|---|
| 4550 | yyrc = WinQueryAccelTable(a, b);
|
|---|
| 4551 | SetFS(sel);
|
|---|
| 4552 |
|
|---|
| 4553 | return yyrc;
|
|---|
| 4554 | }
|
|---|
| 4555 |
|
|---|
| 4556 | #undef WinQueryAccelTable
|
|---|
| 4557 | #define WinQueryAccelTable _WinQueryAccelTable
|
|---|
| 4558 |
|
|---|
| 4559 | inline BOOL _WinSetAccelTable(HAB a, HACCEL b, HWND c)
|
|---|
| 4560 | {
|
|---|
| 4561 | BOOL yyrc;
|
|---|
| 4562 | USHORT sel = RestoreOS2FS();
|
|---|
| 4563 |
|
|---|
| 4564 | yyrc = WinSetAccelTable(a, b, c);
|
|---|
| 4565 | SetFS(sel);
|
|---|
| 4566 |
|
|---|
| 4567 | return yyrc;
|
|---|
| 4568 | }
|
|---|
| 4569 |
|
|---|
| 4570 | #undef WinSetAccelTable
|
|---|
| 4571 | #define WinSetAccelTable _WinSetAccelTable
|
|---|
| 4572 |
|
|---|
| 4573 | inline BOOL _WinTranslateAccel(HAB a, HWND b, HACCEL c, PQMSG d)
|
|---|
| 4574 | {
|
|---|
| 4575 | BOOL yyrc;
|
|---|
| 4576 | USHORT sel = RestoreOS2FS();
|
|---|
| 4577 |
|
|---|
| 4578 | yyrc = WinTranslateAccel(a, b, c, d);
|
|---|
| 4579 | SetFS(sel);
|
|---|
| 4580 |
|
|---|
| 4581 | return yyrc;
|
|---|
| 4582 | }
|
|---|
| 4583 |
|
|---|
| 4584 | #undef WinTranslateAccel
|
|---|
| 4585 | #define WinTranslateAccel _WinTranslateAccel
|
|---|
| 4586 |
|
|---|
| 4587 | #endif
|
|---|
| 4588 | #ifdef INCL_WINATOM
|
|---|
| 4589 | inline ATOM _WinAddAtom(HATOMTBL a, PCSZ b)
|
|---|
| 4590 | {
|
|---|
| 4591 | ATOM yyrc;
|
|---|
| 4592 | USHORT sel = RestoreOS2FS();
|
|---|
| 4593 |
|
|---|
| 4594 | yyrc = WinAddAtom(a, b);
|
|---|
| 4595 | SetFS(sel);
|
|---|
| 4596 |
|
|---|
| 4597 | return yyrc;
|
|---|
| 4598 | }
|
|---|
| 4599 |
|
|---|
| 4600 | #undef WinAddAtom
|
|---|
| 4601 | #define WinAddAtom _WinAddAtom
|
|---|
| 4602 |
|
|---|
| 4603 | inline HATOMTBL _WinCreateAtomTable(ULONG a, ULONG b)
|
|---|
| 4604 | {
|
|---|
| 4605 | HATOMTBL yyrc;
|
|---|
| 4606 | USHORT sel = RestoreOS2FS();
|
|---|
| 4607 |
|
|---|
| 4608 | yyrc = WinCreateAtomTable(a, b);
|
|---|
| 4609 | SetFS(sel);
|
|---|
| 4610 |
|
|---|
| 4611 | return yyrc;
|
|---|
| 4612 | }
|
|---|
| 4613 |
|
|---|
| 4614 | #undef WinCreateAtomTable
|
|---|
| 4615 | #define WinCreateAtomTable _WinCreateAtomTable
|
|---|
| 4616 |
|
|---|
| 4617 | inline ATOM _WinDeleteAtom(HATOMTBL a, ATOM b)
|
|---|
| 4618 | {
|
|---|
| 4619 | ATOM yyrc;
|
|---|
| 4620 | USHORT sel = RestoreOS2FS();
|
|---|
| 4621 |
|
|---|
| 4622 | yyrc = WinDeleteAtom(a, b);
|
|---|
| 4623 | SetFS(sel);
|
|---|
| 4624 |
|
|---|
| 4625 | return yyrc;
|
|---|
| 4626 | }
|
|---|
| 4627 |
|
|---|
| 4628 | #undef WinDeleteAtom
|
|---|
| 4629 | #define WinDeleteAtom _WinDeleteAtom
|
|---|
| 4630 |
|
|---|
| 4631 | inline HATOMTBL _WinDestroyAtomTable(HATOMTBL a)
|
|---|
| 4632 | {
|
|---|
| 4633 | HATOMTBL yyrc;
|
|---|
| 4634 | USHORT sel = RestoreOS2FS();
|
|---|
| 4635 |
|
|---|
| 4636 | yyrc = WinDestroyAtomTable(a);
|
|---|
| 4637 | SetFS(sel);
|
|---|
| 4638 |
|
|---|
| 4639 | return yyrc;
|
|---|
| 4640 | }
|
|---|
| 4641 |
|
|---|
| 4642 | #undef WinDestroyAtomTable
|
|---|
| 4643 | #define WinDestroyAtomTable _WinDestroyAtomTable
|
|---|
| 4644 |
|
|---|
| 4645 | inline ATOM _WinFindAtom(HATOMTBL a, PCSZ b)
|
|---|
| 4646 | {
|
|---|
| 4647 | ATOM yyrc;
|
|---|
| 4648 | USHORT sel = RestoreOS2FS();
|
|---|
| 4649 |
|
|---|
| 4650 | yyrc = WinFindAtom(a, b);
|
|---|
| 4651 | SetFS(sel);
|
|---|
| 4652 |
|
|---|
| 4653 | return yyrc;
|
|---|
| 4654 | }
|
|---|
| 4655 |
|
|---|
| 4656 | #undef WinFindAtom
|
|---|
| 4657 | #define WinFindAtom _WinFindAtom
|
|---|
| 4658 |
|
|---|
| 4659 | inline ULONG _WinQueryAtomLength(HATOMTBL a, ATOM b)
|
|---|
| 4660 | {
|
|---|
| 4661 | ULONG yyrc;
|
|---|
| 4662 | USHORT sel = RestoreOS2FS();
|
|---|
| 4663 |
|
|---|
| 4664 | yyrc = WinQueryAtomLength(a, b);
|
|---|
| 4665 | SetFS(sel);
|
|---|
| 4666 |
|
|---|
| 4667 | return yyrc;
|
|---|
| 4668 | }
|
|---|
| 4669 |
|
|---|
| 4670 | #undef WinQueryAtomLength
|
|---|
| 4671 | #define WinQueryAtomLength _WinQueryAtomLength
|
|---|
| 4672 |
|
|---|
| 4673 | inline ULONG _WinQueryAtomName(HATOMTBL a, ATOM b, PSZ c, ULONG d)
|
|---|
| 4674 | {
|
|---|
| 4675 | ULONG yyrc;
|
|---|
| 4676 | USHORT sel = RestoreOS2FS();
|
|---|
| 4677 |
|
|---|
| 4678 | yyrc = WinQueryAtomName(a, b, c, d);
|
|---|
| 4679 | SetFS(sel);
|
|---|
| 4680 |
|
|---|
| 4681 | return yyrc;
|
|---|
| 4682 | }
|
|---|
| 4683 |
|
|---|
| 4684 | #undef WinQueryAtomName
|
|---|
| 4685 | #define WinQueryAtomName _WinQueryAtomName
|
|---|
| 4686 |
|
|---|
| 4687 | inline ULONG _WinQueryAtomUsage(HATOMTBL a, ATOM b)
|
|---|
| 4688 | {
|
|---|
| 4689 | ULONG yyrc;
|
|---|
| 4690 | USHORT sel = RestoreOS2FS();
|
|---|
| 4691 |
|
|---|
| 4692 | yyrc = WinQueryAtomUsage(a, b);
|
|---|
| 4693 | SetFS(sel);
|
|---|
| 4694 |
|
|---|
| 4695 | return yyrc;
|
|---|
| 4696 | }
|
|---|
| 4697 |
|
|---|
| 4698 | #undef WinQueryAtomUsage
|
|---|
| 4699 | #define WinQueryAtomUsage _WinQueryAtomUsage
|
|---|
| 4700 |
|
|---|
| 4701 | inline HATOMTBL _WinQuerySystemAtomTable()
|
|---|
| 4702 | {
|
|---|
| 4703 | HATOMTBL yyrc;
|
|---|
| 4704 | USHORT sel = RestoreOS2FS();
|
|---|
| 4705 |
|
|---|
| 4706 | yyrc = WinQuerySystemAtomTable();
|
|---|
| 4707 | SetFS(sel);
|
|---|
| 4708 |
|
|---|
| 4709 | return yyrc;
|
|---|
| 4710 | }
|
|---|
| 4711 |
|
|---|
| 4712 | #undef WinQuerySystemAtomTable
|
|---|
| 4713 | #define WinQuerySystemAtomTable _WinQuerySystemAtomTable
|
|---|
| 4714 |
|
|---|
| 4715 | #endif
|
|---|
| 4716 | #ifdef INCL_WINCLIPBOARD
|
|---|
| 4717 | inline BOOL _WinCloseClipbrd(HAB a)
|
|---|
| 4718 | {
|
|---|
| 4719 | BOOL yyrc;
|
|---|
| 4720 | USHORT sel = RestoreOS2FS();
|
|---|
| 4721 |
|
|---|
| 4722 | yyrc = WinCloseClipbrd(a);
|
|---|
| 4723 | SetFS(sel);
|
|---|
| 4724 |
|
|---|
| 4725 | return yyrc;
|
|---|
| 4726 | }
|
|---|
| 4727 |
|
|---|
| 4728 | #undef WinCloseClipbrd
|
|---|
| 4729 | #define WinCloseClipbrd _WinCloseClipbrd
|
|---|
| 4730 |
|
|---|
| 4731 | inline BOOL _WinEmptyClipbrd(HAB a)
|
|---|
| 4732 | {
|
|---|
| 4733 | BOOL yyrc;
|
|---|
| 4734 | USHORT sel = RestoreOS2FS();
|
|---|
| 4735 |
|
|---|
| 4736 | yyrc = WinEmptyClipbrd(a);
|
|---|
| 4737 | SetFS(sel);
|
|---|
| 4738 |
|
|---|
| 4739 | return yyrc;
|
|---|
| 4740 | }
|
|---|
| 4741 |
|
|---|
| 4742 | #undef WinEmptyClipbrd
|
|---|
| 4743 | #define WinEmptyClipbrd _WinEmptyClipbrd
|
|---|
| 4744 |
|
|---|
| 4745 | inline ULONG _WinEnumClipbrdFmts(HAB a, ULONG b)
|
|---|
| 4746 | {
|
|---|
| 4747 | ULONG yyrc;
|
|---|
| 4748 | USHORT sel = RestoreOS2FS();
|
|---|
| 4749 |
|
|---|
| 4750 | yyrc = WinEnumClipbrdFmts(a, b);
|
|---|
| 4751 | SetFS(sel);
|
|---|
| 4752 |
|
|---|
| 4753 | return yyrc;
|
|---|
| 4754 | }
|
|---|
| 4755 |
|
|---|
| 4756 | #undef WinEnumClipbrdFmts
|
|---|
| 4757 | #define WinEnumClipbrdFmts _WinEnumClipbrdFmts
|
|---|
| 4758 |
|
|---|
| 4759 | inline BOOL _WinOpenClipbrd(HAB a)
|
|---|
| 4760 | {
|
|---|
| 4761 | BOOL yyrc;
|
|---|
| 4762 | USHORT sel = RestoreOS2FS();
|
|---|
| 4763 |
|
|---|
| 4764 | yyrc = WinOpenClipbrd(a);
|
|---|
| 4765 | SetFS(sel);
|
|---|
| 4766 |
|
|---|
| 4767 | return yyrc;
|
|---|
| 4768 | }
|
|---|
| 4769 |
|
|---|
| 4770 | #undef WinOpenClipbrd
|
|---|
| 4771 | #define WinOpenClipbrd _WinOpenClipbrd
|
|---|
| 4772 |
|
|---|
| 4773 | inline ULONG _WinQueryClipbrdData(HAB a, ULONG b)
|
|---|
| 4774 | {
|
|---|
| 4775 | ULONG yyrc;
|
|---|
| 4776 | USHORT sel = RestoreOS2FS();
|
|---|
| 4777 |
|
|---|
| 4778 | yyrc = WinQueryClipbrdData(a, b);
|
|---|
| 4779 | SetFS(sel);
|
|---|
| 4780 |
|
|---|
| 4781 | return yyrc;
|
|---|
| 4782 | }
|
|---|
| 4783 |
|
|---|
| 4784 | #undef WinQueryClipbrdData
|
|---|
| 4785 | #define WinQueryClipbrdData _WinQueryClipbrdData
|
|---|
| 4786 |
|
|---|
| 4787 | inline BOOL _WinQueryClipbrdFmtInfo(HAB a, ULONG b, PULONG c)
|
|---|
| 4788 | {
|
|---|
| 4789 | BOOL yyrc;
|
|---|
| 4790 | USHORT sel = RestoreOS2FS();
|
|---|
| 4791 |
|
|---|
| 4792 | yyrc = WinQueryClipbrdFmtInfo(a, b, c);
|
|---|
| 4793 | SetFS(sel);
|
|---|
| 4794 |
|
|---|
| 4795 | return yyrc;
|
|---|
| 4796 | }
|
|---|
| 4797 |
|
|---|
| 4798 | #undef WinQueryClipbrdFmtInfo
|
|---|
| 4799 | #define WinQueryClipbrdFmtInfo _WinQueryClipbrdFmtInfo
|
|---|
| 4800 |
|
|---|
| 4801 | inline HWND _WinQueryClipbrdOwner(HAB a)
|
|---|
| 4802 | {
|
|---|
| 4803 | HWND yyrc;
|
|---|
| 4804 | USHORT sel = RestoreOS2FS();
|
|---|
| 4805 |
|
|---|
| 4806 | yyrc = WinQueryClipbrdOwner(a);
|
|---|
| 4807 | SetFS(sel);
|
|---|
| 4808 |
|
|---|
| 4809 | return yyrc;
|
|---|
| 4810 | }
|
|---|
| 4811 |
|
|---|
| 4812 | #undef WinQueryClipbrdOwner
|
|---|
| 4813 | #define WinQueryClipbrdOwner _WinQueryClipbrdOwner
|
|---|
| 4814 |
|
|---|
| 4815 | inline HWND _WinQueryClipbrdViewer(HAB a)
|
|---|
| 4816 | {
|
|---|
| 4817 | HWND yyrc;
|
|---|
| 4818 | USHORT sel = RestoreOS2FS();
|
|---|
| 4819 |
|
|---|
| 4820 | yyrc = WinQueryClipbrdViewer(a);
|
|---|
| 4821 | SetFS(sel);
|
|---|
| 4822 |
|
|---|
| 4823 | return yyrc;
|
|---|
| 4824 | }
|
|---|
| 4825 |
|
|---|
| 4826 | #undef WinQueryClipbrdViewer
|
|---|
| 4827 | #define WinQueryClipbrdViewer _WinQueryClipbrdViewer
|
|---|
| 4828 |
|
|---|
| 4829 | inline BOOL _WinSetClipbrdData(HAB a, ULONG b, ULONG c, ULONG d)
|
|---|
| 4830 | {
|
|---|
| 4831 | BOOL yyrc;
|
|---|
| 4832 | USHORT sel = RestoreOS2FS();
|
|---|
| 4833 |
|
|---|
| 4834 | yyrc = WinSetClipbrdData(a, b, c, d);
|
|---|
| 4835 | SetFS(sel);
|
|---|
| 4836 |
|
|---|
| 4837 | return yyrc;
|
|---|
| 4838 | }
|
|---|
| 4839 |
|
|---|
| 4840 | #undef WinSetClipbrdData
|
|---|
| 4841 | #define WinSetClipbrdData _WinSetClipbrdData
|
|---|
| 4842 |
|
|---|
| 4843 | inline BOOL _WinSetClipbrdOwner(HAB a, HWND b)
|
|---|
| 4844 | {
|
|---|
| 4845 | BOOL yyrc;
|
|---|
| 4846 | USHORT sel = RestoreOS2FS();
|
|---|
| 4847 |
|
|---|
| 4848 | yyrc = WinSetClipbrdOwner(a, b);
|
|---|
| 4849 | SetFS(sel);
|
|---|
| 4850 |
|
|---|
| 4851 | return yyrc;
|
|---|
| 4852 | }
|
|---|
| 4853 |
|
|---|
| 4854 | #undef WinSetClipbrdOwner
|
|---|
| 4855 | #define WinSetClipbrdOwner _WinSetClipbrdOwner
|
|---|
| 4856 |
|
|---|
| 4857 | inline BOOL _WinSetClipbrdViewer(HAB a, HWND b)
|
|---|
| 4858 | {
|
|---|
| 4859 | BOOL yyrc;
|
|---|
| 4860 | USHORT sel = RestoreOS2FS();
|
|---|
| 4861 |
|
|---|
| 4862 | yyrc = WinSetClipbrdViewer(a, b);
|
|---|
| 4863 | SetFS(sel);
|
|---|
| 4864 |
|
|---|
| 4865 | return yyrc;
|
|---|
| 4866 | }
|
|---|
| 4867 |
|
|---|
| 4868 | #undef WinSetClipbrdViewer
|
|---|
| 4869 | #define WinSetClipbrdViewer _WinSetClipbrdViewer
|
|---|
| 4870 |
|
|---|
| 4871 | #endif
|
|---|
| 4872 | #ifdef INCL_WINDDE
|
|---|
| 4873 | inline BOOL _WinDdeInitiate(HWND a, PCSZ b, PCSZ c, PCONVCONTEXT d)
|
|---|
| 4874 | {
|
|---|
| 4875 | BOOL yyrc;
|
|---|
| 4876 | USHORT sel = RestoreOS2FS();
|
|---|
| 4877 |
|
|---|
| 4878 | yyrc = WinDdeInitiate(a, b, c, d);
|
|---|
| 4879 | SetFS(sel);
|
|---|
| 4880 |
|
|---|
| 4881 | return yyrc;
|
|---|
| 4882 | }
|
|---|
| 4883 |
|
|---|
| 4884 | #undef WinDdeInitiate
|
|---|
| 4885 | #define WinDdeInitiate _WinDdeInitiate
|
|---|
| 4886 |
|
|---|
| 4887 | inline BOOL _WinDdePostMsg(HWND a, HWND b, ULONG c, PDDESTRUCT d, ULONG e)
|
|---|
| 4888 | {
|
|---|
| 4889 | BOOL yyrc;
|
|---|
| 4890 | USHORT sel = RestoreOS2FS();
|
|---|
| 4891 |
|
|---|
| 4892 | yyrc = WinDdePostMsg(a, b, c, d, e);
|
|---|
| 4893 | SetFS(sel);
|
|---|
| 4894 |
|
|---|
| 4895 | return yyrc;
|
|---|
| 4896 | }
|
|---|
| 4897 |
|
|---|
| 4898 | #undef WinDdePostMsg
|
|---|
| 4899 | #define WinDdePostMsg _WinDdePostMsg
|
|---|
| 4900 |
|
|---|
| 4901 | inline MRESULT _WinDdeRespond(HWND a, HWND b, PCSZ c, PCSZ d, PCONVCONTEXT e)
|
|---|
| 4902 | {
|
|---|
| 4903 | MRESULT yyrc;
|
|---|
| 4904 | USHORT sel = RestoreOS2FS();
|
|---|
| 4905 |
|
|---|
| 4906 | yyrc = WinDdeRespond(a, b, c, d, e);
|
|---|
| 4907 | SetFS(sel);
|
|---|
| 4908 |
|
|---|
| 4909 | return yyrc;
|
|---|
| 4910 | }
|
|---|
| 4911 |
|
|---|
| 4912 | #undef WinDdeRespond
|
|---|
| 4913 | #define WinDdeRespond _WinDdeRespond
|
|---|
| 4914 |
|
|---|
| 4915 | #endif
|
|---|
| 4916 | #ifdef INCL_WINCOUNTRY
|
|---|
| 4917 | inline ULONG _WinCompareStrings(HAB a, ULONG b, ULONG c, PCSZ d, PCSZ e, ULONG f)
|
|---|
| 4918 | {
|
|---|
| 4919 | ULONG yyrc;
|
|---|
| 4920 | USHORT sel = RestoreOS2FS();
|
|---|
| 4921 |
|
|---|
| 4922 | yyrc = WinCompareStrings(a, b, c, d, e, f);
|
|---|
| 4923 | SetFS(sel);
|
|---|
| 4924 |
|
|---|
| 4925 | return yyrc;
|
|---|
| 4926 | }
|
|---|
| 4927 |
|
|---|
| 4928 | #undef WinCompareStrings
|
|---|
| 4929 | #define WinCompareStrings _WinCompareStrings
|
|---|
| 4930 |
|
|---|
| 4931 | inline UCHAR _WinCpTranslateChar(HAB a, ULONG b, UCHAR c, ULONG d)
|
|---|
| 4932 | {
|
|---|
| 4933 | UCHAR yyrc;
|
|---|
| 4934 | USHORT sel = RestoreOS2FS();
|
|---|
| 4935 |
|
|---|
| 4936 | yyrc = WinCpTranslateChar(a, b, c, d);
|
|---|
| 4937 | SetFS(sel);
|
|---|
| 4938 |
|
|---|
| 4939 | return yyrc;
|
|---|
| 4940 | }
|
|---|
| 4941 |
|
|---|
| 4942 | #undef WinCpTranslateChar
|
|---|
| 4943 | #define WinCpTranslateChar _WinCpTranslateChar
|
|---|
| 4944 |
|
|---|
| 4945 | inline BOOL _WinCpTranslateString(HAB a, ULONG b, PCSZ c, ULONG d, ULONG e, PSZ f)
|
|---|
| 4946 | {
|
|---|
| 4947 | BOOL yyrc;
|
|---|
| 4948 | USHORT sel = RestoreOS2FS();
|
|---|
| 4949 |
|
|---|
| 4950 | yyrc = WinCpTranslateString(a, b, c, d, e, f);
|
|---|
| 4951 | SetFS(sel);
|
|---|
| 4952 |
|
|---|
| 4953 | return yyrc;
|
|---|
| 4954 | }
|
|---|
| 4955 |
|
|---|
| 4956 | #undef WinCpTranslateString
|
|---|
| 4957 | #define WinCpTranslateString _WinCpTranslateString
|
|---|
| 4958 |
|
|---|
| 4959 | inline PCSZ _WinNextChar(HAB a, ULONG b, ULONG c, PCSZ d)
|
|---|
| 4960 | {
|
|---|
| 4961 | PCSZ yyrc;
|
|---|
| 4962 | USHORT sel = RestoreOS2FS();
|
|---|
| 4963 |
|
|---|
| 4964 | yyrc = WinNextChar(a, b, c, d);
|
|---|
| 4965 | SetFS(sel);
|
|---|
| 4966 |
|
|---|
| 4967 | return yyrc;
|
|---|
| 4968 | }
|
|---|
| 4969 |
|
|---|
| 4970 | #undef WinNextChar
|
|---|
| 4971 | #define WinNextChar _WinNextChar
|
|---|
| 4972 |
|
|---|
| 4973 | inline PCSZ _WinPrevChar(HAB a, ULONG b, ULONG c, PCSZ d, PCSZ e)
|
|---|
| 4974 | {
|
|---|
| 4975 | PCSZ yyrc;
|
|---|
| 4976 | USHORT sel = RestoreOS2FS();
|
|---|
| 4977 |
|
|---|
| 4978 | yyrc = WinPrevChar(a, b, c, d, e);
|
|---|
| 4979 | SetFS(sel);
|
|---|
| 4980 |
|
|---|
| 4981 | return yyrc;
|
|---|
| 4982 | }
|
|---|
| 4983 |
|
|---|
| 4984 | #undef WinPrevChar
|
|---|
| 4985 | #define WinPrevChar _WinPrevChar
|
|---|
| 4986 |
|
|---|
| 4987 | inline ULONG _WinQueryCp(HMQ a)
|
|---|
| 4988 | {
|
|---|
| 4989 | ULONG yyrc;
|
|---|
| 4990 | USHORT sel = RestoreOS2FS();
|
|---|
| 4991 |
|
|---|
| 4992 | yyrc = WinQueryCp(a);
|
|---|
| 4993 | SetFS(sel);
|
|---|
| 4994 |
|
|---|
| 4995 | return yyrc;
|
|---|
| 4996 | }
|
|---|
| 4997 |
|
|---|
| 4998 | #undef WinQueryCp
|
|---|
| 4999 | #define WinQueryCp _WinQueryCp
|
|---|
| 5000 |
|
|---|
| 5001 | inline ULONG _WinQueryCpList(HAB a, ULONG b, PULONG c)
|
|---|
| 5002 | {
|
|---|
| 5003 | ULONG yyrc;
|
|---|
| 5004 | USHORT sel = RestoreOS2FS();
|
|---|
| 5005 |
|
|---|
| 5006 | yyrc = WinQueryCpList(a, b, c);
|
|---|
| 5007 | SetFS(sel);
|
|---|
| 5008 |
|
|---|
| 5009 | return yyrc;
|
|---|
| 5010 | }
|
|---|
| 5011 |
|
|---|
| 5012 | #undef WinQueryCpList
|
|---|
| 5013 | #define WinQueryCpList _WinQueryCpList
|
|---|
| 5014 |
|
|---|
| 5015 | inline BOOL _WinSetCp(HMQ a, ULONG b)
|
|---|
| 5016 | {
|
|---|
| 5017 | BOOL yyrc;
|
|---|
| 5018 | USHORT sel = RestoreOS2FS();
|
|---|
| 5019 |
|
|---|
| 5020 | yyrc = WinSetCp(a, b);
|
|---|
| 5021 | SetFS(sel);
|
|---|
| 5022 |
|
|---|
| 5023 | return yyrc;
|
|---|
| 5024 | }
|
|---|
| 5025 |
|
|---|
| 5026 | #undef WinSetCp
|
|---|
| 5027 | #define WinSetCp _WinSetCp
|
|---|
| 5028 |
|
|---|
| 5029 | inline ULONG _WinUpper(HAB a, ULONG b, ULONG c, PSZ d)
|
|---|
| 5030 | {
|
|---|
| 5031 | ULONG yyrc;
|
|---|
| 5032 | USHORT sel = RestoreOS2FS();
|
|---|
| 5033 |
|
|---|
| 5034 | yyrc = WinUpper(a, b, c, d);
|
|---|
| 5035 | SetFS(sel);
|
|---|
| 5036 |
|
|---|
| 5037 | return yyrc;
|
|---|
| 5038 | }
|
|---|
| 5039 |
|
|---|
| 5040 | #undef WinUpper
|
|---|
| 5041 | #define WinUpper _WinUpper
|
|---|
| 5042 |
|
|---|
| 5043 | inline ULONG _WinUpperChar(HAB a, ULONG b, ULONG c, ULONG d)
|
|---|
| 5044 | {
|
|---|
| 5045 | ULONG yyrc;
|
|---|
| 5046 | USHORT sel = RestoreOS2FS();
|
|---|
| 5047 |
|
|---|
| 5048 | yyrc = WinUpperChar(a, b, c, d);
|
|---|
| 5049 | SetFS(sel);
|
|---|
| 5050 |
|
|---|
| 5051 | return yyrc;
|
|---|
| 5052 | }
|
|---|
| 5053 |
|
|---|
| 5054 | #undef WinUpperChar
|
|---|
| 5055 | #define WinUpperChar _WinUpperChar
|
|---|
| 5056 |
|
|---|
| 5057 | #endif
|
|---|
| 5058 | #ifdef INCL_WINCURSORS
|
|---|
| 5059 | inline BOOL _WinCreateCursor(HWND a, LONG b, LONG c, LONG d, LONG e, ULONG f, PRECTL g)
|
|---|
| 5060 | {
|
|---|
| 5061 | BOOL yyrc;
|
|---|
| 5062 | USHORT sel = RestoreOS2FS();
|
|---|
| 5063 |
|
|---|
| 5064 | yyrc = WinCreateCursor(a, b, c, d, e, f, g);
|
|---|
| 5065 | SetFS(sel);
|
|---|
| 5066 |
|
|---|
| 5067 | return yyrc;
|
|---|
| 5068 | }
|
|---|
| 5069 |
|
|---|
| 5070 | #undef WinCreateCursor
|
|---|
| 5071 | #define WinCreateCursor _WinCreateCursor
|
|---|
| 5072 |
|
|---|
| 5073 | inline BOOL _WinDestroyCursor(HWND a)
|
|---|
| 5074 | {
|
|---|
| 5075 | BOOL yyrc;
|
|---|
| 5076 | USHORT sel = RestoreOS2FS();
|
|---|
| 5077 |
|
|---|
| 5078 | yyrc = WinDestroyCursor(a);
|
|---|
| 5079 | SetFS(sel);
|
|---|
| 5080 |
|
|---|
| 5081 | return yyrc;
|
|---|
| 5082 | }
|
|---|
| 5083 |
|
|---|
| 5084 | #undef WinDestroyCursor
|
|---|
| 5085 | #define WinDestroyCursor _WinDestroyCursor
|
|---|
| 5086 |
|
|---|
| 5087 | inline BOOL _WinShowCursor(HWND a, BOOL b)
|
|---|
| 5088 | {
|
|---|
| 5089 | BOOL yyrc;
|
|---|
| 5090 | USHORT sel = RestoreOS2FS();
|
|---|
| 5091 |
|
|---|
| 5092 | yyrc = WinShowCursor(a, b);
|
|---|
| 5093 | SetFS(sel);
|
|---|
| 5094 |
|
|---|
| 5095 | return yyrc;
|
|---|
| 5096 | }
|
|---|
| 5097 |
|
|---|
| 5098 | #undef WinShowCursor
|
|---|
| 5099 | #define WinShowCursor _WinShowCursor
|
|---|
| 5100 |
|
|---|
| 5101 | inline BOOL _WinQueryCursorInfo(HWND a, PCURSORINFO b)
|
|---|
| 5102 | {
|
|---|
| 5103 | BOOL yyrc;
|
|---|
| 5104 | USHORT sel = RestoreOS2FS();
|
|---|
| 5105 |
|
|---|
| 5106 | yyrc = WinQueryCursorInfo(a, b);
|
|---|
| 5107 | SetFS(sel);
|
|---|
| 5108 |
|
|---|
| 5109 | return yyrc;
|
|---|
| 5110 | }
|
|---|
| 5111 |
|
|---|
| 5112 | #undef WinQueryCursorInfo
|
|---|
| 5113 | #define WinQueryCursorInfo _WinQueryCursorInfo
|
|---|
| 5114 |
|
|---|
| 5115 | #endif
|
|---|
| 5116 | #ifdef INCL_WINDESKTOP
|
|---|
| 5117 | inline BOOL _WinQueryDesktopBkgnd(HWND a, PDESKTOP b)
|
|---|
| 5118 | {
|
|---|
| 5119 | BOOL yyrc;
|
|---|
| 5120 | USHORT sel = RestoreOS2FS();
|
|---|
| 5121 |
|
|---|
| 5122 | yyrc = WinQueryDesktopBkgnd(a, b);
|
|---|
| 5123 | SetFS(sel);
|
|---|
| 5124 |
|
|---|
| 5125 | return yyrc;
|
|---|
| 5126 | }
|
|---|
| 5127 |
|
|---|
| 5128 | #undef WinQueryDesktopBkgnd
|
|---|
| 5129 | #define WinQueryDesktopBkgnd _WinQueryDesktopBkgnd
|
|---|
| 5130 |
|
|---|
| 5131 | inline HBITMAP _WinSetDesktopBkgnd(HWND a, PDESKTOP b)
|
|---|
| 5132 | {
|
|---|
| 5133 | HBITMAP yyrc;
|
|---|
| 5134 | USHORT sel = RestoreOS2FS();
|
|---|
| 5135 |
|
|---|
| 5136 | yyrc = WinSetDesktopBkgnd(a, b);
|
|---|
| 5137 | SetFS(sel);
|
|---|
| 5138 |
|
|---|
| 5139 | return yyrc;
|
|---|
| 5140 | }
|
|---|
| 5141 |
|
|---|
| 5142 | #undef WinSetDesktopBkgnd
|
|---|
| 5143 | #define WinSetDesktopBkgnd _WinSetDesktopBkgnd
|
|---|
| 5144 |
|
|---|
| 5145 | #endif
|
|---|
| 5146 | #ifdef INCL_WINDIALOGS
|
|---|
| 5147 | inline BOOL _WinAlarm(HWND a, ULONG b)
|
|---|
| 5148 | {
|
|---|
| 5149 | BOOL yyrc;
|
|---|
| 5150 | USHORT sel = RestoreOS2FS();
|
|---|
| 5151 |
|
|---|
| 5152 | yyrc = WinAlarm(a, b);
|
|---|
| 5153 | SetFS(sel);
|
|---|
| 5154 |
|
|---|
| 5155 | return yyrc;
|
|---|
| 5156 | }
|
|---|
| 5157 |
|
|---|
| 5158 | #undef WinAlarm
|
|---|
| 5159 | #define WinAlarm _WinAlarm
|
|---|
| 5160 |
|
|---|
| 5161 | inline MRESULT _WinDefDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
|
|---|
| 5162 | {
|
|---|
| 5163 | MRESULT yyrc;
|
|---|
| 5164 | USHORT sel = RestoreOS2FS();
|
|---|
| 5165 |
|
|---|
| 5166 | yyrc = WinDefDlgProc(a, b, c, d);
|
|---|
| 5167 | SetFS(sel);
|
|---|
| 5168 |
|
|---|
| 5169 | return yyrc;
|
|---|
| 5170 | }
|
|---|
| 5171 |
|
|---|
| 5172 | #undef WinDefDlgProc
|
|---|
| 5173 | #define WinDefDlgProc _WinDefDlgProc
|
|---|
| 5174 |
|
|---|
| 5175 | inline BOOL _WinDismissDlg(HWND a, ULONG b)
|
|---|
| 5176 | {
|
|---|
| 5177 | BOOL yyrc;
|
|---|
| 5178 | USHORT sel = RestoreOS2FS();
|
|---|
| 5179 |
|
|---|
| 5180 | yyrc = WinDismissDlg(a, b);
|
|---|
| 5181 | SetFS(sel);
|
|---|
| 5182 |
|
|---|
| 5183 | return yyrc;
|
|---|
| 5184 | }
|
|---|
| 5185 |
|
|---|
| 5186 | #undef WinDismissDlg
|
|---|
| 5187 | #define WinDismissDlg _WinDismissDlg
|
|---|
| 5188 |
|
|---|
| 5189 | inline ULONG _WinDlgBox(HWND a, HWND b, PFNWP c, HMODULE d, ULONG e, PVOID f)
|
|---|
| 5190 | {
|
|---|
| 5191 | ULONG yyrc;
|
|---|
| 5192 | USHORT sel = RestoreOS2FS();
|
|---|
| 5193 |
|
|---|
| 5194 | yyrc = WinDlgBox(a, b, c, d, e, f);
|
|---|
| 5195 | SetFS(sel);
|
|---|
| 5196 |
|
|---|
| 5197 | return yyrc;
|
|---|
| 5198 | }
|
|---|
| 5199 |
|
|---|
| 5200 | #undef WinDlgBox
|
|---|
| 5201 | #define WinDlgBox _WinDlgBox
|
|---|
| 5202 |
|
|---|
| 5203 | inline BOOL _WinGetDlgMsg(HWND a, PQMSG b)
|
|---|
| 5204 | {
|
|---|
| 5205 | BOOL yyrc;
|
|---|
| 5206 | USHORT sel = RestoreOS2FS();
|
|---|
| 5207 |
|
|---|
| 5208 | yyrc = WinGetDlgMsg(a, b);
|
|---|
| 5209 | SetFS(sel);
|
|---|
| 5210 |
|
|---|
| 5211 | return yyrc;
|
|---|
| 5212 | }
|
|---|
| 5213 |
|
|---|
| 5214 | #undef WinGetDlgMsg
|
|---|
| 5215 | #define WinGetDlgMsg _WinGetDlgMsg
|
|---|
| 5216 |
|
|---|
| 5217 | inline HWND _WinLoadDlg(HWND a, HWND b, PFNWP c, HMODULE d, ULONG e, PVOID f)
|
|---|
| 5218 | {
|
|---|
| 5219 | HWND yyrc;
|
|---|
| 5220 | USHORT sel = RestoreOS2FS();
|
|---|
| 5221 |
|
|---|
| 5222 | yyrc = WinLoadDlg(a, b, c, d, e, f);
|
|---|
| 5223 | SetFS(sel);
|
|---|
| 5224 |
|
|---|
| 5225 | return yyrc;
|
|---|
| 5226 | }
|
|---|
| 5227 |
|
|---|
| 5228 | #undef WinLoadDlg
|
|---|
| 5229 | #define WinLoadDlg _WinLoadDlg
|
|---|
| 5230 |
|
|---|
| 5231 | inline ULONG _WinMessageBox(HWND a, HWND b, PCSZ c, PCSZ d, ULONG e, ULONG f)
|
|---|
| 5232 | {
|
|---|
| 5233 | ULONG yyrc;
|
|---|
| 5234 | USHORT sel = RestoreOS2FS();
|
|---|
| 5235 |
|
|---|
| 5236 | yyrc = WinMessageBox(a, b, c, d, e, f);
|
|---|
| 5237 | SetFS(sel);
|
|---|
| 5238 |
|
|---|
| 5239 | return yyrc;
|
|---|
| 5240 | }
|
|---|
| 5241 |
|
|---|
| 5242 | #undef WinMessageBox
|
|---|
| 5243 | #define WinMessageBox _WinMessageBox
|
|---|
| 5244 |
|
|---|
| 5245 | inline ULONG _WinMessageBox2(HWND a, HWND b, PSZ c, PSZ d, ULONG e, PMB2INFO f)
|
|---|
| 5246 | {
|
|---|
| 5247 | ULONG yyrc;
|
|---|
| 5248 | USHORT sel = RestoreOS2FS();
|
|---|
| 5249 |
|
|---|
| 5250 | yyrc = WinMessageBox2(a, b, c, d, e, f);
|
|---|
| 5251 | SetFS(sel);
|
|---|
| 5252 |
|
|---|
| 5253 | return yyrc;
|
|---|
| 5254 | }
|
|---|
| 5255 |
|
|---|
| 5256 | #undef WinMessageBox2
|
|---|
| 5257 | #define WinMessageBox2 _WinMessageBox2
|
|---|
| 5258 |
|
|---|
| 5259 | inline BOOL _WinQueryDlgItemShort(HWND a, ULONG b, PSHORT c, BOOL d)
|
|---|
| 5260 | {
|
|---|
| 5261 | BOOL yyrc;
|
|---|
| 5262 | USHORT sel = RestoreOS2FS();
|
|---|
| 5263 |
|
|---|
| 5264 | yyrc = WinQueryDlgItemShort(a, b, c, d);
|
|---|
| 5265 | SetFS(sel);
|
|---|
| 5266 |
|
|---|
| 5267 | return yyrc;
|
|---|
| 5268 | }
|
|---|
| 5269 |
|
|---|
| 5270 | #undef WinQueryDlgItemShort
|
|---|
| 5271 | #define WinQueryDlgItemShort _WinQueryDlgItemShort
|
|---|
| 5272 |
|
|---|
| 5273 | inline ULONG _WinQueryDlgItemText(HWND a, ULONG b, LONG c, PSZ d)
|
|---|
| 5274 | {
|
|---|
| 5275 | ULONG yyrc;
|
|---|
| 5276 | USHORT sel = RestoreOS2FS();
|
|---|
| 5277 |
|
|---|
| 5278 | yyrc = WinQueryDlgItemText(a, b, c, d);
|
|---|
| 5279 | SetFS(sel);
|
|---|
| 5280 |
|
|---|
| 5281 | return yyrc;
|
|---|
| 5282 | }
|
|---|
| 5283 |
|
|---|
| 5284 | #undef WinQueryDlgItemText
|
|---|
| 5285 | #define WinQueryDlgItemText _WinQueryDlgItemText
|
|---|
| 5286 |
|
|---|
| 5287 | inline LONG _WinQueryDlgItemTextLength(HWND a, ULONG b)
|
|---|
| 5288 | {
|
|---|
| 5289 | LONG yyrc;
|
|---|
| 5290 | USHORT sel = RestoreOS2FS();
|
|---|
| 5291 |
|
|---|
| 5292 | yyrc = WinQueryDlgItemTextLength(a, b);
|
|---|
| 5293 | SetFS(sel);
|
|---|
| 5294 |
|
|---|
| 5295 | return yyrc;
|
|---|
| 5296 | }
|
|---|
| 5297 |
|
|---|
| 5298 | #undef WinQueryDlgItemTextLength
|
|---|
| 5299 | #define WinQueryDlgItemTextLength _WinQueryDlgItemTextLength
|
|---|
| 5300 |
|
|---|
| 5301 | inline BOOL _WinSetDlgItemShort(HWND a, ULONG b, USHORT c, BOOL d)
|
|---|
| 5302 | {
|
|---|
| 5303 | BOOL yyrc;
|
|---|
| 5304 | USHORT sel = RestoreOS2FS();
|
|---|
| 5305 |
|
|---|
| 5306 | yyrc = WinSetDlgItemShort(a, b, c, d);
|
|---|
| 5307 | SetFS(sel);
|
|---|
| 5308 |
|
|---|
| 5309 | return yyrc;
|
|---|
| 5310 | }
|
|---|
| 5311 |
|
|---|
| 5312 | #undef WinSetDlgItemShort
|
|---|
| 5313 | #define WinSetDlgItemShort _WinSetDlgItemShort
|
|---|
| 5314 |
|
|---|
| 5315 | inline BOOL _WinSetDlgItemText(HWND a, ULONG b, PCSZ c)
|
|---|
| 5316 | {
|
|---|
| 5317 | BOOL yyrc;
|
|---|
| 5318 | USHORT sel = RestoreOS2FS();
|
|---|
| 5319 |
|
|---|
| 5320 | yyrc = WinSetDlgItemText(a, b, c);
|
|---|
| 5321 | SetFS(sel);
|
|---|
| 5322 |
|
|---|
| 5323 | return yyrc;
|
|---|
| 5324 | }
|
|---|
| 5325 |
|
|---|
| 5326 | #undef WinSetDlgItemText
|
|---|
| 5327 | #define WinSetDlgItemText _WinSetDlgItemText
|
|---|
| 5328 |
|
|---|
| 5329 | inline HWND _WinCreateDlg(HWND a, HWND b, PFNWP c, PDLGTEMPLATE d, PVOID e)
|
|---|
| 5330 | {
|
|---|
| 5331 | HWND yyrc;
|
|---|
| 5332 | USHORT sel = RestoreOS2FS();
|
|---|
| 5333 |
|
|---|
| 5334 | yyrc = WinCreateDlg(a, b, c, d, e);
|
|---|
| 5335 | SetFS(sel);
|
|---|
| 5336 |
|
|---|
| 5337 | return yyrc;
|
|---|
| 5338 | }
|
|---|
| 5339 |
|
|---|
| 5340 | #undef WinCreateDlg
|
|---|
| 5341 | #define WinCreateDlg _WinCreateDlg
|
|---|
| 5342 |
|
|---|
| 5343 | inline HWND _WinEnumDlgItem(HWND a, HWND b, ULONG c)
|
|---|
| 5344 | {
|
|---|
| 5345 | HWND yyrc;
|
|---|
| 5346 | USHORT sel = RestoreOS2FS();
|
|---|
| 5347 |
|
|---|
| 5348 | yyrc = WinEnumDlgItem(a, b, c);
|
|---|
| 5349 | SetFS(sel);
|
|---|
| 5350 |
|
|---|
| 5351 | return yyrc;
|
|---|
| 5352 | }
|
|---|
| 5353 |
|
|---|
| 5354 | #undef WinEnumDlgItem
|
|---|
| 5355 | #define WinEnumDlgItem _WinEnumDlgItem
|
|---|
| 5356 |
|
|---|
| 5357 | inline BOOL _WinMapDlgPoints(HWND a, PPOINTL b, ULONG c, BOOL d)
|
|---|
| 5358 | {
|
|---|
| 5359 | BOOL yyrc;
|
|---|
| 5360 | USHORT sel = RestoreOS2FS();
|
|---|
| 5361 |
|
|---|
| 5362 | yyrc = WinMapDlgPoints(a, b, c, d);
|
|---|
| 5363 | SetFS(sel);
|
|---|
| 5364 |
|
|---|
| 5365 | return yyrc;
|
|---|
| 5366 | }
|
|---|
| 5367 |
|
|---|
| 5368 | #undef WinMapDlgPoints
|
|---|
| 5369 | #define WinMapDlgPoints _WinMapDlgPoints
|
|---|
| 5370 |
|
|---|
| 5371 | inline ULONG _WinProcessDlg(HWND a)
|
|---|
| 5372 | {
|
|---|
| 5373 | ULONG yyrc;
|
|---|
| 5374 | USHORT sel = RestoreOS2FS();
|
|---|
| 5375 |
|
|---|
| 5376 | yyrc = WinProcessDlg(a);
|
|---|
| 5377 | SetFS(sel);
|
|---|
| 5378 |
|
|---|
| 5379 | return yyrc;
|
|---|
| 5380 | }
|
|---|
| 5381 |
|
|---|
| 5382 | #undef WinProcessDlg
|
|---|
| 5383 | #define WinProcessDlg _WinProcessDlg
|
|---|
| 5384 |
|
|---|
| 5385 | inline MRESULT _WinSendDlgItemMsg(HWND a, ULONG b, ULONG c, MPARAM d, MPARAM e)
|
|---|
| 5386 | {
|
|---|
| 5387 | MRESULT yyrc;
|
|---|
| 5388 | USHORT sel = RestoreOS2FS();
|
|---|
| 5389 |
|
|---|
| 5390 | yyrc = WinSendDlgItemMsg(a, b, c, d, e);
|
|---|
| 5391 | SetFS(sel);
|
|---|
| 5392 |
|
|---|
| 5393 | return yyrc;
|
|---|
| 5394 | }
|
|---|
| 5395 |
|
|---|
| 5396 | #undef WinSendDlgItemMsg
|
|---|
| 5397 | #define WinSendDlgItemMsg _WinSendDlgItemMsg
|
|---|
| 5398 |
|
|---|
| 5399 | inline LONG _WinSubstituteStrings(HWND a, PCSZ b, LONG c, PSZ d)
|
|---|
| 5400 | {
|
|---|
| 5401 | LONG yyrc;
|
|---|
| 5402 | USHORT sel = RestoreOS2FS();
|
|---|
| 5403 |
|
|---|
| 5404 | yyrc = WinSubstituteStrings(a, b, c, d);
|
|---|
| 5405 | SetFS(sel);
|
|---|
| 5406 |
|
|---|
| 5407 | return yyrc;
|
|---|
| 5408 | }
|
|---|
| 5409 |
|
|---|
| 5410 | #undef WinSubstituteStrings
|
|---|
| 5411 | #define WinSubstituteStrings _WinSubstituteStrings
|
|---|
| 5412 |
|
|---|
| 5413 | #endif
|
|---|
| 5414 | #ifdef INCL_WINERRORS
|
|---|
| 5415 | inline ERRORID _WinGetLastError(HAB a)
|
|---|
| 5416 | {
|
|---|
| 5417 | ERRORID yyrc;
|
|---|
| 5418 | USHORT sel = RestoreOS2FS();
|
|---|
| 5419 |
|
|---|
| 5420 | yyrc = WinGetLastError(a);
|
|---|
| 5421 | SetFS(sel);
|
|---|
| 5422 |
|
|---|
| 5423 | return yyrc;
|
|---|
| 5424 | }
|
|---|
| 5425 |
|
|---|
| 5426 | #undef WinGetLastError
|
|---|
| 5427 | #define WinGetLastError _WinGetLastError
|
|---|
| 5428 |
|
|---|
| 5429 | inline BOOL _WinFreeErrorInfo(PERRINFO a)
|
|---|
| 5430 | {
|
|---|
| 5431 | BOOL yyrc;
|
|---|
| 5432 | USHORT sel = RestoreOS2FS();
|
|---|
| 5433 |
|
|---|
| 5434 | yyrc = WinFreeErrorInfo(a);
|
|---|
| 5435 | SetFS(sel);
|
|---|
| 5436 |
|
|---|
| 5437 | return yyrc;
|
|---|
| 5438 | }
|
|---|
| 5439 |
|
|---|
| 5440 | #undef WinFreeErrorInfo
|
|---|
| 5441 | #define WinFreeErrorInfo _WinFreeErrorInfo
|
|---|
| 5442 |
|
|---|
| 5443 | inline PERRINFO _WinGetErrorInfo(HAB a)
|
|---|
| 5444 | {
|
|---|
| 5445 | PERRINFO yyrc;
|
|---|
| 5446 | USHORT sel = RestoreOS2FS();
|
|---|
| 5447 |
|
|---|
| 5448 | yyrc = WinGetErrorInfo(a);
|
|---|
| 5449 | SetFS(sel);
|
|---|
| 5450 |
|
|---|
| 5451 | return yyrc;
|
|---|
| 5452 | }
|
|---|
| 5453 |
|
|---|
| 5454 | #undef WinGetErrorInfo
|
|---|
| 5455 | #define WinGetErrorInfo _WinGetErrorInfo
|
|---|
| 5456 |
|
|---|
| 5457 | #endif
|
|---|
| 5458 | #ifdef INCL_WINHOOKS
|
|---|
| 5459 | inline BOOL _WinCallMsgFilter(HAB a, PQMSG b, ULONG c)
|
|---|
| 5460 | {
|
|---|
| 5461 | BOOL yyrc;
|
|---|
| 5462 | USHORT sel = RestoreOS2FS();
|
|---|
| 5463 |
|
|---|
| 5464 | yyrc = WinCallMsgFilter(a, b, c);
|
|---|
| 5465 | SetFS(sel);
|
|---|
| 5466 |
|
|---|
| 5467 | return yyrc;
|
|---|
| 5468 | }
|
|---|
| 5469 |
|
|---|
| 5470 | #undef WinCallMsgFilter
|
|---|
| 5471 | #define WinCallMsgFilter _WinCallMsgFilter
|
|---|
| 5472 |
|
|---|
| 5473 | inline BOOL _WinReleaseHook(HAB a, HMQ b, LONG c, PFN d, HMODULE e)
|
|---|
| 5474 | {
|
|---|
| 5475 | BOOL yyrc;
|
|---|
| 5476 | USHORT sel = RestoreOS2FS();
|
|---|
| 5477 |
|
|---|
| 5478 | yyrc = WinReleaseHook(a, b, c, d, e);
|
|---|
| 5479 | SetFS(sel);
|
|---|
| 5480 |
|
|---|
| 5481 | return yyrc;
|
|---|
| 5482 | }
|
|---|
| 5483 |
|
|---|
| 5484 | #undef WinReleaseHook
|
|---|
| 5485 | #define WinReleaseHook _WinReleaseHook
|
|---|
| 5486 |
|
|---|
| 5487 | inline BOOL _WinSetHook(HAB a, HMQ b, LONG c, PFN d, HMODULE e)
|
|---|
| 5488 | {
|
|---|
| 5489 | BOOL yyrc;
|
|---|
| 5490 | USHORT sel = RestoreOS2FS();
|
|---|
| 5491 |
|
|---|
| 5492 | yyrc = WinSetHook(a, b, c, d, e);
|
|---|
| 5493 | SetFS(sel);
|
|---|
| 5494 |
|
|---|
| 5495 | return yyrc;
|
|---|
| 5496 | }
|
|---|
| 5497 |
|
|---|
| 5498 | #undef WinSetHook
|
|---|
| 5499 | #define WinSetHook _WinSetHook
|
|---|
| 5500 |
|
|---|
| 5501 | #endif
|
|---|
| 5502 | #ifdef INCL_WININPUT
|
|---|
| 5503 | inline BOOL _WinFocusChange(HWND a, HWND b, ULONG c)
|
|---|
| 5504 | {
|
|---|
| 5505 | BOOL yyrc;
|
|---|
| 5506 | USHORT sel = RestoreOS2FS();
|
|---|
| 5507 |
|
|---|
| 5508 | yyrc = WinFocusChange(a, b, c);
|
|---|
| 5509 | SetFS(sel);
|
|---|
| 5510 |
|
|---|
| 5511 | return yyrc;
|
|---|
| 5512 | }
|
|---|
| 5513 |
|
|---|
| 5514 | #undef WinFocusChange
|
|---|
| 5515 | #define WinFocusChange _WinFocusChange
|
|---|
| 5516 |
|
|---|
| 5517 | inline BOOL _WinLockupSystem(HAB a)
|
|---|
| 5518 | {
|
|---|
| 5519 | BOOL yyrc;
|
|---|
| 5520 | USHORT sel = RestoreOS2FS();
|
|---|
| 5521 |
|
|---|
| 5522 | yyrc = WinLockupSystem(a);
|
|---|
| 5523 | SetFS(sel);
|
|---|
| 5524 |
|
|---|
| 5525 | return yyrc;
|
|---|
| 5526 | }
|
|---|
| 5527 |
|
|---|
| 5528 | #undef WinLockupSystem
|
|---|
| 5529 | #define WinLockupSystem _WinLockupSystem
|
|---|
| 5530 |
|
|---|
| 5531 | inline BOOL _WinSetFocus(HWND a, HWND b)
|
|---|
| 5532 | {
|
|---|
| 5533 | BOOL yyrc;
|
|---|
| 5534 | USHORT sel = RestoreOS2FS();
|
|---|
| 5535 |
|
|---|
| 5536 | yyrc = WinSetFocus(a, b);
|
|---|
| 5537 | SetFS(sel);
|
|---|
| 5538 |
|
|---|
| 5539 | return yyrc;
|
|---|
| 5540 | }
|
|---|
| 5541 |
|
|---|
| 5542 | #undef WinSetFocus
|
|---|
| 5543 | #define WinSetFocus _WinSetFocus
|
|---|
| 5544 |
|
|---|
| 5545 | inline BOOL _WinUnlockSystem(HAB a, PSZ b)
|
|---|
| 5546 | {
|
|---|
| 5547 | BOOL yyrc;
|
|---|
| 5548 | USHORT sel = RestoreOS2FS();
|
|---|
| 5549 |
|
|---|
| 5550 | yyrc = WinUnlockSystem(a, b);
|
|---|
| 5551 | SetFS(sel);
|
|---|
| 5552 |
|
|---|
| 5553 | return yyrc;
|
|---|
| 5554 | }
|
|---|
| 5555 |
|
|---|
| 5556 | #undef WinUnlockSystem
|
|---|
| 5557 | #define WinUnlockSystem _WinUnlockSystem
|
|---|
| 5558 |
|
|---|
| 5559 | inline BOOL _WinCheckInput(HAB a)
|
|---|
| 5560 | {
|
|---|
| 5561 | BOOL yyrc;
|
|---|
| 5562 | USHORT sel = RestoreOS2FS();
|
|---|
| 5563 |
|
|---|
| 5564 | yyrc = WinCheckInput(a);
|
|---|
| 5565 | SetFS(sel);
|
|---|
| 5566 |
|
|---|
| 5567 | return yyrc;
|
|---|
| 5568 | }
|
|---|
| 5569 |
|
|---|
| 5570 | #undef WinCheckInput
|
|---|
| 5571 | #define WinCheckInput _WinCheckInput
|
|---|
| 5572 |
|
|---|
| 5573 | inline BOOL _WinEnablePhysInput(HWND a, BOOL b)
|
|---|
| 5574 | {
|
|---|
| 5575 | BOOL yyrc;
|
|---|
| 5576 | USHORT sel = RestoreOS2FS();
|
|---|
| 5577 |
|
|---|
| 5578 | yyrc = WinEnablePhysInput(a, b);
|
|---|
| 5579 | SetFS(sel);
|
|---|
| 5580 |
|
|---|
| 5581 | return yyrc;
|
|---|
| 5582 | }
|
|---|
| 5583 |
|
|---|
| 5584 | #undef WinEnablePhysInput
|
|---|
| 5585 | #define WinEnablePhysInput _WinEnablePhysInput
|
|---|
| 5586 |
|
|---|
| 5587 | inline LONG _WinGetKeyState(HWND a, LONG b)
|
|---|
| 5588 | {
|
|---|
| 5589 | LONG yyrc;
|
|---|
| 5590 | USHORT sel = RestoreOS2FS();
|
|---|
| 5591 |
|
|---|
| 5592 | yyrc = WinGetKeyState(a, b);
|
|---|
| 5593 | SetFS(sel);
|
|---|
| 5594 |
|
|---|
| 5595 | return yyrc;
|
|---|
| 5596 | }
|
|---|
| 5597 |
|
|---|
| 5598 | #undef WinGetKeyState
|
|---|
| 5599 | #define WinGetKeyState _WinGetKeyState
|
|---|
| 5600 |
|
|---|
| 5601 | inline LONG _WinGetPhysKeyState(HWND a, LONG b)
|
|---|
| 5602 | {
|
|---|
| 5603 | LONG yyrc;
|
|---|
| 5604 | USHORT sel = RestoreOS2FS();
|
|---|
| 5605 |
|
|---|
| 5606 | yyrc = WinGetPhysKeyState(a, b);
|
|---|
| 5607 | SetFS(sel);
|
|---|
| 5608 |
|
|---|
| 5609 | return yyrc;
|
|---|
| 5610 | }
|
|---|
| 5611 |
|
|---|
| 5612 | #undef WinGetPhysKeyState
|
|---|
| 5613 | #define WinGetPhysKeyState _WinGetPhysKeyState
|
|---|
| 5614 |
|
|---|
| 5615 | inline BOOL _WinIsPhysInputEnabled(HWND a)
|
|---|
| 5616 | {
|
|---|
| 5617 | BOOL yyrc;
|
|---|
| 5618 | USHORT sel = RestoreOS2FS();
|
|---|
| 5619 |
|
|---|
| 5620 | yyrc = WinIsPhysInputEnabled(a);
|
|---|
| 5621 | SetFS(sel);
|
|---|
| 5622 |
|
|---|
| 5623 | return yyrc;
|
|---|
| 5624 | }
|
|---|
| 5625 |
|
|---|
| 5626 | #undef WinIsPhysInputEnabled
|
|---|
| 5627 | #define WinIsPhysInputEnabled _WinIsPhysInputEnabled
|
|---|
| 5628 |
|
|---|
| 5629 | inline HWND _WinQueryCapture(HWND a)
|
|---|
| 5630 | {
|
|---|
| 5631 | HWND yyrc;
|
|---|
| 5632 | USHORT sel = RestoreOS2FS();
|
|---|
| 5633 |
|
|---|
| 5634 | yyrc = WinQueryCapture(a);
|
|---|
| 5635 | SetFS(sel);
|
|---|
| 5636 |
|
|---|
| 5637 | return yyrc;
|
|---|
| 5638 | }
|
|---|
| 5639 |
|
|---|
| 5640 | #undef WinQueryCapture
|
|---|
| 5641 | #define WinQueryCapture _WinQueryCapture
|
|---|
| 5642 |
|
|---|
| 5643 | inline HWND _WinQueryFocus(HWND a)
|
|---|
| 5644 | {
|
|---|
| 5645 | HWND yyrc;
|
|---|
| 5646 | USHORT sel = RestoreOS2FS();
|
|---|
| 5647 |
|
|---|
| 5648 | yyrc = WinQueryFocus(a);
|
|---|
| 5649 | SetFS(sel);
|
|---|
| 5650 |
|
|---|
| 5651 | return yyrc;
|
|---|
| 5652 | }
|
|---|
| 5653 |
|
|---|
| 5654 | #undef WinQueryFocus
|
|---|
| 5655 | #define WinQueryFocus _WinQueryFocus
|
|---|
| 5656 |
|
|---|
| 5657 | inline ULONG _WinQueryVisibleRegion(HWND a, HRGN b)
|
|---|
| 5658 | {
|
|---|
| 5659 | ULONG yyrc;
|
|---|
| 5660 | USHORT sel = RestoreOS2FS();
|
|---|
| 5661 |
|
|---|
| 5662 | yyrc = WinQueryVisibleRegion(a, b);
|
|---|
| 5663 | SetFS(sel);
|
|---|
| 5664 |
|
|---|
| 5665 | return yyrc;
|
|---|
| 5666 | }
|
|---|
| 5667 |
|
|---|
| 5668 | #undef WinQueryVisibleRegion
|
|---|
| 5669 | #define WinQueryVisibleRegion _WinQueryVisibleRegion
|
|---|
| 5670 |
|
|---|
| 5671 | inline BOOL _WinSetCapture(HWND a, HWND b)
|
|---|
| 5672 | {
|
|---|
| 5673 | BOOL yyrc;
|
|---|
| 5674 | USHORT sel = RestoreOS2FS();
|
|---|
| 5675 |
|
|---|
| 5676 | yyrc = WinSetCapture(a, b);
|
|---|
| 5677 | SetFS(sel);
|
|---|
| 5678 |
|
|---|
| 5679 | return yyrc;
|
|---|
| 5680 | }
|
|---|
| 5681 |
|
|---|
| 5682 | #undef WinSetCapture
|
|---|
| 5683 | #define WinSetCapture _WinSetCapture
|
|---|
| 5684 |
|
|---|
| 5685 | inline BOOL _WinSetKeyboardStateTable(HWND a, PBYTE b, BOOL c)
|
|---|
| 5686 | {
|
|---|
| 5687 | BOOL yyrc;
|
|---|
| 5688 | USHORT sel = RestoreOS2FS();
|
|---|
| 5689 |
|
|---|
| 5690 | yyrc = WinSetKeyboardStateTable(a, b, c);
|
|---|
| 5691 | SetFS(sel);
|
|---|
| 5692 |
|
|---|
| 5693 | return yyrc;
|
|---|
| 5694 | }
|
|---|
| 5695 |
|
|---|
| 5696 | #undef WinSetKeyboardStateTable
|
|---|
| 5697 | #define WinSetKeyboardStateTable _WinSetKeyboardStateTable
|
|---|
| 5698 |
|
|---|
| 5699 | inline BOOL _WinSetVisibleRegionNotify(HWND a, BOOL b)
|
|---|
| 5700 | {
|
|---|
| 5701 | BOOL yyrc;
|
|---|
| 5702 | USHORT sel = RestoreOS2FS();
|
|---|
| 5703 |
|
|---|
| 5704 | yyrc = WinSetVisibleRegionNotify(a, b);
|
|---|
| 5705 | SetFS(sel);
|
|---|
| 5706 |
|
|---|
| 5707 | return yyrc;
|
|---|
| 5708 | }
|
|---|
| 5709 |
|
|---|
| 5710 | #undef WinSetVisibleRegionNotify
|
|---|
| 5711 | #define WinSetVisibleRegionNotify _WinSetVisibleRegionNotify
|
|---|
| 5712 |
|
|---|
| 5713 | #endif
|
|---|
| 5714 | #ifdef INCL_WINLOAD
|
|---|
| 5715 | inline BOOL _WinDeleteLibrary(HAB a, HLIB b)
|
|---|
| 5716 | {
|
|---|
| 5717 | BOOL yyrc;
|
|---|
| 5718 | USHORT sel = RestoreOS2FS();
|
|---|
| 5719 |
|
|---|
| 5720 | yyrc = WinDeleteLibrary(a, b);
|
|---|
| 5721 | SetFS(sel);
|
|---|
| 5722 |
|
|---|
| 5723 | return yyrc;
|
|---|
| 5724 | }
|
|---|
| 5725 |
|
|---|
| 5726 | #undef WinDeleteLibrary
|
|---|
| 5727 | #define WinDeleteLibrary _WinDeleteLibrary
|
|---|
| 5728 |
|
|---|
| 5729 | inline BOOL _WinDeleteProcedure(HAB a, PFNWP b)
|
|---|
| 5730 | {
|
|---|
| 5731 | BOOL yyrc;
|
|---|
| 5732 | USHORT sel = RestoreOS2FS();
|
|---|
| 5733 |
|
|---|
| 5734 | yyrc = WinDeleteProcedure(a, b);
|
|---|
| 5735 | SetFS(sel);
|
|---|
| 5736 |
|
|---|
| 5737 | return yyrc;
|
|---|
| 5738 | }
|
|---|
| 5739 |
|
|---|
| 5740 | #undef WinDeleteProcedure
|
|---|
| 5741 | #define WinDeleteProcedure _WinDeleteProcedure
|
|---|
| 5742 |
|
|---|
| 5743 | inline HLIB _WinLoadLibrary(HAB a, PCSZ b)
|
|---|
| 5744 | {
|
|---|
| 5745 | HLIB yyrc;
|
|---|
| 5746 | USHORT sel = RestoreOS2FS();
|
|---|
| 5747 |
|
|---|
| 5748 | yyrc = WinLoadLibrary(a, b);
|
|---|
| 5749 | SetFS(sel);
|
|---|
| 5750 |
|
|---|
| 5751 | return yyrc;
|
|---|
| 5752 | }
|
|---|
| 5753 |
|
|---|
| 5754 | #undef WinLoadLibrary
|
|---|
| 5755 | #define WinLoadLibrary _WinLoadLibrary
|
|---|
| 5756 |
|
|---|
| 5757 | inline PFNWP _WinLoadProcedure(HAB a, HLIB b, PSZ c)
|
|---|
| 5758 | {
|
|---|
| 5759 | PFNWP yyrc;
|
|---|
| 5760 | USHORT sel = RestoreOS2FS();
|
|---|
| 5761 |
|
|---|
| 5762 | yyrc = WinLoadProcedure(a, b, c);
|
|---|
| 5763 | SetFS(sel);
|
|---|
| 5764 |
|
|---|
| 5765 | return yyrc;
|
|---|
| 5766 | }
|
|---|
| 5767 |
|
|---|
| 5768 | #undef WinLoadProcedure
|
|---|
| 5769 | #define WinLoadProcedure _WinLoadProcedure
|
|---|
| 5770 |
|
|---|
| 5771 | #endif
|
|---|
| 5772 | #ifdef INCL_WINMENUS
|
|---|
| 5773 | inline HWND _WinCreateMenu(HWND a, PVOID b)
|
|---|
| 5774 | {
|
|---|
| 5775 | HWND yyrc;
|
|---|
| 5776 | USHORT sel = RestoreOS2FS();
|
|---|
| 5777 |
|
|---|
| 5778 | yyrc = WinCreateMenu(a, b);
|
|---|
| 5779 | SetFS(sel);
|
|---|
| 5780 |
|
|---|
| 5781 | return yyrc;
|
|---|
| 5782 | }
|
|---|
| 5783 |
|
|---|
| 5784 | #undef WinCreateMenu
|
|---|
| 5785 | #define WinCreateMenu _WinCreateMenu
|
|---|
| 5786 |
|
|---|
| 5787 | inline HWND _WinLoadMenu(HWND a, HMODULE b, ULONG c)
|
|---|
| 5788 | {
|
|---|
| 5789 | HWND yyrc;
|
|---|
| 5790 | USHORT sel = RestoreOS2FS();
|
|---|
| 5791 |
|
|---|
| 5792 | yyrc = WinLoadMenu(a, b, c);
|
|---|
| 5793 | SetFS(sel);
|
|---|
| 5794 |
|
|---|
| 5795 | return yyrc;
|
|---|
| 5796 | }
|
|---|
| 5797 |
|
|---|
| 5798 | #undef WinLoadMenu
|
|---|
| 5799 | #define WinLoadMenu _WinLoadMenu
|
|---|
| 5800 |
|
|---|
| 5801 | inline BOOL _WinPopupMenu(HWND a, HWND b, HWND c, LONG d, LONG e, LONG f, ULONG g)
|
|---|
| 5802 | {
|
|---|
| 5803 | BOOL yyrc;
|
|---|
| 5804 | USHORT sel = RestoreOS2FS();
|
|---|
| 5805 |
|
|---|
| 5806 | yyrc = WinPopupMenu(a, b, c, d, e, f, g);
|
|---|
| 5807 | SetFS(sel);
|
|---|
| 5808 |
|
|---|
| 5809 | return yyrc;
|
|---|
| 5810 | }
|
|---|
| 5811 |
|
|---|
| 5812 | #undef WinPopupMenu
|
|---|
| 5813 | #define WinPopupMenu _WinPopupMenu
|
|---|
| 5814 |
|
|---|
| 5815 | #endif
|
|---|
| 5816 | #ifdef INCL_WINMESSAGEMGR
|
|---|
| 5817 | inline BOOL _WinBroadcastMsg(HWND a, ULONG b, MPARAM c, MPARAM d, ULONG e)
|
|---|
| 5818 | {
|
|---|
| 5819 | BOOL yyrc;
|
|---|
| 5820 | USHORT sel = RestoreOS2FS();
|
|---|
| 5821 |
|
|---|
| 5822 | yyrc = WinBroadcastMsg(a, b, c, d, e);
|
|---|
| 5823 | SetFS(sel);
|
|---|
| 5824 |
|
|---|
| 5825 | return yyrc;
|
|---|
| 5826 | }
|
|---|
| 5827 |
|
|---|
| 5828 | #undef WinBroadcastMsg
|
|---|
| 5829 | #define WinBroadcastMsg _WinBroadcastMsg
|
|---|
| 5830 |
|
|---|
| 5831 | inline BOOL _WinInSendMsg(HAB a)
|
|---|
| 5832 | {
|
|---|
| 5833 | BOOL yyrc;
|
|---|
| 5834 | USHORT sel = RestoreOS2FS();
|
|---|
| 5835 |
|
|---|
| 5836 | yyrc = WinInSendMsg(a);
|
|---|
| 5837 | SetFS(sel);
|
|---|
| 5838 |
|
|---|
| 5839 | return yyrc;
|
|---|
| 5840 | }
|
|---|
| 5841 |
|
|---|
| 5842 | #undef WinInSendMsg
|
|---|
| 5843 | #define WinInSendMsg _WinInSendMsg
|
|---|
| 5844 |
|
|---|
| 5845 | inline BOOL _WinPostQueueMsg(HMQ a, ULONG b, MPARAM c, MPARAM d)
|
|---|
| 5846 | {
|
|---|
| 5847 | BOOL yyrc;
|
|---|
| 5848 | USHORT sel = RestoreOS2FS();
|
|---|
| 5849 |
|
|---|
| 5850 | yyrc = WinPostQueueMsg(a, b, c, d);
|
|---|
| 5851 | SetFS(sel);
|
|---|
| 5852 |
|
|---|
| 5853 | return yyrc;
|
|---|
| 5854 | }
|
|---|
| 5855 |
|
|---|
| 5856 | #undef WinPostQueueMsg
|
|---|
| 5857 | #define WinPostQueueMsg _WinPostQueueMsg
|
|---|
| 5858 |
|
|---|
| 5859 | inline BOOL _WinQueryMsgPos(HAB a, PPOINTL b)
|
|---|
| 5860 | {
|
|---|
| 5861 | BOOL yyrc;
|
|---|
| 5862 | USHORT sel = RestoreOS2FS();
|
|---|
| 5863 |
|
|---|
| 5864 | yyrc = WinQueryMsgPos(a, b);
|
|---|
| 5865 | SetFS(sel);
|
|---|
| 5866 |
|
|---|
| 5867 | return yyrc;
|
|---|
| 5868 | }
|
|---|
| 5869 |
|
|---|
| 5870 | #undef WinQueryMsgPos
|
|---|
| 5871 | #define WinQueryMsgPos _WinQueryMsgPos
|
|---|
| 5872 |
|
|---|
| 5873 | inline ULONG _WinQueryMsgTime(HAB a)
|
|---|
| 5874 | {
|
|---|
| 5875 | ULONG yyrc;
|
|---|
| 5876 | USHORT sel = RestoreOS2FS();
|
|---|
| 5877 |
|
|---|
| 5878 | yyrc = WinQueryMsgTime(a);
|
|---|
| 5879 | SetFS(sel);
|
|---|
| 5880 |
|
|---|
| 5881 | return yyrc;
|
|---|
| 5882 | }
|
|---|
| 5883 |
|
|---|
| 5884 | #undef WinQueryMsgTime
|
|---|
| 5885 | #define WinQueryMsgTime _WinQueryMsgTime
|
|---|
| 5886 |
|
|---|
| 5887 | inline ULONG _WinQueryQueueStatus(HWND a)
|
|---|
| 5888 | {
|
|---|
| 5889 | ULONG yyrc;
|
|---|
| 5890 | USHORT sel = RestoreOS2FS();
|
|---|
| 5891 |
|
|---|
| 5892 | yyrc = WinQueryQueueStatus(a);
|
|---|
| 5893 | SetFS(sel);
|
|---|
| 5894 |
|
|---|
| 5895 | return yyrc;
|
|---|
| 5896 | }
|
|---|
| 5897 |
|
|---|
| 5898 | #undef WinQueryQueueStatus
|
|---|
| 5899 | #define WinQueryQueueStatus _WinQueryQueueStatus
|
|---|
| 5900 |
|
|---|
| 5901 | inline ULONG _WinRequestMutexSem(HMTX a, ULONG b)
|
|---|
| 5902 | {
|
|---|
| 5903 | ULONG yyrc;
|
|---|
| 5904 | USHORT sel = RestoreOS2FS();
|
|---|
| 5905 |
|
|---|
| 5906 | yyrc = WinRequestMutexSem(a, b);
|
|---|
| 5907 | SetFS(sel);
|
|---|
| 5908 |
|
|---|
| 5909 | return yyrc;
|
|---|
| 5910 | }
|
|---|
| 5911 |
|
|---|
| 5912 | #undef WinRequestMutexSem
|
|---|
| 5913 | #define WinRequestMutexSem _WinRequestMutexSem
|
|---|
| 5914 |
|
|---|
| 5915 | inline BOOL _WinSetClassMsgInterest(HAB a, PCSZ b, ULONG c, LONG d)
|
|---|
| 5916 | {
|
|---|
| 5917 | BOOL yyrc;
|
|---|
| 5918 | USHORT sel = RestoreOS2FS();
|
|---|
| 5919 |
|
|---|
| 5920 | yyrc = WinSetClassMsgInterest(a, b, c, d);
|
|---|
| 5921 | SetFS(sel);
|
|---|
| 5922 |
|
|---|
| 5923 | return yyrc;
|
|---|
| 5924 | }
|
|---|
| 5925 |
|
|---|
| 5926 | #undef WinSetClassMsgInterest
|
|---|
| 5927 | #define WinSetClassMsgInterest _WinSetClassMsgInterest
|
|---|
| 5928 |
|
|---|
| 5929 | inline BOOL _WinSetMsgInterest(HWND a, ULONG b, LONG c)
|
|---|
| 5930 | {
|
|---|
| 5931 | BOOL yyrc;
|
|---|
| 5932 | USHORT sel = RestoreOS2FS();
|
|---|
| 5933 |
|
|---|
| 5934 | yyrc = WinSetMsgInterest(a, b, c);
|
|---|
| 5935 | SetFS(sel);
|
|---|
| 5936 |
|
|---|
| 5937 | return yyrc;
|
|---|
| 5938 | }
|
|---|
| 5939 |
|
|---|
| 5940 | #undef WinSetMsgInterest
|
|---|
| 5941 | #define WinSetMsgInterest _WinSetMsgInterest
|
|---|
| 5942 |
|
|---|
| 5943 | inline ULONG _WinWaitEventSem(HEV a, ULONG b)
|
|---|
| 5944 | {
|
|---|
| 5945 | ULONG yyrc;
|
|---|
| 5946 | USHORT sel = RestoreOS2FS();
|
|---|
| 5947 |
|
|---|
| 5948 | yyrc = WinWaitEventSem(a, b);
|
|---|
| 5949 | SetFS(sel);
|
|---|
| 5950 |
|
|---|
| 5951 | return yyrc;
|
|---|
| 5952 | }
|
|---|
| 5953 |
|
|---|
| 5954 | #undef WinWaitEventSem
|
|---|
| 5955 | #define WinWaitEventSem _WinWaitEventSem
|
|---|
| 5956 |
|
|---|
| 5957 | inline BOOL _WinWaitMsg(HAB a, ULONG b, ULONG c)
|
|---|
| 5958 | {
|
|---|
| 5959 | BOOL yyrc;
|
|---|
| 5960 | USHORT sel = RestoreOS2FS();
|
|---|
| 5961 |
|
|---|
| 5962 | yyrc = WinWaitMsg(a, b, c);
|
|---|
| 5963 | SetFS(sel);
|
|---|
| 5964 |
|
|---|
| 5965 | return yyrc;
|
|---|
| 5966 | }
|
|---|
| 5967 |
|
|---|
| 5968 | #undef WinWaitMsg
|
|---|
| 5969 | #define WinWaitMsg _WinWaitMsg
|
|---|
| 5970 |
|
|---|
| 5971 | inline ULONG _WinWaitMuxWaitSem(HMUX a, ULONG b, PULONG c)
|
|---|
| 5972 | {
|
|---|
| 5973 | ULONG yyrc;
|
|---|
| 5974 | USHORT sel = RestoreOS2FS();
|
|---|
| 5975 |
|
|---|
| 5976 | yyrc = WinWaitMuxWaitSem(a, b, c);
|
|---|
| 5977 | SetFS(sel);
|
|---|
| 5978 |
|
|---|
| 5979 | return yyrc;
|
|---|
| 5980 | }
|
|---|
| 5981 |
|
|---|
| 5982 | #undef WinWaitMuxWaitSem
|
|---|
| 5983 | #define WinWaitMuxWaitSem _WinWaitMuxWaitSem
|
|---|
| 5984 |
|
|---|
| 5985 | #endif
|
|---|
| 5986 | #ifdef INCL_WINPALETTE
|
|---|
| 5987 | inline LONG _WinRealizePalette(HWND a, HPS b, PULONG c)
|
|---|
| 5988 | {
|
|---|
| 5989 | LONG yyrc;
|
|---|
| 5990 | USHORT sel = RestoreOS2FS();
|
|---|
| 5991 |
|
|---|
| 5992 | yyrc = WinRealizePalette(a, b, c);
|
|---|
| 5993 | SetFS(sel);
|
|---|
| 5994 |
|
|---|
| 5995 | return yyrc;
|
|---|
| 5996 | }
|
|---|
| 5997 |
|
|---|
| 5998 | #undef WinRealizePalette
|
|---|
| 5999 | #define WinRealizePalette _WinRealizePalette
|
|---|
| 6000 |
|
|---|
| 6001 | #endif
|
|---|
| 6002 | #ifdef INCL_WINPOINTERS
|
|---|
| 6003 | inline HPOINTER _WinCreatePointer(HWND a, HBITMAP b, BOOL c, LONG d, LONG e)
|
|---|
| 6004 | {
|
|---|
| 6005 | HPOINTER yyrc;
|
|---|
| 6006 | USHORT sel = RestoreOS2FS();
|
|---|
| 6007 |
|
|---|
| 6008 | yyrc = WinCreatePointer(a, b, c, d, e);
|
|---|
| 6009 | SetFS(sel);
|
|---|
| 6010 |
|
|---|
| 6011 | return yyrc;
|
|---|
| 6012 | }
|
|---|
| 6013 |
|
|---|
| 6014 | #undef WinCreatePointer
|
|---|
| 6015 | #define WinCreatePointer _WinCreatePointer
|
|---|
| 6016 |
|
|---|
| 6017 | inline HPOINTER _WinCreatePointerIndirect(HWND a, PPOINTERINFO b)
|
|---|
| 6018 | {
|
|---|
| 6019 | HPOINTER yyrc;
|
|---|
| 6020 | USHORT sel = RestoreOS2FS();
|
|---|
| 6021 |
|
|---|
| 6022 | yyrc = WinCreatePointerIndirect(a, b);
|
|---|
| 6023 | SetFS(sel);
|
|---|
| 6024 |
|
|---|
| 6025 | return yyrc;
|
|---|
| 6026 | }
|
|---|
| 6027 |
|
|---|
| 6028 | #undef WinCreatePointerIndirect
|
|---|
| 6029 | #define WinCreatePointerIndirect _WinCreatePointerIndirect
|
|---|
| 6030 |
|
|---|
| 6031 | inline BOOL _WinDestroyPointer(HPOINTER a)
|
|---|
| 6032 | {
|
|---|
| 6033 | BOOL yyrc;
|
|---|
| 6034 | USHORT sel = RestoreOS2FS();
|
|---|
| 6035 |
|
|---|
| 6036 | yyrc = WinDestroyPointer(a);
|
|---|
| 6037 | SetFS(sel);
|
|---|
| 6038 |
|
|---|
| 6039 | return yyrc;
|
|---|
| 6040 | }
|
|---|
| 6041 |
|
|---|
| 6042 | #undef WinDestroyPointer
|
|---|
| 6043 | #define WinDestroyPointer _WinDestroyPointer
|
|---|
| 6044 |
|
|---|
| 6045 | inline BOOL _WinDrawPointer(HPS a, LONG b, LONG c, HPOINTER d, ULONG e)
|
|---|
| 6046 | {
|
|---|
| 6047 | BOOL yyrc;
|
|---|
| 6048 | USHORT sel = RestoreOS2FS();
|
|---|
| 6049 |
|
|---|
| 6050 | yyrc = WinDrawPointer(a, b, c, d, e);
|
|---|
| 6051 | SetFS(sel);
|
|---|
| 6052 |
|
|---|
| 6053 | return yyrc;
|
|---|
| 6054 | }
|
|---|
| 6055 |
|
|---|
| 6056 | #undef WinDrawPointer
|
|---|
| 6057 | #define WinDrawPointer _WinDrawPointer
|
|---|
| 6058 |
|
|---|
| 6059 | inline HBITMAP _WinGetSysBitmap(HWND a, ULONG b)
|
|---|
| 6060 | {
|
|---|
| 6061 | HBITMAP yyrc;
|
|---|
| 6062 | USHORT sel = RestoreOS2FS();
|
|---|
| 6063 |
|
|---|
| 6064 | yyrc = WinGetSysBitmap(a, b);
|
|---|
| 6065 | SetFS(sel);
|
|---|
| 6066 |
|
|---|
| 6067 | return yyrc;
|
|---|
| 6068 | }
|
|---|
| 6069 |
|
|---|
| 6070 | #undef WinGetSysBitmap
|
|---|
| 6071 | #define WinGetSysBitmap _WinGetSysBitmap
|
|---|
| 6072 |
|
|---|
| 6073 | inline HPOINTER _WinLoadPointer(HWND a, HMODULE b, ULONG c)
|
|---|
| 6074 | {
|
|---|
| 6075 | HPOINTER yyrc;
|
|---|
| 6076 | USHORT sel = RestoreOS2FS();
|
|---|
| 6077 |
|
|---|
| 6078 | yyrc = WinLoadPointer(a, b, c);
|
|---|
| 6079 | SetFS(sel);
|
|---|
| 6080 |
|
|---|
| 6081 | return yyrc;
|
|---|
| 6082 | }
|
|---|
| 6083 |
|
|---|
| 6084 | #undef WinLoadPointer
|
|---|
| 6085 | #define WinLoadPointer _WinLoadPointer
|
|---|
| 6086 |
|
|---|
| 6087 | inline BOOL _WinLockPointerUpdate(HWND a, HPOINTER b, ULONG c)
|
|---|
| 6088 | {
|
|---|
| 6089 | BOOL yyrc;
|
|---|
| 6090 | USHORT sel = RestoreOS2FS();
|
|---|
| 6091 |
|
|---|
| 6092 | yyrc = WinLockPointerUpdate(a, b, c);
|
|---|
| 6093 | SetFS(sel);
|
|---|
| 6094 |
|
|---|
| 6095 | return yyrc;
|
|---|
| 6096 | }
|
|---|
| 6097 |
|
|---|
| 6098 | #undef WinLockPointerUpdate
|
|---|
| 6099 | #define WinLockPointerUpdate _WinLockPointerUpdate
|
|---|
| 6100 |
|
|---|
| 6101 | inline BOOL _WinQueryPointerPos(HWND a, PPOINTL b)
|
|---|
| 6102 | {
|
|---|
| 6103 | BOOL yyrc;
|
|---|
| 6104 | USHORT sel = RestoreOS2FS();
|
|---|
| 6105 |
|
|---|
| 6106 | yyrc = WinQueryPointerPos(a, b);
|
|---|
| 6107 | SetFS(sel);
|
|---|
| 6108 |
|
|---|
| 6109 | return yyrc;
|
|---|
| 6110 | }
|
|---|
| 6111 |
|
|---|
| 6112 | #undef WinQueryPointerPos
|
|---|
| 6113 | #define WinQueryPointerPos _WinQueryPointerPos
|
|---|
| 6114 |
|
|---|
| 6115 | inline BOOL _WinQueryPointerInfo(HPOINTER a, PPOINTERINFO b)
|
|---|
| 6116 | {
|
|---|
| 6117 | BOOL yyrc;
|
|---|
| 6118 | USHORT sel = RestoreOS2FS();
|
|---|
| 6119 |
|
|---|
| 6120 | yyrc = WinQueryPointerInfo(a, b);
|
|---|
| 6121 | SetFS(sel);
|
|---|
| 6122 |
|
|---|
| 6123 | return yyrc;
|
|---|
| 6124 | }
|
|---|
| 6125 |
|
|---|
| 6126 | #undef WinQueryPointerInfo
|
|---|
| 6127 | #define WinQueryPointerInfo _WinQueryPointerInfo
|
|---|
| 6128 |
|
|---|
| 6129 | inline HPOINTER _WinQuerySysPointer(HWND a, LONG b, BOOL c)
|
|---|
| 6130 | {
|
|---|
| 6131 | HPOINTER yyrc;
|
|---|
| 6132 | USHORT sel = RestoreOS2FS();
|
|---|
| 6133 |
|
|---|
| 6134 | yyrc = WinQuerySysPointer(a, b, c);
|
|---|
| 6135 | SetFS(sel);
|
|---|
| 6136 |
|
|---|
| 6137 | return yyrc;
|
|---|
| 6138 | }
|
|---|
| 6139 |
|
|---|
| 6140 | #undef WinQuerySysPointer
|
|---|
| 6141 | #define WinQuerySysPointer _WinQuerySysPointer
|
|---|
| 6142 |
|
|---|
| 6143 | inline BOOL _WinQuerySysPointerData(HWND a, ULONG b, PICONINFO c)
|
|---|
| 6144 | {
|
|---|
| 6145 | BOOL yyrc;
|
|---|
| 6146 | USHORT sel = RestoreOS2FS();
|
|---|
| 6147 |
|
|---|
| 6148 | yyrc = WinQuerySysPointerData(a, b, c);
|
|---|
| 6149 | SetFS(sel);
|
|---|
| 6150 |
|
|---|
| 6151 | return yyrc;
|
|---|
| 6152 | }
|
|---|
| 6153 |
|
|---|
| 6154 | #undef WinQuerySysPointerData
|
|---|
| 6155 | #define WinQuerySysPointerData _WinQuerySysPointerData
|
|---|
| 6156 |
|
|---|
| 6157 | inline BOOL _WinSetPointer(HWND a, HPOINTER b)
|
|---|
| 6158 | {
|
|---|
| 6159 | BOOL yyrc;
|
|---|
| 6160 | USHORT sel = RestoreOS2FS();
|
|---|
| 6161 |
|
|---|
| 6162 | yyrc = WinSetPointer(a, b);
|
|---|
| 6163 | SetFS(sel);
|
|---|
| 6164 |
|
|---|
| 6165 | return yyrc;
|
|---|
| 6166 | }
|
|---|
| 6167 |
|
|---|
| 6168 | #undef WinSetPointer
|
|---|
| 6169 | #define WinSetPointer _WinSetPointer
|
|---|
| 6170 |
|
|---|
| 6171 | inline BOOL _WinSetPointerOwner(HPOINTER a, PID b, BOOL c)
|
|---|
| 6172 | {
|
|---|
| 6173 | BOOL yyrc;
|
|---|
| 6174 | USHORT sel = RestoreOS2FS();
|
|---|
| 6175 |
|
|---|
| 6176 | yyrc = WinSetPointerOwner(a, b, c);
|
|---|
| 6177 | SetFS(sel);
|
|---|
| 6178 |
|
|---|
| 6179 | return yyrc;
|
|---|
| 6180 | }
|
|---|
| 6181 |
|
|---|
| 6182 | #undef WinSetPointerOwner
|
|---|
| 6183 | #define WinSetPointerOwner _WinSetPointerOwner
|
|---|
| 6184 |
|
|---|
| 6185 | inline BOOL _WinSetPointerPos(HWND a, LONG b, LONG c)
|
|---|
| 6186 | {
|
|---|
| 6187 | BOOL yyrc;
|
|---|
| 6188 | USHORT sel = RestoreOS2FS();
|
|---|
| 6189 |
|
|---|
| 6190 | yyrc = WinSetPointerPos(a, b, c);
|
|---|
| 6191 | SetFS(sel);
|
|---|
| 6192 |
|
|---|
| 6193 | return yyrc;
|
|---|
| 6194 | }
|
|---|
| 6195 |
|
|---|
| 6196 | #undef WinSetPointerPos
|
|---|
| 6197 | #define WinSetPointerPos _WinSetPointerPos
|
|---|
| 6198 |
|
|---|
| 6199 | inline BOOL _WinSetSysPointerData(HWND a, ULONG b, PICONINFO c)
|
|---|
| 6200 | {
|
|---|
| 6201 | BOOL yyrc;
|
|---|
| 6202 | USHORT sel = RestoreOS2FS();
|
|---|
| 6203 |
|
|---|
| 6204 | yyrc = WinSetSysPointerData(a, b, c);
|
|---|
| 6205 | SetFS(sel);
|
|---|
| 6206 |
|
|---|
| 6207 | return yyrc;
|
|---|
| 6208 | }
|
|---|
| 6209 |
|
|---|
| 6210 | #undef WinSetSysPointerData
|
|---|
| 6211 | #define WinSetSysPointerData _WinSetSysPointerData
|
|---|
| 6212 |
|
|---|
| 6213 | inline BOOL _WinShowPointer(HWND a, BOOL b)
|
|---|
| 6214 | {
|
|---|
| 6215 | BOOL yyrc;
|
|---|
| 6216 | USHORT sel = RestoreOS2FS();
|
|---|
| 6217 |
|
|---|
| 6218 | yyrc = WinShowPointer(a, b);
|
|---|
| 6219 | SetFS(sel);
|
|---|
| 6220 |
|
|---|
| 6221 | return yyrc;
|
|---|
| 6222 | }
|
|---|
| 6223 |
|
|---|
| 6224 | #undef WinShowPointer
|
|---|
| 6225 | #define WinShowPointer _WinShowPointer
|
|---|
| 6226 |
|
|---|
| 6227 | #endif
|
|---|
| 6228 | #ifdef INCL_WINRECTANGLES
|
|---|
| 6229 | inline BOOL _WinCopyRect(HAB a, PRECTL b, PRECTL c)
|
|---|
| 6230 | {
|
|---|
| 6231 | BOOL yyrc;
|
|---|
| 6232 | USHORT sel = RestoreOS2FS();
|
|---|
| 6233 |
|
|---|
| 6234 | yyrc = WinCopyRect(a, b, c);
|
|---|
| 6235 | SetFS(sel);
|
|---|
| 6236 |
|
|---|
| 6237 | return yyrc;
|
|---|
| 6238 | }
|
|---|
| 6239 |
|
|---|
| 6240 | #undef WinCopyRect
|
|---|
| 6241 | #define WinCopyRect _WinCopyRect
|
|---|
| 6242 |
|
|---|
| 6243 | inline BOOL _WinEqualRect(HAB a, PRECTL b, PRECTL c)
|
|---|
| 6244 | {
|
|---|
| 6245 | BOOL yyrc;
|
|---|
| 6246 | USHORT sel = RestoreOS2FS();
|
|---|
| 6247 |
|
|---|
| 6248 | yyrc = WinEqualRect(a, b, c);
|
|---|
| 6249 | SetFS(sel);
|
|---|
| 6250 |
|
|---|
| 6251 | return yyrc;
|
|---|
| 6252 | }
|
|---|
| 6253 |
|
|---|
| 6254 | #undef WinEqualRect
|
|---|
| 6255 | #define WinEqualRect _WinEqualRect
|
|---|
| 6256 |
|
|---|
| 6257 | inline BOOL _WinInflateRect(HAB a, PRECTL b, LONG c, LONG d)
|
|---|
| 6258 | {
|
|---|
| 6259 | BOOL yyrc;
|
|---|
| 6260 | USHORT sel = RestoreOS2FS();
|
|---|
| 6261 |
|
|---|
| 6262 | yyrc = WinInflateRect(a, b, c, d);
|
|---|
| 6263 | SetFS(sel);
|
|---|
| 6264 |
|
|---|
| 6265 | return yyrc;
|
|---|
| 6266 | }
|
|---|
| 6267 |
|
|---|
| 6268 | #undef WinInflateRect
|
|---|
| 6269 | #define WinInflateRect _WinInflateRect
|
|---|
| 6270 |
|
|---|
| 6271 | inline BOOL _WinIntersectRect(HAB a, PRECTL b, PRECTL c, PRECTL d)
|
|---|
| 6272 | {
|
|---|
| 6273 | BOOL yyrc;
|
|---|
| 6274 | USHORT sel = RestoreOS2FS();
|
|---|
| 6275 |
|
|---|
| 6276 | yyrc = WinIntersectRect(a, b, c, d);
|
|---|
| 6277 | SetFS(sel);
|
|---|
| 6278 |
|
|---|
| 6279 | return yyrc;
|
|---|
| 6280 | }
|
|---|
| 6281 |
|
|---|
| 6282 | #undef WinIntersectRect
|
|---|
| 6283 | #define WinIntersectRect _WinIntersectRect
|
|---|
| 6284 |
|
|---|
| 6285 | inline BOOL _WinIsRectEmpty(HAB a, PRECTL b)
|
|---|
| 6286 | {
|
|---|
| 6287 | BOOL yyrc;
|
|---|
| 6288 | USHORT sel = RestoreOS2FS();
|
|---|
| 6289 |
|
|---|
| 6290 | yyrc = WinIsRectEmpty(a, b);
|
|---|
| 6291 | SetFS(sel);
|
|---|
| 6292 |
|
|---|
| 6293 | return yyrc;
|
|---|
| 6294 | }
|
|---|
| 6295 |
|
|---|
| 6296 | #undef WinIsRectEmpty
|
|---|
| 6297 | #define WinIsRectEmpty _WinIsRectEmpty
|
|---|
| 6298 |
|
|---|
| 6299 | inline BOOL _WinMakePoints(HAB a, PPOINTL b, ULONG c)
|
|---|
| 6300 | {
|
|---|
| 6301 | BOOL yyrc;
|
|---|
| 6302 | USHORT sel = RestoreOS2FS();
|
|---|
| 6303 |
|
|---|
| 6304 | yyrc = WinMakePoints(a, b, c);
|
|---|
| 6305 | SetFS(sel);
|
|---|
| 6306 |
|
|---|
| 6307 | return yyrc;
|
|---|
| 6308 | }
|
|---|
| 6309 |
|
|---|
| 6310 | #undef WinMakePoints
|
|---|
| 6311 | #define WinMakePoints _WinMakePoints
|
|---|
| 6312 |
|
|---|
| 6313 | inline BOOL _WinMakeRect(HAB a, PRECTL b)
|
|---|
| 6314 | {
|
|---|
| 6315 | BOOL yyrc;
|
|---|
| 6316 | USHORT sel = RestoreOS2FS();
|
|---|
| 6317 |
|
|---|
| 6318 | yyrc = WinMakeRect(a, b);
|
|---|
| 6319 | SetFS(sel);
|
|---|
| 6320 |
|
|---|
| 6321 | return yyrc;
|
|---|
| 6322 | }
|
|---|
| 6323 |
|
|---|
| 6324 | #undef WinMakeRect
|
|---|
| 6325 | #define WinMakeRect _WinMakeRect
|
|---|
| 6326 |
|
|---|
| 6327 | inline BOOL _WinOffsetRect(HAB a, PRECTL b, LONG c, LONG d)
|
|---|
| 6328 | {
|
|---|
| 6329 | BOOL yyrc;
|
|---|
| 6330 | USHORT sel = RestoreOS2FS();
|
|---|
| 6331 |
|
|---|
| 6332 | yyrc = WinOffsetRect(a, b, c, d);
|
|---|
| 6333 | SetFS(sel);
|
|---|
| 6334 |
|
|---|
| 6335 | return yyrc;
|
|---|
| 6336 | }
|
|---|
| 6337 |
|
|---|
| 6338 | #undef WinOffsetRect
|
|---|
| 6339 | #define WinOffsetRect _WinOffsetRect
|
|---|
| 6340 |
|
|---|
| 6341 | inline BOOL _WinPtInRect(HAB a, PRECTL b, PPOINTL c)
|
|---|
| 6342 | {
|
|---|
| 6343 | BOOL yyrc;
|
|---|
| 6344 | USHORT sel = RestoreOS2FS();
|
|---|
| 6345 |
|
|---|
| 6346 | yyrc = WinPtInRect(a, b, c);
|
|---|
| 6347 | SetFS(sel);
|
|---|
| 6348 |
|
|---|
| 6349 | return yyrc;
|
|---|
| 6350 | }
|
|---|
| 6351 |
|
|---|
| 6352 | #undef WinPtInRect
|
|---|
| 6353 | #define WinPtInRect _WinPtInRect
|
|---|
| 6354 |
|
|---|
| 6355 | inline BOOL _WinSetRect(HAB a, PRECTL b, LONG c, LONG d, LONG e, LONG f)
|
|---|
| 6356 | {
|
|---|
| 6357 | BOOL yyrc;
|
|---|
| 6358 | USHORT sel = RestoreOS2FS();
|
|---|
| 6359 |
|
|---|
| 6360 | yyrc = WinSetRect(a, b, c, d, e, f);
|
|---|
| 6361 | SetFS(sel);
|
|---|
| 6362 |
|
|---|
| 6363 | return yyrc;
|
|---|
| 6364 | }
|
|---|
| 6365 |
|
|---|
| 6366 | #undef WinSetRect
|
|---|
| 6367 | #define WinSetRect _WinSetRect
|
|---|
| 6368 |
|
|---|
| 6369 | inline BOOL _WinSetRectEmpty(HAB a, PRECTL b)
|
|---|
| 6370 | {
|
|---|
| 6371 | BOOL yyrc;
|
|---|
| 6372 | USHORT sel = RestoreOS2FS();
|
|---|
| 6373 |
|
|---|
| 6374 | yyrc = WinSetRectEmpty(a, b);
|
|---|
| 6375 | SetFS(sel);
|
|---|
| 6376 |
|
|---|
| 6377 | return yyrc;
|
|---|
| 6378 | }
|
|---|
| 6379 |
|
|---|
| 6380 | #undef WinSetRectEmpty
|
|---|
| 6381 | #define WinSetRectEmpty _WinSetRectEmpty
|
|---|
| 6382 |
|
|---|
| 6383 | inline BOOL _WinSubtractRect(HAB a, PRECTL b, PRECTL c, PRECTL d)
|
|---|
| 6384 | {
|
|---|
| 6385 | BOOL yyrc;
|
|---|
| 6386 | USHORT sel = RestoreOS2FS();
|
|---|
| 6387 |
|
|---|
| 6388 | yyrc = WinSubtractRect(a, b, c, d);
|
|---|
| 6389 | SetFS(sel);
|
|---|
| 6390 |
|
|---|
| 6391 | return yyrc;
|
|---|
| 6392 | }
|
|---|
| 6393 |
|
|---|
| 6394 | #undef WinSubtractRect
|
|---|
| 6395 | #define WinSubtractRect _WinSubtractRect
|
|---|
| 6396 |
|
|---|
| 6397 | inline BOOL _WinUnionRect(HAB a, PRECTL b, PRECTL c, PRECTL d)
|
|---|
| 6398 | {
|
|---|
| 6399 | BOOL yyrc;
|
|---|
| 6400 | USHORT sel = RestoreOS2FS();
|
|---|
| 6401 |
|
|---|
| 6402 | yyrc = WinUnionRect(a, b, c, d);
|
|---|
| 6403 | SetFS(sel);
|
|---|
| 6404 |
|
|---|
| 6405 | return yyrc;
|
|---|
| 6406 | }
|
|---|
| 6407 |
|
|---|
| 6408 | #undef WinUnionRect
|
|---|
| 6409 | #define WinUnionRect _WinUnionRect
|
|---|
| 6410 |
|
|---|
| 6411 | #endif
|
|---|
| 6412 | #ifdef INCL_WINSYS
|
|---|
| 6413 | inline LONG _WinQueryControlColors(HWND a, LONG b, ULONG c, ULONG d, PCTLCOLOR e)
|
|---|
| 6414 | {
|
|---|
| 6415 | LONG yyrc;
|
|---|
| 6416 | USHORT sel = RestoreOS2FS();
|
|---|
| 6417 |
|
|---|
| 6418 | yyrc = WinQueryControlColors(a, b, c, d, e);
|
|---|
| 6419 | SetFS(sel);
|
|---|
| 6420 |
|
|---|
| 6421 | return yyrc;
|
|---|
| 6422 | }
|
|---|
| 6423 |
|
|---|
| 6424 | #undef WinQueryControlColors
|
|---|
| 6425 | #define WinQueryControlColors _WinQueryControlColors
|
|---|
| 6426 |
|
|---|
| 6427 | inline ULONG _WinQueryPresParam(HWND a, ULONG b, ULONG c, PULONG d, ULONG e, PVOID f, ULONG g)
|
|---|
| 6428 | {
|
|---|
| 6429 | ULONG yyrc;
|
|---|
| 6430 | USHORT sel = RestoreOS2FS();
|
|---|
| 6431 |
|
|---|
| 6432 | yyrc = WinQueryPresParam(a, b, c, d, e, f, g);
|
|---|
| 6433 | SetFS(sel);
|
|---|
| 6434 |
|
|---|
| 6435 | return yyrc;
|
|---|
| 6436 | }
|
|---|
| 6437 |
|
|---|
| 6438 | #undef WinQueryPresParam
|
|---|
| 6439 | #define WinQueryPresParam _WinQueryPresParam
|
|---|
| 6440 |
|
|---|
| 6441 | inline LONG _WinQuerySysColor(HWND a, LONG b, LONG c)
|
|---|
| 6442 | {
|
|---|
| 6443 | LONG yyrc;
|
|---|
| 6444 | USHORT sel = RestoreOS2FS();
|
|---|
| 6445 |
|
|---|
| 6446 | yyrc = WinQuerySysColor(a, b, c);
|
|---|
| 6447 | SetFS(sel);
|
|---|
| 6448 |
|
|---|
| 6449 | return yyrc;
|
|---|
| 6450 | }
|
|---|
| 6451 |
|
|---|
| 6452 | #undef WinQuerySysColor
|
|---|
| 6453 | #define WinQuerySysColor _WinQuerySysColor
|
|---|
| 6454 |
|
|---|
| 6455 | inline LONG _WinQuerySysValue(HWND a, LONG b)
|
|---|
| 6456 | {
|
|---|
| 6457 | LONG yyrc;
|
|---|
| 6458 | USHORT sel = RestoreOS2FS();
|
|---|
| 6459 |
|
|---|
| 6460 | yyrc = WinQuerySysValue(a, b);
|
|---|
| 6461 | SetFS(sel);
|
|---|
| 6462 |
|
|---|
| 6463 | return yyrc;
|
|---|
| 6464 | }
|
|---|
| 6465 |
|
|---|
| 6466 | #undef WinQuerySysValue
|
|---|
| 6467 | #define WinQuerySysValue _WinQuerySysValue
|
|---|
| 6468 |
|
|---|
| 6469 | inline BOOL _WinRemovePresParam(HWND a, ULONG b)
|
|---|
| 6470 | {
|
|---|
| 6471 | BOOL yyrc;
|
|---|
| 6472 | USHORT sel = RestoreOS2FS();
|
|---|
| 6473 |
|
|---|
| 6474 | yyrc = WinRemovePresParam(a, b);
|
|---|
| 6475 | SetFS(sel);
|
|---|
| 6476 |
|
|---|
| 6477 | return yyrc;
|
|---|
| 6478 | }
|
|---|
| 6479 |
|
|---|
| 6480 | #undef WinRemovePresParam
|
|---|
| 6481 | #define WinRemovePresParam _WinRemovePresParam
|
|---|
| 6482 |
|
|---|
| 6483 | inline LONG _WinSetControlColors(HWND a, LONG b, ULONG c, ULONG d, PCTLCOLOR e)
|
|---|
| 6484 | {
|
|---|
| 6485 | LONG yyrc;
|
|---|
| 6486 | USHORT sel = RestoreOS2FS();
|
|---|
| 6487 |
|
|---|
| 6488 | yyrc = WinSetControlColors(a, b, c, d, e);
|
|---|
| 6489 | SetFS(sel);
|
|---|
| 6490 |
|
|---|
| 6491 | return yyrc;
|
|---|
| 6492 | }
|
|---|
| 6493 |
|
|---|
| 6494 | #undef WinSetControlColors
|
|---|
| 6495 | #define WinSetControlColors _WinSetControlColors
|
|---|
| 6496 |
|
|---|
| 6497 | inline BOOL _WinSetPresParam(HWND a, ULONG b, ULONG c, PVOID d)
|
|---|
| 6498 | {
|
|---|
| 6499 | BOOL yyrc;
|
|---|
| 6500 | USHORT sel = RestoreOS2FS();
|
|---|
| 6501 |
|
|---|
| 6502 | yyrc = WinSetPresParam(a, b, c, d);
|
|---|
| 6503 | SetFS(sel);
|
|---|
| 6504 |
|
|---|
| 6505 | return yyrc;
|
|---|
| 6506 | }
|
|---|
| 6507 |
|
|---|
| 6508 | #undef WinSetPresParam
|
|---|
| 6509 | #define WinSetPresParam _WinSetPresParam
|
|---|
| 6510 |
|
|---|
| 6511 | inline BOOL _WinSetSysColors(HWND a, ULONG b, ULONG c, LONG d, ULONG e, PLONG f)
|
|---|
| 6512 | {
|
|---|
| 6513 | BOOL yyrc;
|
|---|
| 6514 | USHORT sel = RestoreOS2FS();
|
|---|
| 6515 |
|
|---|
| 6516 | yyrc = WinSetSysColors(a, b, c, d, e, f);
|
|---|
| 6517 | SetFS(sel);
|
|---|
| 6518 |
|
|---|
| 6519 | return yyrc;
|
|---|
| 6520 | }
|
|---|
| 6521 |
|
|---|
| 6522 | #undef WinSetSysColors
|
|---|
| 6523 | #define WinSetSysColors _WinSetSysColors
|
|---|
| 6524 |
|
|---|
| 6525 | inline BOOL _WinSetSysValue(HWND a, LONG b, LONG c)
|
|---|
| 6526 | {
|
|---|
| 6527 | BOOL yyrc;
|
|---|
| 6528 | USHORT sel = RestoreOS2FS();
|
|---|
| 6529 |
|
|---|
| 6530 | yyrc = WinSetSysValue(a, b, c);
|
|---|
| 6531 | SetFS(sel);
|
|---|
| 6532 |
|
|---|
| 6533 | return yyrc;
|
|---|
| 6534 | }
|
|---|
| 6535 |
|
|---|
| 6536 | #undef WinSetSysValue
|
|---|
| 6537 | #define WinSetSysValue _WinSetSysValue
|
|---|
| 6538 |
|
|---|
| 6539 | #endif
|
|---|
| 6540 | #ifdef INCL_WINTHUNKAPI
|
|---|
| 6541 | inline PFN _WinQueryClassThunkProc(PCSZ a)
|
|---|
| 6542 | {
|
|---|
| 6543 | PFN yyrc;
|
|---|
| 6544 | USHORT sel = RestoreOS2FS();
|
|---|
| 6545 |
|
|---|
| 6546 | yyrc = WinQueryClassThunkProc(a);
|
|---|
| 6547 | SetFS(sel);
|
|---|
| 6548 |
|
|---|
| 6549 | return yyrc;
|
|---|
| 6550 | }
|
|---|
| 6551 |
|
|---|
| 6552 | #undef WinQueryClassThunkProc
|
|---|
| 6553 | #define WinQueryClassThunkProc _WinQueryClassThunkProc
|
|---|
| 6554 |
|
|---|
| 6555 | inline LONG _WinQueryWindowModel(HWND a)
|
|---|
| 6556 | {
|
|---|
| 6557 | LONG yyrc;
|
|---|
| 6558 | USHORT sel = RestoreOS2FS();
|
|---|
| 6559 |
|
|---|
| 6560 | yyrc = WinQueryWindowModel(a);
|
|---|
| 6561 | SetFS(sel);
|
|---|
| 6562 |
|
|---|
| 6563 | return yyrc;
|
|---|
| 6564 | }
|
|---|
| 6565 |
|
|---|
| 6566 | #undef WinQueryWindowModel
|
|---|
| 6567 | #define WinQueryWindowModel _WinQueryWindowModel
|
|---|
| 6568 |
|
|---|
| 6569 | inline PFN _WinQueryWindowThunkProc(HWND a)
|
|---|
| 6570 | {
|
|---|
| 6571 | PFN yyrc;
|
|---|
| 6572 | USHORT sel = RestoreOS2FS();
|
|---|
| 6573 |
|
|---|
| 6574 | yyrc = WinQueryWindowThunkProc(a);
|
|---|
| 6575 | SetFS(sel);
|
|---|
| 6576 |
|
|---|
| 6577 | return yyrc;
|
|---|
| 6578 | }
|
|---|
| 6579 |
|
|---|
| 6580 | #undef WinQueryWindowThunkProc
|
|---|
| 6581 | #define WinQueryWindowThunkProc _WinQueryWindowThunkProc
|
|---|
| 6582 |
|
|---|
| 6583 | inline BOOL _WinSetClassThunkProc(PCSZ a, PFN b)
|
|---|
| 6584 | {
|
|---|
| 6585 | BOOL yyrc;
|
|---|
| 6586 | USHORT sel = RestoreOS2FS();
|
|---|
| 6587 |
|
|---|
| 6588 | yyrc = WinSetClassThunkProc(a, b);
|
|---|
| 6589 | SetFS(sel);
|
|---|
| 6590 |
|
|---|
| 6591 | return yyrc;
|
|---|
| 6592 | }
|
|---|
| 6593 |
|
|---|
| 6594 | #undef WinSetClassThunkProc
|
|---|
| 6595 | #define WinSetClassThunkProc _WinSetClassThunkProc
|
|---|
| 6596 |
|
|---|
| 6597 | inline BOOL _WinSetWindowThunkProc(HWND a, PFN b)
|
|---|
| 6598 | {
|
|---|
| 6599 | BOOL yyrc;
|
|---|
| 6600 | USHORT sel = RestoreOS2FS();
|
|---|
| 6601 |
|
|---|
| 6602 | yyrc = WinSetWindowThunkProc(a, b);
|
|---|
| 6603 | SetFS(sel);
|
|---|
| 6604 |
|
|---|
| 6605 | return yyrc;
|
|---|
| 6606 | }
|
|---|
| 6607 |
|
|---|
| 6608 | #undef WinSetWindowThunkProc
|
|---|
| 6609 | #define WinSetWindowThunkProc _WinSetWindowThunkProc
|
|---|
| 6610 |
|
|---|
| 6611 | #endif
|
|---|
| 6612 | #ifdef INCL_WINTIMER
|
|---|
| 6613 | inline ULONG _WinGetCurrentTime(HAB a)
|
|---|
| 6614 | {
|
|---|
| 6615 | ULONG yyrc;
|
|---|
| 6616 | USHORT sel = RestoreOS2FS();
|
|---|
| 6617 |
|
|---|
| 6618 | yyrc = WinGetCurrentTime(a);
|
|---|
| 6619 | SetFS(sel);
|
|---|
| 6620 |
|
|---|
| 6621 | return yyrc;
|
|---|
| 6622 | }
|
|---|
| 6623 |
|
|---|
| 6624 | #undef WinGetCurrentTime
|
|---|
| 6625 | #define WinGetCurrentTime _WinGetCurrentTime
|
|---|
| 6626 |
|
|---|
| 6627 | inline ULONG _WinStartTimer(HAB a, HWND b, ULONG c, ULONG d)
|
|---|
| 6628 | {
|
|---|
| 6629 | ULONG yyrc;
|
|---|
| 6630 | USHORT sel = RestoreOS2FS();
|
|---|
| 6631 |
|
|---|
| 6632 | yyrc = WinStartTimer(a, b, c, d);
|
|---|
| 6633 | SetFS(sel);
|
|---|
| 6634 |
|
|---|
| 6635 | return yyrc;
|
|---|
| 6636 | }
|
|---|
| 6637 |
|
|---|
| 6638 | #undef WinStartTimer
|
|---|
| 6639 | #define WinStartTimer _WinStartTimer
|
|---|
| 6640 |
|
|---|
| 6641 | inline BOOL _WinStopTimer(HAB a, HWND b, ULONG c)
|
|---|
| 6642 | {
|
|---|
| 6643 | BOOL yyrc;
|
|---|
| 6644 | USHORT sel = RestoreOS2FS();
|
|---|
| 6645 |
|
|---|
| 6646 | yyrc = WinStopTimer(a, b, c);
|
|---|
| 6647 | SetFS(sel);
|
|---|
| 6648 |
|
|---|
| 6649 | return yyrc;
|
|---|
| 6650 | }
|
|---|
| 6651 |
|
|---|
| 6652 | #undef WinStopTimer
|
|---|
| 6653 | #define WinStopTimer _WinStopTimer
|
|---|
| 6654 |
|
|---|
| 6655 | #endif
|
|---|
| 6656 | #ifdef INCL_WINTRACKRECT
|
|---|
| 6657 | inline BOOL _WinShowTrackRect(HWND a, BOOL b)
|
|---|
| 6658 | {
|
|---|
| 6659 | BOOL yyrc;
|
|---|
| 6660 | USHORT sel = RestoreOS2FS();
|
|---|
| 6661 |
|
|---|
| 6662 | yyrc = WinShowTrackRect(a, b);
|
|---|
| 6663 | SetFS(sel);
|
|---|
| 6664 |
|
|---|
| 6665 | return yyrc;
|
|---|
| 6666 | }
|
|---|
| 6667 |
|
|---|
| 6668 | #undef WinShowTrackRect
|
|---|
| 6669 | #define WinShowTrackRect _WinShowTrackRect
|
|---|
| 6670 |
|
|---|
| 6671 | inline BOOL _WinTrackRect(HWND a, HPS b, PTRACKINFO c)
|
|---|
| 6672 | {
|
|---|
| 6673 | BOOL yyrc;
|
|---|
| 6674 | USHORT sel = RestoreOS2FS();
|
|---|
| 6675 |
|
|---|
| 6676 | yyrc = WinTrackRect(a, b, c);
|
|---|
| 6677 | SetFS(sel);
|
|---|
| 6678 |
|
|---|
| 6679 | return yyrc;
|
|---|
| 6680 | }
|
|---|
| 6681 |
|
|---|
| 6682 | #undef WinTrackRect
|
|---|
| 6683 | #define WinTrackRect _WinTrackRect
|
|---|
| 6684 |
|
|---|
| 6685 | #endif
|
|---|
| 6686 | #endif
|
|---|
| 6687 | #ifdef INCL_GPI
|
|---|
| 6688 | inline LONG _GpiAnimatePalette(HPAL a, ULONG b, ULONG c, ULONG d, PULONG e)
|
|---|
| 6689 | {
|
|---|
| 6690 | LONG yyrc;
|
|---|
| 6691 | USHORT sel = RestoreOS2FS();
|
|---|
| 6692 |
|
|---|
| 6693 | yyrc = GpiAnimatePalette(a, b, c, d, e);
|
|---|
| 6694 | SetFS(sel);
|
|---|
| 6695 |
|
|---|
| 6696 | return yyrc;
|
|---|
| 6697 | }
|
|---|
| 6698 |
|
|---|
| 6699 | #undef GpiAnimatePalette
|
|---|
| 6700 | #define GpiAnimatePalette _GpiAnimatePalette
|
|---|
| 6701 |
|
|---|
| 6702 | inline BOOL _GpiBeginArea(HPS a, ULONG b)
|
|---|
| 6703 | {
|
|---|
| 6704 | BOOL yyrc;
|
|---|
| 6705 | USHORT sel = RestoreOS2FS();
|
|---|
| 6706 |
|
|---|
| 6707 | yyrc = GpiBeginArea(a, b);
|
|---|
| 6708 | SetFS(sel);
|
|---|
| 6709 |
|
|---|
| 6710 | return yyrc;
|
|---|
| 6711 | }
|
|---|
| 6712 |
|
|---|
| 6713 | #undef GpiBeginArea
|
|---|
| 6714 | #define GpiBeginArea _GpiBeginArea
|
|---|
| 6715 |
|
|---|
| 6716 | inline BOOL _GpiBeginElement(HPS a, LONG b, PCSZ c)
|
|---|
| 6717 | {
|
|---|
| 6718 | BOOL yyrc;
|
|---|
| 6719 | USHORT sel = RestoreOS2FS();
|
|---|
| 6720 |
|
|---|
| 6721 | yyrc = GpiBeginElement(a, b, c);
|
|---|
| 6722 | SetFS(sel);
|
|---|
| 6723 |
|
|---|
| 6724 | return yyrc;
|
|---|
| 6725 | }
|
|---|
| 6726 |
|
|---|
| 6727 | #undef GpiBeginElement
|
|---|
| 6728 | #define GpiBeginElement _GpiBeginElement
|
|---|
| 6729 |
|
|---|
| 6730 | inline BOOL _GpiBeginPath(HPS a, LONG b)
|
|---|
| 6731 | {
|
|---|
| 6732 | BOOL yyrc;
|
|---|
| 6733 | USHORT sel = RestoreOS2FS();
|
|---|
| 6734 |
|
|---|
| 6735 | yyrc = GpiBeginPath(a, b);
|
|---|
| 6736 | SetFS(sel);
|
|---|
| 6737 |
|
|---|
| 6738 | return yyrc;
|
|---|
| 6739 | }
|
|---|
| 6740 |
|
|---|
| 6741 | #undef GpiBeginPath
|
|---|
| 6742 | #define GpiBeginPath _GpiBeginPath
|
|---|
| 6743 |
|
|---|
| 6744 | inline LONG _GpiBox(HPS a, LONG b, PPOINTL c, LONG d, LONG e)
|
|---|
| 6745 | {
|
|---|
| 6746 | LONG yyrc;
|
|---|
| 6747 | USHORT sel = RestoreOS2FS();
|
|---|
| 6748 |
|
|---|
| 6749 | yyrc = GpiBox(a, b, c, d, e);
|
|---|
| 6750 | SetFS(sel);
|
|---|
| 6751 |
|
|---|
| 6752 | return yyrc;
|
|---|
| 6753 | }
|
|---|
| 6754 |
|
|---|
| 6755 | #undef GpiBox
|
|---|
| 6756 | #define GpiBox _GpiBox
|
|---|
| 6757 |
|
|---|
| 6758 | inline LONG _GpiCallSegmentMatrix(HPS a, LONG b, LONG c, PMATRIXLF d, LONG e)
|
|---|
| 6759 | {
|
|---|
| 6760 | LONG yyrc;
|
|---|
| 6761 | USHORT sel = RestoreOS2FS();
|
|---|
| 6762 |
|
|---|
| 6763 | yyrc = GpiCallSegmentMatrix(a, b, c, d, e);
|
|---|
| 6764 | SetFS(sel);
|
|---|
| 6765 |
|
|---|
| 6766 | return yyrc;
|
|---|
| 6767 | }
|
|---|
| 6768 |
|
|---|
| 6769 | #undef GpiCallSegmentMatrix
|
|---|
| 6770 | #define GpiCallSegmentMatrix _GpiCallSegmentMatrix
|
|---|
| 6771 |
|
|---|
| 6772 | inline LONG _GpiCharString(HPS a, LONG b, PCH c)
|
|---|
| 6773 | {
|
|---|
| 6774 | LONG yyrc;
|
|---|
| 6775 | USHORT sel = RestoreOS2FS();
|
|---|
| 6776 |
|
|---|
| 6777 | yyrc = GpiCharString(a, b, c);
|
|---|
| 6778 | SetFS(sel);
|
|---|
| 6779 |
|
|---|
| 6780 | return yyrc;
|
|---|
| 6781 | }
|
|---|
| 6782 |
|
|---|
| 6783 | #undef GpiCharString
|
|---|
| 6784 | #define GpiCharString _GpiCharString
|
|---|
| 6785 |
|
|---|
| 6786 | inline LONG _GpiCharStringAt(HPS a, PPOINTL b, LONG c, PCH d)
|
|---|
| 6787 | {
|
|---|
| 6788 | LONG yyrc;
|
|---|
| 6789 | USHORT sel = RestoreOS2FS();
|
|---|
| 6790 |
|
|---|
| 6791 | yyrc = GpiCharStringAt(a, b, c, d);
|
|---|
| 6792 | SetFS(sel);
|
|---|
| 6793 |
|
|---|
| 6794 | return yyrc;
|
|---|
| 6795 | }
|
|---|
| 6796 |
|
|---|
| 6797 | #undef GpiCharStringAt
|
|---|
| 6798 | #define GpiCharStringAt _GpiCharStringAt
|
|---|
| 6799 |
|
|---|
| 6800 | inline LONG _GpiCharStringPos(HPS a, PRECTL b, ULONG c, LONG d, PCH e, PLONG f)
|
|---|
| 6801 | {
|
|---|
| 6802 | LONG yyrc;
|
|---|
| 6803 | USHORT sel = RestoreOS2FS();
|
|---|
| 6804 |
|
|---|
| 6805 | yyrc = GpiCharStringPos(a, b, c, d, e, f);
|
|---|
| 6806 | SetFS(sel);
|
|---|
| 6807 |
|
|---|
| 6808 | return yyrc;
|
|---|
| 6809 | }
|
|---|
| 6810 |
|
|---|
| 6811 | #undef GpiCharStringPos
|
|---|
| 6812 | #define GpiCharStringPos _GpiCharStringPos
|
|---|
| 6813 |
|
|---|
| 6814 | inline LONG _GpiCharStringPosAt(HPS a, PPOINTL b, PRECTL c, ULONG d, LONG e, PCH f, PLONG g)
|
|---|
| 6815 | {
|
|---|
| 6816 | LONG yyrc;
|
|---|
| 6817 | USHORT sel = RestoreOS2FS();
|
|---|
| 6818 |
|
|---|
| 6819 | yyrc = GpiCharStringPosAt(a, b, c, d, e, f, g);
|
|---|
| 6820 | SetFS(sel);
|
|---|
| 6821 |
|
|---|
| 6822 | return yyrc;
|
|---|
| 6823 | }
|
|---|
| 6824 |
|
|---|
| 6825 | #undef GpiCharStringPosAt
|
|---|
| 6826 | #define GpiCharStringPosAt _GpiCharStringPosAt
|
|---|
| 6827 |
|
|---|
| 6828 | inline BOOL _GpiCloseFigure(HPS a)
|
|---|
| 6829 | {
|
|---|
| 6830 | BOOL yyrc;
|
|---|
| 6831 | USHORT sel = RestoreOS2FS();
|
|---|
| 6832 |
|
|---|
| 6833 | yyrc = GpiCloseFigure(a);
|
|---|
| 6834 | SetFS(sel);
|
|---|
| 6835 |
|
|---|
| 6836 | return yyrc;
|
|---|
| 6837 | }
|
|---|
| 6838 |
|
|---|
| 6839 | #undef GpiCloseFigure
|
|---|
| 6840 | #define GpiCloseFigure _GpiCloseFigure
|
|---|
| 6841 |
|
|---|
| 6842 | inline LONG _GpiCombineRegion(HPS a, HRGN b, HRGN c, HRGN d, LONG e)
|
|---|
| 6843 | {
|
|---|
| 6844 | LONG yyrc;
|
|---|
| 6845 | USHORT sel = RestoreOS2FS();
|
|---|
| 6846 |
|
|---|
| 6847 | yyrc = GpiCombineRegion(a, b, c, d, e);
|
|---|
| 6848 | SetFS(sel);
|
|---|
| 6849 |
|
|---|
| 6850 | return yyrc;
|
|---|
| 6851 | }
|
|---|
| 6852 |
|
|---|
| 6853 | #undef GpiCombineRegion
|
|---|
| 6854 | #define GpiCombineRegion _GpiCombineRegion
|
|---|
| 6855 |
|
|---|
| 6856 | inline BOOL _GpiComment(HPS a, LONG b, PBYTE c)
|
|---|
| 6857 | {
|
|---|
| 6858 | BOOL yyrc;
|
|---|
| 6859 | USHORT sel = RestoreOS2FS();
|
|---|
| 6860 |
|
|---|
| 6861 | yyrc = GpiComment(a, b, c);
|
|---|
| 6862 | SetFS(sel);
|
|---|
| 6863 |
|
|---|
| 6864 | return yyrc;
|
|---|
| 6865 | }
|
|---|
| 6866 |
|
|---|
| 6867 | #undef GpiComment
|
|---|
| 6868 | #define GpiComment _GpiComment
|
|---|
| 6869 |
|
|---|
| 6870 | inline BOOL _GpiConvert(HPS a, LONG b, LONG c, LONG d, PPOINTL e)
|
|---|
| 6871 | {
|
|---|
| 6872 | BOOL yyrc;
|
|---|
| 6873 | USHORT sel = RestoreOS2FS();
|
|---|
| 6874 |
|
|---|
| 6875 | yyrc = GpiConvert(a, b, c, d, e);
|
|---|
| 6876 | SetFS(sel);
|
|---|
| 6877 |
|
|---|
| 6878 | return yyrc;
|
|---|
| 6879 | }
|
|---|
| 6880 |
|
|---|
| 6881 | #undef GpiConvert
|
|---|
| 6882 | #define GpiConvert _GpiConvert
|
|---|
| 6883 |
|
|---|
| 6884 | inline BOOL _GpiConvertWithMatrix(HPS a, LONG b, PPOINTL c, LONG d, PMATRIXLF e)
|
|---|
| 6885 | {
|
|---|
| 6886 | BOOL yyrc;
|
|---|
| 6887 | USHORT sel = RestoreOS2FS();
|
|---|
| 6888 |
|
|---|
| 6889 | yyrc = GpiConvertWithMatrix(a, b, c, d, e);
|
|---|
| 6890 | SetFS(sel);
|
|---|
| 6891 |
|
|---|
| 6892 | return yyrc;
|
|---|
| 6893 | }
|
|---|
| 6894 |
|
|---|
| 6895 | #undef GpiConvertWithMatrix
|
|---|
| 6896 | #define GpiConvertWithMatrix _GpiConvertWithMatrix
|
|---|
| 6897 |
|
|---|
| 6898 | inline HMF _GpiCopyMetaFile(HMF a)
|
|---|
| 6899 | {
|
|---|
| 6900 | HMF yyrc;
|
|---|
| 6901 | USHORT sel = RestoreOS2FS();
|
|---|
| 6902 |
|
|---|
| 6903 | yyrc = GpiCopyMetaFile(a);
|
|---|
| 6904 | SetFS(sel);
|
|---|
| 6905 |
|
|---|
| 6906 | return yyrc;
|
|---|
| 6907 | }
|
|---|
| 6908 |
|
|---|
| 6909 | #undef GpiCopyMetaFile
|
|---|
| 6910 | #define GpiCopyMetaFile _GpiCopyMetaFile
|
|---|
| 6911 |
|
|---|
| 6912 | inline BOOL _GpiCreateLogColorTable(HPS a, ULONG b, LONG c, LONG d, LONG e, PLONG f)
|
|---|
| 6913 | {
|
|---|
| 6914 | BOOL yyrc;
|
|---|
| 6915 | USHORT sel = RestoreOS2FS();
|
|---|
| 6916 |
|
|---|
| 6917 | yyrc = GpiCreateLogColorTable(a, b, c, d, e, f);
|
|---|
| 6918 | SetFS(sel);
|
|---|
| 6919 |
|
|---|
| 6920 | return yyrc;
|
|---|
| 6921 | }
|
|---|
| 6922 |
|
|---|
| 6923 | #undef GpiCreateLogColorTable
|
|---|
| 6924 | #define GpiCreateLogColorTable _GpiCreateLogColorTable
|
|---|
| 6925 |
|
|---|
| 6926 | inline LONG _GpiCreateLogFont(HPS a, STR8 *b, LONG c, PFATTRS d)
|
|---|
| 6927 | {
|
|---|
| 6928 | LONG yyrc;
|
|---|
| 6929 | USHORT sel = RestoreOS2FS();
|
|---|
| 6930 |
|
|---|
| 6931 | yyrc = GpiCreateLogFont(a, b, c, d);
|
|---|
| 6932 | SetFS(sel);
|
|---|
| 6933 |
|
|---|
| 6934 | return yyrc;
|
|---|
| 6935 | }
|
|---|
| 6936 |
|
|---|
| 6937 | #undef GpiCreateLogFont
|
|---|
| 6938 | #define GpiCreateLogFont _GpiCreateLogFont
|
|---|
| 6939 |
|
|---|
| 6940 | inline HPAL _GpiCreatePalette(HAB a, ULONG b, ULONG c, ULONG d, PULONG e)
|
|---|
| 6941 | {
|
|---|
| 6942 | HPAL yyrc;
|
|---|
| 6943 | USHORT sel = RestoreOS2FS();
|
|---|
| 6944 |
|
|---|
| 6945 | yyrc = GpiCreatePalette(a, b, c, d, e);
|
|---|
| 6946 | SetFS(sel);
|
|---|
| 6947 |
|
|---|
| 6948 | return yyrc;
|
|---|
| 6949 | }
|
|---|
| 6950 |
|
|---|
| 6951 | #undef GpiCreatePalette
|
|---|
| 6952 | #define GpiCreatePalette _GpiCreatePalette
|
|---|
| 6953 |
|
|---|
| 6954 | inline HRGN _GpiCreateRegion(HPS a, LONG b, PRECTL c)
|
|---|
| 6955 | {
|
|---|
| 6956 | HRGN yyrc;
|
|---|
| 6957 | USHORT sel = RestoreOS2FS();
|
|---|
| 6958 |
|
|---|
| 6959 | yyrc = GpiCreateRegion(a, b, c);
|
|---|
| 6960 | SetFS(sel);
|
|---|
| 6961 |
|
|---|
| 6962 | return yyrc;
|
|---|
| 6963 | }
|
|---|
| 6964 |
|
|---|
| 6965 | #undef GpiCreateRegion
|
|---|
| 6966 | #define GpiCreateRegion _GpiCreateRegion
|
|---|
| 6967 |
|
|---|
| 6968 | inline BOOL _GpiDeleteElement(HPS a)
|
|---|
| 6969 | {
|
|---|
| 6970 | BOOL yyrc;
|
|---|
| 6971 | USHORT sel = RestoreOS2FS();
|
|---|
| 6972 |
|
|---|
| 6973 | yyrc = GpiDeleteElement(a);
|
|---|
| 6974 | SetFS(sel);
|
|---|
| 6975 |
|
|---|
| 6976 | return yyrc;
|
|---|
| 6977 | }
|
|---|
| 6978 |
|
|---|
| 6979 | #undef GpiDeleteElement
|
|---|
| 6980 | #define GpiDeleteElement _GpiDeleteElement
|
|---|
| 6981 |
|
|---|
| 6982 | inline BOOL _GpiDeleteElementRange(HPS a, LONG b, LONG c)
|
|---|
| 6983 | {
|
|---|
| 6984 | BOOL yyrc;
|
|---|
| 6985 | USHORT sel = RestoreOS2FS();
|
|---|
| 6986 |
|
|---|
| 6987 | yyrc = GpiDeleteElementRange(a, b, c);
|
|---|
| 6988 | SetFS(sel);
|
|---|
| 6989 |
|
|---|
| 6990 | return yyrc;
|
|---|
| 6991 | }
|
|---|
| 6992 |
|
|---|
| 6993 | #undef GpiDeleteElementRange
|
|---|
| 6994 | #define GpiDeleteElementRange _GpiDeleteElementRange
|
|---|
| 6995 |
|
|---|
| 6996 | inline BOOL _GpiDeleteElementsBetweenLabels(HPS a, LONG b, LONG c)
|
|---|
| 6997 | {
|
|---|
| 6998 | BOOL yyrc;
|
|---|
| 6999 | USHORT sel = RestoreOS2FS();
|
|---|
| 7000 |
|
|---|
| 7001 | yyrc = GpiDeleteElementsBetweenLabels(a, b, c);
|
|---|
| 7002 | SetFS(sel);
|
|---|
| 7003 |
|
|---|
| 7004 | return yyrc;
|
|---|
| 7005 | }
|
|---|
| 7006 |
|
|---|
| 7007 | #undef GpiDeleteElementsBetweenLabels
|
|---|
| 7008 | #define GpiDeleteElementsBetweenLabels _GpiDeleteElementsBetweenLabels
|
|---|
| 7009 |
|
|---|
| 7010 | inline BOOL _GpiDeleteMetaFile(HMF a)
|
|---|
| 7011 | {
|
|---|
| 7012 | BOOL yyrc;
|
|---|
| 7013 | USHORT sel = RestoreOS2FS();
|
|---|
| 7014 |
|
|---|
| 7015 | yyrc = GpiDeleteMetaFile(a);
|
|---|
| 7016 | SetFS(sel);
|
|---|
| 7017 |
|
|---|
| 7018 | return yyrc;
|
|---|
| 7019 | }
|
|---|
| 7020 |
|
|---|
| 7021 | #undef GpiDeleteMetaFile
|
|---|
| 7022 | #define GpiDeleteMetaFile _GpiDeleteMetaFile
|
|---|
| 7023 |
|
|---|
| 7024 | inline BOOL _GpiDeletePalette(HPAL a)
|
|---|
| 7025 | {
|
|---|
| 7026 | BOOL yyrc;
|
|---|
| 7027 | USHORT sel = RestoreOS2FS();
|
|---|
| 7028 |
|
|---|
| 7029 | yyrc = GpiDeletePalette(a);
|
|---|
| 7030 | SetFS(sel);
|
|---|
| 7031 |
|
|---|
| 7032 | return yyrc;
|
|---|
| 7033 | }
|
|---|
| 7034 |
|
|---|
| 7035 | #undef GpiDeletePalette
|
|---|
| 7036 | #define GpiDeletePalette _GpiDeletePalette
|
|---|
| 7037 |
|
|---|
| 7038 | inline BOOL _GpiDeleteSetId(HPS a, LONG b)
|
|---|
| 7039 | {
|
|---|
| 7040 | BOOL yyrc;
|
|---|
| 7041 | USHORT sel = RestoreOS2FS();
|
|---|
| 7042 |
|
|---|
| 7043 | yyrc = GpiDeleteSetId(a, b);
|
|---|
| 7044 | SetFS(sel);
|
|---|
| 7045 |
|
|---|
| 7046 | return yyrc;
|
|---|
| 7047 | }
|
|---|
| 7048 |
|
|---|
| 7049 | #undef GpiDeleteSetId
|
|---|
| 7050 | #define GpiDeleteSetId _GpiDeleteSetId
|
|---|
| 7051 |
|
|---|
| 7052 | inline BOOL _GpiDestroyRegion(HPS a, HRGN b)
|
|---|
| 7053 | {
|
|---|
| 7054 | BOOL yyrc;
|
|---|
| 7055 | USHORT sel = RestoreOS2FS();
|
|---|
| 7056 |
|
|---|
| 7057 | yyrc = GpiDestroyRegion(a, b);
|
|---|
| 7058 | SetFS(sel);
|
|---|
| 7059 |
|
|---|
| 7060 | return yyrc;
|
|---|
| 7061 | }
|
|---|
| 7062 |
|
|---|
| 7063 | #undef GpiDestroyRegion
|
|---|
| 7064 | #define GpiDestroyRegion _GpiDestroyRegion
|
|---|
| 7065 |
|
|---|
| 7066 | inline LONG _GpiElement(HPS a, LONG b, PCSZ c, LONG d, PBYTE e)
|
|---|
| 7067 | {
|
|---|
| 7068 | LONG yyrc;
|
|---|
| 7069 | USHORT sel = RestoreOS2FS();
|
|---|
| 7070 |
|
|---|
| 7071 | yyrc = GpiElement(a, b, c, d, e);
|
|---|
| 7072 | SetFS(sel);
|
|---|
| 7073 |
|
|---|
| 7074 | return yyrc;
|
|---|
| 7075 | }
|
|---|
| 7076 |
|
|---|
| 7077 | #undef GpiElement
|
|---|
| 7078 | #define GpiElement _GpiElement
|
|---|
| 7079 |
|
|---|
| 7080 | inline LONG _GpiEndArea(HPS a)
|
|---|
| 7081 | {
|
|---|
| 7082 | LONG yyrc;
|
|---|
| 7083 | USHORT sel = RestoreOS2FS();
|
|---|
| 7084 |
|
|---|
| 7085 | yyrc = GpiEndArea(a);
|
|---|
| 7086 | SetFS(sel);
|
|---|
| 7087 |
|
|---|
| 7088 | return yyrc;
|
|---|
| 7089 | }
|
|---|
| 7090 |
|
|---|
| 7091 | #undef GpiEndArea
|
|---|
| 7092 | #define GpiEndArea _GpiEndArea
|
|---|
| 7093 |
|
|---|
| 7094 | inline BOOL _GpiEndElement(HPS a)
|
|---|
| 7095 | {
|
|---|
| 7096 | BOOL yyrc;
|
|---|
| 7097 | USHORT sel = RestoreOS2FS();
|
|---|
| 7098 |
|
|---|
| 7099 | yyrc = GpiEndElement(a);
|
|---|
| 7100 | SetFS(sel);
|
|---|
| 7101 |
|
|---|
| 7102 | return yyrc;
|
|---|
| 7103 | }
|
|---|
| 7104 |
|
|---|
| 7105 | #undef GpiEndElement
|
|---|
| 7106 | #define GpiEndElement _GpiEndElement
|
|---|
| 7107 |
|
|---|
| 7108 | inline BOOL _GpiEndPath(HPS a)
|
|---|
| 7109 | {
|
|---|
| 7110 | BOOL yyrc;
|
|---|
| 7111 | USHORT sel = RestoreOS2FS();
|
|---|
| 7112 |
|
|---|
| 7113 | yyrc = GpiEndPath(a);
|
|---|
| 7114 | SetFS(sel);
|
|---|
| 7115 |
|
|---|
| 7116 | return yyrc;
|
|---|
| 7117 | }
|
|---|
| 7118 |
|
|---|
| 7119 | #undef GpiEndPath
|
|---|
| 7120 | #define GpiEndPath _GpiEndPath
|
|---|
| 7121 |
|
|---|
| 7122 | inline LONG _GpiEqualRegion(HPS a, HRGN b, HRGN c)
|
|---|
| 7123 | {
|
|---|
| 7124 | LONG yyrc;
|
|---|
| 7125 | USHORT sel = RestoreOS2FS();
|
|---|
| 7126 |
|
|---|
| 7127 | yyrc = GpiEqualRegion(a, b, c);
|
|---|
| 7128 | SetFS(sel);
|
|---|
| 7129 |
|
|---|
| 7130 | return yyrc;
|
|---|
| 7131 | }
|
|---|
| 7132 |
|
|---|
| 7133 | #undef GpiEqualRegion
|
|---|
| 7134 | #define GpiEqualRegion _GpiEqualRegion
|
|---|
| 7135 |
|
|---|
| 7136 | inline LONG _GpiExcludeClipRectangle(HPS a, PRECTL b)
|
|---|
| 7137 | {
|
|---|
| 7138 | LONG yyrc;
|
|---|
| 7139 | USHORT sel = RestoreOS2FS();
|
|---|
| 7140 |
|
|---|
| 7141 | yyrc = GpiExcludeClipRectangle(a, b);
|
|---|
| 7142 | SetFS(sel);
|
|---|
| 7143 |
|
|---|
| 7144 | return yyrc;
|
|---|
| 7145 | }
|
|---|
| 7146 |
|
|---|
| 7147 | #undef GpiExcludeClipRectangle
|
|---|
| 7148 | #define GpiExcludeClipRectangle _GpiExcludeClipRectangle
|
|---|
| 7149 |
|
|---|
| 7150 | inline LONG _GpiFillPath(HPS a, LONG b, LONG c)
|
|---|
| 7151 | {
|
|---|
| 7152 | LONG yyrc;
|
|---|
| 7153 | USHORT sel = RestoreOS2FS();
|
|---|
| 7154 |
|
|---|
| 7155 | yyrc = GpiFillPath(a, b, c);
|
|---|
| 7156 | SetFS(sel);
|
|---|
| 7157 |
|
|---|
| 7158 | return yyrc;
|
|---|
| 7159 | }
|
|---|
| 7160 |
|
|---|
| 7161 | #undef GpiFillPath
|
|---|
| 7162 | #define GpiFillPath _GpiFillPath
|
|---|
| 7163 |
|
|---|
| 7164 | inline LONG _GpiFrameRegion(HPS a, HRGN b, PSIZEL c)
|
|---|
| 7165 | {
|
|---|
| 7166 | LONG yyrc;
|
|---|
| 7167 | USHORT sel = RestoreOS2FS();
|
|---|
| 7168 |
|
|---|
| 7169 | yyrc = GpiFrameRegion(a, b, c);
|
|---|
| 7170 | SetFS(sel);
|
|---|
| 7171 |
|
|---|
| 7172 | return yyrc;
|
|---|
| 7173 | }
|
|---|
| 7174 |
|
|---|
| 7175 | #undef GpiFrameRegion
|
|---|
| 7176 | #define GpiFrameRegion _GpiFrameRegion
|
|---|
| 7177 |
|
|---|
| 7178 | inline LONG _GpiFullArc(HPS a, LONG b, FIXED c)
|
|---|
| 7179 | {
|
|---|
| 7180 | LONG yyrc;
|
|---|
| 7181 | USHORT sel = RestoreOS2FS();
|
|---|
| 7182 |
|
|---|
| 7183 | yyrc = GpiFullArc(a, b, c);
|
|---|
| 7184 | SetFS(sel);
|
|---|
| 7185 |
|
|---|
| 7186 | return yyrc;
|
|---|
| 7187 | }
|
|---|
| 7188 |
|
|---|
| 7189 | #undef GpiFullArc
|
|---|
| 7190 | #define GpiFullArc _GpiFullArc
|
|---|
| 7191 |
|
|---|
| 7192 | inline LONG _GpiImage(HPS a, LONG b, PSIZEL c, LONG d, PBYTE e)
|
|---|
| 7193 | {
|
|---|
| 7194 | LONG yyrc;
|
|---|
| 7195 | USHORT sel = RestoreOS2FS();
|
|---|
| 7196 |
|
|---|
| 7197 | yyrc = GpiImage(a, b, c, d, e);
|
|---|
| 7198 | SetFS(sel);
|
|---|
| 7199 |
|
|---|
| 7200 | return yyrc;
|
|---|
| 7201 | }
|
|---|
| 7202 |
|
|---|
| 7203 | #undef GpiImage
|
|---|
| 7204 | #define GpiImage _GpiImage
|
|---|
| 7205 |
|
|---|
| 7206 | inline LONG _GpiIntersectClipRectangle(HPS a, PRECTL b)
|
|---|
| 7207 | {
|
|---|
| 7208 | LONG yyrc;
|
|---|
| 7209 | USHORT sel = RestoreOS2FS();
|
|---|
| 7210 |
|
|---|
| 7211 | yyrc = GpiIntersectClipRectangle(a, b);
|
|---|
| 7212 | SetFS(sel);
|
|---|
| 7213 |
|
|---|
| 7214 | return yyrc;
|
|---|
| 7215 | }
|
|---|
| 7216 |
|
|---|
| 7217 | #undef GpiIntersectClipRectangle
|
|---|
| 7218 | #define GpiIntersectClipRectangle _GpiIntersectClipRectangle
|
|---|
| 7219 |
|
|---|
| 7220 | inline BOOL _GpiLabel(HPS a, LONG b)
|
|---|
| 7221 | {
|
|---|
| 7222 | BOOL yyrc;
|
|---|
| 7223 | USHORT sel = RestoreOS2FS();
|
|---|
| 7224 |
|
|---|
| 7225 | yyrc = GpiLabel(a, b);
|
|---|
| 7226 | SetFS(sel);
|
|---|
| 7227 |
|
|---|
| 7228 | return yyrc;
|
|---|
| 7229 | }
|
|---|
| 7230 |
|
|---|
| 7231 | #undef GpiLabel
|
|---|
| 7232 | #define GpiLabel _GpiLabel
|
|---|
| 7233 |
|
|---|
| 7234 | inline LONG _GpiLine(HPS a, PPOINTL b)
|
|---|
| 7235 | {
|
|---|
| 7236 | LONG yyrc;
|
|---|
| 7237 | USHORT sel = RestoreOS2FS();
|
|---|
| 7238 |
|
|---|
| 7239 | yyrc = GpiLine(a, b);
|
|---|
| 7240 | SetFS(sel);
|
|---|
| 7241 |
|
|---|
| 7242 | return yyrc;
|
|---|
| 7243 | }
|
|---|
| 7244 |
|
|---|
| 7245 | #undef GpiLine
|
|---|
| 7246 | #define GpiLine _GpiLine
|
|---|
| 7247 |
|
|---|
| 7248 | inline BOOL _GpiLoadFonts(HAB a, PCSZ b)
|
|---|
| 7249 | {
|
|---|
| 7250 | BOOL yyrc;
|
|---|
| 7251 | USHORT sel = RestoreOS2FS();
|
|---|
| 7252 |
|
|---|
| 7253 | yyrc = GpiLoadFonts(a, b);
|
|---|
| 7254 | SetFS(sel);
|
|---|
| 7255 |
|
|---|
| 7256 | return yyrc;
|
|---|
| 7257 | }
|
|---|
| 7258 |
|
|---|
| 7259 | #undef GpiLoadFonts
|
|---|
| 7260 | #define GpiLoadFonts _GpiLoadFonts
|
|---|
| 7261 |
|
|---|
| 7262 | inline HMF _GpiLoadMetaFile(HAB a, PCSZ b)
|
|---|
| 7263 | {
|
|---|
| 7264 | HMF yyrc;
|
|---|
| 7265 | USHORT sel = RestoreOS2FS();
|
|---|
| 7266 |
|
|---|
| 7267 | yyrc = GpiLoadMetaFile(a, b);
|
|---|
| 7268 | SetFS(sel);
|
|---|
| 7269 |
|
|---|
| 7270 | return yyrc;
|
|---|
| 7271 | }
|
|---|
| 7272 |
|
|---|
| 7273 | #undef GpiLoadMetaFile
|
|---|
| 7274 | #define GpiLoadMetaFile _GpiLoadMetaFile
|
|---|
| 7275 |
|
|---|
| 7276 | inline BOOL _GpiLoadPublicFonts(HAB a, PCSZ b)
|
|---|
| 7277 | {
|
|---|
| 7278 | BOOL yyrc;
|
|---|
| 7279 | USHORT sel = RestoreOS2FS();
|
|---|
| 7280 |
|
|---|
| 7281 | yyrc = GpiLoadPublicFonts(a, b);
|
|---|
| 7282 | SetFS(sel);
|
|---|
| 7283 |
|
|---|
| 7284 | return yyrc;
|
|---|
| 7285 | }
|
|---|
| 7286 |
|
|---|
| 7287 | #undef GpiLoadPublicFonts
|
|---|
| 7288 | #define GpiLoadPublicFonts _GpiLoadPublicFonts
|
|---|
| 7289 |
|
|---|
| 7290 | inline LONG _GpiMarker(HPS a, PPOINTL b)
|
|---|
| 7291 | {
|
|---|
| 7292 | LONG yyrc;
|
|---|
| 7293 | USHORT sel = RestoreOS2FS();
|
|---|
| 7294 |
|
|---|
| 7295 | yyrc = GpiMarker(a, b);
|
|---|
| 7296 | SetFS(sel);
|
|---|
| 7297 |
|
|---|
| 7298 | return yyrc;
|
|---|
| 7299 | }
|
|---|
| 7300 |
|
|---|
| 7301 | #undef GpiMarker
|
|---|
| 7302 | #define GpiMarker _GpiMarker
|
|---|
| 7303 |
|
|---|
| 7304 | inline BOOL _GpiModifyPath(HPS a, LONG b, LONG c)
|
|---|
| 7305 | {
|
|---|
| 7306 | BOOL yyrc;
|
|---|
| 7307 | USHORT sel = RestoreOS2FS();
|
|---|
| 7308 |
|
|---|
| 7309 | yyrc = GpiModifyPath(a, b, c);
|
|---|
| 7310 | SetFS(sel);
|
|---|
| 7311 |
|
|---|
| 7312 | return yyrc;
|
|---|
| 7313 | }
|
|---|
| 7314 |
|
|---|
| 7315 | #undef GpiModifyPath
|
|---|
| 7316 | #define GpiModifyPath _GpiModifyPath
|
|---|
| 7317 |
|
|---|
| 7318 | inline BOOL _GpiMove(HPS a, PPOINTL b)
|
|---|
| 7319 | {
|
|---|
| 7320 | BOOL yyrc;
|
|---|
| 7321 | USHORT sel = RestoreOS2FS();
|
|---|
| 7322 |
|
|---|
| 7323 | yyrc = GpiMove(a, b);
|
|---|
| 7324 | SetFS(sel);
|
|---|
| 7325 |
|
|---|
| 7326 | return yyrc;
|
|---|
| 7327 | }
|
|---|
| 7328 |
|
|---|
| 7329 | #undef GpiMove
|
|---|
| 7330 | #define GpiMove _GpiMove
|
|---|
| 7331 |
|
|---|
| 7332 | inline LONG _GpiOffsetClipRegion(HPS a, PPOINTL b)
|
|---|
| 7333 | {
|
|---|
| 7334 | LONG yyrc;
|
|---|
| 7335 | USHORT sel = RestoreOS2FS();
|
|---|
| 7336 |
|
|---|
| 7337 | yyrc = GpiOffsetClipRegion(a, b);
|
|---|
| 7338 | SetFS(sel);
|
|---|
| 7339 |
|
|---|
| 7340 | return yyrc;
|
|---|
| 7341 | }
|
|---|
| 7342 |
|
|---|
| 7343 | #undef GpiOffsetClipRegion
|
|---|
| 7344 | #define GpiOffsetClipRegion _GpiOffsetClipRegion
|
|---|
| 7345 |
|
|---|
| 7346 | inline BOOL _GpiOffsetElementPointer(HPS a, LONG b)
|
|---|
| 7347 | {
|
|---|
| 7348 | BOOL yyrc;
|
|---|
| 7349 | USHORT sel = RestoreOS2FS();
|
|---|
| 7350 |
|
|---|
| 7351 | yyrc = GpiOffsetElementPointer(a, b);
|
|---|
| 7352 | SetFS(sel);
|
|---|
| 7353 |
|
|---|
| 7354 | return yyrc;
|
|---|
| 7355 | }
|
|---|
| 7356 |
|
|---|
| 7357 | #undef GpiOffsetElementPointer
|
|---|
| 7358 | #define GpiOffsetElementPointer _GpiOffsetElementPointer
|
|---|
| 7359 |
|
|---|
| 7360 | inline BOOL _GpiOffsetRegion(HPS a, HRGN b, PPOINTL c)
|
|---|
| 7361 | {
|
|---|
| 7362 | BOOL yyrc;
|
|---|
| 7363 | USHORT sel = RestoreOS2FS();
|
|---|
| 7364 |
|
|---|
| 7365 | yyrc = GpiOffsetRegion(a, b, c);
|
|---|
| 7366 | SetFS(sel);
|
|---|
| 7367 |
|
|---|
| 7368 | return yyrc;
|
|---|
| 7369 | }
|
|---|
| 7370 |
|
|---|
| 7371 | #undef GpiOffsetRegion
|
|---|
| 7372 | #define GpiOffsetRegion _GpiOffsetRegion
|
|---|
| 7373 |
|
|---|
| 7374 | inline LONG _GpiOutlinePath(HPS a, LONG b, LONG c)
|
|---|
| 7375 | {
|
|---|
| 7376 | LONG yyrc;
|
|---|
| 7377 | USHORT sel = RestoreOS2FS();
|
|---|
| 7378 |
|
|---|
| 7379 | yyrc = GpiOutlinePath(a, b, c);
|
|---|
| 7380 | SetFS(sel);
|
|---|
| 7381 |
|
|---|
| 7382 | return yyrc;
|
|---|
| 7383 | }
|
|---|
| 7384 |
|
|---|
| 7385 | #undef GpiOutlinePath
|
|---|
| 7386 | #define GpiOutlinePath _GpiOutlinePath
|
|---|
| 7387 |
|
|---|
| 7388 | inline LONG _GpiPaintRegion(HPS a, HRGN b)
|
|---|
| 7389 | {
|
|---|
| 7390 | LONG yyrc;
|
|---|
| 7391 | USHORT sel = RestoreOS2FS();
|
|---|
| 7392 |
|
|---|
| 7393 | yyrc = GpiPaintRegion(a, b);
|
|---|
| 7394 | SetFS(sel);
|
|---|
| 7395 |
|
|---|
| 7396 | return yyrc;
|
|---|
| 7397 | }
|
|---|
| 7398 |
|
|---|
| 7399 | #undef GpiPaintRegion
|
|---|
| 7400 | #define GpiPaintRegion _GpiPaintRegion
|
|---|
| 7401 |
|
|---|
| 7402 | inline LONG _GpiPartialArc(HPS a, PPOINTL b, FIXED c, FIXED d, FIXED e)
|
|---|
| 7403 | {
|
|---|
| 7404 | LONG yyrc;
|
|---|
| 7405 | USHORT sel = RestoreOS2FS();
|
|---|
| 7406 |
|
|---|
| 7407 | yyrc = GpiPartialArc(a, b, c, d, e);
|
|---|
| 7408 | SetFS(sel);
|
|---|
| 7409 |
|
|---|
| 7410 | return yyrc;
|
|---|
| 7411 | }
|
|---|
| 7412 |
|
|---|
| 7413 | #undef GpiPartialArc
|
|---|
| 7414 | #define GpiPartialArc _GpiPartialArc
|
|---|
| 7415 |
|
|---|
| 7416 | inline HRGN _GpiPathToRegion(HPS a, LONG b, LONG c)
|
|---|
| 7417 | {
|
|---|
| 7418 | HRGN yyrc;
|
|---|
| 7419 | USHORT sel = RestoreOS2FS();
|
|---|
| 7420 |
|
|---|
| 7421 | yyrc = GpiPathToRegion(a, b, c);
|
|---|
| 7422 | SetFS(sel);
|
|---|
| 7423 |
|
|---|
| 7424 | return yyrc;
|
|---|
| 7425 | }
|
|---|
| 7426 |
|
|---|
| 7427 | #undef GpiPathToRegion
|
|---|
| 7428 | #define GpiPathToRegion _GpiPathToRegion
|
|---|
| 7429 |
|
|---|
| 7430 | inline LONG _GpiPlayMetaFile(HPS a, HMF b, LONG c, PLONG d, PLONG e, LONG f, PSZ g)
|
|---|
| 7431 | {
|
|---|
| 7432 | LONG yyrc;
|
|---|
| 7433 | USHORT sel = RestoreOS2FS();
|
|---|
| 7434 |
|
|---|
| 7435 | yyrc = GpiPlayMetaFile(a, b, c, d, e, f, g);
|
|---|
| 7436 | SetFS(sel);
|
|---|
| 7437 |
|
|---|
| 7438 | return yyrc;
|
|---|
| 7439 | }
|
|---|
| 7440 |
|
|---|
| 7441 | #undef GpiPlayMetaFile
|
|---|
| 7442 | #define GpiPlayMetaFile _GpiPlayMetaFile
|
|---|
| 7443 |
|
|---|
| 7444 | inline LONG _GpiPointArc(HPS a, PPOINTL b)
|
|---|
| 7445 | {
|
|---|
| 7446 | LONG yyrc;
|
|---|
| 7447 | USHORT sel = RestoreOS2FS();
|
|---|
| 7448 |
|
|---|
| 7449 | yyrc = GpiPointArc(a, b);
|
|---|
| 7450 | SetFS(sel);
|
|---|
| 7451 |
|
|---|
| 7452 | return yyrc;
|
|---|
| 7453 | }
|
|---|
| 7454 |
|
|---|
| 7455 | #undef GpiPointArc
|
|---|
| 7456 | #define GpiPointArc _GpiPointArc
|
|---|
| 7457 |
|
|---|
| 7458 | inline LONG _GpiPolyFillet(HPS a, LONG b, PPOINTL c)
|
|---|
| 7459 | {
|
|---|
| 7460 | LONG yyrc;
|
|---|
| 7461 | USHORT sel = RestoreOS2FS();
|
|---|
| 7462 |
|
|---|
| 7463 | yyrc = GpiPolyFillet(a, b, c);
|
|---|
| 7464 | SetFS(sel);
|
|---|
| 7465 |
|
|---|
| 7466 | return yyrc;
|
|---|
| 7467 | }
|
|---|
| 7468 |
|
|---|
| 7469 | #undef GpiPolyFillet
|
|---|
| 7470 | #define GpiPolyFillet _GpiPolyFillet
|
|---|
| 7471 |
|
|---|
| 7472 | inline LONG _GpiPolyFilletSharp(HPS a, LONG b, PPOINTL c, PFIXED d)
|
|---|
| 7473 | {
|
|---|
| 7474 | LONG yyrc;
|
|---|
| 7475 | USHORT sel = RestoreOS2FS();
|
|---|
| 7476 |
|
|---|
| 7477 | yyrc = GpiPolyFilletSharp(a, b, c, d);
|
|---|
| 7478 | SetFS(sel);
|
|---|
| 7479 |
|
|---|
| 7480 | return yyrc;
|
|---|
| 7481 | }
|
|---|
| 7482 |
|
|---|
| 7483 | #undef GpiPolyFilletSharp
|
|---|
| 7484 | #define GpiPolyFilletSharp _GpiPolyFilletSharp
|
|---|
| 7485 |
|
|---|
| 7486 | inline LONG _GpiPolygons(HPS a, ULONG b, PPOLYGON c, ULONG d, ULONG e)
|
|---|
| 7487 | {
|
|---|
| 7488 | LONG yyrc;
|
|---|
| 7489 | USHORT sel = RestoreOS2FS();
|
|---|
| 7490 |
|
|---|
| 7491 | yyrc = GpiPolygons(a, b, c, d, e);
|
|---|
| 7492 | SetFS(sel);
|
|---|
| 7493 |
|
|---|
| 7494 | return yyrc;
|
|---|
| 7495 | }
|
|---|
| 7496 |
|
|---|
| 7497 | #undef GpiPolygons
|
|---|
| 7498 | #define GpiPolygons _GpiPolygons
|
|---|
| 7499 |
|
|---|
| 7500 | inline LONG _GpiPolyLine(HPS a, LONG b, PPOINTL c)
|
|---|
| 7501 | {
|
|---|
| 7502 | LONG yyrc;
|
|---|
| 7503 | USHORT sel = RestoreOS2FS();
|
|---|
| 7504 |
|
|---|
| 7505 | yyrc = GpiPolyLine(a, b, c);
|
|---|
| 7506 | SetFS(sel);
|
|---|
| 7507 |
|
|---|
| 7508 | return yyrc;
|
|---|
| 7509 | }
|
|---|
| 7510 |
|
|---|
| 7511 | #undef GpiPolyLine
|
|---|
| 7512 | #define GpiPolyLine _GpiPolyLine
|
|---|
| 7513 |
|
|---|
| 7514 | inline LONG _GpiPolyLineDisjoint(HPS a, LONG b, PPOINTL c)
|
|---|
| 7515 | {
|
|---|
| 7516 | LONG yyrc;
|
|---|
| 7517 | USHORT sel = RestoreOS2FS();
|
|---|
| 7518 |
|
|---|
| 7519 | yyrc = GpiPolyLineDisjoint(a, b, c);
|
|---|
| 7520 | SetFS(sel);
|
|---|
| 7521 |
|
|---|
| 7522 | return yyrc;
|
|---|
| 7523 | }
|
|---|
| 7524 |
|
|---|
| 7525 | #undef GpiPolyLineDisjoint
|
|---|
| 7526 | #define GpiPolyLineDisjoint _GpiPolyLineDisjoint
|
|---|
| 7527 |
|
|---|
| 7528 | inline LONG _GpiPolyMarker(HPS a, LONG b, PPOINTL c)
|
|---|
| 7529 | {
|
|---|
| 7530 | LONG yyrc;
|
|---|
| 7531 | USHORT sel = RestoreOS2FS();
|
|---|
| 7532 |
|
|---|
| 7533 | yyrc = GpiPolyMarker(a, b, c);
|
|---|
| 7534 | SetFS(sel);
|
|---|
| 7535 |
|
|---|
| 7536 | return yyrc;
|
|---|
| 7537 | }
|
|---|
| 7538 |
|
|---|
| 7539 | #undef GpiPolyMarker
|
|---|
| 7540 | #define GpiPolyMarker _GpiPolyMarker
|
|---|
| 7541 |
|
|---|
| 7542 | inline LONG _GpiPolySpline(HPS a, LONG b, PPOINTL c)
|
|---|
| 7543 | {
|
|---|
| 7544 | LONG yyrc;
|
|---|
| 7545 | USHORT sel = RestoreOS2FS();
|
|---|
| 7546 |
|
|---|
| 7547 | yyrc = GpiPolySpline(a, b, c);
|
|---|
| 7548 | SetFS(sel);
|
|---|
| 7549 |
|
|---|
| 7550 | return yyrc;
|
|---|
| 7551 | }
|
|---|
| 7552 |
|
|---|
| 7553 | #undef GpiPolySpline
|
|---|
| 7554 | #define GpiPolySpline _GpiPolySpline
|
|---|
| 7555 |
|
|---|
| 7556 | inline BOOL _GpiPop(HPS a, LONG b)
|
|---|
| 7557 | {
|
|---|
| 7558 | BOOL yyrc;
|
|---|
| 7559 | USHORT sel = RestoreOS2FS();
|
|---|
| 7560 |
|
|---|
| 7561 | yyrc = GpiPop(a, b);
|
|---|
| 7562 | SetFS(sel);
|
|---|
| 7563 |
|
|---|
| 7564 | return yyrc;
|
|---|
| 7565 | }
|
|---|
| 7566 |
|
|---|
| 7567 | #undef GpiPop
|
|---|
| 7568 | #define GpiPop _GpiPop
|
|---|
| 7569 |
|
|---|
| 7570 | inline LONG _GpiPtInRegion(HPS a, HRGN b, PPOINTL c)
|
|---|
| 7571 | {
|
|---|
| 7572 | LONG yyrc;
|
|---|
| 7573 | USHORT sel = RestoreOS2FS();
|
|---|
| 7574 |
|
|---|
| 7575 | yyrc = GpiPtInRegion(a, b, c);
|
|---|
| 7576 | SetFS(sel);
|
|---|
| 7577 |
|
|---|
| 7578 | return yyrc;
|
|---|
| 7579 | }
|
|---|
| 7580 |
|
|---|
| 7581 | #undef GpiPtInRegion
|
|---|
| 7582 | #define GpiPtInRegion _GpiPtInRegion
|
|---|
| 7583 |
|
|---|
| 7584 | inline LONG _GpiPtVisible(HPS a, PPOINTL b)
|
|---|
| 7585 | {
|
|---|
| 7586 | LONG yyrc;
|
|---|
| 7587 | USHORT sel = RestoreOS2FS();
|
|---|
| 7588 |
|
|---|
| 7589 | yyrc = GpiPtVisible(a, b);
|
|---|
| 7590 | SetFS(sel);
|
|---|
| 7591 |
|
|---|
| 7592 | return yyrc;
|
|---|
| 7593 | }
|
|---|
| 7594 |
|
|---|
| 7595 | #undef GpiPtVisible
|
|---|
| 7596 | #define GpiPtVisible _GpiPtVisible
|
|---|
| 7597 |
|
|---|
| 7598 | inline BOOL _GpiQueryArcParams(HPS a, PARCPARAMS b)
|
|---|
| 7599 | {
|
|---|
| 7600 | BOOL yyrc;
|
|---|
| 7601 | USHORT sel = RestoreOS2FS();
|
|---|
| 7602 |
|
|---|
| 7603 | yyrc = GpiQueryArcParams(a, b);
|
|---|
| 7604 | SetFS(sel);
|
|---|
| 7605 |
|
|---|
| 7606 | return yyrc;
|
|---|
| 7607 | }
|
|---|
| 7608 |
|
|---|
| 7609 | #undef GpiQueryArcParams
|
|---|
| 7610 | #define GpiQueryArcParams _GpiQueryArcParams
|
|---|
| 7611 |
|
|---|
| 7612 | inline LONG _GpiQueryAttrMode(HPS a)
|
|---|
| 7613 | {
|
|---|
| 7614 | LONG yyrc;
|
|---|
| 7615 | USHORT sel = RestoreOS2FS();
|
|---|
| 7616 |
|
|---|
| 7617 | yyrc = GpiQueryAttrMode(a);
|
|---|
| 7618 | SetFS(sel);
|
|---|
| 7619 |
|
|---|
| 7620 | return yyrc;
|
|---|
| 7621 | }
|
|---|
| 7622 |
|
|---|
| 7623 | #undef GpiQueryAttrMode
|
|---|
| 7624 | #define GpiQueryAttrMode _GpiQueryAttrMode
|
|---|
| 7625 |
|
|---|
| 7626 | inline LONG _GpiQueryAttrs(HPS a, LONG b, ULONG c, PBUNDLE d)
|
|---|
| 7627 | {
|
|---|
| 7628 | LONG yyrc;
|
|---|
| 7629 | USHORT sel = RestoreOS2FS();
|
|---|
| 7630 |
|
|---|
| 7631 | yyrc = GpiQueryAttrs(a, b, c, d);
|
|---|
| 7632 | SetFS(sel);
|
|---|
| 7633 |
|
|---|
| 7634 | return yyrc;
|
|---|
| 7635 | }
|
|---|
| 7636 |
|
|---|
| 7637 | #undef GpiQueryAttrs
|
|---|
| 7638 | #define GpiQueryAttrs _GpiQueryAttrs
|
|---|
| 7639 |
|
|---|
| 7640 | inline LONG _GpiQueryBackColor(HPS a)
|
|---|
| 7641 | {
|
|---|
| 7642 | LONG yyrc;
|
|---|
| 7643 | USHORT sel = RestoreOS2FS();
|
|---|
| 7644 |
|
|---|
| 7645 | yyrc = GpiQueryBackColor(a);
|
|---|
| 7646 | SetFS(sel);
|
|---|
| 7647 |
|
|---|
| 7648 | return yyrc;
|
|---|
| 7649 | }
|
|---|
| 7650 |
|
|---|
| 7651 | #undef GpiQueryBackColor
|
|---|
| 7652 | #define GpiQueryBackColor _GpiQueryBackColor
|
|---|
| 7653 |
|
|---|
| 7654 | inline LONG _GpiQueryBackMix(HPS a)
|
|---|
| 7655 | {
|
|---|
| 7656 | LONG yyrc;
|
|---|
| 7657 | USHORT sel = RestoreOS2FS();
|
|---|
| 7658 |
|
|---|
| 7659 | yyrc = GpiQueryBackMix(a);
|
|---|
| 7660 | SetFS(sel);
|
|---|
| 7661 |
|
|---|
| 7662 | return yyrc;
|
|---|
| 7663 | }
|
|---|
| 7664 |
|
|---|
| 7665 | #undef GpiQueryBackMix
|
|---|
| 7666 | #define GpiQueryBackMix _GpiQueryBackMix
|
|---|
| 7667 |
|
|---|
| 7668 | inline BOOL _GpiQueryCharAngle(HPS a, PGRADIENTL b)
|
|---|
| 7669 | {
|
|---|
| 7670 | BOOL yyrc;
|
|---|
| 7671 | USHORT sel = RestoreOS2FS();
|
|---|
| 7672 |
|
|---|
| 7673 | yyrc = GpiQueryCharAngle(a, b);
|
|---|
| 7674 | SetFS(sel);
|
|---|
| 7675 |
|
|---|
| 7676 | return yyrc;
|
|---|
| 7677 | }
|
|---|
| 7678 |
|
|---|
| 7679 | #undef GpiQueryCharAngle
|
|---|
| 7680 | #define GpiQueryCharAngle _GpiQueryCharAngle
|
|---|
| 7681 |
|
|---|
| 7682 | inline BOOL _GpiQueryCharBox(HPS a, PSIZEF b)
|
|---|
| 7683 | {
|
|---|
| 7684 | BOOL yyrc;
|
|---|
| 7685 | USHORT sel = RestoreOS2FS();
|
|---|
| 7686 |
|
|---|
| 7687 | yyrc = GpiQueryCharBox(a, b);
|
|---|
| 7688 | SetFS(sel);
|
|---|
| 7689 |
|
|---|
| 7690 | return yyrc;
|
|---|
| 7691 | }
|
|---|
| 7692 |
|
|---|
| 7693 | #undef GpiQueryCharBox
|
|---|
| 7694 | #define GpiQueryCharBox _GpiQueryCharBox
|
|---|
| 7695 |
|
|---|
| 7696 | inline BOOL _GpiQueryCharBreakExtra(HPS a, PFIXED b)
|
|---|
| 7697 | {
|
|---|
| 7698 | BOOL yyrc;
|
|---|
| 7699 | USHORT sel = RestoreOS2FS();
|
|---|
| 7700 |
|
|---|
| 7701 | yyrc = GpiQueryCharBreakExtra(a, b);
|
|---|
| 7702 | SetFS(sel);
|
|---|
| 7703 |
|
|---|
| 7704 | return yyrc;
|
|---|
| 7705 | }
|
|---|
| 7706 |
|
|---|
| 7707 | #undef GpiQueryCharBreakExtra
|
|---|
| 7708 | #define GpiQueryCharBreakExtra _GpiQueryCharBreakExtra
|
|---|
| 7709 |
|
|---|
| 7710 | inline LONG _GpiQueryCharDirection(HPS a)
|
|---|
| 7711 | {
|
|---|
| 7712 | LONG yyrc;
|
|---|
| 7713 | USHORT sel = RestoreOS2FS();
|
|---|
| 7714 |
|
|---|
| 7715 | yyrc = GpiQueryCharDirection(a);
|
|---|
| 7716 | SetFS(sel);
|
|---|
| 7717 |
|
|---|
| 7718 | return yyrc;
|
|---|
| 7719 | }
|
|---|
| 7720 |
|
|---|
| 7721 | #undef GpiQueryCharDirection
|
|---|
| 7722 | #define GpiQueryCharDirection _GpiQueryCharDirection
|
|---|
| 7723 |
|
|---|
| 7724 | inline BOOL _GpiQueryCharExtra(HPS a, PFIXED b)
|
|---|
| 7725 | {
|
|---|
| 7726 | BOOL yyrc;
|
|---|
| 7727 | USHORT sel = RestoreOS2FS();
|
|---|
| 7728 |
|
|---|
| 7729 | yyrc = GpiQueryCharExtra(a, b);
|
|---|
| 7730 | SetFS(sel);
|
|---|
| 7731 |
|
|---|
| 7732 | return yyrc;
|
|---|
| 7733 | }
|
|---|
| 7734 |
|
|---|
| 7735 | #undef GpiQueryCharExtra
|
|---|
| 7736 | #define GpiQueryCharExtra _GpiQueryCharExtra
|
|---|
| 7737 |
|
|---|
| 7738 | inline LONG _GpiQueryCharMode(HPS a)
|
|---|
| 7739 | {
|
|---|
| 7740 | LONG yyrc;
|
|---|
| 7741 | USHORT sel = RestoreOS2FS();
|
|---|
| 7742 |
|
|---|
| 7743 | yyrc = GpiQueryCharMode(a);
|
|---|
| 7744 | SetFS(sel);
|
|---|
| 7745 |
|
|---|
| 7746 | return yyrc;
|
|---|
| 7747 | }
|
|---|
| 7748 |
|
|---|
| 7749 | #undef GpiQueryCharMode
|
|---|
| 7750 | #define GpiQueryCharMode _GpiQueryCharMode
|
|---|
| 7751 |
|
|---|
| 7752 | inline LONG _GpiQueryCharSet(HPS a)
|
|---|
| 7753 | {
|
|---|
| 7754 | LONG yyrc;
|
|---|
| 7755 | USHORT sel = RestoreOS2FS();
|
|---|
| 7756 |
|
|---|
| 7757 | yyrc = GpiQueryCharSet(a);
|
|---|
| 7758 | SetFS(sel);
|
|---|
| 7759 |
|
|---|
| 7760 | return yyrc;
|
|---|
| 7761 | }
|
|---|
| 7762 |
|
|---|
| 7763 | #undef GpiQueryCharSet
|
|---|
| 7764 | #define GpiQueryCharSet _GpiQueryCharSet
|
|---|
| 7765 |
|
|---|
| 7766 | inline BOOL _GpiQueryCharShear(HPS a, PPOINTL b)
|
|---|
| 7767 | {
|
|---|
| 7768 | BOOL yyrc;
|
|---|
| 7769 | USHORT sel = RestoreOS2FS();
|
|---|
| 7770 |
|
|---|
| 7771 | yyrc = GpiQueryCharShear(a, b);
|
|---|
| 7772 | SetFS(sel);
|
|---|
| 7773 |
|
|---|
| 7774 | return yyrc;
|
|---|
| 7775 | }
|
|---|
| 7776 |
|
|---|
| 7777 | #undef GpiQueryCharShear
|
|---|
| 7778 | #define GpiQueryCharShear _GpiQueryCharShear
|
|---|
| 7779 |
|
|---|
| 7780 | inline BOOL _GpiQueryCharStringPos(HPS a, ULONG b, LONG c, PCH d, PLONG e, PPOINTL f)
|
|---|
| 7781 | {
|
|---|
| 7782 | BOOL yyrc;
|
|---|
| 7783 | USHORT sel = RestoreOS2FS();
|
|---|
| 7784 |
|
|---|
| 7785 | yyrc = GpiQueryCharStringPos(a, b, c, d, e, f);
|
|---|
| 7786 | SetFS(sel);
|
|---|
| 7787 |
|
|---|
| 7788 | return yyrc;
|
|---|
| 7789 | }
|
|---|
| 7790 |
|
|---|
| 7791 | #undef GpiQueryCharStringPos
|
|---|
| 7792 | #define GpiQueryCharStringPos _GpiQueryCharStringPos
|
|---|
| 7793 |
|
|---|
| 7794 | inline BOOL _GpiQueryCharStringPosAt(HPS a, PPOINTL b, ULONG c, LONG d, PCH e, PLONG f, PPOINTL g)
|
|---|
| 7795 | {
|
|---|
| 7796 | BOOL yyrc;
|
|---|
| 7797 | USHORT sel = RestoreOS2FS();
|
|---|
| 7798 |
|
|---|
| 7799 | yyrc = GpiQueryCharStringPosAt(a, b, c, d, e, f, g);
|
|---|
| 7800 | SetFS(sel);
|
|---|
| 7801 |
|
|---|
| 7802 | return yyrc;
|
|---|
| 7803 | }
|
|---|
| 7804 |
|
|---|
| 7805 | #undef GpiQueryCharStringPosAt
|
|---|
| 7806 | #define GpiQueryCharStringPosAt _GpiQueryCharStringPosAt
|
|---|
| 7807 |
|
|---|
| 7808 | inline LONG _GpiQueryClipBox(HPS a, PRECTL b)
|
|---|
| 7809 | {
|
|---|
| 7810 | LONG yyrc;
|
|---|
| 7811 | USHORT sel = RestoreOS2FS();
|
|---|
| 7812 |
|
|---|
| 7813 | yyrc = GpiQueryClipBox(a, b);
|
|---|
| 7814 | SetFS(sel);
|
|---|
| 7815 |
|
|---|
| 7816 | return yyrc;
|
|---|
| 7817 | }
|
|---|
| 7818 |
|
|---|
| 7819 | #undef GpiQueryClipBox
|
|---|
| 7820 | #define GpiQueryClipBox _GpiQueryClipBox
|
|---|
| 7821 |
|
|---|
| 7822 | inline HRGN _GpiQueryClipRegion(HPS a)
|
|---|
| 7823 | {
|
|---|
| 7824 | HRGN yyrc;
|
|---|
| 7825 | USHORT sel = RestoreOS2FS();
|
|---|
| 7826 |
|
|---|
| 7827 | yyrc = GpiQueryClipRegion(a);
|
|---|
| 7828 | SetFS(sel);
|
|---|
| 7829 |
|
|---|
| 7830 | return yyrc;
|
|---|
| 7831 | }
|
|---|
| 7832 |
|
|---|
| 7833 | #undef GpiQueryClipRegion
|
|---|
| 7834 | #define GpiQueryClipRegion _GpiQueryClipRegion
|
|---|
| 7835 |
|
|---|
| 7836 | inline LONG _GpiQueryColor(HPS a)
|
|---|
| 7837 | {
|
|---|
| 7838 | LONG yyrc;
|
|---|
| 7839 | USHORT sel = RestoreOS2FS();
|
|---|
| 7840 |
|
|---|
| 7841 | yyrc = GpiQueryColor(a);
|
|---|
| 7842 | SetFS(sel);
|
|---|
| 7843 |
|
|---|
| 7844 | return yyrc;
|
|---|
| 7845 | }
|
|---|
| 7846 |
|
|---|
| 7847 | #undef GpiQueryColor
|
|---|
| 7848 | #define GpiQueryColor _GpiQueryColor
|
|---|
| 7849 |
|
|---|
| 7850 | inline BOOL _GpiQueryColorData(HPS a, LONG b, PLONG c)
|
|---|
| 7851 | {
|
|---|
| 7852 | BOOL yyrc;
|
|---|
| 7853 | USHORT sel = RestoreOS2FS();
|
|---|
| 7854 |
|
|---|
| 7855 | yyrc = GpiQueryColorData(a, b, c);
|
|---|
| 7856 | SetFS(sel);
|
|---|
| 7857 |
|
|---|
| 7858 | return yyrc;
|
|---|
| 7859 | }
|
|---|
| 7860 |
|
|---|
| 7861 | #undef GpiQueryColorData
|
|---|
| 7862 | #define GpiQueryColorData _GpiQueryColorData
|
|---|
| 7863 |
|
|---|
| 7864 | inline LONG _GpiQueryColorIndex(HPS a, ULONG b, LONG c)
|
|---|
| 7865 | {
|
|---|
| 7866 | LONG yyrc;
|
|---|
| 7867 | USHORT sel = RestoreOS2FS();
|
|---|
| 7868 |
|
|---|
| 7869 | yyrc = GpiQueryColorIndex(a, b, c);
|
|---|
| 7870 | SetFS(sel);
|
|---|
| 7871 |
|
|---|
| 7872 | return yyrc;
|
|---|
| 7873 | }
|
|---|
| 7874 |
|
|---|
| 7875 | #undef GpiQueryColorIndex
|
|---|
| 7876 | #define GpiQueryColorIndex _GpiQueryColorIndex
|
|---|
| 7877 |
|
|---|
| 7878 | inline ULONG _GpiQueryCp(HPS a)
|
|---|
| 7879 | {
|
|---|
| 7880 | ULONG yyrc;
|
|---|
| 7881 | USHORT sel = RestoreOS2FS();
|
|---|
| 7882 |
|
|---|
| 7883 | yyrc = GpiQueryCp(a);
|
|---|
| 7884 | SetFS(sel);
|
|---|
| 7885 |
|
|---|
| 7886 | return yyrc;
|
|---|
| 7887 | }
|
|---|
| 7888 |
|
|---|
| 7889 | #undef GpiQueryCp
|
|---|
| 7890 | #define GpiQueryCp _GpiQueryCp
|
|---|
| 7891 |
|
|---|
| 7892 | inline BOOL _GpiQueryCurrentPosition(HPS a, PPOINTL b)
|
|---|
| 7893 | {
|
|---|
| 7894 | BOOL yyrc;
|
|---|
| 7895 | USHORT sel = RestoreOS2FS();
|
|---|
| 7896 |
|
|---|
| 7897 | yyrc = GpiQueryCurrentPosition(a, b);
|
|---|
| 7898 | SetFS(sel);
|
|---|
| 7899 |
|
|---|
| 7900 | return yyrc;
|
|---|
| 7901 | }
|
|---|
| 7902 |
|
|---|
| 7903 | #undef GpiQueryCurrentPosition
|
|---|
| 7904 | #define GpiQueryCurrentPosition _GpiQueryCurrentPosition
|
|---|
| 7905 |
|
|---|
| 7906 | inline BOOL _GpiQueryDefArcParams(HPS a, PARCPARAMS b)
|
|---|
| 7907 | {
|
|---|
| 7908 | BOOL yyrc;
|
|---|
| 7909 | USHORT sel = RestoreOS2FS();
|
|---|
| 7910 |
|
|---|
| 7911 | yyrc = GpiQueryDefArcParams(a, b);
|
|---|
| 7912 | SetFS(sel);
|
|---|
| 7913 |
|
|---|
| 7914 | return yyrc;
|
|---|
| 7915 | }
|
|---|
| 7916 |
|
|---|
| 7917 | #undef GpiQueryDefArcParams
|
|---|
| 7918 | #define GpiQueryDefArcParams _GpiQueryDefArcParams
|
|---|
| 7919 |
|
|---|
| 7920 | inline BOOL _GpiQueryDefAttrs(HPS a, LONG b, ULONG c, PBUNDLE d)
|
|---|
| 7921 | {
|
|---|
| 7922 | BOOL yyrc;
|
|---|
| 7923 | USHORT sel = RestoreOS2FS();
|
|---|
| 7924 |
|
|---|
| 7925 | yyrc = GpiQueryDefAttrs(a, b, c, d);
|
|---|
| 7926 | SetFS(sel);
|
|---|
| 7927 |
|
|---|
| 7928 | return yyrc;
|
|---|
| 7929 | }
|
|---|
| 7930 |
|
|---|
| 7931 | #undef GpiQueryDefAttrs
|
|---|
| 7932 | #define GpiQueryDefAttrs _GpiQueryDefAttrs
|
|---|
| 7933 |
|
|---|
| 7934 | inline BOOL _GpiQueryDefCharBox(HPS a, PSIZEL b)
|
|---|
| 7935 | {
|
|---|
| 7936 | BOOL yyrc;
|
|---|
| 7937 | USHORT sel = RestoreOS2FS();
|
|---|
| 7938 |
|
|---|
| 7939 | yyrc = GpiQueryDefCharBox(a, b);
|
|---|
| 7940 | SetFS(sel);
|
|---|
| 7941 |
|
|---|
| 7942 | return yyrc;
|
|---|
| 7943 | }
|
|---|
| 7944 |
|
|---|
| 7945 | #undef GpiQueryDefCharBox
|
|---|
| 7946 | #define GpiQueryDefCharBox _GpiQueryDefCharBox
|
|---|
| 7947 |
|
|---|
| 7948 | inline BOOL _GpiQueryDefTag(HPS a, PLONG b)
|
|---|
| 7949 | {
|
|---|
| 7950 | BOOL yyrc;
|
|---|
| 7951 | USHORT sel = RestoreOS2FS();
|
|---|
| 7952 |
|
|---|
| 7953 | yyrc = GpiQueryDefTag(a, b);
|
|---|
| 7954 | SetFS(sel);
|
|---|
| 7955 |
|
|---|
| 7956 | return yyrc;
|
|---|
| 7957 | }
|
|---|
| 7958 |
|
|---|
| 7959 | #undef GpiQueryDefTag
|
|---|
| 7960 | #define GpiQueryDefTag _GpiQueryDefTag
|
|---|
| 7961 |
|
|---|
| 7962 | inline BOOL _GpiQueryDefViewingLimits(HPS a, PRECTL b)
|
|---|
| 7963 | {
|
|---|
| 7964 | BOOL yyrc;
|
|---|
| 7965 | USHORT sel = RestoreOS2FS();
|
|---|
| 7966 |
|
|---|
| 7967 | yyrc = GpiQueryDefViewingLimits(a, b);
|
|---|
| 7968 | SetFS(sel);
|
|---|
| 7969 |
|
|---|
| 7970 | return yyrc;
|
|---|
| 7971 | }
|
|---|
| 7972 |
|
|---|
| 7973 | #undef GpiQueryDefViewingLimits
|
|---|
| 7974 | #define GpiQueryDefViewingLimits _GpiQueryDefViewingLimits
|
|---|
| 7975 |
|
|---|
| 7976 | inline BOOL _GpiQueryDefaultViewMatrix(HPS a, LONG b, PMATRIXLF c)
|
|---|
| 7977 | {
|
|---|
| 7978 | BOOL yyrc;
|
|---|
| 7979 | USHORT sel = RestoreOS2FS();
|
|---|
| 7980 |
|
|---|
| 7981 | yyrc = GpiQueryDefaultViewMatrix(a, b, c);
|
|---|
| 7982 | SetFS(sel);
|
|---|
| 7983 |
|
|---|
| 7984 | return yyrc;
|
|---|
| 7985 | }
|
|---|
| 7986 |
|
|---|
| 7987 | #undef GpiQueryDefaultViewMatrix
|
|---|
| 7988 | #define GpiQueryDefaultViewMatrix _GpiQueryDefaultViewMatrix
|
|---|
| 7989 |
|
|---|
| 7990 | inline LONG _GpiQueryEditMode(HPS a)
|
|---|
| 7991 | {
|
|---|
| 7992 | LONG yyrc;
|
|---|
| 7993 | USHORT sel = RestoreOS2FS();
|
|---|
| 7994 |
|
|---|
| 7995 | yyrc = GpiQueryEditMode(a);
|
|---|
| 7996 | SetFS(sel);
|
|---|
| 7997 |
|
|---|
| 7998 | return yyrc;
|
|---|
| 7999 | }
|
|---|
| 8000 |
|
|---|
| 8001 | #undef GpiQueryEditMode
|
|---|
| 8002 | #define GpiQueryEditMode _GpiQueryEditMode
|
|---|
| 8003 |
|
|---|
| 8004 | inline LONG _GpiQueryElement(HPS a, LONG b, LONG c, PBYTE d)
|
|---|
| 8005 | {
|
|---|
| 8006 | LONG yyrc;
|
|---|
| 8007 | USHORT sel = RestoreOS2FS();
|
|---|
| 8008 |
|
|---|
| 8009 | yyrc = GpiQueryElement(a, b, c, d);
|
|---|
| 8010 | SetFS(sel);
|
|---|
| 8011 |
|
|---|
| 8012 | return yyrc;
|
|---|
| 8013 | }
|
|---|
| 8014 |
|
|---|
| 8015 | #undef GpiQueryElement
|
|---|
| 8016 | #define GpiQueryElement _GpiQueryElement
|
|---|
| 8017 |
|
|---|
| 8018 | inline LONG _GpiQueryElementPointer(HPS a)
|
|---|
| 8019 | {
|
|---|
| 8020 | LONG yyrc;
|
|---|
| 8021 | USHORT sel = RestoreOS2FS();
|
|---|
| 8022 |
|
|---|
| 8023 | yyrc = GpiQueryElementPointer(a);
|
|---|
| 8024 | SetFS(sel);
|
|---|
| 8025 |
|
|---|
| 8026 | return yyrc;
|
|---|
| 8027 | }
|
|---|
| 8028 |
|
|---|
| 8029 | #undef GpiQueryElementPointer
|
|---|
| 8030 | #define GpiQueryElementPointer _GpiQueryElementPointer
|
|---|
| 8031 |
|
|---|
| 8032 | inline LONG _GpiQueryElementType(HPS a, PLONG b, LONG c, PSZ d)
|
|---|
| 8033 | {
|
|---|
| 8034 | LONG yyrc;
|
|---|
| 8035 | USHORT sel = RestoreOS2FS();
|
|---|
| 8036 |
|
|---|
| 8037 | yyrc = GpiQueryElementType(a, b, c, d);
|
|---|
| 8038 | SetFS(sel);
|
|---|
| 8039 |
|
|---|
| 8040 | return yyrc;
|
|---|
| 8041 | }
|
|---|
| 8042 |
|
|---|
| 8043 | #undef GpiQueryElementType
|
|---|
| 8044 | #define GpiQueryElementType _GpiQueryElementType
|
|---|
| 8045 |
|
|---|
| 8046 | inline ULONG _GpiQueryFaceString(HPS a, PCSZ b, PFACENAMEDESC c, LONG d, PSZ e)
|
|---|
| 8047 | {
|
|---|
| 8048 | ULONG yyrc;
|
|---|
| 8049 | USHORT sel = RestoreOS2FS();
|
|---|
| 8050 |
|
|---|
| 8051 | yyrc = GpiQueryFaceString(a, b, c, d, e);
|
|---|
| 8052 | SetFS(sel);
|
|---|
| 8053 |
|
|---|
| 8054 | return yyrc;
|
|---|
| 8055 | }
|
|---|
| 8056 |
|
|---|
| 8057 | #undef GpiQueryFaceString
|
|---|
| 8058 | #define GpiQueryFaceString _GpiQueryFaceString
|
|---|
| 8059 |
|
|---|
| 8060 | inline ULONG _GpiQueryFontAction(HAB a, ULONG b)
|
|---|
| 8061 | {
|
|---|
| 8062 | ULONG yyrc;
|
|---|
| 8063 | USHORT sel = RestoreOS2FS();
|
|---|
| 8064 |
|
|---|
| 8065 | yyrc = GpiQueryFontAction(a, b);
|
|---|
| 8066 | SetFS(sel);
|
|---|
| 8067 |
|
|---|
| 8068 | return yyrc;
|
|---|
| 8069 | }
|
|---|
| 8070 |
|
|---|
| 8071 | #undef GpiQueryFontAction
|
|---|
| 8072 | #define GpiQueryFontAction _GpiQueryFontAction
|
|---|
| 8073 |
|
|---|
| 8074 | inline LONG _GpiQueryFontFileDescriptions(HAB a, PCSZ b, PLONG c, PFFDESCS d)
|
|---|
| 8075 | {
|
|---|
| 8076 | LONG yyrc;
|
|---|
| 8077 | USHORT sel = RestoreOS2FS();
|
|---|
| 8078 |
|
|---|
| 8079 | yyrc = GpiQueryFontFileDescriptions(a, b, c, d);
|
|---|
| 8080 | SetFS(sel);
|
|---|
| 8081 |
|
|---|
| 8082 | return yyrc;
|
|---|
| 8083 | }
|
|---|
| 8084 |
|
|---|
| 8085 | #undef GpiQueryFontFileDescriptions
|
|---|
| 8086 | #define GpiQueryFontFileDescriptions _GpiQueryFontFileDescriptions
|
|---|
| 8087 |
|
|---|
| 8088 | inline BOOL _GpiQueryFontMetrics(HPS a, LONG b, PFONTMETRICS c)
|
|---|
| 8089 | {
|
|---|
| 8090 | BOOL yyrc;
|
|---|
| 8091 | USHORT sel = RestoreOS2FS();
|
|---|
| 8092 |
|
|---|
| 8093 | yyrc = GpiQueryFontMetrics(a, b, c);
|
|---|
| 8094 | SetFS(sel);
|
|---|
| 8095 |
|
|---|
| 8096 | return yyrc;
|
|---|
| 8097 | }
|
|---|
| 8098 |
|
|---|
| 8099 | #undef GpiQueryFontMetrics
|
|---|
| 8100 | #define GpiQueryFontMetrics _GpiQueryFontMetrics
|
|---|
| 8101 |
|
|---|
| 8102 | inline LONG _GpiQueryFonts(HPS a, ULONG b, PCSZ c, PLONG d, LONG e, PFONTMETRICS f)
|
|---|
| 8103 | {
|
|---|
| 8104 | LONG yyrc;
|
|---|
| 8105 | USHORT sel = RestoreOS2FS();
|
|---|
| 8106 |
|
|---|
| 8107 | yyrc = GpiQueryFonts(a, b, c, d, e, f);
|
|---|
| 8108 | SetFS(sel);
|
|---|
| 8109 |
|
|---|
| 8110 | return yyrc;
|
|---|
| 8111 | }
|
|---|
| 8112 |
|
|---|
| 8113 | #undef GpiQueryFonts
|
|---|
| 8114 | #define GpiQueryFonts _GpiQueryFonts
|
|---|
| 8115 |
|
|---|
| 8116 | inline LONG _GpiQueryFullFontFileDescs(HAB a, PCSZ b, PLONG c, PVOID d, PLONG e)
|
|---|
| 8117 | {
|
|---|
| 8118 | LONG yyrc;
|
|---|
| 8119 | USHORT sel = RestoreOS2FS();
|
|---|
| 8120 |
|
|---|
| 8121 | yyrc = GpiQueryFullFontFileDescs(a, b, c, d, e);
|
|---|
| 8122 | SetFS(sel);
|
|---|
| 8123 |
|
|---|
| 8124 | return yyrc;
|
|---|
| 8125 | }
|
|---|
| 8126 |
|
|---|
| 8127 | #undef GpiQueryFullFontFileDescs
|
|---|
| 8128 | #define GpiQueryFullFontFileDescs _GpiQueryFullFontFileDescs
|
|---|
| 8129 |
|
|---|
| 8130 | inline BOOL _GpiQueryGraphicsField(HPS a, PRECTL b)
|
|---|
| 8131 | {
|
|---|
| 8132 | BOOL yyrc;
|
|---|
| 8133 | USHORT sel = RestoreOS2FS();
|
|---|
| 8134 |
|
|---|
| 8135 | yyrc = GpiQueryGraphicsField(a, b);
|
|---|
| 8136 | SetFS(sel);
|
|---|
| 8137 |
|
|---|
| 8138 | return yyrc;
|
|---|
| 8139 | }
|
|---|
| 8140 |
|
|---|
| 8141 | #undef GpiQueryGraphicsField
|
|---|
| 8142 | #define GpiQueryGraphicsField _GpiQueryGraphicsField
|
|---|
| 8143 |
|
|---|
| 8144 | inline LONG _GpiQueryKerningPairs(HPS a, LONG b, PKERNINGPAIRS c)
|
|---|
| 8145 | {
|
|---|
| 8146 | LONG yyrc;
|
|---|
| 8147 | USHORT sel = RestoreOS2FS();
|
|---|
| 8148 |
|
|---|
| 8149 | yyrc = GpiQueryKerningPairs(a, b, c);
|
|---|
| 8150 | SetFS(sel);
|
|---|
| 8151 |
|
|---|
| 8152 | return yyrc;
|
|---|
| 8153 | }
|
|---|
| 8154 |
|
|---|
| 8155 | #undef GpiQueryKerningPairs
|
|---|
| 8156 | #define GpiQueryKerningPairs _GpiQueryKerningPairs
|
|---|
| 8157 |
|
|---|
| 8158 | inline LONG _GpiQueryLineEnd(HPS a)
|
|---|
| 8159 | {
|
|---|
| 8160 | LONG yyrc;
|
|---|
| 8161 | USHORT sel = RestoreOS2FS();
|
|---|
| 8162 |
|
|---|
| 8163 | yyrc = GpiQueryLineEnd(a);
|
|---|
| 8164 | SetFS(sel);
|
|---|
| 8165 |
|
|---|
| 8166 | return yyrc;
|
|---|
| 8167 | }
|
|---|
| 8168 |
|
|---|
| 8169 | #undef GpiQueryLineEnd
|
|---|
| 8170 | #define GpiQueryLineEnd _GpiQueryLineEnd
|
|---|
| 8171 |
|
|---|
| 8172 | inline LONG _GpiQueryLineJoin(HPS a)
|
|---|
| 8173 | {
|
|---|
| 8174 | LONG yyrc;
|
|---|
| 8175 | USHORT sel = RestoreOS2FS();
|
|---|
| 8176 |
|
|---|
| 8177 | yyrc = GpiQueryLineJoin(a);
|
|---|
| 8178 | SetFS(sel);
|
|---|
| 8179 |
|
|---|
| 8180 | return yyrc;
|
|---|
| 8181 | }
|
|---|
| 8182 |
|
|---|
| 8183 | #undef GpiQueryLineJoin
|
|---|
| 8184 | #define GpiQueryLineJoin _GpiQueryLineJoin
|
|---|
| 8185 |
|
|---|
| 8186 | inline LONG _GpiQueryLineType(HPS a)
|
|---|
| 8187 | {
|
|---|
| 8188 | LONG yyrc;
|
|---|
| 8189 | USHORT sel = RestoreOS2FS();
|
|---|
| 8190 |
|
|---|
| 8191 | yyrc = GpiQueryLineType(a);
|
|---|
| 8192 | SetFS(sel);
|
|---|
| 8193 |
|
|---|
| 8194 | return yyrc;
|
|---|
| 8195 | }
|
|---|
| 8196 |
|
|---|
| 8197 | #undef GpiQueryLineType
|
|---|
| 8198 | #define GpiQueryLineType _GpiQueryLineType
|
|---|
| 8199 |
|
|---|
| 8200 | inline FIXED _GpiQueryLineWidth(HPS a)
|
|---|
| 8201 | {
|
|---|
| 8202 | FIXED yyrc;
|
|---|
| 8203 | USHORT sel = RestoreOS2FS();
|
|---|
| 8204 |
|
|---|
| 8205 | yyrc = GpiQueryLineWidth(a);
|
|---|
| 8206 | SetFS(sel);
|
|---|
| 8207 |
|
|---|
| 8208 | return yyrc;
|
|---|
| 8209 | }
|
|---|
| 8210 |
|
|---|
| 8211 | #undef GpiQueryLineWidth
|
|---|
| 8212 | #define GpiQueryLineWidth _GpiQueryLineWidth
|
|---|
| 8213 |
|
|---|
| 8214 | inline LONG _GpiQueryLineWidthGeom(HPS a)
|
|---|
| 8215 | {
|
|---|
| 8216 | LONG yyrc;
|
|---|
| 8217 | USHORT sel = RestoreOS2FS();
|
|---|
| 8218 |
|
|---|
| 8219 | yyrc = GpiQueryLineWidthGeom(a);
|
|---|
| 8220 | SetFS(sel);
|
|---|
| 8221 |
|
|---|
| 8222 | return yyrc;
|
|---|
| 8223 | }
|
|---|
| 8224 |
|
|---|
| 8225 | #undef GpiQueryLineWidthGeom
|
|---|
| 8226 | #define GpiQueryLineWidthGeom _GpiQueryLineWidthGeom
|
|---|
| 8227 |
|
|---|
| 8228 | inline LONG _GpiQueryLogColorTable(HPS a, ULONG b, LONG c, LONG d, PLONG e)
|
|---|
| 8229 | {
|
|---|
| 8230 | LONG yyrc;
|
|---|
| 8231 | USHORT sel = RestoreOS2FS();
|
|---|
| 8232 |
|
|---|
| 8233 | yyrc = GpiQueryLogColorTable(a, b, c, d, e);
|
|---|
| 8234 | SetFS(sel);
|
|---|
| 8235 |
|
|---|
| 8236 | return yyrc;
|
|---|
| 8237 | }
|
|---|
| 8238 |
|
|---|
| 8239 | #undef GpiQueryLogColorTable
|
|---|
| 8240 | #define GpiQueryLogColorTable _GpiQueryLogColorTable
|
|---|
| 8241 |
|
|---|
| 8242 | inline BOOL _GpiQueryLogicalFont(HPS a, LONG b, PSTR8 c, PFATTRS d, LONG e)
|
|---|
| 8243 | {
|
|---|
| 8244 | BOOL yyrc;
|
|---|
| 8245 | USHORT sel = RestoreOS2FS();
|
|---|
| 8246 |
|
|---|
| 8247 | yyrc = GpiQueryLogicalFont(a, b, c, d, e);
|
|---|
| 8248 | SetFS(sel);
|
|---|
| 8249 |
|
|---|
| 8250 | return yyrc;
|
|---|
| 8251 | }
|
|---|
| 8252 |
|
|---|
| 8253 | #undef GpiQueryLogicalFont
|
|---|
| 8254 | #define GpiQueryLogicalFont _GpiQueryLogicalFont
|
|---|
| 8255 |
|
|---|
| 8256 | inline LONG _GpiQueryMarker(HPS a)
|
|---|
| 8257 | {
|
|---|
| 8258 | LONG yyrc;
|
|---|
| 8259 | USHORT sel = RestoreOS2FS();
|
|---|
| 8260 |
|
|---|
| 8261 | yyrc = GpiQueryMarker(a);
|
|---|
| 8262 | SetFS(sel);
|
|---|
| 8263 |
|
|---|
| 8264 | return yyrc;
|
|---|
| 8265 | }
|
|---|
| 8266 |
|
|---|
| 8267 | #undef GpiQueryMarker
|
|---|
| 8268 | #define GpiQueryMarker _GpiQueryMarker
|
|---|
| 8269 |
|
|---|
| 8270 | inline BOOL _GpiQueryMarkerBox(HPS a, PSIZEF b)
|
|---|
| 8271 | {
|
|---|
| 8272 | BOOL yyrc;
|
|---|
| 8273 | USHORT sel = RestoreOS2FS();
|
|---|
| 8274 |
|
|---|
| 8275 | yyrc = GpiQueryMarkerBox(a, b);
|
|---|
| 8276 | SetFS(sel);
|
|---|
| 8277 |
|
|---|
| 8278 | return yyrc;
|
|---|
| 8279 | }
|
|---|
| 8280 |
|
|---|
| 8281 | #undef GpiQueryMarkerBox
|
|---|
| 8282 | #define GpiQueryMarkerBox _GpiQueryMarkerBox
|
|---|
| 8283 |
|
|---|
| 8284 | inline LONG _GpiQueryMarkerSet(HPS a)
|
|---|
| 8285 | {
|
|---|
| 8286 | LONG yyrc;
|
|---|
| 8287 | USHORT sel = RestoreOS2FS();
|
|---|
| 8288 |
|
|---|
| 8289 | yyrc = GpiQueryMarkerSet(a);
|
|---|
| 8290 | SetFS(sel);
|
|---|
| 8291 |
|
|---|
| 8292 | return yyrc;
|
|---|
| 8293 | }
|
|---|
| 8294 |
|
|---|
| 8295 | #undef GpiQueryMarkerSet
|
|---|
| 8296 | #define GpiQueryMarkerSet _GpiQueryMarkerSet
|
|---|
| 8297 |
|
|---|
| 8298 | inline BOOL _GpiQueryMetaFileBits(HMF a, LONG b, LONG c, PBYTE d)
|
|---|
| 8299 | {
|
|---|
| 8300 | BOOL yyrc;
|
|---|
| 8301 | USHORT sel = RestoreOS2FS();
|
|---|
| 8302 |
|
|---|
| 8303 | yyrc = GpiQueryMetaFileBits(a, b, c, d);
|
|---|
| 8304 | SetFS(sel);
|
|---|
| 8305 |
|
|---|
| 8306 | return yyrc;
|
|---|
| 8307 | }
|
|---|
| 8308 |
|
|---|
| 8309 | #undef GpiQueryMetaFileBits
|
|---|
| 8310 | #define GpiQueryMetaFileBits _GpiQueryMetaFileBits
|
|---|
| 8311 |
|
|---|
| 8312 | inline LONG _GpiQueryMetaFileLength(HMF a)
|
|---|
| 8313 | {
|
|---|
| 8314 | LONG yyrc;
|
|---|
| 8315 | USHORT sel = RestoreOS2FS();
|
|---|
| 8316 |
|
|---|
| 8317 | yyrc = GpiQueryMetaFileLength(a);
|
|---|
| 8318 | SetFS(sel);
|
|---|
| 8319 |
|
|---|
| 8320 | return yyrc;
|
|---|
| 8321 | }
|
|---|
| 8322 |
|
|---|
| 8323 | #undef GpiQueryMetaFileLength
|
|---|
| 8324 | #define GpiQueryMetaFileLength _GpiQueryMetaFileLength
|
|---|
| 8325 |
|
|---|
| 8326 | inline LONG _GpiQueryMix(HPS a)
|
|---|
| 8327 | {
|
|---|
| 8328 | LONG yyrc;
|
|---|
| 8329 | USHORT sel = RestoreOS2FS();
|
|---|
| 8330 |
|
|---|
| 8331 | yyrc = GpiQueryMix(a);
|
|---|
| 8332 | SetFS(sel);
|
|---|
| 8333 |
|
|---|
| 8334 | return yyrc;
|
|---|
| 8335 | }
|
|---|
| 8336 |
|
|---|
| 8337 | #undef GpiQueryMix
|
|---|
| 8338 | #define GpiQueryMix _GpiQueryMix
|
|---|
| 8339 |
|
|---|
| 8340 | inline BOOL _GpiQueryModelTransformMatrix(HPS a, LONG b, PMATRIXLF c)
|
|---|
| 8341 | {
|
|---|
| 8342 | BOOL yyrc;
|
|---|
| 8343 | USHORT sel = RestoreOS2FS();
|
|---|
| 8344 |
|
|---|
| 8345 | yyrc = GpiQueryModelTransformMatrix(a, b, c);
|
|---|
| 8346 | SetFS(sel);
|
|---|
| 8347 |
|
|---|
| 8348 | return yyrc;
|
|---|
| 8349 | }
|
|---|
| 8350 |
|
|---|
| 8351 | #undef GpiQueryModelTransformMatrix
|
|---|
| 8352 | #define GpiQueryModelTransformMatrix _GpiQueryModelTransformMatrix
|
|---|
| 8353 |
|
|---|
| 8354 | inline LONG _GpiQueryNearestColor(HPS a, ULONG b, LONG c)
|
|---|
| 8355 | {
|
|---|
| 8356 | LONG yyrc;
|
|---|
| 8357 | USHORT sel = RestoreOS2FS();
|
|---|
| 8358 |
|
|---|
| 8359 | yyrc = GpiQueryNearestColor(a, b, c);
|
|---|
| 8360 | SetFS(sel);
|
|---|
| 8361 |
|
|---|
| 8362 | return yyrc;
|
|---|
| 8363 | }
|
|---|
| 8364 |
|
|---|
| 8365 | #undef GpiQueryNearestColor
|
|---|
| 8366 | #define GpiQueryNearestColor _GpiQueryNearestColor
|
|---|
| 8367 |
|
|---|
| 8368 | inline LONG _GpiQueryNumberSetIds(HPS a)
|
|---|
| 8369 | {
|
|---|
| 8370 | LONG yyrc;
|
|---|
| 8371 | USHORT sel = RestoreOS2FS();
|
|---|
| 8372 |
|
|---|
| 8373 | yyrc = GpiQueryNumberSetIds(a);
|
|---|
| 8374 | SetFS(sel);
|
|---|
| 8375 |
|
|---|
| 8376 | return yyrc;
|
|---|
| 8377 | }
|
|---|
| 8378 |
|
|---|
| 8379 | #undef GpiQueryNumberSetIds
|
|---|
| 8380 | #define GpiQueryNumberSetIds _GpiQueryNumberSetIds
|
|---|
| 8381 |
|
|---|
| 8382 | inline BOOL _GpiQueryPageViewport(HPS a, PRECTL b)
|
|---|
| 8383 | {
|
|---|
| 8384 | BOOL yyrc;
|
|---|
| 8385 | USHORT sel = RestoreOS2FS();
|
|---|
| 8386 |
|
|---|
| 8387 | yyrc = GpiQueryPageViewport(a, b);
|
|---|
| 8388 | SetFS(sel);
|
|---|
| 8389 |
|
|---|
| 8390 | return yyrc;
|
|---|
| 8391 | }
|
|---|
| 8392 |
|
|---|
| 8393 | #undef GpiQueryPageViewport
|
|---|
| 8394 | #define GpiQueryPageViewport _GpiQueryPageViewport
|
|---|
| 8395 |
|
|---|
| 8396 | inline HPAL _GpiQueryPalette(HPS a)
|
|---|
| 8397 | {
|
|---|
| 8398 | HPAL yyrc;
|
|---|
| 8399 | USHORT sel = RestoreOS2FS();
|
|---|
| 8400 |
|
|---|
| 8401 | yyrc = GpiQueryPalette(a);
|
|---|
| 8402 | SetFS(sel);
|
|---|
| 8403 |
|
|---|
| 8404 | return yyrc;
|
|---|
| 8405 | }
|
|---|
| 8406 |
|
|---|
| 8407 | #undef GpiQueryPalette
|
|---|
| 8408 | #define GpiQueryPalette _GpiQueryPalette
|
|---|
| 8409 |
|
|---|
| 8410 | inline LONG _GpiQueryPaletteInfo(HPAL a, HPS b, ULONG c, ULONG d, ULONG e, PULONG f)
|
|---|
| 8411 | {
|
|---|
| 8412 | LONG yyrc;
|
|---|
| 8413 | USHORT sel = RestoreOS2FS();
|
|---|
| 8414 |
|
|---|
| 8415 | yyrc = GpiQueryPaletteInfo(a, b, c, d, e, f);
|
|---|
| 8416 | SetFS(sel);
|
|---|
| 8417 |
|
|---|
| 8418 | return yyrc;
|
|---|
| 8419 | }
|
|---|
| 8420 |
|
|---|
| 8421 | #undef GpiQueryPaletteInfo
|
|---|
| 8422 | #define GpiQueryPaletteInfo _GpiQueryPaletteInfo
|
|---|
| 8423 |
|
|---|
| 8424 | inline LONG _GpiQueryPattern(HPS a)
|
|---|
| 8425 | {
|
|---|
| 8426 | LONG yyrc;
|
|---|
| 8427 | USHORT sel = RestoreOS2FS();
|
|---|
| 8428 |
|
|---|
| 8429 | yyrc = GpiQueryPattern(a);
|
|---|
| 8430 | SetFS(sel);
|
|---|
| 8431 |
|
|---|
| 8432 | return yyrc;
|
|---|
| 8433 | }
|
|---|
| 8434 |
|
|---|
| 8435 | #undef GpiQueryPattern
|
|---|
| 8436 | #define GpiQueryPattern _GpiQueryPattern
|
|---|
| 8437 |
|
|---|
| 8438 | inline BOOL _GpiQueryPatternRefPoint(HPS a, PPOINTL b)
|
|---|
| 8439 | {
|
|---|
| 8440 | BOOL yyrc;
|
|---|
| 8441 | USHORT sel = RestoreOS2FS();
|
|---|
| 8442 |
|
|---|
| 8443 | yyrc = GpiQueryPatternRefPoint(a, b);
|
|---|
| 8444 | SetFS(sel);
|
|---|
| 8445 |
|
|---|
| 8446 | return yyrc;
|
|---|
| 8447 | }
|
|---|
| 8448 |
|
|---|
| 8449 | #undef GpiQueryPatternRefPoint
|
|---|
| 8450 | #define GpiQueryPatternRefPoint _GpiQueryPatternRefPoint
|
|---|
| 8451 |
|
|---|
| 8452 | inline LONG _GpiQueryPatternSet(HPS a)
|
|---|
| 8453 | {
|
|---|
| 8454 | LONG yyrc;
|
|---|
| 8455 | USHORT sel = RestoreOS2FS();
|
|---|
| 8456 |
|
|---|
| 8457 | yyrc = GpiQueryPatternSet(a);
|
|---|
| 8458 | SetFS(sel);
|
|---|
| 8459 |
|
|---|
| 8460 | return yyrc;
|
|---|
| 8461 | }
|
|---|
| 8462 |
|
|---|
| 8463 | #undef GpiQueryPatternSet
|
|---|
| 8464 | #define GpiQueryPatternSet _GpiQueryPatternSet
|
|---|
| 8465 |
|
|---|
| 8466 | inline LONG _GpiQueryRealColors(HPS a, ULONG b, LONG c, LONG d, PLONG e)
|
|---|
| 8467 | {
|
|---|
| 8468 | LONG yyrc;
|
|---|
| 8469 | USHORT sel = RestoreOS2FS();
|
|---|
| 8470 |
|
|---|
| 8471 | yyrc = GpiQueryRealColors(a, b, c, d, e);
|
|---|
| 8472 | SetFS(sel);
|
|---|
| 8473 |
|
|---|
| 8474 | return yyrc;
|
|---|
| 8475 | }
|
|---|
| 8476 |
|
|---|
| 8477 | #undef GpiQueryRealColors
|
|---|
| 8478 | #define GpiQueryRealColors _GpiQueryRealColors
|
|---|
| 8479 |
|
|---|
| 8480 | inline LONG _GpiQueryRegionBox(HPS a, HRGN b, PRECTL c)
|
|---|
| 8481 | {
|
|---|
| 8482 | LONG yyrc;
|
|---|
| 8483 | USHORT sel = RestoreOS2FS();
|
|---|
| 8484 |
|
|---|
| 8485 | yyrc = GpiQueryRegionBox(a, b, c);
|
|---|
| 8486 | SetFS(sel);
|
|---|
| 8487 |
|
|---|
| 8488 | return yyrc;
|
|---|
| 8489 | }
|
|---|
| 8490 |
|
|---|
| 8491 | #undef GpiQueryRegionBox
|
|---|
| 8492 | #define GpiQueryRegionBox _GpiQueryRegionBox
|
|---|
| 8493 |
|
|---|
| 8494 | inline BOOL _GpiQueryRegionRects(HPS a, HRGN b, PRECTL c, PRGNRECT d, PRECTL e)
|
|---|
| 8495 | {
|
|---|
| 8496 | BOOL yyrc;
|
|---|
| 8497 | USHORT sel = RestoreOS2FS();
|
|---|
| 8498 |
|
|---|
| 8499 | yyrc = GpiQueryRegionRects(a, b, c, d, e);
|
|---|
| 8500 | SetFS(sel);
|
|---|
| 8501 |
|
|---|
| 8502 | return yyrc;
|
|---|
| 8503 | }
|
|---|
| 8504 |
|
|---|
| 8505 | #undef GpiQueryRegionRects
|
|---|
| 8506 | #define GpiQueryRegionRects _GpiQueryRegionRects
|
|---|
| 8507 |
|
|---|
| 8508 | inline LONG _GpiQueryRGBColor(HPS a, ULONG b, LONG c)
|
|---|
| 8509 | {
|
|---|
| 8510 | LONG yyrc;
|
|---|
| 8511 | USHORT sel = RestoreOS2FS();
|
|---|
| 8512 |
|
|---|
| 8513 | yyrc = GpiQueryRGBColor(a, b, c);
|
|---|
| 8514 | SetFS(sel);
|
|---|
| 8515 |
|
|---|
| 8516 | return yyrc;
|
|---|
| 8517 | }
|
|---|
| 8518 |
|
|---|
| 8519 | #undef GpiQueryRGBColor
|
|---|
| 8520 | #define GpiQueryRGBColor _GpiQueryRGBColor
|
|---|
| 8521 |
|
|---|
| 8522 | inline BOOL _GpiQuerySegmentTransformMatrix(HPS a, LONG b, LONG c, PMATRIXLF d)
|
|---|
| 8523 | {
|
|---|
| 8524 | BOOL yyrc;
|
|---|
| 8525 | USHORT sel = RestoreOS2FS();
|
|---|
| 8526 |
|
|---|
| 8527 | yyrc = GpiQuerySegmentTransformMatrix(a, b, c, d);
|
|---|
| 8528 | SetFS(sel);
|
|---|
| 8529 |
|
|---|
| 8530 | return yyrc;
|
|---|
| 8531 | }
|
|---|
| 8532 |
|
|---|
| 8533 | #undef GpiQuerySegmentTransformMatrix
|
|---|
| 8534 | #define GpiQuerySegmentTransformMatrix _GpiQuerySegmentTransformMatrix
|
|---|
| 8535 |
|
|---|
| 8536 | inline BOOL _GpiQuerySetIds(HPS a, LONG b, PLONG c, PSTR8 d, PLONG e)
|
|---|
| 8537 | {
|
|---|
| 8538 | BOOL yyrc;
|
|---|
| 8539 | USHORT sel = RestoreOS2FS();
|
|---|
| 8540 |
|
|---|
| 8541 | yyrc = GpiQuerySetIds(a, b, c, d, e);
|
|---|
| 8542 | SetFS(sel);
|
|---|
| 8543 |
|
|---|
| 8544 | return yyrc;
|
|---|
| 8545 | }
|
|---|
| 8546 |
|
|---|
| 8547 | #undef GpiQuerySetIds
|
|---|
| 8548 | #define GpiQuerySetIds _GpiQuerySetIds
|
|---|
| 8549 |
|
|---|
| 8550 | inline BOOL _GpiQueryTextAlignment(HPS a, PLONG b, PLONG c)
|
|---|
| 8551 | {
|
|---|
| 8552 | BOOL yyrc;
|
|---|
| 8553 | USHORT sel = RestoreOS2FS();
|
|---|
| 8554 |
|
|---|
| 8555 | yyrc = GpiQueryTextAlignment(a, b, c);
|
|---|
| 8556 | SetFS(sel);
|
|---|
| 8557 |
|
|---|
| 8558 | return yyrc;
|
|---|
| 8559 | }
|
|---|
| 8560 |
|
|---|
| 8561 | #undef GpiQueryTextAlignment
|
|---|
| 8562 | #define GpiQueryTextAlignment _GpiQueryTextAlignment
|
|---|
| 8563 |
|
|---|
| 8564 | inline BOOL _GpiQueryTextBox(HPS a, LONG b, PCH c, LONG d, PPOINTL e)
|
|---|
| 8565 | {
|
|---|
| 8566 | BOOL yyrc;
|
|---|
| 8567 | USHORT sel = RestoreOS2FS();
|
|---|
| 8568 |
|
|---|
| 8569 | yyrc = GpiQueryTextBox(a, b, c, d, e);
|
|---|
| 8570 | SetFS(sel);
|
|---|
| 8571 |
|
|---|
| 8572 | return yyrc;
|
|---|
| 8573 | }
|
|---|
| 8574 |
|
|---|
| 8575 | #undef GpiQueryTextBox
|
|---|
| 8576 | #define GpiQueryTextBox _GpiQueryTextBox
|
|---|
| 8577 |
|
|---|
| 8578 | inline BOOL _GpiQueryViewingLimits(HPS a, PRECTL b)
|
|---|
| 8579 | {
|
|---|
| 8580 | BOOL yyrc;
|
|---|
| 8581 | USHORT sel = RestoreOS2FS();
|
|---|
| 8582 |
|
|---|
| 8583 | yyrc = GpiQueryViewingLimits(a, b);
|
|---|
| 8584 | SetFS(sel);
|
|---|
| 8585 |
|
|---|
| 8586 | return yyrc;
|
|---|
| 8587 | }
|
|---|
| 8588 |
|
|---|
| 8589 | #undef GpiQueryViewingLimits
|
|---|
| 8590 | #define GpiQueryViewingLimits _GpiQueryViewingLimits
|
|---|
| 8591 |
|
|---|
| 8592 | inline BOOL _GpiQueryViewingTransformMatrix(HPS a, LONG b, PMATRIXLF c)
|
|---|
| 8593 | {
|
|---|
| 8594 | BOOL yyrc;
|
|---|
| 8595 | USHORT sel = RestoreOS2FS();
|
|---|
| 8596 |
|
|---|
| 8597 | yyrc = GpiQueryViewingTransformMatrix(a, b, c);
|
|---|
| 8598 | SetFS(sel);
|
|---|
| 8599 |
|
|---|
| 8600 | return yyrc;
|
|---|
| 8601 | }
|
|---|
| 8602 |
|
|---|
| 8603 | #undef GpiQueryViewingTransformMatrix
|
|---|
| 8604 | #define GpiQueryViewingTransformMatrix _GpiQueryViewingTransformMatrix
|
|---|
| 8605 |
|
|---|
| 8606 | inline BOOL _GpiQueryWidthTable(HPS a, LONG b, LONG c, PLONG d)
|
|---|
| 8607 | {
|
|---|
| 8608 | BOOL yyrc;
|
|---|
| 8609 | USHORT sel = RestoreOS2FS();
|
|---|
| 8610 |
|
|---|
| 8611 | yyrc = GpiQueryWidthTable(a, b, c, d);
|
|---|
| 8612 | SetFS(sel);
|
|---|
| 8613 |
|
|---|
| 8614 | return yyrc;
|
|---|
| 8615 | }
|
|---|
| 8616 |
|
|---|
| 8617 | #undef GpiQueryWidthTable
|
|---|
| 8618 | #define GpiQueryWidthTable _GpiQueryWidthTable
|
|---|
| 8619 |
|
|---|
| 8620 | inline LONG _GpiRectInRegion(HPS a, HRGN b, PRECTL c)
|
|---|
| 8621 | {
|
|---|
| 8622 | LONG yyrc;
|
|---|
| 8623 | USHORT sel = RestoreOS2FS();
|
|---|
| 8624 |
|
|---|
| 8625 | yyrc = GpiRectInRegion(a, b, c);
|
|---|
| 8626 | SetFS(sel);
|
|---|
| 8627 |
|
|---|
| 8628 | return yyrc;
|
|---|
| 8629 | }
|
|---|
| 8630 |
|
|---|
| 8631 | #undef GpiRectInRegion
|
|---|
| 8632 | #define GpiRectInRegion _GpiRectInRegion
|
|---|
| 8633 |
|
|---|
| 8634 | inline LONG _GpiRectVisible(HPS a, PRECTL b)
|
|---|
| 8635 | {
|
|---|
| 8636 | LONG yyrc;
|
|---|
| 8637 | USHORT sel = RestoreOS2FS();
|
|---|
| 8638 |
|
|---|
| 8639 | yyrc = GpiRectVisible(a, b);
|
|---|
| 8640 | SetFS(sel);
|
|---|
| 8641 |
|
|---|
| 8642 | return yyrc;
|
|---|
| 8643 | }
|
|---|
| 8644 |
|
|---|
| 8645 | #undef GpiRectVisible
|
|---|
| 8646 | #define GpiRectVisible _GpiRectVisible
|
|---|
| 8647 |
|
|---|
| 8648 | inline BOOL _GpiRotate(HPS a, PMATRIXLF b, LONG c, FIXED d, PPOINTL e)
|
|---|
| 8649 | {
|
|---|
| 8650 | BOOL yyrc;
|
|---|
| 8651 | USHORT sel = RestoreOS2FS();
|
|---|
| 8652 |
|
|---|
| 8653 | yyrc = GpiRotate(a, b, c, d, e);
|
|---|
| 8654 | SetFS(sel);
|
|---|
| 8655 |
|
|---|
| 8656 | return yyrc;
|
|---|
| 8657 | }
|
|---|
| 8658 |
|
|---|
| 8659 | #undef GpiRotate
|
|---|
| 8660 | #define GpiRotate _GpiRotate
|
|---|
| 8661 |
|
|---|
| 8662 | inline BOOL _GpiSaveMetaFile(HMF a, PCSZ b)
|
|---|
| 8663 | {
|
|---|
| 8664 | BOOL yyrc;
|
|---|
| 8665 | USHORT sel = RestoreOS2FS();
|
|---|
| 8666 |
|
|---|
| 8667 | yyrc = GpiSaveMetaFile(a, b);
|
|---|
| 8668 | SetFS(sel);
|
|---|
| 8669 |
|
|---|
| 8670 | return yyrc;
|
|---|
| 8671 | }
|
|---|
| 8672 |
|
|---|
| 8673 | #undef GpiSaveMetaFile
|
|---|
| 8674 | #define GpiSaveMetaFile _GpiSaveMetaFile
|
|---|
| 8675 |
|
|---|
| 8676 | inline BOOL _GpiScale(HPS a, PMATRIXLF b, LONG c, PFIXED d, PPOINTL e)
|
|---|
| 8677 | {
|
|---|
| 8678 | BOOL yyrc;
|
|---|
| 8679 | USHORT sel = RestoreOS2FS();
|
|---|
| 8680 |
|
|---|
| 8681 | yyrc = GpiScale(a, b, c, d, e);
|
|---|
| 8682 | SetFS(sel);
|
|---|
| 8683 |
|
|---|
| 8684 | return yyrc;
|
|---|
| 8685 | }
|
|---|
| 8686 |
|
|---|
| 8687 | #undef GpiScale
|
|---|
| 8688 | #define GpiScale _GpiScale
|
|---|
| 8689 |
|
|---|
| 8690 | inline HPAL _GpiSelectPalette(HPS a, HPAL b)
|
|---|
| 8691 | {
|
|---|
| 8692 | HPAL yyrc;
|
|---|
| 8693 | USHORT sel = RestoreOS2FS();
|
|---|
| 8694 |
|
|---|
| 8695 | yyrc = GpiSelectPalette(a, b);
|
|---|
| 8696 | SetFS(sel);
|
|---|
| 8697 |
|
|---|
| 8698 | return yyrc;
|
|---|
| 8699 | }
|
|---|
| 8700 |
|
|---|
| 8701 | #undef GpiSelectPalette
|
|---|
| 8702 | #define GpiSelectPalette _GpiSelectPalette
|
|---|
| 8703 |
|
|---|
| 8704 | inline BOOL _GpiSetArcParams(HPS a, PARCPARAMS b)
|
|---|
| 8705 | {
|
|---|
| 8706 | BOOL yyrc;
|
|---|
| 8707 | USHORT sel = RestoreOS2FS();
|
|---|
| 8708 |
|
|---|
| 8709 | yyrc = GpiSetArcParams(a, b);
|
|---|
| 8710 | SetFS(sel);
|
|---|
| 8711 |
|
|---|
| 8712 | return yyrc;
|
|---|
| 8713 | }
|
|---|
| 8714 |
|
|---|
| 8715 | #undef GpiSetArcParams
|
|---|
| 8716 | #define GpiSetArcParams _GpiSetArcParams
|
|---|
| 8717 |
|
|---|
| 8718 | inline BOOL _GpiSetAttrMode(HPS a, LONG b)
|
|---|
| 8719 | {
|
|---|
| 8720 | BOOL yyrc;
|
|---|
| 8721 | USHORT sel = RestoreOS2FS();
|
|---|
| 8722 |
|
|---|
| 8723 | yyrc = GpiSetAttrMode(a, b);
|
|---|
| 8724 | SetFS(sel);
|
|---|
| 8725 |
|
|---|
| 8726 | return yyrc;
|
|---|
| 8727 | }
|
|---|
| 8728 |
|
|---|
| 8729 | #undef GpiSetAttrMode
|
|---|
| 8730 | #define GpiSetAttrMode _GpiSetAttrMode
|
|---|
| 8731 |
|
|---|
| 8732 | inline BOOL _GpiSetAttrs(HPS a, LONG b, ULONG c, ULONG d, PVOID e)
|
|---|
| 8733 | {
|
|---|
| 8734 | BOOL yyrc;
|
|---|
| 8735 | USHORT sel = RestoreOS2FS();
|
|---|
| 8736 |
|
|---|
| 8737 | yyrc = GpiSetAttrs(a, b, c, d, e);
|
|---|
| 8738 | SetFS(sel);
|
|---|
| 8739 |
|
|---|
| 8740 | return yyrc;
|
|---|
| 8741 | }
|
|---|
| 8742 |
|
|---|
| 8743 | #undef GpiSetAttrs
|
|---|
| 8744 | #define GpiSetAttrs _GpiSetAttrs
|
|---|
| 8745 |
|
|---|
| 8746 | inline BOOL _GpiSetBackColor(HPS a, LONG b)
|
|---|
| 8747 | {
|
|---|
| 8748 | BOOL yyrc;
|
|---|
| 8749 | USHORT sel = RestoreOS2FS();
|
|---|
| 8750 |
|
|---|
| 8751 | yyrc = GpiSetBackColor(a, b);
|
|---|
| 8752 | SetFS(sel);
|
|---|
| 8753 |
|
|---|
| 8754 | return yyrc;
|
|---|
| 8755 | }
|
|---|
| 8756 |
|
|---|
| 8757 | #undef GpiSetBackColor
|
|---|
| 8758 | #define GpiSetBackColor _GpiSetBackColor
|
|---|
| 8759 |
|
|---|
| 8760 | inline BOOL _GpiSetBackMix(HPS a, LONG b)
|
|---|
| 8761 | {
|
|---|
| 8762 | BOOL yyrc;
|
|---|
| 8763 | USHORT sel = RestoreOS2FS();
|
|---|
| 8764 |
|
|---|
| 8765 | yyrc = GpiSetBackMix(a, b);
|
|---|
| 8766 | SetFS(sel);
|
|---|
| 8767 |
|
|---|
| 8768 | return yyrc;
|
|---|
| 8769 | }
|
|---|
| 8770 |
|
|---|
| 8771 | #undef GpiSetBackMix
|
|---|
| 8772 | #define GpiSetBackMix _GpiSetBackMix
|
|---|
| 8773 |
|
|---|
| 8774 | inline BOOL _GpiSetCharAngle(HPS a, PGRADIENTL b)
|
|---|
| 8775 | {
|
|---|
| 8776 | BOOL yyrc;
|
|---|
| 8777 | USHORT sel = RestoreOS2FS();
|
|---|
| 8778 |
|
|---|
| 8779 | yyrc = GpiSetCharAngle(a, b);
|
|---|
| 8780 | SetFS(sel);
|
|---|
| 8781 |
|
|---|
| 8782 | return yyrc;
|
|---|
| 8783 | }
|
|---|
| 8784 |
|
|---|
| 8785 | #undef GpiSetCharAngle
|
|---|
| 8786 | #define GpiSetCharAngle _GpiSetCharAngle
|
|---|
| 8787 |
|
|---|
| 8788 | inline BOOL _GpiSetCharBox(HPS a, PSIZEF b)
|
|---|
| 8789 | {
|
|---|
| 8790 | BOOL yyrc;
|
|---|
| 8791 | USHORT sel = RestoreOS2FS();
|
|---|
| 8792 |
|
|---|
| 8793 | yyrc = GpiSetCharBox(a, b);
|
|---|
| 8794 | SetFS(sel);
|
|---|
| 8795 |
|
|---|
| 8796 | return yyrc;
|
|---|
| 8797 | }
|
|---|
| 8798 |
|
|---|
| 8799 | #undef GpiSetCharBox
|
|---|
| 8800 | #define GpiSetCharBox _GpiSetCharBox
|
|---|
| 8801 |
|
|---|
| 8802 | inline BOOL _GpiSetCharBreakExtra(HPS a, FIXED b)
|
|---|
| 8803 | {
|
|---|
| 8804 | BOOL yyrc;
|
|---|
| 8805 | USHORT sel = RestoreOS2FS();
|
|---|
| 8806 |
|
|---|
| 8807 | yyrc = GpiSetCharBreakExtra(a, b);
|
|---|
| 8808 | SetFS(sel);
|
|---|
| 8809 |
|
|---|
| 8810 | return yyrc;
|
|---|
| 8811 | }
|
|---|
| 8812 |
|
|---|
| 8813 | #undef GpiSetCharBreakExtra
|
|---|
| 8814 | #define GpiSetCharBreakExtra _GpiSetCharBreakExtra
|
|---|
| 8815 |
|
|---|
| 8816 | inline BOOL _GpiSetCharDirection(HPS a, LONG b)
|
|---|
| 8817 | {
|
|---|
| 8818 | BOOL yyrc;
|
|---|
| 8819 | USHORT sel = RestoreOS2FS();
|
|---|
| 8820 |
|
|---|
| 8821 | yyrc = GpiSetCharDirection(a, b);
|
|---|
| 8822 | SetFS(sel);
|
|---|
| 8823 |
|
|---|
| 8824 | return yyrc;
|
|---|
| 8825 | }
|
|---|
| 8826 |
|
|---|
| 8827 | #undef GpiSetCharDirection
|
|---|
| 8828 | #define GpiSetCharDirection _GpiSetCharDirection
|
|---|
| 8829 |
|
|---|
| 8830 | inline BOOL _GpiSetCharExtra(HPS a, FIXED b)
|
|---|
| 8831 | {
|
|---|
| 8832 | BOOL yyrc;
|
|---|
| 8833 | USHORT sel = RestoreOS2FS();
|
|---|
| 8834 |
|
|---|
| 8835 | yyrc = GpiSetCharExtra(a, b);
|
|---|
| 8836 | SetFS(sel);
|
|---|
| 8837 |
|
|---|
| 8838 | return yyrc;
|
|---|
| 8839 | }
|
|---|
| 8840 |
|
|---|
| 8841 | #undef GpiSetCharExtra
|
|---|
| 8842 | #define GpiSetCharExtra _GpiSetCharExtra
|
|---|
| 8843 |
|
|---|
| 8844 | inline BOOL _GpiSetCharMode(HPS a, LONG b)
|
|---|
| 8845 | {
|
|---|
| 8846 | BOOL yyrc;
|
|---|
| 8847 | USHORT sel = RestoreOS2FS();
|
|---|
| 8848 |
|
|---|
| 8849 | yyrc = GpiSetCharMode(a, b);
|
|---|
| 8850 | SetFS(sel);
|
|---|
| 8851 |
|
|---|
| 8852 | return yyrc;
|
|---|
| 8853 | }
|
|---|
| 8854 |
|
|---|
| 8855 | #undef GpiSetCharMode
|
|---|
| 8856 | #define GpiSetCharMode _GpiSetCharMode
|
|---|
| 8857 |
|
|---|
| 8858 | inline BOOL _GpiSetCharSet(HPS a, LONG b)
|
|---|
| 8859 | {
|
|---|
| 8860 | BOOL yyrc;
|
|---|
| 8861 | USHORT sel = RestoreOS2FS();
|
|---|
| 8862 |
|
|---|
| 8863 | yyrc = GpiSetCharSet(a, b);
|
|---|
| 8864 | SetFS(sel);
|
|---|
| 8865 |
|
|---|
| 8866 | return yyrc;
|
|---|
| 8867 | }
|
|---|
| 8868 |
|
|---|
| 8869 | #undef GpiSetCharSet
|
|---|
| 8870 | #define GpiSetCharSet _GpiSetCharSet
|
|---|
| 8871 |
|
|---|
| 8872 | inline BOOL _GpiSetCharShear(HPS a, PPOINTL b)
|
|---|
| 8873 | {
|
|---|
| 8874 | BOOL yyrc;
|
|---|
| 8875 | USHORT sel = RestoreOS2FS();
|
|---|
| 8876 |
|
|---|
| 8877 | yyrc = GpiSetCharShear(a, b);
|
|---|
| 8878 | SetFS(sel);
|
|---|
| 8879 |
|
|---|
| 8880 | return yyrc;
|
|---|
| 8881 | }
|
|---|
| 8882 |
|
|---|
| 8883 | #undef GpiSetCharShear
|
|---|
| 8884 | #define GpiSetCharShear _GpiSetCharShear
|
|---|
| 8885 |
|
|---|
| 8886 | inline BOOL _GpiSetClipPath(HPS a, LONG b, LONG c)
|
|---|
| 8887 | {
|
|---|
| 8888 | BOOL yyrc;
|
|---|
| 8889 | USHORT sel = RestoreOS2FS();
|
|---|
| 8890 |
|
|---|
| 8891 | yyrc = GpiSetClipPath(a, b, c);
|
|---|
| 8892 | SetFS(sel);
|
|---|
| 8893 |
|
|---|
| 8894 | return yyrc;
|
|---|
| 8895 | }
|
|---|
| 8896 |
|
|---|
| 8897 | #undef GpiSetClipPath
|
|---|
| 8898 | #define GpiSetClipPath _GpiSetClipPath
|
|---|
| 8899 |
|
|---|
| 8900 | inline LONG _GpiSetClipRegion(HPS a, HRGN b, PHRGN c)
|
|---|
| 8901 | {
|
|---|
| 8902 | LONG yyrc;
|
|---|
| 8903 | USHORT sel = RestoreOS2FS();
|
|---|
| 8904 |
|
|---|
| 8905 | yyrc = GpiSetClipRegion(a, b, c);
|
|---|
| 8906 | SetFS(sel);
|
|---|
| 8907 |
|
|---|
| 8908 | return yyrc;
|
|---|
| 8909 | }
|
|---|
| 8910 |
|
|---|
| 8911 | #undef GpiSetClipRegion
|
|---|
| 8912 | #define GpiSetClipRegion _GpiSetClipRegion
|
|---|
| 8913 |
|
|---|
| 8914 | inline BOOL _GpiSetColor(HPS a, LONG b)
|
|---|
| 8915 | {
|
|---|
| 8916 | BOOL yyrc;
|
|---|
| 8917 | USHORT sel = RestoreOS2FS();
|
|---|
| 8918 |
|
|---|
| 8919 | yyrc = GpiSetColor(a, b);
|
|---|
| 8920 | SetFS(sel);
|
|---|
| 8921 |
|
|---|
| 8922 | return yyrc;
|
|---|
| 8923 | }
|
|---|
| 8924 |
|
|---|
| 8925 | #undef GpiSetColor
|
|---|
| 8926 | #define GpiSetColor _GpiSetColor
|
|---|
| 8927 |
|
|---|
| 8928 | inline BOOL _GpiSetCp(HPS a, ULONG b)
|
|---|
| 8929 | {
|
|---|
| 8930 | BOOL yyrc;
|
|---|
| 8931 | USHORT sel = RestoreOS2FS();
|
|---|
| 8932 |
|
|---|
| 8933 | yyrc = GpiSetCp(a, b);
|
|---|
| 8934 | SetFS(sel);
|
|---|
| 8935 |
|
|---|
| 8936 | return yyrc;
|
|---|
| 8937 | }
|
|---|
| 8938 |
|
|---|
| 8939 | #undef GpiSetCp
|
|---|
| 8940 | #define GpiSetCp _GpiSetCp
|
|---|
| 8941 |
|
|---|
| 8942 | inline BOOL _GpiSetCurrentPosition(HPS a, PPOINTL b)
|
|---|
| 8943 | {
|
|---|
| 8944 | BOOL yyrc;
|
|---|
| 8945 | USHORT sel = RestoreOS2FS();
|
|---|
| 8946 |
|
|---|
| 8947 | yyrc = GpiSetCurrentPosition(a, b);
|
|---|
| 8948 | SetFS(sel);
|
|---|
| 8949 |
|
|---|
| 8950 | return yyrc;
|
|---|
| 8951 | }
|
|---|
| 8952 |
|
|---|
| 8953 | #undef GpiSetCurrentPosition
|
|---|
| 8954 | #define GpiSetCurrentPosition _GpiSetCurrentPosition
|
|---|
| 8955 |
|
|---|
| 8956 | inline BOOL _GpiSetDefArcParams(HPS a, PARCPARAMS b)
|
|---|
| 8957 | {
|
|---|
| 8958 | BOOL yyrc;
|
|---|
| 8959 | USHORT sel = RestoreOS2FS();
|
|---|
| 8960 |
|
|---|
| 8961 | yyrc = GpiSetDefArcParams(a, b);
|
|---|
| 8962 | SetFS(sel);
|
|---|
| 8963 |
|
|---|
| 8964 | return yyrc;
|
|---|
| 8965 | }
|
|---|
| 8966 |
|
|---|
| 8967 | #undef GpiSetDefArcParams
|
|---|
| 8968 | #define GpiSetDefArcParams _GpiSetDefArcParams
|
|---|
| 8969 |
|
|---|
| 8970 | inline BOOL _GpiSetDefAttrs(HPS a, LONG b, ULONG c, PVOID d)
|
|---|
| 8971 | {
|
|---|
| 8972 | BOOL yyrc;
|
|---|
| 8973 | USHORT sel = RestoreOS2FS();
|
|---|
| 8974 |
|
|---|
| 8975 | yyrc = GpiSetDefAttrs(a, b, c, d);
|
|---|
| 8976 | SetFS(sel);
|
|---|
| 8977 |
|
|---|
| 8978 | return yyrc;
|
|---|
| 8979 | }
|
|---|
| 8980 |
|
|---|
| 8981 | #undef GpiSetDefAttrs
|
|---|
| 8982 | #define GpiSetDefAttrs _GpiSetDefAttrs
|
|---|
| 8983 |
|
|---|
| 8984 | inline BOOL _GpiSetDefaultViewMatrix(HPS a, LONG b, PMATRIXLF c, LONG d)
|
|---|
| 8985 | {
|
|---|
| 8986 | BOOL yyrc;
|
|---|
| 8987 | USHORT sel = RestoreOS2FS();
|
|---|
| 8988 |
|
|---|
| 8989 | yyrc = GpiSetDefaultViewMatrix(a, b, c, d);
|
|---|
| 8990 | SetFS(sel);
|
|---|
| 8991 |
|
|---|
| 8992 | return yyrc;
|
|---|
| 8993 | }
|
|---|
| 8994 |
|
|---|
| 8995 | #undef GpiSetDefaultViewMatrix
|
|---|
| 8996 | #define GpiSetDefaultViewMatrix _GpiSetDefaultViewMatrix
|
|---|
| 8997 |
|
|---|
| 8998 | inline BOOL _GpiSetDefTag(HPS a, LONG b)
|
|---|
| 8999 | {
|
|---|
| 9000 | BOOL yyrc;
|
|---|
| 9001 | USHORT sel = RestoreOS2FS();
|
|---|
| 9002 |
|
|---|
| 9003 | yyrc = GpiSetDefTag(a, b);
|
|---|
| 9004 | SetFS(sel);
|
|---|
| 9005 |
|
|---|
| 9006 | return yyrc;
|
|---|
| 9007 | }
|
|---|
| 9008 |
|
|---|
| 9009 | #undef GpiSetDefTag
|
|---|
| 9010 | #define GpiSetDefTag _GpiSetDefTag
|
|---|
| 9011 |
|
|---|
| 9012 | inline BOOL _GpiSetDefViewingLimits(HPS a, PRECTL b)
|
|---|
| 9013 | {
|
|---|
| 9014 | BOOL yyrc;
|
|---|
| 9015 | USHORT sel = RestoreOS2FS();
|
|---|
| 9016 |
|
|---|
| 9017 | yyrc = GpiSetDefViewingLimits(a, b);
|
|---|
| 9018 | SetFS(sel);
|
|---|
| 9019 |
|
|---|
| 9020 | return yyrc;
|
|---|
| 9021 | }
|
|---|
| 9022 |
|
|---|
| 9023 | #undef GpiSetDefViewingLimits
|
|---|
| 9024 | #define GpiSetDefViewingLimits _GpiSetDefViewingLimits
|
|---|
| 9025 |
|
|---|
| 9026 | inline BOOL _GpiSetEditMode(HPS a, LONG b)
|
|---|
| 9027 | {
|
|---|
| 9028 | BOOL yyrc;
|
|---|
| 9029 | USHORT sel = RestoreOS2FS();
|
|---|
| 9030 |
|
|---|
| 9031 | yyrc = GpiSetEditMode(a, b);
|
|---|
| 9032 | SetFS(sel);
|
|---|
| 9033 |
|
|---|
| 9034 | return yyrc;
|
|---|
| 9035 | }
|
|---|
| 9036 |
|
|---|
| 9037 | #undef GpiSetEditMode
|
|---|
| 9038 | #define GpiSetEditMode _GpiSetEditMode
|
|---|
| 9039 |
|
|---|
| 9040 | inline BOOL _GpiSetElementPointer(HPS a, LONG b)
|
|---|
| 9041 | {
|
|---|
| 9042 | BOOL yyrc;
|
|---|
| 9043 | USHORT sel = RestoreOS2FS();
|
|---|
| 9044 |
|
|---|
| 9045 | yyrc = GpiSetElementPointer(a, b);
|
|---|
| 9046 | SetFS(sel);
|
|---|
| 9047 |
|
|---|
| 9048 | return yyrc;
|
|---|
| 9049 | }
|
|---|
| 9050 |
|
|---|
| 9051 | #undef GpiSetElementPointer
|
|---|
| 9052 | #define GpiSetElementPointer _GpiSetElementPointer
|
|---|
| 9053 |
|
|---|
| 9054 | inline BOOL _GpiSetElementPointerAtLabel(HPS a, LONG b)
|
|---|
| 9055 | {
|
|---|
| 9056 | BOOL yyrc;
|
|---|
| 9057 | USHORT sel = RestoreOS2FS();
|
|---|
| 9058 |
|
|---|
| 9059 | yyrc = GpiSetElementPointerAtLabel(a, b);
|
|---|
| 9060 | SetFS(sel);
|
|---|
| 9061 |
|
|---|
| 9062 | return yyrc;
|
|---|
| 9063 | }
|
|---|
| 9064 |
|
|---|
| 9065 | #undef GpiSetElementPointerAtLabel
|
|---|
| 9066 | #define GpiSetElementPointerAtLabel _GpiSetElementPointerAtLabel
|
|---|
| 9067 |
|
|---|
| 9068 | inline BOOL _GpiSetGraphicsField(HPS a, PRECTL b)
|
|---|
| 9069 | {
|
|---|
| 9070 | BOOL yyrc;
|
|---|
| 9071 | USHORT sel = RestoreOS2FS();
|
|---|
| 9072 |
|
|---|
| 9073 | yyrc = GpiSetGraphicsField(a, b);
|
|---|
| 9074 | SetFS(sel);
|
|---|
| 9075 |
|
|---|
| 9076 | return yyrc;
|
|---|
| 9077 | }
|
|---|
| 9078 |
|
|---|
| 9079 | #undef GpiSetGraphicsField
|
|---|
| 9080 | #define GpiSetGraphicsField _GpiSetGraphicsField
|
|---|
| 9081 |
|
|---|
| 9082 | inline BOOL _GpiSetLineEnd(HPS a, LONG b)
|
|---|
| 9083 | {
|
|---|
| 9084 | BOOL yyrc;
|
|---|
| 9085 | USHORT sel = RestoreOS2FS();
|
|---|
| 9086 |
|
|---|
| 9087 | yyrc = GpiSetLineEnd(a, b);
|
|---|
| 9088 | SetFS(sel);
|
|---|
| 9089 |
|
|---|
| 9090 | return yyrc;
|
|---|
| 9091 | }
|
|---|
| 9092 |
|
|---|
| 9093 | #undef GpiSetLineEnd
|
|---|
| 9094 | #define GpiSetLineEnd _GpiSetLineEnd
|
|---|
| 9095 |
|
|---|
| 9096 | inline BOOL _GpiSetLineJoin(HPS a, LONG b)
|
|---|
| 9097 | {
|
|---|
| 9098 | BOOL yyrc;
|
|---|
| 9099 | USHORT sel = RestoreOS2FS();
|
|---|
| 9100 |
|
|---|
| 9101 | yyrc = GpiSetLineJoin(a, b);
|
|---|
| 9102 | SetFS(sel);
|
|---|
| 9103 |
|
|---|
| 9104 | return yyrc;
|
|---|
| 9105 | }
|
|---|
| 9106 |
|
|---|
| 9107 | #undef GpiSetLineJoin
|
|---|
| 9108 | #define GpiSetLineJoin _GpiSetLineJoin
|
|---|
| 9109 |
|
|---|
| 9110 | inline BOOL _GpiSetLineType(HPS a, LONG b)
|
|---|
| 9111 | {
|
|---|
| 9112 | BOOL yyrc;
|
|---|
| 9113 | USHORT sel = RestoreOS2FS();
|
|---|
| 9114 |
|
|---|
| 9115 | yyrc = GpiSetLineType(a, b);
|
|---|
| 9116 | SetFS(sel);
|
|---|
| 9117 |
|
|---|
| 9118 | return yyrc;
|
|---|
| 9119 | }
|
|---|
| 9120 |
|
|---|
| 9121 | #undef GpiSetLineType
|
|---|
| 9122 | #define GpiSetLineType _GpiSetLineType
|
|---|
| 9123 |
|
|---|
| 9124 | inline BOOL _GpiSetLineWidth(HPS a, FIXED b)
|
|---|
| 9125 | {
|
|---|
| 9126 | BOOL yyrc;
|
|---|
| 9127 | USHORT sel = RestoreOS2FS();
|
|---|
| 9128 |
|
|---|
| 9129 | yyrc = GpiSetLineWidth(a, b);
|
|---|
| 9130 | SetFS(sel);
|
|---|
| 9131 |
|
|---|
| 9132 | return yyrc;
|
|---|
| 9133 | }
|
|---|
| 9134 |
|
|---|
| 9135 | #undef GpiSetLineWidth
|
|---|
| 9136 | #define GpiSetLineWidth _GpiSetLineWidth
|
|---|
| 9137 |
|
|---|
| 9138 | inline BOOL _GpiSetLineWidthGeom(HPS a, LONG b)
|
|---|
| 9139 | {
|
|---|
| 9140 | BOOL yyrc;
|
|---|
| 9141 | USHORT sel = RestoreOS2FS();
|
|---|
| 9142 |
|
|---|
| 9143 | yyrc = GpiSetLineWidthGeom(a, b);
|
|---|
| 9144 | SetFS(sel);
|
|---|
| 9145 |
|
|---|
| 9146 | return yyrc;
|
|---|
| 9147 | }
|
|---|
| 9148 |
|
|---|
| 9149 | #undef GpiSetLineWidthGeom
|
|---|
| 9150 | #define GpiSetLineWidthGeom _GpiSetLineWidthGeom
|
|---|
| 9151 |
|
|---|
| 9152 | inline BOOL _GpiSetMarker(HPS a, LONG b)
|
|---|
| 9153 | {
|
|---|
| 9154 | BOOL yyrc;
|
|---|
| 9155 | USHORT sel = RestoreOS2FS();
|
|---|
| 9156 |
|
|---|
| 9157 | yyrc = GpiSetMarker(a, b);
|
|---|
| 9158 | SetFS(sel);
|
|---|
| 9159 |
|
|---|
| 9160 | return yyrc;
|
|---|
| 9161 | }
|
|---|
| 9162 |
|
|---|
| 9163 | #undef GpiSetMarker
|
|---|
| 9164 | #define GpiSetMarker _GpiSetMarker
|
|---|
| 9165 |
|
|---|
| 9166 | inline BOOL _GpiSetMarkerBox(HPS a, PSIZEF b)
|
|---|
| 9167 | {
|
|---|
| 9168 | BOOL yyrc;
|
|---|
| 9169 | USHORT sel = RestoreOS2FS();
|
|---|
| 9170 |
|
|---|
| 9171 | yyrc = GpiSetMarkerBox(a, b);
|
|---|
| 9172 | SetFS(sel);
|
|---|
| 9173 |
|
|---|
| 9174 | return yyrc;
|
|---|
| 9175 | }
|
|---|
| 9176 |
|
|---|
| 9177 | #undef GpiSetMarkerBox
|
|---|
| 9178 | #define GpiSetMarkerBox _GpiSetMarkerBox
|
|---|
| 9179 |
|
|---|
| 9180 | inline BOOL _GpiSetMarkerSet(HPS a, LONG b)
|
|---|
| 9181 | {
|
|---|
| 9182 | BOOL yyrc;
|
|---|
| 9183 | USHORT sel = RestoreOS2FS();
|
|---|
| 9184 |
|
|---|
| 9185 | yyrc = GpiSetMarkerSet(a, b);
|
|---|
| 9186 | SetFS(sel);
|
|---|
| 9187 |
|
|---|
| 9188 | return yyrc;
|
|---|
| 9189 | }
|
|---|
| 9190 |
|
|---|
| 9191 | #undef GpiSetMarkerSet
|
|---|
| 9192 | #define GpiSetMarkerSet _GpiSetMarkerSet
|
|---|
| 9193 |
|
|---|
| 9194 | inline BOOL _GpiSetMetaFileBits(HMF a, LONG b, LONG c, PBYTE d)
|
|---|
| 9195 | {
|
|---|
| 9196 | BOOL yyrc;
|
|---|
| 9197 | USHORT sel = RestoreOS2FS();
|
|---|
| 9198 |
|
|---|
| 9199 | yyrc = GpiSetMetaFileBits(a, b, c, d);
|
|---|
| 9200 | SetFS(sel);
|
|---|
| 9201 |
|
|---|
| 9202 | return yyrc;
|
|---|
| 9203 | }
|
|---|
| 9204 |
|
|---|
| 9205 | #undef GpiSetMetaFileBits
|
|---|
| 9206 | #define GpiSetMetaFileBits _GpiSetMetaFileBits
|
|---|
| 9207 |
|
|---|
| 9208 | inline BOOL _GpiSetMix(HPS a, LONG b)
|
|---|
| 9209 | {
|
|---|
| 9210 | BOOL yyrc;
|
|---|
| 9211 | USHORT sel = RestoreOS2FS();
|
|---|
| 9212 |
|
|---|
| 9213 | yyrc = GpiSetMix(a, b);
|
|---|
| 9214 | SetFS(sel);
|
|---|
| 9215 |
|
|---|
| 9216 | return yyrc;
|
|---|
| 9217 | }
|
|---|
| 9218 |
|
|---|
| 9219 | #undef GpiSetMix
|
|---|
| 9220 | #define GpiSetMix _GpiSetMix
|
|---|
| 9221 |
|
|---|
| 9222 | inline BOOL _GpiSetModelTransformMatrix(HPS a, LONG b, PMATRIXLF c, LONG d)
|
|---|
| 9223 | {
|
|---|
| 9224 | BOOL yyrc;
|
|---|
| 9225 | USHORT sel = RestoreOS2FS();
|
|---|
| 9226 |
|
|---|
| 9227 | yyrc = GpiSetModelTransformMatrix(a, b, c, d);
|
|---|
| 9228 | SetFS(sel);
|
|---|
| 9229 |
|
|---|
| 9230 | return yyrc;
|
|---|
| 9231 | }
|
|---|
| 9232 |
|
|---|
| 9233 | #undef GpiSetModelTransformMatrix
|
|---|
| 9234 | #define GpiSetModelTransformMatrix _GpiSetModelTransformMatrix
|
|---|
| 9235 |
|
|---|
| 9236 | inline BOOL _GpiSetPageViewport(HPS a, PRECTL b)
|
|---|
| 9237 | {
|
|---|
| 9238 | BOOL yyrc;
|
|---|
| 9239 | USHORT sel = RestoreOS2FS();
|
|---|
| 9240 |
|
|---|
| 9241 | yyrc = GpiSetPageViewport(a, b);
|
|---|
| 9242 | SetFS(sel);
|
|---|
| 9243 |
|
|---|
| 9244 | return yyrc;
|
|---|
| 9245 | }
|
|---|
| 9246 |
|
|---|
| 9247 | #undef GpiSetPageViewport
|
|---|
| 9248 | #define GpiSetPageViewport _GpiSetPageViewport
|
|---|
| 9249 |
|
|---|
| 9250 | inline BOOL _GpiSetPaletteEntries(HPAL a, ULONG b, ULONG c, ULONG d, ULONG *e)
|
|---|
| 9251 | {
|
|---|
| 9252 | BOOL yyrc;
|
|---|
| 9253 | USHORT sel = RestoreOS2FS();
|
|---|
| 9254 |
|
|---|
| 9255 | yyrc = GpiSetPaletteEntries(a, b, c, d, e);
|
|---|
| 9256 | SetFS(sel);
|
|---|
| 9257 |
|
|---|
| 9258 | return yyrc;
|
|---|
| 9259 | }
|
|---|
| 9260 |
|
|---|
| 9261 | #undef GpiSetPaletteEntries
|
|---|
| 9262 | #define GpiSetPaletteEntries _GpiSetPaletteEntries
|
|---|
| 9263 |
|
|---|
| 9264 | inline BOOL _GpiSetPattern(HPS a, LONG b)
|
|---|
| 9265 | {
|
|---|
| 9266 | BOOL yyrc;
|
|---|
| 9267 | USHORT sel = RestoreOS2FS();
|
|---|
| 9268 |
|
|---|
| 9269 | yyrc = GpiSetPattern(a, b);
|
|---|
| 9270 | SetFS(sel);
|
|---|
| 9271 |
|
|---|
| 9272 | return yyrc;
|
|---|
| 9273 | }
|
|---|
| 9274 |
|
|---|
| 9275 | #undef GpiSetPattern
|
|---|
| 9276 | #define GpiSetPattern _GpiSetPattern
|
|---|
| 9277 |
|
|---|
| 9278 | inline BOOL _GpiSetPatternRefPoint(HPS a, PPOINTL b)
|
|---|
| 9279 | {
|
|---|
| 9280 | BOOL yyrc;
|
|---|
| 9281 | USHORT sel = RestoreOS2FS();
|
|---|
| 9282 |
|
|---|
| 9283 | yyrc = GpiSetPatternRefPoint(a, b);
|
|---|
| 9284 | SetFS(sel);
|
|---|
| 9285 |
|
|---|
| 9286 | return yyrc;
|
|---|
| 9287 | }
|
|---|
| 9288 |
|
|---|
| 9289 | #undef GpiSetPatternRefPoint
|
|---|
| 9290 | #define GpiSetPatternRefPoint _GpiSetPatternRefPoint
|
|---|
| 9291 |
|
|---|
| 9292 | inline BOOL _GpiSetPatternSet(HPS a, LONG b)
|
|---|
| 9293 | {
|
|---|
| 9294 | BOOL yyrc;
|
|---|
| 9295 | USHORT sel = RestoreOS2FS();
|
|---|
| 9296 |
|
|---|
| 9297 | yyrc = GpiSetPatternSet(a, b);
|
|---|
| 9298 | SetFS(sel);
|
|---|
| 9299 |
|
|---|
| 9300 | return yyrc;
|
|---|
| 9301 | }
|
|---|
| 9302 |
|
|---|
| 9303 | #undef GpiSetPatternSet
|
|---|
| 9304 | #define GpiSetPatternSet _GpiSetPatternSet
|
|---|
| 9305 |
|
|---|
| 9306 | inline BOOL _GpiSetRegion(HPS a, HRGN b, LONG c, PRECTL d)
|
|---|
| 9307 | {
|
|---|
| 9308 | BOOL yyrc;
|
|---|
| 9309 | USHORT sel = RestoreOS2FS();
|
|---|
| 9310 |
|
|---|
| 9311 | yyrc = GpiSetRegion(a, b, c, d);
|
|---|
| 9312 | SetFS(sel);
|
|---|
| 9313 |
|
|---|
| 9314 | return yyrc;
|
|---|
| 9315 | }
|
|---|
| 9316 |
|
|---|
| 9317 | #undef GpiSetRegion
|
|---|
| 9318 | #define GpiSetRegion _GpiSetRegion
|
|---|
| 9319 |
|
|---|
| 9320 | inline BOOL _GpiSetSegmentTransformMatrix(HPS a, LONG b, LONG c, MATRIXLF *d, LONG e)
|
|---|
| 9321 | {
|
|---|
| 9322 | BOOL yyrc;
|
|---|
| 9323 | USHORT sel = RestoreOS2FS();
|
|---|
| 9324 |
|
|---|
| 9325 | yyrc = GpiSetSegmentTransformMatrix(a, b, c, d, e);
|
|---|
| 9326 | SetFS(sel);
|
|---|
| 9327 |
|
|---|
| 9328 | return yyrc;
|
|---|
| 9329 | }
|
|---|
| 9330 |
|
|---|
| 9331 | #undef GpiSetSegmentTransformMatrix
|
|---|
| 9332 | #define GpiSetSegmentTransformMatrix _GpiSetSegmentTransformMatrix
|
|---|
| 9333 |
|
|---|
| 9334 | inline BOOL _GpiSetTextAlignment(HPS a, LONG b, LONG c)
|
|---|
| 9335 | {
|
|---|
| 9336 | BOOL yyrc;
|
|---|
| 9337 | USHORT sel = RestoreOS2FS();
|
|---|
| 9338 |
|
|---|
| 9339 | yyrc = GpiSetTextAlignment(a, b, c);
|
|---|
| 9340 | SetFS(sel);
|
|---|
| 9341 |
|
|---|
| 9342 | return yyrc;
|
|---|
| 9343 | }
|
|---|
| 9344 |
|
|---|
| 9345 | #undef GpiSetTextAlignment
|
|---|
| 9346 | #define GpiSetTextAlignment _GpiSetTextAlignment
|
|---|
| 9347 |
|
|---|
| 9348 | inline BOOL _GpiSetViewingLimits(HPS a, PRECTL b)
|
|---|
| 9349 | {
|
|---|
| 9350 | BOOL yyrc;
|
|---|
| 9351 | USHORT sel = RestoreOS2FS();
|
|---|
| 9352 |
|
|---|
| 9353 | yyrc = GpiSetViewingLimits(a, b);
|
|---|
| 9354 | SetFS(sel);
|
|---|
| 9355 |
|
|---|
| 9356 | return yyrc;
|
|---|
| 9357 | }
|
|---|
| 9358 |
|
|---|
| 9359 | #undef GpiSetViewingLimits
|
|---|
| 9360 | #define GpiSetViewingLimits _GpiSetViewingLimits
|
|---|
| 9361 |
|
|---|
| 9362 | inline BOOL _GpiSetViewingTransformMatrix(HPS a, LONG b, MATRIXLF *c, LONG d)
|
|---|
| 9363 | {
|
|---|
| 9364 | BOOL yyrc;
|
|---|
| 9365 | USHORT sel = RestoreOS2FS();
|
|---|
| 9366 |
|
|---|
| 9367 | yyrc = GpiSetViewingTransformMatrix(a, b, c, d);
|
|---|
| 9368 | SetFS(sel);
|
|---|
| 9369 |
|
|---|
| 9370 | return yyrc;
|
|---|
| 9371 | }
|
|---|
| 9372 |
|
|---|
| 9373 | #undef GpiSetViewingTransformMatrix
|
|---|
| 9374 | #define GpiSetViewingTransformMatrix _GpiSetViewingTransformMatrix
|
|---|
| 9375 |
|
|---|
| 9376 | inline LONG _GpiStrokePath(HPS a, LONG b, ULONG c)
|
|---|
| 9377 | {
|
|---|
| 9378 | LONG yyrc;
|
|---|
| 9379 | USHORT sel = RestoreOS2FS();
|
|---|
| 9380 |
|
|---|
| 9381 | yyrc = GpiStrokePath(a, b, c);
|
|---|
| 9382 | SetFS(sel);
|
|---|
| 9383 |
|
|---|
| 9384 | return yyrc;
|
|---|
| 9385 | }
|
|---|
| 9386 |
|
|---|
| 9387 | #undef GpiStrokePath
|
|---|
| 9388 | #define GpiStrokePath _GpiStrokePath
|
|---|
| 9389 |
|
|---|
| 9390 | inline BOOL _GpiTranslate(HPS a, PMATRIXLF b, LONG c, PPOINTL d)
|
|---|
| 9391 | {
|
|---|
| 9392 | BOOL yyrc;
|
|---|
| 9393 | USHORT sel = RestoreOS2FS();
|
|---|
| 9394 |
|
|---|
| 9395 | yyrc = GpiTranslate(a, b, c, d);
|
|---|
| 9396 | SetFS(sel);
|
|---|
| 9397 |
|
|---|
| 9398 | return yyrc;
|
|---|
| 9399 | }
|
|---|
| 9400 |
|
|---|
| 9401 | #undef GpiTranslate
|
|---|
| 9402 | #define GpiTranslate _GpiTranslate
|
|---|
| 9403 |
|
|---|
| 9404 | inline BOOL _GpiUnloadFonts(HAB a, PCSZ b)
|
|---|
| 9405 | {
|
|---|
| 9406 | BOOL yyrc;
|
|---|
| 9407 | USHORT sel = RestoreOS2FS();
|
|---|
| 9408 |
|
|---|
| 9409 | yyrc = GpiUnloadFonts(a, b);
|
|---|
| 9410 | SetFS(sel);
|
|---|
| 9411 |
|
|---|
| 9412 | return yyrc;
|
|---|
| 9413 | }
|
|---|
| 9414 |
|
|---|
| 9415 | #undef GpiUnloadFonts
|
|---|
| 9416 | #define GpiUnloadFonts _GpiUnloadFonts
|
|---|
| 9417 |
|
|---|
| 9418 | inline BOOL _GpiUnloadPublicFonts(HAB a, PCSZ b)
|
|---|
| 9419 | {
|
|---|
| 9420 | BOOL yyrc;
|
|---|
| 9421 | USHORT sel = RestoreOS2FS();
|
|---|
| 9422 |
|
|---|
| 9423 | yyrc = GpiUnloadPublicFonts(a, b);
|
|---|
| 9424 | SetFS(sel);
|
|---|
| 9425 |
|
|---|
| 9426 | return yyrc;
|
|---|
| 9427 | }
|
|---|
| 9428 |
|
|---|
| 9429 | #undef GpiUnloadPublicFonts
|
|---|
| 9430 | #define GpiUnloadPublicFonts _GpiUnloadPublicFonts
|
|---|
| 9431 |
|
|---|
| 9432 | #ifdef INCL_GPIBITMAPS
|
|---|
| 9433 | inline LONG _GpiBitBlt(HPS a, HPS b, LONG c, PPOINTL d, LONG e, ULONG f)
|
|---|
| 9434 | {
|
|---|
| 9435 | LONG yyrc;
|
|---|
| 9436 | USHORT sel = RestoreOS2FS();
|
|---|
| 9437 |
|
|---|
| 9438 | yyrc = GpiBitBlt(a, b, c, d, e, f);
|
|---|
| 9439 | SetFS(sel);
|
|---|
| 9440 |
|
|---|
| 9441 | return yyrc;
|
|---|
| 9442 | }
|
|---|
| 9443 |
|
|---|
| 9444 | #undef GpiBitBlt
|
|---|
| 9445 | #define GpiBitBlt _GpiBitBlt
|
|---|
| 9446 |
|
|---|
| 9447 | inline BOOL _GpiDeleteBitmap(HBITMAP a)
|
|---|
| 9448 | {
|
|---|
| 9449 | BOOL yyrc;
|
|---|
| 9450 | USHORT sel = RestoreOS2FS();
|
|---|
| 9451 |
|
|---|
| 9452 | yyrc = GpiDeleteBitmap(a);
|
|---|
| 9453 | SetFS(sel);
|
|---|
| 9454 |
|
|---|
| 9455 | return yyrc;
|
|---|
| 9456 | }
|
|---|
| 9457 |
|
|---|
| 9458 | #undef GpiDeleteBitmap
|
|---|
| 9459 | #define GpiDeleteBitmap _GpiDeleteBitmap
|
|---|
| 9460 |
|
|---|
| 9461 | inline HBITMAP _GpiLoadBitmap(HPS a, HMODULE b, ULONG c, LONG d, LONG e)
|
|---|
| 9462 | {
|
|---|
| 9463 | HBITMAP yyrc;
|
|---|
| 9464 | USHORT sel = RestoreOS2FS();
|
|---|
| 9465 |
|
|---|
| 9466 | yyrc = GpiLoadBitmap(a, b, c, d, e);
|
|---|
| 9467 | SetFS(sel);
|
|---|
| 9468 |
|
|---|
| 9469 | return yyrc;
|
|---|
| 9470 | }
|
|---|
| 9471 |
|
|---|
| 9472 | #undef GpiLoadBitmap
|
|---|
| 9473 | #define GpiLoadBitmap _GpiLoadBitmap
|
|---|
| 9474 |
|
|---|
| 9475 | inline HBITMAP _GpiSetBitmap(HPS a, HBITMAP b)
|
|---|
| 9476 | {
|
|---|
| 9477 | HBITMAP yyrc;
|
|---|
| 9478 | USHORT sel = RestoreOS2FS();
|
|---|
| 9479 |
|
|---|
| 9480 | yyrc = GpiSetBitmap(a, b);
|
|---|
| 9481 | SetFS(sel);
|
|---|
| 9482 |
|
|---|
| 9483 | return yyrc;
|
|---|
| 9484 | }
|
|---|
| 9485 |
|
|---|
| 9486 | #undef GpiSetBitmap
|
|---|
| 9487 | #define GpiSetBitmap _GpiSetBitmap
|
|---|
| 9488 |
|
|---|
| 9489 | inline LONG _GpiWCBitBlt(HPS a, HBITMAP b, LONG c, PPOINTL d, LONG e, ULONG f)
|
|---|
| 9490 | {
|
|---|
| 9491 | LONG yyrc;
|
|---|
| 9492 | USHORT sel = RestoreOS2FS();
|
|---|
| 9493 |
|
|---|
| 9494 | yyrc = GpiWCBitBlt(a, b, c, d, e, f);
|
|---|
| 9495 | SetFS(sel);
|
|---|
| 9496 |
|
|---|
| 9497 | return yyrc;
|
|---|
| 9498 | }
|
|---|
| 9499 |
|
|---|
| 9500 | #undef GpiWCBitBlt
|
|---|
| 9501 | #define GpiWCBitBlt _GpiWCBitBlt
|
|---|
| 9502 |
|
|---|
| 9503 | inline HBITMAP _GpiCreateBitmap(HPS a, BITMAPINFOHEADER2 *b, ULONG c, PBYTE d, BITMAPINFO2 *e)
|
|---|
| 9504 | {
|
|---|
| 9505 | HBITMAP yyrc;
|
|---|
| 9506 | USHORT sel = RestoreOS2FS();
|
|---|
| 9507 |
|
|---|
| 9508 | yyrc = GpiCreateBitmap(a, b, c, d, e);
|
|---|
| 9509 | SetFS(sel);
|
|---|
| 9510 |
|
|---|
| 9511 | return yyrc;
|
|---|
| 9512 | }
|
|---|
| 9513 |
|
|---|
| 9514 | #undef GpiCreateBitmap
|
|---|
| 9515 | #define GpiCreateBitmap _GpiCreateBitmap
|
|---|
| 9516 |
|
|---|
| 9517 | inline LONG _GpiDrawBits(HPS a, PVOID b, BITMAPINFO2 *c, LONG d, PPOINTL e, LONG f, ULONG g)
|
|---|
| 9518 | {
|
|---|
| 9519 | LONG yyrc;
|
|---|
| 9520 | USHORT sel = RestoreOS2FS();
|
|---|
| 9521 |
|
|---|
| 9522 | yyrc = GpiDrawBits(a, b, c, d, e, f, g);
|
|---|
| 9523 | SetFS(sel);
|
|---|
| 9524 |
|
|---|
| 9525 | return yyrc;
|
|---|
| 9526 | }
|
|---|
| 9527 |
|
|---|
| 9528 | #undef GpiDrawBits
|
|---|
| 9529 | #define GpiDrawBits _GpiDrawBits
|
|---|
| 9530 |
|
|---|
| 9531 | inline LONG _GpiFloodFill(HPS a, LONG b, LONG c)
|
|---|
| 9532 | {
|
|---|
| 9533 | LONG yyrc;
|
|---|
| 9534 | USHORT sel = RestoreOS2FS();
|
|---|
| 9535 |
|
|---|
| 9536 | yyrc = GpiFloodFill(a, b, c);
|
|---|
| 9537 | SetFS(sel);
|
|---|
| 9538 |
|
|---|
| 9539 | return yyrc;
|
|---|
| 9540 | }
|
|---|
| 9541 |
|
|---|
| 9542 | #undef GpiFloodFill
|
|---|
| 9543 | #define GpiFloodFill _GpiFloodFill
|
|---|
| 9544 |
|
|---|
| 9545 | inline LONG _GpiQueryBitmapBits(HPS a, LONG b, LONG c, PBYTE d, PBITMAPINFO2 e)
|
|---|
| 9546 | {
|
|---|
| 9547 | LONG yyrc;
|
|---|
| 9548 | USHORT sel = RestoreOS2FS();
|
|---|
| 9549 |
|
|---|
| 9550 | yyrc = GpiQueryBitmapBits(a, b, c, d, e);
|
|---|
| 9551 | SetFS(sel);
|
|---|
| 9552 |
|
|---|
| 9553 | return yyrc;
|
|---|
| 9554 | }
|
|---|
| 9555 |
|
|---|
| 9556 | #undef GpiQueryBitmapBits
|
|---|
| 9557 | #define GpiQueryBitmapBits _GpiQueryBitmapBits
|
|---|
| 9558 |
|
|---|
| 9559 | inline BOOL _GpiQueryBitmapDimension(HBITMAP a, PSIZEL b)
|
|---|
| 9560 | {
|
|---|
| 9561 | BOOL yyrc;
|
|---|
| 9562 | USHORT sel = RestoreOS2FS();
|
|---|
| 9563 |
|
|---|
| 9564 | yyrc = GpiQueryBitmapDimension(a, b);
|
|---|
| 9565 | SetFS(sel);
|
|---|
| 9566 |
|
|---|
| 9567 | return yyrc;
|
|---|
| 9568 | }
|
|---|
| 9569 |
|
|---|
| 9570 | #undef GpiQueryBitmapDimension
|
|---|
| 9571 | #define GpiQueryBitmapDimension _GpiQueryBitmapDimension
|
|---|
| 9572 |
|
|---|
| 9573 | inline HBITMAP _GpiQueryBitmapHandle(HPS a, LONG b)
|
|---|
| 9574 | {
|
|---|
| 9575 | HBITMAP yyrc;
|
|---|
| 9576 | USHORT sel = RestoreOS2FS();
|
|---|
| 9577 |
|
|---|
| 9578 | yyrc = GpiQueryBitmapHandle(a, b);
|
|---|
| 9579 | SetFS(sel);
|
|---|
| 9580 |
|
|---|
| 9581 | return yyrc;
|
|---|
| 9582 | }
|
|---|
| 9583 |
|
|---|
| 9584 | #undef GpiQueryBitmapHandle
|
|---|
| 9585 | #define GpiQueryBitmapHandle _GpiQueryBitmapHandle
|
|---|
| 9586 |
|
|---|
| 9587 | inline BOOL _GpiQueryBitmapInfoHeader(HBITMAP a, PBITMAPINFOHEADER2 b)
|
|---|
| 9588 | {
|
|---|
| 9589 | BOOL yyrc;
|
|---|
| 9590 | USHORT sel = RestoreOS2FS();
|
|---|
| 9591 |
|
|---|
| 9592 | yyrc = GpiQueryBitmapInfoHeader(a, b);
|
|---|
| 9593 | SetFS(sel);
|
|---|
| 9594 |
|
|---|
| 9595 | return yyrc;
|
|---|
| 9596 | }
|
|---|
| 9597 |
|
|---|
| 9598 | #undef GpiQueryBitmapInfoHeader
|
|---|
| 9599 | #define GpiQueryBitmapInfoHeader _GpiQueryBitmapInfoHeader
|
|---|
| 9600 |
|
|---|
| 9601 | inline BOOL _GpiQueryBitmapParameters(HBITMAP a, PBITMAPINFOHEADER b)
|
|---|
| 9602 | {
|
|---|
| 9603 | BOOL yyrc;
|
|---|
| 9604 | USHORT sel = RestoreOS2FS();
|
|---|
| 9605 |
|
|---|
| 9606 | yyrc = GpiQueryBitmapParameters(a, b);
|
|---|
| 9607 | SetFS(sel);
|
|---|
| 9608 |
|
|---|
| 9609 | return yyrc;
|
|---|
| 9610 | }
|
|---|
| 9611 |
|
|---|
| 9612 | #undef GpiQueryBitmapParameters
|
|---|
| 9613 | #define GpiQueryBitmapParameters _GpiQueryBitmapParameters
|
|---|
| 9614 |
|
|---|
| 9615 | inline BOOL _GpiQueryDeviceBitmapFormats(HPS a, LONG b, PLONG c)
|
|---|
| 9616 | {
|
|---|
| 9617 | BOOL yyrc;
|
|---|
| 9618 | USHORT sel = RestoreOS2FS();
|
|---|
| 9619 |
|
|---|
| 9620 | yyrc = GpiQueryDeviceBitmapFormats(a, b, c);
|
|---|
| 9621 | SetFS(sel);
|
|---|
| 9622 |
|
|---|
| 9623 | return yyrc;
|
|---|
| 9624 | }
|
|---|
| 9625 |
|
|---|
| 9626 | #undef GpiQueryDeviceBitmapFormats
|
|---|
| 9627 | #define GpiQueryDeviceBitmapFormats _GpiQueryDeviceBitmapFormats
|
|---|
| 9628 |
|
|---|
| 9629 | inline LONG _GpiSetBitmapBits(HPS a, LONG b, LONG c, PBYTE d, BITMAPINFO2 *e)
|
|---|
| 9630 | {
|
|---|
| 9631 | LONG yyrc;
|
|---|
| 9632 | USHORT sel = RestoreOS2FS();
|
|---|
| 9633 |
|
|---|
| 9634 | yyrc = GpiSetBitmapBits(a, b, c, d, e);
|
|---|
| 9635 | SetFS(sel);
|
|---|
| 9636 |
|
|---|
| 9637 | return yyrc;
|
|---|
| 9638 | }
|
|---|
| 9639 |
|
|---|
| 9640 | #undef GpiSetBitmapBits
|
|---|
| 9641 | #define GpiSetBitmapBits _GpiSetBitmapBits
|
|---|
| 9642 |
|
|---|
| 9643 | inline LONG _GpiQueryPel(HPS a, PPOINTL b)
|
|---|
| 9644 | {
|
|---|
| 9645 | LONG yyrc;
|
|---|
| 9646 | USHORT sel = RestoreOS2FS();
|
|---|
| 9647 |
|
|---|
| 9648 | yyrc = GpiQueryPel(a, b);
|
|---|
| 9649 | SetFS(sel);
|
|---|
| 9650 |
|
|---|
| 9651 | return yyrc;
|
|---|
| 9652 | }
|
|---|
| 9653 |
|
|---|
| 9654 | #undef GpiQueryPel
|
|---|
| 9655 | #define GpiQueryPel _GpiQueryPel
|
|---|
| 9656 |
|
|---|
| 9657 | inline BOOL _GpiSetBitmapDimension(HBITMAP a, SIZEL *b)
|
|---|
| 9658 | {
|
|---|
| 9659 | BOOL yyrc;
|
|---|
| 9660 | USHORT sel = RestoreOS2FS();
|
|---|
| 9661 |
|
|---|
| 9662 | yyrc = GpiSetBitmapDimension(a, b);
|
|---|
| 9663 | SetFS(sel);
|
|---|
| 9664 |
|
|---|
| 9665 | return yyrc;
|
|---|
| 9666 | }
|
|---|
| 9667 |
|
|---|
| 9668 | #undef GpiSetBitmapDimension
|
|---|
| 9669 | #define GpiSetBitmapDimension _GpiSetBitmapDimension
|
|---|
| 9670 |
|
|---|
| 9671 | inline BOOL _GpiSetBitmapId(HPS a, HBITMAP b, LONG c)
|
|---|
| 9672 | {
|
|---|
| 9673 | BOOL yyrc;
|
|---|
| 9674 | USHORT sel = RestoreOS2FS();
|
|---|
| 9675 |
|
|---|
| 9676 | yyrc = GpiSetBitmapId(a, b, c);
|
|---|
| 9677 | SetFS(sel);
|
|---|
| 9678 |
|
|---|
| 9679 | return yyrc;
|
|---|
| 9680 | }
|
|---|
| 9681 |
|
|---|
| 9682 | #undef GpiSetBitmapId
|
|---|
| 9683 | #define GpiSetBitmapId _GpiSetBitmapId
|
|---|
| 9684 |
|
|---|
| 9685 | inline LONG _GpiSetPel(HPS a, PPOINTL b)
|
|---|
| 9686 | {
|
|---|
| 9687 | LONG yyrc;
|
|---|
| 9688 | USHORT sel = RestoreOS2FS();
|
|---|
| 9689 |
|
|---|
| 9690 | yyrc = GpiSetPel(a, b);
|
|---|
| 9691 | SetFS(sel);
|
|---|
| 9692 |
|
|---|
| 9693 | return yyrc;
|
|---|
| 9694 | }
|
|---|
| 9695 |
|
|---|
| 9696 | #undef GpiSetPel
|
|---|
| 9697 | #define GpiSetPel _GpiSetPel
|
|---|
| 9698 |
|
|---|
| 9699 | #endif
|
|---|
| 9700 | #ifdef INCL_GPICONTROL
|
|---|
| 9701 | inline BOOL _GpiAssociate(HPS a, HDC b)
|
|---|
| 9702 | {
|
|---|
| 9703 | BOOL yyrc;
|
|---|
| 9704 | USHORT sel = RestoreOS2FS();
|
|---|
| 9705 |
|
|---|
| 9706 | yyrc = GpiAssociate(a, b);
|
|---|
| 9707 | SetFS(sel);
|
|---|
| 9708 |
|
|---|
| 9709 | return yyrc;
|
|---|
| 9710 | }
|
|---|
| 9711 |
|
|---|
| 9712 | #undef GpiAssociate
|
|---|
| 9713 | #define GpiAssociate _GpiAssociate
|
|---|
| 9714 |
|
|---|
| 9715 | inline HPS _GpiCreatePS(HAB a, HDC b, PSIZEL c, ULONG d)
|
|---|
| 9716 | {
|
|---|
| 9717 | HPS yyrc;
|
|---|
| 9718 | USHORT sel = RestoreOS2FS();
|
|---|
| 9719 |
|
|---|
| 9720 | yyrc = GpiCreatePS(a, b, c, d);
|
|---|
| 9721 | SetFS(sel);
|
|---|
| 9722 |
|
|---|
| 9723 | return yyrc;
|
|---|
| 9724 | }
|
|---|
| 9725 |
|
|---|
| 9726 | #undef GpiCreatePS
|
|---|
| 9727 | #define GpiCreatePS _GpiCreatePS
|
|---|
| 9728 |
|
|---|
| 9729 | inline BOOL _GpiDestroyPS(HPS a)
|
|---|
| 9730 | {
|
|---|
| 9731 | BOOL yyrc;
|
|---|
| 9732 | USHORT sel = RestoreOS2FS();
|
|---|
| 9733 |
|
|---|
| 9734 | yyrc = GpiDestroyPS(a);
|
|---|
| 9735 | SetFS(sel);
|
|---|
| 9736 |
|
|---|
| 9737 | return yyrc;
|
|---|
| 9738 | }
|
|---|
| 9739 |
|
|---|
| 9740 | #undef GpiDestroyPS
|
|---|
| 9741 | #define GpiDestroyPS _GpiDestroyPS
|
|---|
| 9742 |
|
|---|
| 9743 | inline BOOL _GpiErase(HPS a)
|
|---|
| 9744 | {
|
|---|
| 9745 | BOOL yyrc;
|
|---|
| 9746 | USHORT sel = RestoreOS2FS();
|
|---|
| 9747 |
|
|---|
| 9748 | yyrc = GpiErase(a);
|
|---|
| 9749 | SetFS(sel);
|
|---|
| 9750 |
|
|---|
| 9751 | return yyrc;
|
|---|
| 9752 | }
|
|---|
| 9753 |
|
|---|
| 9754 | #undef GpiErase
|
|---|
| 9755 | #define GpiErase _GpiErase
|
|---|
| 9756 |
|
|---|
| 9757 | inline HDC _GpiQueryDevice(HPS a)
|
|---|
| 9758 | {
|
|---|
| 9759 | HDC yyrc;
|
|---|
| 9760 | USHORT sel = RestoreOS2FS();
|
|---|
| 9761 |
|
|---|
| 9762 | yyrc = GpiQueryDevice(a);
|
|---|
| 9763 | SetFS(sel);
|
|---|
| 9764 |
|
|---|
| 9765 | return yyrc;
|
|---|
| 9766 | }
|
|---|
| 9767 |
|
|---|
| 9768 | #undef GpiQueryDevice
|
|---|
| 9769 | #define GpiQueryDevice _GpiQueryDevice
|
|---|
| 9770 |
|
|---|
| 9771 | inline BOOL _GpiRestorePS(HPS a, LONG b)
|
|---|
| 9772 | {
|
|---|
| 9773 | BOOL yyrc;
|
|---|
| 9774 | USHORT sel = RestoreOS2FS();
|
|---|
| 9775 |
|
|---|
| 9776 | yyrc = GpiRestorePS(a, b);
|
|---|
| 9777 | SetFS(sel);
|
|---|
| 9778 |
|
|---|
| 9779 | return yyrc;
|
|---|
| 9780 | }
|
|---|
| 9781 |
|
|---|
| 9782 | #undef GpiRestorePS
|
|---|
| 9783 | #define GpiRestorePS _GpiRestorePS
|
|---|
| 9784 |
|
|---|
| 9785 | inline LONG _GpiSavePS(HPS a)
|
|---|
| 9786 | {
|
|---|
| 9787 | LONG yyrc;
|
|---|
| 9788 | USHORT sel = RestoreOS2FS();
|
|---|
| 9789 |
|
|---|
| 9790 | yyrc = GpiSavePS(a);
|
|---|
| 9791 | SetFS(sel);
|
|---|
| 9792 |
|
|---|
| 9793 | return yyrc;
|
|---|
| 9794 | }
|
|---|
| 9795 |
|
|---|
| 9796 | #undef GpiSavePS
|
|---|
| 9797 | #define GpiSavePS _GpiSavePS
|
|---|
| 9798 |
|
|---|
| 9799 | inline LONG _GpiErrorSegmentData(HPS a, PLONG b, PLONG c)
|
|---|
| 9800 | {
|
|---|
| 9801 | LONG yyrc;
|
|---|
| 9802 | USHORT sel = RestoreOS2FS();
|
|---|
| 9803 |
|
|---|
| 9804 | yyrc = GpiErrorSegmentData(a, b, c);
|
|---|
| 9805 | SetFS(sel);
|
|---|
| 9806 |
|
|---|
| 9807 | return yyrc;
|
|---|
| 9808 | }
|
|---|
| 9809 |
|
|---|
| 9810 | #undef GpiErrorSegmentData
|
|---|
| 9811 | #define GpiErrorSegmentData _GpiErrorSegmentData
|
|---|
| 9812 |
|
|---|
| 9813 | inline LONG _GpiQueryDrawControl(HPS a, LONG b)
|
|---|
| 9814 | {
|
|---|
| 9815 | LONG yyrc;
|
|---|
| 9816 | USHORT sel = RestoreOS2FS();
|
|---|
| 9817 |
|
|---|
| 9818 | yyrc = GpiQueryDrawControl(a, b);
|
|---|
| 9819 | SetFS(sel);
|
|---|
| 9820 |
|
|---|
| 9821 | return yyrc;
|
|---|
| 9822 | }
|
|---|
| 9823 |
|
|---|
| 9824 | #undef GpiQueryDrawControl
|
|---|
| 9825 | #define GpiQueryDrawControl _GpiQueryDrawControl
|
|---|
| 9826 |
|
|---|
| 9827 | inline LONG _GpiQueryDrawingMode(HPS a)
|
|---|
| 9828 | {
|
|---|
| 9829 | LONG yyrc;
|
|---|
| 9830 | USHORT sel = RestoreOS2FS();
|
|---|
| 9831 |
|
|---|
| 9832 | yyrc = GpiQueryDrawingMode(a);
|
|---|
| 9833 | SetFS(sel);
|
|---|
| 9834 |
|
|---|
| 9835 | return yyrc;
|
|---|
| 9836 | }
|
|---|
| 9837 |
|
|---|
| 9838 | #undef GpiQueryDrawingMode
|
|---|
| 9839 | #define GpiQueryDrawingMode _GpiQueryDrawingMode
|
|---|
| 9840 |
|
|---|
| 9841 | inline ULONG _GpiQueryPS(HPS a, PSIZEL b)
|
|---|
| 9842 | {
|
|---|
| 9843 | ULONG yyrc;
|
|---|
| 9844 | USHORT sel = RestoreOS2FS();
|
|---|
| 9845 |
|
|---|
| 9846 | yyrc = GpiQueryPS(a, b);
|
|---|
| 9847 | SetFS(sel);
|
|---|
| 9848 |
|
|---|
| 9849 | return yyrc;
|
|---|
| 9850 | }
|
|---|
| 9851 |
|
|---|
| 9852 | #undef GpiQueryPS
|
|---|
| 9853 | #define GpiQueryPS _GpiQueryPS
|
|---|
| 9854 |
|
|---|
| 9855 | inline BOOL _GpiResetPS(HPS a, ULONG b)
|
|---|
| 9856 | {
|
|---|
| 9857 | BOOL yyrc;
|
|---|
| 9858 | USHORT sel = RestoreOS2FS();
|
|---|
| 9859 |
|
|---|
| 9860 | yyrc = GpiResetPS(a, b);
|
|---|
| 9861 | SetFS(sel);
|
|---|
| 9862 |
|
|---|
| 9863 | return yyrc;
|
|---|
| 9864 | }
|
|---|
| 9865 |
|
|---|
| 9866 | #undef GpiResetPS
|
|---|
| 9867 | #define GpiResetPS _GpiResetPS
|
|---|
| 9868 |
|
|---|
| 9869 | inline LONG _GpiQueryStopDraw(HPS a)
|
|---|
| 9870 | {
|
|---|
| 9871 | LONG yyrc;
|
|---|
| 9872 | USHORT sel = RestoreOS2FS();
|
|---|
| 9873 |
|
|---|
| 9874 | yyrc = GpiQueryStopDraw(a);
|
|---|
| 9875 | SetFS(sel);
|
|---|
| 9876 |
|
|---|
| 9877 | return yyrc;
|
|---|
| 9878 | }
|
|---|
| 9879 |
|
|---|
| 9880 | #undef GpiQueryStopDraw
|
|---|
| 9881 | #define GpiQueryStopDraw _GpiQueryStopDraw
|
|---|
| 9882 |
|
|---|
| 9883 | inline BOOL _GpiSetDrawControl(HPS a, LONG b, LONG c)
|
|---|
| 9884 | {
|
|---|
| 9885 | BOOL yyrc;
|
|---|
| 9886 | USHORT sel = RestoreOS2FS();
|
|---|
| 9887 |
|
|---|
| 9888 | yyrc = GpiSetDrawControl(a, b, c);
|
|---|
| 9889 | SetFS(sel);
|
|---|
| 9890 |
|
|---|
| 9891 | return yyrc;
|
|---|
| 9892 | }
|
|---|
| 9893 |
|
|---|
| 9894 | #undef GpiSetDrawControl
|
|---|
| 9895 | #define GpiSetDrawControl _GpiSetDrawControl
|
|---|
| 9896 |
|
|---|
| 9897 | inline BOOL _GpiSetDrawingMode(HPS a, LONG b)
|
|---|
| 9898 | {
|
|---|
| 9899 | BOOL yyrc;
|
|---|
| 9900 | USHORT sel = RestoreOS2FS();
|
|---|
| 9901 |
|
|---|
| 9902 | yyrc = GpiSetDrawingMode(a, b);
|
|---|
| 9903 | SetFS(sel);
|
|---|
| 9904 |
|
|---|
| 9905 | return yyrc;
|
|---|
| 9906 | }
|
|---|
| 9907 |
|
|---|
| 9908 | #undef GpiSetDrawingMode
|
|---|
| 9909 | #define GpiSetDrawingMode _GpiSetDrawingMode
|
|---|
| 9910 |
|
|---|
| 9911 | inline BOOL _GpiSetPS(HPS a, SIZEL *b, ULONG c)
|
|---|
| 9912 | {
|
|---|
| 9913 | BOOL yyrc;
|
|---|
| 9914 | USHORT sel = RestoreOS2FS();
|
|---|
| 9915 |
|
|---|
| 9916 | yyrc = GpiSetPS(a, b, c);
|
|---|
| 9917 | SetFS(sel);
|
|---|
| 9918 |
|
|---|
| 9919 | return yyrc;
|
|---|
| 9920 | }
|
|---|
| 9921 |
|
|---|
| 9922 | #undef GpiSetPS
|
|---|
| 9923 | #define GpiSetPS _GpiSetPS
|
|---|
| 9924 |
|
|---|
| 9925 | inline BOOL _GpiSetStopDraw(HPS a, LONG b)
|
|---|
| 9926 | {
|
|---|
| 9927 | BOOL yyrc;
|
|---|
| 9928 | USHORT sel = RestoreOS2FS();
|
|---|
| 9929 |
|
|---|
| 9930 | yyrc = GpiSetStopDraw(a, b);
|
|---|
| 9931 | SetFS(sel);
|
|---|
| 9932 |
|
|---|
| 9933 | return yyrc;
|
|---|
| 9934 | }
|
|---|
| 9935 |
|
|---|
| 9936 | #undef GpiSetStopDraw
|
|---|
| 9937 | #define GpiSetStopDraw _GpiSetStopDraw
|
|---|
| 9938 |
|
|---|
| 9939 | #endif
|
|---|
| 9940 | #ifdef INCL_GPICORRELATION
|
|---|
| 9941 | inline LONG _GpiCorrelateChain(HPS a, LONG b, PPOINTL c, LONG d, LONG e, PLONG f)
|
|---|
| 9942 | {
|
|---|
| 9943 | LONG yyrc;
|
|---|
| 9944 | USHORT sel = RestoreOS2FS();
|
|---|
| 9945 |
|
|---|
| 9946 | yyrc = GpiCorrelateChain(a, b, c, d, e, f);
|
|---|
| 9947 | SetFS(sel);
|
|---|
| 9948 |
|
|---|
| 9949 | return yyrc;
|
|---|
| 9950 | }
|
|---|
| 9951 |
|
|---|
| 9952 | #undef GpiCorrelateChain
|
|---|
| 9953 | #define GpiCorrelateChain _GpiCorrelateChain
|
|---|
| 9954 |
|
|---|
| 9955 | inline LONG _GpiCorrelateFrom(HPS a, LONG b, LONG c, LONG d, PPOINTL e, LONG f, LONG g, PLONG h)
|
|---|
| 9956 | {
|
|---|
| 9957 | LONG yyrc;
|
|---|
| 9958 | USHORT sel = RestoreOS2FS();
|
|---|
| 9959 |
|
|---|
| 9960 | yyrc = GpiCorrelateFrom(a, b, c, d, e, f, g, h);
|
|---|
| 9961 | SetFS(sel);
|
|---|
| 9962 |
|
|---|
| 9963 | return yyrc;
|
|---|
| 9964 | }
|
|---|
| 9965 |
|
|---|
| 9966 | #undef GpiCorrelateFrom
|
|---|
| 9967 | #define GpiCorrelateFrom _GpiCorrelateFrom
|
|---|
| 9968 |
|
|---|
| 9969 | inline LONG _GpiCorrelateSegment(HPS a, LONG b, LONG c, PPOINTL d, LONG e, LONG f, PLONG g)
|
|---|
| 9970 | {
|
|---|
| 9971 | LONG yyrc;
|
|---|
| 9972 | USHORT sel = RestoreOS2FS();
|
|---|
| 9973 |
|
|---|
| 9974 | yyrc = GpiCorrelateSegment(a, b, c, d, e, f, g);
|
|---|
| 9975 | SetFS(sel);
|
|---|
| 9976 |
|
|---|
| 9977 | return yyrc;
|
|---|
| 9978 | }
|
|---|
| 9979 |
|
|---|
| 9980 | #undef GpiCorrelateSegment
|
|---|
| 9981 | #define GpiCorrelateSegment _GpiCorrelateSegment
|
|---|
| 9982 |
|
|---|
| 9983 | inline BOOL _GpiQueryBoundaryData(HPS a, PRECTL b)
|
|---|
| 9984 | {
|
|---|
| 9985 | BOOL yyrc;
|
|---|
| 9986 | USHORT sel = RestoreOS2FS();
|
|---|
| 9987 |
|
|---|
| 9988 | yyrc = GpiQueryBoundaryData(a, b);
|
|---|
| 9989 | SetFS(sel);
|
|---|
| 9990 |
|
|---|
| 9991 | return yyrc;
|
|---|
| 9992 | }
|
|---|
| 9993 |
|
|---|
| 9994 | #undef GpiQueryBoundaryData
|
|---|
| 9995 | #define GpiQueryBoundaryData _GpiQueryBoundaryData
|
|---|
| 9996 |
|
|---|
| 9997 | inline BOOL _GpiQueryPickAperturePosition(HPS a, PPOINTL b)
|
|---|
| 9998 | {
|
|---|
| 9999 | BOOL yyrc;
|
|---|
| 10000 | USHORT sel = RestoreOS2FS();
|
|---|
| 10001 |
|
|---|
| 10002 | yyrc = GpiQueryPickAperturePosition(a, b);
|
|---|
| 10003 | SetFS(sel);
|
|---|
| 10004 |
|
|---|
| 10005 | return yyrc;
|
|---|
| 10006 | }
|
|---|
| 10007 |
|
|---|
| 10008 | #undef GpiQueryPickAperturePosition
|
|---|
| 10009 | #define GpiQueryPickAperturePosition _GpiQueryPickAperturePosition
|
|---|
| 10010 |
|
|---|
| 10011 | inline BOOL _GpiQueryPickApertureSize(HPS a, PSIZEL b)
|
|---|
| 10012 | {
|
|---|
| 10013 | BOOL yyrc;
|
|---|
| 10014 | USHORT sel = RestoreOS2FS();
|
|---|
| 10015 |
|
|---|
| 10016 | yyrc = GpiQueryPickApertureSize(a, b);
|
|---|
| 10017 | SetFS(sel);
|
|---|
| 10018 |
|
|---|
| 10019 | return yyrc;
|
|---|
| 10020 | }
|
|---|
| 10021 |
|
|---|
| 10022 | #undef GpiQueryPickApertureSize
|
|---|
| 10023 | #define GpiQueryPickApertureSize _GpiQueryPickApertureSize
|
|---|
| 10024 |
|
|---|
| 10025 | inline BOOL _GpiQueryTag(HPS a, PLONG b)
|
|---|
| 10026 | {
|
|---|
| 10027 | BOOL yyrc;
|
|---|
| 10028 | USHORT sel = RestoreOS2FS();
|
|---|
| 10029 |
|
|---|
| 10030 | yyrc = GpiQueryTag(a, b);
|
|---|
| 10031 | SetFS(sel);
|
|---|
| 10032 |
|
|---|
| 10033 | return yyrc;
|
|---|
| 10034 | }
|
|---|
| 10035 |
|
|---|
| 10036 | #undef GpiQueryTag
|
|---|
| 10037 | #define GpiQueryTag _GpiQueryTag
|
|---|
| 10038 |
|
|---|
| 10039 | inline BOOL _GpiResetBoundaryData(HPS a)
|
|---|
| 10040 | {
|
|---|
| 10041 | BOOL yyrc;
|
|---|
| 10042 | USHORT sel = RestoreOS2FS();
|
|---|
| 10043 |
|
|---|
| 10044 | yyrc = GpiResetBoundaryData(a);
|
|---|
| 10045 | SetFS(sel);
|
|---|
| 10046 |
|
|---|
| 10047 | return yyrc;
|
|---|
| 10048 | }
|
|---|
| 10049 |
|
|---|
| 10050 | #undef GpiResetBoundaryData
|
|---|
| 10051 | #define GpiResetBoundaryData _GpiResetBoundaryData
|
|---|
| 10052 |
|
|---|
| 10053 | inline BOOL _GpiSetPickAperturePosition(HPS a, PPOINTL b)
|
|---|
| 10054 | {
|
|---|
| 10055 | BOOL yyrc;
|
|---|
| 10056 | USHORT sel = RestoreOS2FS();
|
|---|
| 10057 |
|
|---|
| 10058 | yyrc = GpiSetPickAperturePosition(a, b);
|
|---|
| 10059 | SetFS(sel);
|
|---|
| 10060 |
|
|---|
| 10061 | return yyrc;
|
|---|
| 10062 | }
|
|---|
| 10063 |
|
|---|
| 10064 | #undef GpiSetPickAperturePosition
|
|---|
| 10065 | #define GpiSetPickAperturePosition _GpiSetPickAperturePosition
|
|---|
| 10066 |
|
|---|
| 10067 | inline BOOL _GpiSetPickApertureSize(HPS a, LONG b, SIZEL *c)
|
|---|
| 10068 | {
|
|---|
| 10069 | BOOL yyrc;
|
|---|
| 10070 | USHORT sel = RestoreOS2FS();
|
|---|
| 10071 |
|
|---|
| 10072 | yyrc = GpiSetPickApertureSize(a, b, c);
|
|---|
| 10073 | SetFS(sel);
|
|---|
| 10074 |
|
|---|
| 10075 | return yyrc;
|
|---|
| 10076 | }
|
|---|
| 10077 |
|
|---|
| 10078 | #undef GpiSetPickApertureSize
|
|---|
| 10079 | #define GpiSetPickApertureSize _GpiSetPickApertureSize
|
|---|
| 10080 |
|
|---|
| 10081 | inline BOOL _GpiSetTag(HPS a, LONG b)
|
|---|
| 10082 | {
|
|---|
| 10083 | BOOL yyrc;
|
|---|
| 10084 | USHORT sel = RestoreOS2FS();
|
|---|
| 10085 |
|
|---|
| 10086 | yyrc = GpiSetTag(a, b);
|
|---|
| 10087 | SetFS(sel);
|
|---|
| 10088 |
|
|---|
| 10089 | return yyrc;
|
|---|
| 10090 | }
|
|---|
| 10091 |
|
|---|
| 10092 | #undef GpiSetTag
|
|---|
| 10093 | #define GpiSetTag _GpiSetTag
|
|---|
| 10094 |
|
|---|
| 10095 | #endif
|
|---|
| 10096 | #ifdef INCL_GPIINK
|
|---|
| 10097 | inline BOOL _GpiBeginInkPath(HPS a, LONG b, ULONG c)
|
|---|
| 10098 | {
|
|---|
| 10099 | BOOL yyrc;
|
|---|
| 10100 | USHORT sel = RestoreOS2FS();
|
|---|
| 10101 |
|
|---|
| 10102 | yyrc = GpiBeginInkPath(a, b, c);
|
|---|
| 10103 | SetFS(sel);
|
|---|
| 10104 |
|
|---|
| 10105 | return yyrc;
|
|---|
| 10106 | }
|
|---|
| 10107 |
|
|---|
| 10108 | #undef GpiBeginInkPath
|
|---|
| 10109 | #define GpiBeginInkPath _GpiBeginInkPath
|
|---|
| 10110 |
|
|---|
| 10111 | inline BOOL _GpiEndInkPath(HPS a, ULONG b)
|
|---|
| 10112 | {
|
|---|
| 10113 | BOOL yyrc;
|
|---|
| 10114 | USHORT sel = RestoreOS2FS();
|
|---|
| 10115 |
|
|---|
| 10116 | yyrc = GpiEndInkPath(a, b);
|
|---|
| 10117 | SetFS(sel);
|
|---|
| 10118 |
|
|---|
| 10119 | return yyrc;
|
|---|
| 10120 | }
|
|---|
| 10121 |
|
|---|
| 10122 | #undef GpiEndInkPath
|
|---|
| 10123 | #define GpiEndInkPath _GpiEndInkPath
|
|---|
| 10124 |
|
|---|
| 10125 | inline LONG _GpiStrokeInkPath(HPS a, LONG b, LONG c, PPOINTL d, ULONG e)
|
|---|
| 10126 | {
|
|---|
| 10127 | LONG yyrc;
|
|---|
| 10128 | USHORT sel = RestoreOS2FS();
|
|---|
| 10129 |
|
|---|
| 10130 | yyrc = GpiStrokeInkPath(a, b, c, d, e);
|
|---|
| 10131 | SetFS(sel);
|
|---|
| 10132 |
|
|---|
| 10133 | return yyrc;
|
|---|
| 10134 | }
|
|---|
| 10135 |
|
|---|
| 10136 | #undef GpiStrokeInkPath
|
|---|
| 10137 | #define GpiStrokeInkPath _GpiStrokeInkPath
|
|---|
| 10138 |
|
|---|
| 10139 | #endif
|
|---|
| 10140 | #ifdef INCL_GPISEGMENTS
|
|---|
| 10141 | inline BOOL _GpiCloseSegment(HPS a)
|
|---|
| 10142 | {
|
|---|
| 10143 | BOOL yyrc;
|
|---|
| 10144 | USHORT sel = RestoreOS2FS();
|
|---|
| 10145 |
|
|---|
| 10146 | yyrc = GpiCloseSegment(a);
|
|---|
| 10147 | SetFS(sel);
|
|---|
| 10148 |
|
|---|
| 10149 | return yyrc;
|
|---|
| 10150 | }
|
|---|
| 10151 |
|
|---|
| 10152 | #undef GpiCloseSegment
|
|---|
| 10153 | #define GpiCloseSegment _GpiCloseSegment
|
|---|
| 10154 |
|
|---|
| 10155 | inline BOOL _GpiDeleteSegment(HPS a, LONG b)
|
|---|
| 10156 | {
|
|---|
| 10157 | BOOL yyrc;
|
|---|
| 10158 | USHORT sel = RestoreOS2FS();
|
|---|
| 10159 |
|
|---|
| 10160 | yyrc = GpiDeleteSegment(a, b);
|
|---|
| 10161 | SetFS(sel);
|
|---|
| 10162 |
|
|---|
| 10163 | return yyrc;
|
|---|
| 10164 | }
|
|---|
| 10165 |
|
|---|
| 10166 | #undef GpiDeleteSegment
|
|---|
| 10167 | #define GpiDeleteSegment _GpiDeleteSegment
|
|---|
| 10168 |
|
|---|
| 10169 | inline BOOL _GpiDeleteSegments(HPS a, LONG b, LONG c)
|
|---|
| 10170 | {
|
|---|
| 10171 | BOOL yyrc;
|
|---|
| 10172 | USHORT sel = RestoreOS2FS();
|
|---|
| 10173 |
|
|---|
| 10174 | yyrc = GpiDeleteSegments(a, b, c);
|
|---|
| 10175 | SetFS(sel);
|
|---|
| 10176 |
|
|---|
| 10177 | return yyrc;
|
|---|
| 10178 | }
|
|---|
| 10179 |
|
|---|
| 10180 | #undef GpiDeleteSegments
|
|---|
| 10181 | #define GpiDeleteSegments _GpiDeleteSegments
|
|---|
| 10182 |
|
|---|
| 10183 | inline BOOL _GpiDrawChain(HPS a)
|
|---|
| 10184 | {
|
|---|
| 10185 | BOOL yyrc;
|
|---|
| 10186 | USHORT sel = RestoreOS2FS();
|
|---|
| 10187 |
|
|---|
| 10188 | yyrc = GpiDrawChain(a);
|
|---|
| 10189 | SetFS(sel);
|
|---|
| 10190 |
|
|---|
| 10191 | return yyrc;
|
|---|
| 10192 | }
|
|---|
| 10193 |
|
|---|
| 10194 | #undef GpiDrawChain
|
|---|
| 10195 | #define GpiDrawChain _GpiDrawChain
|
|---|
| 10196 |
|
|---|
| 10197 | inline BOOL _GpiDrawDynamics(HPS a)
|
|---|
| 10198 | {
|
|---|
| 10199 | BOOL yyrc;
|
|---|
| 10200 | USHORT sel = RestoreOS2FS();
|
|---|
| 10201 |
|
|---|
| 10202 | yyrc = GpiDrawDynamics(a);
|
|---|
| 10203 | SetFS(sel);
|
|---|
| 10204 |
|
|---|
| 10205 | return yyrc;
|
|---|
| 10206 | }
|
|---|
| 10207 |
|
|---|
| 10208 | #undef GpiDrawDynamics
|
|---|
| 10209 | #define GpiDrawDynamics _GpiDrawDynamics
|
|---|
| 10210 |
|
|---|
| 10211 | inline BOOL _GpiDrawFrom(HPS a, LONG b, LONG c)
|
|---|
| 10212 | {
|
|---|
| 10213 | BOOL yyrc;
|
|---|
| 10214 | USHORT sel = RestoreOS2FS();
|
|---|
| 10215 |
|
|---|
| 10216 | yyrc = GpiDrawFrom(a, b, c);
|
|---|
| 10217 | SetFS(sel);
|
|---|
| 10218 |
|
|---|
| 10219 | return yyrc;
|
|---|
| 10220 | }
|
|---|
| 10221 |
|
|---|
| 10222 | #undef GpiDrawFrom
|
|---|
| 10223 | #define GpiDrawFrom _GpiDrawFrom
|
|---|
| 10224 |
|
|---|
| 10225 | inline BOOL _GpiDrawSegment(HPS a, LONG b)
|
|---|
| 10226 | {
|
|---|
| 10227 | BOOL yyrc;
|
|---|
| 10228 | USHORT sel = RestoreOS2FS();
|
|---|
| 10229 |
|
|---|
| 10230 | yyrc = GpiDrawSegment(a, b);
|
|---|
| 10231 | SetFS(sel);
|
|---|
| 10232 |
|
|---|
| 10233 | return yyrc;
|
|---|
| 10234 | }
|
|---|
| 10235 |
|
|---|
| 10236 | #undef GpiDrawSegment
|
|---|
| 10237 | #define GpiDrawSegment _GpiDrawSegment
|
|---|
| 10238 |
|
|---|
| 10239 | inline LONG _GpiGetData(HPS a, LONG b, PLONG c, LONG d, LONG e, PBYTE f)
|
|---|
| 10240 | {
|
|---|
| 10241 | LONG yyrc;
|
|---|
| 10242 | USHORT sel = RestoreOS2FS();
|
|---|
| 10243 |
|
|---|
| 10244 | yyrc = GpiGetData(a, b, c, d, e, f);
|
|---|
| 10245 | SetFS(sel);
|
|---|
| 10246 |
|
|---|
| 10247 | return yyrc;
|
|---|
| 10248 | }
|
|---|
| 10249 |
|
|---|
| 10250 | #undef GpiGetData
|
|---|
| 10251 | #define GpiGetData _GpiGetData
|
|---|
| 10252 |
|
|---|
| 10253 | inline BOOL _GpiOpenSegment(HPS a, LONG b)
|
|---|
| 10254 | {
|
|---|
| 10255 | BOOL yyrc;
|
|---|
| 10256 | USHORT sel = RestoreOS2FS();
|
|---|
| 10257 |
|
|---|
| 10258 | yyrc = GpiOpenSegment(a, b);
|
|---|
| 10259 | SetFS(sel);
|
|---|
| 10260 |
|
|---|
| 10261 | return yyrc;
|
|---|
| 10262 | }
|
|---|
| 10263 |
|
|---|
| 10264 | #undef GpiOpenSegment
|
|---|
| 10265 | #define GpiOpenSegment _GpiOpenSegment
|
|---|
| 10266 |
|
|---|
| 10267 | inline LONG _GpiPutData(HPS a, LONG b, PLONG c, PBYTE d)
|
|---|
| 10268 | {
|
|---|
| 10269 | LONG yyrc;
|
|---|
| 10270 | USHORT sel = RestoreOS2FS();
|
|---|
| 10271 |
|
|---|
| 10272 | yyrc = GpiPutData(a, b, c, d);
|
|---|
| 10273 | SetFS(sel);
|
|---|
| 10274 |
|
|---|
| 10275 | return yyrc;
|
|---|
| 10276 | }
|
|---|
| 10277 |
|
|---|
| 10278 | #undef GpiPutData
|
|---|
| 10279 | #define GpiPutData _GpiPutData
|
|---|
| 10280 |
|
|---|
| 10281 | inline LONG _GpiQueryInitialSegmentAttrs(HPS a, LONG b)
|
|---|
| 10282 | {
|
|---|
| 10283 | LONG yyrc;
|
|---|
| 10284 | USHORT sel = RestoreOS2FS();
|
|---|
| 10285 |
|
|---|
| 10286 | yyrc = GpiQueryInitialSegmentAttrs(a, b);
|
|---|
| 10287 | SetFS(sel);
|
|---|
| 10288 |
|
|---|
| 10289 | return yyrc;
|
|---|
| 10290 | }
|
|---|
| 10291 |
|
|---|
| 10292 | #undef GpiQueryInitialSegmentAttrs
|
|---|
| 10293 | #define GpiQueryInitialSegmentAttrs _GpiQueryInitialSegmentAttrs
|
|---|
| 10294 |
|
|---|
| 10295 | inline LONG _GpiQuerySegmentAttrs(HPS a, LONG b, LONG c)
|
|---|
| 10296 | {
|
|---|
| 10297 | LONG yyrc;
|
|---|
| 10298 | USHORT sel = RestoreOS2FS();
|
|---|
| 10299 |
|
|---|
| 10300 | yyrc = GpiQuerySegmentAttrs(a, b, c);
|
|---|
| 10301 | SetFS(sel);
|
|---|
| 10302 |
|
|---|
| 10303 | return yyrc;
|
|---|
| 10304 | }
|
|---|
| 10305 |
|
|---|
| 10306 | #undef GpiQuerySegmentAttrs
|
|---|
| 10307 | #define GpiQuerySegmentAttrs _GpiQuerySegmentAttrs
|
|---|
| 10308 |
|
|---|
| 10309 | inline LONG _GpiQuerySegmentNames(HPS a, LONG b, LONG c, LONG d, PLONG e)
|
|---|
| 10310 | {
|
|---|
| 10311 | LONG yyrc;
|
|---|
| 10312 | USHORT sel = RestoreOS2FS();
|
|---|
| 10313 |
|
|---|
| 10314 | yyrc = GpiQuerySegmentNames(a, b, c, d, e);
|
|---|
| 10315 | SetFS(sel);
|
|---|
| 10316 |
|
|---|
| 10317 | return yyrc;
|
|---|
| 10318 | }
|
|---|
| 10319 |
|
|---|
| 10320 | #undef GpiQuerySegmentNames
|
|---|
| 10321 | #define GpiQuerySegmentNames _GpiQuerySegmentNames
|
|---|
| 10322 |
|
|---|
| 10323 | inline LONG _GpiQuerySegmentPriority(HPS a, LONG b, LONG c)
|
|---|
| 10324 | {
|
|---|
| 10325 | LONG yyrc;
|
|---|
| 10326 | USHORT sel = RestoreOS2FS();
|
|---|
| 10327 |
|
|---|
| 10328 | yyrc = GpiQuerySegmentPriority(a, b, c);
|
|---|
| 10329 | SetFS(sel);
|
|---|
| 10330 |
|
|---|
| 10331 | return yyrc;
|
|---|
| 10332 | }
|
|---|
| 10333 |
|
|---|
| 10334 | #undef GpiQuerySegmentPriority
|
|---|
| 10335 | #define GpiQuerySegmentPriority _GpiQuerySegmentPriority
|
|---|
| 10336 |
|
|---|
| 10337 | inline BOOL _GpiRemoveDynamics(HPS a, LONG b, LONG c)
|
|---|
| 10338 | {
|
|---|
| 10339 | BOOL yyrc;
|
|---|
| 10340 | USHORT sel = RestoreOS2FS();
|
|---|
| 10341 |
|
|---|
| 10342 | yyrc = GpiRemoveDynamics(a, b, c);
|
|---|
| 10343 | SetFS(sel);
|
|---|
| 10344 |
|
|---|
| 10345 | return yyrc;
|
|---|
| 10346 | }
|
|---|
| 10347 |
|
|---|
| 10348 | #undef GpiRemoveDynamics
|
|---|
| 10349 | #define GpiRemoveDynamics _GpiRemoveDynamics
|
|---|
| 10350 |
|
|---|
| 10351 | inline BOOL _GpiSetInitialSegmentAttrs(HPS a, LONG b, LONG c)
|
|---|
| 10352 | {
|
|---|
| 10353 | BOOL yyrc;
|
|---|
| 10354 | USHORT sel = RestoreOS2FS();
|
|---|
| 10355 |
|
|---|
| 10356 | yyrc = GpiSetInitialSegmentAttrs(a, b, c);
|
|---|
| 10357 | SetFS(sel);
|
|---|
| 10358 |
|
|---|
| 10359 | return yyrc;
|
|---|
| 10360 | }
|
|---|
| 10361 |
|
|---|
| 10362 | #undef GpiSetInitialSegmentAttrs
|
|---|
| 10363 | #define GpiSetInitialSegmentAttrs _GpiSetInitialSegmentAttrs
|
|---|
| 10364 |
|
|---|
| 10365 | inline BOOL _GpiSetSegmentAttrs(HPS a, LONG b, LONG c, LONG d)
|
|---|
| 10366 | {
|
|---|
| 10367 | BOOL yyrc;
|
|---|
| 10368 | USHORT sel = RestoreOS2FS();
|
|---|
| 10369 |
|
|---|
| 10370 | yyrc = GpiSetSegmentAttrs(a, b, c, d);
|
|---|
| 10371 | SetFS(sel);
|
|---|
| 10372 |
|
|---|
| 10373 | return yyrc;
|
|---|
| 10374 | }
|
|---|
| 10375 |
|
|---|
| 10376 | #undef GpiSetSegmentAttrs
|
|---|
| 10377 | #define GpiSetSegmentAttrs _GpiSetSegmentAttrs
|
|---|
| 10378 |
|
|---|
| 10379 | inline BOOL _GpiSetSegmentPriority(HPS a, LONG b, LONG c, LONG d)
|
|---|
| 10380 | {
|
|---|
| 10381 | BOOL yyrc;
|
|---|
| 10382 | USHORT sel = RestoreOS2FS();
|
|---|
| 10383 |
|
|---|
| 10384 | yyrc = GpiSetSegmentPriority(a, b, c, d);
|
|---|
| 10385 | SetFS(sel);
|
|---|
| 10386 |
|
|---|
| 10387 | return yyrc;
|
|---|
| 10388 | }
|
|---|
| 10389 |
|
|---|
| 10390 | #undef GpiSetSegmentPriority
|
|---|
| 10391 | #define GpiSetSegmentPriority _GpiSetSegmentPriority
|
|---|
| 10392 |
|
|---|
| 10393 | #endif
|
|---|
| 10394 | #ifdef INCL_DEV
|
|---|
| 10395 | inline LONG _DevEscape(HDC a, LONG b, LONG c, PBYTE d, PLONG e, PBYTE f)
|
|---|
| 10396 | {
|
|---|
| 10397 | LONG yyrc;
|
|---|
| 10398 | USHORT sel = RestoreOS2FS();
|
|---|
| 10399 |
|
|---|
| 10400 | yyrc = DevEscape(a, b, c, d, e, f);
|
|---|
| 10401 | SetFS(sel);
|
|---|
| 10402 |
|
|---|
| 10403 | return yyrc;
|
|---|
| 10404 | }
|
|---|
| 10405 |
|
|---|
| 10406 | #undef DevEscape
|
|---|
| 10407 | #define DevEscape _DevEscape
|
|---|
| 10408 |
|
|---|
| 10409 | inline LONG _DevPostEscape(PCSZ a, PCSZ b, PCSZ c, PCSZ d, ULONG e, ULONG f, PBYTE g, ULONG h, PBYTE i)
|
|---|
| 10410 | {
|
|---|
| 10411 | LONG yyrc;
|
|---|
| 10412 | USHORT sel = RestoreOS2FS();
|
|---|
| 10413 |
|
|---|
| 10414 | yyrc = DevPostEscape(a, b, c, d, e, f, g, h, i);
|
|---|
| 10415 | SetFS(sel);
|
|---|
| 10416 |
|
|---|
| 10417 | return yyrc;
|
|---|
| 10418 | }
|
|---|
| 10419 |
|
|---|
| 10420 | #undef DevPostEscape
|
|---|
| 10421 | #define DevPostEscape _DevPostEscape
|
|---|
| 10422 |
|
|---|
| 10423 | inline LONG _DevPostDeviceModes(HAB a, PDRIVDATA b, PCSZ c, PCSZ d, PCSZ e, ULONG f)
|
|---|
| 10424 | {
|
|---|
| 10425 | LONG yyrc;
|
|---|
| 10426 | USHORT sel = RestoreOS2FS();
|
|---|
| 10427 |
|
|---|
| 10428 | yyrc = DevPostDeviceModes(a, b, c, d, e, f);
|
|---|
| 10429 | SetFS(sel);
|
|---|
| 10430 |
|
|---|
| 10431 | return yyrc;
|
|---|
| 10432 | }
|
|---|
| 10433 |
|
|---|
| 10434 | #undef DevPostDeviceModes
|
|---|
| 10435 | #define DevPostDeviceModes _DevPostDeviceModes
|
|---|
| 10436 |
|
|---|
| 10437 | inline BOOL _DevQueryDeviceNames(HAB a, PCSZ b, PLONG c, PSTR32 d, PSTR64 e, PLONG f, PSTR16 g)
|
|---|
| 10438 | {
|
|---|
| 10439 | BOOL yyrc;
|
|---|
| 10440 | USHORT sel = RestoreOS2FS();
|
|---|
| 10441 |
|
|---|
| 10442 | yyrc = DevQueryDeviceNames(a, b, c, d, e, f, g);
|
|---|
| 10443 | SetFS(sel);
|
|---|
| 10444 |
|
|---|
| 10445 | return yyrc;
|
|---|
| 10446 | }
|
|---|
| 10447 |
|
|---|
| 10448 | #undef DevQueryDeviceNames
|
|---|
| 10449 | #define DevQueryDeviceNames _DevQueryDeviceNames
|
|---|
| 10450 |
|
|---|
| 10451 | inline LONG _DevQueryHardcopyCaps(HDC a, LONG b, LONG c, PHCINFO d)
|
|---|
| 10452 | {
|
|---|
| 10453 | LONG yyrc;
|
|---|
| 10454 | USHORT sel = RestoreOS2FS();
|
|---|
| 10455 |
|
|---|
| 10456 | yyrc = DevQueryHardcopyCaps(a, b, c, d);
|
|---|
| 10457 | SetFS(sel);
|
|---|
| 10458 |
|
|---|
| 10459 | return yyrc;
|
|---|
| 10460 | }
|
|---|
| 10461 |
|
|---|
| 10462 | #undef DevQueryHardcopyCaps
|
|---|
| 10463 | #define DevQueryHardcopyCaps _DevQueryHardcopyCaps
|
|---|
| 10464 |
|
|---|
| 10465 | #endif
|
|---|
| 10466 | inline HMF _DevCloseDC(HDC a)
|
|---|
| 10467 | {
|
|---|
| 10468 | HMF yyrc;
|
|---|
| 10469 | USHORT sel = RestoreOS2FS();
|
|---|
| 10470 |
|
|---|
| 10471 | yyrc = DevCloseDC(a);
|
|---|
| 10472 | SetFS(sel);
|
|---|
| 10473 |
|
|---|
| 10474 | return yyrc;
|
|---|
| 10475 | }
|
|---|
| 10476 |
|
|---|
| 10477 | #undef DevCloseDC
|
|---|
| 10478 | #define DevCloseDC _DevCloseDC
|
|---|
| 10479 |
|
|---|
| 10480 | inline HDC _DevOpenDC(HAB a, LONG b, PCSZ c, LONG d, PDEVOPENDATA e, HDC f)
|
|---|
| 10481 | {
|
|---|
| 10482 | HDC yyrc;
|
|---|
| 10483 | USHORT sel = RestoreOS2FS();
|
|---|
| 10484 |
|
|---|
| 10485 | yyrc = DevOpenDC(a, b, c, d, e, f);
|
|---|
| 10486 | SetFS(sel);
|
|---|
| 10487 |
|
|---|
| 10488 | return yyrc;
|
|---|
| 10489 | }
|
|---|
| 10490 |
|
|---|
| 10491 | #undef DevOpenDC
|
|---|
| 10492 | #define DevOpenDC _DevOpenDC
|
|---|
| 10493 |
|
|---|
| 10494 | inline BOOL _DevQueryCaps(HDC a, LONG b, LONG c, PLONG d)
|
|---|
| 10495 | {
|
|---|
| 10496 | BOOL yyrc;
|
|---|
| 10497 | USHORT sel = RestoreOS2FS();
|
|---|
| 10498 |
|
|---|
| 10499 | yyrc = DevQueryCaps(a, b, c, d);
|
|---|
| 10500 | SetFS(sel);
|
|---|
| 10501 |
|
|---|
| 10502 | return yyrc;
|
|---|
| 10503 | }
|
|---|
| 10504 |
|
|---|
| 10505 | #undef DevQueryCaps
|
|---|
| 10506 | #define DevQueryCaps _DevQueryCaps
|
|---|
| 10507 |
|
|---|
| 10508 | #endif
|
|---|
| 10509 | #ifdef INCL_WINPROGRAMLIST
|
|---|
| 10510 | inline HPROGRAM _PrfAddProgram(HINI a, PPROGDETAILS b, HPROGRAM c)
|
|---|
| 10511 | {
|
|---|
| 10512 | HPROGRAM yyrc;
|
|---|
| 10513 | USHORT sel = RestoreOS2FS();
|
|---|
| 10514 |
|
|---|
| 10515 | yyrc = PrfAddProgram(a, b, c);
|
|---|
| 10516 | SetFS(sel);
|
|---|
| 10517 |
|
|---|
| 10518 | return yyrc;
|
|---|
| 10519 | }
|
|---|
| 10520 |
|
|---|
| 10521 | #undef PrfAddProgram
|
|---|
| 10522 | #define PrfAddProgram _PrfAddProgram
|
|---|
| 10523 |
|
|---|
| 10524 | inline BOOL _PrfChangeProgram(HINI a, HPROGRAM b, PPROGDETAILS c)
|
|---|
| 10525 | {
|
|---|
| 10526 | BOOL yyrc;
|
|---|
| 10527 | USHORT sel = RestoreOS2FS();
|
|---|
| 10528 |
|
|---|
| 10529 | yyrc = PrfChangeProgram(a, b, c);
|
|---|
| 10530 | SetFS(sel);
|
|---|
| 10531 |
|
|---|
| 10532 | return yyrc;
|
|---|
| 10533 | }
|
|---|
| 10534 |
|
|---|
| 10535 | #undef PrfChangeProgram
|
|---|
| 10536 | #define PrfChangeProgram _PrfChangeProgram
|
|---|
| 10537 |
|
|---|
| 10538 | inline HPROGRAM _PrfCreateGroup(HINI a, PCSZ b, UCHAR c)
|
|---|
| 10539 | {
|
|---|
| 10540 | HPROGRAM yyrc;
|
|---|
| 10541 | USHORT sel = RestoreOS2FS();
|
|---|
| 10542 |
|
|---|
| 10543 | yyrc = PrfCreateGroup(a, b, c);
|
|---|
| 10544 | SetFS(sel);
|
|---|
| 10545 |
|
|---|
| 10546 | return yyrc;
|
|---|
| 10547 | }
|
|---|
| 10548 |
|
|---|
| 10549 | #undef PrfCreateGroup
|
|---|
| 10550 | #define PrfCreateGroup _PrfCreateGroup
|
|---|
| 10551 |
|
|---|
| 10552 | inline BOOL _PrfDestroyGroup(HINI a, HPROGRAM b)
|
|---|
| 10553 | {
|
|---|
| 10554 | BOOL yyrc;
|
|---|
| 10555 | USHORT sel = RestoreOS2FS();
|
|---|
| 10556 |
|
|---|
| 10557 | yyrc = PrfDestroyGroup(a, b);
|
|---|
| 10558 | SetFS(sel);
|
|---|
| 10559 |
|
|---|
| 10560 | return yyrc;
|
|---|
| 10561 | }
|
|---|
| 10562 |
|
|---|
| 10563 | #undef PrfDestroyGroup
|
|---|
| 10564 | #define PrfDestroyGroup _PrfDestroyGroup
|
|---|
| 10565 |
|
|---|
| 10566 | inline PROGCATEGORY _PrfQueryProgramCategory(HINI a, PCSZ b)
|
|---|
| 10567 | {
|
|---|
| 10568 | PROGCATEGORY yyrc;
|
|---|
| 10569 | USHORT sel = RestoreOS2FS();
|
|---|
| 10570 |
|
|---|
| 10571 | yyrc = PrfQueryProgramCategory(a, b);
|
|---|
| 10572 | SetFS(sel);
|
|---|
| 10573 |
|
|---|
| 10574 | return yyrc;
|
|---|
| 10575 | }
|
|---|
| 10576 |
|
|---|
| 10577 | #undef PrfQueryProgramCategory
|
|---|
| 10578 | #define PrfQueryProgramCategory _PrfQueryProgramCategory
|
|---|
| 10579 |
|
|---|
| 10580 | inline ULONG _PrfQueryProgramHandle(HINI a, PCSZ b, PHPROGARRAY c, ULONG d, PULONG e)
|
|---|
| 10581 | {
|
|---|
| 10582 | ULONG yyrc;
|
|---|
| 10583 | USHORT sel = RestoreOS2FS();
|
|---|
| 10584 |
|
|---|
| 10585 | yyrc = PrfQueryProgramHandle(a, b, c, d, e);
|
|---|
| 10586 | SetFS(sel);
|
|---|
| 10587 |
|
|---|
| 10588 | return yyrc;
|
|---|
| 10589 | }
|
|---|
| 10590 |
|
|---|
| 10591 | #undef PrfQueryProgramHandle
|
|---|
| 10592 | #define PrfQueryProgramHandle _PrfQueryProgramHandle
|
|---|
| 10593 |
|
|---|
| 10594 | inline ULONG _PrfQueryProgramTitles(HINI a, HPROGRAM b, PPROGTITLE c, ULONG d, PULONG e)
|
|---|
| 10595 | {
|
|---|
| 10596 | ULONG yyrc;
|
|---|
| 10597 | USHORT sel = RestoreOS2FS();
|
|---|
| 10598 |
|
|---|
| 10599 | yyrc = PrfQueryProgramTitles(a, b, c, d, e);
|
|---|
| 10600 | SetFS(sel);
|
|---|
| 10601 |
|
|---|
| 10602 | return yyrc;
|
|---|
| 10603 | }
|
|---|
| 10604 |
|
|---|
| 10605 | #undef PrfQueryProgramTitles
|
|---|
| 10606 | #define PrfQueryProgramTitles _PrfQueryProgramTitles
|
|---|
| 10607 |
|
|---|
| 10608 | inline ULONG _PrfQueryDefinition(HINI a, HPROGRAM b, PPROGDETAILS c, ULONG d)
|
|---|
| 10609 | {
|
|---|
| 10610 | ULONG yyrc;
|
|---|
| 10611 | USHORT sel = RestoreOS2FS();
|
|---|
| 10612 |
|
|---|
| 10613 | yyrc = PrfQueryDefinition(a, b, c, d);
|
|---|
| 10614 | SetFS(sel);
|
|---|
| 10615 |
|
|---|
| 10616 | return yyrc;
|
|---|
| 10617 | }
|
|---|
| 10618 |
|
|---|
| 10619 | #undef PrfQueryDefinition
|
|---|
| 10620 | #define PrfQueryDefinition _PrfQueryDefinition
|
|---|
| 10621 |
|
|---|
| 10622 | inline BOOL _PrfRemoveProgram(HINI a, HPROGRAM b)
|
|---|
| 10623 | {
|
|---|
| 10624 | BOOL yyrc;
|
|---|
| 10625 | USHORT sel = RestoreOS2FS();
|
|---|
| 10626 |
|
|---|
| 10627 | yyrc = PrfRemoveProgram(a, b);
|
|---|
| 10628 | SetFS(sel);
|
|---|
| 10629 |
|
|---|
| 10630 | return yyrc;
|
|---|
| 10631 | }
|
|---|
| 10632 |
|
|---|
| 10633 | #undef PrfRemoveProgram
|
|---|
| 10634 | #define PrfRemoveProgram _PrfRemoveProgram
|
|---|
| 10635 |
|
|---|
| 10636 | inline HAPP _WinStartApp(HWND a, PPROGDETAILS b, PCSZ c, PVOID d, ULONG e)
|
|---|
| 10637 | {
|
|---|
| 10638 | HAPP yyrc;
|
|---|
| 10639 | USHORT sel = RestoreOS2FS();
|
|---|
| 10640 |
|
|---|
| 10641 | yyrc = WinStartApp(a, b, c, d, e);
|
|---|
| 10642 | SetFS(sel);
|
|---|
| 10643 |
|
|---|
| 10644 | return yyrc;
|
|---|
| 10645 | }
|
|---|
| 10646 |
|
|---|
| 10647 | #undef WinStartApp
|
|---|
| 10648 | #define WinStartApp _WinStartApp
|
|---|
| 10649 |
|
|---|
| 10650 | inline BOOL _WinTerminateApp(HAPP a)
|
|---|
| 10651 | {
|
|---|
| 10652 | BOOL yyrc;
|
|---|
| 10653 | USHORT sel = RestoreOS2FS();
|
|---|
| 10654 |
|
|---|
| 10655 | yyrc = WinTerminateApp(a);
|
|---|
| 10656 | SetFS(sel);
|
|---|
| 10657 |
|
|---|
| 10658 | return yyrc;
|
|---|
| 10659 | }
|
|---|
| 10660 |
|
|---|
| 10661 | #undef WinTerminateApp
|
|---|
| 10662 | #define WinTerminateApp _WinTerminateApp
|
|---|
| 10663 |
|
|---|
| 10664 | #endif
|
|---|
| 10665 | #ifdef INCL_WINSWITCHLIST
|
|---|
| 10666 | inline HSWITCH _WinAddSwitchEntry(PSWCNTRL a)
|
|---|
| 10667 | {
|
|---|
| 10668 | HSWITCH yyrc;
|
|---|
| 10669 | USHORT sel = RestoreOS2FS();
|
|---|
| 10670 |
|
|---|
| 10671 | yyrc = WinAddSwitchEntry(a);
|
|---|
| 10672 | SetFS(sel);
|
|---|
| 10673 |
|
|---|
| 10674 | return yyrc;
|
|---|
| 10675 | }
|
|---|
| 10676 |
|
|---|
| 10677 | #undef WinAddSwitchEntry
|
|---|
| 10678 | #define WinAddSwitchEntry _WinAddSwitchEntry
|
|---|
| 10679 |
|
|---|
| 10680 | inline ULONG _WinRemoveSwitchEntry(HSWITCH a)
|
|---|
| 10681 | {
|
|---|
| 10682 | ULONG yyrc;
|
|---|
| 10683 | USHORT sel = RestoreOS2FS();
|
|---|
| 10684 |
|
|---|
| 10685 | yyrc = WinRemoveSwitchEntry(a);
|
|---|
| 10686 | SetFS(sel);
|
|---|
| 10687 |
|
|---|
| 10688 | return yyrc;
|
|---|
| 10689 | }
|
|---|
| 10690 |
|
|---|
| 10691 | #undef WinRemoveSwitchEntry
|
|---|
| 10692 | #define WinRemoveSwitchEntry _WinRemoveSwitchEntry
|
|---|
| 10693 |
|
|---|
| 10694 | inline ULONG _WinChangeSwitchEntry(HSWITCH a, PSWCNTRL b)
|
|---|
| 10695 | {
|
|---|
| 10696 | ULONG yyrc;
|
|---|
| 10697 | USHORT sel = RestoreOS2FS();
|
|---|
| 10698 |
|
|---|
| 10699 | yyrc = WinChangeSwitchEntry(a, b);
|
|---|
| 10700 | SetFS(sel);
|
|---|
| 10701 |
|
|---|
| 10702 | return yyrc;
|
|---|
| 10703 | }
|
|---|
| 10704 |
|
|---|
| 10705 | #undef WinChangeSwitchEntry
|
|---|
| 10706 | #define WinChangeSwitchEntry _WinChangeSwitchEntry
|
|---|
| 10707 |
|
|---|
| 10708 | inline HSWITCH _WinCreateSwitchEntry(HAB a, PSWCNTRL b)
|
|---|
| 10709 | {
|
|---|
| 10710 | HSWITCH yyrc;
|
|---|
| 10711 | USHORT sel = RestoreOS2FS();
|
|---|
| 10712 |
|
|---|
| 10713 | yyrc = WinCreateSwitchEntry(a, b);
|
|---|
| 10714 | SetFS(sel);
|
|---|
| 10715 |
|
|---|
| 10716 | return yyrc;
|
|---|
| 10717 | }
|
|---|
| 10718 |
|
|---|
| 10719 | #undef WinCreateSwitchEntry
|
|---|
| 10720 | #define WinCreateSwitchEntry _WinCreateSwitchEntry
|
|---|
| 10721 |
|
|---|
| 10722 | inline ULONG _WinQuerySessionTitle(HAB a, ULONG b, PSZ c, ULONG d)
|
|---|
| 10723 | {
|
|---|
| 10724 | ULONG yyrc;
|
|---|
| 10725 | USHORT sel = RestoreOS2FS();
|
|---|
| 10726 |
|
|---|
| 10727 | yyrc = WinQuerySessionTitle(a, b, c, d);
|
|---|
| 10728 | SetFS(sel);
|
|---|
| 10729 |
|
|---|
| 10730 | return yyrc;
|
|---|
| 10731 | }
|
|---|
| 10732 |
|
|---|
| 10733 | #undef WinQuerySessionTitle
|
|---|
| 10734 | #define WinQuerySessionTitle _WinQuerySessionTitle
|
|---|
| 10735 |
|
|---|
| 10736 | inline ULONG _WinQuerySwitchEntry(HSWITCH a, PSWCNTRL b)
|
|---|
| 10737 | {
|
|---|
| 10738 | ULONG yyrc;
|
|---|
| 10739 | USHORT sel = RestoreOS2FS();
|
|---|
| 10740 |
|
|---|
| 10741 | yyrc = WinQuerySwitchEntry(a, b);
|
|---|
| 10742 | SetFS(sel);
|
|---|
| 10743 |
|
|---|
| 10744 | return yyrc;
|
|---|
| 10745 | }
|
|---|
| 10746 |
|
|---|
| 10747 | #undef WinQuerySwitchEntry
|
|---|
| 10748 | #define WinQuerySwitchEntry _WinQuerySwitchEntry
|
|---|
| 10749 |
|
|---|
| 10750 | inline HSWITCH _WinQuerySwitchHandle(HWND a, PID b)
|
|---|
| 10751 | {
|
|---|
| 10752 | HSWITCH yyrc;
|
|---|
| 10753 | USHORT sel = RestoreOS2FS();
|
|---|
| 10754 |
|
|---|
| 10755 | yyrc = WinQuerySwitchHandle(a, b);
|
|---|
| 10756 | SetFS(sel);
|
|---|
| 10757 |
|
|---|
| 10758 | return yyrc;
|
|---|
| 10759 | }
|
|---|
| 10760 |
|
|---|
| 10761 | #undef WinQuerySwitchHandle
|
|---|
| 10762 | #define WinQuerySwitchHandle _WinQuerySwitchHandle
|
|---|
| 10763 |
|
|---|
| 10764 | inline ULONG _WinQuerySwitchList(HAB a, PSWBLOCK b, ULONG c)
|
|---|
| 10765 | {
|
|---|
| 10766 | ULONG yyrc;
|
|---|
| 10767 | USHORT sel = RestoreOS2FS();
|
|---|
| 10768 |
|
|---|
| 10769 | yyrc = WinQuerySwitchList(a, b, c);
|
|---|
| 10770 | SetFS(sel);
|
|---|
| 10771 |
|
|---|
| 10772 | return yyrc;
|
|---|
| 10773 | }
|
|---|
| 10774 |
|
|---|
| 10775 | #undef WinQuerySwitchList
|
|---|
| 10776 | #define WinQuerySwitchList _WinQuerySwitchList
|
|---|
| 10777 |
|
|---|
| 10778 | inline ULONG _WinQueryTaskSizePos(HAB a, ULONG b, PSWP c)
|
|---|
| 10779 | {
|
|---|
| 10780 | ULONG yyrc;
|
|---|
| 10781 | USHORT sel = RestoreOS2FS();
|
|---|
| 10782 |
|
|---|
| 10783 | yyrc = WinQueryTaskSizePos(a, b, c);
|
|---|
| 10784 | SetFS(sel);
|
|---|
| 10785 |
|
|---|
| 10786 | return yyrc;
|
|---|
| 10787 | }
|
|---|
| 10788 |
|
|---|
| 10789 | #undef WinQueryTaskSizePos
|
|---|
| 10790 | #define WinQueryTaskSizePos _WinQueryTaskSizePos
|
|---|
| 10791 |
|
|---|
| 10792 | inline ULONG _WinQueryTaskTitle(ULONG a, PSZ b, ULONG c)
|
|---|
| 10793 | {
|
|---|
| 10794 | ULONG yyrc;
|
|---|
| 10795 | USHORT sel = RestoreOS2FS();
|
|---|
| 10796 |
|
|---|
| 10797 | yyrc = WinQueryTaskTitle(a, b, c);
|
|---|
| 10798 | SetFS(sel);
|
|---|
| 10799 |
|
|---|
| 10800 | return yyrc;
|
|---|
| 10801 | }
|
|---|
| 10802 |
|
|---|
| 10803 | #undef WinQueryTaskTitle
|
|---|
| 10804 | #define WinQueryTaskTitle _WinQueryTaskTitle
|
|---|
| 10805 |
|
|---|
| 10806 | inline ULONG _WinSwitchToProgram(HSWITCH a)
|
|---|
| 10807 | {
|
|---|
| 10808 | ULONG yyrc;
|
|---|
| 10809 | USHORT sel = RestoreOS2FS();
|
|---|
| 10810 |
|
|---|
| 10811 | yyrc = WinSwitchToProgram(a);
|
|---|
| 10812 | SetFS(sel);
|
|---|
| 10813 |
|
|---|
| 10814 | return yyrc;
|
|---|
| 10815 | }
|
|---|
| 10816 |
|
|---|
| 10817 | #undef WinSwitchToProgram
|
|---|
| 10818 | #define WinSwitchToProgram _WinSwitchToProgram
|
|---|
| 10819 |
|
|---|
| 10820 | #endif
|
|---|
| 10821 | #ifdef INCL_WINSHELLDATA
|
|---|
| 10822 | inline BOOL _PrfCloseProfile(HINI a)
|
|---|
| 10823 | {
|
|---|
| 10824 | BOOL yyrc;
|
|---|
| 10825 | USHORT sel = RestoreOS2FS();
|
|---|
| 10826 |
|
|---|
| 10827 | yyrc = PrfCloseProfile(a);
|
|---|
| 10828 | SetFS(sel);
|
|---|
| 10829 |
|
|---|
| 10830 | return yyrc;
|
|---|
| 10831 | }
|
|---|
| 10832 |
|
|---|
| 10833 | #undef PrfCloseProfile
|
|---|
| 10834 | #define PrfCloseProfile _PrfCloseProfile
|
|---|
| 10835 |
|
|---|
| 10836 | inline HINI _PrfOpenProfile(HAB a, PCSZ b)
|
|---|
| 10837 | {
|
|---|
| 10838 | HINI yyrc;
|
|---|
| 10839 | USHORT sel = RestoreOS2FS();
|
|---|
| 10840 |
|
|---|
| 10841 | yyrc = PrfOpenProfile(a, b);
|
|---|
| 10842 | SetFS(sel);
|
|---|
| 10843 |
|
|---|
| 10844 | return yyrc;
|
|---|
| 10845 | }
|
|---|
| 10846 |
|
|---|
| 10847 | #undef PrfOpenProfile
|
|---|
| 10848 | #define PrfOpenProfile _PrfOpenProfile
|
|---|
| 10849 |
|
|---|
| 10850 | inline BOOL _PrfQueryProfile(HAB a, PPRFPROFILE b)
|
|---|
| 10851 | {
|
|---|
| 10852 | BOOL yyrc;
|
|---|
| 10853 | USHORT sel = RestoreOS2FS();
|
|---|
| 10854 |
|
|---|
| 10855 | yyrc = PrfQueryProfile(a, b);
|
|---|
| 10856 | SetFS(sel);
|
|---|
| 10857 |
|
|---|
| 10858 | return yyrc;
|
|---|
| 10859 | }
|
|---|
| 10860 |
|
|---|
| 10861 | #undef PrfQueryProfile
|
|---|
| 10862 | #define PrfQueryProfile _PrfQueryProfile
|
|---|
| 10863 |
|
|---|
| 10864 | inline BOOL _PrfQueryProfileData(HINI a, PCSZ b, PCSZ c, PVOID d, PULONG e)
|
|---|
| 10865 | {
|
|---|
| 10866 | BOOL yyrc;
|
|---|
| 10867 | USHORT sel = RestoreOS2FS();
|
|---|
| 10868 |
|
|---|
| 10869 | yyrc = PrfQueryProfileData(a, b, c, d, e);
|
|---|
| 10870 | SetFS(sel);
|
|---|
| 10871 |
|
|---|
| 10872 | return yyrc;
|
|---|
| 10873 | }
|
|---|
| 10874 |
|
|---|
| 10875 | #undef PrfQueryProfileData
|
|---|
| 10876 | #define PrfQueryProfileData _PrfQueryProfileData
|
|---|
| 10877 |
|
|---|
| 10878 | inline LONG _PrfQueryProfileInt(HINI a, PCSZ b, PCSZ c, LONG d)
|
|---|
| 10879 | {
|
|---|
| 10880 | LONG yyrc;
|
|---|
| 10881 | USHORT sel = RestoreOS2FS();
|
|---|
| 10882 |
|
|---|
| 10883 | yyrc = PrfQueryProfileInt(a, b, c, d);
|
|---|
| 10884 | SetFS(sel);
|
|---|
| 10885 |
|
|---|
| 10886 | return yyrc;
|
|---|
| 10887 | }
|
|---|
| 10888 |
|
|---|
| 10889 | #undef PrfQueryProfileInt
|
|---|
| 10890 | #define PrfQueryProfileInt _PrfQueryProfileInt
|
|---|
| 10891 |
|
|---|
| 10892 | inline BOOL _PrfQueryProfileSize(HINI a, PCSZ b, PCSZ c, PULONG d)
|
|---|
| 10893 | {
|
|---|
| 10894 | BOOL yyrc;
|
|---|
| 10895 | USHORT sel = RestoreOS2FS();
|
|---|
| 10896 |
|
|---|
| 10897 | yyrc = PrfQueryProfileSize(a, b, c, d);
|
|---|
| 10898 | SetFS(sel);
|
|---|
| 10899 |
|
|---|
| 10900 | return yyrc;
|
|---|
| 10901 | }
|
|---|
| 10902 |
|
|---|
| 10903 | #undef PrfQueryProfileSize
|
|---|
| 10904 | #define PrfQueryProfileSize _PrfQueryProfileSize
|
|---|
| 10905 |
|
|---|
| 10906 | inline ULONG _PrfQueryProfileString(HINI a, PCSZ b, PCSZ c, PCSZ d, PVOID e, ULONG f)
|
|---|
| 10907 | {
|
|---|
| 10908 | ULONG yyrc;
|
|---|
| 10909 | USHORT sel = RestoreOS2FS();
|
|---|
| 10910 |
|
|---|
| 10911 | yyrc = PrfQueryProfileString(a, b, c, d, e, f);
|
|---|
| 10912 | SetFS(sel);
|
|---|
| 10913 |
|
|---|
| 10914 | return yyrc;
|
|---|
| 10915 | }
|
|---|
| 10916 |
|
|---|
| 10917 | #undef PrfQueryProfileString
|
|---|
| 10918 | #define PrfQueryProfileString _PrfQueryProfileString
|
|---|
| 10919 |
|
|---|
| 10920 | inline BOOL _PrfReset(HAB a, PPRFPROFILE b)
|
|---|
| 10921 | {
|
|---|
| 10922 | BOOL yyrc;
|
|---|
| 10923 | USHORT sel = RestoreOS2FS();
|
|---|
| 10924 |
|
|---|
| 10925 | yyrc = PrfReset(a, b);
|
|---|
| 10926 | SetFS(sel);
|
|---|
| 10927 |
|
|---|
| 10928 | return yyrc;
|
|---|
| 10929 | }
|
|---|
| 10930 |
|
|---|
| 10931 | #undef PrfReset
|
|---|
| 10932 | #define PrfReset _PrfReset
|
|---|
| 10933 |
|
|---|
| 10934 | inline BOOL _PrfWriteProfileData(HINI a, PCSZ b, PCSZ c, PVOID d, ULONG e)
|
|---|
| 10935 | {
|
|---|
| 10936 | BOOL yyrc;
|
|---|
| 10937 | USHORT sel = RestoreOS2FS();
|
|---|
| 10938 |
|
|---|
| 10939 | yyrc = PrfWriteProfileData(a, b, c, d, e);
|
|---|
| 10940 | SetFS(sel);
|
|---|
| 10941 |
|
|---|
| 10942 | return yyrc;
|
|---|
| 10943 | }
|
|---|
| 10944 |
|
|---|
| 10945 | #undef PrfWriteProfileData
|
|---|
| 10946 | #define PrfWriteProfileData _PrfWriteProfileData
|
|---|
| 10947 |
|
|---|
| 10948 | inline BOOL _PrfWriteProfileString(HINI a, PCSZ b, PCSZ c, PCSZ d)
|
|---|
| 10949 | {
|
|---|
| 10950 | BOOL yyrc;
|
|---|
| 10951 | USHORT sel = RestoreOS2FS();
|
|---|
| 10952 |
|
|---|
| 10953 | yyrc = PrfWriteProfileString(a, b, c, d);
|
|---|
| 10954 | SetFS(sel);
|
|---|
| 10955 |
|
|---|
| 10956 | return yyrc;
|
|---|
| 10957 | }
|
|---|
| 10958 |
|
|---|
| 10959 | #undef PrfWriteProfileString
|
|---|
| 10960 | #define PrfWriteProfileString _PrfWriteProfileString
|
|---|
| 10961 |
|
|---|
| 10962 | #endif
|
|---|
| 10963 | #ifdef INCL_WINSTDFILE
|
|---|
| 10964 | inline MRESULT _WinDefFileDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
|
|---|
| 10965 | {
|
|---|
| 10966 | MRESULT yyrc;
|
|---|
| 10967 | USHORT sel = RestoreOS2FS();
|
|---|
| 10968 |
|
|---|
| 10969 | yyrc = WinDefFileDlgProc(a, b, c, d);
|
|---|
| 10970 | SetFS(sel);
|
|---|
| 10971 |
|
|---|
| 10972 | return yyrc;
|
|---|
| 10973 | }
|
|---|
| 10974 |
|
|---|
| 10975 | #undef WinDefFileDlgProc
|
|---|
| 10976 | #define WinDefFileDlgProc _WinDefFileDlgProc
|
|---|
| 10977 |
|
|---|
| 10978 | inline HWND _WinFileDlg(HWND a, HWND b, PFILEDLG c)
|
|---|
| 10979 | {
|
|---|
| 10980 | HWND yyrc;
|
|---|
| 10981 | USHORT sel = RestoreOS2FS();
|
|---|
| 10982 |
|
|---|
| 10983 | yyrc = WinFileDlg(a, b, c);
|
|---|
| 10984 | SetFS(sel);
|
|---|
| 10985 |
|
|---|
| 10986 | return yyrc;
|
|---|
| 10987 | }
|
|---|
| 10988 |
|
|---|
| 10989 | #undef WinFileDlg
|
|---|
| 10990 | #define WinFileDlg _WinFileDlg
|
|---|
| 10991 |
|
|---|
| 10992 | inline BOOL _WinFreeFileDlgList(PAPSZ a)
|
|---|
| 10993 | {
|
|---|
| 10994 | BOOL yyrc;
|
|---|
| 10995 | USHORT sel = RestoreOS2FS();
|
|---|
| 10996 |
|
|---|
| 10997 | yyrc = WinFreeFileDlgList(a);
|
|---|
| 10998 | SetFS(sel);
|
|---|
| 10999 |
|
|---|
| 11000 | return yyrc;
|
|---|
| 11001 | }
|
|---|
| 11002 |
|
|---|
| 11003 | #undef WinFreeFileDlgList
|
|---|
| 11004 | #define WinFreeFileDlgList _WinFreeFileDlgList
|
|---|
| 11005 |
|
|---|
| 11006 | #endif
|
|---|
| 11007 | #ifdef INCL_WINSTDFONT
|
|---|
| 11008 | inline HWND _WinFontDlg(HWND a, HWND b, PFONTDLG c)
|
|---|
| 11009 | {
|
|---|
| 11010 | HWND yyrc;
|
|---|
| 11011 | USHORT sel = RestoreOS2FS();
|
|---|
| 11012 |
|
|---|
| 11013 | yyrc = WinFontDlg(a, b, c);
|
|---|
| 11014 | SetFS(sel);
|
|---|
| 11015 |
|
|---|
| 11016 | return yyrc;
|
|---|
| 11017 | }
|
|---|
| 11018 |
|
|---|
| 11019 | #undef WinFontDlg
|
|---|
| 11020 | #define WinFontDlg _WinFontDlg
|
|---|
| 11021 |
|
|---|
| 11022 | inline MRESULT _WinDefFontDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
|
|---|
| 11023 | {
|
|---|
| 11024 | MRESULT yyrc;
|
|---|
| 11025 | USHORT sel = RestoreOS2FS();
|
|---|
| 11026 |
|
|---|
| 11027 | yyrc = WinDefFontDlgProc(a, b, c, d);
|
|---|
| 11028 | SetFS(sel);
|
|---|
| 11029 |
|
|---|
| 11030 | return yyrc;
|
|---|
| 11031 | }
|
|---|
| 11032 |
|
|---|
| 11033 | #undef WinDefFontDlgProc
|
|---|
| 11034 | #define WinDefFontDlgProc _WinDefFontDlgProc
|
|---|
| 11035 |
|
|---|
| 11036 | #endif
|
|---|
| 11037 | #ifdef INCL_WINSTDDRAG
|
|---|
| 11038 | inline BOOL _DrgAcceptDroppedFiles(HWND a, PCSZ b, PCSZ c, ULONG d, ULONG e)
|
|---|
| 11039 | {
|
|---|
| 11040 | BOOL yyrc;
|
|---|
| 11041 | USHORT sel = RestoreOS2FS();
|
|---|
| 11042 |
|
|---|
| 11043 | yyrc = DrgAcceptDroppedFiles(a, b, c, d, e);
|
|---|
| 11044 | SetFS(sel);
|
|---|
| 11045 |
|
|---|
| 11046 | return yyrc;
|
|---|
| 11047 | }
|
|---|
| 11048 |
|
|---|
| 11049 | #undef DrgAcceptDroppedFiles
|
|---|
| 11050 | #define DrgAcceptDroppedFiles _DrgAcceptDroppedFiles
|
|---|
| 11051 |
|
|---|
| 11052 | inline BOOL _DrgAccessDraginfo(PDRAGINFO a)
|
|---|
| 11053 | {
|
|---|
| 11054 | BOOL yyrc;
|
|---|
| 11055 | USHORT sel = RestoreOS2FS();
|
|---|
| 11056 |
|
|---|
| 11057 | yyrc = DrgAccessDraginfo(a);
|
|---|
| 11058 | SetFS(sel);
|
|---|
| 11059 |
|
|---|
| 11060 | return yyrc;
|
|---|
| 11061 | }
|
|---|
| 11062 |
|
|---|
| 11063 | #undef DrgAccessDraginfo
|
|---|
| 11064 | #define DrgAccessDraginfo _DrgAccessDraginfo
|
|---|
| 11065 |
|
|---|
| 11066 | inline HSTR _DrgAddStrHandle(PCSZ a)
|
|---|
| 11067 | {
|
|---|
| 11068 | HSTR yyrc;
|
|---|
| 11069 | USHORT sel = RestoreOS2FS();
|
|---|
| 11070 |
|
|---|
| 11071 | yyrc = DrgAddStrHandle(a);
|
|---|
| 11072 | SetFS(sel);
|
|---|
| 11073 |
|
|---|
| 11074 | return yyrc;
|
|---|
| 11075 | }
|
|---|
| 11076 |
|
|---|
| 11077 | #undef DrgAddStrHandle
|
|---|
| 11078 | #define DrgAddStrHandle _DrgAddStrHandle
|
|---|
| 11079 |
|
|---|
| 11080 | inline PDRAGINFO _DrgAllocDraginfo(ULONG a)
|
|---|
| 11081 | {
|
|---|
| 11082 | PDRAGINFO yyrc;
|
|---|
| 11083 | USHORT sel = RestoreOS2FS();
|
|---|
| 11084 |
|
|---|
| 11085 | yyrc = DrgAllocDraginfo(a);
|
|---|
| 11086 | SetFS(sel);
|
|---|
| 11087 |
|
|---|
| 11088 | return yyrc;
|
|---|
| 11089 | }
|
|---|
| 11090 |
|
|---|
| 11091 | #undef DrgAllocDraginfo
|
|---|
| 11092 | #define DrgAllocDraginfo _DrgAllocDraginfo
|
|---|
| 11093 |
|
|---|
| 11094 | inline PDRAGTRANSFER _DrgAllocDragtransfer(ULONG a)
|
|---|
| 11095 | {
|
|---|
| 11096 | PDRAGTRANSFER yyrc;
|
|---|
| 11097 | USHORT sel = RestoreOS2FS();
|
|---|
| 11098 |
|
|---|
| 11099 | yyrc = DrgAllocDragtransfer(a);
|
|---|
| 11100 | SetFS(sel);
|
|---|
| 11101 |
|
|---|
| 11102 | return yyrc;
|
|---|
| 11103 | }
|
|---|
| 11104 |
|
|---|
| 11105 | #undef DrgAllocDragtransfer
|
|---|
| 11106 | #define DrgAllocDragtransfer _DrgAllocDragtransfer
|
|---|
| 11107 |
|
|---|
| 11108 | inline BOOL _DrgCancelLazyDrag()
|
|---|
| 11109 | {
|
|---|
| 11110 | BOOL yyrc;
|
|---|
| 11111 | USHORT sel = RestoreOS2FS();
|
|---|
| 11112 |
|
|---|
| 11113 | yyrc = DrgCancelLazyDrag();
|
|---|
| 11114 | SetFS(sel);
|
|---|
| 11115 |
|
|---|
| 11116 | return yyrc;
|
|---|
| 11117 | }
|
|---|
| 11118 |
|
|---|
| 11119 | #undef DrgCancelLazyDrag
|
|---|
| 11120 | #define DrgCancelLazyDrag _DrgCancelLazyDrag
|
|---|
| 11121 |
|
|---|
| 11122 | inline BOOL _DrgDeleteDraginfoStrHandles(PDRAGINFO a)
|
|---|
| 11123 | {
|
|---|
| 11124 | BOOL yyrc;
|
|---|
| 11125 | USHORT sel = RestoreOS2FS();
|
|---|
| 11126 |
|
|---|
| 11127 | yyrc = DrgDeleteDraginfoStrHandles(a);
|
|---|
| 11128 | SetFS(sel);
|
|---|
| 11129 |
|
|---|
| 11130 | return yyrc;
|
|---|
| 11131 | }
|
|---|
| 11132 |
|
|---|
| 11133 | #undef DrgDeleteDraginfoStrHandles
|
|---|
| 11134 | #define DrgDeleteDraginfoStrHandles _DrgDeleteDraginfoStrHandles
|
|---|
| 11135 |
|
|---|
| 11136 | inline BOOL _DrgDeleteStrHandle(HSTR a)
|
|---|
| 11137 | {
|
|---|
| 11138 | BOOL yyrc;
|
|---|
| 11139 | USHORT sel = RestoreOS2FS();
|
|---|
| 11140 |
|
|---|
| 11141 | yyrc = DrgDeleteStrHandle(a);
|
|---|
| 11142 | SetFS(sel);
|
|---|
| 11143 |
|
|---|
| 11144 | return yyrc;
|
|---|
| 11145 | }
|
|---|
| 11146 |
|
|---|
| 11147 | #undef DrgDeleteStrHandle
|
|---|
| 11148 | #define DrgDeleteStrHandle _DrgDeleteStrHandle
|
|---|
| 11149 |
|
|---|
| 11150 | inline HWND _DrgDrag(HWND a, PDRAGINFO b, PDRAGIMAGE c, ULONG d, LONG e, PVOID f)
|
|---|
| 11151 | {
|
|---|
| 11152 | HWND yyrc;
|
|---|
| 11153 | USHORT sel = RestoreOS2FS();
|
|---|
| 11154 |
|
|---|
| 11155 | yyrc = DrgDrag(a, b, c, d, e, f);
|
|---|
| 11156 | SetFS(sel);
|
|---|
| 11157 |
|
|---|
| 11158 | return yyrc;
|
|---|
| 11159 | }
|
|---|
| 11160 |
|
|---|
| 11161 | #undef DrgDrag
|
|---|
| 11162 | #define DrgDrag _DrgDrag
|
|---|
| 11163 |
|
|---|
| 11164 | inline BOOL _DrgDragFiles(HWND a, PCSZ *b, PCSZ *c, PCSZ *d, ULONG e, HPOINTER f, ULONG g, BOOL h, ULONG i)
|
|---|
| 11165 | {
|
|---|
| 11166 | BOOL yyrc;
|
|---|
| 11167 | USHORT sel = RestoreOS2FS();
|
|---|
| 11168 |
|
|---|
| 11169 | yyrc = DrgDragFiles(a, b, c, d, e, f, g, h, i);
|
|---|
| 11170 | SetFS(sel);
|
|---|
| 11171 |
|
|---|
| 11172 | return yyrc;
|
|---|
| 11173 | }
|
|---|
| 11174 |
|
|---|
| 11175 | #undef DrgDragFiles
|
|---|
| 11176 | #define DrgDragFiles _DrgDragFiles
|
|---|
| 11177 |
|
|---|
| 11178 | inline BOOL _DrgFreeDraginfo(PDRAGINFO a)
|
|---|
| 11179 | {
|
|---|
| 11180 | BOOL yyrc;
|
|---|
| 11181 | USHORT sel = RestoreOS2FS();
|
|---|
| 11182 |
|
|---|
| 11183 | yyrc = DrgFreeDraginfo(a);
|
|---|
| 11184 | SetFS(sel);
|
|---|
| 11185 |
|
|---|
| 11186 | return yyrc;
|
|---|
| 11187 | }
|
|---|
| 11188 |
|
|---|
| 11189 | #undef DrgFreeDraginfo
|
|---|
| 11190 | #define DrgFreeDraginfo _DrgFreeDraginfo
|
|---|
| 11191 |
|
|---|
| 11192 | inline BOOL _DrgFreeDragtransfer(PDRAGTRANSFER a)
|
|---|
| 11193 | {
|
|---|
| 11194 | BOOL yyrc;
|
|---|
| 11195 | USHORT sel = RestoreOS2FS();
|
|---|
| 11196 |
|
|---|
| 11197 | yyrc = DrgFreeDragtransfer(a);
|
|---|
| 11198 | SetFS(sel);
|
|---|
| 11199 |
|
|---|
| 11200 | return yyrc;
|
|---|
| 11201 | }
|
|---|
| 11202 |
|
|---|
| 11203 | #undef DrgFreeDragtransfer
|
|---|
| 11204 | #define DrgFreeDragtransfer _DrgFreeDragtransfer
|
|---|
| 11205 |
|
|---|
| 11206 | inline HPS _DrgGetPS(HWND a)
|
|---|
| 11207 | {
|
|---|
| 11208 | HPS yyrc;
|
|---|
| 11209 | USHORT sel = RestoreOS2FS();
|
|---|
| 11210 |
|
|---|
| 11211 | yyrc = DrgGetPS(a);
|
|---|
| 11212 | SetFS(sel);
|
|---|
| 11213 |
|
|---|
| 11214 | return yyrc;
|
|---|
| 11215 | }
|
|---|
| 11216 |
|
|---|
| 11217 | #undef DrgGetPS
|
|---|
| 11218 | #define DrgGetPS _DrgGetPS
|
|---|
| 11219 |
|
|---|
| 11220 | inline BOOL _DrgLazyDrag(HWND a, PDRAGINFO b, PDRAGIMAGE c, ULONG d, PVOID e)
|
|---|
| 11221 | {
|
|---|
| 11222 | BOOL yyrc;
|
|---|
| 11223 | USHORT sel = RestoreOS2FS();
|
|---|
| 11224 |
|
|---|
| 11225 | yyrc = DrgLazyDrag(a, b, c, d, e);
|
|---|
| 11226 | SetFS(sel);
|
|---|
| 11227 |
|
|---|
| 11228 | return yyrc;
|
|---|
| 11229 | }
|
|---|
| 11230 |
|
|---|
| 11231 | #undef DrgLazyDrag
|
|---|
| 11232 | #define DrgLazyDrag _DrgLazyDrag
|
|---|
| 11233 |
|
|---|
| 11234 | inline BOOL _DrgLazyDrop(HWND a, ULONG b, PPOINTL c)
|
|---|
| 11235 | {
|
|---|
| 11236 | BOOL yyrc;
|
|---|
| 11237 | USHORT sel = RestoreOS2FS();
|
|---|
| 11238 |
|
|---|
| 11239 | yyrc = DrgLazyDrop(a, b, c);
|
|---|
| 11240 | SetFS(sel);
|
|---|
| 11241 |
|
|---|
| 11242 | return yyrc;
|
|---|
| 11243 | }
|
|---|
| 11244 |
|
|---|
| 11245 | #undef DrgLazyDrop
|
|---|
| 11246 | #define DrgLazyDrop _DrgLazyDrop
|
|---|
| 11247 |
|
|---|
| 11248 | inline BOOL _DrgPostTransferMsg(HWND a, ULONG b, PDRAGTRANSFER c, ULONG d, ULONG e, BOOL f)
|
|---|
| 11249 | {
|
|---|
| 11250 | BOOL yyrc;
|
|---|
| 11251 | USHORT sel = RestoreOS2FS();
|
|---|
| 11252 |
|
|---|
| 11253 | yyrc = DrgPostTransferMsg(a, b, c, d, e, f);
|
|---|
| 11254 | SetFS(sel);
|
|---|
| 11255 |
|
|---|
| 11256 | return yyrc;
|
|---|
| 11257 | }
|
|---|
| 11258 |
|
|---|
| 11259 | #undef DrgPostTransferMsg
|
|---|
| 11260 | #define DrgPostTransferMsg _DrgPostTransferMsg
|
|---|
| 11261 |
|
|---|
| 11262 | inline BOOL _DrgPushDraginfo(PDRAGINFO a, HWND b)
|
|---|
| 11263 | {
|
|---|
| 11264 | BOOL yyrc;
|
|---|
| 11265 | USHORT sel = RestoreOS2FS();
|
|---|
| 11266 |
|
|---|
| 11267 | yyrc = DrgPushDraginfo(a, b);
|
|---|
| 11268 | SetFS(sel);
|
|---|
| 11269 |
|
|---|
| 11270 | return yyrc;
|
|---|
| 11271 | }
|
|---|
| 11272 |
|
|---|
| 11273 | #undef DrgPushDraginfo
|
|---|
| 11274 | #define DrgPushDraginfo _DrgPushDraginfo
|
|---|
| 11275 |
|
|---|
| 11276 | inline PDRAGINFO _DrgQueryDraginfoPtr(PDRAGINFO a)
|
|---|
| 11277 | {
|
|---|
| 11278 | PDRAGINFO yyrc;
|
|---|
| 11279 | USHORT sel = RestoreOS2FS();
|
|---|
| 11280 |
|
|---|
| 11281 | yyrc = DrgQueryDraginfoPtr(a);
|
|---|
| 11282 | SetFS(sel);
|
|---|
| 11283 |
|
|---|
| 11284 | return yyrc;
|
|---|
| 11285 | }
|
|---|
| 11286 |
|
|---|
| 11287 | #undef DrgQueryDraginfoPtr
|
|---|
| 11288 | #define DrgQueryDraginfoPtr _DrgQueryDraginfoPtr
|
|---|
| 11289 |
|
|---|
| 11290 | inline PDRAGINFO _DrgQueryDraginfoPtrFromHwnd(HWND a)
|
|---|
| 11291 | {
|
|---|
| 11292 | PDRAGINFO yyrc;
|
|---|
| 11293 | USHORT sel = RestoreOS2FS();
|
|---|
| 11294 |
|
|---|
| 11295 | yyrc = DrgQueryDraginfoPtrFromHwnd(a);
|
|---|
| 11296 | SetFS(sel);
|
|---|
| 11297 |
|
|---|
| 11298 | return yyrc;
|
|---|
| 11299 | }
|
|---|
| 11300 |
|
|---|
| 11301 | #undef DrgQueryDraginfoPtrFromHwnd
|
|---|
| 11302 | #define DrgQueryDraginfoPtrFromHwnd _DrgQueryDraginfoPtrFromHwnd
|
|---|
| 11303 |
|
|---|
| 11304 | inline PDRAGINFO _DrgQueryDraginfoPtrFromDragitem(PDRAGITEM a)
|
|---|
| 11305 | {
|
|---|
| 11306 | PDRAGINFO yyrc;
|
|---|
| 11307 | USHORT sel = RestoreOS2FS();
|
|---|
| 11308 |
|
|---|
| 11309 | yyrc = DrgQueryDraginfoPtrFromDragitem(a);
|
|---|
| 11310 | SetFS(sel);
|
|---|
| 11311 |
|
|---|
| 11312 | return yyrc;
|
|---|
| 11313 | }
|
|---|
| 11314 |
|
|---|
| 11315 | #undef DrgQueryDraginfoPtrFromDragitem
|
|---|
| 11316 | #define DrgQueryDraginfoPtrFromDragitem _DrgQueryDraginfoPtrFromDragitem
|
|---|
| 11317 |
|
|---|
| 11318 | inline BOOL _DrgQueryDragitem(PDRAGINFO a, ULONG b, PDRAGITEM c, ULONG d)
|
|---|
| 11319 | {
|
|---|
| 11320 | BOOL yyrc;
|
|---|
| 11321 | USHORT sel = RestoreOS2FS();
|
|---|
| 11322 |
|
|---|
| 11323 | yyrc = DrgQueryDragitem(a, b, c, d);
|
|---|
| 11324 | SetFS(sel);
|
|---|
| 11325 |
|
|---|
| 11326 | return yyrc;
|
|---|
| 11327 | }
|
|---|
| 11328 |
|
|---|
| 11329 | #undef DrgQueryDragitem
|
|---|
| 11330 | #define DrgQueryDragitem _DrgQueryDragitem
|
|---|
| 11331 |
|
|---|
| 11332 | inline ULONG _DrgQueryDragitemCount(PDRAGINFO a)
|
|---|
| 11333 | {
|
|---|
| 11334 | ULONG yyrc;
|
|---|
| 11335 | USHORT sel = RestoreOS2FS();
|
|---|
| 11336 |
|
|---|
| 11337 | yyrc = DrgQueryDragitemCount(a);
|
|---|
| 11338 | SetFS(sel);
|
|---|
| 11339 |
|
|---|
| 11340 | return yyrc;
|
|---|
| 11341 | }
|
|---|
| 11342 |
|
|---|
| 11343 | #undef DrgQueryDragitemCount
|
|---|
| 11344 | #define DrgQueryDragitemCount _DrgQueryDragitemCount
|
|---|
| 11345 |
|
|---|
| 11346 | inline PDRAGITEM _DrgQueryDragitemPtr(PDRAGINFO a, ULONG b)
|
|---|
| 11347 | {
|
|---|
| 11348 | PDRAGITEM yyrc;
|
|---|
| 11349 | USHORT sel = RestoreOS2FS();
|
|---|
| 11350 |
|
|---|
| 11351 | yyrc = DrgQueryDragitemPtr(a, b);
|
|---|
| 11352 | SetFS(sel);
|
|---|
| 11353 |
|
|---|
| 11354 | return yyrc;
|
|---|
| 11355 | }
|
|---|
| 11356 |
|
|---|
| 11357 | #undef DrgQueryDragitemPtr
|
|---|
| 11358 | #define DrgQueryDragitemPtr _DrgQueryDragitemPtr
|
|---|
| 11359 |
|
|---|
| 11360 | inline ULONG _DrgQueryDragStatus()
|
|---|
| 11361 | {
|
|---|
| 11362 | ULONG yyrc;
|
|---|
| 11363 | USHORT sel = RestoreOS2FS();
|
|---|
| 11364 |
|
|---|
| 11365 | yyrc = DrgQueryDragStatus();
|
|---|
| 11366 | SetFS(sel);
|
|---|
| 11367 |
|
|---|
| 11368 | return yyrc;
|
|---|
| 11369 | }
|
|---|
| 11370 |
|
|---|
| 11371 | #undef DrgQueryDragStatus
|
|---|
| 11372 | #define DrgQueryDragStatus _DrgQueryDragStatus
|
|---|
| 11373 |
|
|---|
| 11374 | inline BOOL _DrgQueryNativeRMF(PDRAGITEM a, ULONG b, PCHAR c)
|
|---|
| 11375 | {
|
|---|
| 11376 | BOOL yyrc;
|
|---|
| 11377 | USHORT sel = RestoreOS2FS();
|
|---|
| 11378 |
|
|---|
| 11379 | yyrc = DrgQueryNativeRMF(a, b, c);
|
|---|
| 11380 | SetFS(sel);
|
|---|
| 11381 |
|
|---|
| 11382 | return yyrc;
|
|---|
| 11383 | }
|
|---|
| 11384 |
|
|---|
| 11385 | #undef DrgQueryNativeRMF
|
|---|
| 11386 | #define DrgQueryNativeRMF _DrgQueryNativeRMF
|
|---|
| 11387 |
|
|---|
| 11388 | inline ULONG _DrgQueryNativeRMFLen(PDRAGITEM a)
|
|---|
| 11389 | {
|
|---|
| 11390 | ULONG yyrc;
|
|---|
| 11391 | USHORT sel = RestoreOS2FS();
|
|---|
| 11392 |
|
|---|
| 11393 | yyrc = DrgQueryNativeRMFLen(a);
|
|---|
| 11394 | SetFS(sel);
|
|---|
| 11395 |
|
|---|
| 11396 | return yyrc;
|
|---|
| 11397 | }
|
|---|
| 11398 |
|
|---|
| 11399 | #undef DrgQueryNativeRMFLen
|
|---|
| 11400 | #define DrgQueryNativeRMFLen _DrgQueryNativeRMFLen
|
|---|
| 11401 |
|
|---|
| 11402 | inline ULONG _DrgQueryStrName(HSTR a, ULONG b, PSZ c)
|
|---|
| 11403 | {
|
|---|
| 11404 | ULONG yyrc;
|
|---|
| 11405 | USHORT sel = RestoreOS2FS();
|
|---|
| 11406 |
|
|---|
| 11407 | yyrc = DrgQueryStrName(a, b, c);
|
|---|
| 11408 | SetFS(sel);
|
|---|
| 11409 |
|
|---|
| 11410 | return yyrc;
|
|---|
| 11411 | }
|
|---|
| 11412 |
|
|---|
| 11413 | #undef DrgQueryStrName
|
|---|
| 11414 | #define DrgQueryStrName _DrgQueryStrName
|
|---|
| 11415 |
|
|---|
| 11416 | inline ULONG _DrgQueryStrNameLen(HSTR a)
|
|---|
| 11417 | {
|
|---|
| 11418 | ULONG yyrc;
|
|---|
| 11419 | USHORT sel = RestoreOS2FS();
|
|---|
| 11420 |
|
|---|
| 11421 | yyrc = DrgQueryStrNameLen(a);
|
|---|
| 11422 | SetFS(sel);
|
|---|
| 11423 |
|
|---|
| 11424 | return yyrc;
|
|---|
| 11425 | }
|
|---|
| 11426 |
|
|---|
| 11427 | #undef DrgQueryStrNameLen
|
|---|
| 11428 | #define DrgQueryStrNameLen _DrgQueryStrNameLen
|
|---|
| 11429 |
|
|---|
| 11430 | inline BOOL _DrgQueryTrueType(PDRAGITEM a, ULONG b, PSZ c)
|
|---|
| 11431 | {
|
|---|
| 11432 | BOOL yyrc;
|
|---|
| 11433 | USHORT sel = RestoreOS2FS();
|
|---|
| 11434 |
|
|---|
| 11435 | yyrc = DrgQueryTrueType(a, b, c);
|
|---|
| 11436 | SetFS(sel);
|
|---|
| 11437 |
|
|---|
| 11438 | return yyrc;
|
|---|
| 11439 | }
|
|---|
| 11440 |
|
|---|
| 11441 | #undef DrgQueryTrueType
|
|---|
| 11442 | #define DrgQueryTrueType _DrgQueryTrueType
|
|---|
| 11443 |
|
|---|
| 11444 | inline ULONG _DrgQueryTrueTypeLen(PDRAGITEM a)
|
|---|
| 11445 | {
|
|---|
| 11446 | ULONG yyrc;
|
|---|
| 11447 | USHORT sel = RestoreOS2FS();
|
|---|
| 11448 |
|
|---|
| 11449 | yyrc = DrgQueryTrueTypeLen(a);
|
|---|
| 11450 | SetFS(sel);
|
|---|
| 11451 |
|
|---|
| 11452 | return yyrc;
|
|---|
| 11453 | }
|
|---|
| 11454 |
|
|---|
| 11455 | #undef DrgQueryTrueTypeLen
|
|---|
| 11456 | #define DrgQueryTrueTypeLen _DrgQueryTrueTypeLen
|
|---|
| 11457 |
|
|---|
| 11458 | inline PDRAGINFO _DrgReallocDraginfo(PDRAGINFO a, ULONG b)
|
|---|
| 11459 | {
|
|---|
| 11460 | PDRAGINFO yyrc;
|
|---|
| 11461 | USHORT sel = RestoreOS2FS();
|
|---|
| 11462 |
|
|---|
| 11463 | yyrc = DrgReallocDraginfo(a, b);
|
|---|
| 11464 | SetFS(sel);
|
|---|
| 11465 |
|
|---|
| 11466 | return yyrc;
|
|---|
| 11467 | }
|
|---|
| 11468 |
|
|---|
| 11469 | #undef DrgReallocDraginfo
|
|---|
| 11470 | #define DrgReallocDraginfo _DrgReallocDraginfo
|
|---|
| 11471 |
|
|---|
| 11472 | inline BOOL _DrgReleasePS(HPS a)
|
|---|
| 11473 | {
|
|---|
| 11474 | BOOL yyrc;
|
|---|
| 11475 | USHORT sel = RestoreOS2FS();
|
|---|
| 11476 |
|
|---|
| 11477 | yyrc = DrgReleasePS(a);
|
|---|
| 11478 | SetFS(sel);
|
|---|
| 11479 |
|
|---|
| 11480 | return yyrc;
|
|---|
| 11481 | }
|
|---|
| 11482 |
|
|---|
| 11483 | #undef DrgReleasePS
|
|---|
| 11484 | #define DrgReleasePS _DrgReleasePS
|
|---|
| 11485 |
|
|---|
| 11486 | inline MRESULT _DrgSendTransferMsg(HWND a, ULONG b, MPARAM c, MPARAM d)
|
|---|
| 11487 | {
|
|---|
| 11488 | MRESULT yyrc;
|
|---|
| 11489 | USHORT sel = RestoreOS2FS();
|
|---|
| 11490 |
|
|---|
| 11491 | yyrc = DrgSendTransferMsg(a, b, c, d);
|
|---|
| 11492 | SetFS(sel);
|
|---|
| 11493 |
|
|---|
| 11494 | return yyrc;
|
|---|
| 11495 | }
|
|---|
| 11496 |
|
|---|
| 11497 | #undef DrgSendTransferMsg
|
|---|
| 11498 | #define DrgSendTransferMsg _DrgSendTransferMsg
|
|---|
| 11499 |
|
|---|
| 11500 | inline BOOL _DrgSetDragImage(PDRAGINFO a, PDRAGIMAGE b, ULONG c, PVOID d)
|
|---|
| 11501 | {
|
|---|
| 11502 | BOOL yyrc;
|
|---|
| 11503 | USHORT sel = RestoreOS2FS();
|
|---|
| 11504 |
|
|---|
| 11505 | yyrc = DrgSetDragImage(a, b, c, d);
|
|---|
| 11506 | SetFS(sel);
|
|---|
| 11507 |
|
|---|
| 11508 | return yyrc;
|
|---|
| 11509 | }
|
|---|
| 11510 |
|
|---|
| 11511 | #undef DrgSetDragImage
|
|---|
| 11512 | #define DrgSetDragImage _DrgSetDragImage
|
|---|
| 11513 |
|
|---|
| 11514 | inline BOOL _DrgSetDragitem(PDRAGINFO a, PDRAGITEM b, ULONG c, ULONG d)
|
|---|
| 11515 | {
|
|---|
| 11516 | BOOL yyrc;
|
|---|
| 11517 | USHORT sel = RestoreOS2FS();
|
|---|
| 11518 |
|
|---|
| 11519 | yyrc = DrgSetDragitem(a, b, c, d);
|
|---|
| 11520 | SetFS(sel);
|
|---|
| 11521 |
|
|---|
| 11522 | return yyrc;
|
|---|
| 11523 | }
|
|---|
| 11524 |
|
|---|
| 11525 | #undef DrgSetDragitem
|
|---|
| 11526 | #define DrgSetDragitem _DrgSetDragitem
|
|---|
| 11527 |
|
|---|
| 11528 | inline BOOL _DrgSetDragPointer(PDRAGINFO a, HPOINTER b)
|
|---|
| 11529 | {
|
|---|
| 11530 | BOOL yyrc;
|
|---|
| 11531 | USHORT sel = RestoreOS2FS();
|
|---|
| 11532 |
|
|---|
| 11533 | yyrc = DrgSetDragPointer(a, b);
|
|---|
| 11534 | SetFS(sel);
|
|---|
| 11535 |
|
|---|
| 11536 | return yyrc;
|
|---|
| 11537 | }
|
|---|
| 11538 |
|
|---|
| 11539 | #undef DrgSetDragPointer
|
|---|
| 11540 | #define DrgSetDragPointer _DrgSetDragPointer
|
|---|
| 11541 |
|
|---|
| 11542 | inline BOOL _DrgVerifyNativeRMF(PDRAGITEM a, PCSZ b)
|
|---|
| 11543 | {
|
|---|
| 11544 | BOOL yyrc;
|
|---|
| 11545 | USHORT sel = RestoreOS2FS();
|
|---|
| 11546 |
|
|---|
| 11547 | yyrc = DrgVerifyNativeRMF(a, b);
|
|---|
| 11548 | SetFS(sel);
|
|---|
| 11549 |
|
|---|
| 11550 | return yyrc;
|
|---|
| 11551 | }
|
|---|
| 11552 |
|
|---|
| 11553 | #undef DrgVerifyNativeRMF
|
|---|
| 11554 | #define DrgVerifyNativeRMF _DrgVerifyNativeRMF
|
|---|
| 11555 |
|
|---|
| 11556 | inline BOOL _DrgVerifyRMF(PDRAGITEM a, PCSZ b, PCSZ c)
|
|---|
| 11557 | {
|
|---|
| 11558 | BOOL yyrc;
|
|---|
| 11559 | USHORT sel = RestoreOS2FS();
|
|---|
| 11560 |
|
|---|
| 11561 | yyrc = DrgVerifyRMF(a, b, c);
|
|---|
| 11562 | SetFS(sel);
|
|---|
| 11563 |
|
|---|
| 11564 | return yyrc;
|
|---|
| 11565 | }
|
|---|
| 11566 |
|
|---|
| 11567 | #undef DrgVerifyRMF
|
|---|
| 11568 | #define DrgVerifyRMF _DrgVerifyRMF
|
|---|
| 11569 |
|
|---|
| 11570 | inline BOOL _DrgVerifyTrueType(PDRAGITEM a, PCSZ b)
|
|---|
| 11571 | {
|
|---|
| 11572 | BOOL yyrc;
|
|---|
| 11573 | USHORT sel = RestoreOS2FS();
|
|---|
| 11574 |
|
|---|
| 11575 | yyrc = DrgVerifyTrueType(a, b);
|
|---|
| 11576 | SetFS(sel);
|
|---|
| 11577 |
|
|---|
| 11578 | return yyrc;
|
|---|
| 11579 | }
|
|---|
| 11580 |
|
|---|
| 11581 | #undef DrgVerifyTrueType
|
|---|
| 11582 | #define DrgVerifyTrueType _DrgVerifyTrueType
|
|---|
| 11583 |
|
|---|
| 11584 | inline BOOL _DrgVerifyType(PDRAGITEM a, PCSZ b)
|
|---|
| 11585 | {
|
|---|
| 11586 | BOOL yyrc;
|
|---|
| 11587 | USHORT sel = RestoreOS2FS();
|
|---|
| 11588 |
|
|---|
| 11589 | yyrc = DrgVerifyType(a, b);
|
|---|
| 11590 | SetFS(sel);
|
|---|
| 11591 |
|
|---|
| 11592 | return yyrc;
|
|---|
| 11593 | }
|
|---|
| 11594 |
|
|---|
| 11595 | #undef DrgVerifyType
|
|---|
| 11596 | #define DrgVerifyType _DrgVerifyType
|
|---|
| 11597 |
|
|---|
| 11598 | inline BOOL _DrgVerifyTypeSet(PDRAGITEM a, PCSZ b, ULONG c, PSZ d)
|
|---|
| 11599 | {
|
|---|
| 11600 | BOOL yyrc;
|
|---|
| 11601 | USHORT sel = RestoreOS2FS();
|
|---|
| 11602 |
|
|---|
| 11603 | yyrc = DrgVerifyTypeSet(a, b, c, d);
|
|---|
| 11604 | SetFS(sel);
|
|---|
| 11605 |
|
|---|
| 11606 | return yyrc;
|
|---|
| 11607 | }
|
|---|
| 11608 |
|
|---|
| 11609 | #undef DrgVerifyTypeSet
|
|---|
| 11610 | #define DrgVerifyTypeSet _DrgVerifyTypeSet
|
|---|
| 11611 |
|
|---|
| 11612 | #endif
|
|---|
| 11613 | #ifdef INCL_WPCLASS
|
|---|
| 11614 | inline HOBJECT _WinCopyObject(HOBJECT a, HOBJECT b, ULONG c)
|
|---|
| 11615 | {
|
|---|
| 11616 | HOBJECT yyrc;
|
|---|
| 11617 | USHORT sel = RestoreOS2FS();
|
|---|
| 11618 |
|
|---|
| 11619 | yyrc = WinCopyObject(a, b, c);
|
|---|
| 11620 | SetFS(sel);
|
|---|
| 11621 |
|
|---|
| 11622 | return yyrc;
|
|---|
| 11623 | }
|
|---|
| 11624 |
|
|---|
| 11625 | #undef WinCopyObject
|
|---|
| 11626 | #define WinCopyObject _WinCopyObject
|
|---|
| 11627 |
|
|---|
| 11628 | inline HOBJECT _WinCreateObject(PCSZ a, PCSZ b, PCSZ c, PCSZ d, ULONG e)
|
|---|
| 11629 | {
|
|---|
| 11630 | HOBJECT yyrc;
|
|---|
| 11631 | USHORT sel = RestoreOS2FS();
|
|---|
| 11632 |
|
|---|
| 11633 | yyrc = WinCreateObject(a, b, c, d, e);
|
|---|
| 11634 | SetFS(sel);
|
|---|
| 11635 |
|
|---|
| 11636 | return yyrc;
|
|---|
| 11637 | }
|
|---|
| 11638 |
|
|---|
| 11639 | #undef WinCreateObject
|
|---|
| 11640 | #define WinCreateObject _WinCreateObject
|
|---|
| 11641 |
|
|---|
| 11642 | inline HOBJECT _WinCreateShadow(HOBJECT a, HOBJECT b, ULONG c)
|
|---|
| 11643 | {
|
|---|
| 11644 | HOBJECT yyrc;
|
|---|
| 11645 | USHORT sel = RestoreOS2FS();
|
|---|
| 11646 |
|
|---|
| 11647 | yyrc = WinCreateShadow(a, b, c);
|
|---|
| 11648 | SetFS(sel);
|
|---|
| 11649 |
|
|---|
| 11650 | return yyrc;
|
|---|
| 11651 | }
|
|---|
| 11652 |
|
|---|
| 11653 | #undef WinCreateShadow
|
|---|
| 11654 | #define WinCreateShadow _WinCreateShadow
|
|---|
| 11655 |
|
|---|
| 11656 | inline BOOL _WinDeregisterObjectClass(PCSZ a)
|
|---|
| 11657 | {
|
|---|
| 11658 | BOOL yyrc;
|
|---|
| 11659 | USHORT sel = RestoreOS2FS();
|
|---|
| 11660 |
|
|---|
| 11661 | yyrc = WinDeregisterObjectClass(a);
|
|---|
| 11662 | SetFS(sel);
|
|---|
| 11663 |
|
|---|
| 11664 | return yyrc;
|
|---|
| 11665 | }
|
|---|
| 11666 |
|
|---|
| 11667 | #undef WinDeregisterObjectClass
|
|---|
| 11668 | #define WinDeregisterObjectClass _WinDeregisterObjectClass
|
|---|
| 11669 |
|
|---|
| 11670 | inline BOOL _WinDestroyObject(HOBJECT a)
|
|---|
| 11671 | {
|
|---|
| 11672 | BOOL yyrc;
|
|---|
| 11673 | USHORT sel = RestoreOS2FS();
|
|---|
| 11674 |
|
|---|
| 11675 | yyrc = WinDestroyObject(a);
|
|---|
| 11676 | SetFS(sel);
|
|---|
| 11677 |
|
|---|
| 11678 | return yyrc;
|
|---|
| 11679 | }
|
|---|
| 11680 |
|
|---|
| 11681 | #undef WinDestroyObject
|
|---|
| 11682 | #define WinDestroyObject _WinDestroyObject
|
|---|
| 11683 |
|
|---|
| 11684 | inline BOOL _WinEnumObjectClasses(POBJCLASS a, PULONG b)
|
|---|
| 11685 | {
|
|---|
| 11686 | BOOL yyrc;
|
|---|
| 11687 | USHORT sel = RestoreOS2FS();
|
|---|
| 11688 |
|
|---|
| 11689 | yyrc = WinEnumObjectClasses(a, b);
|
|---|
| 11690 | SetFS(sel);
|
|---|
| 11691 |
|
|---|
| 11692 | return yyrc;
|
|---|
| 11693 | }
|
|---|
| 11694 |
|
|---|
| 11695 | #undef WinEnumObjectClasses
|
|---|
| 11696 | #define WinEnumObjectClasses _WinEnumObjectClasses
|
|---|
| 11697 |
|
|---|
| 11698 | inline BOOL _WinIsSOMDDReady()
|
|---|
| 11699 | {
|
|---|
| 11700 | BOOL yyrc;
|
|---|
| 11701 | USHORT sel = RestoreOS2FS();
|
|---|
| 11702 |
|
|---|
| 11703 | yyrc = WinIsSOMDDReady();
|
|---|
| 11704 | SetFS(sel);
|
|---|
| 11705 |
|
|---|
| 11706 | return yyrc;
|
|---|
| 11707 | }
|
|---|
| 11708 |
|
|---|
| 11709 | #undef WinIsSOMDDReady
|
|---|
| 11710 | #define WinIsSOMDDReady _WinIsSOMDDReady
|
|---|
| 11711 |
|
|---|
| 11712 | inline BOOL _WinIsWPDServerReady()
|
|---|
| 11713 | {
|
|---|
| 11714 | BOOL yyrc;
|
|---|
| 11715 | USHORT sel = RestoreOS2FS();
|
|---|
| 11716 |
|
|---|
| 11717 | yyrc = WinIsWPDServerReady();
|
|---|
| 11718 | SetFS(sel);
|
|---|
| 11719 |
|
|---|
| 11720 | return yyrc;
|
|---|
| 11721 | }
|
|---|
| 11722 |
|
|---|
| 11723 | #undef WinIsWPDServerReady
|
|---|
| 11724 | #define WinIsWPDServerReady _WinIsWPDServerReady
|
|---|
| 11725 |
|
|---|
| 11726 | inline HOBJECT _WinMoveObject(HOBJECT a, HOBJECT b, ULONG c)
|
|---|
| 11727 | {
|
|---|
| 11728 | HOBJECT yyrc;
|
|---|
| 11729 | USHORT sel = RestoreOS2FS();
|
|---|
| 11730 |
|
|---|
| 11731 | yyrc = WinMoveObject(a, b, c);
|
|---|
| 11732 | SetFS(sel);
|
|---|
| 11733 |
|
|---|
| 11734 | return yyrc;
|
|---|
| 11735 | }
|
|---|
| 11736 |
|
|---|
| 11737 | #undef WinMoveObject
|
|---|
| 11738 | #define WinMoveObject _WinMoveObject
|
|---|
| 11739 |
|
|---|
| 11740 | inline BOOL _WinOpenObject(HOBJECT a, ULONG b, BOOL c)
|
|---|
| 11741 | {
|
|---|
| 11742 | BOOL yyrc;
|
|---|
| 11743 | USHORT sel = RestoreOS2FS();
|
|---|
| 11744 |
|
|---|
| 11745 | yyrc = WinOpenObject(a, b, c);
|
|---|
| 11746 | SetFS(sel);
|
|---|
| 11747 |
|
|---|
| 11748 | return yyrc;
|
|---|
| 11749 | }
|
|---|
| 11750 |
|
|---|
| 11751 | #undef WinOpenObject
|
|---|
| 11752 | #define WinOpenObject _WinOpenObject
|
|---|
| 11753 |
|
|---|
| 11754 | inline BOOL _WinQueryActiveDesktopPathname(PSZ a, ULONG b)
|
|---|
| 11755 | {
|
|---|
| 11756 | BOOL yyrc;
|
|---|
| 11757 | USHORT sel = RestoreOS2FS();
|
|---|
| 11758 |
|
|---|
| 11759 | yyrc = WinQueryActiveDesktopPathname(a, b);
|
|---|
| 11760 | SetFS(sel);
|
|---|
| 11761 |
|
|---|
| 11762 | return yyrc;
|
|---|
| 11763 | }
|
|---|
| 11764 |
|
|---|
| 11765 | #undef WinQueryActiveDesktopPathname
|
|---|
| 11766 | #define WinQueryActiveDesktopPathname _WinQueryActiveDesktopPathname
|
|---|
| 11767 |
|
|---|
| 11768 | inline HOBJECT _WinQueryObject(PCSZ a)
|
|---|
| 11769 | {
|
|---|
| 11770 | HOBJECT yyrc;
|
|---|
| 11771 | USHORT sel = RestoreOS2FS();
|
|---|
| 11772 |
|
|---|
| 11773 | yyrc = WinQueryObject(a);
|
|---|
| 11774 | SetFS(sel);
|
|---|
| 11775 |
|
|---|
| 11776 | return yyrc;
|
|---|
| 11777 | }
|
|---|
| 11778 |
|
|---|
| 11779 | #undef WinQueryObject
|
|---|
| 11780 | #define WinQueryObject _WinQueryObject
|
|---|
| 11781 |
|
|---|
| 11782 | inline BOOL _WinQueryObjectPath(HOBJECT a, PSZ b, ULONG c)
|
|---|
| 11783 | {
|
|---|
| 11784 | BOOL yyrc;
|
|---|
| 11785 | USHORT sel = RestoreOS2FS();
|
|---|
| 11786 |
|
|---|
| 11787 | yyrc = WinQueryObjectPath(a, b, c);
|
|---|
| 11788 | SetFS(sel);
|
|---|
| 11789 |
|
|---|
| 11790 | return yyrc;
|
|---|
| 11791 | }
|
|---|
| 11792 |
|
|---|
| 11793 | #undef WinQueryObjectPath
|
|---|
| 11794 | #define WinQueryObjectPath _WinQueryObjectPath
|
|---|
| 11795 |
|
|---|
| 11796 | inline BOOL _WinRegisterObjectClass(PCSZ a, PCSZ b)
|
|---|
| 11797 | {
|
|---|
| 11798 | BOOL yyrc;
|
|---|
| 11799 | USHORT sel = RestoreOS2FS();
|
|---|
| 11800 |
|
|---|
| 11801 | yyrc = WinRegisterObjectClass(a, b);
|
|---|
| 11802 | SetFS(sel);
|
|---|
| 11803 |
|
|---|
| 11804 | return yyrc;
|
|---|
| 11805 | }
|
|---|
| 11806 |
|
|---|
| 11807 | #undef WinRegisterObjectClass
|
|---|
| 11808 | #define WinRegisterObjectClass _WinRegisterObjectClass
|
|---|
| 11809 |
|
|---|
| 11810 | inline BOOL _WinReplaceObjectClass(PCSZ a, PCSZ b, BOOL c)
|
|---|
| 11811 | {
|
|---|
| 11812 | BOOL yyrc;
|
|---|
| 11813 | USHORT sel = RestoreOS2FS();
|
|---|
| 11814 |
|
|---|
| 11815 | yyrc = WinReplaceObjectClass(a, b, c);
|
|---|
| 11816 | SetFS(sel);
|
|---|
| 11817 |
|
|---|
| 11818 | return yyrc;
|
|---|
| 11819 | }
|
|---|
| 11820 |
|
|---|
| 11821 | #undef WinReplaceObjectClass
|
|---|
| 11822 | #define WinReplaceObjectClass _WinReplaceObjectClass
|
|---|
| 11823 |
|
|---|
| 11824 | inline ULONG _WinRestartSOMDD(BOOL a)
|
|---|
| 11825 | {
|
|---|
| 11826 | ULONG yyrc;
|
|---|
| 11827 | USHORT sel = RestoreOS2FS();
|
|---|
| 11828 |
|
|---|
| 11829 | yyrc = WinRestartSOMDD(a);
|
|---|
| 11830 | SetFS(sel);
|
|---|
| 11831 |
|
|---|
| 11832 | return yyrc;
|
|---|
| 11833 | }
|
|---|
| 11834 |
|
|---|
| 11835 | #undef WinRestartSOMDD
|
|---|
| 11836 | #define WinRestartSOMDD _WinRestartSOMDD
|
|---|
| 11837 |
|
|---|
| 11838 | inline ULONG _WinRestartWPDServer(BOOL a)
|
|---|
| 11839 | {
|
|---|
| 11840 | ULONG yyrc;
|
|---|
| 11841 | USHORT sel = RestoreOS2FS();
|
|---|
| 11842 |
|
|---|
| 11843 | yyrc = WinRestartWPDServer(a);
|
|---|
| 11844 | SetFS(sel);
|
|---|
| 11845 |
|
|---|
| 11846 | return yyrc;
|
|---|
| 11847 | }
|
|---|
| 11848 |
|
|---|
| 11849 | #undef WinRestartWPDServer
|
|---|
| 11850 | #define WinRestartWPDServer _WinRestartWPDServer
|
|---|
| 11851 |
|
|---|
| 11852 | inline BOOL _WinSaveObject(HOBJECT a, BOOL b)
|
|---|
| 11853 | {
|
|---|
| 11854 | BOOL yyrc;
|
|---|
| 11855 | USHORT sel = RestoreOS2FS();
|
|---|
| 11856 |
|
|---|
| 11857 | yyrc = WinSaveObject(a, b);
|
|---|
| 11858 | SetFS(sel);
|
|---|
| 11859 |
|
|---|
| 11860 | return yyrc;
|
|---|
| 11861 | }
|
|---|
| 11862 |
|
|---|
| 11863 | #undef WinSaveObject
|
|---|
| 11864 | #define WinSaveObject _WinSaveObject
|
|---|
| 11865 |
|
|---|
| 11866 | inline BOOL _WinSetObjectData(HOBJECT a, PCSZ b)
|
|---|
| 11867 | {
|
|---|
| 11868 | BOOL yyrc;
|
|---|
| 11869 | USHORT sel = RestoreOS2FS();
|
|---|
| 11870 |
|
|---|
| 11871 | yyrc = WinSetObjectData(a, b);
|
|---|
| 11872 | SetFS(sel);
|
|---|
| 11873 |
|
|---|
| 11874 | return yyrc;
|
|---|
| 11875 | }
|
|---|
| 11876 |
|
|---|
| 11877 | #undef WinSetObjectData
|
|---|
| 11878 | #define WinSetObjectData _WinSetObjectData
|
|---|
| 11879 |
|
|---|
| 11880 | inline BOOL _WinFreeFileIcon(HPOINTER a)
|
|---|
| 11881 | {
|
|---|
| 11882 | BOOL yyrc;
|
|---|
| 11883 | USHORT sel = RestoreOS2FS();
|
|---|
| 11884 |
|
|---|
| 11885 | yyrc = WinFreeFileIcon(a);
|
|---|
| 11886 | SetFS(sel);
|
|---|
| 11887 |
|
|---|
| 11888 | return yyrc;
|
|---|
| 11889 | }
|
|---|
| 11890 |
|
|---|
| 11891 | #undef WinFreeFileIcon
|
|---|
| 11892 | #define WinFreeFileIcon _WinFreeFileIcon
|
|---|
| 11893 |
|
|---|
| 11894 | inline HPOINTER _WinLoadFileIcon(PCSZ a, BOOL b)
|
|---|
| 11895 | {
|
|---|
| 11896 | HPOINTER yyrc;
|
|---|
| 11897 | USHORT sel = RestoreOS2FS();
|
|---|
| 11898 |
|
|---|
| 11899 | yyrc = WinLoadFileIcon(a, b);
|
|---|
| 11900 | SetFS(sel);
|
|---|
| 11901 |
|
|---|
| 11902 | return yyrc;
|
|---|
| 11903 | }
|
|---|
| 11904 |
|
|---|
| 11905 | #undef WinLoadFileIcon
|
|---|
| 11906 | #define WinLoadFileIcon _WinLoadFileIcon
|
|---|
| 11907 |
|
|---|
| 11908 | inline BOOL _WinRestoreWindowPos(PCSZ a, PCSZ b, HWND c)
|
|---|
| 11909 | {
|
|---|
| 11910 | BOOL yyrc;
|
|---|
| 11911 | USHORT sel = RestoreOS2FS();
|
|---|
| 11912 |
|
|---|
| 11913 | yyrc = WinRestoreWindowPos(a, b, c);
|
|---|
| 11914 | SetFS(sel);
|
|---|
| 11915 |
|
|---|
| 11916 | return yyrc;
|
|---|
| 11917 | }
|
|---|
| 11918 |
|
|---|
| 11919 | #undef WinRestoreWindowPos
|
|---|
| 11920 | #define WinRestoreWindowPos _WinRestoreWindowPos
|
|---|
| 11921 |
|
|---|
| 11922 | inline BOOL _WinSetFileIcon(PCSZ a, PICONINFO b)
|
|---|
| 11923 | {
|
|---|
| 11924 | BOOL yyrc;
|
|---|
| 11925 | USHORT sel = RestoreOS2FS();
|
|---|
| 11926 |
|
|---|
| 11927 | yyrc = WinSetFileIcon(a, b);
|
|---|
| 11928 | SetFS(sel);
|
|---|
| 11929 |
|
|---|
| 11930 | return yyrc;
|
|---|
| 11931 | }
|
|---|
| 11932 |
|
|---|
| 11933 | #undef WinSetFileIcon
|
|---|
| 11934 | #define WinSetFileIcon _WinSetFileIcon
|
|---|
| 11935 |
|
|---|
| 11936 | inline BOOL _WinShutdownSystem(HAB a, HMQ b)
|
|---|
| 11937 | {
|
|---|
| 11938 | BOOL yyrc;
|
|---|
| 11939 | USHORT sel = RestoreOS2FS();
|
|---|
| 11940 |
|
|---|
| 11941 | yyrc = WinShutdownSystem(a, b);
|
|---|
| 11942 | SetFS(sel);
|
|---|
| 11943 |
|
|---|
| 11944 | return yyrc;
|
|---|
| 11945 | }
|
|---|
| 11946 |
|
|---|
| 11947 | #undef WinShutdownSystem
|
|---|
| 11948 | #define WinShutdownSystem _WinShutdownSystem
|
|---|
| 11949 |
|
|---|
| 11950 | inline BOOL _WinStoreWindowPos(PCSZ a, PCSZ b, HWND c)
|
|---|
| 11951 | {
|
|---|
| 11952 | BOOL yyrc;
|
|---|
| 11953 | USHORT sel = RestoreOS2FS();
|
|---|
| 11954 |
|
|---|
| 11955 | yyrc = WinStoreWindowPos(a, b, c);
|
|---|
| 11956 | SetFS(sel);
|
|---|
| 11957 |
|
|---|
| 11958 | return yyrc;
|
|---|
| 11959 | }
|
|---|
| 11960 |
|
|---|
| 11961 | #undef WinStoreWindowPos
|
|---|
| 11962 | #define WinStoreWindowPos _WinStoreWindowPos
|
|---|
| 11963 |
|
|---|
| 11964 | #endif
|
|---|
| 11965 | #ifdef INCL_SPL
|
|---|
| 11966 | inline BOOL _SplStdClose(HDC a)
|
|---|
| 11967 | {
|
|---|
| 11968 | BOOL yyrc;
|
|---|
| 11969 | USHORT sel = RestoreOS2FS();
|
|---|
| 11970 |
|
|---|
| 11971 | yyrc = SplStdClose(a);
|
|---|
| 11972 | SetFS(sel);
|
|---|
| 11973 |
|
|---|
| 11974 | return yyrc;
|
|---|
| 11975 | }
|
|---|
| 11976 |
|
|---|
| 11977 | #undef SplStdClose
|
|---|
| 11978 | #define SplStdClose _SplStdClose
|
|---|
| 11979 |
|
|---|
| 11980 | inline BOOL _SplStdDelete(HSTD a)
|
|---|
| 11981 | {
|
|---|
| 11982 | BOOL yyrc;
|
|---|
| 11983 | USHORT sel = RestoreOS2FS();
|
|---|
| 11984 |
|
|---|
| 11985 | yyrc = SplStdDelete(a);
|
|---|
| 11986 | SetFS(sel);
|
|---|
| 11987 |
|
|---|
| 11988 | return yyrc;
|
|---|
| 11989 | }
|
|---|
| 11990 |
|
|---|
| 11991 | #undef SplStdDelete
|
|---|
| 11992 | #define SplStdDelete _SplStdDelete
|
|---|
| 11993 |
|
|---|
| 11994 | inline BOOL _SplStdGetBits(HSTD a, LONG b, LONG c, PCH d)
|
|---|
| 11995 | {
|
|---|
| 11996 | BOOL yyrc;
|
|---|
| 11997 | USHORT sel = RestoreOS2FS();
|
|---|
| 11998 |
|
|---|
| 11999 | yyrc = SplStdGetBits(a, b, c, d);
|
|---|
| 12000 | SetFS(sel);
|
|---|
| 12001 |
|
|---|
| 12002 | return yyrc;
|
|---|
| 12003 | }
|
|---|
| 12004 |
|
|---|
| 12005 | #undef SplStdGetBits
|
|---|
| 12006 | #define SplStdGetBits _SplStdGetBits
|
|---|
| 12007 |
|
|---|
| 12008 | inline BOOL _SplStdOpen(HDC a)
|
|---|
| 12009 | {
|
|---|
| 12010 | BOOL yyrc;
|
|---|
| 12011 | USHORT sel = RestoreOS2FS();
|
|---|
| 12012 |
|
|---|
| 12013 | yyrc = SplStdOpen(a);
|
|---|
| 12014 | SetFS(sel);
|
|---|
| 12015 |
|
|---|
| 12016 | return yyrc;
|
|---|
| 12017 | }
|
|---|
| 12018 |
|
|---|
| 12019 | #undef SplStdOpen
|
|---|
| 12020 | #define SplStdOpen _SplStdOpen
|
|---|
| 12021 |
|
|---|
| 12022 | inline LONG _SplStdQueryLength(HSTD a)
|
|---|
| 12023 | {
|
|---|
| 12024 | LONG yyrc;
|
|---|
| 12025 | USHORT sel = RestoreOS2FS();
|
|---|
| 12026 |
|
|---|
| 12027 | yyrc = SplStdQueryLength(a);
|
|---|
| 12028 | SetFS(sel);
|
|---|
| 12029 |
|
|---|
| 12030 | return yyrc;
|
|---|
| 12031 | }
|
|---|
| 12032 |
|
|---|
| 12033 | #undef SplStdQueryLength
|
|---|
| 12034 | #define SplStdQueryLength _SplStdQueryLength
|
|---|
| 12035 |
|
|---|
| 12036 | inline BOOL _SplStdStart(HDC a)
|
|---|
| 12037 | {
|
|---|
| 12038 | BOOL yyrc;
|
|---|
| 12039 | USHORT sel = RestoreOS2FS();
|
|---|
| 12040 |
|
|---|
| 12041 | yyrc = SplStdStart(a);
|
|---|
| 12042 | SetFS(sel);
|
|---|
| 12043 |
|
|---|
| 12044 | return yyrc;
|
|---|
| 12045 | }
|
|---|
| 12046 |
|
|---|
| 12047 | #undef SplStdStart
|
|---|
| 12048 | #define SplStdStart _SplStdStart
|
|---|
| 12049 |
|
|---|
| 12050 | inline HSTD _SplStdStop(HDC a)
|
|---|
| 12051 | {
|
|---|
| 12052 | HSTD yyrc;
|
|---|
| 12053 | USHORT sel = RestoreOS2FS();
|
|---|
| 12054 |
|
|---|
| 12055 | yyrc = SplStdStop(a);
|
|---|
| 12056 | SetFS(sel);
|
|---|
| 12057 |
|
|---|
| 12058 | return yyrc;
|
|---|
| 12059 | }
|
|---|
| 12060 |
|
|---|
| 12061 | #undef SplStdStop
|
|---|
| 12062 | #define SplStdStop _SplStdStop
|
|---|
| 12063 |
|
|---|
| 12064 | inline SPLERR _SplControlDevice(PSZ a, PSZ b, ULONG c)
|
|---|
| 12065 | {
|
|---|
| 12066 | SPLERR yyrc;
|
|---|
| 12067 | USHORT sel = RestoreOS2FS();
|
|---|
| 12068 |
|
|---|
| 12069 | yyrc = SplControlDevice(a, b, c);
|
|---|
| 12070 | SetFS(sel);
|
|---|
| 12071 |
|
|---|
| 12072 | return yyrc;
|
|---|
| 12073 | }
|
|---|
| 12074 |
|
|---|
| 12075 | #undef SplControlDevice
|
|---|
| 12076 | #define SplControlDevice _SplControlDevice
|
|---|
| 12077 |
|
|---|
| 12078 | inline SPLERR _SplCopyJob(PCSZ a, PCSZ b, ULONG c, PCSZ d, PCSZ e, PULONG f)
|
|---|
| 12079 | {
|
|---|
| 12080 | SPLERR yyrc;
|
|---|
| 12081 | USHORT sel = RestoreOS2FS();
|
|---|
| 12082 |
|
|---|
| 12083 | yyrc = SplCopyJob(a, b, c, d, e, f);
|
|---|
| 12084 | SetFS(sel);
|
|---|
| 12085 |
|
|---|
| 12086 | return yyrc;
|
|---|
| 12087 | }
|
|---|
| 12088 |
|
|---|
| 12089 | #undef SplCopyJob
|
|---|
| 12090 | #define SplCopyJob _SplCopyJob
|
|---|
| 12091 |
|
|---|
| 12092 | inline SPLERR _SplCreateDevice(PSZ a, ULONG b, PVOID c, ULONG d)
|
|---|
| 12093 | {
|
|---|
| 12094 | SPLERR yyrc;
|
|---|
| 12095 | USHORT sel = RestoreOS2FS();
|
|---|
| 12096 |
|
|---|
| 12097 | yyrc = SplCreateDevice(a, b, c, d);
|
|---|
| 12098 | SetFS(sel);
|
|---|
| 12099 |
|
|---|
| 12100 | return yyrc;
|
|---|
| 12101 | }
|
|---|
| 12102 |
|
|---|
| 12103 | #undef SplCreateDevice
|
|---|
| 12104 | #define SplCreateDevice _SplCreateDevice
|
|---|
| 12105 |
|
|---|
| 12106 | inline SPLERR _SplCreatePort(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f)
|
|---|
| 12107 | {
|
|---|
| 12108 | SPLERR yyrc;
|
|---|
| 12109 | USHORT sel = RestoreOS2FS();
|
|---|
| 12110 |
|
|---|
| 12111 | yyrc = SplCreatePort(a, b, c, d, e, f);
|
|---|
| 12112 | SetFS(sel);
|
|---|
| 12113 |
|
|---|
| 12114 | return yyrc;
|
|---|
| 12115 | }
|
|---|
| 12116 |
|
|---|
| 12117 | #undef SplCreatePort
|
|---|
| 12118 | #define SplCreatePort _SplCreatePort
|
|---|
| 12119 |
|
|---|
| 12120 | inline SPLERR _SplCreateQueue(PSZ a, ULONG b, PVOID c, ULONG d)
|
|---|
| 12121 | {
|
|---|
| 12122 | SPLERR yyrc;
|
|---|
| 12123 | USHORT sel = RestoreOS2FS();
|
|---|
| 12124 |
|
|---|
| 12125 | yyrc = SplCreateQueue(a, b, c, d);
|
|---|
| 12126 | SetFS(sel);
|
|---|
| 12127 |
|
|---|
| 12128 | return yyrc;
|
|---|
| 12129 | }
|
|---|
| 12130 |
|
|---|
| 12131 | #undef SplCreateQueue
|
|---|
| 12132 | #define SplCreateQueue _SplCreateQueue
|
|---|
| 12133 |
|
|---|
| 12134 | inline SPLERR _SplDeleteDevice(PSZ a, PSZ b)
|
|---|
| 12135 | {
|
|---|
| 12136 | SPLERR yyrc;
|
|---|
| 12137 | USHORT sel = RestoreOS2FS();
|
|---|
| 12138 |
|
|---|
| 12139 | yyrc = SplDeleteDevice(a, b);
|
|---|
| 12140 | SetFS(sel);
|
|---|
| 12141 |
|
|---|
| 12142 | return yyrc;
|
|---|
| 12143 | }
|
|---|
| 12144 |
|
|---|
| 12145 | #undef SplDeleteDevice
|
|---|
| 12146 | #define SplDeleteDevice _SplDeleteDevice
|
|---|
| 12147 |
|
|---|
| 12148 | inline SPLERR _SplDeleteJob(PSZ a, PSZ b, ULONG c)
|
|---|
| 12149 | {
|
|---|
| 12150 | SPLERR yyrc;
|
|---|
| 12151 | USHORT sel = RestoreOS2FS();
|
|---|
| 12152 |
|
|---|
| 12153 | yyrc = SplDeleteJob(a, b, c);
|
|---|
| 12154 | SetFS(sel);
|
|---|
| 12155 |
|
|---|
| 12156 | return yyrc;
|
|---|
| 12157 | }
|
|---|
| 12158 |
|
|---|
| 12159 | #undef SplDeleteJob
|
|---|
| 12160 | #define SplDeleteJob _SplDeleteJob
|
|---|
| 12161 |
|
|---|
| 12162 | inline SPLERR _SplDeletePort(PCSZ a, PCSZ b)
|
|---|
| 12163 | {
|
|---|
| 12164 | SPLERR yyrc;
|
|---|
| 12165 | USHORT sel = RestoreOS2FS();
|
|---|
| 12166 |
|
|---|
| 12167 | yyrc = SplDeletePort(a, b);
|
|---|
| 12168 | SetFS(sel);
|
|---|
| 12169 |
|
|---|
| 12170 | return yyrc;
|
|---|
| 12171 | }
|
|---|
| 12172 |
|
|---|
| 12173 | #undef SplDeletePort
|
|---|
| 12174 | #define SplDeletePort _SplDeletePort
|
|---|
| 12175 |
|
|---|
| 12176 | inline SPLERR _SplDeleteQueue(PSZ a, PSZ b)
|
|---|
| 12177 | {
|
|---|
| 12178 | SPLERR yyrc;
|
|---|
| 12179 | USHORT sel = RestoreOS2FS();
|
|---|
| 12180 |
|
|---|
| 12181 | yyrc = SplDeleteQueue(a, b);
|
|---|
| 12182 | SetFS(sel);
|
|---|
| 12183 |
|
|---|
| 12184 | return yyrc;
|
|---|
| 12185 | }
|
|---|
| 12186 |
|
|---|
| 12187 | #undef SplDeleteQueue
|
|---|
| 12188 | #define SplDeleteQueue _SplDeleteQueue
|
|---|
| 12189 |
|
|---|
| 12190 | inline SPLERR _SplEnumDevice(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
|
|---|
| 12191 | {
|
|---|
| 12192 | SPLERR yyrc;
|
|---|
| 12193 | USHORT sel = RestoreOS2FS();
|
|---|
| 12194 |
|
|---|
| 12195 | yyrc = SplEnumDevice(a, b, c, d, e, f, g, h);
|
|---|
| 12196 | SetFS(sel);
|
|---|
| 12197 |
|
|---|
| 12198 | return yyrc;
|
|---|
| 12199 | }
|
|---|
| 12200 |
|
|---|
| 12201 | #undef SplEnumDevice
|
|---|
| 12202 | #define SplEnumDevice _SplEnumDevice
|
|---|
| 12203 |
|
|---|
| 12204 | inline SPLERR _SplEnumDriver(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
|
|---|
| 12205 | {
|
|---|
| 12206 | SPLERR yyrc;
|
|---|
| 12207 | USHORT sel = RestoreOS2FS();
|
|---|
| 12208 |
|
|---|
| 12209 | yyrc = SplEnumDriver(a, b, c, d, e, f, g, h);
|
|---|
| 12210 | SetFS(sel);
|
|---|
| 12211 |
|
|---|
| 12212 | return yyrc;
|
|---|
| 12213 | }
|
|---|
| 12214 |
|
|---|
| 12215 | #undef SplEnumDriver
|
|---|
| 12216 | #define SplEnumDriver _SplEnumDriver
|
|---|
| 12217 |
|
|---|
| 12218 | inline SPLERR _SplEnumJob(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f, PULONG g, PULONG h, PVOID i)
|
|---|
| 12219 | {
|
|---|
| 12220 | SPLERR yyrc;
|
|---|
| 12221 | USHORT sel = RestoreOS2FS();
|
|---|
| 12222 |
|
|---|
| 12223 | yyrc = SplEnumJob(a, b, c, d, e, f, g, h, i);
|
|---|
| 12224 | SetFS(sel);
|
|---|
| 12225 |
|
|---|
| 12226 | return yyrc;
|
|---|
| 12227 | }
|
|---|
| 12228 |
|
|---|
| 12229 | #undef SplEnumJob
|
|---|
| 12230 | #define SplEnumJob _SplEnumJob
|
|---|
| 12231 |
|
|---|
| 12232 | inline SPLERR _SplEnumPort(PCSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
|
|---|
| 12233 | {
|
|---|
| 12234 | SPLERR yyrc;
|
|---|
| 12235 | USHORT sel = RestoreOS2FS();
|
|---|
| 12236 |
|
|---|
| 12237 | yyrc = SplEnumPort(a, b, c, d, e, f, g, h);
|
|---|
| 12238 | SetFS(sel);
|
|---|
| 12239 |
|
|---|
| 12240 | return yyrc;
|
|---|
| 12241 | }
|
|---|
| 12242 |
|
|---|
| 12243 | #undef SplEnumPort
|
|---|
| 12244 | #define SplEnumPort _SplEnumPort
|
|---|
| 12245 |
|
|---|
| 12246 | inline SPLERR _SplEnumPrinter(PSZ a, ULONG b, ULONG c, PVOID d, ULONG e, PULONG f, PULONG g, PULONG h, PVOID i)
|
|---|
| 12247 | {
|
|---|
| 12248 | SPLERR yyrc;
|
|---|
| 12249 | USHORT sel = RestoreOS2FS();
|
|---|
| 12250 |
|
|---|
| 12251 | yyrc = SplEnumPrinter(a, b, c, d, e, f, g, h, i);
|
|---|
| 12252 | SetFS(sel);
|
|---|
| 12253 |
|
|---|
| 12254 | return yyrc;
|
|---|
| 12255 | }
|
|---|
| 12256 |
|
|---|
| 12257 | #undef SplEnumPrinter
|
|---|
| 12258 | #define SplEnumPrinter _SplEnumPrinter
|
|---|
| 12259 |
|
|---|
| 12260 | inline SPLERR _SplEnumQueue(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
|
|---|
| 12261 | {
|
|---|
| 12262 | SPLERR yyrc;
|
|---|
| 12263 | USHORT sel = RestoreOS2FS();
|
|---|
| 12264 |
|
|---|
| 12265 | yyrc = SplEnumQueue(a, b, c, d, e, f, g, h);
|
|---|
| 12266 | SetFS(sel);
|
|---|
| 12267 |
|
|---|
| 12268 | return yyrc;
|
|---|
| 12269 | }
|
|---|
| 12270 |
|
|---|
| 12271 | #undef SplEnumQueue
|
|---|
| 12272 | #define SplEnumQueue _SplEnumQueue
|
|---|
| 12273 |
|
|---|
| 12274 | inline SPLERR _SplEnumQueueProcessor(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
|
|---|
| 12275 | {
|
|---|
| 12276 | SPLERR yyrc;
|
|---|
| 12277 | USHORT sel = RestoreOS2FS();
|
|---|
| 12278 |
|
|---|
| 12279 | yyrc = SplEnumQueueProcessor(a, b, c, d, e, f, g, h);
|
|---|
| 12280 | SetFS(sel);
|
|---|
| 12281 |
|
|---|
| 12282 | return yyrc;
|
|---|
| 12283 | }
|
|---|
| 12284 |
|
|---|
| 12285 | #undef SplEnumQueueProcessor
|
|---|
| 12286 | #define SplEnumQueueProcessor _SplEnumQueueProcessor
|
|---|
| 12287 |
|
|---|
| 12288 | inline SPLERR _SplHoldJob(PCSZ a, PCSZ b, ULONG c)
|
|---|
| 12289 | {
|
|---|
| 12290 | SPLERR yyrc;
|
|---|
| 12291 | USHORT sel = RestoreOS2FS();
|
|---|
| 12292 |
|
|---|
| 12293 | yyrc = SplHoldJob(a, b, c);
|
|---|
| 12294 | SetFS(sel);
|
|---|
| 12295 |
|
|---|
| 12296 | return yyrc;
|
|---|
| 12297 | }
|
|---|
| 12298 |
|
|---|
| 12299 | #undef SplHoldJob
|
|---|
| 12300 | #define SplHoldJob _SplHoldJob
|
|---|
| 12301 |
|
|---|
| 12302 | inline SPLERR _SplHoldQueue(PSZ a, PSZ b)
|
|---|
| 12303 | {
|
|---|
| 12304 | SPLERR yyrc;
|
|---|
| 12305 | USHORT sel = RestoreOS2FS();
|
|---|
| 12306 |
|
|---|
| 12307 | yyrc = SplHoldQueue(a, b);
|
|---|
| 12308 | SetFS(sel);
|
|---|
| 12309 |
|
|---|
| 12310 | return yyrc;
|
|---|
| 12311 | }
|
|---|
| 12312 |
|
|---|
| 12313 | #undef SplHoldQueue
|
|---|
| 12314 | #define SplHoldQueue _SplHoldQueue
|
|---|
| 12315 |
|
|---|
| 12316 | inline SPLERR _SplPurgeQueue(PSZ a, PSZ b)
|
|---|
| 12317 | {
|
|---|
| 12318 | SPLERR yyrc;
|
|---|
| 12319 | USHORT sel = RestoreOS2FS();
|
|---|
| 12320 |
|
|---|
| 12321 | yyrc = SplPurgeQueue(a, b);
|
|---|
| 12322 | SetFS(sel);
|
|---|
| 12323 |
|
|---|
| 12324 | return yyrc;
|
|---|
| 12325 | }
|
|---|
| 12326 |
|
|---|
| 12327 | #undef SplPurgeQueue
|
|---|
| 12328 | #define SplPurgeQueue _SplPurgeQueue
|
|---|
| 12329 |
|
|---|
| 12330 | inline SPLERR _SplQueryDevice(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
|
|---|
| 12331 | {
|
|---|
| 12332 | SPLERR yyrc;
|
|---|
| 12333 | USHORT sel = RestoreOS2FS();
|
|---|
| 12334 |
|
|---|
| 12335 | yyrc = SplQueryDevice(a, b, c, d, e, f);
|
|---|
| 12336 | SetFS(sel);
|
|---|
| 12337 |
|
|---|
| 12338 | return yyrc;
|
|---|
| 12339 | }
|
|---|
| 12340 |
|
|---|
| 12341 | #undef SplQueryDevice
|
|---|
| 12342 | #define SplQueryDevice _SplQueryDevice
|
|---|
| 12343 |
|
|---|
| 12344 | inline SPLERR _SplQueryDriver(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f, PULONG g)
|
|---|
| 12345 | {
|
|---|
| 12346 | SPLERR yyrc;
|
|---|
| 12347 | USHORT sel = RestoreOS2FS();
|
|---|
| 12348 |
|
|---|
| 12349 | yyrc = SplQueryDriver(a, b, c, d, e, f, g);
|
|---|
| 12350 | SetFS(sel);
|
|---|
| 12351 |
|
|---|
| 12352 | return yyrc;
|
|---|
| 12353 | }
|
|---|
| 12354 |
|
|---|
| 12355 | #undef SplQueryDriver
|
|---|
| 12356 | #define SplQueryDriver _SplQueryDriver
|
|---|
| 12357 |
|
|---|
| 12358 | inline SPLERR _SplQueryJob(PSZ a, PSZ b, ULONG c, ULONG d, PVOID e, ULONG f, PULONG g)
|
|---|
| 12359 | {
|
|---|
| 12360 | SPLERR yyrc;
|
|---|
| 12361 | USHORT sel = RestoreOS2FS();
|
|---|
| 12362 |
|
|---|
| 12363 | yyrc = SplQueryJob(a, b, c, d, e, f, g);
|
|---|
| 12364 | SetFS(sel);
|
|---|
| 12365 |
|
|---|
| 12366 | return yyrc;
|
|---|
| 12367 | }
|
|---|
| 12368 |
|
|---|
| 12369 | #undef SplQueryJob
|
|---|
| 12370 | #define SplQueryJob _SplQueryJob
|
|---|
| 12371 |
|
|---|
| 12372 | inline SPLERR _SplQueryPort(PCSZ a, PCSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
|
|---|
| 12373 | {
|
|---|
| 12374 | SPLERR yyrc;
|
|---|
| 12375 | USHORT sel = RestoreOS2FS();
|
|---|
| 12376 |
|
|---|
| 12377 | yyrc = SplQueryPort(a, b, c, d, e, f);
|
|---|
| 12378 | SetFS(sel);
|
|---|
| 12379 |
|
|---|
| 12380 | return yyrc;
|
|---|
| 12381 | }
|
|---|
| 12382 |
|
|---|
| 12383 | #undef SplQueryPort
|
|---|
| 12384 | #define SplQueryPort _SplQueryPort
|
|---|
| 12385 |
|
|---|
| 12386 | inline SPLERR _SplQueryQueue(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
|
|---|
| 12387 | {
|
|---|
| 12388 | SPLERR yyrc;
|
|---|
| 12389 | USHORT sel = RestoreOS2FS();
|
|---|
| 12390 |
|
|---|
| 12391 | yyrc = SplQueryQueue(a, b, c, d, e, f);
|
|---|
| 12392 | SetFS(sel);
|
|---|
| 12393 |
|
|---|
| 12394 | return yyrc;
|
|---|
| 12395 | }
|
|---|
| 12396 |
|
|---|
| 12397 | #undef SplQueryQueue
|
|---|
| 12398 | #define SplQueryQueue _SplQueryQueue
|
|---|
| 12399 |
|
|---|
| 12400 | inline SPLERR _SplReleaseJob(PCSZ a, PCSZ b, ULONG c)
|
|---|
| 12401 | {
|
|---|
| 12402 | SPLERR yyrc;
|
|---|
| 12403 | USHORT sel = RestoreOS2FS();
|
|---|
| 12404 |
|
|---|
| 12405 | yyrc = SplReleaseJob(a, b, c);
|
|---|
| 12406 | SetFS(sel);
|
|---|
| 12407 |
|
|---|
| 12408 | return yyrc;
|
|---|
| 12409 | }
|
|---|
| 12410 |
|
|---|
| 12411 | #undef SplReleaseJob
|
|---|
| 12412 | #define SplReleaseJob _SplReleaseJob
|
|---|
| 12413 |
|
|---|
| 12414 | inline SPLERR _SplReleaseQueue(PSZ a, PSZ b)
|
|---|
| 12415 | {
|
|---|
| 12416 | SPLERR yyrc;
|
|---|
| 12417 | USHORT sel = RestoreOS2FS();
|
|---|
| 12418 |
|
|---|
| 12419 | yyrc = SplReleaseQueue(a, b);
|
|---|
| 12420 | SetFS(sel);
|
|---|
| 12421 |
|
|---|
| 12422 | return yyrc;
|
|---|
| 12423 | }
|
|---|
| 12424 |
|
|---|
| 12425 | #undef SplReleaseQueue
|
|---|
| 12426 | #define SplReleaseQueue _SplReleaseQueue
|
|---|
| 12427 |
|
|---|
| 12428 | inline SPLERR _SplSetDevice(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
|
|---|
| 12429 | {
|
|---|
| 12430 | SPLERR yyrc;
|
|---|
| 12431 | USHORT sel = RestoreOS2FS();
|
|---|
| 12432 |
|
|---|
| 12433 | yyrc = SplSetDevice(a, b, c, d, e, f);
|
|---|
| 12434 | SetFS(sel);
|
|---|
| 12435 |
|
|---|
| 12436 | return yyrc;
|
|---|
| 12437 | }
|
|---|
| 12438 |
|
|---|
| 12439 | #undef SplSetDevice
|
|---|
| 12440 | #define SplSetDevice _SplSetDevice
|
|---|
| 12441 |
|
|---|
| 12442 | inline SPLERR _SplSetDriver(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f, ULONG g)
|
|---|
| 12443 | {
|
|---|
| 12444 | SPLERR yyrc;
|
|---|
| 12445 | USHORT sel = RestoreOS2FS();
|
|---|
| 12446 |
|
|---|
| 12447 | yyrc = SplSetDriver(a, b, c, d, e, f, g);
|
|---|
| 12448 | SetFS(sel);
|
|---|
| 12449 |
|
|---|
| 12450 | return yyrc;
|
|---|
| 12451 | }
|
|---|
| 12452 |
|
|---|
| 12453 | #undef SplSetDriver
|
|---|
| 12454 | #define SplSetDriver _SplSetDriver
|
|---|
| 12455 |
|
|---|
| 12456 | inline SPLERR _SplSetJob(PSZ a, PSZ b, ULONG c, ULONG d, PVOID e, ULONG f, ULONG g)
|
|---|
| 12457 | {
|
|---|
| 12458 | SPLERR yyrc;
|
|---|
| 12459 | USHORT sel = RestoreOS2FS();
|
|---|
| 12460 |
|
|---|
| 12461 | yyrc = SplSetJob(a, b, c, d, e, f, g);
|
|---|
| 12462 | SetFS(sel);
|
|---|
| 12463 |
|
|---|
| 12464 | return yyrc;
|
|---|
| 12465 | }
|
|---|
| 12466 |
|
|---|
| 12467 | #undef SplSetJob
|
|---|
| 12468 | #define SplSetJob _SplSetJob
|
|---|
| 12469 |
|
|---|
| 12470 | inline SPLERR _SplSetPort(PCSZ a, PCSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
|
|---|
| 12471 | {
|
|---|
| 12472 | SPLERR yyrc;
|
|---|
| 12473 | USHORT sel = RestoreOS2FS();
|
|---|
| 12474 |
|
|---|
| 12475 | yyrc = SplSetPort(a, b, c, d, e, f);
|
|---|
| 12476 | SetFS(sel);
|
|---|
| 12477 |
|
|---|
| 12478 | return yyrc;
|
|---|
| 12479 | }
|
|---|
| 12480 |
|
|---|
| 12481 | #undef SplSetPort
|
|---|
| 12482 | #define SplSetPort _SplSetPort
|
|---|
| 12483 |
|
|---|
| 12484 | inline SPLERR _SplSetQueue(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
|
|---|
| 12485 | {
|
|---|
| 12486 | SPLERR yyrc;
|
|---|
| 12487 | USHORT sel = RestoreOS2FS();
|
|---|
| 12488 |
|
|---|
| 12489 | yyrc = SplSetQueue(a, b, c, d, e, f);
|
|---|
| 12490 | SetFS(sel);
|
|---|
| 12491 |
|
|---|
| 12492 | return yyrc;
|
|---|
| 12493 | }
|
|---|
| 12494 |
|
|---|
| 12495 | #undef SplSetQueue
|
|---|
| 12496 | #define SplSetQueue _SplSetQueue
|
|---|
| 12497 |
|
|---|
| 12498 | inline ULONG _SplMessageBox(PSZ a, ULONG b, ULONG c, PSZ d, PSZ e, ULONG f, ULONG g)
|
|---|
| 12499 | {
|
|---|
| 12500 | ULONG yyrc;
|
|---|
| 12501 | USHORT sel = RestoreOS2FS();
|
|---|
| 12502 |
|
|---|
| 12503 | yyrc = SplMessageBox(a, b, c, d, e, f, g);
|
|---|
| 12504 | SetFS(sel);
|
|---|
| 12505 |
|
|---|
| 12506 | return yyrc;
|
|---|
| 12507 | }
|
|---|
| 12508 |
|
|---|
| 12509 | #undef SplMessageBox
|
|---|
| 12510 | #define SplMessageBox _SplMessageBox
|
|---|
| 12511 |
|
|---|
| 12512 | inline BOOL _SplQmAbort(HSPL a)
|
|---|
| 12513 | {
|
|---|
| 12514 | BOOL yyrc;
|
|---|
| 12515 | USHORT sel = RestoreOS2FS();
|
|---|
| 12516 |
|
|---|
| 12517 | yyrc = SplQmAbort(a);
|
|---|
| 12518 | SetFS(sel);
|
|---|
| 12519 |
|
|---|
| 12520 | return yyrc;
|
|---|
| 12521 | }
|
|---|
| 12522 |
|
|---|
| 12523 | #undef SplQmAbort
|
|---|
| 12524 | #define SplQmAbort _SplQmAbort
|
|---|
| 12525 |
|
|---|
| 12526 | inline BOOL _SplQmAbortDoc(HSPL a)
|
|---|
| 12527 | {
|
|---|
| 12528 | BOOL yyrc;
|
|---|
| 12529 | USHORT sel = RestoreOS2FS();
|
|---|
| 12530 |
|
|---|
| 12531 | yyrc = SplQmAbortDoc(a);
|
|---|
| 12532 | SetFS(sel);
|
|---|
| 12533 |
|
|---|
| 12534 | return yyrc;
|
|---|
| 12535 | }
|
|---|
| 12536 |
|
|---|
| 12537 | #undef SplQmAbortDoc
|
|---|
| 12538 | #define SplQmAbortDoc _SplQmAbortDoc
|
|---|
| 12539 |
|
|---|
| 12540 | inline BOOL _SplQmClose(HSPL a)
|
|---|
| 12541 | {
|
|---|
| 12542 | BOOL yyrc;
|
|---|
| 12543 | USHORT sel = RestoreOS2FS();
|
|---|
| 12544 |
|
|---|
| 12545 | yyrc = SplQmClose(a);
|
|---|
| 12546 | SetFS(sel);
|
|---|
| 12547 |
|
|---|
| 12548 | return yyrc;
|
|---|
| 12549 | }
|
|---|
| 12550 |
|
|---|
| 12551 | #undef SplQmClose
|
|---|
| 12552 | #define SplQmClose _SplQmClose
|
|---|
| 12553 |
|
|---|
| 12554 | inline BOOL _SplQmEndDoc(HSPL a)
|
|---|
| 12555 | {
|
|---|
| 12556 | BOOL yyrc;
|
|---|
| 12557 | USHORT sel = RestoreOS2FS();
|
|---|
| 12558 |
|
|---|
| 12559 | yyrc = SplQmEndDoc(a);
|
|---|
| 12560 | SetFS(sel);
|
|---|
| 12561 |
|
|---|
| 12562 | return yyrc;
|
|---|
| 12563 | }
|
|---|
| 12564 |
|
|---|
| 12565 | #undef SplQmEndDoc
|
|---|
| 12566 | #define SplQmEndDoc _SplQmEndDoc
|
|---|
| 12567 |
|
|---|
| 12568 | inline ULONG _SplQmGetJobID(HSPL a, ULONG b, PVOID c, ULONG d, PULONG e)
|
|---|
| 12569 | {
|
|---|
| 12570 | ULONG yyrc;
|
|---|
| 12571 | USHORT sel = RestoreOS2FS();
|
|---|
| 12572 |
|
|---|
| 12573 | yyrc = SplQmGetJobID(a, b, c, d, e);
|
|---|
| 12574 | SetFS(sel);
|
|---|
| 12575 |
|
|---|
| 12576 | return yyrc;
|
|---|
| 12577 | }
|
|---|
| 12578 |
|
|---|
| 12579 | #undef SplQmGetJobID
|
|---|
| 12580 | #define SplQmGetJobID _SplQmGetJobID
|
|---|
| 12581 |
|
|---|
| 12582 | inline BOOL _SplQmNewPage(HSPL a, ULONG b)
|
|---|
| 12583 | {
|
|---|
| 12584 | BOOL yyrc;
|
|---|
| 12585 | USHORT sel = RestoreOS2FS();
|
|---|
| 12586 |
|
|---|
| 12587 | yyrc = SplQmNewPage(a, b);
|
|---|
| 12588 | SetFS(sel);
|
|---|
| 12589 |
|
|---|
| 12590 | return yyrc;
|
|---|
| 12591 | }
|
|---|
| 12592 |
|
|---|
| 12593 | #undef SplQmNewPage
|
|---|
| 12594 | #define SplQmNewPage _SplQmNewPage
|
|---|
| 12595 |
|
|---|
| 12596 | inline HSPL _SplQmOpen(PSZ a, LONG b, PQMOPENDATA c)
|
|---|
| 12597 | {
|
|---|
| 12598 | HSPL yyrc;
|
|---|
| 12599 | USHORT sel = RestoreOS2FS();
|
|---|
| 12600 |
|
|---|
| 12601 | yyrc = SplQmOpen(a, b, c);
|
|---|
| 12602 | SetFS(sel);
|
|---|
| 12603 |
|
|---|
| 12604 | return yyrc;
|
|---|
| 12605 | }
|
|---|
| 12606 |
|
|---|
| 12607 | #undef SplQmOpen
|
|---|
| 12608 | #define SplQmOpen _SplQmOpen
|
|---|
| 12609 |
|
|---|
| 12610 | inline BOOL _SplQmStartDoc(HSPL a, PSZ b)
|
|---|
| 12611 | {
|
|---|
| 12612 | BOOL yyrc;
|
|---|
| 12613 | USHORT sel = RestoreOS2FS();
|
|---|
| 12614 |
|
|---|
| 12615 | yyrc = SplQmStartDoc(a, b);
|
|---|
| 12616 | SetFS(sel);
|
|---|
| 12617 |
|
|---|
| 12618 | return yyrc;
|
|---|
| 12619 | }
|
|---|
| 12620 |
|
|---|
| 12621 | #undef SplQmStartDoc
|
|---|
| 12622 | #define SplQmStartDoc _SplQmStartDoc
|
|---|
| 12623 |
|
|---|
| 12624 | inline BOOL _SplQmWrite(HSPL a, LONG b, PVOID c)
|
|---|
| 12625 | {
|
|---|
| 12626 | BOOL yyrc;
|
|---|
| 12627 | USHORT sel = RestoreOS2FS();
|
|---|
| 12628 |
|
|---|
| 12629 | yyrc = SplQmWrite(a, b, c);
|
|---|
| 12630 | SetFS(sel);
|
|---|
| 12631 |
|
|---|
| 12632 | return yyrc;
|
|---|
| 12633 | }
|
|---|
| 12634 |
|
|---|
| 12635 | #undef SplQmWrite
|
|---|
| 12636 | #define SplQmWrite _SplQmWrite
|
|---|
| 12637 |
|
|---|
| 12638 | #endif
|
|---|
| 12639 | #ifdef INCL_WINHELP
|
|---|
| 12640 | inline BOOL _WinAssociateHelpInstance(HWND a, HWND b)
|
|---|
| 12641 | {
|
|---|
| 12642 | BOOL yyrc;
|
|---|
| 12643 | USHORT sel = RestoreOS2FS();
|
|---|
| 12644 |
|
|---|
| 12645 | yyrc = WinAssociateHelpInstance(a, b);
|
|---|
| 12646 | SetFS(sel);
|
|---|
| 12647 |
|
|---|
| 12648 | return yyrc;
|
|---|
| 12649 | }
|
|---|
| 12650 |
|
|---|
| 12651 | #undef WinAssociateHelpInstance
|
|---|
| 12652 | #define WinAssociateHelpInstance _WinAssociateHelpInstance
|
|---|
| 12653 |
|
|---|
| 12654 | inline HWND _WinCreateHelpInstance(HAB a, PHELPINIT b)
|
|---|
| 12655 | {
|
|---|
| 12656 | HWND yyrc;
|
|---|
| 12657 | USHORT sel = RestoreOS2FS();
|
|---|
| 12658 |
|
|---|
| 12659 | yyrc = WinCreateHelpInstance(a, b);
|
|---|
| 12660 | SetFS(sel);
|
|---|
| 12661 |
|
|---|
| 12662 | return yyrc;
|
|---|
| 12663 | }
|
|---|
| 12664 |
|
|---|
| 12665 | #undef WinCreateHelpInstance
|
|---|
| 12666 | #define WinCreateHelpInstance _WinCreateHelpInstance
|
|---|
| 12667 |
|
|---|
| 12668 | inline BOOL _WinCreateHelpTable(HWND a, PHELPTABLE b)
|
|---|
| 12669 | {
|
|---|
| 12670 | BOOL yyrc;
|
|---|
| 12671 | USHORT sel = RestoreOS2FS();
|
|---|
| 12672 |
|
|---|
| 12673 | yyrc = WinCreateHelpTable(a, b);
|
|---|
| 12674 | SetFS(sel);
|
|---|
| 12675 |
|
|---|
| 12676 | return yyrc;
|
|---|
| 12677 | }
|
|---|
| 12678 |
|
|---|
| 12679 | #undef WinCreateHelpTable
|
|---|
| 12680 | #define WinCreateHelpTable _WinCreateHelpTable
|
|---|
| 12681 |
|
|---|
| 12682 | inline BOOL _WinDestroyHelpInstance(HWND a)
|
|---|
| 12683 | {
|
|---|
| 12684 | BOOL yyrc;
|
|---|
| 12685 | USHORT sel = RestoreOS2FS();
|
|---|
| 12686 |
|
|---|
| 12687 | yyrc = WinDestroyHelpInstance(a);
|
|---|
| 12688 | SetFS(sel);
|
|---|
| 12689 |
|
|---|
| 12690 | return yyrc;
|
|---|
| 12691 | }
|
|---|
| 12692 |
|
|---|
| 12693 | #undef WinDestroyHelpInstance
|
|---|
| 12694 | #define WinDestroyHelpInstance _WinDestroyHelpInstance
|
|---|
| 12695 |
|
|---|
| 12696 | inline BOOL _WinLoadHelpTable(HWND a, ULONG b, HMODULE c)
|
|---|
| 12697 | {
|
|---|
| 12698 | BOOL yyrc;
|
|---|
| 12699 | USHORT sel = RestoreOS2FS();
|
|---|
| 12700 |
|
|---|
| 12701 | yyrc = WinLoadHelpTable(a, b, c);
|
|---|
| 12702 | SetFS(sel);
|
|---|
| 12703 |
|
|---|
| 12704 | return yyrc;
|
|---|
| 12705 | }
|
|---|
| 12706 |
|
|---|
| 12707 | #undef WinLoadHelpTable
|
|---|
| 12708 | #define WinLoadHelpTable _WinLoadHelpTable
|
|---|
| 12709 |
|
|---|
| 12710 | inline HWND _WinQueryHelpInstance(HWND a)
|
|---|
| 12711 | {
|
|---|
| 12712 | HWND yyrc;
|
|---|
| 12713 | USHORT sel = RestoreOS2FS();
|
|---|
| 12714 |
|
|---|
| 12715 | yyrc = WinQueryHelpInstance(a);
|
|---|
| 12716 | SetFS(sel);
|
|---|
| 12717 |
|
|---|
| 12718 | return yyrc;
|
|---|
| 12719 | }
|
|---|
| 12720 |
|
|---|
| 12721 | #undef WinQueryHelpInstance
|
|---|
| 12722 | #define WinQueryHelpInstance _WinQueryHelpInstance
|
|---|
| 12723 |
|
|---|
| 12724 | #endif
|
|---|
| 12725 | #ifdef INCL_DDF
|
|---|
| 12726 | inline BOOL _DdfBeginList(HDDF a, ULONG b, ULONG c, ULONG d)
|
|---|
| 12727 | {
|
|---|
| 12728 | BOOL yyrc;
|
|---|
| 12729 | USHORT sel = RestoreOS2FS();
|
|---|
| 12730 |
|
|---|
| 12731 | yyrc = DdfBeginList(a, b, c, d);
|
|---|
| 12732 | SetFS(sel);
|
|---|
| 12733 |
|
|---|
| 12734 | return yyrc;
|
|---|
| 12735 | }
|
|---|
| 12736 |
|
|---|
| 12737 | #undef DdfBeginList
|
|---|
| 12738 | #define DdfBeginList _DdfBeginList
|
|---|
| 12739 |
|
|---|
| 12740 | inline BOOL _DdfBitmap(HDDF a, HBITMAP b, ULONG c)
|
|---|
| 12741 | {
|
|---|
| 12742 | BOOL yyrc;
|
|---|
| 12743 | USHORT sel = RestoreOS2FS();
|
|---|
| 12744 |
|
|---|
| 12745 | yyrc = DdfBitmap(a, b, c);
|
|---|
| 12746 | SetFS(sel);
|
|---|
| 12747 |
|
|---|
| 12748 | return yyrc;
|
|---|
| 12749 | }
|
|---|
| 12750 |
|
|---|
| 12751 | #undef DdfBitmap
|
|---|
| 12752 | #define DdfBitmap _DdfBitmap
|
|---|
| 12753 |
|
|---|
| 12754 | inline BOOL _DdfEndList(HDDF a)
|
|---|
| 12755 | {
|
|---|
| 12756 | BOOL yyrc;
|
|---|
| 12757 | USHORT sel = RestoreOS2FS();
|
|---|
| 12758 |
|
|---|
| 12759 | yyrc = DdfEndList(a);
|
|---|
| 12760 | SetFS(sel);
|
|---|
| 12761 |
|
|---|
| 12762 | return yyrc;
|
|---|
| 12763 | }
|
|---|
| 12764 |
|
|---|
| 12765 | #undef DdfEndList
|
|---|
| 12766 | #define DdfEndList _DdfEndList
|
|---|
| 12767 |
|
|---|
| 12768 | inline BOOL _DdfHyperText(HDDF a, PCSZ b, PCSZ c, ULONG d)
|
|---|
| 12769 | {
|
|---|
| 12770 | BOOL yyrc;
|
|---|
| 12771 | USHORT sel = RestoreOS2FS();
|
|---|
| 12772 |
|
|---|
| 12773 | yyrc = DdfHyperText(a, b, c, d);
|
|---|
| 12774 | SetFS(sel);
|
|---|
| 12775 |
|
|---|
| 12776 | return yyrc;
|
|---|
| 12777 | }
|
|---|
| 12778 |
|
|---|
| 12779 | #undef DdfHyperText
|
|---|
| 12780 | #define DdfHyperText _DdfHyperText
|
|---|
| 12781 |
|
|---|
| 12782 | inline BOOL _DdfInform(HDDF a, PCSZ b, ULONG c)
|
|---|
| 12783 | {
|
|---|
| 12784 | BOOL yyrc;
|
|---|
| 12785 | USHORT sel = RestoreOS2FS();
|
|---|
| 12786 |
|
|---|
| 12787 | yyrc = DdfInform(a, b, c);
|
|---|
| 12788 | SetFS(sel);
|
|---|
| 12789 |
|
|---|
| 12790 | return yyrc;
|
|---|
| 12791 | }
|
|---|
| 12792 |
|
|---|
| 12793 | #undef DdfInform
|
|---|
| 12794 | #define DdfInform _DdfInform
|
|---|
| 12795 |
|
|---|
| 12796 | inline HDDF _DdfInitialize(HWND a, ULONG b, ULONG c)
|
|---|
| 12797 | {
|
|---|
| 12798 | HDDF yyrc;
|
|---|
| 12799 | USHORT sel = RestoreOS2FS();
|
|---|
| 12800 |
|
|---|
| 12801 | yyrc = DdfInitialize(a, b, c);
|
|---|
| 12802 | SetFS(sel);
|
|---|
| 12803 |
|
|---|
| 12804 | return yyrc;
|
|---|
| 12805 | }
|
|---|
| 12806 |
|
|---|
| 12807 | #undef DdfInitialize
|
|---|
| 12808 | #define DdfInitialize _DdfInitialize
|
|---|
| 12809 |
|
|---|
| 12810 | inline BOOL _DdfListItem(HDDF a, PCSZ b, PCSZ c)
|
|---|
| 12811 | {
|
|---|
| 12812 | BOOL yyrc;
|
|---|
| 12813 | USHORT sel = RestoreOS2FS();
|
|---|
| 12814 |
|
|---|
| 12815 | yyrc = DdfListItem(a, b, c);
|
|---|
| 12816 | SetFS(sel);
|
|---|
| 12817 |
|
|---|
| 12818 | return yyrc;
|
|---|
| 12819 | }
|
|---|
| 12820 |
|
|---|
| 12821 | #undef DdfListItem
|
|---|
| 12822 | #define DdfListItem _DdfListItem
|
|---|
| 12823 |
|
|---|
| 12824 | inline BOOL _DdfMetafile(HDDF a, HMF b, PRECTL c)
|
|---|
| 12825 | {
|
|---|
| 12826 | BOOL yyrc;
|
|---|
| 12827 | USHORT sel = RestoreOS2FS();
|
|---|
| 12828 |
|
|---|
| 12829 | yyrc = DdfMetafile(a, b, c);
|
|---|
| 12830 | SetFS(sel);
|
|---|
| 12831 |
|
|---|
| 12832 | return yyrc;
|
|---|
| 12833 | }
|
|---|
| 12834 |
|
|---|
| 12835 | #undef DdfMetafile
|
|---|
| 12836 | #define DdfMetafile _DdfMetafile
|
|---|
| 12837 |
|
|---|
| 12838 | inline BOOL _DdfPara(HDDF a)
|
|---|
| 12839 | {
|
|---|
| 12840 | BOOL yyrc;
|
|---|
| 12841 | USHORT sel = RestoreOS2FS();
|
|---|
| 12842 |
|
|---|
| 12843 | yyrc = DdfPara(a);
|
|---|
| 12844 | SetFS(sel);
|
|---|
| 12845 |
|
|---|
| 12846 | return yyrc;
|
|---|
| 12847 | }
|
|---|
| 12848 |
|
|---|
| 12849 | #undef DdfPara
|
|---|
| 12850 | #define DdfPara _DdfPara
|
|---|
| 12851 |
|
|---|
| 12852 | inline BOOL _DdfSetColor(HDDF a, COLOR b, COLOR c)
|
|---|
| 12853 | {
|
|---|
| 12854 | BOOL yyrc;
|
|---|
| 12855 | USHORT sel = RestoreOS2FS();
|
|---|
| 12856 |
|
|---|
| 12857 | yyrc = DdfSetColor(a, b, c);
|
|---|
| 12858 | SetFS(sel);
|
|---|
| 12859 |
|
|---|
| 12860 | return yyrc;
|
|---|
| 12861 | }
|
|---|
| 12862 |
|
|---|
| 12863 | #undef DdfSetColor
|
|---|
| 12864 | #define DdfSetColor _DdfSetColor
|
|---|
| 12865 |
|
|---|
| 12866 | inline BOOL _DdfSetFont(HDDF a, PCSZ b, ULONG c, ULONG d)
|
|---|
| 12867 | {
|
|---|
| 12868 | BOOL yyrc;
|
|---|
| 12869 | USHORT sel = RestoreOS2FS();
|
|---|
| 12870 |
|
|---|
| 12871 | yyrc = DdfSetFont(a, b, c, d);
|
|---|
| 12872 | SetFS(sel);
|
|---|
| 12873 |
|
|---|
| 12874 | return yyrc;
|
|---|
| 12875 | }
|
|---|
| 12876 |
|
|---|
| 12877 | #undef DdfSetFont
|
|---|
| 12878 | #define DdfSetFont _DdfSetFont
|
|---|
| 12879 |
|
|---|
| 12880 | inline BOOL _DdfSetFontStyle(HDDF a, ULONG b)
|
|---|
| 12881 | {
|
|---|
| 12882 | BOOL yyrc;
|
|---|
| 12883 | USHORT sel = RestoreOS2FS();
|
|---|
| 12884 |
|
|---|
| 12885 | yyrc = DdfSetFontStyle(a, b);
|
|---|
| 12886 | SetFS(sel);
|
|---|
| 12887 |
|
|---|
| 12888 | return yyrc;
|
|---|
| 12889 | }
|
|---|
| 12890 |
|
|---|
| 12891 | #undef DdfSetFontStyle
|
|---|
| 12892 | #define DdfSetFontStyle _DdfSetFontStyle
|
|---|
| 12893 |
|
|---|
| 12894 | inline BOOL _DdfSetFormat(HDDF a, ULONG b)
|
|---|
| 12895 | {
|
|---|
| 12896 | BOOL yyrc;
|
|---|
| 12897 | USHORT sel = RestoreOS2FS();
|
|---|
| 12898 |
|
|---|
| 12899 | yyrc = DdfSetFormat(a, b);
|
|---|
| 12900 | SetFS(sel);
|
|---|
| 12901 |
|
|---|
| 12902 | return yyrc;
|
|---|
| 12903 | }
|
|---|
| 12904 |
|
|---|
| 12905 | #undef DdfSetFormat
|
|---|
| 12906 | #define DdfSetFormat _DdfSetFormat
|
|---|
| 12907 |
|
|---|
| 12908 | inline BOOL _DdfSetTextAlign(HDDF a, ULONG b)
|
|---|
| 12909 | {
|
|---|
| 12910 | BOOL yyrc;
|
|---|
| 12911 | USHORT sel = RestoreOS2FS();
|
|---|
| 12912 |
|
|---|
| 12913 | yyrc = DdfSetTextAlign(a, b);
|
|---|
| 12914 | SetFS(sel);
|
|---|
| 12915 |
|
|---|
| 12916 | return yyrc;
|
|---|
| 12917 | }
|
|---|
| 12918 |
|
|---|
| 12919 | #undef DdfSetTextAlign
|
|---|
| 12920 | #define DdfSetTextAlign _DdfSetTextAlign
|
|---|
| 12921 |
|
|---|
| 12922 | inline BOOL _DdfText(HDDF a, PCSZ b)
|
|---|
| 12923 | {
|
|---|
| 12924 | BOOL yyrc;
|
|---|
| 12925 | USHORT sel = RestoreOS2FS();
|
|---|
| 12926 |
|
|---|
| 12927 | yyrc = DdfText(a, b);
|
|---|
| 12928 | SetFS(sel);
|
|---|
| 12929 |
|
|---|
| 12930 | return yyrc;
|
|---|
| 12931 | }
|
|---|
| 12932 |
|
|---|
| 12933 | #undef DdfText
|
|---|
| 12934 | #define DdfText _DdfText
|
|---|
| 12935 |
|
|---|
| 12936 | #endif
|
|---|
| 12937 | #ifdef INCL_AVIO
|
|---|
| 12938 | inline USHORT _VioAssociate(HDC a, HVPS b)
|
|---|
| 12939 | {
|
|---|
| 12940 | USHORT yyrc;
|
|---|
| 12941 | USHORT sel = RestoreOS2FS();
|
|---|
| 12942 |
|
|---|
| 12943 | yyrc = VIO16ASSOCIATE(a, b);
|
|---|
| 12944 | SetFS(sel);
|
|---|
| 12945 |
|
|---|
| 12946 | return yyrc;
|
|---|
| 12947 | }
|
|---|
| 12948 |
|
|---|
| 12949 | #undef VioAssociate
|
|---|
| 12950 | #define VioAssociate _VioAssociate
|
|---|
| 12951 |
|
|---|
| 12952 | inline USHORT _VioCreateLogFont(PFATTRS a, LONG b, PSTR8 c, HVPS d)
|
|---|
| 12953 | {
|
|---|
| 12954 | USHORT yyrc;
|
|---|
| 12955 | USHORT sel = RestoreOS2FS();
|
|---|
| 12956 |
|
|---|
| 12957 | yyrc = VIO16CREATELOGFONT(a, b, c, d);
|
|---|
| 12958 | SetFS(sel);
|
|---|
| 12959 |
|
|---|
| 12960 | return yyrc;
|
|---|
| 12961 | }
|
|---|
| 12962 |
|
|---|
| 12963 | #undef VioCreateLogFont
|
|---|
| 12964 | #define VioCreateLogFont _VioCreateLogFont
|
|---|
| 12965 |
|
|---|
| 12966 | inline USHORT _VioCreatePS(PHVPS a, SHORT b, SHORT c, SHORT d, SHORT e, HVPS f)
|
|---|
| 12967 | {
|
|---|
| 12968 | USHORT yyrc;
|
|---|
| 12969 | USHORT sel = RestoreOS2FS();
|
|---|
| 12970 |
|
|---|
| 12971 | yyrc = VIO16CREATEPS(a, b, c, d, e, f);
|
|---|
| 12972 | SetFS(sel);
|
|---|
| 12973 |
|
|---|
| 12974 | return yyrc;
|
|---|
| 12975 | }
|
|---|
| 12976 |
|
|---|
| 12977 | #undef VioCreatePS
|
|---|
| 12978 | #define VioCreatePS _VioCreatePS
|
|---|
| 12979 |
|
|---|
| 12980 | inline USHORT _VioDeleteSetId(LONG a, HVPS b)
|
|---|
| 12981 | {
|
|---|
| 12982 | USHORT yyrc;
|
|---|
| 12983 | USHORT sel = RestoreOS2FS();
|
|---|
| 12984 |
|
|---|
| 12985 | yyrc = VIO16DELETESETID(a, b);
|
|---|
| 12986 | SetFS(sel);
|
|---|
| 12987 |
|
|---|
| 12988 | return yyrc;
|
|---|
| 12989 | }
|
|---|
| 12990 |
|
|---|
| 12991 | #undef VioDeleteSetId
|
|---|
| 12992 | #define VioDeleteSetId _VioDeleteSetId
|
|---|
| 12993 |
|
|---|
| 12994 | inline USHORT _VioDestroyPS(HVPS a)
|
|---|
| 12995 | {
|
|---|
| 12996 | USHORT yyrc;
|
|---|
| 12997 | USHORT sel = RestoreOS2FS();
|
|---|
| 12998 |
|
|---|
| 12999 | yyrc = VIO16DESTROYPS(a);
|
|---|
| 13000 | SetFS(sel);
|
|---|
| 13001 |
|
|---|
| 13002 | return yyrc;
|
|---|
| 13003 | }
|
|---|
| 13004 |
|
|---|
| 13005 | #undef VioDestroyPS
|
|---|
| 13006 | #define VioDestroyPS _VioDestroyPS
|
|---|
| 13007 |
|
|---|
| 13008 | inline USHORT _VioGetDeviceCellSize(PSHORT a, PSHORT b, HVPS c)
|
|---|
| 13009 | {
|
|---|
| 13010 | USHORT yyrc;
|
|---|
| 13011 | USHORT sel = RestoreOS2FS();
|
|---|
| 13012 |
|
|---|
| 13013 | yyrc = VIO16GETDEVICECELLSIZE(a, b, c);
|
|---|
| 13014 | SetFS(sel);
|
|---|
| 13015 |
|
|---|
| 13016 | return yyrc;
|
|---|
| 13017 | }
|
|---|
| 13018 |
|
|---|
| 13019 | #undef VioGetDeviceCellSize
|
|---|
| 13020 | #define VioGetDeviceCellSize _VioGetDeviceCellSize
|
|---|
| 13021 |
|
|---|
| 13022 | inline USHORT _VioGetOrg(PSHORT a, PSHORT b, HVPS c)
|
|---|
| 13023 | {
|
|---|
| 13024 | USHORT yyrc;
|
|---|
| 13025 | USHORT sel = RestoreOS2FS();
|
|---|
| 13026 |
|
|---|
| 13027 | yyrc = VIO16GETORG(a, b, c);
|
|---|
| 13028 | SetFS(sel);
|
|---|
| 13029 |
|
|---|
| 13030 | return yyrc;
|
|---|
| 13031 | }
|
|---|
| 13032 |
|
|---|
| 13033 | #undef VioGetOrg
|
|---|
| 13034 | #define VioGetOrg _VioGetOrg
|
|---|
| 13035 |
|
|---|
| 13036 | inline USHORT _VioQueryFonts(PLONG a, PFONTMETRICS b, LONG c, PLONG d, PSZ e, ULONG f, HVPS g)
|
|---|
| 13037 | {
|
|---|
| 13038 | USHORT yyrc;
|
|---|
| 13039 | USHORT sel = RestoreOS2FS();
|
|---|
| 13040 |
|
|---|
| 13041 | yyrc = VIO16QUERYFONTS(a, b, c, d, e, f, g);
|
|---|
| 13042 | SetFS(sel);
|
|---|
| 13043 |
|
|---|
| 13044 | return yyrc;
|
|---|
| 13045 | }
|
|---|
| 13046 |
|
|---|
| 13047 | #undef VioQueryFonts
|
|---|
| 13048 | #define VioQueryFonts _VioQueryFonts
|
|---|
| 13049 |
|
|---|
| 13050 | inline USHORT _VioQuerySetIds(PLONG a, PSTR8 b, PLONG c, LONG d, HVPS e)
|
|---|
| 13051 | {
|
|---|
| 13052 | USHORT yyrc;
|
|---|
| 13053 | USHORT sel = RestoreOS2FS();
|
|---|
| 13054 |
|
|---|
| 13055 | yyrc = VIO16QUERYSETIDS(a, b, c, d, e);
|
|---|
| 13056 | SetFS(sel);
|
|---|
| 13057 |
|
|---|
| 13058 | return yyrc;
|
|---|
| 13059 | }
|
|---|
| 13060 |
|
|---|
| 13061 | #undef VioQuerySetIds
|
|---|
| 13062 | #define VioQuerySetIds _VioQuerySetIds
|
|---|
| 13063 |
|
|---|
| 13064 | inline USHORT _VioSetDeviceCellSize(SHORT a, SHORT b, HVPS c)
|
|---|
| 13065 | {
|
|---|
| 13066 | USHORT yyrc;
|
|---|
| 13067 | USHORT sel = RestoreOS2FS();
|
|---|
| 13068 |
|
|---|
| 13069 | yyrc = VIO16SETDEVICECELLSIZE(a, b, c);
|
|---|
| 13070 | SetFS(sel);
|
|---|
| 13071 |
|
|---|
| 13072 | return yyrc;
|
|---|
| 13073 | }
|
|---|
| 13074 |
|
|---|
| 13075 | #undef VioSetDeviceCellSize
|
|---|
| 13076 | #define VioSetDeviceCellSize _VioSetDeviceCellSize
|
|---|
| 13077 |
|
|---|
| 13078 | inline USHORT _VioSetOrg(SHORT a, SHORT b, HVPS c)
|
|---|
| 13079 | {
|
|---|
| 13080 | USHORT yyrc;
|
|---|
| 13081 | USHORT sel = RestoreOS2FS();
|
|---|
| 13082 |
|
|---|
| 13083 | yyrc = VIO16SETORG(a, b, c);
|
|---|
| 13084 | SetFS(sel);
|
|---|
| 13085 |
|
|---|
| 13086 | return yyrc;
|
|---|
| 13087 | }
|
|---|
| 13088 |
|
|---|
| 13089 | #undef VioSetOrg
|
|---|
| 13090 | #define VioSetOrg _VioSetOrg
|
|---|
| 13091 |
|
|---|
| 13092 | inline USHORT _VioShowPS(SHORT a, SHORT b, SHORT c, HVPS d)
|
|---|
| 13093 | {
|
|---|
| 13094 | USHORT yyrc;
|
|---|
| 13095 | USHORT sel = RestoreOS2FS();
|
|---|
| 13096 |
|
|---|
| 13097 | yyrc = VIO16SHOWPS(a, b, c, d);
|
|---|
| 13098 | SetFS(sel);
|
|---|
| 13099 |
|
|---|
| 13100 | return yyrc;
|
|---|
| 13101 | }
|
|---|
| 13102 |
|
|---|
| 13103 | #undef VioShowPS
|
|---|
| 13104 | #define VioShowPS _VioShowPS
|
|---|
| 13105 |
|
|---|
| 13106 | inline MRESULT _WinDefAVioWindowProc(HWND a, USHORT b, ULONG c, ULONG d)
|
|---|
| 13107 | {
|
|---|
| 13108 | MRESULT yyrc;
|
|---|
| 13109 | USHORT sel = RestoreOS2FS();
|
|---|
| 13110 |
|
|---|
| 13111 | yyrc = WinDefAVioWindowProc(a, b, c, d);
|
|---|
| 13112 | SetFS(sel);
|
|---|
| 13113 |
|
|---|
| 13114 | return yyrc;
|
|---|
| 13115 | }
|
|---|
| 13116 |
|
|---|
| 13117 | #undef WinDefAVioWindowProc
|
|---|
| 13118 | #define WinDefAVioWindowProc _WinDefAVioWindowProc
|
|---|
| 13119 |
|
|---|
| 13120 | #endif
|
|---|
| 13121 | #ifdef INCL_KBD
|
|---|
| 13122 | inline USHORT _KbdCharIn(PKBDKEYINFO a, USHORT b, HKBD c)
|
|---|
| 13123 | {
|
|---|
| 13124 | USHORT yyrc;
|
|---|
| 13125 | USHORT sel = RestoreOS2FS();
|
|---|
| 13126 |
|
|---|
| 13127 | yyrc = KbdCharIn(a, b, c);
|
|---|
| 13128 | SetFS(sel);
|
|---|
| 13129 |
|
|---|
| 13130 | return yyrc;
|
|---|
| 13131 | }
|
|---|
| 13132 |
|
|---|
| 13133 | #undef KbdCharIn
|
|---|
| 13134 | #define KbdCharIn _KbdCharIn
|
|---|
| 13135 |
|
|---|
| 13136 | inline USHORT _KbdClose(HKBD a)
|
|---|
| 13137 | {
|
|---|
| 13138 | USHORT yyrc;
|
|---|
| 13139 | USHORT sel = RestoreOS2FS();
|
|---|
| 13140 |
|
|---|
| 13141 | yyrc = KbdClose(a);
|
|---|
| 13142 | SetFS(sel);
|
|---|
| 13143 |
|
|---|
| 13144 | return yyrc;
|
|---|
| 13145 | }
|
|---|
| 13146 |
|
|---|
| 13147 | #undef KbdClose
|
|---|
| 13148 | #define KbdClose _KbdClose
|
|---|
| 13149 |
|
|---|
| 13150 | inline USHORT _KbdDeRegister()
|
|---|
| 13151 | {
|
|---|
| 13152 | USHORT yyrc;
|
|---|
| 13153 | USHORT sel = RestoreOS2FS();
|
|---|
| 13154 |
|
|---|
| 13155 | yyrc = KbdDeRegister();
|
|---|
| 13156 | SetFS(sel);
|
|---|
| 13157 |
|
|---|
| 13158 | return yyrc;
|
|---|
| 13159 | }
|
|---|
| 13160 |
|
|---|
| 13161 | #undef KbdDeRegister
|
|---|
| 13162 | #define KbdDeRegister _KbdDeRegister
|
|---|
| 13163 |
|
|---|
| 13164 | inline USHORT _KbdFlushBuffer(HKBD a)
|
|---|
| 13165 | {
|
|---|
| 13166 | USHORT yyrc;
|
|---|
| 13167 | USHORT sel = RestoreOS2FS();
|
|---|
| 13168 |
|
|---|
| 13169 | yyrc = KbdFlushBuffer(a);
|
|---|
| 13170 | SetFS(sel);
|
|---|
| 13171 |
|
|---|
| 13172 | return yyrc;
|
|---|
| 13173 | }
|
|---|
| 13174 |
|
|---|
| 13175 | #undef KbdFlushBuffer
|
|---|
| 13176 | #define KbdFlushBuffer _KbdFlushBuffer
|
|---|
| 13177 |
|
|---|
| 13178 | inline USHORT _KbdFreeFocus(HKBD a)
|
|---|
| 13179 | {
|
|---|
| 13180 | USHORT yyrc;
|
|---|
| 13181 | USHORT sel = RestoreOS2FS();
|
|---|
| 13182 |
|
|---|
| 13183 | yyrc = KbdFreeFocus(a);
|
|---|
| 13184 | SetFS(sel);
|
|---|
| 13185 |
|
|---|
| 13186 | return yyrc;
|
|---|
| 13187 | }
|
|---|
| 13188 |
|
|---|
| 13189 | #undef KbdFreeFocus
|
|---|
| 13190 | #define KbdFreeFocus _KbdFreeFocus
|
|---|
| 13191 |
|
|---|
| 13192 | inline USHORT _KbdGetCp(ULONG a, PUSHORT b, HKBD c)
|
|---|
| 13193 | {
|
|---|
| 13194 | USHORT yyrc;
|
|---|
| 13195 | USHORT sel = RestoreOS2FS();
|
|---|
| 13196 |
|
|---|
| 13197 | yyrc = KbdGetCp(a, b, c);
|
|---|
| 13198 | SetFS(sel);
|
|---|
| 13199 |
|
|---|
| 13200 | return yyrc;
|
|---|
| 13201 | }
|
|---|
| 13202 |
|
|---|
| 13203 | #undef KbdGetCp
|
|---|
| 13204 | #define KbdGetCp _KbdGetCp
|
|---|
| 13205 |
|
|---|
| 13206 | inline USHORT _KbdGetFocus(USHORT a, HKBD b)
|
|---|
| 13207 | {
|
|---|
| 13208 | USHORT yyrc;
|
|---|
| 13209 | USHORT sel = RestoreOS2FS();
|
|---|
| 13210 |
|
|---|
| 13211 | yyrc = KbdGetFocus(a, b);
|
|---|
| 13212 | SetFS(sel);
|
|---|
| 13213 |
|
|---|
| 13214 | return yyrc;
|
|---|
| 13215 | }
|
|---|
| 13216 |
|
|---|
| 13217 | #undef KbdGetFocus
|
|---|
| 13218 | #define KbdGetFocus _KbdGetFocus
|
|---|
| 13219 |
|
|---|
| 13220 | inline USHORT _KbdGetHWID(PKBDHWID a, HKBD b)
|
|---|
| 13221 | {
|
|---|
| 13222 | USHORT yyrc;
|
|---|
| 13223 | USHORT sel = RestoreOS2FS();
|
|---|
| 13224 |
|
|---|
| 13225 | yyrc = KbdGetHWID(a, b);
|
|---|
| 13226 | SetFS(sel);
|
|---|
| 13227 |
|
|---|
| 13228 | return yyrc;
|
|---|
| 13229 | }
|
|---|
| 13230 |
|
|---|
| 13231 | #undef KbdGetHWID
|
|---|
| 13232 | #define KbdGetHWID _KbdGetHWID
|
|---|
| 13233 |
|
|---|
| 13234 | inline USHORT _KbdGetStatus(PKBDINFO a, HKBD b)
|
|---|
| 13235 | {
|
|---|
| 13236 | USHORT yyrc;
|
|---|
| 13237 | USHORT sel = RestoreOS2FS();
|
|---|
| 13238 |
|
|---|
| 13239 | yyrc = KbdGetStatus(a, b);
|
|---|
| 13240 | SetFS(sel);
|
|---|
| 13241 |
|
|---|
| 13242 | return yyrc;
|
|---|
| 13243 | }
|
|---|
| 13244 |
|
|---|
| 13245 | #undef KbdGetStatus
|
|---|
| 13246 | #define KbdGetStatus _KbdGetStatus
|
|---|
| 13247 |
|
|---|
| 13248 | inline USHORT _KbdOpen(PHKBD a)
|
|---|
| 13249 | {
|
|---|
| 13250 | USHORT yyrc;
|
|---|
| 13251 | USHORT sel = RestoreOS2FS();
|
|---|
| 13252 |
|
|---|
| 13253 | yyrc = KbdOpen(a);
|
|---|
| 13254 | SetFS(sel);
|
|---|
| 13255 |
|
|---|
| 13256 | return yyrc;
|
|---|
| 13257 | }
|
|---|
| 13258 |
|
|---|
| 13259 | #undef KbdOpen
|
|---|
| 13260 | #define KbdOpen _KbdOpen
|
|---|
| 13261 |
|
|---|
| 13262 | inline USHORT _KbdPeek(PKBDKEYINFO a, HKBD b)
|
|---|
| 13263 | {
|
|---|
| 13264 | USHORT yyrc;
|
|---|
| 13265 | USHORT sel = RestoreOS2FS();
|
|---|
| 13266 |
|
|---|
| 13267 | yyrc = KbdPeek(a, b);
|
|---|
| 13268 | SetFS(sel);
|
|---|
| 13269 |
|
|---|
| 13270 | return yyrc;
|
|---|
| 13271 | }
|
|---|
| 13272 |
|
|---|
| 13273 | #undef KbdPeek
|
|---|
| 13274 | #define KbdPeek _KbdPeek
|
|---|
| 13275 |
|
|---|
| 13276 | inline USHORT _KbdRegister(PSZ a, PSZ b, ULONG c)
|
|---|
| 13277 | {
|
|---|
| 13278 | USHORT yyrc;
|
|---|
| 13279 | USHORT sel = RestoreOS2FS();
|
|---|
| 13280 |
|
|---|
| 13281 | yyrc = KbdRegister(a, b, c);
|
|---|
| 13282 | SetFS(sel);
|
|---|
| 13283 |
|
|---|
| 13284 | return yyrc;
|
|---|
| 13285 | }
|
|---|
| 13286 |
|
|---|
| 13287 | #undef KbdRegister
|
|---|
| 13288 | #define KbdRegister _KbdRegister
|
|---|
| 13289 |
|
|---|
| 13290 | inline USHORT _KbdSetCp(USHORT a, USHORT b, HKBD c)
|
|---|
| 13291 | {
|
|---|
| 13292 | USHORT yyrc;
|
|---|
| 13293 | USHORT sel = RestoreOS2FS();
|
|---|
| 13294 |
|
|---|
| 13295 | yyrc = KbdSetCp(a, b, c);
|
|---|
| 13296 | SetFS(sel);
|
|---|
| 13297 |
|
|---|
| 13298 | return yyrc;
|
|---|
| 13299 | }
|
|---|
| 13300 |
|
|---|
| 13301 | #undef KbdSetCp
|
|---|
| 13302 | #define KbdSetCp _KbdSetCp
|
|---|
| 13303 |
|
|---|
| 13304 | inline USHORT _KbdSetCustXt(PUSHORT a, HKBD b)
|
|---|
| 13305 | {
|
|---|
| 13306 | USHORT yyrc;
|
|---|
| 13307 | USHORT sel = RestoreOS2FS();
|
|---|
| 13308 |
|
|---|
| 13309 | yyrc = KbdSetCustXt(a, b);
|
|---|
| 13310 | SetFS(sel);
|
|---|
| 13311 |
|
|---|
| 13312 | return yyrc;
|
|---|
| 13313 | }
|
|---|
| 13314 |
|
|---|
| 13315 | #undef KbdSetCustXt
|
|---|
| 13316 | #define KbdSetCustXt _KbdSetCustXt
|
|---|
| 13317 |
|
|---|
| 13318 | inline USHORT _KbdSetFgnd()
|
|---|
| 13319 | {
|
|---|
| 13320 | USHORT yyrc;
|
|---|
| 13321 | USHORT sel = RestoreOS2FS();
|
|---|
| 13322 |
|
|---|
| 13323 | yyrc = KbdSetFgnd();
|
|---|
| 13324 | SetFS(sel);
|
|---|
| 13325 |
|
|---|
| 13326 | return yyrc;
|
|---|
| 13327 | }
|
|---|
| 13328 |
|
|---|
| 13329 | #undef KbdSetFgnd
|
|---|
| 13330 | #define KbdSetFgnd _KbdSetFgnd
|
|---|
| 13331 |
|
|---|
| 13332 | inline USHORT _KbdSetHWID(PKBDHWID a, HKBD b)
|
|---|
| 13333 | {
|
|---|
| 13334 | USHORT yyrc;
|
|---|
| 13335 | USHORT sel = RestoreOS2FS();
|
|---|
| 13336 |
|
|---|
| 13337 | yyrc = KbdSetHWID(a, b);
|
|---|
| 13338 | SetFS(sel);
|
|---|
| 13339 |
|
|---|
| 13340 | return yyrc;
|
|---|
| 13341 | }
|
|---|
| 13342 |
|
|---|
| 13343 | #undef KbdSetHWID
|
|---|
| 13344 | #define KbdSetHWID _KbdSetHWID
|
|---|
| 13345 |
|
|---|
| 13346 | inline USHORT _KbdSetStatus(PKBDINFO a, HKBD b)
|
|---|
| 13347 | {
|
|---|
| 13348 | USHORT yyrc;
|
|---|
| 13349 | USHORT sel = RestoreOS2FS();
|
|---|
| 13350 |
|
|---|
| 13351 | yyrc = KbdSetStatus(a, b);
|
|---|
| 13352 | SetFS(sel);
|
|---|
| 13353 |
|
|---|
| 13354 | return yyrc;
|
|---|
| 13355 | }
|
|---|
| 13356 |
|
|---|
| 13357 | #undef KbdSetStatus
|
|---|
| 13358 | #define KbdSetStatus _KbdSetStatus
|
|---|
| 13359 |
|
|---|
| 13360 | inline USHORT _KbdStringIn(PCH a, PSTRINGINBUF b, USHORT c, HKBD d)
|
|---|
| 13361 | {
|
|---|
| 13362 | USHORT yyrc;
|
|---|
| 13363 | USHORT sel = RestoreOS2FS();
|
|---|
| 13364 |
|
|---|
| 13365 | yyrc = KbdStringIn(a, b, c, d);
|
|---|
| 13366 | SetFS(sel);
|
|---|
| 13367 |
|
|---|
| 13368 | return yyrc;
|
|---|
| 13369 | }
|
|---|
| 13370 |
|
|---|
| 13371 | #undef KbdStringIn
|
|---|
| 13372 | #define KbdStringIn _KbdStringIn
|
|---|
| 13373 |
|
|---|
| 13374 | inline USHORT _KbdSynch(USHORT a)
|
|---|
| 13375 | {
|
|---|
| 13376 | USHORT yyrc;
|
|---|
| 13377 | USHORT sel = RestoreOS2FS();
|
|---|
| 13378 |
|
|---|
| 13379 | yyrc = KbdSynch(a);
|
|---|
| 13380 | SetFS(sel);
|
|---|
| 13381 |
|
|---|
| 13382 | return yyrc;
|
|---|
| 13383 | }
|
|---|
| 13384 |
|
|---|
| 13385 | #undef KbdSynch
|
|---|
| 13386 | #define KbdSynch _KbdSynch
|
|---|
| 13387 |
|
|---|
| 13388 | inline USHORT _KbdXlate(PKBDTRANS a, HKBD b)
|
|---|
| 13389 | {
|
|---|
| 13390 | USHORT yyrc;
|
|---|
| 13391 | USHORT sel = RestoreOS2FS();
|
|---|
| 13392 |
|
|---|
| 13393 | yyrc = KbdXlate(a, b);
|
|---|
| 13394 | SetFS(sel);
|
|---|
| 13395 |
|
|---|
| 13396 | return yyrc;
|
|---|
| 13397 | }
|
|---|
| 13398 |
|
|---|
| 13399 | #undef KbdXlate
|
|---|
| 13400 | #define KbdXlate _KbdXlate
|
|---|
| 13401 |
|
|---|
| 13402 | #endif
|
|---|
| 13403 | #ifdef INCL_VIO
|
|---|
| 13404 | inline USHORT _VioCheckCharType(PUSHORT a, USHORT b, USHORT c, HVIO d)
|
|---|
| 13405 | {
|
|---|
| 13406 | USHORT yyrc;
|
|---|
| 13407 | USHORT sel = RestoreOS2FS();
|
|---|
| 13408 |
|
|---|
| 13409 | yyrc = VIO16CHECKCHARTYPE(a, b, c, d);
|
|---|
| 13410 | SetFS(sel);
|
|---|
| 13411 |
|
|---|
| 13412 | return yyrc;
|
|---|
| 13413 | }
|
|---|
| 13414 |
|
|---|
| 13415 | #undef VioCheckCharType
|
|---|
| 13416 | #define VioCheckCharType _VioCheckCharType
|
|---|
| 13417 |
|
|---|
| 13418 | inline USHORT _VioDeRegister()
|
|---|
| 13419 | {
|
|---|
| 13420 | USHORT yyrc;
|
|---|
| 13421 | USHORT sel = RestoreOS2FS();
|
|---|
| 13422 |
|
|---|
| 13423 | yyrc = VIO16DEREGISTER();
|
|---|
| 13424 | SetFS(sel);
|
|---|
| 13425 |
|
|---|
| 13426 | return yyrc;
|
|---|
| 13427 | }
|
|---|
| 13428 |
|
|---|
| 13429 | #undef VioDeRegister
|
|---|
| 13430 | #define VioDeRegister _VioDeRegister
|
|---|
| 13431 |
|
|---|
| 13432 | inline USHORT _VioEndPopUp(HVIO a)
|
|---|
| 13433 | {
|
|---|
| 13434 | USHORT yyrc;
|
|---|
| 13435 | USHORT sel = RestoreOS2FS();
|
|---|
| 13436 |
|
|---|
| 13437 | yyrc = VIO16ENDPOPUP(a);
|
|---|
| 13438 | SetFS(sel);
|
|---|
| 13439 |
|
|---|
| 13440 | return yyrc;
|
|---|
| 13441 | }
|
|---|
| 13442 |
|
|---|
| 13443 | #undef VioEndPopUp
|
|---|
| 13444 | #define VioEndPopUp _VioEndPopUp
|
|---|
| 13445 |
|
|---|
| 13446 | inline USHORT _VioGetAnsi(PUSHORT a, HVIO b)
|
|---|
| 13447 | {
|
|---|
| 13448 | USHORT yyrc;
|
|---|
| 13449 | USHORT sel = RestoreOS2FS();
|
|---|
| 13450 |
|
|---|
| 13451 | yyrc = VIO16GETANSI(a, b);
|
|---|
| 13452 | SetFS(sel);
|
|---|
| 13453 |
|
|---|
| 13454 | return yyrc;
|
|---|
| 13455 | }
|
|---|
| 13456 |
|
|---|
| 13457 | #undef VioGetAnsi
|
|---|
| 13458 | #define VioGetAnsi _VioGetAnsi
|
|---|
| 13459 |
|
|---|
| 13460 | inline USHORT _VioGetBuf(PULONG a, PUSHORT b, HVIO c)
|
|---|
| 13461 | {
|
|---|
| 13462 | USHORT yyrc;
|
|---|
| 13463 | USHORT sel = RestoreOS2FS();
|
|---|
| 13464 |
|
|---|
| 13465 | yyrc = VIO16GETBUF(a, b, c);
|
|---|
| 13466 | SetFS(sel);
|
|---|
| 13467 |
|
|---|
| 13468 | return yyrc;
|
|---|
| 13469 | }
|
|---|
| 13470 |
|
|---|
| 13471 | #undef VioGetBuf
|
|---|
| 13472 | #define VioGetBuf _VioGetBuf
|
|---|
| 13473 |
|
|---|
| 13474 | inline USHORT _VioGetConfig(USHORT a, PVIOCONFIGINFO b, HVIO c)
|
|---|
| 13475 | {
|
|---|
| 13476 | USHORT yyrc;
|
|---|
| 13477 | USHORT sel = RestoreOS2FS();
|
|---|
| 13478 |
|
|---|
| 13479 | yyrc = VIO16GETCONFIG(a, b, c);
|
|---|
| 13480 | SetFS(sel);
|
|---|
| 13481 |
|
|---|
| 13482 | return yyrc;
|
|---|
| 13483 | }
|
|---|
| 13484 |
|
|---|
| 13485 | #undef VioGetConfig
|
|---|
| 13486 | #define VioGetConfig _VioGetConfig
|
|---|
| 13487 |
|
|---|
| 13488 | inline USHORT _VioGetCp(USHORT a, PUSHORT b, HVIO c)
|
|---|
| 13489 | {
|
|---|
| 13490 | USHORT yyrc;
|
|---|
| 13491 | USHORT sel = RestoreOS2FS();
|
|---|
| 13492 |
|
|---|
| 13493 | yyrc = VIO16GETCP(a, b, c);
|
|---|
| 13494 | SetFS(sel);
|
|---|
| 13495 |
|
|---|
| 13496 | return yyrc;
|
|---|
| 13497 | }
|
|---|
| 13498 |
|
|---|
| 13499 | #undef VioGetCp
|
|---|
| 13500 | #define VioGetCp _VioGetCp
|
|---|
| 13501 |
|
|---|
| 13502 | inline USHORT _VioGetCurPos(PUSHORT a, PUSHORT b, HVIO c)
|
|---|
| 13503 | {
|
|---|
| 13504 | USHORT yyrc;
|
|---|
| 13505 | USHORT sel = RestoreOS2FS();
|
|---|
| 13506 |
|
|---|
| 13507 | yyrc = VIO16GETCURPOS(a, b, c);
|
|---|
| 13508 | SetFS(sel);
|
|---|
| 13509 |
|
|---|
| 13510 | return yyrc;
|
|---|
| 13511 | }
|
|---|
| 13512 |
|
|---|
| 13513 | #undef VioGetCurPos
|
|---|
| 13514 | #define VioGetCurPos _VioGetCurPos
|
|---|
| 13515 |
|
|---|
| 13516 | inline USHORT _VioGetCurType(PVIOCURSORINFO a, HVIO b)
|
|---|
| 13517 | {
|
|---|
| 13518 | USHORT yyrc;
|
|---|
| 13519 | USHORT sel = RestoreOS2FS();
|
|---|
| 13520 |
|
|---|
| 13521 | yyrc = VIO16GETCURTYPE(a, b);
|
|---|
| 13522 | SetFS(sel);
|
|---|
| 13523 |
|
|---|
| 13524 | return yyrc;
|
|---|
| 13525 | }
|
|---|
| 13526 |
|
|---|
| 13527 | #undef VioGetCurType
|
|---|
| 13528 | #define VioGetCurType _VioGetCurType
|
|---|
| 13529 |
|
|---|
| 13530 | inline USHORT _VioGetFont(PVIOFONTINFO a, HVIO b)
|
|---|
| 13531 | {
|
|---|
| 13532 | USHORT yyrc;
|
|---|
| 13533 | USHORT sel = RestoreOS2FS();
|
|---|
| 13534 |
|
|---|
| 13535 | yyrc = VIO16GETFONT(a, b);
|
|---|
| 13536 | SetFS(sel);
|
|---|
| 13537 |
|
|---|
| 13538 | return yyrc;
|
|---|
| 13539 | }
|
|---|
| 13540 |
|
|---|
| 13541 | #undef VioGetFont
|
|---|
| 13542 | #define VioGetFont _VioGetFont
|
|---|
| 13543 |
|
|---|
| 13544 | inline USHORT _VioGetMode(PVIOMODEINFO a, HVIO b)
|
|---|
| 13545 | {
|
|---|
| 13546 | USHORT yyrc;
|
|---|
| 13547 | USHORT sel = RestoreOS2FS();
|
|---|
| 13548 |
|
|---|
| 13549 | yyrc = VIO16GETMODE(a, b);
|
|---|
| 13550 | SetFS(sel);
|
|---|
| 13551 |
|
|---|
| 13552 | return yyrc;
|
|---|
| 13553 | }
|
|---|
| 13554 |
|
|---|
| 13555 | #undef VioGetMode
|
|---|
| 13556 | #define VioGetMode _VioGetMode
|
|---|
| 13557 |
|
|---|
| 13558 | inline USHORT _VioGetPhysBuf(PVIOPHYSBUF a, USHORT b)
|
|---|
| 13559 | {
|
|---|
| 13560 | USHORT yyrc;
|
|---|
| 13561 | USHORT sel = RestoreOS2FS();
|
|---|
| 13562 |
|
|---|
| 13563 | yyrc = VIO16GETPHYSBUF(a, b);
|
|---|
| 13564 | SetFS(sel);
|
|---|
| 13565 |
|
|---|
| 13566 | return yyrc;
|
|---|
| 13567 | }
|
|---|
| 13568 |
|
|---|
| 13569 | #undef VioGetPhysBuf
|
|---|
| 13570 | #define VioGetPhysBuf _VioGetPhysBuf
|
|---|
| 13571 |
|
|---|
| 13572 | inline USHORT _VioGetState(PVOID a, HVIO b)
|
|---|
| 13573 | {
|
|---|
| 13574 | USHORT yyrc;
|
|---|
| 13575 | USHORT sel = RestoreOS2FS();
|
|---|
| 13576 |
|
|---|
| 13577 | yyrc = VIO16GETSTATE(a, b);
|
|---|
| 13578 | SetFS(sel);
|
|---|
| 13579 |
|
|---|
| 13580 | return yyrc;
|
|---|
| 13581 | }
|
|---|
| 13582 |
|
|---|
| 13583 | #undef VioGetState
|
|---|
| 13584 | #define VioGetState _VioGetState
|
|---|
| 13585 |
|
|---|
| 13586 | inline USHORT _VioModeUndo(USHORT a, USHORT b, USHORT c)
|
|---|
| 13587 | {
|
|---|
| 13588 | USHORT yyrc;
|
|---|
| 13589 | USHORT sel = RestoreOS2FS();
|
|---|
| 13590 |
|
|---|
| 13591 | yyrc = VIO16MODEUNDO(a, b, c);
|
|---|
| 13592 | SetFS(sel);
|
|---|
| 13593 |
|
|---|
| 13594 | return yyrc;
|
|---|
| 13595 | }
|
|---|
| 13596 |
|
|---|
| 13597 | #undef VioModeUndo
|
|---|
| 13598 | #define VioModeUndo _VioModeUndo
|
|---|
| 13599 |
|
|---|
| 13600 | inline USHORT _VioModeWait(USHORT a, PUSHORT b, USHORT c)
|
|---|
| 13601 | {
|
|---|
| 13602 | USHORT yyrc;
|
|---|
| 13603 | USHORT sel = RestoreOS2FS();
|
|---|
| 13604 |
|
|---|
| 13605 | yyrc = VIO16MODEWAIT(a, b, c);
|
|---|
| 13606 | SetFS(sel);
|
|---|
| 13607 |
|
|---|
| 13608 | return yyrc;
|
|---|
| 13609 | }
|
|---|
| 13610 |
|
|---|
| 13611 | #undef VioModeWait
|
|---|
| 13612 | #define VioModeWait _VioModeWait
|
|---|
| 13613 |
|
|---|
| 13614 | inline USHORT _VioPopUp(PUSHORT a, HVIO b)
|
|---|
| 13615 | {
|
|---|
| 13616 | USHORT yyrc;
|
|---|
| 13617 | USHORT sel = RestoreOS2FS();
|
|---|
| 13618 |
|
|---|
| 13619 | yyrc = VIO16POPUP(a, b);
|
|---|
| 13620 | SetFS(sel);
|
|---|
| 13621 |
|
|---|
| 13622 | return yyrc;
|
|---|
| 13623 | }
|
|---|
| 13624 |
|
|---|
| 13625 | #undef VioPopUp
|
|---|
| 13626 | #define VioPopUp _VioPopUp
|
|---|
| 13627 |
|
|---|
| 13628 | inline USHORT _VioPrtSc(HVIO a)
|
|---|
| 13629 | {
|
|---|
| 13630 | USHORT yyrc;
|
|---|
| 13631 | USHORT sel = RestoreOS2FS();
|
|---|
| 13632 |
|
|---|
| 13633 | yyrc = VIO16PRTSC(a);
|
|---|
| 13634 | SetFS(sel);
|
|---|
| 13635 |
|
|---|
| 13636 | return yyrc;
|
|---|
| 13637 | }
|
|---|
| 13638 |
|
|---|
| 13639 | #undef VioPrtSc
|
|---|
| 13640 | #define VioPrtSc _VioPrtSc
|
|---|
| 13641 |
|
|---|
| 13642 | inline USHORT _VioPrtScToggle(HVIO a)
|
|---|
| 13643 | {
|
|---|
| 13644 | USHORT yyrc;
|
|---|
| 13645 | USHORT sel = RestoreOS2FS();
|
|---|
| 13646 |
|
|---|
| 13647 | yyrc = VIO16PRTSCTOGGLE(a);
|
|---|
| 13648 | SetFS(sel);
|
|---|
| 13649 |
|
|---|
| 13650 | return yyrc;
|
|---|
| 13651 | }
|
|---|
| 13652 |
|
|---|
| 13653 | #undef VioPrtScToggle
|
|---|
| 13654 | #define VioPrtScToggle _VioPrtScToggle
|
|---|
| 13655 |
|
|---|
| 13656 | inline USHORT _VioReadCellStr(PCH a, PUSHORT b, USHORT c, USHORT d, HVIO e)
|
|---|
| 13657 | {
|
|---|
| 13658 | USHORT yyrc;
|
|---|
| 13659 | USHORT sel = RestoreOS2FS();
|
|---|
| 13660 |
|
|---|
| 13661 | yyrc = VIO16READCELLSTR(a, b, c, d, e);
|
|---|
| 13662 | SetFS(sel);
|
|---|
| 13663 |
|
|---|
| 13664 | return yyrc;
|
|---|
| 13665 | }
|
|---|
| 13666 |
|
|---|
| 13667 | #undef VioReadCellStr
|
|---|
| 13668 | #define VioReadCellStr _VioReadCellStr
|
|---|
| 13669 |
|
|---|
| 13670 | inline USHORT _VioReadCharStr(PCH a, PUSHORT b, USHORT c, USHORT d, HVIO e)
|
|---|
| 13671 | {
|
|---|
| 13672 | USHORT yyrc;
|
|---|
| 13673 | USHORT sel = RestoreOS2FS();
|
|---|
| 13674 |
|
|---|
| 13675 | yyrc = VIO16READCHARSTR(a, b, c, d, e);
|
|---|
| 13676 | SetFS(sel);
|
|---|
| 13677 |
|
|---|
| 13678 | return yyrc;
|
|---|
| 13679 | }
|
|---|
| 13680 |
|
|---|
| 13681 | #undef VioReadCharStr
|
|---|
| 13682 | #define VioReadCharStr _VioReadCharStr
|
|---|
| 13683 |
|
|---|
| 13684 | inline USHORT _VioRegister(PSZ a, PSZ b, ULONG c, ULONG d)
|
|---|
| 13685 | {
|
|---|
| 13686 | USHORT yyrc;
|
|---|
| 13687 | USHORT sel = RestoreOS2FS();
|
|---|
| 13688 |
|
|---|
| 13689 | yyrc = VIO16REGISTER(a, b, c, d);
|
|---|
| 13690 | SetFS(sel);
|
|---|
| 13691 |
|
|---|
| 13692 | return yyrc;
|
|---|
| 13693 | }
|
|---|
| 13694 |
|
|---|
| 13695 | #undef VioRegister
|
|---|
| 13696 | #define VioRegister _VioRegister
|
|---|
| 13697 |
|
|---|
| 13698 | inline USHORT _VioSavRedrawUndo(USHORT a, USHORT b, USHORT c)
|
|---|
| 13699 | {
|
|---|
| 13700 | USHORT yyrc;
|
|---|
| 13701 | USHORT sel = RestoreOS2FS();
|
|---|
| 13702 |
|
|---|
| 13703 | yyrc = VIO16SAVREDRAWUNDO(a, b, c);
|
|---|
| 13704 | SetFS(sel);
|
|---|
| 13705 |
|
|---|
| 13706 | return yyrc;
|
|---|
| 13707 | }
|
|---|
| 13708 |
|
|---|
| 13709 | #undef VioSavRedrawUndo
|
|---|
| 13710 | #define VioSavRedrawUndo _VioSavRedrawUndo
|
|---|
| 13711 |
|
|---|
| 13712 | inline USHORT _VioSavRedrawWait(USHORT a, PUSHORT b, USHORT c)
|
|---|
| 13713 | {
|
|---|
| 13714 | USHORT yyrc;
|
|---|
| 13715 | USHORT sel = RestoreOS2FS();
|
|---|
| 13716 |
|
|---|
| 13717 | yyrc = VIO16SAVREDRAWWAIT(a, b, c);
|
|---|
| 13718 | SetFS(sel);
|
|---|
| 13719 |
|
|---|
| 13720 | return yyrc;
|
|---|
| 13721 | }
|
|---|
| 13722 |
|
|---|
| 13723 | #undef VioSavRedrawWait
|
|---|
| 13724 | #define VioSavRedrawWait _VioSavRedrawWait
|
|---|
| 13725 |
|
|---|
| 13726 | inline USHORT _VioScrLock(USHORT a, PUCHAR b, HVIO c)
|
|---|
| 13727 | {
|
|---|
| 13728 | USHORT yyrc;
|
|---|
| 13729 | USHORT sel = RestoreOS2FS();
|
|---|
| 13730 |
|
|---|
| 13731 | yyrc = VIO16SCRLOCK(a, b, c);
|
|---|
| 13732 | SetFS(sel);
|
|---|
| 13733 |
|
|---|
| 13734 | return yyrc;
|
|---|
| 13735 | }
|
|---|
| 13736 |
|
|---|
| 13737 | #undef VioScrLock
|
|---|
| 13738 | #define VioScrLock _VioScrLock
|
|---|
| 13739 |
|
|---|
| 13740 | inline USHORT _VioScrollDn(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
|
|---|
| 13741 | {
|
|---|
| 13742 | USHORT yyrc;
|
|---|
| 13743 | USHORT sel = RestoreOS2FS();
|
|---|
| 13744 |
|
|---|
| 13745 | yyrc = VIO16SCROLLDN(a, b, c, d, e, f, g);
|
|---|
| 13746 | SetFS(sel);
|
|---|
| 13747 |
|
|---|
| 13748 | return yyrc;
|
|---|
| 13749 | }
|
|---|
| 13750 |
|
|---|
| 13751 | #undef VioScrollDn
|
|---|
| 13752 | #define VioScrollDn _VioScrollDn
|
|---|
| 13753 |
|
|---|
| 13754 | inline USHORT _VioScrollLf(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
|
|---|
| 13755 | {
|
|---|
| 13756 | USHORT yyrc;
|
|---|
| 13757 | USHORT sel = RestoreOS2FS();
|
|---|
| 13758 |
|
|---|
| 13759 | yyrc = VIO16SCROLLLF(a, b, c, d, e, f, g);
|
|---|
| 13760 | SetFS(sel);
|
|---|
| 13761 |
|
|---|
| 13762 | return yyrc;
|
|---|
| 13763 | }
|
|---|
| 13764 |
|
|---|
| 13765 | #undef VioScrollLf
|
|---|
| 13766 | #define VioScrollLf _VioScrollLf
|
|---|
| 13767 |
|
|---|
| 13768 | inline USHORT _VioScrollRt(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
|
|---|
| 13769 | {
|
|---|
| 13770 | USHORT yyrc;
|
|---|
| 13771 | USHORT sel = RestoreOS2FS();
|
|---|
| 13772 |
|
|---|
| 13773 | yyrc = VIO16SCROLLRT(a, b, c, d, e, f, g);
|
|---|
| 13774 | SetFS(sel);
|
|---|
| 13775 |
|
|---|
| 13776 | return yyrc;
|
|---|
| 13777 | }
|
|---|
| 13778 |
|
|---|
| 13779 | #undef VioScrollRt
|
|---|
| 13780 | #define VioScrollRt _VioScrollRt
|
|---|
| 13781 |
|
|---|
| 13782 | inline USHORT _VioScrollUp(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
|
|---|
| 13783 | {
|
|---|
| 13784 | USHORT yyrc;
|
|---|
| 13785 | USHORT sel = RestoreOS2FS();
|
|---|
| 13786 |
|
|---|
| 13787 | yyrc = VIO16SCROLLUP(a, b, c, d, e, f, g);
|
|---|
| 13788 | SetFS(sel);
|
|---|
| 13789 |
|
|---|
| 13790 | return yyrc;
|
|---|
| 13791 | }
|
|---|
| 13792 |
|
|---|
| 13793 | #undef VioScrollUp
|
|---|
| 13794 | #define VioScrollUp _VioScrollUp
|
|---|
| 13795 |
|
|---|
| 13796 | inline USHORT _VioScrUnLock(HVIO a)
|
|---|
| 13797 | {
|
|---|
| 13798 | USHORT yyrc;
|
|---|
| 13799 | USHORT sel = RestoreOS2FS();
|
|---|
| 13800 |
|
|---|
| 13801 | yyrc = VIO16SCRUNLOCK(a);
|
|---|
| 13802 | SetFS(sel);
|
|---|
| 13803 |
|
|---|
| 13804 | return yyrc;
|
|---|
| 13805 | }
|
|---|
| 13806 |
|
|---|
| 13807 | #undef VioScrUnLock
|
|---|
| 13808 | #define VioScrUnLock _VioScrUnLock
|
|---|
| 13809 |
|
|---|
| 13810 | inline USHORT _VioSetAnsi(USHORT a, HVIO b)
|
|---|
| 13811 | {
|
|---|
| 13812 | USHORT yyrc;
|
|---|
| 13813 | USHORT sel = RestoreOS2FS();
|
|---|
| 13814 |
|
|---|
| 13815 | yyrc = VIO16SETANSI(a, b);
|
|---|
| 13816 | SetFS(sel);
|
|---|
| 13817 |
|
|---|
| 13818 | return yyrc;
|
|---|
| 13819 | }
|
|---|
| 13820 |
|
|---|
| 13821 | #undef VioSetAnsi
|
|---|
| 13822 | #define VioSetAnsi _VioSetAnsi
|
|---|
| 13823 |
|
|---|
| 13824 | inline USHORT _VioSetCp(USHORT a, USHORT b, HVIO c)
|
|---|
| 13825 | {
|
|---|
| 13826 | USHORT yyrc;
|
|---|
| 13827 | USHORT sel = RestoreOS2FS();
|
|---|
| 13828 |
|
|---|
| 13829 | yyrc = VIO16SETCP(a, b, c);
|
|---|
| 13830 | SetFS(sel);
|
|---|
| 13831 |
|
|---|
| 13832 | return yyrc;
|
|---|
| 13833 | }
|
|---|
| 13834 |
|
|---|
| 13835 | #undef VioSetCp
|
|---|
| 13836 | #define VioSetCp _VioSetCp
|
|---|
| 13837 |
|
|---|
| 13838 | inline USHORT _VioSetCurPos(USHORT a, USHORT b, HVIO c)
|
|---|
| 13839 | {
|
|---|
| 13840 | USHORT yyrc;
|
|---|
| 13841 | USHORT sel = RestoreOS2FS();
|
|---|
| 13842 |
|
|---|
| 13843 | yyrc = VIO16SETCURPOS(a, b, c);
|
|---|
| 13844 | SetFS(sel);
|
|---|
| 13845 |
|
|---|
| 13846 | return yyrc;
|
|---|
| 13847 | }
|
|---|
| 13848 |
|
|---|
| 13849 | #undef VioSetCurPos
|
|---|
| 13850 | #define VioSetCurPos _VioSetCurPos
|
|---|
| 13851 |
|
|---|
| 13852 | inline USHORT _VioSetCurType(PVIOCURSORINFO a, HVIO b)
|
|---|
| 13853 | {
|
|---|
| 13854 | USHORT yyrc;
|
|---|
| 13855 | USHORT sel = RestoreOS2FS();
|
|---|
| 13856 |
|
|---|
| 13857 | yyrc = VIO16SETCURTYPE(a, b);
|
|---|
| 13858 | SetFS(sel);
|
|---|
| 13859 |
|
|---|
| 13860 | return yyrc;
|
|---|
| 13861 | }
|
|---|
| 13862 |
|
|---|
| 13863 | #undef VioSetCurType
|
|---|
| 13864 | #define VioSetCurType _VioSetCurType
|
|---|
| 13865 |
|
|---|
| 13866 | inline USHORT _VioSetFont(PVIOFONTINFO a, HVIO b)
|
|---|
| 13867 | {
|
|---|
| 13868 | USHORT yyrc;
|
|---|
| 13869 | USHORT sel = RestoreOS2FS();
|
|---|
| 13870 |
|
|---|
| 13871 | yyrc = VIO16SETFONT(a, b);
|
|---|
| 13872 | SetFS(sel);
|
|---|
| 13873 |
|
|---|
| 13874 | return yyrc;
|
|---|
| 13875 | }
|
|---|
| 13876 |
|
|---|
| 13877 | #undef VioSetFont
|
|---|
| 13878 | #define VioSetFont _VioSetFont
|
|---|
| 13879 |
|
|---|
| 13880 | inline USHORT _VioSetMode(PVIOMODEINFO a, HVIO b)
|
|---|
| 13881 | {
|
|---|
| 13882 | USHORT yyrc;
|
|---|
| 13883 | USHORT sel = RestoreOS2FS();
|
|---|
| 13884 |
|
|---|
| 13885 | yyrc = VIO16SETMODE(a, b);
|
|---|
| 13886 | SetFS(sel);
|
|---|
| 13887 |
|
|---|
| 13888 | return yyrc;
|
|---|
| 13889 | }
|
|---|
| 13890 |
|
|---|
| 13891 | #undef VioSetMode
|
|---|
| 13892 | #define VioSetMode _VioSetMode
|
|---|
| 13893 |
|
|---|
| 13894 | inline USHORT _VioSetState(PVOID a, HVIO b)
|
|---|
| 13895 | {
|
|---|
| 13896 | USHORT yyrc;
|
|---|
| 13897 | USHORT sel = RestoreOS2FS();
|
|---|
| 13898 |
|
|---|
| 13899 | yyrc = VIO16SETSTATE(a, b);
|
|---|
| 13900 | SetFS(sel);
|
|---|
| 13901 |
|
|---|
| 13902 | return yyrc;
|
|---|
| 13903 | }
|
|---|
| 13904 |
|
|---|
| 13905 | #undef VioSetState
|
|---|
| 13906 | #define VioSetState _VioSetState
|
|---|
| 13907 |
|
|---|
| 13908 | inline USHORT _VioShowBuf(USHORT a, USHORT b, HVIO c)
|
|---|
| 13909 | {
|
|---|
| 13910 | USHORT yyrc;
|
|---|
| 13911 | USHORT sel = RestoreOS2FS();
|
|---|
| 13912 |
|
|---|
| 13913 | yyrc = VIO16SHOWBUF(a, b, c);
|
|---|
| 13914 | SetFS(sel);
|
|---|
| 13915 |
|
|---|
| 13916 | return yyrc;
|
|---|
| 13917 | }
|
|---|
| 13918 |
|
|---|
| 13919 | #undef VioShowBuf
|
|---|
| 13920 | #define VioShowBuf _VioShowBuf
|
|---|
| 13921 |
|
|---|
| 13922 | inline USHORT _VioWrtCellStr(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
|
|---|
| 13923 | {
|
|---|
| 13924 | USHORT yyrc;
|
|---|
| 13925 | USHORT sel = RestoreOS2FS();
|
|---|
| 13926 |
|
|---|
| 13927 | yyrc = VIO16WRTCELLSTR(a, b, c, d, e);
|
|---|
| 13928 | SetFS(sel);
|
|---|
| 13929 |
|
|---|
| 13930 | return yyrc;
|
|---|
| 13931 | }
|
|---|
| 13932 |
|
|---|
| 13933 | #undef VioWrtCellStr
|
|---|
| 13934 | #define VioWrtCellStr _VioWrtCellStr
|
|---|
| 13935 |
|
|---|
| 13936 | inline USHORT _VioWrtCharStr(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
|
|---|
| 13937 | {
|
|---|
| 13938 | USHORT yyrc;
|
|---|
| 13939 | USHORT sel = RestoreOS2FS();
|
|---|
| 13940 |
|
|---|
| 13941 | yyrc = VIO16WRTCHARSTR(a, b, c, d, e);
|
|---|
| 13942 | SetFS(sel);
|
|---|
| 13943 |
|
|---|
| 13944 | return yyrc;
|
|---|
| 13945 | }
|
|---|
| 13946 |
|
|---|
| 13947 | #undef VioWrtCharStr
|
|---|
| 13948 | #define VioWrtCharStr _VioWrtCharStr
|
|---|
| 13949 |
|
|---|
| 13950 | inline USHORT _VioWrtCharStrAtt(PCH a, USHORT b, USHORT c, USHORT d, PBYTE e, HVIO f)
|
|---|
| 13951 | {
|
|---|
| 13952 | USHORT yyrc;
|
|---|
| 13953 | USHORT sel = RestoreOS2FS();
|
|---|
| 13954 |
|
|---|
| 13955 | yyrc = VIO16WRTCHARSTRATT(a, b, c, d, e, f);
|
|---|
| 13956 | SetFS(sel);
|
|---|
| 13957 |
|
|---|
| 13958 | return yyrc;
|
|---|
| 13959 | }
|
|---|
| 13960 |
|
|---|
| 13961 | #undef VioWrtCharStrAtt
|
|---|
| 13962 | #define VioWrtCharStrAtt _VioWrtCharStrAtt
|
|---|
| 13963 |
|
|---|
| 13964 | inline USHORT _VioWrtNAttr(PBYTE a, USHORT b, USHORT c, USHORT d, HVIO e)
|
|---|
| 13965 | {
|
|---|
| 13966 | USHORT yyrc;
|
|---|
| 13967 | USHORT sel = RestoreOS2FS();
|
|---|
| 13968 |
|
|---|
| 13969 | yyrc = VIO16WRTNATTR(a, b, c, d, e);
|
|---|
| 13970 | SetFS(sel);
|
|---|
| 13971 |
|
|---|
| 13972 | return yyrc;
|
|---|
| 13973 | }
|
|---|
| 13974 |
|
|---|
| 13975 | #undef VioWrtNAttr
|
|---|
| 13976 | #define VioWrtNAttr _VioWrtNAttr
|
|---|
| 13977 |
|
|---|
| 13978 | inline USHORT _VioWrtNCell(PBYTE a, USHORT b, USHORT c, USHORT d, HVIO e)
|
|---|
| 13979 | {
|
|---|
| 13980 | USHORT yyrc;
|
|---|
| 13981 | USHORT sel = RestoreOS2FS();
|
|---|
| 13982 |
|
|---|
| 13983 | yyrc = VIO16WRTNCELL(a, b, c, d, e);
|
|---|
| 13984 | SetFS(sel);
|
|---|
| 13985 |
|
|---|
| 13986 | return yyrc;
|
|---|
| 13987 | }
|
|---|
| 13988 |
|
|---|
| 13989 | #undef VioWrtNCell
|
|---|
| 13990 | #define VioWrtNCell _VioWrtNCell
|
|---|
| 13991 |
|
|---|
| 13992 | inline USHORT _VioWrtNChar(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
|
|---|
| 13993 | {
|
|---|
| 13994 | USHORT yyrc;
|
|---|
| 13995 | USHORT sel = RestoreOS2FS();
|
|---|
| 13996 |
|
|---|
| 13997 | yyrc = VIO16WRTNCHAR(a, b, c, d, e);
|
|---|
| 13998 | SetFS(sel);
|
|---|
| 13999 |
|
|---|
| 14000 | return yyrc;
|
|---|
| 14001 | }
|
|---|
| 14002 |
|
|---|
| 14003 | #undef VioWrtNChar
|
|---|
| 14004 | #define VioWrtNChar _VioWrtNChar
|
|---|
| 14005 |
|
|---|
| 14006 | inline USHORT _VioWrtTTY(PCH a, USHORT b, HVIO c)
|
|---|
| 14007 | {
|
|---|
| 14008 | USHORT yyrc;
|
|---|
| 14009 | USHORT sel = RestoreOS2FS();
|
|---|
| 14010 |
|
|---|
| 14011 | yyrc = VIO16WRTTTY(a, b, c);
|
|---|
| 14012 | SetFS(sel);
|
|---|
| 14013 |
|
|---|
| 14014 | return yyrc;
|
|---|
| 14015 | }
|
|---|
| 14016 |
|
|---|
| 14017 | #undef VioWrtTTY
|
|---|
| 14018 | #define VioWrtTTY _VioWrtTTY
|
|---|
| 14019 |
|
|---|
| 14020 | #endif
|
|---|
| 14021 | #ifdef INCL_MOU
|
|---|
| 14022 | inline USHORT _MouClose(HMOU a)
|
|---|
| 14023 | {
|
|---|
| 14024 | USHORT yyrc;
|
|---|
| 14025 | USHORT sel = RestoreOS2FS();
|
|---|
| 14026 |
|
|---|
| 14027 | yyrc = MOU16CLOSE(a);
|
|---|
| 14028 | SetFS(sel);
|
|---|
| 14029 |
|
|---|
| 14030 | return yyrc;
|
|---|
| 14031 | }
|
|---|
| 14032 |
|
|---|
| 14033 | #undef MouClose
|
|---|
| 14034 | #define MouClose _MouClose
|
|---|
| 14035 |
|
|---|
| 14036 | inline USHORT _MouDeRegister()
|
|---|
| 14037 | {
|
|---|
| 14038 | USHORT yyrc;
|
|---|
| 14039 | USHORT sel = RestoreOS2FS();
|
|---|
| 14040 |
|
|---|
| 14041 | yyrc = MOU16DEREGISTER();
|
|---|
| 14042 | SetFS(sel);
|
|---|
| 14043 |
|
|---|
| 14044 | return yyrc;
|
|---|
| 14045 | }
|
|---|
| 14046 |
|
|---|
| 14047 | #undef MouDeRegister
|
|---|
| 14048 | #define MouDeRegister _MouDeRegister
|
|---|
| 14049 |
|
|---|
| 14050 | inline USHORT _MouDrawPtr(HMOU a)
|
|---|
| 14051 | {
|
|---|
| 14052 | USHORT yyrc;
|
|---|
| 14053 | USHORT sel = RestoreOS2FS();
|
|---|
| 14054 |
|
|---|
| 14055 | yyrc = MOU16DRAWPTR(a);
|
|---|
| 14056 | SetFS(sel);
|
|---|
| 14057 |
|
|---|
| 14058 | return yyrc;
|
|---|
| 14059 | }
|
|---|
| 14060 |
|
|---|
| 14061 | #undef MouDrawPtr
|
|---|
| 14062 | #define MouDrawPtr _MouDrawPtr
|
|---|
| 14063 |
|
|---|
| 14064 | inline USHORT _MouFlushQue(HMOU a)
|
|---|
| 14065 | {
|
|---|
| 14066 | USHORT yyrc;
|
|---|
| 14067 | USHORT sel = RestoreOS2FS();
|
|---|
| 14068 |
|
|---|
| 14069 | yyrc = MOU16FLUSHQUE(a);
|
|---|
| 14070 | SetFS(sel);
|
|---|
| 14071 |
|
|---|
| 14072 | return yyrc;
|
|---|
| 14073 | }
|
|---|
| 14074 |
|
|---|
| 14075 | #undef MouFlushQue
|
|---|
| 14076 | #define MouFlushQue _MouFlushQue
|
|---|
| 14077 |
|
|---|
| 14078 | inline USHORT _MouGetDevStatus(PUSHORT a, HMOU b)
|
|---|
| 14079 | {
|
|---|
| 14080 | USHORT yyrc;
|
|---|
| 14081 | USHORT sel = RestoreOS2FS();
|
|---|
| 14082 |
|
|---|
| 14083 | yyrc = MOU16GETDEVSTATUS(a, b);
|
|---|
| 14084 | SetFS(sel);
|
|---|
| 14085 |
|
|---|
| 14086 | return yyrc;
|
|---|
| 14087 | }
|
|---|
| 14088 |
|
|---|
| 14089 | #undef MouGetDevStatus
|
|---|
| 14090 | #define MouGetDevStatus _MouGetDevStatus
|
|---|
| 14091 |
|
|---|
| 14092 | inline USHORT _MouGetEventMask(PUSHORT a, HMOU b)
|
|---|
| 14093 | {
|
|---|
| 14094 | USHORT yyrc;
|
|---|
| 14095 | USHORT sel = RestoreOS2FS();
|
|---|
| 14096 |
|
|---|
| 14097 | yyrc = MOU16GETEVENTMASK(a, b);
|
|---|
| 14098 | SetFS(sel);
|
|---|
| 14099 |
|
|---|
| 14100 | return yyrc;
|
|---|
| 14101 | }
|
|---|
| 14102 |
|
|---|
| 14103 | #undef MouGetEventMask
|
|---|
| 14104 | #define MouGetEventMask _MouGetEventMask
|
|---|
| 14105 |
|
|---|
| 14106 | inline USHORT _MouGetNumButtons(PUSHORT a, HMOU b)
|
|---|
| 14107 | {
|
|---|
| 14108 | USHORT yyrc;
|
|---|
| 14109 | USHORT sel = RestoreOS2FS();
|
|---|
| 14110 |
|
|---|
| 14111 | yyrc = MOU16GETNUMBUTTONS(a, b);
|
|---|
| 14112 | SetFS(sel);
|
|---|
| 14113 |
|
|---|
| 14114 | return yyrc;
|
|---|
| 14115 | }
|
|---|
| 14116 |
|
|---|
| 14117 | #undef MouGetNumButtons
|
|---|
| 14118 | #define MouGetNumButtons _MouGetNumButtons
|
|---|
| 14119 |
|
|---|
| 14120 | inline USHORT _MouGetNumMickeys(PUSHORT a, HMOU b)
|
|---|
| 14121 | {
|
|---|
| 14122 | USHORT yyrc;
|
|---|
| 14123 | USHORT sel = RestoreOS2FS();
|
|---|
| 14124 |
|
|---|
| 14125 | yyrc = MOU16GETNUMMICKEYS(a, b);
|
|---|
| 14126 | SetFS(sel);
|
|---|
| 14127 |
|
|---|
| 14128 | return yyrc;
|
|---|
| 14129 | }
|
|---|
| 14130 |
|
|---|
| 14131 | #undef MouGetNumMickeys
|
|---|
| 14132 | #define MouGetNumMickeys _MouGetNumMickeys
|
|---|
| 14133 |
|
|---|
| 14134 | inline USHORT _MouGetNumQueEl(PMOUQUEINFO a, HMOU b)
|
|---|
| 14135 | {
|
|---|
| 14136 | USHORT yyrc;
|
|---|
| 14137 | USHORT sel = RestoreOS2FS();
|
|---|
| 14138 |
|
|---|
| 14139 | yyrc = MOU16GETNUMQUEEL(a, b);
|
|---|
| 14140 | SetFS(sel);
|
|---|
| 14141 |
|
|---|
| 14142 | return yyrc;
|
|---|
| 14143 | }
|
|---|
| 14144 |
|
|---|
| 14145 | #undef MouGetNumQueEl
|
|---|
| 14146 | #define MouGetNumQueEl _MouGetNumQueEl
|
|---|
| 14147 |
|
|---|
| 14148 | inline USHORT _MouGetPtrPos(PPTRLOC a, HMOU b)
|
|---|
| 14149 | {
|
|---|
| 14150 | USHORT yyrc;
|
|---|
| 14151 | USHORT sel = RestoreOS2FS();
|
|---|
| 14152 |
|
|---|
| 14153 | yyrc = MOU16GETPTRPOS(a, b);
|
|---|
| 14154 | SetFS(sel);
|
|---|
| 14155 |
|
|---|
| 14156 | return yyrc;
|
|---|
| 14157 | }
|
|---|
| 14158 |
|
|---|
| 14159 | #undef MouGetPtrPos
|
|---|
| 14160 | #define MouGetPtrPos _MouGetPtrPos
|
|---|
| 14161 |
|
|---|
| 14162 | inline USHORT _MouGetPtrShape(PBYTE a, PPTRSHAPE b, HMOU c)
|
|---|
| 14163 | {
|
|---|
| 14164 | USHORT yyrc;
|
|---|
| 14165 | USHORT sel = RestoreOS2FS();
|
|---|
| 14166 |
|
|---|
| 14167 | yyrc = MOU16GETPTRSHAPE(a, b, c);
|
|---|
| 14168 | SetFS(sel);
|
|---|
| 14169 |
|
|---|
| 14170 | return yyrc;
|
|---|
| 14171 | }
|
|---|
| 14172 |
|
|---|
| 14173 | #undef MouGetPtrShape
|
|---|
| 14174 | #define MouGetPtrShape _MouGetPtrShape
|
|---|
| 14175 |
|
|---|
| 14176 | inline USHORT _MouGetScaleFact(PSCALEFACT a, HMOU b)
|
|---|
| 14177 | {
|
|---|
| 14178 | USHORT yyrc;
|
|---|
| 14179 | USHORT sel = RestoreOS2FS();
|
|---|
| 14180 |
|
|---|
| 14181 | yyrc = MOU16GETSCALEFACT(a, b);
|
|---|
| 14182 | SetFS(sel);
|
|---|
| 14183 |
|
|---|
| 14184 | return yyrc;
|
|---|
| 14185 | }
|
|---|
| 14186 |
|
|---|
| 14187 | #undef MouGetScaleFact
|
|---|
| 14188 | #define MouGetScaleFact _MouGetScaleFact
|
|---|
| 14189 |
|
|---|
| 14190 | inline USHORT _MouGetThreshold(PTHRESHOLD a, HMOU b)
|
|---|
| 14191 | {
|
|---|
| 14192 | USHORT yyrc;
|
|---|
| 14193 | USHORT sel = RestoreOS2FS();
|
|---|
| 14194 |
|
|---|
| 14195 | yyrc = MOU16GETTHRESHOLD(a, b);
|
|---|
| 14196 | SetFS(sel);
|
|---|
| 14197 |
|
|---|
| 14198 | return yyrc;
|
|---|
| 14199 | }
|
|---|
| 14200 |
|
|---|
| 14201 | #undef MouGetThreshold
|
|---|
| 14202 | #define MouGetThreshold _MouGetThreshold
|
|---|
| 14203 |
|
|---|
| 14204 | inline USHORT _MouInitReal(PSZ a)
|
|---|
| 14205 | {
|
|---|
| 14206 | USHORT yyrc;
|
|---|
| 14207 | USHORT sel = RestoreOS2FS();
|
|---|
| 14208 |
|
|---|
| 14209 | yyrc = MOU16INITREAL(a);
|
|---|
| 14210 | SetFS(sel);
|
|---|
| 14211 |
|
|---|
| 14212 | return yyrc;
|
|---|
| 14213 | }
|
|---|
| 14214 |
|
|---|
| 14215 | #undef MouInitReal
|
|---|
| 14216 | #define MouInitReal _MouInitReal
|
|---|
| 14217 |
|
|---|
| 14218 | inline USHORT _MouOpen(PSZ a, PHMOU b)
|
|---|
| 14219 | {
|
|---|
| 14220 | USHORT yyrc;
|
|---|
| 14221 | USHORT sel = RestoreOS2FS();
|
|---|
| 14222 |
|
|---|
| 14223 | yyrc = MOU16OPEN(a, b);
|
|---|
| 14224 | SetFS(sel);
|
|---|
| 14225 |
|
|---|
| 14226 | return yyrc;
|
|---|
| 14227 | }
|
|---|
| 14228 |
|
|---|
| 14229 | #undef MouOpen
|
|---|
| 14230 | #define MouOpen _MouOpen
|
|---|
| 14231 |
|
|---|
| 14232 | inline USHORT _MouReadEventQue(PMOUEVENTINFO a, PUSHORT b, HMOU c)
|
|---|
| 14233 | {
|
|---|
| 14234 | USHORT yyrc;
|
|---|
| 14235 | USHORT sel = RestoreOS2FS();
|
|---|
| 14236 |
|
|---|
| 14237 | yyrc = MOU16READEVENTQUE(a, b, c);
|
|---|
| 14238 | SetFS(sel);
|
|---|
| 14239 |
|
|---|
| 14240 | return yyrc;
|
|---|
| 14241 | }
|
|---|
| 14242 |
|
|---|
| 14243 | #undef MouReadEventQue
|
|---|
| 14244 | #define MouReadEventQue _MouReadEventQue
|
|---|
| 14245 |
|
|---|
| 14246 | inline USHORT _MouRegister(PSZ a, PSZ b, ULONG c)
|
|---|
| 14247 | {
|
|---|
| 14248 | USHORT yyrc;
|
|---|
| 14249 | USHORT sel = RestoreOS2FS();
|
|---|
| 14250 |
|
|---|
| 14251 | yyrc = MOU16REGISTER(a, b, c);
|
|---|
| 14252 | SetFS(sel);
|
|---|
| 14253 |
|
|---|
| 14254 | return yyrc;
|
|---|
| 14255 | }
|
|---|
| 14256 |
|
|---|
| 14257 | #undef MouRegister
|
|---|
| 14258 | #define MouRegister _MouRegister
|
|---|
| 14259 |
|
|---|
| 14260 | inline USHORT _MouRemovePtr(PNOPTRRECT a, HMOU b)
|
|---|
| 14261 | {
|
|---|
| 14262 | USHORT yyrc;
|
|---|
| 14263 | USHORT sel = RestoreOS2FS();
|
|---|
| 14264 |
|
|---|
| 14265 | yyrc = MOU16REMOVEPTR(a, b);
|
|---|
| 14266 | SetFS(sel);
|
|---|
| 14267 |
|
|---|
| 14268 | return yyrc;
|
|---|
| 14269 | }
|
|---|
| 14270 |
|
|---|
| 14271 | #undef MouRemovePtr
|
|---|
| 14272 | #define MouRemovePtr _MouRemovePtr
|
|---|
| 14273 |
|
|---|
| 14274 | inline USHORT _MouSetDevStatus(PUSHORT a, HMOU b)
|
|---|
| 14275 | {
|
|---|
| 14276 | USHORT yyrc;
|
|---|
| 14277 | USHORT sel = RestoreOS2FS();
|
|---|
| 14278 |
|
|---|
| 14279 | yyrc = MOU16SETDEVSTATUS(a, b);
|
|---|
| 14280 | SetFS(sel);
|
|---|
| 14281 |
|
|---|
| 14282 | return yyrc;
|
|---|
| 14283 | }
|
|---|
| 14284 |
|
|---|
| 14285 | #undef MouSetDevStatus
|
|---|
| 14286 | #define MouSetDevStatus _MouSetDevStatus
|
|---|
| 14287 |
|
|---|
| 14288 | inline USHORT _MouSetEventMask(PUSHORT a, HMOU b)
|
|---|
| 14289 | {
|
|---|
| 14290 | USHORT yyrc;
|
|---|
| 14291 | USHORT sel = RestoreOS2FS();
|
|---|
| 14292 |
|
|---|
| 14293 | yyrc = MOU16SETEVENTMASK(a, b);
|
|---|
| 14294 | SetFS(sel);
|
|---|
| 14295 |
|
|---|
| 14296 | return yyrc;
|
|---|
| 14297 | }
|
|---|
| 14298 |
|
|---|
| 14299 | #undef MouSetEventMask
|
|---|
| 14300 | #define MouSetEventMask _MouSetEventMask
|
|---|
| 14301 |
|
|---|
| 14302 | inline USHORT _MouSetPtrPos(PPTRLOC a, HMOU b)
|
|---|
| 14303 | {
|
|---|
| 14304 | USHORT yyrc;
|
|---|
| 14305 | USHORT sel = RestoreOS2FS();
|
|---|
| 14306 |
|
|---|
| 14307 | yyrc = MOU16SETPTRPOS(a, b);
|
|---|
| 14308 | SetFS(sel);
|
|---|
| 14309 |
|
|---|
| 14310 | return yyrc;
|
|---|
| 14311 | }
|
|---|
| 14312 |
|
|---|
| 14313 | #undef MouSetPtrPos
|
|---|
| 14314 | #define MouSetPtrPos _MouSetPtrPos
|
|---|
| 14315 |
|
|---|
| 14316 | inline USHORT _MouSetPtrShape(PBYTE a, PPTRSHAPE b, HMOU c)
|
|---|
| 14317 | {
|
|---|
| 14318 | USHORT yyrc;
|
|---|
| 14319 | USHORT sel = RestoreOS2FS();
|
|---|
| 14320 |
|
|---|
| 14321 | yyrc = MOU16SETPTRSHAPE(a, b, c);
|
|---|
| 14322 | SetFS(sel);
|
|---|
| 14323 |
|
|---|
| 14324 | return yyrc;
|
|---|
| 14325 | }
|
|---|
| 14326 |
|
|---|
| 14327 | #undef MouSetPtrShape
|
|---|
| 14328 | #define MouSetPtrShape _MouSetPtrShape
|
|---|
| 14329 |
|
|---|
| 14330 | inline USHORT _MouSetScaleFact(PSCALEFACT a, HMOU b)
|
|---|
| 14331 | {
|
|---|
| 14332 | USHORT yyrc;
|
|---|
| 14333 | USHORT sel = RestoreOS2FS();
|
|---|
| 14334 |
|
|---|
| 14335 | yyrc = MOU16SETSCALEFACT(a, b);
|
|---|
| 14336 | SetFS(sel);
|
|---|
| 14337 |
|
|---|
| 14338 | return yyrc;
|
|---|
| 14339 | }
|
|---|
| 14340 |
|
|---|
| 14341 | #undef MouSetScaleFact
|
|---|
| 14342 | #define MouSetScaleFact _MouSetScaleFact
|
|---|
| 14343 |
|
|---|
| 14344 | inline USHORT _MouSetThreshold(PTHRESHOLD a, HMOU b)
|
|---|
| 14345 | {
|
|---|
| 14346 | USHORT yyrc;
|
|---|
| 14347 | USHORT sel = RestoreOS2FS();
|
|---|
| 14348 |
|
|---|
| 14349 | yyrc = MOU16SETTHRESHOLD(a, b);
|
|---|
| 14350 | SetFS(sel);
|
|---|
| 14351 |
|
|---|
| 14352 | return yyrc;
|
|---|
| 14353 | }
|
|---|
| 14354 |
|
|---|
| 14355 | #undef MouSetThreshold
|
|---|
| 14356 | #define MouSetThreshold _MouSetThreshold
|
|---|
| 14357 |
|
|---|
| 14358 | inline USHORT _MouSynch(USHORT a)
|
|---|
| 14359 | {
|
|---|
| 14360 | USHORT yyrc;
|
|---|
| 14361 | USHORT sel = RestoreOS2FS();
|
|---|
| 14362 |
|
|---|
| 14363 | yyrc = MOU16SYNCH(a);
|
|---|
| 14364 | SetFS(sel);
|
|---|
| 14365 |
|
|---|
| 14366 | return yyrc;
|
|---|
| 14367 | }
|
|---|
| 14368 |
|
|---|
| 14369 | #undef MouSynch
|
|---|
| 14370 | #define MouSynch _MouSynch
|
|---|
| 14371 |
|
|---|
| 14372 | #endif
|
|---|
| 14373 |
|
|---|
| 14374 | #endif
|
|---|