1 | /* $Id: os2wrap.h,v 1.5 1999-06-21 18:19:04 phaller Exp $ */
|
---|
2 | #ifndef __OS2WRAP_H__
|
---|
3 | #define __OS2WRAP_H__
|
---|
4 |
|
---|
5 | #include <os2.h>
|
---|
6 | #include <os2sel.h>
|
---|
7 | #include <os2newapi.h>
|
---|
8 |
|
---|
9 | #ifdef INCL_DOSMEMMGR
|
---|
10 | inline ULONG _DosAllocMem(PPVOID a, ULONG b, ULONG c)
|
---|
11 | {
|
---|
12 | ULONG yyrc;
|
---|
13 | USHORT sel = GetFS();
|
---|
14 |
|
---|
15 | yyrc = DosAllocMem(a, b, c);
|
---|
16 | SetFS(sel);
|
---|
17 |
|
---|
18 | return yyrc;
|
---|
19 | }
|
---|
20 |
|
---|
21 | #undef DosAllocMem
|
---|
22 | #define DosAllocMem _DosAllocMem
|
---|
23 |
|
---|
24 | inline ULONG _DosAllocSharedMem(PPVOID a, PCSZ b, ULONG c, ULONG d)
|
---|
25 | {
|
---|
26 | ULONG yyrc;
|
---|
27 | USHORT sel = GetFS();
|
---|
28 |
|
---|
29 | yyrc = DosAllocSharedMem(a, b, c, d);
|
---|
30 | SetFS(sel);
|
---|
31 |
|
---|
32 | return yyrc;
|
---|
33 | }
|
---|
34 |
|
---|
35 | #undef DosAllocSharedMem
|
---|
36 | #define DosAllocSharedMem _DosAllocSharedMem
|
---|
37 |
|
---|
38 | inline ULONG _DosFreeMem(PVOID a)
|
---|
39 | {
|
---|
40 | ULONG yyrc;
|
---|
41 | USHORT sel = GetFS();
|
---|
42 |
|
---|
43 | yyrc = DosFreeMem(a);
|
---|
44 | SetFS(sel);
|
---|
45 |
|
---|
46 | return yyrc;
|
---|
47 | }
|
---|
48 |
|
---|
49 | #undef DosFreeMem
|
---|
50 | #define DosFreeMem _DosFreeMem
|
---|
51 |
|
---|
52 | inline ULONG _DosGetNamedSharedMem(PPVOID a, PCSZ b, ULONG c)
|
---|
53 | {
|
---|
54 | ULONG yyrc;
|
---|
55 | USHORT sel = GetFS();
|
---|
56 |
|
---|
57 | yyrc = DosGetNamedSharedMem(a, b, c);
|
---|
58 | SetFS(sel);
|
---|
59 |
|
---|
60 | return yyrc;
|
---|
61 | }
|
---|
62 |
|
---|
63 | #undef DosGetNamedSharedMem
|
---|
64 | #define DosGetNamedSharedMem _DosGetNamedSharedMem
|
---|
65 |
|
---|
66 | inline ULONG _DosGetSharedMem(PVOID a, ULONG b)
|
---|
67 | {
|
---|
68 | ULONG yyrc;
|
---|
69 | USHORT sel = GetFS();
|
---|
70 |
|
---|
71 | yyrc = DosGetSharedMem(a, b);
|
---|
72 | SetFS(sel);
|
---|
73 |
|
---|
74 | return yyrc;
|
---|
75 | }
|
---|
76 |
|
---|
77 | #undef DosGetSharedMem
|
---|
78 | #define DosGetSharedMem _DosGetSharedMem
|
---|
79 |
|
---|
80 | inline ULONG _DosGiveSharedMem(PVOID a, PID b, ULONG c)
|
---|
81 | {
|
---|
82 | ULONG yyrc;
|
---|
83 | USHORT sel = GetFS();
|
---|
84 |
|
---|
85 | yyrc = DosGiveSharedMem(a, b, c);
|
---|
86 | SetFS(sel);
|
---|
87 |
|
---|
88 | return yyrc;
|
---|
89 | }
|
---|
90 |
|
---|
91 | #undef DosGiveSharedMem
|
---|
92 | #define DosGiveSharedMem _DosGiveSharedMem
|
---|
93 |
|
---|
94 | inline ULONG _DosQueryMem(PVOID a, PULONG b, PULONG c)
|
---|
95 | {
|
---|
96 | ULONG yyrc;
|
---|
97 | USHORT sel = GetFS();
|
---|
98 |
|
---|
99 | yyrc = DosQueryMem(a, b, c);
|
---|
100 | SetFS(sel);
|
---|
101 |
|
---|
102 | return yyrc;
|
---|
103 | }
|
---|
104 |
|
---|
105 | #undef DosQueryMem
|
---|
106 | #define DosQueryMem _DosQueryMem
|
---|
107 |
|
---|
108 | inline ULONG _DosSetMem(PVOID a, ULONG b, ULONG c)
|
---|
109 | {
|
---|
110 | ULONG yyrc;
|
---|
111 | USHORT sel = GetFS();
|
---|
112 |
|
---|
113 | yyrc = DosSetMem(a, b, c);
|
---|
114 | SetFS(sel);
|
---|
115 |
|
---|
116 | return yyrc;
|
---|
117 | }
|
---|
118 |
|
---|
119 | #undef DosSetMem
|
---|
120 | #define DosSetMem _DosSetMem
|
---|
121 |
|
---|
122 | inline ULONG _DosSubAllocMem(PVOID a, PPVOID b, ULONG c)
|
---|
123 | {
|
---|
124 | ULONG yyrc;
|
---|
125 | USHORT sel = GetFS();
|
---|
126 |
|
---|
127 | yyrc = DosSubAllocMem(a, b, c);
|
---|
128 | SetFS(sel);
|
---|
129 |
|
---|
130 | return yyrc;
|
---|
131 | }
|
---|
132 |
|
---|
133 | #undef DosSubAllocMem
|
---|
134 | #define DosSubAllocMem _DosSubAllocMem
|
---|
135 |
|
---|
136 | inline ULONG _DosSubFreeMem(PVOID a, PVOID b, ULONG c)
|
---|
137 | {
|
---|
138 | ULONG yyrc;
|
---|
139 | USHORT sel = GetFS();
|
---|
140 |
|
---|
141 | yyrc = DosSubFreeMem(a, b, c);
|
---|
142 | SetFS(sel);
|
---|
143 |
|
---|
144 | return yyrc;
|
---|
145 | }
|
---|
146 |
|
---|
147 | #undef DosSubFreeMem
|
---|
148 | #define DosSubFreeMem _DosSubFreeMem
|
---|
149 |
|
---|
150 | inline ULONG _DosSubSetMem(PVOID a, ULONG b, ULONG c)
|
---|
151 | {
|
---|
152 | ULONG yyrc;
|
---|
153 | USHORT sel = GetFS();
|
---|
154 |
|
---|
155 | yyrc = DosSubSetMem(a, b, c);
|
---|
156 | SetFS(sel);
|
---|
157 |
|
---|
158 | return yyrc;
|
---|
159 | }
|
---|
160 |
|
---|
161 | #undef DosSubSetMem
|
---|
162 | #define DosSubSetMem _DosSubSetMem
|
---|
163 |
|
---|
164 | inline ULONG _DosSubUnsetMem(PVOID a)
|
---|
165 | {
|
---|
166 | ULONG yyrc;
|
---|
167 | USHORT sel = GetFS();
|
---|
168 |
|
---|
169 | yyrc = DosSubUnsetMem(a);
|
---|
170 | SetFS(sel);
|
---|
171 |
|
---|
172 | return yyrc;
|
---|
173 | }
|
---|
174 |
|
---|
175 | #undef DosSubUnsetMem
|
---|
176 | #define DosSubUnsetMem _DosSubUnsetMem
|
---|
177 |
|
---|
178 | #endif
|
---|
179 | #ifdef INCL_DOSFILEMGR
|
---|
180 | inline ULONG _DosCancelLockRequest(HFILE a, PFILELOCK b)
|
---|
181 | {
|
---|
182 | ULONG yyrc;
|
---|
183 | USHORT sel = GetFS();
|
---|
184 |
|
---|
185 | yyrc = DosCancelLockRequest(a, b);
|
---|
186 | SetFS(sel);
|
---|
187 |
|
---|
188 | return yyrc;
|
---|
189 | }
|
---|
190 |
|
---|
191 | #undef DosCancelLockRequest
|
---|
192 | #define DosCancelLockRequest _DosCancelLockRequest
|
---|
193 |
|
---|
194 | inline ULONG _DosClose(HFILE a)
|
---|
195 | {
|
---|
196 | ULONG yyrc;
|
---|
197 | USHORT sel = GetFS();
|
---|
198 |
|
---|
199 | yyrc = DosClose(a);
|
---|
200 | SetFS(sel);
|
---|
201 |
|
---|
202 | return yyrc;
|
---|
203 | }
|
---|
204 |
|
---|
205 | #undef DosClose
|
---|
206 | #define DosClose _DosClose
|
---|
207 |
|
---|
208 | inline ULONG _DosCopy(PCSZ a, PCSZ b, ULONG c)
|
---|
209 | {
|
---|
210 | ULONG yyrc;
|
---|
211 | USHORT sel = GetFS();
|
---|
212 |
|
---|
213 | yyrc = DosCopy(a, b, c);
|
---|
214 | SetFS(sel);
|
---|
215 |
|
---|
216 | return yyrc;
|
---|
217 | }
|
---|
218 |
|
---|
219 | #undef DosCopy
|
---|
220 | #define DosCopy _DosCopy
|
---|
221 |
|
---|
222 | inline ULONG _DosCreateDir(PCSZ a, PEAOP2 b)
|
---|
223 | {
|
---|
224 | ULONG yyrc;
|
---|
225 | USHORT sel = GetFS();
|
---|
226 |
|
---|
227 | yyrc = DosCreateDir(a, b);
|
---|
228 | SetFS(sel);
|
---|
229 |
|
---|
230 | return yyrc;
|
---|
231 | }
|
---|
232 |
|
---|
233 | #undef DosCreateDir
|
---|
234 | #define DosCreateDir _DosCreateDir
|
---|
235 |
|
---|
236 | inline ULONG _DosDelete(PCSZ a)
|
---|
237 | {
|
---|
238 | ULONG yyrc;
|
---|
239 | USHORT sel = GetFS();
|
---|
240 |
|
---|
241 | yyrc = DosDelete(a);
|
---|
242 | SetFS(sel);
|
---|
243 |
|
---|
244 | return yyrc;
|
---|
245 | }
|
---|
246 |
|
---|
247 | #undef DosDelete
|
---|
248 | #define DosDelete _DosDelete
|
---|
249 |
|
---|
250 | inline ULONG _DosDeleteDir(PCSZ a)
|
---|
251 | {
|
---|
252 | ULONG yyrc;
|
---|
253 | USHORT sel = GetFS();
|
---|
254 |
|
---|
255 | yyrc = DosDeleteDir(a);
|
---|
256 | SetFS(sel);
|
---|
257 |
|
---|
258 | return yyrc;
|
---|
259 | }
|
---|
260 |
|
---|
261 | #undef DosDeleteDir
|
---|
262 | #define DosDeleteDir _DosDeleteDir
|
---|
263 |
|
---|
264 | inline ULONG _DosDupHandle(HFILE a, PHFILE b)
|
---|
265 | {
|
---|
266 | ULONG yyrc;
|
---|
267 | USHORT sel = GetFS();
|
---|
268 |
|
---|
269 | yyrc = DosDupHandle(a, b);
|
---|
270 | SetFS(sel);
|
---|
271 |
|
---|
272 | return yyrc;
|
---|
273 | }
|
---|
274 |
|
---|
275 | #undef DosDupHandle
|
---|
276 | #define DosDupHandle _DosDupHandle
|
---|
277 |
|
---|
278 | inline ULONG _DosEditName(ULONG a, PCSZ b, PCSZ c, PBYTE d, ULONG e)
|
---|
279 | {
|
---|
280 | ULONG yyrc;
|
---|
281 | USHORT sel = GetFS();
|
---|
282 |
|
---|
283 | yyrc = DosEditName(a, b, c, d, e);
|
---|
284 | SetFS(sel);
|
---|
285 |
|
---|
286 | return yyrc;
|
---|
287 | }
|
---|
288 |
|
---|
289 | #undef DosEditName
|
---|
290 | #define DosEditName _DosEditName
|
---|
291 |
|
---|
292 | inline ULONG _DosEnumAttribute(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g)
|
---|
293 | {
|
---|
294 | ULONG yyrc;
|
---|
295 | USHORT sel = GetFS();
|
---|
296 |
|
---|
297 | yyrc = DosEnumAttribute(a, b, c, d, e, f, g);
|
---|
298 | SetFS(sel);
|
---|
299 |
|
---|
300 | return yyrc;
|
---|
301 | }
|
---|
302 |
|
---|
303 | #undef DosEnumAttribute
|
---|
304 | #define DosEnumAttribute _DosEnumAttribute
|
---|
305 |
|
---|
306 | inline ULONG _DosFindClose(HDIR a)
|
---|
307 | {
|
---|
308 | ULONG yyrc;
|
---|
309 | USHORT sel = GetFS();
|
---|
310 |
|
---|
311 | yyrc = DosFindClose(a);
|
---|
312 | SetFS(sel);
|
---|
313 |
|
---|
314 | return yyrc;
|
---|
315 | }
|
---|
316 |
|
---|
317 | #undef DosFindClose
|
---|
318 | #define DosFindClose _DosFindClose
|
---|
319 |
|
---|
320 | inline ULONG _DosFindFirst(PCSZ a, PHDIR b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g)
|
---|
321 | {
|
---|
322 | ULONG yyrc;
|
---|
323 | USHORT sel = GetFS();
|
---|
324 |
|
---|
325 | yyrc = DosFindFirst(a, b, c, d, e, f, g);
|
---|
326 | SetFS(sel);
|
---|
327 |
|
---|
328 | return yyrc;
|
---|
329 | }
|
---|
330 |
|
---|
331 | #undef DosFindFirst
|
---|
332 | #define DosFindFirst _DosFindFirst
|
---|
333 |
|
---|
334 | inline ULONG _DosFindNext(HDIR a, PVOID b, ULONG c, PULONG d)
|
---|
335 | {
|
---|
336 | ULONG yyrc;
|
---|
337 | USHORT sel = GetFS();
|
---|
338 |
|
---|
339 | yyrc = DosFindNext(a, b, c, d);
|
---|
340 | SetFS(sel);
|
---|
341 |
|
---|
342 | return yyrc;
|
---|
343 | }
|
---|
344 |
|
---|
345 | #undef DosFindNext
|
---|
346 | #define DosFindNext _DosFindNext
|
---|
347 |
|
---|
348 | inline ULONG _DosForceDelete(PCSZ a)
|
---|
349 | {
|
---|
350 | ULONG yyrc;
|
---|
351 | USHORT sel = GetFS();
|
---|
352 |
|
---|
353 | yyrc = DosForceDelete(a);
|
---|
354 | SetFS(sel);
|
---|
355 |
|
---|
356 | return yyrc;
|
---|
357 | }
|
---|
358 |
|
---|
359 | #undef DosForceDelete
|
---|
360 | #define DosForceDelete _DosForceDelete
|
---|
361 |
|
---|
362 | inline ULONG _DosFSAttach(PCSZ a, PCSZ b, PVOID c, ULONG d, ULONG e)
|
---|
363 | {
|
---|
364 | ULONG yyrc;
|
---|
365 | USHORT sel = GetFS();
|
---|
366 |
|
---|
367 | yyrc = DosFSAttach(a, b, c, d, e);
|
---|
368 | SetFS(sel);
|
---|
369 |
|
---|
370 | return yyrc;
|
---|
371 | }
|
---|
372 |
|
---|
373 | #undef DosFSAttach
|
---|
374 | #define DosFSAttach _DosFSAttach
|
---|
375 |
|
---|
376 | inline ULONG _DosFSCtl(PVOID a, ULONG b, PULONG c, PVOID d, ULONG e, PULONG f, ULONG g, PCSZ h, HFILE i, ULONG j)
|
---|
377 | {
|
---|
378 | ULONG yyrc;
|
---|
379 | USHORT sel = GetFS();
|
---|
380 |
|
---|
381 | yyrc = DosFSCtl(a, b, c, d, e, f, g, h, i, j);
|
---|
382 | SetFS(sel);
|
---|
383 |
|
---|
384 | return yyrc;
|
---|
385 | }
|
---|
386 |
|
---|
387 | #undef DosFSCtl
|
---|
388 | #define DosFSCtl _DosFSCtl
|
---|
389 |
|
---|
390 | inline ULONG _DosMove(PCSZ a, PCSZ b)
|
---|
391 | {
|
---|
392 | ULONG yyrc;
|
---|
393 | USHORT sel = GetFS();
|
---|
394 |
|
---|
395 | yyrc = DosMove(a, b);
|
---|
396 | SetFS(sel);
|
---|
397 |
|
---|
398 | return yyrc;
|
---|
399 | }
|
---|
400 |
|
---|
401 | #undef DosMove
|
---|
402 | #define DosMove _DosMove
|
---|
403 |
|
---|
404 | inline ULONG _DosOpen(PCSZ a, PHFILE b, PULONG c, ULONG d, ULONG e, ULONG f, ULONG g, PEAOP2 h)
|
---|
405 | {
|
---|
406 | ULONG yyrc;
|
---|
407 | USHORT sel = GetFS();
|
---|
408 |
|
---|
409 | yyrc = DosOpen(a, b, c, d, e, f, g, h);
|
---|
410 | SetFS(sel);
|
---|
411 |
|
---|
412 | return yyrc;
|
---|
413 | }
|
---|
414 |
|
---|
415 | #undef DosOpen
|
---|
416 | #define DosOpen _DosOpen
|
---|
417 |
|
---|
418 | inline ULONG _DosProtectClose(HFILE a, FHLOCK b)
|
---|
419 | {
|
---|
420 | ULONG yyrc;
|
---|
421 | USHORT sel = GetFS();
|
---|
422 |
|
---|
423 | yyrc = DosProtectClose(a, b);
|
---|
424 | SetFS(sel);
|
---|
425 |
|
---|
426 | return yyrc;
|
---|
427 | }
|
---|
428 |
|
---|
429 | #undef DosProtectClose
|
---|
430 | #define DosProtectClose _DosProtectClose
|
---|
431 |
|
---|
432 | inline ULONG _DosProtectEnumAttribute(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g, FHLOCK h)
|
---|
433 | {
|
---|
434 | ULONG yyrc;
|
---|
435 | USHORT sel = GetFS();
|
---|
436 |
|
---|
437 | yyrc = DosProtectEnumAttribute(a, b, c, d, e, f, g, h);
|
---|
438 | SetFS(sel);
|
---|
439 |
|
---|
440 | return yyrc;
|
---|
441 | }
|
---|
442 |
|
---|
443 | #undef DosProtectEnumAttribute
|
---|
444 | #define DosProtectEnumAttribute _DosProtectEnumAttribute
|
---|
445 |
|
---|
446 | inline ULONG _DosProtectOpen(PCSZ a, PHFILE b, PULONG c, ULONG d, ULONG e, ULONG f, ULONG g, PEAOP2 h, PFHLOCK i)
|
---|
447 | {
|
---|
448 | ULONG yyrc;
|
---|
449 | USHORT sel = GetFS();
|
---|
450 |
|
---|
451 | yyrc = DosProtectOpen(a, b, c, d, e, f, g, h, i);
|
---|
452 | SetFS(sel);
|
---|
453 |
|
---|
454 | return yyrc;
|
---|
455 | }
|
---|
456 |
|
---|
457 | #undef DosProtectOpen
|
---|
458 | #define DosProtectOpen _DosProtectOpen
|
---|
459 |
|
---|
460 | inline ULONG _DosProtectQueryFHState(HFILE a, PULONG b, FHLOCK c)
|
---|
461 | {
|
---|
462 | ULONG yyrc;
|
---|
463 | USHORT sel = GetFS();
|
---|
464 |
|
---|
465 | yyrc = DosProtectQueryFHState(a, b, c);
|
---|
466 | SetFS(sel);
|
---|
467 |
|
---|
468 | return yyrc;
|
---|
469 | }
|
---|
470 |
|
---|
471 | #undef DosProtectQueryFHState
|
---|
472 | #define DosProtectQueryFHState _DosProtectQueryFHState
|
---|
473 |
|
---|
474 | inline ULONG _DosProtectQueryFileInfo(HFILE a, ULONG b, PVOID c, ULONG d, FHLOCK e)
|
---|
475 | {
|
---|
476 | ULONG yyrc;
|
---|
477 | USHORT sel = GetFS();
|
---|
478 |
|
---|
479 | yyrc = DosProtectQueryFileInfo(a, b, c, d, e);
|
---|
480 | SetFS(sel);
|
---|
481 |
|
---|
482 | return yyrc;
|
---|
483 | }
|
---|
484 |
|
---|
485 | #undef DosProtectQueryFileInfo
|
---|
486 | #define DosProtectQueryFileInfo _DosProtectQueryFileInfo
|
---|
487 |
|
---|
488 | inline ULONG _DosProtectRead(HFILE a, PVOID b, ULONG c, PULONG d, FHLOCK e)
|
---|
489 | {
|
---|
490 | ULONG yyrc;
|
---|
491 | USHORT sel = GetFS();
|
---|
492 |
|
---|
493 | yyrc = DosProtectRead(a, b, c, d, e);
|
---|
494 | SetFS(sel);
|
---|
495 |
|
---|
496 | return yyrc;
|
---|
497 | }
|
---|
498 |
|
---|
499 | #undef DosProtectRead
|
---|
500 | #define DosProtectRead _DosProtectRead
|
---|
501 |
|
---|
502 | inline ULONG _DosProtectSetFHState(HFILE a, ULONG b, FHLOCK c)
|
---|
503 | {
|
---|
504 | ULONG yyrc;
|
---|
505 | USHORT sel = GetFS();
|
---|
506 |
|
---|
507 | yyrc = DosProtectSetFHState(a, b, c);
|
---|
508 | SetFS(sel);
|
---|
509 |
|
---|
510 | return yyrc;
|
---|
511 | }
|
---|
512 |
|
---|
513 | #undef DosProtectSetFHState
|
---|
514 | #define DosProtectSetFHState _DosProtectSetFHState
|
---|
515 |
|
---|
516 | inline ULONG _DosProtectSetFileInfo(HFILE a, ULONG b, PVOID c, ULONG d, FHLOCK e)
|
---|
517 | {
|
---|
518 | ULONG yyrc;
|
---|
519 | USHORT sel = GetFS();
|
---|
520 |
|
---|
521 | yyrc = DosProtectSetFileInfo(a, b, c, d, e);
|
---|
522 | SetFS(sel);
|
---|
523 |
|
---|
524 | return yyrc;
|
---|
525 | }
|
---|
526 |
|
---|
527 | #undef DosProtectSetFileInfo
|
---|
528 | #define DosProtectSetFileInfo _DosProtectSetFileInfo
|
---|
529 |
|
---|
530 | inline ULONG _DosProtectSetFileLocks(HFILE a, PFILELOCK b, PFILELOCK c, ULONG d, ULONG e, FHLOCK f)
|
---|
531 | {
|
---|
532 | ULONG yyrc;
|
---|
533 | USHORT sel = GetFS();
|
---|
534 |
|
---|
535 | yyrc = DosProtectSetFileLocks(a, b, c, d, e, f);
|
---|
536 | SetFS(sel);
|
---|
537 |
|
---|
538 | return yyrc;
|
---|
539 | }
|
---|
540 |
|
---|
541 | #undef DosProtectSetFileLocks
|
---|
542 | #define DosProtectSetFileLocks _DosProtectSetFileLocks
|
---|
543 |
|
---|
544 | inline ULONG _DosProtectSetFilePtr(HFILE a, LONG b, ULONG c, PULONG d, FHLOCK e)
|
---|
545 | {
|
---|
546 | ULONG yyrc;
|
---|
547 | USHORT sel = GetFS();
|
---|
548 |
|
---|
549 | yyrc = DosProtectSetFilePtr(a, b, c, d, e);
|
---|
550 | SetFS(sel);
|
---|
551 |
|
---|
552 | return yyrc;
|
---|
553 | }
|
---|
554 |
|
---|
555 | #undef DosProtectSetFilePtr
|
---|
556 | #define DosProtectSetFilePtr _DosProtectSetFilePtr
|
---|
557 |
|
---|
558 | inline ULONG _DosProtectSetFileSize(HFILE a, ULONG b, FHLOCK c)
|
---|
559 | {
|
---|
560 | ULONG yyrc;
|
---|
561 | USHORT sel = GetFS();
|
---|
562 |
|
---|
563 | yyrc = DosProtectSetFileSize(a, b, c);
|
---|
564 | SetFS(sel);
|
---|
565 |
|
---|
566 | return yyrc;
|
---|
567 | }
|
---|
568 |
|
---|
569 | #undef DosProtectSetFileSize
|
---|
570 | #define DosProtectSetFileSize _DosProtectSetFileSize
|
---|
571 |
|
---|
572 | inline ULONG _DosProtectWrite(HFILE a, PVOID b, ULONG c, PULONG d, FHLOCK e)
|
---|
573 | {
|
---|
574 | ULONG yyrc;
|
---|
575 | USHORT sel = GetFS();
|
---|
576 |
|
---|
577 | yyrc = DosProtectWrite(a, b, c, d, e);
|
---|
578 | SetFS(sel);
|
---|
579 |
|
---|
580 | return yyrc;
|
---|
581 | }
|
---|
582 |
|
---|
583 | #undef DosProtectWrite
|
---|
584 | #define DosProtectWrite _DosProtectWrite
|
---|
585 |
|
---|
586 | inline ULONG _DosQueryCurrentDir(ULONG a, PBYTE b, PULONG c)
|
---|
587 | {
|
---|
588 | ULONG yyrc;
|
---|
589 | USHORT sel = GetFS();
|
---|
590 |
|
---|
591 | yyrc = DosQueryCurrentDir(a, b, c);
|
---|
592 | SetFS(sel);
|
---|
593 |
|
---|
594 | return yyrc;
|
---|
595 | }
|
---|
596 |
|
---|
597 | #undef DosQueryCurrentDir
|
---|
598 | #define DosQueryCurrentDir _DosQueryCurrentDir
|
---|
599 |
|
---|
600 | inline ULONG _DosQueryCurrentDisk(PULONG a, PULONG b)
|
---|
601 | {
|
---|
602 | ULONG yyrc;
|
---|
603 | USHORT sel = GetFS();
|
---|
604 |
|
---|
605 | yyrc = DosQueryCurrentDisk(a, b);
|
---|
606 | SetFS(sel);
|
---|
607 |
|
---|
608 | return yyrc;
|
---|
609 | }
|
---|
610 |
|
---|
611 | #undef DosQueryCurrentDisk
|
---|
612 | #define DosQueryCurrentDisk _DosQueryCurrentDisk
|
---|
613 |
|
---|
614 | inline ULONG _DosQueryFHState(HFILE a, PULONG b)
|
---|
615 | {
|
---|
616 | ULONG yyrc;
|
---|
617 | USHORT sel = GetFS();
|
---|
618 |
|
---|
619 | yyrc = DosQueryFHState(a, b);
|
---|
620 | SetFS(sel);
|
---|
621 |
|
---|
622 | return yyrc;
|
---|
623 | }
|
---|
624 |
|
---|
625 | #undef DosQueryFHState
|
---|
626 | #define DosQueryFHState _DosQueryFHState
|
---|
627 |
|
---|
628 | inline ULONG _DosQueryFileInfo(HFILE a, ULONG b, PVOID c, ULONG d)
|
---|
629 | {
|
---|
630 | ULONG yyrc;
|
---|
631 | USHORT sel = GetFS();
|
---|
632 |
|
---|
633 | yyrc = DosQueryFileInfo(a, b, c, d);
|
---|
634 | SetFS(sel);
|
---|
635 |
|
---|
636 | return yyrc;
|
---|
637 | }
|
---|
638 |
|
---|
639 | #undef DosQueryFileInfo
|
---|
640 | #define DosQueryFileInfo _DosQueryFileInfo
|
---|
641 |
|
---|
642 | inline ULONG _DosQueryFSAttach(PCSZ a, ULONG b, ULONG c, PFSQBUFFER2 d, PULONG e)
|
---|
643 | {
|
---|
644 | ULONG yyrc;
|
---|
645 | USHORT sel = GetFS();
|
---|
646 |
|
---|
647 | yyrc = DosQueryFSAttach(a, b, c, d, e);
|
---|
648 | SetFS(sel);
|
---|
649 |
|
---|
650 | return yyrc;
|
---|
651 | }
|
---|
652 |
|
---|
653 | #undef DosQueryFSAttach
|
---|
654 | #define DosQueryFSAttach _DosQueryFSAttach
|
---|
655 |
|
---|
656 | inline ULONG _DosQueryFSInfo(ULONG a, ULONG b, PVOID c, ULONG d)
|
---|
657 | {
|
---|
658 | ULONG yyrc;
|
---|
659 | USHORT sel = GetFS();
|
---|
660 |
|
---|
661 | yyrc = DosQueryFSInfo(a, b, c, d);
|
---|
662 | SetFS(sel);
|
---|
663 |
|
---|
664 | return yyrc;
|
---|
665 | }
|
---|
666 |
|
---|
667 | #undef DosQueryFSInfo
|
---|
668 | #define DosQueryFSInfo _DosQueryFSInfo
|
---|
669 |
|
---|
670 | inline ULONG _DosQueryHType(HFILE a, PULONG b, PULONG c)
|
---|
671 | {
|
---|
672 | ULONG yyrc;
|
---|
673 | USHORT sel = GetFS();
|
---|
674 |
|
---|
675 | yyrc = DosQueryHType(a, b, c);
|
---|
676 | SetFS(sel);
|
---|
677 |
|
---|
678 | return yyrc;
|
---|
679 | }
|
---|
680 |
|
---|
681 | #undef DosQueryHType
|
---|
682 | #define DosQueryHType _DosQueryHType
|
---|
683 |
|
---|
684 | inline ULONG _DosQueryPathInfo(PCSZ a, ULONG b, PVOID c, ULONG d)
|
---|
685 | {
|
---|
686 | ULONG yyrc;
|
---|
687 | USHORT sel = GetFS();
|
---|
688 |
|
---|
689 | yyrc = DosQueryPathInfo(a, b, c, d);
|
---|
690 | SetFS(sel);
|
---|
691 |
|
---|
692 | return yyrc;
|
---|
693 | }
|
---|
694 |
|
---|
695 | #undef DosQueryPathInfo
|
---|
696 | #define DosQueryPathInfo _DosQueryPathInfo
|
---|
697 |
|
---|
698 | inline ULONG _DosQueryVerify(PBOOL32 a)
|
---|
699 | {
|
---|
700 | ULONG yyrc;
|
---|
701 | USHORT sel = GetFS();
|
---|
702 |
|
---|
703 | yyrc = DosQueryVerify(a);
|
---|
704 | SetFS(sel);
|
---|
705 |
|
---|
706 | return yyrc;
|
---|
707 | }
|
---|
708 |
|
---|
709 | #undef DosQueryVerify
|
---|
710 | #define DosQueryVerify _DosQueryVerify
|
---|
711 |
|
---|
712 | inline ULONG _DosRead(HFILE a, PVOID b, ULONG c, PULONG d)
|
---|
713 | {
|
---|
714 | ULONG yyrc;
|
---|
715 | USHORT sel = GetFS();
|
---|
716 |
|
---|
717 | yyrc = DosRead(a, b, c, d);
|
---|
718 | SetFS(sel);
|
---|
719 |
|
---|
720 | return yyrc;
|
---|
721 | }
|
---|
722 |
|
---|
723 | #undef DosRead
|
---|
724 | #define DosRead _DosRead
|
---|
725 |
|
---|
726 | inline ULONG _DosResetBuffer(HFILE a)
|
---|
727 | {
|
---|
728 | ULONG yyrc;
|
---|
729 | USHORT sel = GetFS();
|
---|
730 |
|
---|
731 | yyrc = DosResetBuffer(a);
|
---|
732 | SetFS(sel);
|
---|
733 |
|
---|
734 | return yyrc;
|
---|
735 | }
|
---|
736 |
|
---|
737 | #undef DosResetBuffer
|
---|
738 | #define DosResetBuffer _DosResetBuffer
|
---|
739 |
|
---|
740 | inline ULONG _DosSetCurrentDir(PCSZ a)
|
---|
741 | {
|
---|
742 | ULONG yyrc;
|
---|
743 | USHORT sel = GetFS();
|
---|
744 |
|
---|
745 | yyrc = DosSetCurrentDir(a);
|
---|
746 | SetFS(sel);
|
---|
747 |
|
---|
748 | return yyrc;
|
---|
749 | }
|
---|
750 |
|
---|
751 | #undef DosSetCurrentDir
|
---|
752 | #define DosSetCurrentDir _DosSetCurrentDir
|
---|
753 |
|
---|
754 | inline ULONG _DosSetDefaultDisk(ULONG a)
|
---|
755 | {
|
---|
756 | ULONG yyrc;
|
---|
757 | USHORT sel = GetFS();
|
---|
758 |
|
---|
759 | yyrc = DosSetDefaultDisk(a);
|
---|
760 | SetFS(sel);
|
---|
761 |
|
---|
762 | return yyrc;
|
---|
763 | }
|
---|
764 |
|
---|
765 | #undef DosSetDefaultDisk
|
---|
766 | #define DosSetDefaultDisk _DosSetDefaultDisk
|
---|
767 |
|
---|
768 | inline ULONG _DosSetFHState(HFILE a, ULONG b)
|
---|
769 | {
|
---|
770 | ULONG yyrc;
|
---|
771 | USHORT sel = GetFS();
|
---|
772 |
|
---|
773 | yyrc = DosSetFHState(a, b);
|
---|
774 | SetFS(sel);
|
---|
775 |
|
---|
776 | return yyrc;
|
---|
777 | }
|
---|
778 |
|
---|
779 | #undef DosSetFHState
|
---|
780 | #define DosSetFHState _DosSetFHState
|
---|
781 |
|
---|
782 | inline ULONG _DosSetFileInfo(HFILE a, ULONG b, PVOID c, ULONG d)
|
---|
783 | {
|
---|
784 | ULONG yyrc;
|
---|
785 | USHORT sel = GetFS();
|
---|
786 |
|
---|
787 | yyrc = DosSetFileInfo(a, b, c, d);
|
---|
788 | SetFS(sel);
|
---|
789 |
|
---|
790 | return yyrc;
|
---|
791 | }
|
---|
792 |
|
---|
793 | #undef DosSetFileInfo
|
---|
794 | #define DosSetFileInfo _DosSetFileInfo
|
---|
795 |
|
---|
796 | inline ULONG _DosSetFileLocks(HFILE a, PFILELOCK b, PFILELOCK c, ULONG d, ULONG e)
|
---|
797 | {
|
---|
798 | ULONG yyrc;
|
---|
799 | USHORT sel = GetFS();
|
---|
800 |
|
---|
801 | yyrc = DosSetFileLocks(a, b, c, d, e);
|
---|
802 | SetFS(sel);
|
---|
803 |
|
---|
804 | return yyrc;
|
---|
805 | }
|
---|
806 |
|
---|
807 | #undef DosSetFileLocks
|
---|
808 | #define DosSetFileLocks _DosSetFileLocks
|
---|
809 |
|
---|
810 | inline ULONG _DosSetFilePtr(HFILE a, LONG b, ULONG c, PULONG d)
|
---|
811 | {
|
---|
812 | ULONG yyrc;
|
---|
813 | USHORT sel = GetFS();
|
---|
814 |
|
---|
815 | yyrc = DosSetFilePtr(a, b, c, d);
|
---|
816 | SetFS(sel);
|
---|
817 |
|
---|
818 | return yyrc;
|
---|
819 | }
|
---|
820 |
|
---|
821 | #undef DosSetFilePtr
|
---|
822 | #define DosSetFilePtr _DosSetFilePtr
|
---|
823 |
|
---|
824 | inline ULONG _DosSetFileSize(HFILE a, ULONG b)
|
---|
825 | {
|
---|
826 | ULONG yyrc;
|
---|
827 | USHORT sel = GetFS();
|
---|
828 |
|
---|
829 | yyrc = DosSetFileSize(a, b);
|
---|
830 | SetFS(sel);
|
---|
831 |
|
---|
832 | return yyrc;
|
---|
833 | }
|
---|
834 |
|
---|
835 | #undef DosSetFileSize
|
---|
836 | #define DosSetFileSize _DosSetFileSize
|
---|
837 |
|
---|
838 | inline ULONG _DosSetFSInfo(ULONG a, ULONG b, PVOID c, ULONG d)
|
---|
839 | {
|
---|
840 | ULONG yyrc;
|
---|
841 | USHORT sel = GetFS();
|
---|
842 |
|
---|
843 | yyrc = DosSetFSInfo(a, b, c, d);
|
---|
844 | SetFS(sel);
|
---|
845 |
|
---|
846 | return yyrc;
|
---|
847 | }
|
---|
848 |
|
---|
849 | #undef DosSetFSInfo
|
---|
850 | #define DosSetFSInfo _DosSetFSInfo
|
---|
851 |
|
---|
852 | inline ULONG _DosSetMaxFH(ULONG a)
|
---|
853 | {
|
---|
854 | ULONG yyrc;
|
---|
855 | USHORT sel = GetFS();
|
---|
856 |
|
---|
857 | yyrc = DosSetMaxFH(a);
|
---|
858 | SetFS(sel);
|
---|
859 |
|
---|
860 | return yyrc;
|
---|
861 | }
|
---|
862 |
|
---|
863 | #undef DosSetMaxFH
|
---|
864 | #define DosSetMaxFH _DosSetMaxFH
|
---|
865 |
|
---|
866 | inline ULONG _DosSetPathInfo(PCSZ a, ULONG b, PVOID c, ULONG d, ULONG e)
|
---|
867 | {
|
---|
868 | ULONG yyrc;
|
---|
869 | USHORT sel = GetFS();
|
---|
870 |
|
---|
871 | yyrc = DosSetPathInfo(a, b, c, d, e);
|
---|
872 | SetFS(sel);
|
---|
873 |
|
---|
874 | return yyrc;
|
---|
875 | }
|
---|
876 |
|
---|
877 | #undef DosSetPathInfo
|
---|
878 | #define DosSetPathInfo _DosSetPathInfo
|
---|
879 |
|
---|
880 | inline ULONG _DosSetRelMaxFH(PLONG a, PULONG b)
|
---|
881 | {
|
---|
882 | ULONG yyrc;
|
---|
883 | USHORT sel = GetFS();
|
---|
884 |
|
---|
885 | yyrc = DosSetRelMaxFH(a, b);
|
---|
886 | SetFS(sel);
|
---|
887 |
|
---|
888 | return yyrc;
|
---|
889 | }
|
---|
890 |
|
---|
891 | #undef DosSetRelMaxFH
|
---|
892 | #define DosSetRelMaxFH _DosSetRelMaxFH
|
---|
893 |
|
---|
894 | inline ULONG _DosSetVerify(BOOL32 a)
|
---|
895 | {
|
---|
896 | ULONG yyrc;
|
---|
897 | USHORT sel = GetFS();
|
---|
898 |
|
---|
899 | yyrc = DosSetVerify(a);
|
---|
900 | SetFS(sel);
|
---|
901 |
|
---|
902 | return yyrc;
|
---|
903 | }
|
---|
904 |
|
---|
905 | #undef DosSetVerify
|
---|
906 | #define DosSetVerify _DosSetVerify
|
---|
907 |
|
---|
908 | inline ULONG _DosShutdown(ULONG a)
|
---|
909 | {
|
---|
910 | ULONG yyrc;
|
---|
911 | USHORT sel = GetFS();
|
---|
912 |
|
---|
913 | yyrc = DosShutdown(a);
|
---|
914 | SetFS(sel);
|
---|
915 |
|
---|
916 | return yyrc;
|
---|
917 | }
|
---|
918 |
|
---|
919 | #undef DosShutdown
|
---|
920 | #define DosShutdown _DosShutdown
|
---|
921 |
|
---|
922 | inline ULONG _DosWrite(HFILE a, PVOID b, ULONG c, PULONG d)
|
---|
923 | {
|
---|
924 | ULONG yyrc;
|
---|
925 | USHORT sel = GetFS();
|
---|
926 |
|
---|
927 | yyrc = DosWrite(a, b, c, d);
|
---|
928 | SetFS(sel);
|
---|
929 |
|
---|
930 | return yyrc;
|
---|
931 | }
|
---|
932 |
|
---|
933 | #undef DosWrite
|
---|
934 | #define DosWrite _DosWrite
|
---|
935 |
|
---|
936 | #endif
|
---|
937 | #ifdef INCL_DOSMISC
|
---|
938 | inline ULONG _DosSearchPath(ULONG a, PCSZ b, PCSZ c, PBYTE d, ULONG e)
|
---|
939 | {
|
---|
940 | ULONG yyrc;
|
---|
941 | USHORT sel = GetFS();
|
---|
942 |
|
---|
943 | yyrc = DosSearchPath(a, b, c, d, e);
|
---|
944 | SetFS(sel);
|
---|
945 |
|
---|
946 | return yyrc;
|
---|
947 | }
|
---|
948 |
|
---|
949 | #undef DosSearchPath
|
---|
950 | #define DosSearchPath _DosSearchPath
|
---|
951 |
|
---|
952 | #endif
|
---|
953 | #ifdef INCL_DOSDEVICES
|
---|
954 | inline ULONG _DosDevConfig(PVOID a, ULONG b)
|
---|
955 | {
|
---|
956 | ULONG yyrc;
|
---|
957 | USHORT sel = GetFS();
|
---|
958 |
|
---|
959 | yyrc = DosDevConfig(a, b);
|
---|
960 | SetFS(sel);
|
---|
961 |
|
---|
962 | return yyrc;
|
---|
963 | }
|
---|
964 |
|
---|
965 | #undef DosDevConfig
|
---|
966 | #define DosDevConfig _DosDevConfig
|
---|
967 |
|
---|
968 | inline ULONG _DosDevIOCtl(HFILE a, ULONG b, ULONG c, PVOID d, ULONG e, PULONG f, PVOID g, ULONG h, PULONG i)
|
---|
969 | {
|
---|
970 | ULONG yyrc;
|
---|
971 | USHORT sel = GetFS();
|
---|
972 |
|
---|
973 | yyrc = DosDevIOCtl(a, b, c, d, e, f, g, h, i);
|
---|
974 | SetFS(sel);
|
---|
975 |
|
---|
976 | return yyrc;
|
---|
977 | }
|
---|
978 |
|
---|
979 | #undef DosDevIOCtl
|
---|
980 | #define DosDevIOCtl _DosDevIOCtl
|
---|
981 |
|
---|
982 | inline ULONG _DosPhysicalDisk(ULONG a, PVOID b, ULONG c, PVOID d, ULONG e)
|
---|
983 | {
|
---|
984 | ULONG yyrc;
|
---|
985 | USHORT sel = GetFS();
|
---|
986 |
|
---|
987 | yyrc = DosPhysicalDisk(a, b, c, d, e);
|
---|
988 | SetFS(sel);
|
---|
989 |
|
---|
990 | return yyrc;
|
---|
991 | }
|
---|
992 |
|
---|
993 | #undef DosPhysicalDisk
|
---|
994 | #define DosPhysicalDisk _DosPhysicalDisk
|
---|
995 |
|
---|
996 | #endif
|
---|
997 | #ifdef INCL_DOSNLS
|
---|
998 | inline ULONG _DosMapCase(ULONG a, PCOUNTRYCODE b, PCHAR c)
|
---|
999 | {
|
---|
1000 | ULONG yyrc;
|
---|
1001 | USHORT sel = GetFS();
|
---|
1002 |
|
---|
1003 | yyrc = DosMapCase(a, b, c);
|
---|
1004 | SetFS(sel);
|
---|
1005 |
|
---|
1006 | return yyrc;
|
---|
1007 | }
|
---|
1008 |
|
---|
1009 | #undef DosMapCase
|
---|
1010 | #define DosMapCase _DosMapCase
|
---|
1011 |
|
---|
1012 | inline ULONG _DosQueryCollate(ULONG a, PCOUNTRYCODE b, PCHAR c, PULONG d)
|
---|
1013 | {
|
---|
1014 | ULONG yyrc;
|
---|
1015 | USHORT sel = GetFS();
|
---|
1016 |
|
---|
1017 | yyrc = DosQueryCollate(a, b, c, d);
|
---|
1018 | SetFS(sel);
|
---|
1019 |
|
---|
1020 | return yyrc;
|
---|
1021 | }
|
---|
1022 |
|
---|
1023 | #undef DosQueryCollate
|
---|
1024 | #define DosQueryCollate _DosQueryCollate
|
---|
1025 |
|
---|
1026 | inline ULONG _DosQueryCp(ULONG a, PULONG b, PULONG c)
|
---|
1027 | {
|
---|
1028 | ULONG yyrc;
|
---|
1029 | USHORT sel = GetFS();
|
---|
1030 |
|
---|
1031 | yyrc = DosQueryCp(a, b, c);
|
---|
1032 | SetFS(sel);
|
---|
1033 |
|
---|
1034 | return yyrc;
|
---|
1035 | }
|
---|
1036 |
|
---|
1037 | #undef DosQueryCp
|
---|
1038 | #define DosQueryCp _DosQueryCp
|
---|
1039 |
|
---|
1040 | inline ULONG _DosQueryCtryInfo(ULONG a, PCOUNTRYCODE b, PCOUNTRYINFO c, PULONG d)
|
---|
1041 | {
|
---|
1042 | ULONG yyrc;
|
---|
1043 | USHORT sel = GetFS();
|
---|
1044 |
|
---|
1045 | yyrc = DosQueryCtryInfo(a, b, c, d);
|
---|
1046 | SetFS(sel);
|
---|
1047 |
|
---|
1048 | return yyrc;
|
---|
1049 | }
|
---|
1050 |
|
---|
1051 | #undef DosQueryCtryInfo
|
---|
1052 | #define DosQueryCtryInfo _DosQueryCtryInfo
|
---|
1053 |
|
---|
1054 | inline ULONG _DosQueryDBCSEnv(ULONG a, PCOUNTRYCODE b, PCHAR c)
|
---|
1055 | {
|
---|
1056 | ULONG yyrc;
|
---|
1057 | USHORT sel = GetFS();
|
---|
1058 |
|
---|
1059 | yyrc = DosQueryDBCSEnv(a, b, c);
|
---|
1060 | SetFS(sel);
|
---|
1061 |
|
---|
1062 | return yyrc;
|
---|
1063 | }
|
---|
1064 |
|
---|
1065 | #undef DosQueryDBCSEnv
|
---|
1066 | #define DosQueryDBCSEnv _DosQueryDBCSEnv
|
---|
1067 |
|
---|
1068 | inline ULONG _DosSetProcessCp(ULONG a)
|
---|
1069 | {
|
---|
1070 | ULONG yyrc;
|
---|
1071 | USHORT sel = GetFS();
|
---|
1072 |
|
---|
1073 | yyrc = DosSetProcessCp(a);
|
---|
1074 | SetFS(sel);
|
---|
1075 |
|
---|
1076 | return yyrc;
|
---|
1077 | }
|
---|
1078 |
|
---|
1079 | #undef DosSetProcessCp
|
---|
1080 | #define DosSetProcessCp _DosSetProcessCp
|
---|
1081 |
|
---|
1082 | #endif
|
---|
1083 | #ifdef INCL_DOSMODULEMGR
|
---|
1084 | inline ULONG _DosFreeModule(HMODULE a)
|
---|
1085 | {
|
---|
1086 | ULONG yyrc;
|
---|
1087 | USHORT sel = GetFS();
|
---|
1088 |
|
---|
1089 | yyrc = DosFreeModule(a);
|
---|
1090 | SetFS(sel);
|
---|
1091 |
|
---|
1092 | return yyrc;
|
---|
1093 | }
|
---|
1094 |
|
---|
1095 | #undef DosFreeModule
|
---|
1096 | #define DosFreeModule _DosFreeModule
|
---|
1097 |
|
---|
1098 | inline ULONG _DosLoadModule(PSZ a, ULONG b, PCSZ c, PHMODULE d)
|
---|
1099 | {
|
---|
1100 | ULONG yyrc;
|
---|
1101 | USHORT sel = GetFS();
|
---|
1102 |
|
---|
1103 | yyrc = DosLoadModule(a, b, c, d);
|
---|
1104 | SetFS(sel);
|
---|
1105 |
|
---|
1106 | return yyrc;
|
---|
1107 | }
|
---|
1108 |
|
---|
1109 | #undef DosLoadModule
|
---|
1110 | #define DosLoadModule _DosLoadModule
|
---|
1111 |
|
---|
1112 | inline ULONG _DosQueryModuleHandle(PCSZ a, PHMODULE b)
|
---|
1113 | {
|
---|
1114 | ULONG yyrc;
|
---|
1115 | USHORT sel = GetFS();
|
---|
1116 |
|
---|
1117 | yyrc = DosQueryModuleHandle(a, b);
|
---|
1118 | SetFS(sel);
|
---|
1119 |
|
---|
1120 | return yyrc;
|
---|
1121 | }
|
---|
1122 |
|
---|
1123 | #undef DosQueryModuleHandle
|
---|
1124 | #define DosQueryModuleHandle _DosQueryModuleHandle
|
---|
1125 |
|
---|
1126 | inline ULONG _DosQueryModuleName(HMODULE a, ULONG b, PCHAR c)
|
---|
1127 | {
|
---|
1128 | ULONG yyrc;
|
---|
1129 | USHORT sel = GetFS();
|
---|
1130 |
|
---|
1131 | yyrc = DosQueryModuleName(a, b, c);
|
---|
1132 | SetFS(sel);
|
---|
1133 |
|
---|
1134 | return yyrc;
|
---|
1135 | }
|
---|
1136 |
|
---|
1137 | #undef DosQueryModuleName
|
---|
1138 | #define DosQueryModuleName _DosQueryModuleName
|
---|
1139 |
|
---|
1140 | inline ULONG _DosQueryProcAddr(HMODULE a, ULONG b, PCSZ c, PFN *d)
|
---|
1141 | {
|
---|
1142 | ULONG yyrc;
|
---|
1143 | USHORT sel = GetFS();
|
---|
1144 |
|
---|
1145 | yyrc = DosQueryProcAddr(a, b, c, d);
|
---|
1146 | SetFS(sel);
|
---|
1147 |
|
---|
1148 | return yyrc;
|
---|
1149 | }
|
---|
1150 |
|
---|
1151 | #undef DosQueryProcAddr
|
---|
1152 | #define DosQueryProcAddr _DosQueryProcAddr
|
---|
1153 |
|
---|
1154 | inline ULONG _DosQueryProcType(HMODULE a, ULONG b, PCSZ c, PULONG d)
|
---|
1155 | {
|
---|
1156 | ULONG yyrc;
|
---|
1157 | USHORT sel = GetFS();
|
---|
1158 |
|
---|
1159 | yyrc = DosQueryProcType(a, b, c, d);
|
---|
1160 | SetFS(sel);
|
---|
1161 |
|
---|
1162 | return yyrc;
|
---|
1163 | }
|
---|
1164 |
|
---|
1165 | #undef DosQueryProcType
|
---|
1166 | #define DosQueryProcType _DosQueryProcType
|
---|
1167 |
|
---|
1168 | #endif
|
---|
1169 | #ifdef INCL_DOSRESOURCES
|
---|
1170 | inline ULONG _DosFreeResource(PVOID a)
|
---|
1171 | {
|
---|
1172 | ULONG yyrc;
|
---|
1173 | USHORT sel = GetFS();
|
---|
1174 |
|
---|
1175 | yyrc = DosFreeResource(a);
|
---|
1176 | SetFS(sel);
|
---|
1177 |
|
---|
1178 | return yyrc;
|
---|
1179 | }
|
---|
1180 |
|
---|
1181 | #undef DosFreeResource
|
---|
1182 | #define DosFreeResource _DosFreeResource
|
---|
1183 |
|
---|
1184 | inline ULONG _DosGetResource(HMODULE a, ULONG b, ULONG c, PPVOID d)
|
---|
1185 | {
|
---|
1186 | ULONG yyrc;
|
---|
1187 | USHORT sel = GetFS();
|
---|
1188 |
|
---|
1189 | yyrc = DosGetResource(a, b, c, d);
|
---|
1190 | SetFS(sel);
|
---|
1191 |
|
---|
1192 | return yyrc;
|
---|
1193 | }
|
---|
1194 |
|
---|
1195 | #undef DosGetResource
|
---|
1196 | #define DosGetResource _DosGetResource
|
---|
1197 |
|
---|
1198 | inline ULONG _DosQueryResourceSize(HMODULE a, ULONG b, ULONG c, PULONG d)
|
---|
1199 | {
|
---|
1200 | ULONG yyrc;
|
---|
1201 | USHORT sel = GetFS();
|
---|
1202 |
|
---|
1203 | yyrc = DosQueryResourceSize(a, b, c, d);
|
---|
1204 | SetFS(sel);
|
---|
1205 |
|
---|
1206 | return yyrc;
|
---|
1207 | }
|
---|
1208 |
|
---|
1209 | #undef DosQueryResourceSize
|
---|
1210 | #define DosQueryResourceSize _DosQueryResourceSize
|
---|
1211 |
|
---|
1212 | #endif
|
---|
1213 | #ifdef INCL_DOSPROCESS
|
---|
1214 | inline ULONG _DosBeep(ULONG a, ULONG b)
|
---|
1215 | {
|
---|
1216 | ULONG yyrc;
|
---|
1217 | USHORT sel = GetFS();
|
---|
1218 |
|
---|
1219 | yyrc = DosBeep(a, b);
|
---|
1220 | SetFS(sel);
|
---|
1221 |
|
---|
1222 | return yyrc;
|
---|
1223 | }
|
---|
1224 |
|
---|
1225 | #undef DosBeep
|
---|
1226 | #define DosBeep _DosBeep
|
---|
1227 |
|
---|
1228 | inline VOID _DosExit(ULONG a, ULONG b)
|
---|
1229 | {
|
---|
1230 | USHORT sel = GetFS();
|
---|
1231 |
|
---|
1232 | DosExit(a, b);
|
---|
1233 | SetFS(sel);
|
---|
1234 | }
|
---|
1235 |
|
---|
1236 | #undef DosExit
|
---|
1237 | #define DosExit _DosExit
|
---|
1238 |
|
---|
1239 | inline ULONG _DosAllocThreadLocalMemory(ULONG a, PULONG *b)
|
---|
1240 | {
|
---|
1241 | ULONG yyrc;
|
---|
1242 | USHORT sel = GetFS();
|
---|
1243 |
|
---|
1244 | yyrc = DosAllocThreadLocalMemory(a, b);
|
---|
1245 | SetFS(sel);
|
---|
1246 |
|
---|
1247 | return yyrc;
|
---|
1248 | }
|
---|
1249 |
|
---|
1250 | #undef DosAllocThreadLocalMemory
|
---|
1251 | #define DosAllocThreadLocalMemory _DosAllocThreadLocalMemory
|
---|
1252 |
|
---|
1253 | inline ULONG _DosCreateThread(PTID a, PFNTHREAD b, ULONG c, ULONG d, ULONG e)
|
---|
1254 | {
|
---|
1255 | ULONG yyrc;
|
---|
1256 | USHORT sel = GetFS();
|
---|
1257 |
|
---|
1258 | yyrc = DosCreateThread(a, b, c, d, e);
|
---|
1259 | SetFS(sel);
|
---|
1260 |
|
---|
1261 | return yyrc;
|
---|
1262 | }
|
---|
1263 |
|
---|
1264 | #undef DosCreateThread
|
---|
1265 | #define DosCreateThread _DosCreateThread
|
---|
1266 |
|
---|
1267 | inline ULONG _DosEnterCritSec()
|
---|
1268 | {
|
---|
1269 | ULONG yyrc;
|
---|
1270 | USHORT sel = GetFS();
|
---|
1271 |
|
---|
1272 | yyrc = DosEnterCritSec();
|
---|
1273 | SetFS(sel);
|
---|
1274 |
|
---|
1275 | return yyrc;
|
---|
1276 | }
|
---|
1277 |
|
---|
1278 | #undef DosEnterCritSec
|
---|
1279 | #define DosEnterCritSec _DosEnterCritSec
|
---|
1280 |
|
---|
1281 | inline ULONG _DosExecPgm(PCHAR a, LONG b, ULONG c, PCSZ d, PCSZ e, PRESULTCODES f, PCSZ g)
|
---|
1282 | {
|
---|
1283 | ULONG yyrc;
|
---|
1284 | USHORT sel = GetFS();
|
---|
1285 |
|
---|
1286 | yyrc = DosExecPgm(a, b, c, d, e, f, g);
|
---|
1287 | SetFS(sel);
|
---|
1288 |
|
---|
1289 | return yyrc;
|
---|
1290 | }
|
---|
1291 |
|
---|
1292 | #undef DosExecPgm
|
---|
1293 | #define DosExecPgm _DosExecPgm
|
---|
1294 |
|
---|
1295 | inline ULONG _DosExitCritSec()
|
---|
1296 | {
|
---|
1297 | ULONG yyrc;
|
---|
1298 | USHORT sel = GetFS();
|
---|
1299 |
|
---|
1300 | yyrc = DosExitCritSec();
|
---|
1301 | SetFS(sel);
|
---|
1302 |
|
---|
1303 | return yyrc;
|
---|
1304 | }
|
---|
1305 |
|
---|
1306 | #undef DosExitCritSec
|
---|
1307 | #define DosExitCritSec _DosExitCritSec
|
---|
1308 |
|
---|
1309 | inline ULONG _DosExitList(ULONG a, PFNEXITLIST b)
|
---|
1310 | {
|
---|
1311 | ULONG yyrc;
|
---|
1312 | USHORT sel = GetFS();
|
---|
1313 |
|
---|
1314 | yyrc = DosExitList(a, b);
|
---|
1315 | SetFS(sel);
|
---|
1316 |
|
---|
1317 | return yyrc;
|
---|
1318 | }
|
---|
1319 |
|
---|
1320 | #undef DosExitList
|
---|
1321 | #define DosExitList _DosExitList
|
---|
1322 |
|
---|
1323 | inline ULONG _DosFreeThreadLocalMemory(ULONG *a)
|
---|
1324 | {
|
---|
1325 | ULONG yyrc;
|
---|
1326 | USHORT sel = GetFS();
|
---|
1327 |
|
---|
1328 | yyrc = DosFreeThreadLocalMemory(a);
|
---|
1329 | SetFS(sel);
|
---|
1330 |
|
---|
1331 | return yyrc;
|
---|
1332 | }
|
---|
1333 |
|
---|
1334 | #undef DosFreeThreadLocalMemory
|
---|
1335 | #define DosFreeThreadLocalMemory _DosFreeThreadLocalMemory
|
---|
1336 |
|
---|
1337 | inline ULONG _DosGetInfoBlocks(PTIB *a, PPIB *b)
|
---|
1338 | {
|
---|
1339 | ULONG yyrc;
|
---|
1340 | USHORT sel = GetFS();
|
---|
1341 |
|
---|
1342 | yyrc = DosGetInfoBlocks(a, b);
|
---|
1343 | SetFS(sel);
|
---|
1344 |
|
---|
1345 | return yyrc;
|
---|
1346 | }
|
---|
1347 |
|
---|
1348 | #undef DosGetInfoBlocks
|
---|
1349 | #define DosGetInfoBlocks _DosGetInfoBlocks
|
---|
1350 |
|
---|
1351 | inline ULONG _DosKillProcess(ULONG a, PID b)
|
---|
1352 | {
|
---|
1353 | ULONG yyrc;
|
---|
1354 | USHORT sel = GetFS();
|
---|
1355 |
|
---|
1356 | yyrc = DosKillProcess(a, b);
|
---|
1357 | SetFS(sel);
|
---|
1358 |
|
---|
1359 | return yyrc;
|
---|
1360 | }
|
---|
1361 |
|
---|
1362 | #undef DosKillProcess
|
---|
1363 | #define DosKillProcess _DosKillProcess
|
---|
1364 |
|
---|
1365 | inline ULONG _DosKillThread(TID a)
|
---|
1366 | {
|
---|
1367 | ULONG yyrc;
|
---|
1368 | USHORT sel = GetFS();
|
---|
1369 |
|
---|
1370 | yyrc = DosKillThread(a);
|
---|
1371 | SetFS(sel);
|
---|
1372 |
|
---|
1373 | return yyrc;
|
---|
1374 | }
|
---|
1375 |
|
---|
1376 | #undef DosKillThread
|
---|
1377 | #define DosKillThread _DosKillThread
|
---|
1378 |
|
---|
1379 | inline ULONG _DosResumeThread(TID a)
|
---|
1380 | {
|
---|
1381 | ULONG yyrc;
|
---|
1382 | USHORT sel = GetFS();
|
---|
1383 |
|
---|
1384 | yyrc = DosResumeThread(a);
|
---|
1385 | SetFS(sel);
|
---|
1386 |
|
---|
1387 | return yyrc;
|
---|
1388 | }
|
---|
1389 |
|
---|
1390 | #undef DosResumeThread
|
---|
1391 | #define DosResumeThread _DosResumeThread
|
---|
1392 |
|
---|
1393 | inline ULONG _DosSetPriority(ULONG a, ULONG b, LONG c, ULONG d)
|
---|
1394 | {
|
---|
1395 | ULONG yyrc;
|
---|
1396 | USHORT sel = GetFS();
|
---|
1397 |
|
---|
1398 | yyrc = DosSetPriority(a, b, c, d);
|
---|
1399 | SetFS(sel);
|
---|
1400 |
|
---|
1401 | return yyrc;
|
---|
1402 | }
|
---|
1403 |
|
---|
1404 | #undef DosSetPriority
|
---|
1405 | #define DosSetPriority _DosSetPriority
|
---|
1406 |
|
---|
1407 | inline ULONG _DosSleep(ULONG a)
|
---|
1408 | {
|
---|
1409 | ULONG yyrc;
|
---|
1410 | USHORT sel = GetFS();
|
---|
1411 |
|
---|
1412 | yyrc = DosSleep(a);
|
---|
1413 | SetFS(sel);
|
---|
1414 |
|
---|
1415 | return yyrc;
|
---|
1416 | }
|
---|
1417 |
|
---|
1418 | #undef DosSleep
|
---|
1419 | #define DosSleep _DosSleep
|
---|
1420 |
|
---|
1421 | inline ULONG _DosSuspendThread(TID a)
|
---|
1422 | {
|
---|
1423 | ULONG yyrc;
|
---|
1424 | USHORT sel = GetFS();
|
---|
1425 |
|
---|
1426 | yyrc = DosSuspendThread(a);
|
---|
1427 | SetFS(sel);
|
---|
1428 |
|
---|
1429 | return yyrc;
|
---|
1430 | }
|
---|
1431 |
|
---|
1432 | #undef DosSuspendThread
|
---|
1433 | #define DosSuspendThread _DosSuspendThread
|
---|
1434 |
|
---|
1435 | inline ULONG _DosWaitChild(ULONG a, ULONG b, PRESULTCODES c, PPID d, PID e)
|
---|
1436 | {
|
---|
1437 | ULONG yyrc;
|
---|
1438 | USHORT sel = GetFS();
|
---|
1439 |
|
---|
1440 | yyrc = DosWaitChild(a, b, c, d, e);
|
---|
1441 | SetFS(sel);
|
---|
1442 |
|
---|
1443 | return yyrc;
|
---|
1444 | }
|
---|
1445 |
|
---|
1446 | #undef DosWaitChild
|
---|
1447 | #define DosWaitChild _DosWaitChild
|
---|
1448 |
|
---|
1449 | inline ULONG _DosWaitThread(PTID a, ULONG b)
|
---|
1450 | {
|
---|
1451 | ULONG yyrc;
|
---|
1452 | USHORT sel = GetFS();
|
---|
1453 |
|
---|
1454 | yyrc = DosWaitThread(a, b);
|
---|
1455 | SetFS(sel);
|
---|
1456 |
|
---|
1457 | return yyrc;
|
---|
1458 | }
|
---|
1459 |
|
---|
1460 | #undef DosWaitThread
|
---|
1461 | #define DosWaitThread _DosWaitThread
|
---|
1462 |
|
---|
1463 | #endif
|
---|
1464 | #ifdef INCL_DOSSESMGR
|
---|
1465 | inline ULONG _DosQueryAppType(PCSZ a, PULONG b)
|
---|
1466 | {
|
---|
1467 | ULONG yyrc;
|
---|
1468 | USHORT sel = GetFS();
|
---|
1469 |
|
---|
1470 | yyrc = DosQueryAppType(a, b);
|
---|
1471 | SetFS(sel);
|
---|
1472 |
|
---|
1473 | return yyrc;
|
---|
1474 | }
|
---|
1475 |
|
---|
1476 | #undef DosQueryAppType
|
---|
1477 | #define DosQueryAppType _DosQueryAppType
|
---|
1478 |
|
---|
1479 | inline ULONG _DosSelectSession(ULONG a)
|
---|
1480 | {
|
---|
1481 | ULONG yyrc;
|
---|
1482 | USHORT sel = GetFS();
|
---|
1483 |
|
---|
1484 | yyrc = DosSelectSession(a);
|
---|
1485 | SetFS(sel);
|
---|
1486 |
|
---|
1487 | return yyrc;
|
---|
1488 | }
|
---|
1489 |
|
---|
1490 | #undef DosSelectSession
|
---|
1491 | #define DosSelectSession _DosSelectSession
|
---|
1492 |
|
---|
1493 | inline ULONG _DosSetSession(ULONG a, PSTATUSDATA b)
|
---|
1494 | {
|
---|
1495 | ULONG yyrc;
|
---|
1496 | USHORT sel = GetFS();
|
---|
1497 |
|
---|
1498 | yyrc = DosSetSession(a, b);
|
---|
1499 | SetFS(sel);
|
---|
1500 |
|
---|
1501 | return yyrc;
|
---|
1502 | }
|
---|
1503 |
|
---|
1504 | #undef DosSetSession
|
---|
1505 | #define DosSetSession _DosSetSession
|
---|
1506 |
|
---|
1507 | inline ULONG _DosStartSession(PSTARTDATA a, PULONG b, PPID c)
|
---|
1508 | {
|
---|
1509 | ULONG yyrc;
|
---|
1510 | USHORT sel = GetFS();
|
---|
1511 |
|
---|
1512 | yyrc = DosStartSession(a, b, c);
|
---|
1513 | SetFS(sel);
|
---|
1514 |
|
---|
1515 | return yyrc;
|
---|
1516 | }
|
---|
1517 |
|
---|
1518 | #undef DosStartSession
|
---|
1519 | #define DosStartSession _DosStartSession
|
---|
1520 |
|
---|
1521 | inline ULONG _DosStopSession(ULONG a, ULONG b)
|
---|
1522 | {
|
---|
1523 | ULONG yyrc;
|
---|
1524 | USHORT sel = GetFS();
|
---|
1525 |
|
---|
1526 | yyrc = DosStopSession(a, b);
|
---|
1527 | SetFS(sel);
|
---|
1528 |
|
---|
1529 | return yyrc;
|
---|
1530 | }
|
---|
1531 |
|
---|
1532 | #undef DosStopSession
|
---|
1533 | #define DosStopSession _DosStopSession
|
---|
1534 |
|
---|
1535 | #endif
|
---|
1536 | #ifdef INCL_DOSSEMAPHORES
|
---|
1537 | inline ULONG _DosCloseEventSem(HEV a)
|
---|
1538 | {
|
---|
1539 | ULONG yyrc;
|
---|
1540 | USHORT sel = GetFS();
|
---|
1541 |
|
---|
1542 | yyrc = DosCloseEventSem(a);
|
---|
1543 | SetFS(sel);
|
---|
1544 |
|
---|
1545 | return yyrc;
|
---|
1546 | }
|
---|
1547 |
|
---|
1548 | #undef DosCloseEventSem
|
---|
1549 | #define DosCloseEventSem _DosCloseEventSem
|
---|
1550 |
|
---|
1551 | inline ULONG _DosCreateEventSem(PCSZ a, PHEV b, ULONG c, BOOL32 d)
|
---|
1552 | {
|
---|
1553 | ULONG yyrc;
|
---|
1554 | USHORT sel = GetFS();
|
---|
1555 |
|
---|
1556 | yyrc = DosCreateEventSem(a, b, c, d);
|
---|
1557 | SetFS(sel);
|
---|
1558 |
|
---|
1559 | return yyrc;
|
---|
1560 | }
|
---|
1561 |
|
---|
1562 | #undef DosCreateEventSem
|
---|
1563 | #define DosCreateEventSem _DosCreateEventSem
|
---|
1564 |
|
---|
1565 | inline ULONG _DosOpenEventSem(PCSZ a, PHEV b)
|
---|
1566 | {
|
---|
1567 | ULONG yyrc;
|
---|
1568 | USHORT sel = GetFS();
|
---|
1569 |
|
---|
1570 | yyrc = DosOpenEventSem(a, b);
|
---|
1571 | SetFS(sel);
|
---|
1572 |
|
---|
1573 | return yyrc;
|
---|
1574 | }
|
---|
1575 |
|
---|
1576 | #undef DosOpenEventSem
|
---|
1577 | #define DosOpenEventSem _DosOpenEventSem
|
---|
1578 |
|
---|
1579 | inline ULONG _DosPostEventSem(HEV a)
|
---|
1580 | {
|
---|
1581 | ULONG yyrc;
|
---|
1582 | USHORT sel = GetFS();
|
---|
1583 |
|
---|
1584 | yyrc = DosPostEventSem(a);
|
---|
1585 | SetFS(sel);
|
---|
1586 |
|
---|
1587 | return yyrc;
|
---|
1588 | }
|
---|
1589 |
|
---|
1590 | #undef DosPostEventSem
|
---|
1591 | #define DosPostEventSem _DosPostEventSem
|
---|
1592 |
|
---|
1593 | inline ULONG _DosQueryEventSem(HEV a, PULONG b)
|
---|
1594 | {
|
---|
1595 | ULONG yyrc;
|
---|
1596 | USHORT sel = GetFS();
|
---|
1597 |
|
---|
1598 | yyrc = DosQueryEventSem(a, b);
|
---|
1599 | SetFS(sel);
|
---|
1600 |
|
---|
1601 | return yyrc;
|
---|
1602 | }
|
---|
1603 |
|
---|
1604 | #undef DosQueryEventSem
|
---|
1605 | #define DosQueryEventSem _DosQueryEventSem
|
---|
1606 |
|
---|
1607 | inline ULONG _DosResetEventSem(HEV a, PULONG b)
|
---|
1608 | {
|
---|
1609 | ULONG yyrc;
|
---|
1610 | USHORT sel = GetFS();
|
---|
1611 |
|
---|
1612 | yyrc = DosResetEventSem(a, b);
|
---|
1613 | SetFS(sel);
|
---|
1614 |
|
---|
1615 | return yyrc;
|
---|
1616 | }
|
---|
1617 |
|
---|
1618 | #undef DosResetEventSem
|
---|
1619 | #define DosResetEventSem _DosResetEventSem
|
---|
1620 |
|
---|
1621 | inline ULONG _DosWaitEventSem(HEV a, ULONG b)
|
---|
1622 | {
|
---|
1623 | ULONG yyrc;
|
---|
1624 | USHORT sel = GetFS();
|
---|
1625 |
|
---|
1626 | yyrc = DosWaitEventSem(a, b);
|
---|
1627 | SetFS(sel);
|
---|
1628 |
|
---|
1629 | return yyrc;
|
---|
1630 | }
|
---|
1631 |
|
---|
1632 | #undef DosWaitEventSem
|
---|
1633 | #define DosWaitEventSem _DosWaitEventSem
|
---|
1634 |
|
---|
1635 | inline ULONG _DosCloseMutexSem(HMTX a)
|
---|
1636 | {
|
---|
1637 | ULONG yyrc;
|
---|
1638 | USHORT sel = GetFS();
|
---|
1639 |
|
---|
1640 | yyrc = DosCloseMutexSem(a);
|
---|
1641 | SetFS(sel);
|
---|
1642 |
|
---|
1643 | return yyrc;
|
---|
1644 | }
|
---|
1645 |
|
---|
1646 | #undef DosCloseMutexSem
|
---|
1647 | #define DosCloseMutexSem _DosCloseMutexSem
|
---|
1648 |
|
---|
1649 | inline ULONG _DosCreateMutexSem(PCSZ a, PHMTX b, ULONG c, BOOL32 d)
|
---|
1650 | {
|
---|
1651 | ULONG yyrc;
|
---|
1652 | USHORT sel = GetFS();
|
---|
1653 |
|
---|
1654 | yyrc = DosCreateMutexSem(a, b, c, d);
|
---|
1655 | SetFS(sel);
|
---|
1656 |
|
---|
1657 | return yyrc;
|
---|
1658 | }
|
---|
1659 |
|
---|
1660 | #undef DosCreateMutexSem
|
---|
1661 | #define DosCreateMutexSem _DosCreateMutexSem
|
---|
1662 |
|
---|
1663 | inline ULONG _DosOpenMutexSem(PCSZ a, PHMTX b)
|
---|
1664 | {
|
---|
1665 | ULONG yyrc;
|
---|
1666 | USHORT sel = GetFS();
|
---|
1667 |
|
---|
1668 | yyrc = DosOpenMutexSem(a, b);
|
---|
1669 | SetFS(sel);
|
---|
1670 |
|
---|
1671 | return yyrc;
|
---|
1672 | }
|
---|
1673 |
|
---|
1674 | #undef DosOpenMutexSem
|
---|
1675 | #define DosOpenMutexSem _DosOpenMutexSem
|
---|
1676 |
|
---|
1677 | inline ULONG _DosQueryMutexSem(HMTX a, PPID b, PTID c, PULONG d)
|
---|
1678 | {
|
---|
1679 | ULONG yyrc;
|
---|
1680 | USHORT sel = GetFS();
|
---|
1681 |
|
---|
1682 | yyrc = DosQueryMutexSem(a, b, c, d);
|
---|
1683 | SetFS(sel);
|
---|
1684 |
|
---|
1685 | return yyrc;
|
---|
1686 | }
|
---|
1687 |
|
---|
1688 | #undef DosQueryMutexSem
|
---|
1689 | #define DosQueryMutexSem _DosQueryMutexSem
|
---|
1690 |
|
---|
1691 | inline ULONG _DosReleaseMutexSem(HMTX a)
|
---|
1692 | {
|
---|
1693 | ULONG yyrc;
|
---|
1694 | USHORT sel = GetFS();
|
---|
1695 |
|
---|
1696 | yyrc = DosReleaseMutexSem(a);
|
---|
1697 | SetFS(sel);
|
---|
1698 |
|
---|
1699 | return yyrc;
|
---|
1700 | }
|
---|
1701 |
|
---|
1702 | #undef DosReleaseMutexSem
|
---|
1703 | #define DosReleaseMutexSem _DosReleaseMutexSem
|
---|
1704 |
|
---|
1705 | inline ULONG _DosRequestMutexSem(HMTX a, ULONG b)
|
---|
1706 | {
|
---|
1707 | ULONG yyrc;
|
---|
1708 | USHORT sel = GetFS();
|
---|
1709 |
|
---|
1710 | yyrc = DosRequestMutexSem(a, b);
|
---|
1711 | SetFS(sel);
|
---|
1712 |
|
---|
1713 | return yyrc;
|
---|
1714 | }
|
---|
1715 |
|
---|
1716 | #undef DosRequestMutexSem
|
---|
1717 | #define DosRequestMutexSem _DosRequestMutexSem
|
---|
1718 |
|
---|
1719 | inline ULONG _DosAddMuxWaitSem(HMUX a, PSEMRECORD b)
|
---|
1720 | {
|
---|
1721 | ULONG yyrc;
|
---|
1722 | USHORT sel = GetFS();
|
---|
1723 |
|
---|
1724 | yyrc = DosAddMuxWaitSem(a, b);
|
---|
1725 | SetFS(sel);
|
---|
1726 |
|
---|
1727 | return yyrc;
|
---|
1728 | }
|
---|
1729 |
|
---|
1730 | #undef DosAddMuxWaitSem
|
---|
1731 | #define DosAddMuxWaitSem _DosAddMuxWaitSem
|
---|
1732 |
|
---|
1733 | inline ULONG _DosCloseMuxWaitSem(HMUX a)
|
---|
1734 | {
|
---|
1735 | ULONG yyrc;
|
---|
1736 | USHORT sel = GetFS();
|
---|
1737 |
|
---|
1738 | yyrc = DosCloseMuxWaitSem(a);
|
---|
1739 | SetFS(sel);
|
---|
1740 |
|
---|
1741 | return yyrc;
|
---|
1742 | }
|
---|
1743 |
|
---|
1744 | #undef DosCloseMuxWaitSem
|
---|
1745 | #define DosCloseMuxWaitSem _DosCloseMuxWaitSem
|
---|
1746 |
|
---|
1747 | inline ULONG _DosCreateMuxWaitSem(PCSZ a, PHMUX b, ULONG c, PSEMRECORD d, ULONG e)
|
---|
1748 | {
|
---|
1749 | ULONG yyrc;
|
---|
1750 | USHORT sel = GetFS();
|
---|
1751 |
|
---|
1752 | yyrc = DosCreateMuxWaitSem(a, b, c, d, e);
|
---|
1753 | SetFS(sel);
|
---|
1754 |
|
---|
1755 | return yyrc;
|
---|
1756 | }
|
---|
1757 |
|
---|
1758 | #undef DosCreateMuxWaitSem
|
---|
1759 | #define DosCreateMuxWaitSem _DosCreateMuxWaitSem
|
---|
1760 |
|
---|
1761 | inline ULONG _DosDeleteMuxWaitSem(HMUX a, HSEM b)
|
---|
1762 | {
|
---|
1763 | ULONG yyrc;
|
---|
1764 | USHORT sel = GetFS();
|
---|
1765 |
|
---|
1766 | yyrc = DosDeleteMuxWaitSem(a, b);
|
---|
1767 | SetFS(sel);
|
---|
1768 |
|
---|
1769 | return yyrc;
|
---|
1770 | }
|
---|
1771 |
|
---|
1772 | #undef DosDeleteMuxWaitSem
|
---|
1773 | #define DosDeleteMuxWaitSem _DosDeleteMuxWaitSem
|
---|
1774 |
|
---|
1775 | inline ULONG _DosOpenMuxWaitSem(PCSZ a, PHMUX b)
|
---|
1776 | {
|
---|
1777 | ULONG yyrc;
|
---|
1778 | USHORT sel = GetFS();
|
---|
1779 |
|
---|
1780 | yyrc = DosOpenMuxWaitSem(a, b);
|
---|
1781 | SetFS(sel);
|
---|
1782 |
|
---|
1783 | return yyrc;
|
---|
1784 | }
|
---|
1785 |
|
---|
1786 | #undef DosOpenMuxWaitSem
|
---|
1787 | #define DosOpenMuxWaitSem _DosOpenMuxWaitSem
|
---|
1788 |
|
---|
1789 | inline ULONG _DosQueryMuxWaitSem(HMUX a, PULONG b, PSEMRECORD c, PULONG d)
|
---|
1790 | {
|
---|
1791 | ULONG yyrc;
|
---|
1792 | USHORT sel = GetFS();
|
---|
1793 |
|
---|
1794 | yyrc = DosQueryMuxWaitSem(a, b, c, d);
|
---|
1795 | SetFS(sel);
|
---|
1796 |
|
---|
1797 | return yyrc;
|
---|
1798 | }
|
---|
1799 |
|
---|
1800 | #undef DosQueryMuxWaitSem
|
---|
1801 | #define DosQueryMuxWaitSem _DosQueryMuxWaitSem
|
---|
1802 |
|
---|
1803 | inline ULONG _DosWaitMuxWaitSem(HMUX a, ULONG b, PULONG c)
|
---|
1804 | {
|
---|
1805 | ULONG yyrc;
|
---|
1806 | USHORT sel = GetFS();
|
---|
1807 |
|
---|
1808 | yyrc = DosWaitMuxWaitSem(a, b, c);
|
---|
1809 | SetFS(sel);
|
---|
1810 |
|
---|
1811 | return yyrc;
|
---|
1812 | }
|
---|
1813 |
|
---|
1814 | #undef DosWaitMuxWaitSem
|
---|
1815 | #define DosWaitMuxWaitSem _DosWaitMuxWaitSem
|
---|
1816 |
|
---|
1817 | #endif
|
---|
1818 | #ifdef INCL_DOSNMPIPES
|
---|
1819 | inline ULONG _DosCallNPipe(PCSZ a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f, ULONG g)
|
---|
1820 | {
|
---|
1821 | ULONG yyrc;
|
---|
1822 | USHORT sel = GetFS();
|
---|
1823 |
|
---|
1824 | yyrc = DosCallNPipe(a, b, c, d, e, f, g);
|
---|
1825 | SetFS(sel);
|
---|
1826 |
|
---|
1827 | return yyrc;
|
---|
1828 | }
|
---|
1829 |
|
---|
1830 | #undef DosCallNPipe
|
---|
1831 | #define DosCallNPipe _DosCallNPipe
|
---|
1832 |
|
---|
1833 | inline ULONG _DosConnectNPipe(HPIPE a)
|
---|
1834 | {
|
---|
1835 | ULONG yyrc;
|
---|
1836 | USHORT sel = GetFS();
|
---|
1837 |
|
---|
1838 | yyrc = DosConnectNPipe(a);
|
---|
1839 | SetFS(sel);
|
---|
1840 |
|
---|
1841 | return yyrc;
|
---|
1842 | }
|
---|
1843 |
|
---|
1844 | #undef DosConnectNPipe
|
---|
1845 | #define DosConnectNPipe _DosConnectNPipe
|
---|
1846 |
|
---|
1847 | inline ULONG _DosCreateNPipe(PCSZ a, PHPIPE b, ULONG c, ULONG d, ULONG e, ULONG f, ULONG g)
|
---|
1848 | {
|
---|
1849 | ULONG yyrc;
|
---|
1850 | USHORT sel = GetFS();
|
---|
1851 |
|
---|
1852 | yyrc = DosCreateNPipe(a, b, c, d, e, f, g);
|
---|
1853 | SetFS(sel);
|
---|
1854 |
|
---|
1855 | return yyrc;
|
---|
1856 | }
|
---|
1857 |
|
---|
1858 | #undef DosCreateNPipe
|
---|
1859 | #define DosCreateNPipe _DosCreateNPipe
|
---|
1860 |
|
---|
1861 | inline ULONG _DosDisConnectNPipe(HPIPE a)
|
---|
1862 | {
|
---|
1863 | ULONG yyrc;
|
---|
1864 | USHORT sel = GetFS();
|
---|
1865 |
|
---|
1866 | yyrc = DosDisConnectNPipe(a);
|
---|
1867 | SetFS(sel);
|
---|
1868 |
|
---|
1869 | return yyrc;
|
---|
1870 | }
|
---|
1871 |
|
---|
1872 | #undef DosDisConnectNPipe
|
---|
1873 | #define DosDisConnectNPipe _DosDisConnectNPipe
|
---|
1874 |
|
---|
1875 | inline ULONG _DosPeekNPipe(HPIPE a, PVOID b, ULONG c, PULONG d, PAVAILDATA e, PULONG f)
|
---|
1876 | {
|
---|
1877 | ULONG yyrc;
|
---|
1878 | USHORT sel = GetFS();
|
---|
1879 |
|
---|
1880 | yyrc = DosPeekNPipe(a, b, c, d, e, f);
|
---|
1881 | SetFS(sel);
|
---|
1882 |
|
---|
1883 | return yyrc;
|
---|
1884 | }
|
---|
1885 |
|
---|
1886 | #undef DosPeekNPipe
|
---|
1887 | #define DosPeekNPipe _DosPeekNPipe
|
---|
1888 |
|
---|
1889 | inline ULONG _DosQueryNPHState(HPIPE a, PULONG b)
|
---|
1890 | {
|
---|
1891 | ULONG yyrc;
|
---|
1892 | USHORT sel = GetFS();
|
---|
1893 |
|
---|
1894 | yyrc = DosQueryNPHState(a, b);
|
---|
1895 | SetFS(sel);
|
---|
1896 |
|
---|
1897 | return yyrc;
|
---|
1898 | }
|
---|
1899 |
|
---|
1900 | #undef DosQueryNPHState
|
---|
1901 | #define DosQueryNPHState _DosQueryNPHState
|
---|
1902 |
|
---|
1903 | inline ULONG _DosQueryNPipeInfo(HPIPE a, ULONG b, PVOID c, ULONG d)
|
---|
1904 | {
|
---|
1905 | ULONG yyrc;
|
---|
1906 | USHORT sel = GetFS();
|
---|
1907 |
|
---|
1908 | yyrc = DosQueryNPipeInfo(a, b, c, d);
|
---|
1909 | SetFS(sel);
|
---|
1910 |
|
---|
1911 | return yyrc;
|
---|
1912 | }
|
---|
1913 |
|
---|
1914 | #undef DosQueryNPipeInfo
|
---|
1915 | #define DosQueryNPipeInfo _DosQueryNPipeInfo
|
---|
1916 |
|
---|
1917 | inline ULONG _DosQueryNPipeSemState(HSEM a, PPIPESEMSTATE b, ULONG c)
|
---|
1918 | {
|
---|
1919 | ULONG yyrc;
|
---|
1920 | USHORT sel = GetFS();
|
---|
1921 |
|
---|
1922 | yyrc = DosQueryNPipeSemState(a, b, c);
|
---|
1923 | SetFS(sel);
|
---|
1924 |
|
---|
1925 | return yyrc;
|
---|
1926 | }
|
---|
1927 |
|
---|
1928 | #undef DosQueryNPipeSemState
|
---|
1929 | #define DosQueryNPipeSemState _DosQueryNPipeSemState
|
---|
1930 |
|
---|
1931 | inline ULONG _DosRawReadNPipe(PCSZ a, ULONG b, PULONG c, PVOID d)
|
---|
1932 | {
|
---|
1933 | ULONG yyrc;
|
---|
1934 | USHORT sel = GetFS();
|
---|
1935 |
|
---|
1936 | yyrc = DosRawReadNPipe(a, b, c, d);
|
---|
1937 | SetFS(sel);
|
---|
1938 |
|
---|
1939 | return yyrc;
|
---|
1940 | }
|
---|
1941 |
|
---|
1942 | #undef DosRawReadNPipe
|
---|
1943 | #define DosRawReadNPipe _DosRawReadNPipe
|
---|
1944 |
|
---|
1945 | inline ULONG _DosRawWriteNPipe(PCSZ a, ULONG b)
|
---|
1946 | {
|
---|
1947 | ULONG yyrc;
|
---|
1948 | USHORT sel = GetFS();
|
---|
1949 |
|
---|
1950 | yyrc = DosRawWriteNPipe(a, b);
|
---|
1951 | SetFS(sel);
|
---|
1952 |
|
---|
1953 | return yyrc;
|
---|
1954 | }
|
---|
1955 |
|
---|
1956 | #undef DosRawWriteNPipe
|
---|
1957 | #define DosRawWriteNPipe _DosRawWriteNPipe
|
---|
1958 |
|
---|
1959 | inline ULONG _DosSetNPHState(HPIPE a, ULONG b)
|
---|
1960 | {
|
---|
1961 | ULONG yyrc;
|
---|
1962 | USHORT sel = GetFS();
|
---|
1963 |
|
---|
1964 | yyrc = DosSetNPHState(a, b);
|
---|
1965 | SetFS(sel);
|
---|
1966 |
|
---|
1967 | return yyrc;
|
---|
1968 | }
|
---|
1969 |
|
---|
1970 | #undef DosSetNPHState
|
---|
1971 | #define DosSetNPHState _DosSetNPHState
|
---|
1972 |
|
---|
1973 | inline ULONG _DosSetNPipeSem(HPIPE a, HSEM b, ULONG c)
|
---|
1974 | {
|
---|
1975 | ULONG yyrc;
|
---|
1976 | USHORT sel = GetFS();
|
---|
1977 |
|
---|
1978 | yyrc = DosSetNPipeSem(a, b, c);
|
---|
1979 | SetFS(sel);
|
---|
1980 |
|
---|
1981 | return yyrc;
|
---|
1982 | }
|
---|
1983 |
|
---|
1984 | #undef DosSetNPipeSem
|
---|
1985 | #define DosSetNPipeSem _DosSetNPipeSem
|
---|
1986 |
|
---|
1987 | inline ULONG _DosTransactNPipe(HPIPE a, PVOID b, ULONG c, PVOID d, ULONG e, PULONG f)
|
---|
1988 | {
|
---|
1989 | ULONG yyrc;
|
---|
1990 | USHORT sel = GetFS();
|
---|
1991 |
|
---|
1992 | yyrc = DosTransactNPipe(a, b, c, d, e, f);
|
---|
1993 | SetFS(sel);
|
---|
1994 |
|
---|
1995 | return yyrc;
|
---|
1996 | }
|
---|
1997 |
|
---|
1998 | #undef DosTransactNPipe
|
---|
1999 | #define DosTransactNPipe _DosTransactNPipe
|
---|
2000 |
|
---|
2001 | inline ULONG _DosWaitNPipe(PCSZ a, ULONG b)
|
---|
2002 | {
|
---|
2003 | ULONG yyrc;
|
---|
2004 | USHORT sel = GetFS();
|
---|
2005 |
|
---|
2006 | yyrc = DosWaitNPipe(a, b);
|
---|
2007 | SetFS(sel);
|
---|
2008 |
|
---|
2009 | return yyrc;
|
---|
2010 | }
|
---|
2011 |
|
---|
2012 | #undef DosWaitNPipe
|
---|
2013 | #define DosWaitNPipe _DosWaitNPipe
|
---|
2014 |
|
---|
2015 | inline ULONG _DosCreatePipe(PHFILE a, PHFILE b, ULONG c)
|
---|
2016 | {
|
---|
2017 | ULONG yyrc;
|
---|
2018 | USHORT sel = GetFS();
|
---|
2019 |
|
---|
2020 | yyrc = DosCreatePipe(a, b, c);
|
---|
2021 | SetFS(sel);
|
---|
2022 |
|
---|
2023 | return yyrc;
|
---|
2024 | }
|
---|
2025 |
|
---|
2026 | #undef DosCreatePipe
|
---|
2027 | #define DosCreatePipe _DosCreatePipe
|
---|
2028 |
|
---|
2029 | #endif
|
---|
2030 | #ifdef INCL_DOSQUEUES
|
---|
2031 | inline ULONG _DosCloseQueue(HQUEUE a)
|
---|
2032 | {
|
---|
2033 | ULONG yyrc;
|
---|
2034 | USHORT sel = GetFS();
|
---|
2035 |
|
---|
2036 | yyrc = DosCloseQueue(a);
|
---|
2037 | SetFS(sel);
|
---|
2038 |
|
---|
2039 | return yyrc;
|
---|
2040 | }
|
---|
2041 |
|
---|
2042 | #undef DosCloseQueue
|
---|
2043 | #define DosCloseQueue _DosCloseQueue
|
---|
2044 |
|
---|
2045 | inline ULONG _DosCreateQueue(PHQUEUE a, ULONG b, PCSZ c)
|
---|
2046 | {
|
---|
2047 | ULONG yyrc;
|
---|
2048 | USHORT sel = GetFS();
|
---|
2049 |
|
---|
2050 | yyrc = DosCreateQueue(a, b, c);
|
---|
2051 | SetFS(sel);
|
---|
2052 |
|
---|
2053 | return yyrc;
|
---|
2054 | }
|
---|
2055 |
|
---|
2056 | #undef DosCreateQueue
|
---|
2057 | #define DosCreateQueue _DosCreateQueue
|
---|
2058 |
|
---|
2059 | inline ULONG _DosOpenQueue(PPID a, PHQUEUE b, PCSZ c)
|
---|
2060 | {
|
---|
2061 | ULONG yyrc;
|
---|
2062 | USHORT sel = GetFS();
|
---|
2063 |
|
---|
2064 | yyrc = DosOpenQueue(a, b, c);
|
---|
2065 | SetFS(sel);
|
---|
2066 |
|
---|
2067 | return yyrc;
|
---|
2068 | }
|
---|
2069 |
|
---|
2070 | #undef DosOpenQueue
|
---|
2071 | #define DosOpenQueue _DosOpenQueue
|
---|
2072 |
|
---|
2073 | inline ULONG _DosPeekQueue(HQUEUE a, PREQUESTDATA b, PULONG c, PPVOID d, PULONG e, BOOL32 f, PBYTE g, HEV h)
|
---|
2074 | {
|
---|
2075 | ULONG yyrc;
|
---|
2076 | USHORT sel = GetFS();
|
---|
2077 |
|
---|
2078 | yyrc = DosPeekQueue(a, b, c, d, e, f, g, h);
|
---|
2079 | SetFS(sel);
|
---|
2080 |
|
---|
2081 | return yyrc;
|
---|
2082 | }
|
---|
2083 |
|
---|
2084 | #undef DosPeekQueue
|
---|
2085 | #define DosPeekQueue _DosPeekQueue
|
---|
2086 |
|
---|
2087 | inline ULONG _DosPurgeQueue(HQUEUE a)
|
---|
2088 | {
|
---|
2089 | ULONG yyrc;
|
---|
2090 | USHORT sel = GetFS();
|
---|
2091 |
|
---|
2092 | yyrc = DosPurgeQueue(a);
|
---|
2093 | SetFS(sel);
|
---|
2094 |
|
---|
2095 | return yyrc;
|
---|
2096 | }
|
---|
2097 |
|
---|
2098 | #undef DosPurgeQueue
|
---|
2099 | #define DosPurgeQueue _DosPurgeQueue
|
---|
2100 |
|
---|
2101 | inline ULONG _DosQueryQueue(HQUEUE a, PULONG b)
|
---|
2102 | {
|
---|
2103 | ULONG yyrc;
|
---|
2104 | USHORT sel = GetFS();
|
---|
2105 |
|
---|
2106 | yyrc = DosQueryQueue(a, b);
|
---|
2107 | SetFS(sel);
|
---|
2108 |
|
---|
2109 | return yyrc;
|
---|
2110 | }
|
---|
2111 |
|
---|
2112 | #undef DosQueryQueue
|
---|
2113 | #define DosQueryQueue _DosQueryQueue
|
---|
2114 |
|
---|
2115 | inline ULONG _DosReadQueue(HQUEUE a, PREQUESTDATA b, PULONG c, PPVOID d, ULONG e, BOOL32 f, PBYTE g, HEV h)
|
---|
2116 | {
|
---|
2117 | ULONG yyrc;
|
---|
2118 | USHORT sel = GetFS();
|
---|
2119 |
|
---|
2120 | yyrc = DosReadQueue(a, b, c, d, e, f, g, h);
|
---|
2121 | SetFS(sel);
|
---|
2122 |
|
---|
2123 | return yyrc;
|
---|
2124 | }
|
---|
2125 |
|
---|
2126 | #undef DosReadQueue
|
---|
2127 | #define DosReadQueue _DosReadQueue
|
---|
2128 |
|
---|
2129 | inline ULONG _DosWriteQueue(HQUEUE a, ULONG b, ULONG c, PVOID d, ULONG e)
|
---|
2130 | {
|
---|
2131 | ULONG yyrc;
|
---|
2132 | USHORT sel = GetFS();
|
---|
2133 |
|
---|
2134 | yyrc = DosWriteQueue(a, b, c, d, e);
|
---|
2135 | SetFS(sel);
|
---|
2136 |
|
---|
2137 | return yyrc;
|
---|
2138 | }
|
---|
2139 |
|
---|
2140 | #undef DosWriteQueue
|
---|
2141 | #define DosWriteQueue _DosWriteQueue
|
---|
2142 |
|
---|
2143 | #endif
|
---|
2144 | #ifdef INCL_DOSEXCEPTIONS
|
---|
2145 | inline ULONG _DosAcknowledgeSignalException(ULONG a)
|
---|
2146 | {
|
---|
2147 | ULONG yyrc;
|
---|
2148 | USHORT sel = GetFS();
|
---|
2149 |
|
---|
2150 | yyrc = DosAcknowledgeSignalException(a);
|
---|
2151 | SetFS(sel);
|
---|
2152 |
|
---|
2153 | return yyrc;
|
---|
2154 | }
|
---|
2155 |
|
---|
2156 | #undef DosAcknowledgeSignalException
|
---|
2157 | #define DosAcknowledgeSignalException _DosAcknowledgeSignalException
|
---|
2158 |
|
---|
2159 | inline ULONG _DosEnterMustComplete(PULONG a)
|
---|
2160 | {
|
---|
2161 | ULONG yyrc;
|
---|
2162 | USHORT sel = GetFS();
|
---|
2163 |
|
---|
2164 | yyrc = DosEnterMustComplete(a);
|
---|
2165 | SetFS(sel);
|
---|
2166 |
|
---|
2167 | return yyrc;
|
---|
2168 | }
|
---|
2169 |
|
---|
2170 | #undef DosEnterMustComplete
|
---|
2171 | #define DosEnterMustComplete _DosEnterMustComplete
|
---|
2172 |
|
---|
2173 | inline ULONG _DosExitMustComplete(PULONG a)
|
---|
2174 | {
|
---|
2175 | ULONG yyrc;
|
---|
2176 | USHORT sel = GetFS();
|
---|
2177 |
|
---|
2178 | yyrc = DosExitMustComplete(a);
|
---|
2179 | SetFS(sel);
|
---|
2180 |
|
---|
2181 | return yyrc;
|
---|
2182 | }
|
---|
2183 |
|
---|
2184 | #undef DosExitMustComplete
|
---|
2185 | #define DosExitMustComplete _DosExitMustComplete
|
---|
2186 |
|
---|
2187 | inline ULONG _DosQueryThreadContext(TID a, ULONG b, PCONTEXTRECORD c)
|
---|
2188 | {
|
---|
2189 | ULONG yyrc;
|
---|
2190 | USHORT sel = GetFS();
|
---|
2191 |
|
---|
2192 | yyrc = DosQueryThreadContext(a, b, c);
|
---|
2193 | SetFS(sel);
|
---|
2194 |
|
---|
2195 | return yyrc;
|
---|
2196 | }
|
---|
2197 |
|
---|
2198 | #undef DosQueryThreadContext
|
---|
2199 | #define DosQueryThreadContext _DosQueryThreadContext
|
---|
2200 |
|
---|
2201 | inline ULONG _DosRaiseException(PEXCEPTIONREPORTRECORD a)
|
---|
2202 | {
|
---|
2203 | ULONG yyrc;
|
---|
2204 | USHORT sel = GetFS();
|
---|
2205 |
|
---|
2206 | yyrc = DosRaiseException(a);
|
---|
2207 | SetFS(sel);
|
---|
2208 |
|
---|
2209 | return yyrc;
|
---|
2210 | }
|
---|
2211 |
|
---|
2212 | #undef DosRaiseException
|
---|
2213 | #define DosRaiseException _DosRaiseException
|
---|
2214 |
|
---|
2215 | inline ULONG _DosSendSignalException(PID a, ULONG b)
|
---|
2216 | {
|
---|
2217 | ULONG yyrc;
|
---|
2218 | USHORT sel = GetFS();
|
---|
2219 |
|
---|
2220 | yyrc = DosSendSignalException(a, b);
|
---|
2221 | SetFS(sel);
|
---|
2222 |
|
---|
2223 | return yyrc;
|
---|
2224 | }
|
---|
2225 |
|
---|
2226 | #undef DosSendSignalException
|
---|
2227 | #define DosSendSignalException _DosSendSignalException
|
---|
2228 |
|
---|
2229 | inline ULONG _DosSetExceptionHandler(PEXCEPTIONREGISTRATIONRECORD a)
|
---|
2230 | {
|
---|
2231 | ULONG yyrc;
|
---|
2232 | USHORT sel = GetFS();
|
---|
2233 |
|
---|
2234 | yyrc = DosSetExceptionHandler(a);
|
---|
2235 | SetFS(sel);
|
---|
2236 |
|
---|
2237 | return yyrc;
|
---|
2238 | }
|
---|
2239 |
|
---|
2240 | #undef DosSetExceptionHandler
|
---|
2241 | #define DosSetExceptionHandler _DosSetExceptionHandler
|
---|
2242 |
|
---|
2243 | inline ULONG _DosSetSignalExceptionFocus(BOOL32 a, PULONG b)
|
---|
2244 | {
|
---|
2245 | ULONG yyrc;
|
---|
2246 | USHORT sel = GetFS();
|
---|
2247 |
|
---|
2248 | yyrc = DosSetSignalExceptionFocus(a, b);
|
---|
2249 | SetFS(sel);
|
---|
2250 |
|
---|
2251 | return yyrc;
|
---|
2252 | }
|
---|
2253 |
|
---|
2254 | #undef DosSetSignalExceptionFocus
|
---|
2255 | #define DosSetSignalExceptionFocus _DosSetSignalExceptionFocus
|
---|
2256 |
|
---|
2257 | inline ULONG _DosUnsetExceptionHandler(PEXCEPTIONREGISTRATIONRECORD a)
|
---|
2258 | {
|
---|
2259 | ULONG yyrc;
|
---|
2260 | USHORT sel = GetFS();
|
---|
2261 |
|
---|
2262 | yyrc = DosUnsetExceptionHandler(a);
|
---|
2263 | SetFS(sel);
|
---|
2264 |
|
---|
2265 | return yyrc;
|
---|
2266 | }
|
---|
2267 |
|
---|
2268 | #undef DosUnsetExceptionHandler
|
---|
2269 | #define DosUnsetExceptionHandler _DosUnsetExceptionHandler
|
---|
2270 |
|
---|
2271 | inline ULONG _DosUnwindException(PEXCEPTIONREGISTRATIONRECORD a, PVOID b, PEXCEPTIONREPORTRECORD c)
|
---|
2272 | {
|
---|
2273 | ULONG yyrc;
|
---|
2274 | USHORT sel = GetFS();
|
---|
2275 |
|
---|
2276 | yyrc = DosUnwindException(a, b, c);
|
---|
2277 | SetFS(sel);
|
---|
2278 |
|
---|
2279 | return yyrc;
|
---|
2280 | }
|
---|
2281 |
|
---|
2282 | #undef DosUnwindException
|
---|
2283 | #define DosUnwindException _DosUnwindException
|
---|
2284 |
|
---|
2285 | #endif
|
---|
2286 | #ifdef INCL_DOSMISC
|
---|
2287 | inline ULONG _DosQuerySysInfo(ULONG a, ULONG b, PVOID c, ULONG d)
|
---|
2288 | {
|
---|
2289 | ULONG yyrc;
|
---|
2290 | USHORT sel = GetFS();
|
---|
2291 |
|
---|
2292 | yyrc = DosQuerySysInfo(a, b, c, d);
|
---|
2293 | SetFS(sel);
|
---|
2294 |
|
---|
2295 | return yyrc;
|
---|
2296 | }
|
---|
2297 |
|
---|
2298 | #undef DosQuerySysInfo
|
---|
2299 | #define DosQuerySysInfo _DosQuerySysInfo
|
---|
2300 |
|
---|
2301 | inline ULONG _DosScanEnv(PCSZ a, PCSZ *b)
|
---|
2302 | {
|
---|
2303 | ULONG yyrc;
|
---|
2304 | USHORT sel = GetFS();
|
---|
2305 |
|
---|
2306 | yyrc = DosScanEnv(a, b);
|
---|
2307 | SetFS(sel);
|
---|
2308 |
|
---|
2309 | return yyrc;
|
---|
2310 | }
|
---|
2311 |
|
---|
2312 | #undef DosScanEnv
|
---|
2313 | #define DosScanEnv _DosScanEnv
|
---|
2314 |
|
---|
2315 | inline ULONG _DosQueryRASInfo(ULONG a, PPVOID b)
|
---|
2316 | {
|
---|
2317 | ULONG yyrc;
|
---|
2318 | USHORT sel = GetFS();
|
---|
2319 |
|
---|
2320 | yyrc = DosQueryRASInfo(a, b);
|
---|
2321 | SetFS(sel);
|
---|
2322 |
|
---|
2323 | return yyrc;
|
---|
2324 | }
|
---|
2325 |
|
---|
2326 | #undef DosQueryRASInfo
|
---|
2327 | #define DosQueryRASInfo _DosQueryRASInfo
|
---|
2328 |
|
---|
2329 | #endif
|
---|
2330 | #ifdef INCL_DOSDATETIME
|
---|
2331 | inline ULONG _DosGetDateTime(PDATETIME a)
|
---|
2332 | {
|
---|
2333 | ULONG yyrc;
|
---|
2334 | USHORT sel = GetFS();
|
---|
2335 |
|
---|
2336 | yyrc = DosGetDateTime(a);
|
---|
2337 | SetFS(sel);
|
---|
2338 |
|
---|
2339 | return yyrc;
|
---|
2340 | }
|
---|
2341 |
|
---|
2342 | #undef DosGetDateTime
|
---|
2343 | #define DosGetDateTime _DosGetDateTime
|
---|
2344 |
|
---|
2345 | inline ULONG _DosSetDateTime(PDATETIME a)
|
---|
2346 | {
|
---|
2347 | ULONG yyrc;
|
---|
2348 | USHORT sel = GetFS();
|
---|
2349 |
|
---|
2350 | yyrc = DosSetDateTime(a);
|
---|
2351 | SetFS(sel);
|
---|
2352 |
|
---|
2353 | return yyrc;
|
---|
2354 | }
|
---|
2355 |
|
---|
2356 | #undef DosSetDateTime
|
---|
2357 | #define DosSetDateTime _DosSetDateTime
|
---|
2358 |
|
---|
2359 | inline ULONG _DosAsyncTimer(ULONG a, HSEM b, PHTIMER c)
|
---|
2360 | {
|
---|
2361 | ULONG yyrc;
|
---|
2362 | USHORT sel = GetFS();
|
---|
2363 |
|
---|
2364 | yyrc = DosAsyncTimer(a, b, c);
|
---|
2365 | SetFS(sel);
|
---|
2366 |
|
---|
2367 | return yyrc;
|
---|
2368 | }
|
---|
2369 |
|
---|
2370 | #undef DosAsyncTimer
|
---|
2371 | #define DosAsyncTimer _DosAsyncTimer
|
---|
2372 |
|
---|
2373 | inline ULONG _DosStartTimer(ULONG a, HSEM b, PHTIMER c)
|
---|
2374 | {
|
---|
2375 | ULONG yyrc;
|
---|
2376 | USHORT sel = GetFS();
|
---|
2377 |
|
---|
2378 | yyrc = DosStartTimer(a, b, c);
|
---|
2379 | SetFS(sel);
|
---|
2380 |
|
---|
2381 | return yyrc;
|
---|
2382 | }
|
---|
2383 |
|
---|
2384 | #undef DosStartTimer
|
---|
2385 | #define DosStartTimer _DosStartTimer
|
---|
2386 |
|
---|
2387 | inline ULONG _DosStopTimer(HTIMER a)
|
---|
2388 | {
|
---|
2389 | ULONG yyrc;
|
---|
2390 | USHORT sel = GetFS();
|
---|
2391 |
|
---|
2392 | yyrc = DosStopTimer(a);
|
---|
2393 | SetFS(sel);
|
---|
2394 |
|
---|
2395 | return yyrc;
|
---|
2396 | }
|
---|
2397 |
|
---|
2398 | #undef DosStopTimer
|
---|
2399 | #define DosStopTimer _DosStopTimer
|
---|
2400 |
|
---|
2401 | #endif
|
---|
2402 | #ifdef DosTmrQueryFreq
|
---|
2403 | inline ULONG _DosTmrQueryFreq(PULONG a)
|
---|
2404 | {
|
---|
2405 | ULONG yyrc;
|
---|
2406 | USHORT sel = GetFS();
|
---|
2407 |
|
---|
2408 | yyrc = DosTmrQueryFreq(a);
|
---|
2409 | SetFS(sel);
|
---|
2410 |
|
---|
2411 | return yyrc;
|
---|
2412 | }
|
---|
2413 |
|
---|
2414 | #undef DosTmrQueryFreq
|
---|
2415 | #define DosTmrQueryFreq _DosTmrQueryFreq
|
---|
2416 |
|
---|
2417 | inline ULONG _DosTmrQueryTime(PQWORD a)
|
---|
2418 | {
|
---|
2419 | ULONG yyrc;
|
---|
2420 | USHORT sel = GetFS();
|
---|
2421 |
|
---|
2422 | yyrc = DosTmrQueryTime(a);
|
---|
2423 | SetFS(sel);
|
---|
2424 |
|
---|
2425 | return yyrc;
|
---|
2426 | }
|
---|
2427 |
|
---|
2428 | #undef DosTmrQueryTime
|
---|
2429 | #define DosTmrQueryTime _DosTmrQueryTime
|
---|
2430 |
|
---|
2431 | #endif
|
---|
2432 | #ifdef INCL_DOSMVDM
|
---|
2433 | inline ULONG _DosCloseVDD(HVDD a)
|
---|
2434 | {
|
---|
2435 | ULONG yyrc;
|
---|
2436 | USHORT sel = GetFS();
|
---|
2437 |
|
---|
2438 | yyrc = DosCloseVDD(a);
|
---|
2439 | SetFS(sel);
|
---|
2440 |
|
---|
2441 | return yyrc;
|
---|
2442 | }
|
---|
2443 |
|
---|
2444 | #undef DosCloseVDD
|
---|
2445 | #define DosCloseVDD _DosCloseVDD
|
---|
2446 |
|
---|
2447 | inline ULONG _DosOpenVDD(PCSZ a, PHVDD b)
|
---|
2448 | {
|
---|
2449 | ULONG yyrc;
|
---|
2450 | USHORT sel = GetFS();
|
---|
2451 |
|
---|
2452 | yyrc = DosOpenVDD(a, b);
|
---|
2453 | SetFS(sel);
|
---|
2454 |
|
---|
2455 | return yyrc;
|
---|
2456 | }
|
---|
2457 |
|
---|
2458 | #undef DosOpenVDD
|
---|
2459 | #define DosOpenVDD _DosOpenVDD
|
---|
2460 |
|
---|
2461 | inline ULONG _DosQueryDOSProperty(SGID a, PCSZ b, ULONG c, PSZ d)
|
---|
2462 | {
|
---|
2463 | ULONG yyrc;
|
---|
2464 | USHORT sel = GetFS();
|
---|
2465 |
|
---|
2466 | yyrc = DosQueryDOSProperty(a, b, c, d);
|
---|
2467 | SetFS(sel);
|
---|
2468 |
|
---|
2469 | return yyrc;
|
---|
2470 | }
|
---|
2471 |
|
---|
2472 | #undef DosQueryDOSProperty
|
---|
2473 | #define DosQueryDOSProperty _DosQueryDOSProperty
|
---|
2474 |
|
---|
2475 | inline ULONG _DosRequestVDD(HVDD a, SGID b, ULONG c, ULONG d, PVOID e, ULONG f, PVOID g)
|
---|
2476 | {
|
---|
2477 | ULONG yyrc;
|
---|
2478 | USHORT sel = GetFS();
|
---|
2479 |
|
---|
2480 | yyrc = DosRequestVDD(a, b, c, d, e, f, g);
|
---|
2481 | SetFS(sel);
|
---|
2482 |
|
---|
2483 | return yyrc;
|
---|
2484 | }
|
---|
2485 |
|
---|
2486 | #undef DosRequestVDD
|
---|
2487 | #define DosRequestVDD _DosRequestVDD
|
---|
2488 |
|
---|
2489 | inline ULONG _DosSetDOSProperty(SGID a, PCSZ b, ULONG c, PCSZ d)
|
---|
2490 | {
|
---|
2491 | ULONG yyrc;
|
---|
2492 | USHORT sel = GetFS();
|
---|
2493 |
|
---|
2494 | yyrc = DosSetDOSProperty(a, b, c, d);
|
---|
2495 | SetFS(sel);
|
---|
2496 |
|
---|
2497 | return yyrc;
|
---|
2498 | }
|
---|
2499 |
|
---|
2500 | #undef DosSetDOSProperty
|
---|
2501 | #define DosSetDOSProperty _DosSetDOSProperty
|
---|
2502 |
|
---|
2503 | #endif
|
---|
2504 | #ifdef INCL_DOSPROCESS
|
---|
2505 | inline ULONG _DosDebug(uDB_t *a)
|
---|
2506 | {
|
---|
2507 | ULONG yyrc;
|
---|
2508 | USHORT sel = GetFS();
|
---|
2509 |
|
---|
2510 | yyrc = DosDebug(a);
|
---|
2511 | SetFS(sel);
|
---|
2512 |
|
---|
2513 | return yyrc;
|
---|
2514 | }
|
---|
2515 |
|
---|
2516 | #undef DosDebug
|
---|
2517 | #define DosDebug _DosDebug
|
---|
2518 |
|
---|
2519 | #endif
|
---|
2520 | #ifdef INCL_DOSMISC
|
---|
2521 | inline ULONG _DosGetMessage(PCHAR *a, ULONG b, PCHAR c, ULONG d, ULONG e, PCSZ f, PULONG g)
|
---|
2522 | {
|
---|
2523 | ULONG yyrc;
|
---|
2524 | USHORT sel = GetFS();
|
---|
2525 |
|
---|
2526 | yyrc = DosGetMessage(a, b, c, d, e, f, g);
|
---|
2527 | SetFS(sel);
|
---|
2528 |
|
---|
2529 | return yyrc;
|
---|
2530 | }
|
---|
2531 |
|
---|
2532 | #undef DosGetMessage
|
---|
2533 | #define DosGetMessage _DosGetMessage
|
---|
2534 |
|
---|
2535 | inline ULONG _DosInsertMessage(PCHAR *a, ULONG b, PCSZ c, ULONG d, PCHAR e, ULONG f, PULONG g)
|
---|
2536 | {
|
---|
2537 | ULONG yyrc;
|
---|
2538 | USHORT sel = GetFS();
|
---|
2539 |
|
---|
2540 | yyrc = DosInsertMessage(a, b, c, d, e, f, g);
|
---|
2541 | SetFS(sel);
|
---|
2542 |
|
---|
2543 | return yyrc;
|
---|
2544 | }
|
---|
2545 |
|
---|
2546 | #undef DosInsertMessage
|
---|
2547 | #define DosInsertMessage _DosInsertMessage
|
---|
2548 |
|
---|
2549 | inline ULONG _DosPutMessage(HFILE a, ULONG b, PCHAR c)
|
---|
2550 | {
|
---|
2551 | ULONG yyrc;
|
---|
2552 | USHORT sel = GetFS();
|
---|
2553 |
|
---|
2554 | yyrc = DosPutMessage(a, b, c);
|
---|
2555 | SetFS(sel);
|
---|
2556 |
|
---|
2557 | return yyrc;
|
---|
2558 | }
|
---|
2559 |
|
---|
2560 | #undef DosPutMessage
|
---|
2561 | #define DosPutMessage _DosPutMessage
|
---|
2562 |
|
---|
2563 | inline ULONG _DosQueryMessageCP(PCHAR a, ULONG b, PCSZ c, PULONG d)
|
---|
2564 | {
|
---|
2565 | ULONG yyrc;
|
---|
2566 | USHORT sel = GetFS();
|
---|
2567 |
|
---|
2568 | yyrc = DosQueryMessageCP(a, b, c, d);
|
---|
2569 | SetFS(sel);
|
---|
2570 |
|
---|
2571 | return yyrc;
|
---|
2572 | }
|
---|
2573 |
|
---|
2574 | #undef DosQueryMessageCP
|
---|
2575 | #define DosQueryMessageCP _DosQueryMessageCP
|
---|
2576 |
|
---|
2577 | #endif
|
---|
2578 | #ifdef INCL_DOSRAS
|
---|
2579 | inline ULONG _DosDumpProcess(ULONG a, ULONG b, PID c)
|
---|
2580 | {
|
---|
2581 | ULONG yyrc;
|
---|
2582 | USHORT sel = GetFS();
|
---|
2583 |
|
---|
2584 | yyrc = DosDumpProcess(a, b, c);
|
---|
2585 | SetFS(sel);
|
---|
2586 |
|
---|
2587 | return yyrc;
|
---|
2588 | }
|
---|
2589 |
|
---|
2590 | #undef DosDumpProcess
|
---|
2591 | #define DosDumpProcess _DosDumpProcess
|
---|
2592 |
|
---|
2593 | inline ULONG _DosForceSystemDump(ULONG a)
|
---|
2594 | {
|
---|
2595 | ULONG yyrc;
|
---|
2596 | USHORT sel = GetFS();
|
---|
2597 |
|
---|
2598 | yyrc = DosForceSystemDump(a);
|
---|
2599 | SetFS(sel);
|
---|
2600 |
|
---|
2601 | return yyrc;
|
---|
2602 | }
|
---|
2603 |
|
---|
2604 | #undef DosForceSystemDump
|
---|
2605 | #define DosForceSystemDump _DosForceSystemDump
|
---|
2606 |
|
---|
2607 | inline ULONG _DosQueryRASInfo(ULONG a, PPVOID b)
|
---|
2608 | {
|
---|
2609 | ULONG yyrc;
|
---|
2610 | USHORT sel = GetFS();
|
---|
2611 |
|
---|
2612 | yyrc = DosQueryRASInfo(a, b);
|
---|
2613 | SetFS(sel);
|
---|
2614 |
|
---|
2615 | return yyrc;
|
---|
2616 | }
|
---|
2617 |
|
---|
2618 | #undef DosQueryRASInfo
|
---|
2619 | #define DosQueryRASInfo _DosQueryRASInfo
|
---|
2620 |
|
---|
2621 | inline ULONG _DosSuppressPopUps(ULONG a, ULONG b)
|
---|
2622 | {
|
---|
2623 | ULONG yyrc;
|
---|
2624 | USHORT sel = GetFS();
|
---|
2625 |
|
---|
2626 | yyrc = DosSuppressPopUps(a, b);
|
---|
2627 | SetFS(sel);
|
---|
2628 |
|
---|
2629 | return yyrc;
|
---|
2630 | }
|
---|
2631 |
|
---|
2632 | #undef DosSuppressPopUps
|
---|
2633 | #define DosSuppressPopUps _DosSuppressPopUps
|
---|
2634 |
|
---|
2635 | #endif
|
---|
2636 | #ifdef INCL_RXSUBCOM
|
---|
2637 | inline ULONG _RexxDeregisterSubcom(PCSZ a, PCSZ b)
|
---|
2638 | {
|
---|
2639 | ULONG yyrc;
|
---|
2640 | USHORT sel = GetFS();
|
---|
2641 |
|
---|
2642 | yyrc = RexxDeregisterSubcom(a, b);
|
---|
2643 | SetFS(sel);
|
---|
2644 |
|
---|
2645 | return yyrc;
|
---|
2646 | }
|
---|
2647 |
|
---|
2648 | #undef RexxDeregisterSubcom
|
---|
2649 | #define RexxDeregisterSubcom _RexxDeregisterSubcom
|
---|
2650 |
|
---|
2651 | inline ULONG _RexxQuerySubcom(PCSZ a, PCSZ b, PUSHORT c, PUCHAR d)
|
---|
2652 | {
|
---|
2653 | ULONG yyrc;
|
---|
2654 | USHORT sel = GetFS();
|
---|
2655 |
|
---|
2656 | yyrc = RexxQuerySubcom(a, b, c, d);
|
---|
2657 | SetFS(sel);
|
---|
2658 |
|
---|
2659 | return yyrc;
|
---|
2660 | }
|
---|
2661 |
|
---|
2662 | #undef RexxQuerySubcom
|
---|
2663 | #define RexxQuerySubcom _RexxQuerySubcom
|
---|
2664 |
|
---|
2665 | inline ULONG _RexxRegisterSubcomDll(PCSZ a, PCSZ b, PCSZ c, PUCHAR d, ULONG e)
|
---|
2666 | {
|
---|
2667 | ULONG yyrc;
|
---|
2668 | USHORT sel = GetFS();
|
---|
2669 |
|
---|
2670 | yyrc = RexxRegisterSubcomDll(a, b, c, d, e);
|
---|
2671 | SetFS(sel);
|
---|
2672 |
|
---|
2673 | return yyrc;
|
---|
2674 | }
|
---|
2675 |
|
---|
2676 | #undef RexxRegisterSubcomDll
|
---|
2677 | #define RexxRegisterSubcomDll _RexxRegisterSubcomDll
|
---|
2678 |
|
---|
2679 | inline ULONG _RexxRegisterSubcomExe(PCSZ a, PFN b, PUCHAR c)
|
---|
2680 | {
|
---|
2681 | ULONG yyrc;
|
---|
2682 | USHORT sel = GetFS();
|
---|
2683 |
|
---|
2684 | yyrc = RexxRegisterSubcomExe(a, b, c);
|
---|
2685 | SetFS(sel);
|
---|
2686 |
|
---|
2687 | return yyrc;
|
---|
2688 | }
|
---|
2689 |
|
---|
2690 | #undef RexxRegisterSubcomExe
|
---|
2691 | #define RexxRegisterSubcomExe _RexxRegisterSubcomExe
|
---|
2692 |
|
---|
2693 | #endif
|
---|
2694 | #ifdef INCL_RXSHV
|
---|
2695 | inline ULONG _RexxVariablePool(PSHVBLOCK a)
|
---|
2696 | {
|
---|
2697 | ULONG yyrc;
|
---|
2698 | USHORT sel = GetFS();
|
---|
2699 |
|
---|
2700 | yyrc = RexxVariablePool(a);
|
---|
2701 | SetFS(sel);
|
---|
2702 |
|
---|
2703 | return yyrc;
|
---|
2704 | }
|
---|
2705 |
|
---|
2706 | #undef RexxVariablePool
|
---|
2707 | #define RexxVariablePool _RexxVariablePool
|
---|
2708 |
|
---|
2709 | #endif
|
---|
2710 | #ifdef INCL_RXFUNC
|
---|
2711 | inline ULONG _RexxDeregisterFunction(PCSZ a)
|
---|
2712 | {
|
---|
2713 | ULONG yyrc;
|
---|
2714 | USHORT sel = GetFS();
|
---|
2715 |
|
---|
2716 | yyrc = RexxDeregisterFunction(a);
|
---|
2717 | SetFS(sel);
|
---|
2718 |
|
---|
2719 | return yyrc;
|
---|
2720 | }
|
---|
2721 |
|
---|
2722 | #undef RexxDeregisterFunction
|
---|
2723 | #define RexxDeregisterFunction _RexxDeregisterFunction
|
---|
2724 |
|
---|
2725 | inline ULONG _RexxQueryFunction(PCSZ a)
|
---|
2726 | {
|
---|
2727 | ULONG yyrc;
|
---|
2728 | USHORT sel = GetFS();
|
---|
2729 |
|
---|
2730 | yyrc = RexxQueryFunction(a);
|
---|
2731 | SetFS(sel);
|
---|
2732 |
|
---|
2733 | return yyrc;
|
---|
2734 | }
|
---|
2735 |
|
---|
2736 | #undef RexxQueryFunction
|
---|
2737 | #define RexxQueryFunction _RexxQueryFunction
|
---|
2738 |
|
---|
2739 | inline ULONG _RexxRegisterFunctionDll(PCSZ a, PCSZ b, PCSZ c)
|
---|
2740 | {
|
---|
2741 | ULONG yyrc;
|
---|
2742 | USHORT sel = GetFS();
|
---|
2743 |
|
---|
2744 | yyrc = RexxRegisterFunctionDll(a, b, c);
|
---|
2745 | SetFS(sel);
|
---|
2746 |
|
---|
2747 | return yyrc;
|
---|
2748 | }
|
---|
2749 |
|
---|
2750 | #undef RexxRegisterFunctionDll
|
---|
2751 | #define RexxRegisterFunctionDll _RexxRegisterFunctionDll
|
---|
2752 |
|
---|
2753 | inline ULONG _RexxRegisterFunctionExe(PCSZ a, RexxFunctionHandler *b)
|
---|
2754 | {
|
---|
2755 | ULONG yyrc;
|
---|
2756 | USHORT sel = GetFS();
|
---|
2757 |
|
---|
2758 | yyrc = RexxRegisterFunctionExe(a, b);
|
---|
2759 | SetFS(sel);
|
---|
2760 |
|
---|
2761 | return yyrc;
|
---|
2762 | }
|
---|
2763 |
|
---|
2764 | #undef RexxRegisterFunctionExe
|
---|
2765 | #define RexxRegisterFunctionExe _RexxRegisterFunctionExe
|
---|
2766 |
|
---|
2767 | #endif
|
---|
2768 | #ifdef INCL_RXSYSEXIT
|
---|
2769 | inline ULONG _RexxDeregisterExit(PCSZ a, PCSZ b)
|
---|
2770 | {
|
---|
2771 | ULONG yyrc;
|
---|
2772 | USHORT sel = GetFS();
|
---|
2773 |
|
---|
2774 | yyrc = RexxDeregisterExit(a, b);
|
---|
2775 | SetFS(sel);
|
---|
2776 |
|
---|
2777 | return yyrc;
|
---|
2778 | }
|
---|
2779 |
|
---|
2780 | #undef RexxDeregisterExit
|
---|
2781 | #define RexxDeregisterExit _RexxDeregisterExit
|
---|
2782 |
|
---|
2783 | inline ULONG _RexxQueryExit(PCSZ a, PCSZ b, PUSHORT c, PUCHAR d)
|
---|
2784 | {
|
---|
2785 | ULONG yyrc;
|
---|
2786 | USHORT sel = GetFS();
|
---|
2787 |
|
---|
2788 | yyrc = RexxQueryExit(a, b, c, d);
|
---|
2789 | SetFS(sel);
|
---|
2790 |
|
---|
2791 | return yyrc;
|
---|
2792 | }
|
---|
2793 |
|
---|
2794 | #undef RexxQueryExit
|
---|
2795 | #define RexxQueryExit _RexxQueryExit
|
---|
2796 |
|
---|
2797 | inline ULONG _RexxRegisterExitDll(PCSZ a, PCSZ b, PCSZ c, PUCHAR d, ULONG e)
|
---|
2798 | {
|
---|
2799 | ULONG yyrc;
|
---|
2800 | USHORT sel = GetFS();
|
---|
2801 |
|
---|
2802 | yyrc = RexxRegisterExitDll(a, b, c, d, e);
|
---|
2803 | SetFS(sel);
|
---|
2804 |
|
---|
2805 | return yyrc;
|
---|
2806 | }
|
---|
2807 |
|
---|
2808 | #undef RexxRegisterExitDll
|
---|
2809 | #define RexxRegisterExitDll _RexxRegisterExitDll
|
---|
2810 |
|
---|
2811 | inline ULONG _RexxRegisterExitExe(PCSZ a, PFN b, PUCHAR c)
|
---|
2812 | {
|
---|
2813 | ULONG yyrc;
|
---|
2814 | USHORT sel = GetFS();
|
---|
2815 |
|
---|
2816 | yyrc = RexxRegisterExitExe(a, b, c);
|
---|
2817 | SetFS(sel);
|
---|
2818 |
|
---|
2819 | return yyrc;
|
---|
2820 | }
|
---|
2821 |
|
---|
2822 | #undef RexxRegisterExitExe
|
---|
2823 | #define RexxRegisterExitExe _RexxRegisterExitExe
|
---|
2824 |
|
---|
2825 | #endif
|
---|
2826 | #ifdef INCL_RXARI
|
---|
2827 | inline ULONG _RexxResetTrace(PID a, TID b)
|
---|
2828 | {
|
---|
2829 | ULONG yyrc;
|
---|
2830 | USHORT sel = GetFS();
|
---|
2831 |
|
---|
2832 | yyrc = RexxResetTrace(a, b);
|
---|
2833 | SetFS(sel);
|
---|
2834 |
|
---|
2835 | return yyrc;
|
---|
2836 | }
|
---|
2837 |
|
---|
2838 | #undef RexxResetTrace
|
---|
2839 | #define RexxResetTrace _RexxResetTrace
|
---|
2840 |
|
---|
2841 | inline ULONG _RexxSetHalt(PID a, TID b)
|
---|
2842 | {
|
---|
2843 | ULONG yyrc;
|
---|
2844 | USHORT sel = GetFS();
|
---|
2845 |
|
---|
2846 | yyrc = RexxSetHalt(a, b);
|
---|
2847 | SetFS(sel);
|
---|
2848 |
|
---|
2849 | return yyrc;
|
---|
2850 | }
|
---|
2851 |
|
---|
2852 | #undef RexxSetHalt
|
---|
2853 | #define RexxSetHalt _RexxSetHalt
|
---|
2854 |
|
---|
2855 | inline ULONG _RexxSetTrace(PID a, TID b)
|
---|
2856 | {
|
---|
2857 | ULONG yyrc;
|
---|
2858 | USHORT sel = GetFS();
|
---|
2859 |
|
---|
2860 | yyrc = RexxSetTrace(a, b);
|
---|
2861 | SetFS(sel);
|
---|
2862 |
|
---|
2863 | return yyrc;
|
---|
2864 | }
|
---|
2865 |
|
---|
2866 | #undef RexxSetTrace
|
---|
2867 | #define RexxSetTrace _RexxSetTrace
|
---|
2868 |
|
---|
2869 | #endif
|
---|
2870 | #ifdef INCL_RXMACRO
|
---|
2871 | inline ULONG _RexxAddMacro(PCSZ a, PCSZ b, ULONG c)
|
---|
2872 | {
|
---|
2873 | ULONG yyrc;
|
---|
2874 | USHORT sel = GetFS();
|
---|
2875 |
|
---|
2876 | yyrc = RexxAddMacro(a, b, c);
|
---|
2877 | SetFS(sel);
|
---|
2878 |
|
---|
2879 | return yyrc;
|
---|
2880 | }
|
---|
2881 |
|
---|
2882 | #undef RexxAddMacro
|
---|
2883 | #define RexxAddMacro _RexxAddMacro
|
---|
2884 |
|
---|
2885 | inline ULONG _RexxClearMacroSpace()
|
---|
2886 | {
|
---|
2887 | ULONG yyrc;
|
---|
2888 | USHORT sel = GetFS();
|
---|
2889 |
|
---|
2890 | yyrc = RexxClearMacroSpace();
|
---|
2891 | SetFS(sel);
|
---|
2892 |
|
---|
2893 | return yyrc;
|
---|
2894 | }
|
---|
2895 |
|
---|
2896 | #undef RexxClearMacroSpace
|
---|
2897 | #define RexxClearMacroSpace _RexxClearMacroSpace
|
---|
2898 |
|
---|
2899 | inline ULONG _RexxDropMacro(PCSZ a)
|
---|
2900 | {
|
---|
2901 | ULONG yyrc;
|
---|
2902 | USHORT sel = GetFS();
|
---|
2903 |
|
---|
2904 | yyrc = RexxDropMacro(a);
|
---|
2905 | SetFS(sel);
|
---|
2906 |
|
---|
2907 | return yyrc;
|
---|
2908 | }
|
---|
2909 |
|
---|
2910 | #undef RexxDropMacro
|
---|
2911 | #define RexxDropMacro _RexxDropMacro
|
---|
2912 |
|
---|
2913 | inline ULONG _RexxLoadMacroSpace(ULONG a, PCSZ *b, PCSZ c)
|
---|
2914 | {
|
---|
2915 | ULONG yyrc;
|
---|
2916 | USHORT sel = GetFS();
|
---|
2917 |
|
---|
2918 | yyrc = RexxLoadMacroSpace(a, b, c);
|
---|
2919 | SetFS(sel);
|
---|
2920 |
|
---|
2921 | return yyrc;
|
---|
2922 | }
|
---|
2923 |
|
---|
2924 | #undef RexxLoadMacroSpace
|
---|
2925 | #define RexxLoadMacroSpace _RexxLoadMacroSpace
|
---|
2926 |
|
---|
2927 | inline ULONG _RexxQueryMacro(PCSZ a, PUSHORT b)
|
---|
2928 | {
|
---|
2929 | ULONG yyrc;
|
---|
2930 | USHORT sel = GetFS();
|
---|
2931 |
|
---|
2932 | yyrc = RexxQueryMacro(a, b);
|
---|
2933 | SetFS(sel);
|
---|
2934 |
|
---|
2935 | return yyrc;
|
---|
2936 | }
|
---|
2937 |
|
---|
2938 | #undef RexxQueryMacro
|
---|
2939 | #define RexxQueryMacro _RexxQueryMacro
|
---|
2940 |
|
---|
2941 | inline ULONG _RexxReorderMacro(PCSZ a, ULONG b)
|
---|
2942 | {
|
---|
2943 | ULONG yyrc;
|
---|
2944 | USHORT sel = GetFS();
|
---|
2945 |
|
---|
2946 | yyrc = RexxReorderMacro(a, b);
|
---|
2947 | SetFS(sel);
|
---|
2948 |
|
---|
2949 | return yyrc;
|
---|
2950 | }
|
---|
2951 |
|
---|
2952 | #undef RexxReorderMacro
|
---|
2953 | #define RexxReorderMacro _RexxReorderMacro
|
---|
2954 |
|
---|
2955 | inline ULONG _RexxSaveMacroSpace(ULONG a, PCSZ *b, PCSZ c)
|
---|
2956 | {
|
---|
2957 | ULONG yyrc;
|
---|
2958 | USHORT sel = GetFS();
|
---|
2959 |
|
---|
2960 | yyrc = RexxSaveMacroSpace(a, b, c);
|
---|
2961 | SetFS(sel);
|
---|
2962 |
|
---|
2963 | return yyrc;
|
---|
2964 | }
|
---|
2965 |
|
---|
2966 | #undef RexxSaveMacroSpace
|
---|
2967 | #define RexxSaveMacroSpace _RexxSaveMacroSpace
|
---|
2968 |
|
---|
2969 | inline LONG _RexxStart(LONG a, PRXSTRING b, PCSZ c, PRXSTRING d, PCSZ e, LONG f, PRXSYSEXIT g, PSHORT h, PRXSTRING i)
|
---|
2970 | {
|
---|
2971 | LONG yyrc;
|
---|
2972 | USHORT sel = GetFS();
|
---|
2973 |
|
---|
2974 | yyrc = RexxStart(a, b, c, d, e, f, g, h, i);
|
---|
2975 | SetFS(sel);
|
---|
2976 |
|
---|
2977 | return yyrc;
|
---|
2978 | }
|
---|
2979 |
|
---|
2980 | #undef RexxStart
|
---|
2981 | #define RexxStart _RexxStart
|
---|
2982 |
|
---|
2983 | #endif
|
---|
2984 | #ifdef INCL_WIN
|
---|
2985 | #ifdef INCL_WINMESSAGEMGR
|
---|
2986 | inline BOOL _WinCancelShutdown(HMQ a, BOOL b)
|
---|
2987 | {
|
---|
2988 | BOOL yyrc;
|
---|
2989 | USHORT sel = GetFS();
|
---|
2990 |
|
---|
2991 | yyrc = WinCancelShutdown(a, b);
|
---|
2992 | SetFS(sel);
|
---|
2993 |
|
---|
2994 | return yyrc;
|
---|
2995 | }
|
---|
2996 |
|
---|
2997 | #undef WinCancelShutdown
|
---|
2998 | #define WinCancelShutdown _WinCancelShutdown
|
---|
2999 |
|
---|
3000 | inline HMQ _WinCreateMsgQueue(HAB a, LONG b)
|
---|
3001 | {
|
---|
3002 | HMQ yyrc;
|
---|
3003 | USHORT sel = GetFS();
|
---|
3004 |
|
---|
3005 | yyrc = WinCreateMsgQueue(a, b);
|
---|
3006 | SetFS(sel);
|
---|
3007 |
|
---|
3008 | return yyrc;
|
---|
3009 | }
|
---|
3010 |
|
---|
3011 | #undef WinCreateMsgQueue
|
---|
3012 | #define WinCreateMsgQueue _WinCreateMsgQueue
|
---|
3013 |
|
---|
3014 | inline BOOL _WinDestroyMsgQueue(HMQ a)
|
---|
3015 | {
|
---|
3016 | BOOL yyrc;
|
---|
3017 | USHORT sel = GetFS();
|
---|
3018 |
|
---|
3019 | yyrc = WinDestroyMsgQueue(a);
|
---|
3020 | SetFS(sel);
|
---|
3021 |
|
---|
3022 | return yyrc;
|
---|
3023 | }
|
---|
3024 |
|
---|
3025 | #undef WinDestroyMsgQueue
|
---|
3026 | #define WinDestroyMsgQueue _WinDestroyMsgQueue
|
---|
3027 |
|
---|
3028 | inline MRESULT _WinDispatchMsg(HAB a, PQMSG b)
|
---|
3029 | {
|
---|
3030 | MRESULT yyrc;
|
---|
3031 | USHORT sel = GetFS();
|
---|
3032 |
|
---|
3033 | yyrc = WinDispatchMsg(a, b);
|
---|
3034 | SetFS(sel);
|
---|
3035 |
|
---|
3036 | return yyrc;
|
---|
3037 | }
|
---|
3038 |
|
---|
3039 | #undef WinDispatchMsg
|
---|
3040 | #define WinDispatchMsg _WinDispatchMsg
|
---|
3041 |
|
---|
3042 | inline BOOL _WinGetMsg(HAB a, PQMSG b, HWND c, ULONG d, ULONG e)
|
---|
3043 | {
|
---|
3044 | BOOL yyrc;
|
---|
3045 | USHORT sel = GetFS();
|
---|
3046 |
|
---|
3047 | yyrc = WinGetMsg(a, b, c, d, e);
|
---|
3048 | SetFS(sel);
|
---|
3049 |
|
---|
3050 | return yyrc;
|
---|
3051 | }
|
---|
3052 |
|
---|
3053 | #undef WinGetMsg
|
---|
3054 | #define WinGetMsg _WinGetMsg
|
---|
3055 |
|
---|
3056 | inline BOOL _WinLockInput(HMQ a, ULONG b)
|
---|
3057 | {
|
---|
3058 | BOOL yyrc;
|
---|
3059 | USHORT sel = GetFS();
|
---|
3060 |
|
---|
3061 | yyrc = WinLockInput(a, b);
|
---|
3062 | SetFS(sel);
|
---|
3063 |
|
---|
3064 | return yyrc;
|
---|
3065 | }
|
---|
3066 |
|
---|
3067 | #undef WinLockInput
|
---|
3068 | #define WinLockInput _WinLockInput
|
---|
3069 |
|
---|
3070 | inline BOOL _WinPeekMsg(HAB a, PQMSG b, HWND c, ULONG d, ULONG e, ULONG f)
|
---|
3071 | {
|
---|
3072 | BOOL yyrc;
|
---|
3073 | USHORT sel = GetFS();
|
---|
3074 |
|
---|
3075 | yyrc = WinPeekMsg(a, b, c, d, e, f);
|
---|
3076 | SetFS(sel);
|
---|
3077 |
|
---|
3078 | return yyrc;
|
---|
3079 | }
|
---|
3080 |
|
---|
3081 | #undef WinPeekMsg
|
---|
3082 | #define WinPeekMsg _WinPeekMsg
|
---|
3083 |
|
---|
3084 | inline BOOL _WinPostMsg(HWND a, ULONG b, MPARAM c, MPARAM d)
|
---|
3085 | {
|
---|
3086 | BOOL yyrc;
|
---|
3087 | USHORT sel = GetFS();
|
---|
3088 |
|
---|
3089 | yyrc = WinPostMsg(a, b, c, d);
|
---|
3090 | SetFS(sel);
|
---|
3091 |
|
---|
3092 | return yyrc;
|
---|
3093 | }
|
---|
3094 |
|
---|
3095 | #undef WinPostMsg
|
---|
3096 | #define WinPostMsg _WinPostMsg
|
---|
3097 |
|
---|
3098 | inline HMQ _WinQueueFromID(HAB a, PID b, TID c)
|
---|
3099 | {
|
---|
3100 | HMQ yyrc;
|
---|
3101 | USHORT sel = GetFS();
|
---|
3102 |
|
---|
3103 | yyrc = WinQueueFromID(a, b, c);
|
---|
3104 | SetFS(sel);
|
---|
3105 |
|
---|
3106 | return yyrc;
|
---|
3107 | }
|
---|
3108 |
|
---|
3109 | #undef WinQueueFromID
|
---|
3110 | #define WinQueueFromID _WinQueueFromID
|
---|
3111 |
|
---|
3112 | inline BOOL _WinQueryQueueInfo(HMQ a, PMQINFO b, ULONG c)
|
---|
3113 | {
|
---|
3114 | BOOL yyrc;
|
---|
3115 | USHORT sel = GetFS();
|
---|
3116 |
|
---|
3117 | yyrc = WinQueryQueueInfo(a, b, c);
|
---|
3118 | SetFS(sel);
|
---|
3119 |
|
---|
3120 | return yyrc;
|
---|
3121 | }
|
---|
3122 |
|
---|
3123 | #undef WinQueryQueueInfo
|
---|
3124 | #define WinQueryQueueInfo _WinQueryQueueInfo
|
---|
3125 |
|
---|
3126 | inline HMQ _WinQuerySendMsg(HAB a, HMQ b, HMQ c, PQMSG d)
|
---|
3127 | {
|
---|
3128 | HMQ yyrc;
|
---|
3129 | USHORT sel = GetFS();
|
---|
3130 |
|
---|
3131 | yyrc = WinQuerySendMsg(a, b, c, d);
|
---|
3132 | SetFS(sel);
|
---|
3133 |
|
---|
3134 | return yyrc;
|
---|
3135 | }
|
---|
3136 |
|
---|
3137 | #undef WinQuerySendMsg
|
---|
3138 | #define WinQuerySendMsg _WinQuerySendMsg
|
---|
3139 |
|
---|
3140 | inline BOOL _WinRegisterUserDatatype(HAB a, LONG b, LONG c, PLONG d)
|
---|
3141 | {
|
---|
3142 | BOOL yyrc;
|
---|
3143 | USHORT sel = GetFS();
|
---|
3144 |
|
---|
3145 | yyrc = WinRegisterUserDatatype(a, b, c, d);
|
---|
3146 | SetFS(sel);
|
---|
3147 |
|
---|
3148 | return yyrc;
|
---|
3149 | }
|
---|
3150 |
|
---|
3151 | #undef WinRegisterUserDatatype
|
---|
3152 | #define WinRegisterUserDatatype _WinRegisterUserDatatype
|
---|
3153 |
|
---|
3154 | inline BOOL _WinRegisterUserMsg(HAB a, ULONG b, LONG c, LONG d, LONG e, LONG f, LONG g)
|
---|
3155 | {
|
---|
3156 | BOOL yyrc;
|
---|
3157 | USHORT sel = GetFS();
|
---|
3158 |
|
---|
3159 | yyrc = WinRegisterUserMsg(a, b, c, d, e, f, g);
|
---|
3160 | SetFS(sel);
|
---|
3161 |
|
---|
3162 | return yyrc;
|
---|
3163 | }
|
---|
3164 |
|
---|
3165 | #undef WinRegisterUserMsg
|
---|
3166 | #define WinRegisterUserMsg _WinRegisterUserMsg
|
---|
3167 |
|
---|
3168 | inline BOOL _WinReplyMsg(HAB a, HMQ b, HMQ c, MRESULT d)
|
---|
3169 | {
|
---|
3170 | BOOL yyrc;
|
---|
3171 | USHORT sel = GetFS();
|
---|
3172 |
|
---|
3173 | yyrc = WinReplyMsg(a, b, c, d);
|
---|
3174 | SetFS(sel);
|
---|
3175 |
|
---|
3176 | return yyrc;
|
---|
3177 | }
|
---|
3178 |
|
---|
3179 | #undef WinReplyMsg
|
---|
3180 | #define WinReplyMsg _WinReplyMsg
|
---|
3181 |
|
---|
3182 | inline MRESULT _WinSendMsg(HWND a, ULONG b, MPARAM c, MPARAM d)
|
---|
3183 | {
|
---|
3184 | MRESULT yyrc;
|
---|
3185 | USHORT sel = GetFS();
|
---|
3186 |
|
---|
3187 | yyrc = WinSendMsg(a, b, c, d);
|
---|
3188 | SetFS(sel);
|
---|
3189 |
|
---|
3190 | return yyrc;
|
---|
3191 | }
|
---|
3192 |
|
---|
3193 | #undef WinSendMsg
|
---|
3194 | #define WinSendMsg _WinSendMsg
|
---|
3195 |
|
---|
3196 | inline BOOL _WinSetMsgMode(HAB a, PCSZ b, LONG c)
|
---|
3197 | {
|
---|
3198 | BOOL yyrc;
|
---|
3199 | USHORT sel = GetFS();
|
---|
3200 |
|
---|
3201 | yyrc = WinSetMsgMode(a, b, c);
|
---|
3202 | SetFS(sel);
|
---|
3203 |
|
---|
3204 | return yyrc;
|
---|
3205 | }
|
---|
3206 |
|
---|
3207 | #undef WinSetMsgMode
|
---|
3208 | #define WinSetMsgMode _WinSetMsgMode
|
---|
3209 |
|
---|
3210 | inline BOOL _WinSetSynchroMode(HAB a, LONG b)
|
---|
3211 | {
|
---|
3212 | BOOL yyrc;
|
---|
3213 | USHORT sel = GetFS();
|
---|
3214 |
|
---|
3215 | yyrc = WinSetSynchroMode(a, b);
|
---|
3216 | SetFS(sel);
|
---|
3217 |
|
---|
3218 | return yyrc;
|
---|
3219 | }
|
---|
3220 |
|
---|
3221 | #undef WinSetSynchroMode
|
---|
3222 | #define WinSetSynchroMode _WinSetSynchroMode
|
---|
3223 |
|
---|
3224 | inline BOOL _WinThreadAssocQueue(HAB a, HMQ b)
|
---|
3225 | {
|
---|
3226 | BOOL yyrc;
|
---|
3227 | USHORT sel = GetFS();
|
---|
3228 |
|
---|
3229 | yyrc = WinThreadAssocQueue(a, b);
|
---|
3230 | SetFS(sel);
|
---|
3231 |
|
---|
3232 | return yyrc;
|
---|
3233 | }
|
---|
3234 |
|
---|
3235 | #undef WinThreadAssocQueue
|
---|
3236 | #define WinThreadAssocQueue _WinThreadAssocQueue
|
---|
3237 |
|
---|
3238 | inline BOOL _WinWakeThread(HMQ a)
|
---|
3239 | {
|
---|
3240 | BOOL yyrc;
|
---|
3241 | USHORT sel = GetFS();
|
---|
3242 |
|
---|
3243 | yyrc = WinWakeThread(a);
|
---|
3244 | SetFS(sel);
|
---|
3245 |
|
---|
3246 | return yyrc;
|
---|
3247 | }
|
---|
3248 |
|
---|
3249 | #undef WinWakeThread
|
---|
3250 | #define WinWakeThread _WinWakeThread
|
---|
3251 |
|
---|
3252 | #endif
|
---|
3253 | 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)
|
---|
3254 | {
|
---|
3255 | HWND yyrc;
|
---|
3256 | USHORT sel = GetFS();
|
---|
3257 |
|
---|
3258 | yyrc = WinCreateWindow(a, b, c, d, e, f, g, h, i, j, k, l, m);
|
---|
3259 | SetFS(sel);
|
---|
3260 |
|
---|
3261 | return yyrc;
|
---|
3262 | }
|
---|
3263 |
|
---|
3264 | #undef WinCreateWindow
|
---|
3265 | #define WinCreateWindow _WinCreateWindow
|
---|
3266 |
|
---|
3267 | inline BOOL _WinDrawBitmap(HPS a, HBITMAP b, PRECTL c, PPOINTL d, LONG e, LONG f, ULONG g)
|
---|
3268 | {
|
---|
3269 | BOOL yyrc;
|
---|
3270 | USHORT sel = GetFS();
|
---|
3271 |
|
---|
3272 | yyrc = WinDrawBitmap(a, b, c, d, e, f, g);
|
---|
3273 | SetFS(sel);
|
---|
3274 |
|
---|
3275 | return yyrc;
|
---|
3276 | }
|
---|
3277 |
|
---|
3278 | #undef WinDrawBitmap
|
---|
3279 | #define WinDrawBitmap _WinDrawBitmap
|
---|
3280 |
|
---|
3281 | inline BOOL _WinDrawBorder(HPS a, PRECTL b, LONG c, LONG d, LONG e, LONG f, ULONG g)
|
---|
3282 | {
|
---|
3283 | BOOL yyrc;
|
---|
3284 | USHORT sel = GetFS();
|
---|
3285 |
|
---|
3286 | yyrc = WinDrawBorder(a, b, c, d, e, f, g);
|
---|
3287 | SetFS(sel);
|
---|
3288 |
|
---|
3289 | return yyrc;
|
---|
3290 | }
|
---|
3291 |
|
---|
3292 | #undef WinDrawBorder
|
---|
3293 | #define WinDrawBorder _WinDrawBorder
|
---|
3294 |
|
---|
3295 | inline LONG _WinDrawText(HPS a, LONG b, PCH c, PRECTL d, LONG e, LONG f, ULONG g)
|
---|
3296 | {
|
---|
3297 | LONG yyrc;
|
---|
3298 | USHORT sel = GetFS();
|
---|
3299 |
|
---|
3300 | yyrc = WinDrawText(a, b, c, d, e, f, g);
|
---|
3301 | SetFS(sel);
|
---|
3302 |
|
---|
3303 | return yyrc;
|
---|
3304 | }
|
---|
3305 |
|
---|
3306 | #undef WinDrawText
|
---|
3307 | #define WinDrawText _WinDrawText
|
---|
3308 |
|
---|
3309 | inline BOOL _WinEnableWindow(HWND a, BOOL b)
|
---|
3310 | {
|
---|
3311 | BOOL yyrc;
|
---|
3312 | USHORT sel = GetFS();
|
---|
3313 |
|
---|
3314 | yyrc = WinEnableWindow(a, b);
|
---|
3315 | SetFS(sel);
|
---|
3316 |
|
---|
3317 | return yyrc;
|
---|
3318 | }
|
---|
3319 |
|
---|
3320 | #undef WinEnableWindow
|
---|
3321 | #define WinEnableWindow _WinEnableWindow
|
---|
3322 |
|
---|
3323 | inline BOOL _WinEnableWindowUpdate(HWND a, BOOL b)
|
---|
3324 | {
|
---|
3325 | BOOL yyrc;
|
---|
3326 | USHORT sel = GetFS();
|
---|
3327 |
|
---|
3328 | yyrc = WinEnableWindowUpdate(a, b);
|
---|
3329 | SetFS(sel);
|
---|
3330 |
|
---|
3331 | return yyrc;
|
---|
3332 | }
|
---|
3333 |
|
---|
3334 | #undef WinEnableWindowUpdate
|
---|
3335 | #define WinEnableWindowUpdate _WinEnableWindowUpdate
|
---|
3336 |
|
---|
3337 | inline BOOL _WinInvalidateRect(HWND a, PRECTL b, BOOL c)
|
---|
3338 | {
|
---|
3339 | BOOL yyrc;
|
---|
3340 | USHORT sel = GetFS();
|
---|
3341 |
|
---|
3342 | yyrc = WinInvalidateRect(a, b, c);
|
---|
3343 | SetFS(sel);
|
---|
3344 |
|
---|
3345 | return yyrc;
|
---|
3346 | }
|
---|
3347 |
|
---|
3348 | #undef WinInvalidateRect
|
---|
3349 | #define WinInvalidateRect _WinInvalidateRect
|
---|
3350 |
|
---|
3351 | inline BOOL _WinInvalidateRegion(HWND a, HRGN b, BOOL c)
|
---|
3352 | {
|
---|
3353 | BOOL yyrc;
|
---|
3354 | USHORT sel = GetFS();
|
---|
3355 |
|
---|
3356 | yyrc = WinInvalidateRegion(a, b, c);
|
---|
3357 | SetFS(sel);
|
---|
3358 |
|
---|
3359 | return yyrc;
|
---|
3360 | }
|
---|
3361 |
|
---|
3362 | #undef WinInvalidateRegion
|
---|
3363 | #define WinInvalidateRegion _WinInvalidateRegion
|
---|
3364 |
|
---|
3365 | inline BOOL _WinInvertRect(HPS a, PRECTL b)
|
---|
3366 | {
|
---|
3367 | BOOL yyrc;
|
---|
3368 | USHORT sel = GetFS();
|
---|
3369 |
|
---|
3370 | yyrc = WinInvertRect(a, b);
|
---|
3371 | SetFS(sel);
|
---|
3372 |
|
---|
3373 | return yyrc;
|
---|
3374 | }
|
---|
3375 |
|
---|
3376 | #undef WinInvertRect
|
---|
3377 | #define WinInvertRect _WinInvertRect
|
---|
3378 |
|
---|
3379 | inline BOOL _WinIsChild(HWND a, HWND b)
|
---|
3380 | {
|
---|
3381 | BOOL yyrc;
|
---|
3382 | USHORT sel = GetFS();
|
---|
3383 |
|
---|
3384 | yyrc = WinIsChild(a, b);
|
---|
3385 | SetFS(sel);
|
---|
3386 |
|
---|
3387 | return yyrc;
|
---|
3388 | }
|
---|
3389 |
|
---|
3390 | #undef WinIsChild
|
---|
3391 | #define WinIsChild _WinIsChild
|
---|
3392 |
|
---|
3393 | inline BOOL _WinIsWindow(HAB a, HWND b)
|
---|
3394 | {
|
---|
3395 | BOOL yyrc;
|
---|
3396 | USHORT sel = GetFS();
|
---|
3397 |
|
---|
3398 | yyrc = WinIsWindow(a, b);
|
---|
3399 | SetFS(sel);
|
---|
3400 |
|
---|
3401 | return yyrc;
|
---|
3402 | }
|
---|
3403 |
|
---|
3404 | #undef WinIsWindow
|
---|
3405 | #define WinIsWindow _WinIsWindow
|
---|
3406 |
|
---|
3407 | inline BOOL _WinIsWindowEnabled(HWND a)
|
---|
3408 | {
|
---|
3409 | BOOL yyrc;
|
---|
3410 | USHORT sel = GetFS();
|
---|
3411 |
|
---|
3412 | yyrc = WinIsWindowEnabled(a);
|
---|
3413 | SetFS(sel);
|
---|
3414 |
|
---|
3415 | return yyrc;
|
---|
3416 | }
|
---|
3417 |
|
---|
3418 | #undef WinIsWindowEnabled
|
---|
3419 | #define WinIsWindowEnabled _WinIsWindowEnabled
|
---|
3420 |
|
---|
3421 | inline BOOL _WinIsWindowVisible(HWND a)
|
---|
3422 | {
|
---|
3423 | BOOL yyrc;
|
---|
3424 | USHORT sel = GetFS();
|
---|
3425 |
|
---|
3426 | yyrc = WinIsWindowVisible(a);
|
---|
3427 | SetFS(sel);
|
---|
3428 |
|
---|
3429 | return yyrc;
|
---|
3430 | }
|
---|
3431 |
|
---|
3432 | #undef WinIsWindowVisible
|
---|
3433 | #define WinIsWindowVisible _WinIsWindowVisible
|
---|
3434 |
|
---|
3435 | inline LONG _WinLoadMessage(HAB a, HMODULE b, ULONG c, LONG d, PSZ e)
|
---|
3436 | {
|
---|
3437 | LONG yyrc;
|
---|
3438 | USHORT sel = GetFS();
|
---|
3439 |
|
---|
3440 | yyrc = WinLoadMessage(a, b, c, d, e);
|
---|
3441 | SetFS(sel);
|
---|
3442 |
|
---|
3443 | return yyrc;
|
---|
3444 | }
|
---|
3445 |
|
---|
3446 | #undef WinLoadMessage
|
---|
3447 | #define WinLoadMessage _WinLoadMessage
|
---|
3448 |
|
---|
3449 | inline LONG _WinLoadString(HAB a, HMODULE b, ULONG c, LONG d, PSZ e)
|
---|
3450 | {
|
---|
3451 | LONG yyrc;
|
---|
3452 | USHORT sel = GetFS();
|
---|
3453 |
|
---|
3454 | yyrc = WinLoadString(a, b, c, d, e);
|
---|
3455 | SetFS(sel);
|
---|
3456 |
|
---|
3457 | return yyrc;
|
---|
3458 | }
|
---|
3459 |
|
---|
3460 | #undef WinLoadString
|
---|
3461 | #define WinLoadString _WinLoadString
|
---|
3462 |
|
---|
3463 | inline LONG _WinMultWindowFromIDs(HWND a, PHWND b, ULONG c, ULONG d)
|
---|
3464 | {
|
---|
3465 | LONG yyrc;
|
---|
3466 | USHORT sel = GetFS();
|
---|
3467 |
|
---|
3468 | yyrc = WinMultWindowFromIDs(a, b, c, d);
|
---|
3469 | SetFS(sel);
|
---|
3470 |
|
---|
3471 | return yyrc;
|
---|
3472 | }
|
---|
3473 |
|
---|
3474 | #undef WinMultWindowFromIDs
|
---|
3475 | #define WinMultWindowFromIDs _WinMultWindowFromIDs
|
---|
3476 |
|
---|
3477 | inline HWND _WinQueryDesktopWindow(HAB a, HDC b)
|
---|
3478 | {
|
---|
3479 | HWND yyrc;
|
---|
3480 | USHORT sel = GetFS();
|
---|
3481 |
|
---|
3482 | yyrc = WinQueryDesktopWindow(a, b);
|
---|
3483 | SetFS(sel);
|
---|
3484 |
|
---|
3485 | return yyrc;
|
---|
3486 | }
|
---|
3487 |
|
---|
3488 | #undef WinQueryDesktopWindow
|
---|
3489 | #define WinQueryDesktopWindow _WinQueryDesktopWindow
|
---|
3490 |
|
---|
3491 | inline HWND _WinQueryObjectWindow(HWND a)
|
---|
3492 | {
|
---|
3493 | HWND yyrc;
|
---|
3494 | USHORT sel = GetFS();
|
---|
3495 |
|
---|
3496 | yyrc = WinQueryObjectWindow(a);
|
---|
3497 | SetFS(sel);
|
---|
3498 |
|
---|
3499 | return yyrc;
|
---|
3500 | }
|
---|
3501 |
|
---|
3502 | #undef WinQueryObjectWindow
|
---|
3503 | #define WinQueryObjectWindow _WinQueryObjectWindow
|
---|
3504 |
|
---|
3505 | inline HPOINTER _WinQueryPointer(HWND a)
|
---|
3506 | {
|
---|
3507 | HPOINTER yyrc;
|
---|
3508 | USHORT sel = GetFS();
|
---|
3509 |
|
---|
3510 | yyrc = WinQueryPointer(a);
|
---|
3511 | SetFS(sel);
|
---|
3512 |
|
---|
3513 | return yyrc;
|
---|
3514 | }
|
---|
3515 |
|
---|
3516 | #undef WinQueryPointer
|
---|
3517 | #define WinQueryPointer _WinQueryPointer
|
---|
3518 |
|
---|
3519 | inline HWND _WinQueryWindow(HWND a, LONG b)
|
---|
3520 | {
|
---|
3521 | HWND yyrc;
|
---|
3522 | USHORT sel = GetFS();
|
---|
3523 |
|
---|
3524 | yyrc = WinQueryWindow(a, b);
|
---|
3525 | SetFS(sel);
|
---|
3526 |
|
---|
3527 | return yyrc;
|
---|
3528 | }
|
---|
3529 |
|
---|
3530 | #undef WinQueryWindow
|
---|
3531 | #define WinQueryWindow _WinQueryWindow
|
---|
3532 |
|
---|
3533 | inline BOOL _WinQueryWindowPos(HWND a, PSWP b)
|
---|
3534 | {
|
---|
3535 | BOOL yyrc;
|
---|
3536 | USHORT sel = GetFS();
|
---|
3537 |
|
---|
3538 | yyrc = WinQueryWindowPos(a, b);
|
---|
3539 | SetFS(sel);
|
---|
3540 |
|
---|
3541 | return yyrc;
|
---|
3542 | }
|
---|
3543 |
|
---|
3544 | #undef WinQueryWindowPos
|
---|
3545 | #define WinQueryWindowPos _WinQueryWindowPos
|
---|
3546 |
|
---|
3547 | inline BOOL _WinQueryWindowProcess(HWND a, PPID b, PTID c)
|
---|
3548 | {
|
---|
3549 | BOOL yyrc;
|
---|
3550 | USHORT sel = GetFS();
|
---|
3551 |
|
---|
3552 | yyrc = WinQueryWindowProcess(a, b, c);
|
---|
3553 | SetFS(sel);
|
---|
3554 |
|
---|
3555 | return yyrc;
|
---|
3556 | }
|
---|
3557 |
|
---|
3558 | #undef WinQueryWindowProcess
|
---|
3559 | #define WinQueryWindowProcess _WinQueryWindowProcess
|
---|
3560 |
|
---|
3561 | inline LONG _WinQueryWindowText(HWND a, LONG b, PCH c)
|
---|
3562 | {
|
---|
3563 | LONG yyrc;
|
---|
3564 | USHORT sel = GetFS();
|
---|
3565 |
|
---|
3566 | yyrc = WinQueryWindowText(a, b, c);
|
---|
3567 | SetFS(sel);
|
---|
3568 |
|
---|
3569 | return yyrc;
|
---|
3570 | }
|
---|
3571 |
|
---|
3572 | #undef WinQueryWindowText
|
---|
3573 | #define WinQueryWindowText _WinQueryWindowText
|
---|
3574 |
|
---|
3575 | inline LONG _WinQueryWindowTextLength(HWND a)
|
---|
3576 | {
|
---|
3577 | LONG yyrc;
|
---|
3578 | USHORT sel = GetFS();
|
---|
3579 |
|
---|
3580 | yyrc = WinQueryWindowTextLength(a);
|
---|
3581 | SetFS(sel);
|
---|
3582 |
|
---|
3583 | return yyrc;
|
---|
3584 | }
|
---|
3585 |
|
---|
3586 | #undef WinQueryWindowTextLength
|
---|
3587 | #define WinQueryWindowTextLength _WinQueryWindowTextLength
|
---|
3588 |
|
---|
3589 | inline BOOL _WinSetMultWindowPos(HAB a, PSWP b, ULONG c)
|
---|
3590 | {
|
---|
3591 | BOOL yyrc;
|
---|
3592 | USHORT sel = GetFS();
|
---|
3593 |
|
---|
3594 | yyrc = WinSetMultWindowPos(a, b, c);
|
---|
3595 | SetFS(sel);
|
---|
3596 |
|
---|
3597 | return yyrc;
|
---|
3598 | }
|
---|
3599 |
|
---|
3600 | #undef WinSetMultWindowPos
|
---|
3601 | #define WinSetMultWindowPos _WinSetMultWindowPos
|
---|
3602 |
|
---|
3603 | inline BOOL _WinSetOwner(HWND a, HWND b)
|
---|
3604 | {
|
---|
3605 | BOOL yyrc;
|
---|
3606 | USHORT sel = GetFS();
|
---|
3607 |
|
---|
3608 | yyrc = WinSetOwner(a, b);
|
---|
3609 | SetFS(sel);
|
---|
3610 |
|
---|
3611 | return yyrc;
|
---|
3612 | }
|
---|
3613 |
|
---|
3614 | #undef WinSetOwner
|
---|
3615 | #define WinSetOwner _WinSetOwner
|
---|
3616 |
|
---|
3617 | inline BOOL _WinSetParent(HWND a, HWND b, BOOL c)
|
---|
3618 | {
|
---|
3619 | BOOL yyrc;
|
---|
3620 | USHORT sel = GetFS();
|
---|
3621 |
|
---|
3622 | yyrc = WinSetParent(a, b, c);
|
---|
3623 | SetFS(sel);
|
---|
3624 |
|
---|
3625 | return yyrc;
|
---|
3626 | }
|
---|
3627 |
|
---|
3628 | #undef WinSetParent
|
---|
3629 | #define WinSetParent _WinSetParent
|
---|
3630 |
|
---|
3631 | inline BOOL _WinSetWindowPos(HWND a, HWND b, LONG c, LONG d, LONG e, LONG f, ULONG g)
|
---|
3632 | {
|
---|
3633 | BOOL yyrc;
|
---|
3634 | USHORT sel = GetFS();
|
---|
3635 |
|
---|
3636 | yyrc = WinSetWindowPos(a, b, c, d, e, f, g);
|
---|
3637 | SetFS(sel);
|
---|
3638 |
|
---|
3639 | return yyrc;
|
---|
3640 | }
|
---|
3641 |
|
---|
3642 | #undef WinSetWindowPos
|
---|
3643 | #define WinSetWindowPos _WinSetWindowPos
|
---|
3644 |
|
---|
3645 | inline BOOL _WinSetWindowText(HWND a, PCSZ b)
|
---|
3646 | {
|
---|
3647 | BOOL yyrc;
|
---|
3648 | USHORT sel = GetFS();
|
---|
3649 |
|
---|
3650 | yyrc = WinSetWindowText(a, b);
|
---|
3651 | SetFS(sel);
|
---|
3652 |
|
---|
3653 | return yyrc;
|
---|
3654 | }
|
---|
3655 |
|
---|
3656 | #undef WinSetWindowText
|
---|
3657 | #define WinSetWindowText _WinSetWindowText
|
---|
3658 |
|
---|
3659 | inline BOOL _WinUpdateWindow(HWND a)
|
---|
3660 | {
|
---|
3661 | BOOL yyrc;
|
---|
3662 | USHORT sel = GetFS();
|
---|
3663 |
|
---|
3664 | yyrc = WinUpdateWindow(a);
|
---|
3665 | SetFS(sel);
|
---|
3666 |
|
---|
3667 | return yyrc;
|
---|
3668 | }
|
---|
3669 |
|
---|
3670 | #undef WinUpdateWindow
|
---|
3671 | #define WinUpdateWindow _WinUpdateWindow
|
---|
3672 |
|
---|
3673 | inline HWND _WinWindowFromID(HWND a, ULONG b)
|
---|
3674 | {
|
---|
3675 | HWND yyrc;
|
---|
3676 | USHORT sel = GetFS();
|
---|
3677 |
|
---|
3678 | yyrc = WinWindowFromID(a, b);
|
---|
3679 | SetFS(sel);
|
---|
3680 |
|
---|
3681 | return yyrc;
|
---|
3682 | }
|
---|
3683 |
|
---|
3684 | #undef WinWindowFromID
|
---|
3685 | #define WinWindowFromID _WinWindowFromID
|
---|
3686 |
|
---|
3687 | #ifdef INCL_WINFRAMEMGR
|
---|
3688 | inline HWND _WinCreateStdWindow(HWND a, ULONG b, PULONG c, PCSZ d, PCSZ e, ULONG f, HMODULE g, ULONG h, PHWND i)
|
---|
3689 | {
|
---|
3690 | HWND yyrc;
|
---|
3691 | USHORT sel = GetFS();
|
---|
3692 |
|
---|
3693 | yyrc = WinCreateStdWindow(a, b, c, d, e, f, g, h, i);
|
---|
3694 | SetFS(sel);
|
---|
3695 |
|
---|
3696 | return yyrc;
|
---|
3697 | }
|
---|
3698 |
|
---|
3699 | #undef WinCreateStdWindow
|
---|
3700 | #define WinCreateStdWindow _WinCreateStdWindow
|
---|
3701 |
|
---|
3702 | inline BOOL _WinCalcFrameRect(HWND a, PRECTL b, BOOL c)
|
---|
3703 | {
|
---|
3704 | BOOL yyrc;
|
---|
3705 | USHORT sel = GetFS();
|
---|
3706 |
|
---|
3707 | yyrc = WinCalcFrameRect(a, b, c);
|
---|
3708 | SetFS(sel);
|
---|
3709 |
|
---|
3710 | return yyrc;
|
---|
3711 | }
|
---|
3712 |
|
---|
3713 | #undef WinCalcFrameRect
|
---|
3714 | #define WinCalcFrameRect _WinCalcFrameRect
|
---|
3715 |
|
---|
3716 | inline BOOL _WinCreateFrameControls(HWND a, PFRAMECDATA b, PCSZ c)
|
---|
3717 | {
|
---|
3718 | BOOL yyrc;
|
---|
3719 | USHORT sel = GetFS();
|
---|
3720 |
|
---|
3721 | yyrc = WinCreateFrameControls(a, b, c);
|
---|
3722 | SetFS(sel);
|
---|
3723 |
|
---|
3724 | return yyrc;
|
---|
3725 | }
|
---|
3726 |
|
---|
3727 | #undef WinCreateFrameControls
|
---|
3728 | #define WinCreateFrameControls _WinCreateFrameControls
|
---|
3729 |
|
---|
3730 | inline BOOL _WinFlashWindow(HWND a, BOOL b)
|
---|
3731 | {
|
---|
3732 | BOOL yyrc;
|
---|
3733 | USHORT sel = GetFS();
|
---|
3734 |
|
---|
3735 | yyrc = WinFlashWindow(a, b);
|
---|
3736 | SetFS(sel);
|
---|
3737 |
|
---|
3738 | return yyrc;
|
---|
3739 | }
|
---|
3740 |
|
---|
3741 | #undef WinFlashWindow
|
---|
3742 | #define WinFlashWindow _WinFlashWindow
|
---|
3743 |
|
---|
3744 | inline BOOL _WinGetMaxPosition(HWND a, PSWP b)
|
---|
3745 | {
|
---|
3746 | BOOL yyrc;
|
---|
3747 | USHORT sel = GetFS();
|
---|
3748 |
|
---|
3749 | yyrc = WinGetMaxPosition(a, b);
|
---|
3750 | SetFS(sel);
|
---|
3751 |
|
---|
3752 | return yyrc;
|
---|
3753 | }
|
---|
3754 |
|
---|
3755 | #undef WinGetMaxPosition
|
---|
3756 | #define WinGetMaxPosition _WinGetMaxPosition
|
---|
3757 |
|
---|
3758 | inline BOOL _WinGetMinPosition(HWND a, PSWP b, PPOINTL c)
|
---|
3759 | {
|
---|
3760 | BOOL yyrc;
|
---|
3761 | USHORT sel = GetFS();
|
---|
3762 |
|
---|
3763 | yyrc = WinGetMinPosition(a, b, c);
|
---|
3764 | SetFS(sel);
|
---|
3765 |
|
---|
3766 | return yyrc;
|
---|
3767 | }
|
---|
3768 |
|
---|
3769 | #undef WinGetMinPosition
|
---|
3770 | #define WinGetMinPosition _WinGetMinPosition
|
---|
3771 |
|
---|
3772 | inline BOOL _WinSaveWindowPos(HSAVEWP a, PSWP b, ULONG c)
|
---|
3773 | {
|
---|
3774 | BOOL yyrc;
|
---|
3775 | USHORT sel = GetFS();
|
---|
3776 |
|
---|
3777 | yyrc = WinSaveWindowPos(a, b, c);
|
---|
3778 | SetFS(sel);
|
---|
3779 |
|
---|
3780 | return yyrc;
|
---|
3781 | }
|
---|
3782 |
|
---|
3783 | #undef WinSaveWindowPos
|
---|
3784 | #define WinSaveWindowPos _WinSaveWindowPos
|
---|
3785 |
|
---|
3786 | #endif
|
---|
3787 | #ifdef INCL_WINWINDOWMGR
|
---|
3788 | inline HPS _WinBeginPaint(HWND a, HPS b, PRECTL c)
|
---|
3789 | {
|
---|
3790 | HPS yyrc;
|
---|
3791 | USHORT sel = GetFS();
|
---|
3792 |
|
---|
3793 | yyrc = WinBeginPaint(a, b, c);
|
---|
3794 | SetFS(sel);
|
---|
3795 |
|
---|
3796 | return yyrc;
|
---|
3797 | }
|
---|
3798 |
|
---|
3799 | #undef WinBeginPaint
|
---|
3800 | #define WinBeginPaint _WinBeginPaint
|
---|
3801 |
|
---|
3802 | inline MRESULT _WinDefWindowProc(HWND a, ULONG b, MPARAM c, MPARAM d)
|
---|
3803 | {
|
---|
3804 | MRESULT yyrc;
|
---|
3805 | USHORT sel = GetFS();
|
---|
3806 |
|
---|
3807 | yyrc = WinDefWindowProc(a, b, c, d);
|
---|
3808 | SetFS(sel);
|
---|
3809 |
|
---|
3810 | return yyrc;
|
---|
3811 | }
|
---|
3812 |
|
---|
3813 | #undef WinDefWindowProc
|
---|
3814 | #define WinDefWindowProc _WinDefWindowProc
|
---|
3815 |
|
---|
3816 | inline BOOL _WinDestroyWindow(HWND a)
|
---|
3817 | {
|
---|
3818 | BOOL yyrc;
|
---|
3819 | USHORT sel = GetFS();
|
---|
3820 |
|
---|
3821 | yyrc = WinDestroyWindow(a);
|
---|
3822 | SetFS(sel);
|
---|
3823 |
|
---|
3824 | return yyrc;
|
---|
3825 | }
|
---|
3826 |
|
---|
3827 | #undef WinDestroyWindow
|
---|
3828 | #define WinDestroyWindow _WinDestroyWindow
|
---|
3829 |
|
---|
3830 | inline BOOL _WinEndPaint(HPS a)
|
---|
3831 | {
|
---|
3832 | BOOL yyrc;
|
---|
3833 | USHORT sel = GetFS();
|
---|
3834 |
|
---|
3835 | yyrc = WinEndPaint(a);
|
---|
3836 | SetFS(sel);
|
---|
3837 |
|
---|
3838 | return yyrc;
|
---|
3839 | }
|
---|
3840 |
|
---|
3841 | #undef WinEndPaint
|
---|
3842 | #define WinEndPaint _WinEndPaint
|
---|
3843 |
|
---|
3844 | inline BOOL _WinFillRect(HPS a, PRECTL b, LONG c)
|
---|
3845 | {
|
---|
3846 | BOOL yyrc;
|
---|
3847 | USHORT sel = GetFS();
|
---|
3848 |
|
---|
3849 | yyrc = WinFillRect(a, b, c);
|
---|
3850 | SetFS(sel);
|
---|
3851 |
|
---|
3852 | return yyrc;
|
---|
3853 | }
|
---|
3854 |
|
---|
3855 | #undef WinFillRect
|
---|
3856 | #define WinFillRect _WinFillRect
|
---|
3857 |
|
---|
3858 | inline HPS _WinGetClipPS(HWND a, HWND b, ULONG c)
|
---|
3859 | {
|
---|
3860 | HPS yyrc;
|
---|
3861 | USHORT sel = GetFS();
|
---|
3862 |
|
---|
3863 | yyrc = WinGetClipPS(a, b, c);
|
---|
3864 | SetFS(sel);
|
---|
3865 |
|
---|
3866 | return yyrc;
|
---|
3867 | }
|
---|
3868 |
|
---|
3869 | #undef WinGetClipPS
|
---|
3870 | #define WinGetClipPS _WinGetClipPS
|
---|
3871 |
|
---|
3872 | inline HPS _WinGetPS(HWND a)
|
---|
3873 | {
|
---|
3874 | HPS yyrc;
|
---|
3875 | USHORT sel = GetFS();
|
---|
3876 |
|
---|
3877 | yyrc = WinGetPS(a);
|
---|
3878 | SetFS(sel);
|
---|
3879 |
|
---|
3880 | return yyrc;
|
---|
3881 | }
|
---|
3882 |
|
---|
3883 | #undef WinGetPS
|
---|
3884 | #define WinGetPS _WinGetPS
|
---|
3885 |
|
---|
3886 | inline HAB _WinInitialize(ULONG a)
|
---|
3887 | {
|
---|
3888 | HAB yyrc;
|
---|
3889 | USHORT sel = GetFS();
|
---|
3890 |
|
---|
3891 | yyrc = WinInitialize(a);
|
---|
3892 | SetFS(sel);
|
---|
3893 |
|
---|
3894 | return yyrc;
|
---|
3895 | }
|
---|
3896 |
|
---|
3897 | #undef WinInitialize
|
---|
3898 | #define WinInitialize _WinInitialize
|
---|
3899 |
|
---|
3900 | inline BOOL _WinIsWindowShowing(HWND a)
|
---|
3901 | {
|
---|
3902 | BOOL yyrc;
|
---|
3903 | USHORT sel = GetFS();
|
---|
3904 |
|
---|
3905 | yyrc = WinIsWindowShowing(a);
|
---|
3906 | SetFS(sel);
|
---|
3907 |
|
---|
3908 | return yyrc;
|
---|
3909 | }
|
---|
3910 |
|
---|
3911 | #undef WinIsWindowShowing
|
---|
3912 | #define WinIsWindowShowing _WinIsWindowShowing
|
---|
3913 |
|
---|
3914 | inline HDC _WinOpenWindowDC(HWND a)
|
---|
3915 | {
|
---|
3916 | HDC yyrc;
|
---|
3917 | USHORT sel = GetFS();
|
---|
3918 |
|
---|
3919 | yyrc = WinOpenWindowDC(a);
|
---|
3920 | SetFS(sel);
|
---|
3921 |
|
---|
3922 | return yyrc;
|
---|
3923 | }
|
---|
3924 |
|
---|
3925 | #undef WinOpenWindowDC
|
---|
3926 | #define WinOpenWindowDC _WinOpenWindowDC
|
---|
3927 |
|
---|
3928 | inline HAB _WinQueryAnchorBlock(HWND a)
|
---|
3929 | {
|
---|
3930 | HAB yyrc;
|
---|
3931 | USHORT sel = GetFS();
|
---|
3932 |
|
---|
3933 | yyrc = WinQueryAnchorBlock(a);
|
---|
3934 | SetFS(sel);
|
---|
3935 |
|
---|
3936 | return yyrc;
|
---|
3937 | }
|
---|
3938 |
|
---|
3939 | #undef WinQueryAnchorBlock
|
---|
3940 | #define WinQueryAnchorBlock _WinQueryAnchorBlock
|
---|
3941 |
|
---|
3942 | inline ULONG _WinQueryVersion(HAB a)
|
---|
3943 | {
|
---|
3944 | ULONG yyrc;
|
---|
3945 | USHORT sel = GetFS();
|
---|
3946 |
|
---|
3947 | yyrc = WinQueryVersion(a);
|
---|
3948 | SetFS(sel);
|
---|
3949 |
|
---|
3950 | return yyrc;
|
---|
3951 | }
|
---|
3952 |
|
---|
3953 | #undef WinQueryVersion
|
---|
3954 | #define WinQueryVersion _WinQueryVersion
|
---|
3955 |
|
---|
3956 | inline BOOL _WinQueryWindowRect(HWND a, PRECTL b)
|
---|
3957 | {
|
---|
3958 | BOOL yyrc;
|
---|
3959 | USHORT sel = GetFS();
|
---|
3960 |
|
---|
3961 | yyrc = WinQueryWindowRect(a, b);
|
---|
3962 | SetFS(sel);
|
---|
3963 |
|
---|
3964 | return yyrc;
|
---|
3965 | }
|
---|
3966 |
|
---|
3967 | #undef WinQueryWindowRect
|
---|
3968 | #define WinQueryWindowRect _WinQueryWindowRect
|
---|
3969 |
|
---|
3970 | inline BOOL _WinRegisterClass(HAB a, PCSZ b, PFNWP c, ULONG d, ULONG e)
|
---|
3971 | {
|
---|
3972 | BOOL yyrc;
|
---|
3973 | USHORT sel = GetFS();
|
---|
3974 |
|
---|
3975 | yyrc = WinRegisterClass(a, b, c, d, e);
|
---|
3976 | SetFS(sel);
|
---|
3977 |
|
---|
3978 | return yyrc;
|
---|
3979 | }
|
---|
3980 |
|
---|
3981 | #undef WinRegisterClass
|
---|
3982 | #define WinRegisterClass _WinRegisterClass
|
---|
3983 |
|
---|
3984 | inline BOOL _WinReleasePS(HPS a)
|
---|
3985 | {
|
---|
3986 | BOOL yyrc;
|
---|
3987 | USHORT sel = GetFS();
|
---|
3988 |
|
---|
3989 | yyrc = WinReleasePS(a);
|
---|
3990 | SetFS(sel);
|
---|
3991 |
|
---|
3992 | return yyrc;
|
---|
3993 | }
|
---|
3994 |
|
---|
3995 | #undef WinReleasePS
|
---|
3996 | #define WinReleasePS _WinReleasePS
|
---|
3997 |
|
---|
3998 | inline LONG _WinScrollWindow(HWND a, LONG b, LONG c, PRECTL d, PRECTL e, HRGN f, PRECTL g, ULONG h)
|
---|
3999 | {
|
---|
4000 | LONG yyrc;
|
---|
4001 | USHORT sel = GetFS();
|
---|
4002 |
|
---|
4003 | yyrc = WinScrollWindow(a, b, c, d, e, f, g, h);
|
---|
4004 | SetFS(sel);
|
---|
4005 |
|
---|
4006 | return yyrc;
|
---|
4007 | }
|
---|
4008 |
|
---|
4009 | #undef WinScrollWindow
|
---|
4010 | #define WinScrollWindow _WinScrollWindow
|
---|
4011 |
|
---|
4012 | inline BOOL _WinSetActiveWindow(HWND a, HWND b)
|
---|
4013 | {
|
---|
4014 | BOOL yyrc;
|
---|
4015 | USHORT sel = GetFS();
|
---|
4016 |
|
---|
4017 | yyrc = WinSetActiveWindow(a, b);
|
---|
4018 | SetFS(sel);
|
---|
4019 |
|
---|
4020 | return yyrc;
|
---|
4021 | }
|
---|
4022 |
|
---|
4023 | #undef WinSetActiveWindow
|
---|
4024 | #define WinSetActiveWindow _WinSetActiveWindow
|
---|
4025 |
|
---|
4026 | inline BOOL _WinShowWindow(HWND a, BOOL b)
|
---|
4027 | {
|
---|
4028 | BOOL yyrc;
|
---|
4029 | USHORT sel = GetFS();
|
---|
4030 |
|
---|
4031 | yyrc = WinShowWindow(a, b);
|
---|
4032 | SetFS(sel);
|
---|
4033 |
|
---|
4034 | return yyrc;
|
---|
4035 | }
|
---|
4036 |
|
---|
4037 | #undef WinShowWindow
|
---|
4038 | #define WinShowWindow _WinShowWindow
|
---|
4039 |
|
---|
4040 | inline BOOL _WinTerminate(HAB a)
|
---|
4041 | {
|
---|
4042 | BOOL yyrc;
|
---|
4043 | USHORT sel = GetFS();
|
---|
4044 |
|
---|
4045 | yyrc = WinTerminate(a);
|
---|
4046 | SetFS(sel);
|
---|
4047 |
|
---|
4048 | return yyrc;
|
---|
4049 | }
|
---|
4050 |
|
---|
4051 | #undef WinTerminate
|
---|
4052 | #define WinTerminate _WinTerminate
|
---|
4053 |
|
---|
4054 | #endif
|
---|
4055 | #ifdef INCL_WINWINDOWMGR
|
---|
4056 | inline HENUM _WinBeginEnumWindows(HWND a)
|
---|
4057 | {
|
---|
4058 | HENUM yyrc;
|
---|
4059 | USHORT sel = GetFS();
|
---|
4060 |
|
---|
4061 | yyrc = WinBeginEnumWindows(a);
|
---|
4062 | SetFS(sel);
|
---|
4063 |
|
---|
4064 | return yyrc;
|
---|
4065 | }
|
---|
4066 |
|
---|
4067 | #undef WinBeginEnumWindows
|
---|
4068 | #define WinBeginEnumWindows _WinBeginEnumWindows
|
---|
4069 |
|
---|
4070 | inline BOOL _WinEndEnumWindows(HENUM a)
|
---|
4071 | {
|
---|
4072 | BOOL yyrc;
|
---|
4073 | USHORT sel = GetFS();
|
---|
4074 |
|
---|
4075 | yyrc = WinEndEnumWindows(a);
|
---|
4076 | SetFS(sel);
|
---|
4077 |
|
---|
4078 | return yyrc;
|
---|
4079 | }
|
---|
4080 |
|
---|
4081 | #undef WinEndEnumWindows
|
---|
4082 | #define WinEndEnumWindows _WinEndEnumWindows
|
---|
4083 |
|
---|
4084 | inline LONG _WinExcludeUpdateRegion(HPS a, HWND b)
|
---|
4085 | {
|
---|
4086 | LONG yyrc;
|
---|
4087 | USHORT sel = GetFS();
|
---|
4088 |
|
---|
4089 | yyrc = WinExcludeUpdateRegion(a, b);
|
---|
4090 | SetFS(sel);
|
---|
4091 |
|
---|
4092 | return yyrc;
|
---|
4093 | }
|
---|
4094 |
|
---|
4095 | #undef WinExcludeUpdateRegion
|
---|
4096 | #define WinExcludeUpdateRegion _WinExcludeUpdateRegion
|
---|
4097 |
|
---|
4098 | inline HWND _WinGetNextWindow(HENUM a)
|
---|
4099 | {
|
---|
4100 | HWND yyrc;
|
---|
4101 | USHORT sel = GetFS();
|
---|
4102 |
|
---|
4103 | yyrc = WinGetNextWindow(a);
|
---|
4104 | SetFS(sel);
|
---|
4105 |
|
---|
4106 | return yyrc;
|
---|
4107 | }
|
---|
4108 |
|
---|
4109 | #undef WinGetNextWindow
|
---|
4110 | #define WinGetNextWindow _WinGetNextWindow
|
---|
4111 |
|
---|
4112 | inline HPS _WinGetScreenPS(HWND a)
|
---|
4113 | {
|
---|
4114 | HPS yyrc;
|
---|
4115 | USHORT sel = GetFS();
|
---|
4116 |
|
---|
4117 | yyrc = WinGetScreenPS(a);
|
---|
4118 | SetFS(sel);
|
---|
4119 |
|
---|
4120 | return yyrc;
|
---|
4121 | }
|
---|
4122 |
|
---|
4123 | #undef WinGetScreenPS
|
---|
4124 | #define WinGetScreenPS _WinGetScreenPS
|
---|
4125 |
|
---|
4126 | inline BOOL _WinIsThreadActive(HAB a)
|
---|
4127 | {
|
---|
4128 | BOOL yyrc;
|
---|
4129 | USHORT sel = GetFS();
|
---|
4130 |
|
---|
4131 | yyrc = WinIsThreadActive(a);
|
---|
4132 | SetFS(sel);
|
---|
4133 |
|
---|
4134 | return yyrc;
|
---|
4135 | }
|
---|
4136 |
|
---|
4137 | #undef WinIsThreadActive
|
---|
4138 | #define WinIsThreadActive _WinIsThreadActive
|
---|
4139 |
|
---|
4140 | inline BOOL _WinLockVisRegions(HWND a, BOOL b)
|
---|
4141 | {
|
---|
4142 | BOOL yyrc;
|
---|
4143 | USHORT sel = GetFS();
|
---|
4144 |
|
---|
4145 | yyrc = WinLockVisRegions(a, b);
|
---|
4146 | SetFS(sel);
|
---|
4147 |
|
---|
4148 | return yyrc;
|
---|
4149 | }
|
---|
4150 |
|
---|
4151 | #undef WinLockVisRegions
|
---|
4152 | #define WinLockVisRegions _WinLockVisRegions
|
---|
4153 |
|
---|
4154 | inline BOOL _WinLockWindowUpdate(HWND a, HWND b)
|
---|
4155 | {
|
---|
4156 | BOOL yyrc;
|
---|
4157 | USHORT sel = GetFS();
|
---|
4158 |
|
---|
4159 | yyrc = WinLockWindowUpdate(a, b);
|
---|
4160 | SetFS(sel);
|
---|
4161 |
|
---|
4162 | return yyrc;
|
---|
4163 | }
|
---|
4164 |
|
---|
4165 | #undef WinLockWindowUpdate
|
---|
4166 | #define WinLockWindowUpdate _WinLockWindowUpdate
|
---|
4167 |
|
---|
4168 | inline BOOL _WinMapWindowPoints(HWND a, HWND b, PPOINTL c, LONG d)
|
---|
4169 | {
|
---|
4170 | BOOL yyrc;
|
---|
4171 | USHORT sel = GetFS();
|
---|
4172 |
|
---|
4173 | yyrc = WinMapWindowPoints(a, b, c, d);
|
---|
4174 | SetFS(sel);
|
---|
4175 |
|
---|
4176 | return yyrc;
|
---|
4177 | }
|
---|
4178 |
|
---|
4179 | #undef WinMapWindowPoints
|
---|
4180 | #define WinMapWindowPoints _WinMapWindowPoints
|
---|
4181 |
|
---|
4182 | inline HWND _WinQueryActiveWindow(HWND a)
|
---|
4183 | {
|
---|
4184 | HWND yyrc;
|
---|
4185 | USHORT sel = GetFS();
|
---|
4186 |
|
---|
4187 | yyrc = WinQueryActiveWindow(a);
|
---|
4188 | SetFS(sel);
|
---|
4189 |
|
---|
4190 | return yyrc;
|
---|
4191 | }
|
---|
4192 |
|
---|
4193 | #undef WinQueryActiveWindow
|
---|
4194 | #define WinQueryActiveWindow _WinQueryActiveWindow
|
---|
4195 |
|
---|
4196 | inline BOOL _WinQueryClassInfo(HAB a, PCSZ b, PCLASSINFO c)
|
---|
4197 | {
|
---|
4198 | BOOL yyrc;
|
---|
4199 | USHORT sel = GetFS();
|
---|
4200 |
|
---|
4201 | yyrc = WinQueryClassInfo(a, b, c);
|
---|
4202 | SetFS(sel);
|
---|
4203 |
|
---|
4204 | return yyrc;
|
---|
4205 | }
|
---|
4206 |
|
---|
4207 | #undef WinQueryClassInfo
|
---|
4208 | #define WinQueryClassInfo _WinQueryClassInfo
|
---|
4209 |
|
---|
4210 | inline LONG _WinQueryClassName(HWND a, LONG b, PCH c)
|
---|
4211 | {
|
---|
4212 | LONG yyrc;
|
---|
4213 | USHORT sel = GetFS();
|
---|
4214 |
|
---|
4215 | yyrc = WinQueryClassName(a, b, c);
|
---|
4216 | SetFS(sel);
|
---|
4217 |
|
---|
4218 | return yyrc;
|
---|
4219 | }
|
---|
4220 |
|
---|
4221 | #undef WinQueryClassName
|
---|
4222 | #define WinQueryClassName _WinQueryClassName
|
---|
4223 |
|
---|
4224 | inline BOOL _WinQueryUpdateRect(HWND a, PRECTL b)
|
---|
4225 | {
|
---|
4226 | BOOL yyrc;
|
---|
4227 | USHORT sel = GetFS();
|
---|
4228 |
|
---|
4229 | yyrc = WinQueryUpdateRect(a, b);
|
---|
4230 | SetFS(sel);
|
---|
4231 |
|
---|
4232 | return yyrc;
|
---|
4233 | }
|
---|
4234 |
|
---|
4235 | #undef WinQueryUpdateRect
|
---|
4236 | #define WinQueryUpdateRect _WinQueryUpdateRect
|
---|
4237 |
|
---|
4238 | inline LONG _WinQueryUpdateRegion(HWND a, HRGN b)
|
---|
4239 | {
|
---|
4240 | LONG yyrc;
|
---|
4241 | USHORT sel = GetFS();
|
---|
4242 |
|
---|
4243 | yyrc = WinQueryUpdateRegion(a, b);
|
---|
4244 | SetFS(sel);
|
---|
4245 |
|
---|
4246 | return yyrc;
|
---|
4247 | }
|
---|
4248 |
|
---|
4249 | #undef WinQueryUpdateRegion
|
---|
4250 | #define WinQueryUpdateRegion _WinQueryUpdateRegion
|
---|
4251 |
|
---|
4252 | inline HWND _WinQuerySysModalWindow(HWND a)
|
---|
4253 | {
|
---|
4254 | HWND yyrc;
|
---|
4255 | USHORT sel = GetFS();
|
---|
4256 |
|
---|
4257 | yyrc = WinQuerySysModalWindow(a);
|
---|
4258 | SetFS(sel);
|
---|
4259 |
|
---|
4260 | return yyrc;
|
---|
4261 | }
|
---|
4262 |
|
---|
4263 | #undef WinQuerySysModalWindow
|
---|
4264 | #define WinQuerySysModalWindow _WinQuerySysModalWindow
|
---|
4265 |
|
---|
4266 | inline HDC _WinQueryWindowDC(HWND a)
|
---|
4267 | {
|
---|
4268 | HDC yyrc;
|
---|
4269 | USHORT sel = GetFS();
|
---|
4270 |
|
---|
4271 | yyrc = WinQueryWindowDC(a);
|
---|
4272 | SetFS(sel);
|
---|
4273 |
|
---|
4274 | return yyrc;
|
---|
4275 | }
|
---|
4276 |
|
---|
4277 | #undef WinQueryWindowDC
|
---|
4278 | #define WinQueryWindowDC _WinQueryWindowDC
|
---|
4279 |
|
---|
4280 | inline PVOID _WinQueryWindowPtr(HWND a, LONG b)
|
---|
4281 | {
|
---|
4282 | PVOID yyrc;
|
---|
4283 | USHORT sel = GetFS();
|
---|
4284 |
|
---|
4285 | yyrc = WinQueryWindowPtr(a, b);
|
---|
4286 | SetFS(sel);
|
---|
4287 |
|
---|
4288 | return yyrc;
|
---|
4289 | }
|
---|
4290 |
|
---|
4291 | #undef WinQueryWindowPtr
|
---|
4292 | #define WinQueryWindowPtr _WinQueryWindowPtr
|
---|
4293 |
|
---|
4294 | inline ULONG _WinQueryWindowULong(HWND a, LONG b)
|
---|
4295 | {
|
---|
4296 | ULONG yyrc;
|
---|
4297 | USHORT sel = GetFS();
|
---|
4298 |
|
---|
4299 | yyrc = WinQueryWindowULong(a, b);
|
---|
4300 | SetFS(sel);
|
---|
4301 |
|
---|
4302 | return yyrc;
|
---|
4303 | }
|
---|
4304 |
|
---|
4305 | #undef WinQueryWindowULong
|
---|
4306 | #define WinQueryWindowULong _WinQueryWindowULong
|
---|
4307 |
|
---|
4308 | inline USHORT _WinQueryWindowUShort(HWND a, LONG b)
|
---|
4309 | {
|
---|
4310 | USHORT yyrc;
|
---|
4311 | USHORT sel = GetFS();
|
---|
4312 |
|
---|
4313 | yyrc = WinQueryWindowUShort(a, b);
|
---|
4314 | SetFS(sel);
|
---|
4315 |
|
---|
4316 | return yyrc;
|
---|
4317 | }
|
---|
4318 |
|
---|
4319 | #undef WinQueryWindowUShort
|
---|
4320 | #define WinQueryWindowUShort _WinQueryWindowUShort
|
---|
4321 |
|
---|
4322 | inline BOOL _WinSetSysModalWindow(HWND a, HWND b)
|
---|
4323 | {
|
---|
4324 | BOOL yyrc;
|
---|
4325 | USHORT sel = GetFS();
|
---|
4326 |
|
---|
4327 | yyrc = WinSetSysModalWindow(a, b);
|
---|
4328 | SetFS(sel);
|
---|
4329 |
|
---|
4330 | return yyrc;
|
---|
4331 | }
|
---|
4332 |
|
---|
4333 | #undef WinSetSysModalWindow
|
---|
4334 | #define WinSetSysModalWindow _WinSetSysModalWindow
|
---|
4335 |
|
---|
4336 | inline BOOL _WinSetWindowBits(HWND a, LONG b, ULONG c, ULONG d)
|
---|
4337 | {
|
---|
4338 | BOOL yyrc;
|
---|
4339 | USHORT sel = GetFS();
|
---|
4340 |
|
---|
4341 | yyrc = WinSetWindowBits(a, b, c, d);
|
---|
4342 | SetFS(sel);
|
---|
4343 |
|
---|
4344 | return yyrc;
|
---|
4345 | }
|
---|
4346 |
|
---|
4347 | #undef WinSetWindowBits
|
---|
4348 | #define WinSetWindowBits _WinSetWindowBits
|
---|
4349 |
|
---|
4350 | inline BOOL _WinSetWindowPtr(HWND a, LONG b, PVOID c)
|
---|
4351 | {
|
---|
4352 | BOOL yyrc;
|
---|
4353 | USHORT sel = GetFS();
|
---|
4354 |
|
---|
4355 | yyrc = WinSetWindowPtr(a, b, c);
|
---|
4356 | SetFS(sel);
|
---|
4357 |
|
---|
4358 | return yyrc;
|
---|
4359 | }
|
---|
4360 |
|
---|
4361 | #undef WinSetWindowPtr
|
---|
4362 | #define WinSetWindowPtr _WinSetWindowPtr
|
---|
4363 |
|
---|
4364 | inline BOOL _WinSetWindowULong(HWND a, LONG b, ULONG c)
|
---|
4365 | {
|
---|
4366 | BOOL yyrc;
|
---|
4367 | USHORT sel = GetFS();
|
---|
4368 |
|
---|
4369 | yyrc = WinSetWindowULong(a, b, c);
|
---|
4370 | SetFS(sel);
|
---|
4371 |
|
---|
4372 | return yyrc;
|
---|
4373 | }
|
---|
4374 |
|
---|
4375 | #undef WinSetWindowULong
|
---|
4376 | #define WinSetWindowULong _WinSetWindowULong
|
---|
4377 |
|
---|
4378 | inline BOOL _WinSetWindowUShort(HWND a, LONG b, USHORT c)
|
---|
4379 | {
|
---|
4380 | BOOL yyrc;
|
---|
4381 | USHORT sel = GetFS();
|
---|
4382 |
|
---|
4383 | yyrc = WinSetWindowUShort(a, b, c);
|
---|
4384 | SetFS(sel);
|
---|
4385 |
|
---|
4386 | return yyrc;
|
---|
4387 | }
|
---|
4388 |
|
---|
4389 | #undef WinSetWindowUShort
|
---|
4390 | #define WinSetWindowUShort _WinSetWindowUShort
|
---|
4391 |
|
---|
4392 | inline PFNWP _WinSubclassWindow(HWND a, PFNWP b)
|
---|
4393 | {
|
---|
4394 | PFNWP yyrc;
|
---|
4395 | USHORT sel = GetFS();
|
---|
4396 |
|
---|
4397 | yyrc = WinSubclassWindow(a, b);
|
---|
4398 | SetFS(sel);
|
---|
4399 |
|
---|
4400 | return yyrc;
|
---|
4401 | }
|
---|
4402 |
|
---|
4403 | #undef WinSubclassWindow
|
---|
4404 | #define WinSubclassWindow _WinSubclassWindow
|
---|
4405 |
|
---|
4406 | inline BOOL _WinValidateRect(HWND a, PRECTL b, BOOL c)
|
---|
4407 | {
|
---|
4408 | BOOL yyrc;
|
---|
4409 | USHORT sel = GetFS();
|
---|
4410 |
|
---|
4411 | yyrc = WinValidateRect(a, b, c);
|
---|
4412 | SetFS(sel);
|
---|
4413 |
|
---|
4414 | return yyrc;
|
---|
4415 | }
|
---|
4416 |
|
---|
4417 | #undef WinValidateRect
|
---|
4418 | #define WinValidateRect _WinValidateRect
|
---|
4419 |
|
---|
4420 | inline BOOL _WinValidateRegion(HWND a, HRGN b, BOOL c)
|
---|
4421 | {
|
---|
4422 | BOOL yyrc;
|
---|
4423 | USHORT sel = GetFS();
|
---|
4424 |
|
---|
4425 | yyrc = WinValidateRegion(a, b, c);
|
---|
4426 | SetFS(sel);
|
---|
4427 |
|
---|
4428 | return yyrc;
|
---|
4429 | }
|
---|
4430 |
|
---|
4431 | #undef WinValidateRegion
|
---|
4432 | #define WinValidateRegion _WinValidateRegion
|
---|
4433 |
|
---|
4434 | inline HWND _WinWindowFromDC(HDC a)
|
---|
4435 | {
|
---|
4436 | HWND yyrc;
|
---|
4437 | USHORT sel = GetFS();
|
---|
4438 |
|
---|
4439 | yyrc = WinWindowFromDC(a);
|
---|
4440 | SetFS(sel);
|
---|
4441 |
|
---|
4442 | return yyrc;
|
---|
4443 | }
|
---|
4444 |
|
---|
4445 | #undef WinWindowFromDC
|
---|
4446 | #define WinWindowFromDC _WinWindowFromDC
|
---|
4447 |
|
---|
4448 | inline HWND _WinWindowFromPoint(HWND a, PPOINTL b, BOOL c)
|
---|
4449 | {
|
---|
4450 | HWND yyrc;
|
---|
4451 | USHORT sel = GetFS();
|
---|
4452 |
|
---|
4453 | yyrc = WinWindowFromPoint(a, b, c);
|
---|
4454 | SetFS(sel);
|
---|
4455 |
|
---|
4456 | return yyrc;
|
---|
4457 | }
|
---|
4458 |
|
---|
4459 | #undef WinWindowFromPoint
|
---|
4460 | #define WinWindowFromPoint _WinWindowFromPoint
|
---|
4461 |
|
---|
4462 | #endif
|
---|
4463 | #ifdef INCL_WINACCELERATORS
|
---|
4464 | inline ULONG _WinCopyAccelTable(HACCEL a, PACCELTABLE b, ULONG c)
|
---|
4465 | {
|
---|
4466 | ULONG yyrc;
|
---|
4467 | USHORT sel = GetFS();
|
---|
4468 |
|
---|
4469 | yyrc = WinCopyAccelTable(a, b, c);
|
---|
4470 | SetFS(sel);
|
---|
4471 |
|
---|
4472 | return yyrc;
|
---|
4473 | }
|
---|
4474 |
|
---|
4475 | #undef WinCopyAccelTable
|
---|
4476 | #define WinCopyAccelTable _WinCopyAccelTable
|
---|
4477 |
|
---|
4478 | inline HACCEL _WinCreateAccelTable(HAB a, PACCELTABLE b)
|
---|
4479 | {
|
---|
4480 | HACCEL yyrc;
|
---|
4481 | USHORT sel = GetFS();
|
---|
4482 |
|
---|
4483 | yyrc = WinCreateAccelTable(a, b);
|
---|
4484 | SetFS(sel);
|
---|
4485 |
|
---|
4486 | return yyrc;
|
---|
4487 | }
|
---|
4488 |
|
---|
4489 | #undef WinCreateAccelTable
|
---|
4490 | #define WinCreateAccelTable _WinCreateAccelTable
|
---|
4491 |
|
---|
4492 | inline BOOL _WinDestroyAccelTable(HACCEL a)
|
---|
4493 | {
|
---|
4494 | BOOL yyrc;
|
---|
4495 | USHORT sel = GetFS();
|
---|
4496 |
|
---|
4497 | yyrc = WinDestroyAccelTable(a);
|
---|
4498 | SetFS(sel);
|
---|
4499 |
|
---|
4500 | return yyrc;
|
---|
4501 | }
|
---|
4502 |
|
---|
4503 | #undef WinDestroyAccelTable
|
---|
4504 | #define WinDestroyAccelTable _WinDestroyAccelTable
|
---|
4505 |
|
---|
4506 | inline HACCEL _WinLoadAccelTable(HAB a, HMODULE b, ULONG c)
|
---|
4507 | {
|
---|
4508 | HACCEL yyrc;
|
---|
4509 | USHORT sel = GetFS();
|
---|
4510 |
|
---|
4511 | yyrc = WinLoadAccelTable(a, b, c);
|
---|
4512 | SetFS(sel);
|
---|
4513 |
|
---|
4514 | return yyrc;
|
---|
4515 | }
|
---|
4516 |
|
---|
4517 | #undef WinLoadAccelTable
|
---|
4518 | #define WinLoadAccelTable _WinLoadAccelTable
|
---|
4519 |
|
---|
4520 | inline HACCEL _WinQueryAccelTable(HAB a, HWND b)
|
---|
4521 | {
|
---|
4522 | HACCEL yyrc;
|
---|
4523 | USHORT sel = GetFS();
|
---|
4524 |
|
---|
4525 | yyrc = WinQueryAccelTable(a, b);
|
---|
4526 | SetFS(sel);
|
---|
4527 |
|
---|
4528 | return yyrc;
|
---|
4529 | }
|
---|
4530 |
|
---|
4531 | #undef WinQueryAccelTable
|
---|
4532 | #define WinQueryAccelTable _WinQueryAccelTable
|
---|
4533 |
|
---|
4534 | inline BOOL _WinSetAccelTable(HAB a, HACCEL b, HWND c)
|
---|
4535 | {
|
---|
4536 | BOOL yyrc;
|
---|
4537 | USHORT sel = GetFS();
|
---|
4538 |
|
---|
4539 | yyrc = WinSetAccelTable(a, b, c);
|
---|
4540 | SetFS(sel);
|
---|
4541 |
|
---|
4542 | return yyrc;
|
---|
4543 | }
|
---|
4544 |
|
---|
4545 | #undef WinSetAccelTable
|
---|
4546 | #define WinSetAccelTable _WinSetAccelTable
|
---|
4547 |
|
---|
4548 | inline BOOL _WinTranslateAccel(HAB a, HWND b, HACCEL c, PQMSG d)
|
---|
4549 | {
|
---|
4550 | BOOL yyrc;
|
---|
4551 | USHORT sel = GetFS();
|
---|
4552 |
|
---|
4553 | yyrc = WinTranslateAccel(a, b, c, d);
|
---|
4554 | SetFS(sel);
|
---|
4555 |
|
---|
4556 | return yyrc;
|
---|
4557 | }
|
---|
4558 |
|
---|
4559 | #undef WinTranslateAccel
|
---|
4560 | #define WinTranslateAccel _WinTranslateAccel
|
---|
4561 |
|
---|
4562 | #endif
|
---|
4563 | #ifdef INCL_WINATOM
|
---|
4564 | inline ATOM _WinAddAtom(HATOMTBL a, PCSZ b)
|
---|
4565 | {
|
---|
4566 | ATOM yyrc;
|
---|
4567 | USHORT sel = GetFS();
|
---|
4568 |
|
---|
4569 | yyrc = WinAddAtom(a, b);
|
---|
4570 | SetFS(sel);
|
---|
4571 |
|
---|
4572 | return yyrc;
|
---|
4573 | }
|
---|
4574 |
|
---|
4575 | #undef WinAddAtom
|
---|
4576 | #define WinAddAtom _WinAddAtom
|
---|
4577 |
|
---|
4578 | inline HATOMTBL _WinCreateAtomTable(ULONG a, ULONG b)
|
---|
4579 | {
|
---|
4580 | HATOMTBL yyrc;
|
---|
4581 | USHORT sel = GetFS();
|
---|
4582 |
|
---|
4583 | yyrc = WinCreateAtomTable(a, b);
|
---|
4584 | SetFS(sel);
|
---|
4585 |
|
---|
4586 | return yyrc;
|
---|
4587 | }
|
---|
4588 |
|
---|
4589 | #undef WinCreateAtomTable
|
---|
4590 | #define WinCreateAtomTable _WinCreateAtomTable
|
---|
4591 |
|
---|
4592 | inline ATOM _WinDeleteAtom(HATOMTBL a, ATOM b)
|
---|
4593 | {
|
---|
4594 | ATOM yyrc;
|
---|
4595 | USHORT sel = GetFS();
|
---|
4596 |
|
---|
4597 | yyrc = WinDeleteAtom(a, b);
|
---|
4598 | SetFS(sel);
|
---|
4599 |
|
---|
4600 | return yyrc;
|
---|
4601 | }
|
---|
4602 |
|
---|
4603 | #undef WinDeleteAtom
|
---|
4604 | #define WinDeleteAtom _WinDeleteAtom
|
---|
4605 |
|
---|
4606 | inline HATOMTBL _WinDestroyAtomTable(HATOMTBL a)
|
---|
4607 | {
|
---|
4608 | HATOMTBL yyrc;
|
---|
4609 | USHORT sel = GetFS();
|
---|
4610 |
|
---|
4611 | yyrc = WinDestroyAtomTable(a);
|
---|
4612 | SetFS(sel);
|
---|
4613 |
|
---|
4614 | return yyrc;
|
---|
4615 | }
|
---|
4616 |
|
---|
4617 | #undef WinDestroyAtomTable
|
---|
4618 | #define WinDestroyAtomTable _WinDestroyAtomTable
|
---|
4619 |
|
---|
4620 | inline ATOM _WinFindAtom(HATOMTBL a, PCSZ b)
|
---|
4621 | {
|
---|
4622 | ATOM yyrc;
|
---|
4623 | USHORT sel = GetFS();
|
---|
4624 |
|
---|
4625 | yyrc = WinFindAtom(a, b);
|
---|
4626 | SetFS(sel);
|
---|
4627 |
|
---|
4628 | return yyrc;
|
---|
4629 | }
|
---|
4630 |
|
---|
4631 | #undef WinFindAtom
|
---|
4632 | #define WinFindAtom _WinFindAtom
|
---|
4633 |
|
---|
4634 | inline ULONG _WinQueryAtomLength(HATOMTBL a, ATOM b)
|
---|
4635 | {
|
---|
4636 | ULONG yyrc;
|
---|
4637 | USHORT sel = GetFS();
|
---|
4638 |
|
---|
4639 | yyrc = WinQueryAtomLength(a, b);
|
---|
4640 | SetFS(sel);
|
---|
4641 |
|
---|
4642 | return yyrc;
|
---|
4643 | }
|
---|
4644 |
|
---|
4645 | #undef WinQueryAtomLength
|
---|
4646 | #define WinQueryAtomLength _WinQueryAtomLength
|
---|
4647 |
|
---|
4648 | inline ULONG _WinQueryAtomName(HATOMTBL a, ATOM b, PSZ c, ULONG d)
|
---|
4649 | {
|
---|
4650 | ULONG yyrc;
|
---|
4651 | USHORT sel = GetFS();
|
---|
4652 |
|
---|
4653 | yyrc = WinQueryAtomName(a, b, c, d);
|
---|
4654 | SetFS(sel);
|
---|
4655 |
|
---|
4656 | return yyrc;
|
---|
4657 | }
|
---|
4658 |
|
---|
4659 | #undef WinQueryAtomName
|
---|
4660 | #define WinQueryAtomName _WinQueryAtomName
|
---|
4661 |
|
---|
4662 | inline ULONG _WinQueryAtomUsage(HATOMTBL a, ATOM b)
|
---|
4663 | {
|
---|
4664 | ULONG yyrc;
|
---|
4665 | USHORT sel = GetFS();
|
---|
4666 |
|
---|
4667 | yyrc = WinQueryAtomUsage(a, b);
|
---|
4668 | SetFS(sel);
|
---|
4669 |
|
---|
4670 | return yyrc;
|
---|
4671 | }
|
---|
4672 |
|
---|
4673 | #undef WinQueryAtomUsage
|
---|
4674 | #define WinQueryAtomUsage _WinQueryAtomUsage
|
---|
4675 |
|
---|
4676 | inline HATOMTBL _WinQuerySystemAtomTable()
|
---|
4677 | {
|
---|
4678 | HATOMTBL yyrc;
|
---|
4679 | USHORT sel = GetFS();
|
---|
4680 |
|
---|
4681 | yyrc = WinQuerySystemAtomTable();
|
---|
4682 | SetFS(sel);
|
---|
4683 |
|
---|
4684 | return yyrc;
|
---|
4685 | }
|
---|
4686 |
|
---|
4687 | #undef WinQuerySystemAtomTable
|
---|
4688 | #define WinQuerySystemAtomTable _WinQuerySystemAtomTable
|
---|
4689 |
|
---|
4690 | #endif
|
---|
4691 | #ifdef INCL_WINCLIPBOARD
|
---|
4692 | inline BOOL _WinCloseClipbrd(HAB a)
|
---|
4693 | {
|
---|
4694 | BOOL yyrc;
|
---|
4695 | USHORT sel = GetFS();
|
---|
4696 |
|
---|
4697 | yyrc = WinCloseClipbrd(a);
|
---|
4698 | SetFS(sel);
|
---|
4699 |
|
---|
4700 | return yyrc;
|
---|
4701 | }
|
---|
4702 |
|
---|
4703 | #undef WinCloseClipbrd
|
---|
4704 | #define WinCloseClipbrd _WinCloseClipbrd
|
---|
4705 |
|
---|
4706 | inline BOOL _WinEmptyClipbrd(HAB a)
|
---|
4707 | {
|
---|
4708 | BOOL yyrc;
|
---|
4709 | USHORT sel = GetFS();
|
---|
4710 |
|
---|
4711 | yyrc = WinEmptyClipbrd(a);
|
---|
4712 | SetFS(sel);
|
---|
4713 |
|
---|
4714 | return yyrc;
|
---|
4715 | }
|
---|
4716 |
|
---|
4717 | #undef WinEmptyClipbrd
|
---|
4718 | #define WinEmptyClipbrd _WinEmptyClipbrd
|
---|
4719 |
|
---|
4720 | inline ULONG _WinEnumClipbrdFmts(HAB a, ULONG b)
|
---|
4721 | {
|
---|
4722 | ULONG yyrc;
|
---|
4723 | USHORT sel = GetFS();
|
---|
4724 |
|
---|
4725 | yyrc = WinEnumClipbrdFmts(a, b);
|
---|
4726 | SetFS(sel);
|
---|
4727 |
|
---|
4728 | return yyrc;
|
---|
4729 | }
|
---|
4730 |
|
---|
4731 | #undef WinEnumClipbrdFmts
|
---|
4732 | #define WinEnumClipbrdFmts _WinEnumClipbrdFmts
|
---|
4733 |
|
---|
4734 | inline BOOL _WinOpenClipbrd(HAB a)
|
---|
4735 | {
|
---|
4736 | BOOL yyrc;
|
---|
4737 | USHORT sel = GetFS();
|
---|
4738 |
|
---|
4739 | yyrc = WinOpenClipbrd(a);
|
---|
4740 | SetFS(sel);
|
---|
4741 |
|
---|
4742 | return yyrc;
|
---|
4743 | }
|
---|
4744 |
|
---|
4745 | #undef WinOpenClipbrd
|
---|
4746 | #define WinOpenClipbrd _WinOpenClipbrd
|
---|
4747 |
|
---|
4748 | inline ULONG _WinQueryClipbrdData(HAB a, ULONG b)
|
---|
4749 | {
|
---|
4750 | ULONG yyrc;
|
---|
4751 | USHORT sel = GetFS();
|
---|
4752 |
|
---|
4753 | yyrc = WinQueryClipbrdData(a, b);
|
---|
4754 | SetFS(sel);
|
---|
4755 |
|
---|
4756 | return yyrc;
|
---|
4757 | }
|
---|
4758 |
|
---|
4759 | #undef WinQueryClipbrdData
|
---|
4760 | #define WinQueryClipbrdData _WinQueryClipbrdData
|
---|
4761 |
|
---|
4762 | inline BOOL _WinQueryClipbrdFmtInfo(HAB a, ULONG b, PULONG c)
|
---|
4763 | {
|
---|
4764 | BOOL yyrc;
|
---|
4765 | USHORT sel = GetFS();
|
---|
4766 |
|
---|
4767 | yyrc = WinQueryClipbrdFmtInfo(a, b, c);
|
---|
4768 | SetFS(sel);
|
---|
4769 |
|
---|
4770 | return yyrc;
|
---|
4771 | }
|
---|
4772 |
|
---|
4773 | #undef WinQueryClipbrdFmtInfo
|
---|
4774 | #define WinQueryClipbrdFmtInfo _WinQueryClipbrdFmtInfo
|
---|
4775 |
|
---|
4776 | inline HWND _WinQueryClipbrdOwner(HAB a)
|
---|
4777 | {
|
---|
4778 | HWND yyrc;
|
---|
4779 | USHORT sel = GetFS();
|
---|
4780 |
|
---|
4781 | yyrc = WinQueryClipbrdOwner(a);
|
---|
4782 | SetFS(sel);
|
---|
4783 |
|
---|
4784 | return yyrc;
|
---|
4785 | }
|
---|
4786 |
|
---|
4787 | #undef WinQueryClipbrdOwner
|
---|
4788 | #define WinQueryClipbrdOwner _WinQueryClipbrdOwner
|
---|
4789 |
|
---|
4790 | inline HWND _WinQueryClipbrdViewer(HAB a)
|
---|
4791 | {
|
---|
4792 | HWND yyrc;
|
---|
4793 | USHORT sel = GetFS();
|
---|
4794 |
|
---|
4795 | yyrc = WinQueryClipbrdViewer(a);
|
---|
4796 | SetFS(sel);
|
---|
4797 |
|
---|
4798 | return yyrc;
|
---|
4799 | }
|
---|
4800 |
|
---|
4801 | #undef WinQueryClipbrdViewer
|
---|
4802 | #define WinQueryClipbrdViewer _WinQueryClipbrdViewer
|
---|
4803 |
|
---|
4804 | inline BOOL _WinSetClipbrdData(HAB a, ULONG b, ULONG c, ULONG d)
|
---|
4805 | {
|
---|
4806 | BOOL yyrc;
|
---|
4807 | USHORT sel = GetFS();
|
---|
4808 |
|
---|
4809 | yyrc = WinSetClipbrdData(a, b, c, d);
|
---|
4810 | SetFS(sel);
|
---|
4811 |
|
---|
4812 | return yyrc;
|
---|
4813 | }
|
---|
4814 |
|
---|
4815 | #undef WinSetClipbrdData
|
---|
4816 | #define WinSetClipbrdData _WinSetClipbrdData
|
---|
4817 |
|
---|
4818 | inline BOOL _WinSetClipbrdOwner(HAB a, HWND b)
|
---|
4819 | {
|
---|
4820 | BOOL yyrc;
|
---|
4821 | USHORT sel = GetFS();
|
---|
4822 |
|
---|
4823 | yyrc = WinSetClipbrdOwner(a, b);
|
---|
4824 | SetFS(sel);
|
---|
4825 |
|
---|
4826 | return yyrc;
|
---|
4827 | }
|
---|
4828 |
|
---|
4829 | #undef WinSetClipbrdOwner
|
---|
4830 | #define WinSetClipbrdOwner _WinSetClipbrdOwner
|
---|
4831 |
|
---|
4832 | inline BOOL _WinSetClipbrdViewer(HAB a, HWND b)
|
---|
4833 | {
|
---|
4834 | BOOL yyrc;
|
---|
4835 | USHORT sel = GetFS();
|
---|
4836 |
|
---|
4837 | yyrc = WinSetClipbrdViewer(a, b);
|
---|
4838 | SetFS(sel);
|
---|
4839 |
|
---|
4840 | return yyrc;
|
---|
4841 | }
|
---|
4842 |
|
---|
4843 | #undef WinSetClipbrdViewer
|
---|
4844 | #define WinSetClipbrdViewer _WinSetClipbrdViewer
|
---|
4845 |
|
---|
4846 | #endif
|
---|
4847 | #ifdef INCL_WINDDE
|
---|
4848 | inline BOOL _WinDdeInitiate(HWND a, PCSZ b, PCSZ c, PCONVCONTEXT d)
|
---|
4849 | {
|
---|
4850 | BOOL yyrc;
|
---|
4851 | USHORT sel = GetFS();
|
---|
4852 |
|
---|
4853 | yyrc = WinDdeInitiate(a, b, c, d);
|
---|
4854 | SetFS(sel);
|
---|
4855 |
|
---|
4856 | return yyrc;
|
---|
4857 | }
|
---|
4858 |
|
---|
4859 | #undef WinDdeInitiate
|
---|
4860 | #define WinDdeInitiate _WinDdeInitiate
|
---|
4861 |
|
---|
4862 | inline BOOL _WinDdePostMsg(HWND a, HWND b, ULONG c, PDDESTRUCT d, ULONG e)
|
---|
4863 | {
|
---|
4864 | BOOL yyrc;
|
---|
4865 | USHORT sel = GetFS();
|
---|
4866 |
|
---|
4867 | yyrc = WinDdePostMsg(a, b, c, d, e);
|
---|
4868 | SetFS(sel);
|
---|
4869 |
|
---|
4870 | return yyrc;
|
---|
4871 | }
|
---|
4872 |
|
---|
4873 | #undef WinDdePostMsg
|
---|
4874 | #define WinDdePostMsg _WinDdePostMsg
|
---|
4875 |
|
---|
4876 | inline MRESULT _WinDdeRespond(HWND a, HWND b, PCSZ c, PCSZ d, PCONVCONTEXT e)
|
---|
4877 | {
|
---|
4878 | MRESULT yyrc;
|
---|
4879 | USHORT sel = GetFS();
|
---|
4880 |
|
---|
4881 | yyrc = WinDdeRespond(a, b, c, d, e);
|
---|
4882 | SetFS(sel);
|
---|
4883 |
|
---|
4884 | return yyrc;
|
---|
4885 | }
|
---|
4886 |
|
---|
4887 | #undef WinDdeRespond
|
---|
4888 | #define WinDdeRespond _WinDdeRespond
|
---|
4889 |
|
---|
4890 | #endif
|
---|
4891 | #ifdef INCL_WINCOUNTRY
|
---|
4892 | inline ULONG _WinCompareStrings(HAB a, ULONG b, ULONG c, PCSZ d, PCSZ e, ULONG f)
|
---|
4893 | {
|
---|
4894 | ULONG yyrc;
|
---|
4895 | USHORT sel = GetFS();
|
---|
4896 |
|
---|
4897 | yyrc = WinCompareStrings(a, b, c, d, e, f);
|
---|
4898 | SetFS(sel);
|
---|
4899 |
|
---|
4900 | return yyrc;
|
---|
4901 | }
|
---|
4902 |
|
---|
4903 | #undef WinCompareStrings
|
---|
4904 | #define WinCompareStrings _WinCompareStrings
|
---|
4905 |
|
---|
4906 | inline UCHAR _WinCpTranslateChar(HAB a, ULONG b, UCHAR c, ULONG d)
|
---|
4907 | {
|
---|
4908 | UCHAR yyrc;
|
---|
4909 | USHORT sel = GetFS();
|
---|
4910 |
|
---|
4911 | yyrc = WinCpTranslateChar(a, b, c, d);
|
---|
4912 | SetFS(sel);
|
---|
4913 |
|
---|
4914 | return yyrc;
|
---|
4915 | }
|
---|
4916 |
|
---|
4917 | #undef WinCpTranslateChar
|
---|
4918 | #define WinCpTranslateChar _WinCpTranslateChar
|
---|
4919 |
|
---|
4920 | inline BOOL _WinCpTranslateString(HAB a, ULONG b, PCSZ c, ULONG d, ULONG e, PSZ f)
|
---|
4921 | {
|
---|
4922 | BOOL yyrc;
|
---|
4923 | USHORT sel = GetFS();
|
---|
4924 |
|
---|
4925 | yyrc = WinCpTranslateString(a, b, c, d, e, f);
|
---|
4926 | SetFS(sel);
|
---|
4927 |
|
---|
4928 | return yyrc;
|
---|
4929 | }
|
---|
4930 |
|
---|
4931 | #undef WinCpTranslateString
|
---|
4932 | #define WinCpTranslateString _WinCpTranslateString
|
---|
4933 |
|
---|
4934 | inline PCSZ _WinNextChar(HAB a, ULONG b, ULONG c, PCSZ d)
|
---|
4935 | {
|
---|
4936 | PCSZ yyrc;
|
---|
4937 | USHORT sel = GetFS();
|
---|
4938 |
|
---|
4939 | yyrc = WinNextChar(a, b, c, d);
|
---|
4940 | SetFS(sel);
|
---|
4941 |
|
---|
4942 | return yyrc;
|
---|
4943 | }
|
---|
4944 |
|
---|
4945 | #undef WinNextChar
|
---|
4946 | #define WinNextChar _WinNextChar
|
---|
4947 |
|
---|
4948 | inline PCSZ _WinPrevChar(HAB a, ULONG b, ULONG c, PCSZ d, PCSZ e)
|
---|
4949 | {
|
---|
4950 | PCSZ yyrc;
|
---|
4951 | USHORT sel = GetFS();
|
---|
4952 |
|
---|
4953 | yyrc = WinPrevChar(a, b, c, d, e);
|
---|
4954 | SetFS(sel);
|
---|
4955 |
|
---|
4956 | return yyrc;
|
---|
4957 | }
|
---|
4958 |
|
---|
4959 | #undef WinPrevChar
|
---|
4960 | #define WinPrevChar _WinPrevChar
|
---|
4961 |
|
---|
4962 | inline ULONG _WinQueryCp(HMQ a)
|
---|
4963 | {
|
---|
4964 | ULONG yyrc;
|
---|
4965 | USHORT sel = GetFS();
|
---|
4966 |
|
---|
4967 | yyrc = WinQueryCp(a);
|
---|
4968 | SetFS(sel);
|
---|
4969 |
|
---|
4970 | return yyrc;
|
---|
4971 | }
|
---|
4972 |
|
---|
4973 | #undef WinQueryCp
|
---|
4974 | #define WinQueryCp _WinQueryCp
|
---|
4975 |
|
---|
4976 | inline ULONG _WinQueryCpList(HAB a, ULONG b, PULONG c)
|
---|
4977 | {
|
---|
4978 | ULONG yyrc;
|
---|
4979 | USHORT sel = GetFS();
|
---|
4980 |
|
---|
4981 | yyrc = WinQueryCpList(a, b, c);
|
---|
4982 | SetFS(sel);
|
---|
4983 |
|
---|
4984 | return yyrc;
|
---|
4985 | }
|
---|
4986 |
|
---|
4987 | #undef WinQueryCpList
|
---|
4988 | #define WinQueryCpList _WinQueryCpList
|
---|
4989 |
|
---|
4990 | inline BOOL _WinSetCp(HMQ a, ULONG b)
|
---|
4991 | {
|
---|
4992 | BOOL yyrc;
|
---|
4993 | USHORT sel = GetFS();
|
---|
4994 |
|
---|
4995 | yyrc = WinSetCp(a, b);
|
---|
4996 | SetFS(sel);
|
---|
4997 |
|
---|
4998 | return yyrc;
|
---|
4999 | }
|
---|
5000 |
|
---|
5001 | #undef WinSetCp
|
---|
5002 | #define WinSetCp _WinSetCp
|
---|
5003 |
|
---|
5004 | inline ULONG _WinUpper(HAB a, ULONG b, ULONG c, PSZ d)
|
---|
5005 | {
|
---|
5006 | ULONG yyrc;
|
---|
5007 | USHORT sel = GetFS();
|
---|
5008 |
|
---|
5009 | yyrc = WinUpper(a, b, c, d);
|
---|
5010 | SetFS(sel);
|
---|
5011 |
|
---|
5012 | return yyrc;
|
---|
5013 | }
|
---|
5014 |
|
---|
5015 | #undef WinUpper
|
---|
5016 | #define WinUpper _WinUpper
|
---|
5017 |
|
---|
5018 | inline ULONG _WinUpperChar(HAB a, ULONG b, ULONG c, ULONG d)
|
---|
5019 | {
|
---|
5020 | ULONG yyrc;
|
---|
5021 | USHORT sel = GetFS();
|
---|
5022 |
|
---|
5023 | yyrc = WinUpperChar(a, b, c, d);
|
---|
5024 | SetFS(sel);
|
---|
5025 |
|
---|
5026 | return yyrc;
|
---|
5027 | }
|
---|
5028 |
|
---|
5029 | #undef WinUpperChar
|
---|
5030 | #define WinUpperChar _WinUpperChar
|
---|
5031 |
|
---|
5032 | #endif
|
---|
5033 | #ifdef INCL_WINCURSORS
|
---|
5034 | inline BOOL _WinCreateCursor(HWND a, LONG b, LONG c, LONG d, LONG e, ULONG f, PRECTL g)
|
---|
5035 | {
|
---|
5036 | BOOL yyrc;
|
---|
5037 | USHORT sel = GetFS();
|
---|
5038 |
|
---|
5039 | yyrc = WinCreateCursor(a, b, c, d, e, f, g);
|
---|
5040 | SetFS(sel);
|
---|
5041 |
|
---|
5042 | return yyrc;
|
---|
5043 | }
|
---|
5044 |
|
---|
5045 | #undef WinCreateCursor
|
---|
5046 | #define WinCreateCursor _WinCreateCursor
|
---|
5047 |
|
---|
5048 | inline BOOL _WinDestroyCursor(HWND a)
|
---|
5049 | {
|
---|
5050 | BOOL yyrc;
|
---|
5051 | USHORT sel = GetFS();
|
---|
5052 |
|
---|
5053 | yyrc = WinDestroyCursor(a);
|
---|
5054 | SetFS(sel);
|
---|
5055 |
|
---|
5056 | return yyrc;
|
---|
5057 | }
|
---|
5058 |
|
---|
5059 | #undef WinDestroyCursor
|
---|
5060 | #define WinDestroyCursor _WinDestroyCursor
|
---|
5061 |
|
---|
5062 | inline BOOL _WinShowCursor(HWND a, BOOL b)
|
---|
5063 | {
|
---|
5064 | BOOL yyrc;
|
---|
5065 | USHORT sel = GetFS();
|
---|
5066 |
|
---|
5067 | yyrc = WinShowCursor(a, b);
|
---|
5068 | SetFS(sel);
|
---|
5069 |
|
---|
5070 | return yyrc;
|
---|
5071 | }
|
---|
5072 |
|
---|
5073 | #undef WinShowCursor
|
---|
5074 | #define WinShowCursor _WinShowCursor
|
---|
5075 |
|
---|
5076 | inline BOOL _WinQueryCursorInfo(HWND a, PCURSORINFO b)
|
---|
5077 | {
|
---|
5078 | BOOL yyrc;
|
---|
5079 | USHORT sel = GetFS();
|
---|
5080 |
|
---|
5081 | yyrc = WinQueryCursorInfo(a, b);
|
---|
5082 | SetFS(sel);
|
---|
5083 |
|
---|
5084 | return yyrc;
|
---|
5085 | }
|
---|
5086 |
|
---|
5087 | #undef WinQueryCursorInfo
|
---|
5088 | #define WinQueryCursorInfo _WinQueryCursorInfo
|
---|
5089 |
|
---|
5090 | #endif
|
---|
5091 | #ifdef INCL_WINDESKTOP
|
---|
5092 | inline BOOL _WinQueryDesktopBkgnd(HWND a, PDESKTOP b)
|
---|
5093 | {
|
---|
5094 | BOOL yyrc;
|
---|
5095 | USHORT sel = GetFS();
|
---|
5096 |
|
---|
5097 | yyrc = WinQueryDesktopBkgnd(a, b);
|
---|
5098 | SetFS(sel);
|
---|
5099 |
|
---|
5100 | return yyrc;
|
---|
5101 | }
|
---|
5102 |
|
---|
5103 | #undef WinQueryDesktopBkgnd
|
---|
5104 | #define WinQueryDesktopBkgnd _WinQueryDesktopBkgnd
|
---|
5105 |
|
---|
5106 | inline HBITMAP _WinSetDesktopBkgnd(HWND a, PDESKTOP b)
|
---|
5107 | {
|
---|
5108 | HBITMAP yyrc;
|
---|
5109 | USHORT sel = GetFS();
|
---|
5110 |
|
---|
5111 | yyrc = WinSetDesktopBkgnd(a, b);
|
---|
5112 | SetFS(sel);
|
---|
5113 |
|
---|
5114 | return yyrc;
|
---|
5115 | }
|
---|
5116 |
|
---|
5117 | #undef WinSetDesktopBkgnd
|
---|
5118 | #define WinSetDesktopBkgnd _WinSetDesktopBkgnd
|
---|
5119 |
|
---|
5120 | #endif
|
---|
5121 | #ifdef INCL_WINDIALOGS
|
---|
5122 | inline BOOL _WinAlarm(HWND a, ULONG b)
|
---|
5123 | {
|
---|
5124 | BOOL yyrc;
|
---|
5125 | USHORT sel = GetFS();
|
---|
5126 |
|
---|
5127 | yyrc = WinAlarm(a, b);
|
---|
5128 | SetFS(sel);
|
---|
5129 |
|
---|
5130 | return yyrc;
|
---|
5131 | }
|
---|
5132 |
|
---|
5133 | #undef WinAlarm
|
---|
5134 | #define WinAlarm _WinAlarm
|
---|
5135 |
|
---|
5136 | inline MRESULT _WinDefDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
|
---|
5137 | {
|
---|
5138 | MRESULT yyrc;
|
---|
5139 | USHORT sel = GetFS();
|
---|
5140 |
|
---|
5141 | yyrc = WinDefDlgProc(a, b, c, d);
|
---|
5142 | SetFS(sel);
|
---|
5143 |
|
---|
5144 | return yyrc;
|
---|
5145 | }
|
---|
5146 |
|
---|
5147 | #undef WinDefDlgProc
|
---|
5148 | #define WinDefDlgProc _WinDefDlgProc
|
---|
5149 |
|
---|
5150 | inline BOOL _WinDismissDlg(HWND a, ULONG b)
|
---|
5151 | {
|
---|
5152 | BOOL yyrc;
|
---|
5153 | USHORT sel = GetFS();
|
---|
5154 |
|
---|
5155 | yyrc = WinDismissDlg(a, b);
|
---|
5156 | SetFS(sel);
|
---|
5157 |
|
---|
5158 | return yyrc;
|
---|
5159 | }
|
---|
5160 |
|
---|
5161 | #undef WinDismissDlg
|
---|
5162 | #define WinDismissDlg _WinDismissDlg
|
---|
5163 |
|
---|
5164 | inline ULONG _WinDlgBox(HWND a, HWND b, PFNWP c, HMODULE d, ULONG e, PVOID f)
|
---|
5165 | {
|
---|
5166 | ULONG yyrc;
|
---|
5167 | USHORT sel = GetFS();
|
---|
5168 |
|
---|
5169 | yyrc = WinDlgBox(a, b, c, d, e, f);
|
---|
5170 | SetFS(sel);
|
---|
5171 |
|
---|
5172 | return yyrc;
|
---|
5173 | }
|
---|
5174 |
|
---|
5175 | #undef WinDlgBox
|
---|
5176 | #define WinDlgBox _WinDlgBox
|
---|
5177 |
|
---|
5178 | inline BOOL _WinGetDlgMsg(HWND a, PQMSG b)
|
---|
5179 | {
|
---|
5180 | BOOL yyrc;
|
---|
5181 | USHORT sel = GetFS();
|
---|
5182 |
|
---|
5183 | yyrc = WinGetDlgMsg(a, b);
|
---|
5184 | SetFS(sel);
|
---|
5185 |
|
---|
5186 | return yyrc;
|
---|
5187 | }
|
---|
5188 |
|
---|
5189 | #undef WinGetDlgMsg
|
---|
5190 | #define WinGetDlgMsg _WinGetDlgMsg
|
---|
5191 |
|
---|
5192 | inline HWND _WinLoadDlg(HWND a, HWND b, PFNWP c, HMODULE d, ULONG e, PVOID f)
|
---|
5193 | {
|
---|
5194 | HWND yyrc;
|
---|
5195 | USHORT sel = GetFS();
|
---|
5196 |
|
---|
5197 | yyrc = WinLoadDlg(a, b, c, d, e, f);
|
---|
5198 | SetFS(sel);
|
---|
5199 |
|
---|
5200 | return yyrc;
|
---|
5201 | }
|
---|
5202 |
|
---|
5203 | #undef WinLoadDlg
|
---|
5204 | #define WinLoadDlg _WinLoadDlg
|
---|
5205 |
|
---|
5206 | inline ULONG _WinMessageBox(HWND a, HWND b, PCSZ c, PCSZ d, ULONG e, ULONG f)
|
---|
5207 | {
|
---|
5208 | ULONG yyrc;
|
---|
5209 | USHORT sel = GetFS();
|
---|
5210 |
|
---|
5211 | yyrc = WinMessageBox(a, b, c, d, e, f);
|
---|
5212 | SetFS(sel);
|
---|
5213 |
|
---|
5214 | return yyrc;
|
---|
5215 | }
|
---|
5216 |
|
---|
5217 | #undef WinMessageBox
|
---|
5218 | #define WinMessageBox _WinMessageBox
|
---|
5219 |
|
---|
5220 | inline ULONG _WinMessageBox2(HWND a, HWND b, PSZ c, PSZ d, ULONG e, PMB2INFO f)
|
---|
5221 | {
|
---|
5222 | ULONG yyrc;
|
---|
5223 | USHORT sel = GetFS();
|
---|
5224 |
|
---|
5225 | yyrc = WinMessageBox2(a, b, c, d, e, f);
|
---|
5226 | SetFS(sel);
|
---|
5227 |
|
---|
5228 | return yyrc;
|
---|
5229 | }
|
---|
5230 |
|
---|
5231 | #undef WinMessageBox2
|
---|
5232 | #define WinMessageBox2 _WinMessageBox2
|
---|
5233 |
|
---|
5234 | inline BOOL _WinQueryDlgItemShort(HWND a, ULONG b, PSHORT c, BOOL d)
|
---|
5235 | {
|
---|
5236 | BOOL yyrc;
|
---|
5237 | USHORT sel = GetFS();
|
---|
5238 |
|
---|
5239 | yyrc = WinQueryDlgItemShort(a, b, c, d);
|
---|
5240 | SetFS(sel);
|
---|
5241 |
|
---|
5242 | return yyrc;
|
---|
5243 | }
|
---|
5244 |
|
---|
5245 | #undef WinQueryDlgItemShort
|
---|
5246 | #define WinQueryDlgItemShort _WinQueryDlgItemShort
|
---|
5247 |
|
---|
5248 | inline ULONG _WinQueryDlgItemText(HWND a, ULONG b, LONG c, PSZ d)
|
---|
5249 | {
|
---|
5250 | ULONG yyrc;
|
---|
5251 | USHORT sel = GetFS();
|
---|
5252 |
|
---|
5253 | yyrc = WinQueryDlgItemText(a, b, c, d);
|
---|
5254 | SetFS(sel);
|
---|
5255 |
|
---|
5256 | return yyrc;
|
---|
5257 | }
|
---|
5258 |
|
---|
5259 | #undef WinQueryDlgItemText
|
---|
5260 | #define WinQueryDlgItemText _WinQueryDlgItemText
|
---|
5261 |
|
---|
5262 | inline LONG _WinQueryDlgItemTextLength(HWND a, ULONG b)
|
---|
5263 | {
|
---|
5264 | LONG yyrc;
|
---|
5265 | USHORT sel = GetFS();
|
---|
5266 |
|
---|
5267 | yyrc = WinQueryDlgItemTextLength(a, b);
|
---|
5268 | SetFS(sel);
|
---|
5269 |
|
---|
5270 | return yyrc;
|
---|
5271 | }
|
---|
5272 |
|
---|
5273 | #undef WinQueryDlgItemTextLength
|
---|
5274 | #define WinQueryDlgItemTextLength _WinQueryDlgItemTextLength
|
---|
5275 |
|
---|
5276 | inline BOOL _WinSetDlgItemShort(HWND a, ULONG b, USHORT c, BOOL d)
|
---|
5277 | {
|
---|
5278 | BOOL yyrc;
|
---|
5279 | USHORT sel = GetFS();
|
---|
5280 |
|
---|
5281 | yyrc = WinSetDlgItemShort(a, b, c, d);
|
---|
5282 | SetFS(sel);
|
---|
5283 |
|
---|
5284 | return yyrc;
|
---|
5285 | }
|
---|
5286 |
|
---|
5287 | #undef WinSetDlgItemShort
|
---|
5288 | #define WinSetDlgItemShort _WinSetDlgItemShort
|
---|
5289 |
|
---|
5290 | inline BOOL _WinSetDlgItemText(HWND a, ULONG b, PCSZ c)
|
---|
5291 | {
|
---|
5292 | BOOL yyrc;
|
---|
5293 | USHORT sel = GetFS();
|
---|
5294 |
|
---|
5295 | yyrc = WinSetDlgItemText(a, b, c);
|
---|
5296 | SetFS(sel);
|
---|
5297 |
|
---|
5298 | return yyrc;
|
---|
5299 | }
|
---|
5300 |
|
---|
5301 | #undef WinSetDlgItemText
|
---|
5302 | #define WinSetDlgItemText _WinSetDlgItemText
|
---|
5303 |
|
---|
5304 | inline HWND _WinCreateDlg(HWND a, HWND b, PFNWP c, PDLGTEMPLATE d, PVOID e)
|
---|
5305 | {
|
---|
5306 | HWND yyrc;
|
---|
5307 | USHORT sel = GetFS();
|
---|
5308 |
|
---|
5309 | yyrc = WinCreateDlg(a, b, c, d, e);
|
---|
5310 | SetFS(sel);
|
---|
5311 |
|
---|
5312 | return yyrc;
|
---|
5313 | }
|
---|
5314 |
|
---|
5315 | #undef WinCreateDlg
|
---|
5316 | #define WinCreateDlg _WinCreateDlg
|
---|
5317 |
|
---|
5318 | inline HWND _WinEnumDlgItem(HWND a, HWND b, ULONG c)
|
---|
5319 | {
|
---|
5320 | HWND yyrc;
|
---|
5321 | USHORT sel = GetFS();
|
---|
5322 |
|
---|
5323 | yyrc = WinEnumDlgItem(a, b, c);
|
---|
5324 | SetFS(sel);
|
---|
5325 |
|
---|
5326 | return yyrc;
|
---|
5327 | }
|
---|
5328 |
|
---|
5329 | #undef WinEnumDlgItem
|
---|
5330 | #define WinEnumDlgItem _WinEnumDlgItem
|
---|
5331 |
|
---|
5332 | inline BOOL _WinMapDlgPoints(HWND a, PPOINTL b, ULONG c, BOOL d)
|
---|
5333 | {
|
---|
5334 | BOOL yyrc;
|
---|
5335 | USHORT sel = GetFS();
|
---|
5336 |
|
---|
5337 | yyrc = WinMapDlgPoints(a, b, c, d);
|
---|
5338 | SetFS(sel);
|
---|
5339 |
|
---|
5340 | return yyrc;
|
---|
5341 | }
|
---|
5342 |
|
---|
5343 | #undef WinMapDlgPoints
|
---|
5344 | #define WinMapDlgPoints _WinMapDlgPoints
|
---|
5345 |
|
---|
5346 | inline ULONG _WinProcessDlg(HWND a)
|
---|
5347 | {
|
---|
5348 | ULONG yyrc;
|
---|
5349 | USHORT sel = GetFS();
|
---|
5350 |
|
---|
5351 | yyrc = WinProcessDlg(a);
|
---|
5352 | SetFS(sel);
|
---|
5353 |
|
---|
5354 | return yyrc;
|
---|
5355 | }
|
---|
5356 |
|
---|
5357 | #undef WinProcessDlg
|
---|
5358 | #define WinProcessDlg _WinProcessDlg
|
---|
5359 |
|
---|
5360 | inline MRESULT _WinSendDlgItemMsg(HWND a, ULONG b, ULONG c, MPARAM d, MPARAM e)
|
---|
5361 | {
|
---|
5362 | MRESULT yyrc;
|
---|
5363 | USHORT sel = GetFS();
|
---|
5364 |
|
---|
5365 | yyrc = WinSendDlgItemMsg(a, b, c, d, e);
|
---|
5366 | SetFS(sel);
|
---|
5367 |
|
---|
5368 | return yyrc;
|
---|
5369 | }
|
---|
5370 |
|
---|
5371 | #undef WinSendDlgItemMsg
|
---|
5372 | #define WinSendDlgItemMsg _WinSendDlgItemMsg
|
---|
5373 |
|
---|
5374 | inline LONG _WinSubstituteStrings(HWND a, PCSZ b, LONG c, PSZ d)
|
---|
5375 | {
|
---|
5376 | LONG yyrc;
|
---|
5377 | USHORT sel = GetFS();
|
---|
5378 |
|
---|
5379 | yyrc = WinSubstituteStrings(a, b, c, d);
|
---|
5380 | SetFS(sel);
|
---|
5381 |
|
---|
5382 | return yyrc;
|
---|
5383 | }
|
---|
5384 |
|
---|
5385 | #undef WinSubstituteStrings
|
---|
5386 | #define WinSubstituteStrings _WinSubstituteStrings
|
---|
5387 |
|
---|
5388 | #endif
|
---|
5389 | #ifdef INCL_WINERRORS
|
---|
5390 | inline ERRORID _WinGetLastError(HAB a)
|
---|
5391 | {
|
---|
5392 | ERRORID yyrc;
|
---|
5393 | USHORT sel = GetFS();
|
---|
5394 |
|
---|
5395 | yyrc = WinGetLastError(a);
|
---|
5396 | SetFS(sel);
|
---|
5397 |
|
---|
5398 | return yyrc;
|
---|
5399 | }
|
---|
5400 |
|
---|
5401 | #undef WinGetLastError
|
---|
5402 | #define WinGetLastError _WinGetLastError
|
---|
5403 |
|
---|
5404 | inline BOOL _WinFreeErrorInfo(PERRINFO a)
|
---|
5405 | {
|
---|
5406 | BOOL yyrc;
|
---|
5407 | USHORT sel = GetFS();
|
---|
5408 |
|
---|
5409 | yyrc = WinFreeErrorInfo(a);
|
---|
5410 | SetFS(sel);
|
---|
5411 |
|
---|
5412 | return yyrc;
|
---|
5413 | }
|
---|
5414 |
|
---|
5415 | #undef WinFreeErrorInfo
|
---|
5416 | #define WinFreeErrorInfo _WinFreeErrorInfo
|
---|
5417 |
|
---|
5418 | inline PERRINFO _WinGetErrorInfo(HAB a)
|
---|
5419 | {
|
---|
5420 | PERRINFO yyrc;
|
---|
5421 | USHORT sel = GetFS();
|
---|
5422 |
|
---|
5423 | yyrc = WinGetErrorInfo(a);
|
---|
5424 | SetFS(sel);
|
---|
5425 |
|
---|
5426 | return yyrc;
|
---|
5427 | }
|
---|
5428 |
|
---|
5429 | #undef WinGetErrorInfo
|
---|
5430 | #define WinGetErrorInfo _WinGetErrorInfo
|
---|
5431 |
|
---|
5432 | #endif
|
---|
5433 | #ifdef INCL_WINHOOKS
|
---|
5434 | inline BOOL _WinCallMsgFilter(HAB a, PQMSG b, ULONG c)
|
---|
5435 | {
|
---|
5436 | BOOL yyrc;
|
---|
5437 | USHORT sel = GetFS();
|
---|
5438 |
|
---|
5439 | yyrc = WinCallMsgFilter(a, b, c);
|
---|
5440 | SetFS(sel);
|
---|
5441 |
|
---|
5442 | return yyrc;
|
---|
5443 | }
|
---|
5444 |
|
---|
5445 | #undef WinCallMsgFilter
|
---|
5446 | #define WinCallMsgFilter _WinCallMsgFilter
|
---|
5447 |
|
---|
5448 | inline BOOL _WinReleaseHook(HAB a, HMQ b, LONG c, PFN d, HMODULE e)
|
---|
5449 | {
|
---|
5450 | BOOL yyrc;
|
---|
5451 | USHORT sel = GetFS();
|
---|
5452 |
|
---|
5453 | yyrc = WinReleaseHook(a, b, c, d, e);
|
---|
5454 | SetFS(sel);
|
---|
5455 |
|
---|
5456 | return yyrc;
|
---|
5457 | }
|
---|
5458 |
|
---|
5459 | #undef WinReleaseHook
|
---|
5460 | #define WinReleaseHook _WinReleaseHook
|
---|
5461 |
|
---|
5462 | inline BOOL _WinSetHook(HAB a, HMQ b, LONG c, PFN d, HMODULE e)
|
---|
5463 | {
|
---|
5464 | BOOL yyrc;
|
---|
5465 | USHORT sel = GetFS();
|
---|
5466 |
|
---|
5467 | yyrc = WinSetHook(a, b, c, d, e);
|
---|
5468 | SetFS(sel);
|
---|
5469 |
|
---|
5470 | return yyrc;
|
---|
5471 | }
|
---|
5472 |
|
---|
5473 | #undef WinSetHook
|
---|
5474 | #define WinSetHook _WinSetHook
|
---|
5475 |
|
---|
5476 | #endif
|
---|
5477 | #ifdef INCL_WININPUT
|
---|
5478 | inline BOOL _WinFocusChange(HWND a, HWND b, ULONG c)
|
---|
5479 | {
|
---|
5480 | BOOL yyrc;
|
---|
5481 | USHORT sel = GetFS();
|
---|
5482 |
|
---|
5483 | yyrc = WinFocusChange(a, b, c);
|
---|
5484 | SetFS(sel);
|
---|
5485 |
|
---|
5486 | return yyrc;
|
---|
5487 | }
|
---|
5488 |
|
---|
5489 | #undef WinFocusChange
|
---|
5490 | #define WinFocusChange _WinFocusChange
|
---|
5491 |
|
---|
5492 | inline BOOL _WinLockupSystem(HAB a)
|
---|
5493 | {
|
---|
5494 | BOOL yyrc;
|
---|
5495 | USHORT sel = GetFS();
|
---|
5496 |
|
---|
5497 | yyrc = WinLockupSystem(a);
|
---|
5498 | SetFS(sel);
|
---|
5499 |
|
---|
5500 | return yyrc;
|
---|
5501 | }
|
---|
5502 |
|
---|
5503 | #undef WinLockupSystem
|
---|
5504 | #define WinLockupSystem _WinLockupSystem
|
---|
5505 |
|
---|
5506 | inline BOOL _WinSetFocus(HWND a, HWND b)
|
---|
5507 | {
|
---|
5508 | BOOL yyrc;
|
---|
5509 | USHORT sel = GetFS();
|
---|
5510 |
|
---|
5511 | yyrc = WinSetFocus(a, b);
|
---|
5512 | SetFS(sel);
|
---|
5513 |
|
---|
5514 | return yyrc;
|
---|
5515 | }
|
---|
5516 |
|
---|
5517 | #undef WinSetFocus
|
---|
5518 | #define WinSetFocus _WinSetFocus
|
---|
5519 |
|
---|
5520 | inline BOOL _WinUnlockSystem(HAB a, PSZ b)
|
---|
5521 | {
|
---|
5522 | BOOL yyrc;
|
---|
5523 | USHORT sel = GetFS();
|
---|
5524 |
|
---|
5525 | yyrc = WinUnlockSystem(a, b);
|
---|
5526 | SetFS(sel);
|
---|
5527 |
|
---|
5528 | return yyrc;
|
---|
5529 | }
|
---|
5530 |
|
---|
5531 | #undef WinUnlockSystem
|
---|
5532 | #define WinUnlockSystem _WinUnlockSystem
|
---|
5533 |
|
---|
5534 | inline BOOL _WinCheckInput(HAB a)
|
---|
5535 | {
|
---|
5536 | BOOL yyrc;
|
---|
5537 | USHORT sel = GetFS();
|
---|
5538 |
|
---|
5539 | yyrc = WinCheckInput(a);
|
---|
5540 | SetFS(sel);
|
---|
5541 |
|
---|
5542 | return yyrc;
|
---|
5543 | }
|
---|
5544 |
|
---|
5545 | #undef WinCheckInput
|
---|
5546 | #define WinCheckInput _WinCheckInput
|
---|
5547 |
|
---|
5548 | inline BOOL _WinEnablePhysInput(HWND a, BOOL b)
|
---|
5549 | {
|
---|
5550 | BOOL yyrc;
|
---|
5551 | USHORT sel = GetFS();
|
---|
5552 |
|
---|
5553 | yyrc = WinEnablePhysInput(a, b);
|
---|
5554 | SetFS(sel);
|
---|
5555 |
|
---|
5556 | return yyrc;
|
---|
5557 | }
|
---|
5558 |
|
---|
5559 | #undef WinEnablePhysInput
|
---|
5560 | #define WinEnablePhysInput _WinEnablePhysInput
|
---|
5561 |
|
---|
5562 | inline LONG _WinGetKeyState(HWND a, LONG b)
|
---|
5563 | {
|
---|
5564 | LONG yyrc;
|
---|
5565 | USHORT sel = GetFS();
|
---|
5566 |
|
---|
5567 | yyrc = WinGetKeyState(a, b);
|
---|
5568 | SetFS(sel);
|
---|
5569 |
|
---|
5570 | return yyrc;
|
---|
5571 | }
|
---|
5572 |
|
---|
5573 | #undef WinGetKeyState
|
---|
5574 | #define WinGetKeyState _WinGetKeyState
|
---|
5575 |
|
---|
5576 | inline LONG _WinGetPhysKeyState(HWND a, LONG b)
|
---|
5577 | {
|
---|
5578 | LONG yyrc;
|
---|
5579 | USHORT sel = GetFS();
|
---|
5580 |
|
---|
5581 | yyrc = WinGetPhysKeyState(a, b);
|
---|
5582 | SetFS(sel);
|
---|
5583 |
|
---|
5584 | return yyrc;
|
---|
5585 | }
|
---|
5586 |
|
---|
5587 | #undef WinGetPhysKeyState
|
---|
5588 | #define WinGetPhysKeyState _WinGetPhysKeyState
|
---|
5589 |
|
---|
5590 | inline BOOL _WinIsPhysInputEnabled(HWND a)
|
---|
5591 | {
|
---|
5592 | BOOL yyrc;
|
---|
5593 | USHORT sel = GetFS();
|
---|
5594 |
|
---|
5595 | yyrc = WinIsPhysInputEnabled(a);
|
---|
5596 | SetFS(sel);
|
---|
5597 |
|
---|
5598 | return yyrc;
|
---|
5599 | }
|
---|
5600 |
|
---|
5601 | #undef WinIsPhysInputEnabled
|
---|
5602 | #define WinIsPhysInputEnabled _WinIsPhysInputEnabled
|
---|
5603 |
|
---|
5604 | inline HWND _WinQueryCapture(HWND a)
|
---|
5605 | {
|
---|
5606 | HWND yyrc;
|
---|
5607 | USHORT sel = GetFS();
|
---|
5608 |
|
---|
5609 | yyrc = WinQueryCapture(a);
|
---|
5610 | SetFS(sel);
|
---|
5611 |
|
---|
5612 | return yyrc;
|
---|
5613 | }
|
---|
5614 |
|
---|
5615 | #undef WinQueryCapture
|
---|
5616 | #define WinQueryCapture _WinQueryCapture
|
---|
5617 |
|
---|
5618 | inline HWND _WinQueryFocus(HWND a)
|
---|
5619 | {
|
---|
5620 | HWND yyrc;
|
---|
5621 | USHORT sel = GetFS();
|
---|
5622 |
|
---|
5623 | yyrc = WinQueryFocus(a);
|
---|
5624 | SetFS(sel);
|
---|
5625 |
|
---|
5626 | return yyrc;
|
---|
5627 | }
|
---|
5628 |
|
---|
5629 | #undef WinQueryFocus
|
---|
5630 | #define WinQueryFocus _WinQueryFocus
|
---|
5631 |
|
---|
5632 | inline ULONG _WinQueryVisibleRegion(HWND a, HRGN b)
|
---|
5633 | {
|
---|
5634 | ULONG yyrc;
|
---|
5635 | USHORT sel = GetFS();
|
---|
5636 |
|
---|
5637 | yyrc = WinQueryVisibleRegion(a, b);
|
---|
5638 | SetFS(sel);
|
---|
5639 |
|
---|
5640 | return yyrc;
|
---|
5641 | }
|
---|
5642 |
|
---|
5643 | #undef WinQueryVisibleRegion
|
---|
5644 | #define WinQueryVisibleRegion _WinQueryVisibleRegion
|
---|
5645 |
|
---|
5646 | inline BOOL _WinSetCapture(HWND a, HWND b)
|
---|
5647 | {
|
---|
5648 | BOOL yyrc;
|
---|
5649 | USHORT sel = GetFS();
|
---|
5650 |
|
---|
5651 | yyrc = WinSetCapture(a, b);
|
---|
5652 | SetFS(sel);
|
---|
5653 |
|
---|
5654 | return yyrc;
|
---|
5655 | }
|
---|
5656 |
|
---|
5657 | #undef WinSetCapture
|
---|
5658 | #define WinSetCapture _WinSetCapture
|
---|
5659 |
|
---|
5660 | inline BOOL _WinSetKeyboardStateTable(HWND a, PBYTE b, BOOL c)
|
---|
5661 | {
|
---|
5662 | BOOL yyrc;
|
---|
5663 | USHORT sel = GetFS();
|
---|
5664 |
|
---|
5665 | yyrc = WinSetKeyboardStateTable(a, b, c);
|
---|
5666 | SetFS(sel);
|
---|
5667 |
|
---|
5668 | return yyrc;
|
---|
5669 | }
|
---|
5670 |
|
---|
5671 | #undef WinSetKeyboardStateTable
|
---|
5672 | #define WinSetKeyboardStateTable _WinSetKeyboardStateTable
|
---|
5673 |
|
---|
5674 | inline BOOL _WinSetVisibleRegionNotify(HWND a, BOOL b)
|
---|
5675 | {
|
---|
5676 | BOOL yyrc;
|
---|
5677 | USHORT sel = GetFS();
|
---|
5678 |
|
---|
5679 | yyrc = WinSetVisibleRegionNotify(a, b);
|
---|
5680 | SetFS(sel);
|
---|
5681 |
|
---|
5682 | return yyrc;
|
---|
5683 | }
|
---|
5684 |
|
---|
5685 | #undef WinSetVisibleRegionNotify
|
---|
5686 | #define WinSetVisibleRegionNotify _WinSetVisibleRegionNotify
|
---|
5687 |
|
---|
5688 | #endif
|
---|
5689 | #ifdef INCL_WINLOAD
|
---|
5690 | inline BOOL _WinDeleteLibrary(HAB a, HLIB b)
|
---|
5691 | {
|
---|
5692 | BOOL yyrc;
|
---|
5693 | USHORT sel = GetFS();
|
---|
5694 |
|
---|
5695 | yyrc = WinDeleteLibrary(a, b);
|
---|
5696 | SetFS(sel);
|
---|
5697 |
|
---|
5698 | return yyrc;
|
---|
5699 | }
|
---|
5700 |
|
---|
5701 | #undef WinDeleteLibrary
|
---|
5702 | #define WinDeleteLibrary _WinDeleteLibrary
|
---|
5703 |
|
---|
5704 | inline BOOL _WinDeleteProcedure(HAB a, PFNWP b)
|
---|
5705 | {
|
---|
5706 | BOOL yyrc;
|
---|
5707 | USHORT sel = GetFS();
|
---|
5708 |
|
---|
5709 | yyrc = WinDeleteProcedure(a, b);
|
---|
5710 | SetFS(sel);
|
---|
5711 |
|
---|
5712 | return yyrc;
|
---|
5713 | }
|
---|
5714 |
|
---|
5715 | #undef WinDeleteProcedure
|
---|
5716 | #define WinDeleteProcedure _WinDeleteProcedure
|
---|
5717 |
|
---|
5718 | inline HLIB _WinLoadLibrary(HAB a, PCSZ b)
|
---|
5719 | {
|
---|
5720 | HLIB yyrc;
|
---|
5721 | USHORT sel = GetFS();
|
---|
5722 |
|
---|
5723 | yyrc = WinLoadLibrary(a, b);
|
---|
5724 | SetFS(sel);
|
---|
5725 |
|
---|
5726 | return yyrc;
|
---|
5727 | }
|
---|
5728 |
|
---|
5729 | #undef WinLoadLibrary
|
---|
5730 | #define WinLoadLibrary _WinLoadLibrary
|
---|
5731 |
|
---|
5732 | inline PFNWP _WinLoadProcedure(HAB a, HLIB b, PSZ c)
|
---|
5733 | {
|
---|
5734 | PFNWP yyrc;
|
---|
5735 | USHORT sel = GetFS();
|
---|
5736 |
|
---|
5737 | yyrc = WinLoadProcedure(a, b, c);
|
---|
5738 | SetFS(sel);
|
---|
5739 |
|
---|
5740 | return yyrc;
|
---|
5741 | }
|
---|
5742 |
|
---|
5743 | #undef WinLoadProcedure
|
---|
5744 | #define WinLoadProcedure _WinLoadProcedure
|
---|
5745 |
|
---|
5746 | #endif
|
---|
5747 | #ifdef INCL_WINMENUS
|
---|
5748 | inline HWND _WinCreateMenu(HWND a, PVOID b)
|
---|
5749 | {
|
---|
5750 | HWND yyrc;
|
---|
5751 | USHORT sel = GetFS();
|
---|
5752 |
|
---|
5753 | yyrc = WinCreateMenu(a, b);
|
---|
5754 | SetFS(sel);
|
---|
5755 |
|
---|
5756 | return yyrc;
|
---|
5757 | }
|
---|
5758 |
|
---|
5759 | #undef WinCreateMenu
|
---|
5760 | #define WinCreateMenu _WinCreateMenu
|
---|
5761 |
|
---|
5762 | inline HWND _WinLoadMenu(HWND a, HMODULE b, ULONG c)
|
---|
5763 | {
|
---|
5764 | HWND yyrc;
|
---|
5765 | USHORT sel = GetFS();
|
---|
5766 |
|
---|
5767 | yyrc = WinLoadMenu(a, b, c);
|
---|
5768 | SetFS(sel);
|
---|
5769 |
|
---|
5770 | return yyrc;
|
---|
5771 | }
|
---|
5772 |
|
---|
5773 | #undef WinLoadMenu
|
---|
5774 | #define WinLoadMenu _WinLoadMenu
|
---|
5775 |
|
---|
5776 | inline BOOL _WinPopupMenu(HWND a, HWND b, HWND c, LONG d, LONG e, LONG f, ULONG g)
|
---|
5777 | {
|
---|
5778 | BOOL yyrc;
|
---|
5779 | USHORT sel = GetFS();
|
---|
5780 |
|
---|
5781 | yyrc = WinPopupMenu(a, b, c, d, e, f, g);
|
---|
5782 | SetFS(sel);
|
---|
5783 |
|
---|
5784 | return yyrc;
|
---|
5785 | }
|
---|
5786 |
|
---|
5787 | #undef WinPopupMenu
|
---|
5788 | #define WinPopupMenu _WinPopupMenu
|
---|
5789 |
|
---|
5790 | #endif
|
---|
5791 | #ifdef INCL_WINMESSAGEMGR
|
---|
5792 | inline BOOL _WinBroadcastMsg(HWND a, ULONG b, MPARAM c, MPARAM d, ULONG e)
|
---|
5793 | {
|
---|
5794 | BOOL yyrc;
|
---|
5795 | USHORT sel = GetFS();
|
---|
5796 |
|
---|
5797 | yyrc = WinBroadcastMsg(a, b, c, d, e);
|
---|
5798 | SetFS(sel);
|
---|
5799 |
|
---|
5800 | return yyrc;
|
---|
5801 | }
|
---|
5802 |
|
---|
5803 | #undef WinBroadcastMsg
|
---|
5804 | #define WinBroadcastMsg _WinBroadcastMsg
|
---|
5805 |
|
---|
5806 | inline BOOL _WinInSendMsg(HAB a)
|
---|
5807 | {
|
---|
5808 | BOOL yyrc;
|
---|
5809 | USHORT sel = GetFS();
|
---|
5810 |
|
---|
5811 | yyrc = WinInSendMsg(a);
|
---|
5812 | SetFS(sel);
|
---|
5813 |
|
---|
5814 | return yyrc;
|
---|
5815 | }
|
---|
5816 |
|
---|
5817 | #undef WinInSendMsg
|
---|
5818 | #define WinInSendMsg _WinInSendMsg
|
---|
5819 |
|
---|
5820 | inline BOOL _WinPostQueueMsg(HMQ a, ULONG b, MPARAM c, MPARAM d)
|
---|
5821 | {
|
---|
5822 | BOOL yyrc;
|
---|
5823 | USHORT sel = GetFS();
|
---|
5824 |
|
---|
5825 | yyrc = WinPostQueueMsg(a, b, c, d);
|
---|
5826 | SetFS(sel);
|
---|
5827 |
|
---|
5828 | return yyrc;
|
---|
5829 | }
|
---|
5830 |
|
---|
5831 | #undef WinPostQueueMsg
|
---|
5832 | #define WinPostQueueMsg _WinPostQueueMsg
|
---|
5833 |
|
---|
5834 | inline BOOL _WinQueryMsgPos(HAB a, PPOINTL b)
|
---|
5835 | {
|
---|
5836 | BOOL yyrc;
|
---|
5837 | USHORT sel = GetFS();
|
---|
5838 |
|
---|
5839 | yyrc = WinQueryMsgPos(a, b);
|
---|
5840 | SetFS(sel);
|
---|
5841 |
|
---|
5842 | return yyrc;
|
---|
5843 | }
|
---|
5844 |
|
---|
5845 | #undef WinQueryMsgPos
|
---|
5846 | #define WinQueryMsgPos _WinQueryMsgPos
|
---|
5847 |
|
---|
5848 | inline ULONG _WinQueryMsgTime(HAB a)
|
---|
5849 | {
|
---|
5850 | ULONG yyrc;
|
---|
5851 | USHORT sel = GetFS();
|
---|
5852 |
|
---|
5853 | yyrc = WinQueryMsgTime(a);
|
---|
5854 | SetFS(sel);
|
---|
5855 |
|
---|
5856 | return yyrc;
|
---|
5857 | }
|
---|
5858 |
|
---|
5859 | #undef WinQueryMsgTime
|
---|
5860 | #define WinQueryMsgTime _WinQueryMsgTime
|
---|
5861 |
|
---|
5862 | inline ULONG _WinQueryQueueStatus(HWND a)
|
---|
5863 | {
|
---|
5864 | ULONG yyrc;
|
---|
5865 | USHORT sel = GetFS();
|
---|
5866 |
|
---|
5867 | yyrc = WinQueryQueueStatus(a);
|
---|
5868 | SetFS(sel);
|
---|
5869 |
|
---|
5870 | return yyrc;
|
---|
5871 | }
|
---|
5872 |
|
---|
5873 | #undef WinQueryQueueStatus
|
---|
5874 | #define WinQueryQueueStatus _WinQueryQueueStatus
|
---|
5875 |
|
---|
5876 | inline ULONG _WinRequestMutexSem(HMTX a, ULONG b)
|
---|
5877 | {
|
---|
5878 | ULONG yyrc;
|
---|
5879 | USHORT sel = GetFS();
|
---|
5880 |
|
---|
5881 | yyrc = WinRequestMutexSem(a, b);
|
---|
5882 | SetFS(sel);
|
---|
5883 |
|
---|
5884 | return yyrc;
|
---|
5885 | }
|
---|
5886 |
|
---|
5887 | #undef WinRequestMutexSem
|
---|
5888 | #define WinRequestMutexSem _WinRequestMutexSem
|
---|
5889 |
|
---|
5890 | inline BOOL _WinSetClassMsgInterest(HAB a, PCSZ b, ULONG c, LONG d)
|
---|
5891 | {
|
---|
5892 | BOOL yyrc;
|
---|
5893 | USHORT sel = GetFS();
|
---|
5894 |
|
---|
5895 | yyrc = WinSetClassMsgInterest(a, b, c, d);
|
---|
5896 | SetFS(sel);
|
---|
5897 |
|
---|
5898 | return yyrc;
|
---|
5899 | }
|
---|
5900 |
|
---|
5901 | #undef WinSetClassMsgInterest
|
---|
5902 | #define WinSetClassMsgInterest _WinSetClassMsgInterest
|
---|
5903 |
|
---|
5904 | inline BOOL _WinSetMsgInterest(HWND a, ULONG b, LONG c)
|
---|
5905 | {
|
---|
5906 | BOOL yyrc;
|
---|
5907 | USHORT sel = GetFS();
|
---|
5908 |
|
---|
5909 | yyrc = WinSetMsgInterest(a, b, c);
|
---|
5910 | SetFS(sel);
|
---|
5911 |
|
---|
5912 | return yyrc;
|
---|
5913 | }
|
---|
5914 |
|
---|
5915 | #undef WinSetMsgInterest
|
---|
5916 | #define WinSetMsgInterest _WinSetMsgInterest
|
---|
5917 |
|
---|
5918 | inline ULONG _WinWaitEventSem(HEV a, ULONG b)
|
---|
5919 | {
|
---|
5920 | ULONG yyrc;
|
---|
5921 | USHORT sel = GetFS();
|
---|
5922 |
|
---|
5923 | yyrc = WinWaitEventSem(a, b);
|
---|
5924 | SetFS(sel);
|
---|
5925 |
|
---|
5926 | return yyrc;
|
---|
5927 | }
|
---|
5928 |
|
---|
5929 | #undef WinWaitEventSem
|
---|
5930 | #define WinWaitEventSem _WinWaitEventSem
|
---|
5931 |
|
---|
5932 | inline BOOL _WinWaitMsg(HAB a, ULONG b, ULONG c)
|
---|
5933 | {
|
---|
5934 | BOOL yyrc;
|
---|
5935 | USHORT sel = GetFS();
|
---|
5936 |
|
---|
5937 | yyrc = WinWaitMsg(a, b, c);
|
---|
5938 | SetFS(sel);
|
---|
5939 |
|
---|
5940 | return yyrc;
|
---|
5941 | }
|
---|
5942 |
|
---|
5943 | #undef WinWaitMsg
|
---|
5944 | #define WinWaitMsg _WinWaitMsg
|
---|
5945 |
|
---|
5946 | inline ULONG _WinWaitMuxWaitSem(HMUX a, ULONG b, PULONG c)
|
---|
5947 | {
|
---|
5948 | ULONG yyrc;
|
---|
5949 | USHORT sel = GetFS();
|
---|
5950 |
|
---|
5951 | yyrc = WinWaitMuxWaitSem(a, b, c);
|
---|
5952 | SetFS(sel);
|
---|
5953 |
|
---|
5954 | return yyrc;
|
---|
5955 | }
|
---|
5956 |
|
---|
5957 | #undef WinWaitMuxWaitSem
|
---|
5958 | #define WinWaitMuxWaitSem _WinWaitMuxWaitSem
|
---|
5959 |
|
---|
5960 | #endif
|
---|
5961 | #ifdef INCL_WINPALETTE
|
---|
5962 | inline LONG _WinRealizePalette(HWND a, HPS b, PULONG c)
|
---|
5963 | {
|
---|
5964 | LONG yyrc;
|
---|
5965 | USHORT sel = GetFS();
|
---|
5966 |
|
---|
5967 | yyrc = WinRealizePalette(a, b, c);
|
---|
5968 | SetFS(sel);
|
---|
5969 |
|
---|
5970 | return yyrc;
|
---|
5971 | }
|
---|
5972 |
|
---|
5973 | #undef WinRealizePalette
|
---|
5974 | #define WinRealizePalette _WinRealizePalette
|
---|
5975 |
|
---|
5976 | #endif
|
---|
5977 | #ifdef INCL_WINPOINTERS
|
---|
5978 | inline HPOINTER _WinCreatePointer(HWND a, HBITMAP b, BOOL c, LONG d, LONG e)
|
---|
5979 | {
|
---|
5980 | HPOINTER yyrc;
|
---|
5981 | USHORT sel = GetFS();
|
---|
5982 |
|
---|
5983 | yyrc = WinCreatePointer(a, b, c, d, e);
|
---|
5984 | SetFS(sel);
|
---|
5985 |
|
---|
5986 | return yyrc;
|
---|
5987 | }
|
---|
5988 |
|
---|
5989 | #undef WinCreatePointer
|
---|
5990 | #define WinCreatePointer _WinCreatePointer
|
---|
5991 |
|
---|
5992 | inline HPOINTER _WinCreatePointerIndirect(HWND a, PPOINTERINFO b)
|
---|
5993 | {
|
---|
5994 | HPOINTER yyrc;
|
---|
5995 | USHORT sel = GetFS();
|
---|
5996 |
|
---|
5997 | yyrc = WinCreatePointerIndirect(a, b);
|
---|
5998 | SetFS(sel);
|
---|
5999 |
|
---|
6000 | return yyrc;
|
---|
6001 | }
|
---|
6002 |
|
---|
6003 | #undef WinCreatePointerIndirect
|
---|
6004 | #define WinCreatePointerIndirect _WinCreatePointerIndirect
|
---|
6005 |
|
---|
6006 | inline BOOL _WinDestroyPointer(HPOINTER a)
|
---|
6007 | {
|
---|
6008 | BOOL yyrc;
|
---|
6009 | USHORT sel = GetFS();
|
---|
6010 |
|
---|
6011 | yyrc = WinDestroyPointer(a);
|
---|
6012 | SetFS(sel);
|
---|
6013 |
|
---|
6014 | return yyrc;
|
---|
6015 | }
|
---|
6016 |
|
---|
6017 | #undef WinDestroyPointer
|
---|
6018 | #define WinDestroyPointer _WinDestroyPointer
|
---|
6019 |
|
---|
6020 | inline BOOL _WinDrawPointer(HPS a, LONG b, LONG c, HPOINTER d, ULONG e)
|
---|
6021 | {
|
---|
6022 | BOOL yyrc;
|
---|
6023 | USHORT sel = GetFS();
|
---|
6024 |
|
---|
6025 | yyrc = WinDrawPointer(a, b, c, d, e);
|
---|
6026 | SetFS(sel);
|
---|
6027 |
|
---|
6028 | return yyrc;
|
---|
6029 | }
|
---|
6030 |
|
---|
6031 | #undef WinDrawPointer
|
---|
6032 | #define WinDrawPointer _WinDrawPointer
|
---|
6033 |
|
---|
6034 | inline HBITMAP _WinGetSysBitmap(HWND a, ULONG b)
|
---|
6035 | {
|
---|
6036 | HBITMAP yyrc;
|
---|
6037 | USHORT sel = GetFS();
|
---|
6038 |
|
---|
6039 | yyrc = WinGetSysBitmap(a, b);
|
---|
6040 | SetFS(sel);
|
---|
6041 |
|
---|
6042 | return yyrc;
|
---|
6043 | }
|
---|
6044 |
|
---|
6045 | #undef WinGetSysBitmap
|
---|
6046 | #define WinGetSysBitmap _WinGetSysBitmap
|
---|
6047 |
|
---|
6048 | inline HPOINTER _WinLoadPointer(HWND a, HMODULE b, ULONG c)
|
---|
6049 | {
|
---|
6050 | HPOINTER yyrc;
|
---|
6051 | USHORT sel = GetFS();
|
---|
6052 |
|
---|
6053 | yyrc = WinLoadPointer(a, b, c);
|
---|
6054 | SetFS(sel);
|
---|
6055 |
|
---|
6056 | return yyrc;
|
---|
6057 | }
|
---|
6058 |
|
---|
6059 | #undef WinLoadPointer
|
---|
6060 | #define WinLoadPointer _WinLoadPointer
|
---|
6061 |
|
---|
6062 | inline BOOL _WinLockPointerUpdate(HWND a, HPOINTER b, ULONG c)
|
---|
6063 | {
|
---|
6064 | BOOL yyrc;
|
---|
6065 | USHORT sel = GetFS();
|
---|
6066 |
|
---|
6067 | yyrc = WinLockPointerUpdate(a, b, c);
|
---|
6068 | SetFS(sel);
|
---|
6069 |
|
---|
6070 | return yyrc;
|
---|
6071 | }
|
---|
6072 |
|
---|
6073 | #undef WinLockPointerUpdate
|
---|
6074 | #define WinLockPointerUpdate _WinLockPointerUpdate
|
---|
6075 |
|
---|
6076 | inline BOOL _WinQueryPointerPos(HWND a, PPOINTL b)
|
---|
6077 | {
|
---|
6078 | BOOL yyrc;
|
---|
6079 | USHORT sel = GetFS();
|
---|
6080 |
|
---|
6081 | yyrc = WinQueryPointerPos(a, b);
|
---|
6082 | SetFS(sel);
|
---|
6083 |
|
---|
6084 | return yyrc;
|
---|
6085 | }
|
---|
6086 |
|
---|
6087 | #undef WinQueryPointerPos
|
---|
6088 | #define WinQueryPointerPos _WinQueryPointerPos
|
---|
6089 |
|
---|
6090 | inline BOOL _WinQueryPointerInfo(HPOINTER a, PPOINTERINFO b)
|
---|
6091 | {
|
---|
6092 | BOOL yyrc;
|
---|
6093 | USHORT sel = GetFS();
|
---|
6094 |
|
---|
6095 | yyrc = WinQueryPointerInfo(a, b);
|
---|
6096 | SetFS(sel);
|
---|
6097 |
|
---|
6098 | return yyrc;
|
---|
6099 | }
|
---|
6100 |
|
---|
6101 | #undef WinQueryPointerInfo
|
---|
6102 | #define WinQueryPointerInfo _WinQueryPointerInfo
|
---|
6103 |
|
---|
6104 | inline HPOINTER _WinQuerySysPointer(HWND a, LONG b, BOOL c)
|
---|
6105 | {
|
---|
6106 | HPOINTER yyrc;
|
---|
6107 | USHORT sel = GetFS();
|
---|
6108 |
|
---|
6109 | yyrc = WinQuerySysPointer(a, b, c);
|
---|
6110 | SetFS(sel);
|
---|
6111 |
|
---|
6112 | return yyrc;
|
---|
6113 | }
|
---|
6114 |
|
---|
6115 | #undef WinQuerySysPointer
|
---|
6116 | #define WinQuerySysPointer _WinQuerySysPointer
|
---|
6117 |
|
---|
6118 | inline BOOL _WinQuerySysPointerData(HWND a, ULONG b, PICONINFO c)
|
---|
6119 | {
|
---|
6120 | BOOL yyrc;
|
---|
6121 | USHORT sel = GetFS();
|
---|
6122 |
|
---|
6123 | yyrc = WinQuerySysPointerData(a, b, c);
|
---|
6124 | SetFS(sel);
|
---|
6125 |
|
---|
6126 | return yyrc;
|
---|
6127 | }
|
---|
6128 |
|
---|
6129 | #undef WinQuerySysPointerData
|
---|
6130 | #define WinQuerySysPointerData _WinQuerySysPointerData
|
---|
6131 |
|
---|
6132 | inline BOOL _WinSetPointer(HWND a, HPOINTER b)
|
---|
6133 | {
|
---|
6134 | BOOL yyrc;
|
---|
6135 | USHORT sel = GetFS();
|
---|
6136 |
|
---|
6137 | yyrc = WinSetPointer(a, b);
|
---|
6138 | SetFS(sel);
|
---|
6139 |
|
---|
6140 | return yyrc;
|
---|
6141 | }
|
---|
6142 |
|
---|
6143 | #undef WinSetPointer
|
---|
6144 | #define WinSetPointer _WinSetPointer
|
---|
6145 |
|
---|
6146 | inline BOOL _WinSetPointerOwner(HPOINTER a, PID b, BOOL c)
|
---|
6147 | {
|
---|
6148 | BOOL yyrc;
|
---|
6149 | USHORT sel = GetFS();
|
---|
6150 |
|
---|
6151 | yyrc = WinSetPointerOwner(a, b, c);
|
---|
6152 | SetFS(sel);
|
---|
6153 |
|
---|
6154 | return yyrc;
|
---|
6155 | }
|
---|
6156 |
|
---|
6157 | #undef WinSetPointerOwner
|
---|
6158 | #define WinSetPointerOwner _WinSetPointerOwner
|
---|
6159 |
|
---|
6160 | inline BOOL _WinSetPointerPos(HWND a, LONG b, LONG c)
|
---|
6161 | {
|
---|
6162 | BOOL yyrc;
|
---|
6163 | USHORT sel = GetFS();
|
---|
6164 |
|
---|
6165 | yyrc = WinSetPointerPos(a, b, c);
|
---|
6166 | SetFS(sel);
|
---|
6167 |
|
---|
6168 | return yyrc;
|
---|
6169 | }
|
---|
6170 |
|
---|
6171 | #undef WinSetPointerPos
|
---|
6172 | #define WinSetPointerPos _WinSetPointerPos
|
---|
6173 |
|
---|
6174 | inline BOOL _WinSetSysPointerData(HWND a, ULONG b, PICONINFO c)
|
---|
6175 | {
|
---|
6176 | BOOL yyrc;
|
---|
6177 | USHORT sel = GetFS();
|
---|
6178 |
|
---|
6179 | yyrc = WinSetSysPointerData(a, b, c);
|
---|
6180 | SetFS(sel);
|
---|
6181 |
|
---|
6182 | return yyrc;
|
---|
6183 | }
|
---|
6184 |
|
---|
6185 | #undef WinSetSysPointerData
|
---|
6186 | #define WinSetSysPointerData _WinSetSysPointerData
|
---|
6187 |
|
---|
6188 | inline BOOL _WinShowPointer(HWND a, BOOL b)
|
---|
6189 | {
|
---|
6190 | BOOL yyrc;
|
---|
6191 | USHORT sel = GetFS();
|
---|
6192 |
|
---|
6193 | yyrc = WinShowPointer(a, b);
|
---|
6194 | SetFS(sel);
|
---|
6195 |
|
---|
6196 | return yyrc;
|
---|
6197 | }
|
---|
6198 |
|
---|
6199 | #undef WinShowPointer
|
---|
6200 | #define WinShowPointer _WinShowPointer
|
---|
6201 |
|
---|
6202 | #endif
|
---|
6203 | #ifdef INCL_WINRECTANGLES
|
---|
6204 | inline BOOL _WinCopyRect(HAB a, PRECTL b, PRECTL c)
|
---|
6205 | {
|
---|
6206 | BOOL yyrc;
|
---|
6207 | USHORT sel = GetFS();
|
---|
6208 |
|
---|
6209 | yyrc = WinCopyRect(a, b, c);
|
---|
6210 | SetFS(sel);
|
---|
6211 |
|
---|
6212 | return yyrc;
|
---|
6213 | }
|
---|
6214 |
|
---|
6215 | #undef WinCopyRect
|
---|
6216 | #define WinCopyRect _WinCopyRect
|
---|
6217 |
|
---|
6218 | inline BOOL _WinEqualRect(HAB a, PRECTL b, PRECTL c)
|
---|
6219 | {
|
---|
6220 | BOOL yyrc;
|
---|
6221 | USHORT sel = GetFS();
|
---|
6222 |
|
---|
6223 | yyrc = WinEqualRect(a, b, c);
|
---|
6224 | SetFS(sel);
|
---|
6225 |
|
---|
6226 | return yyrc;
|
---|
6227 | }
|
---|
6228 |
|
---|
6229 | #undef WinEqualRect
|
---|
6230 | #define WinEqualRect _WinEqualRect
|
---|
6231 |
|
---|
6232 | inline BOOL _WinInflateRect(HAB a, PRECTL b, LONG c, LONG d)
|
---|
6233 | {
|
---|
6234 | BOOL yyrc;
|
---|
6235 | USHORT sel = GetFS();
|
---|
6236 |
|
---|
6237 | yyrc = WinInflateRect(a, b, c, d);
|
---|
6238 | SetFS(sel);
|
---|
6239 |
|
---|
6240 | return yyrc;
|
---|
6241 | }
|
---|
6242 |
|
---|
6243 | #undef WinInflateRect
|
---|
6244 | #define WinInflateRect _WinInflateRect
|
---|
6245 |
|
---|
6246 | inline BOOL _WinIntersectRect(HAB a, PRECTL b, PRECTL c, PRECTL d)
|
---|
6247 | {
|
---|
6248 | BOOL yyrc;
|
---|
6249 | USHORT sel = GetFS();
|
---|
6250 |
|
---|
6251 | yyrc = WinIntersectRect(a, b, c, d);
|
---|
6252 | SetFS(sel);
|
---|
6253 |
|
---|
6254 | return yyrc;
|
---|
6255 | }
|
---|
6256 |
|
---|
6257 | #undef WinIntersectRect
|
---|
6258 | #define WinIntersectRect _WinIntersectRect
|
---|
6259 |
|
---|
6260 | inline BOOL _WinIsRectEmpty(HAB a, PRECTL b)
|
---|
6261 | {
|
---|
6262 | BOOL yyrc;
|
---|
6263 | USHORT sel = GetFS();
|
---|
6264 |
|
---|
6265 | yyrc = WinIsRectEmpty(a, b);
|
---|
6266 | SetFS(sel);
|
---|
6267 |
|
---|
6268 | return yyrc;
|
---|
6269 | }
|
---|
6270 |
|
---|
6271 | #undef WinIsRectEmpty
|
---|
6272 | #define WinIsRectEmpty _WinIsRectEmpty
|
---|
6273 |
|
---|
6274 | inline BOOL _WinMakePoints(HAB a, PPOINTL b, ULONG c)
|
---|
6275 | {
|
---|
6276 | BOOL yyrc;
|
---|
6277 | USHORT sel = GetFS();
|
---|
6278 |
|
---|
6279 | yyrc = WinMakePoints(a, b, c);
|
---|
6280 | SetFS(sel);
|
---|
6281 |
|
---|
6282 | return yyrc;
|
---|
6283 | }
|
---|
6284 |
|
---|
6285 | #undef WinMakePoints
|
---|
6286 | #define WinMakePoints _WinMakePoints
|
---|
6287 |
|
---|
6288 | inline BOOL _WinMakeRect(HAB a, PRECTL b)
|
---|
6289 | {
|
---|
6290 | BOOL yyrc;
|
---|
6291 | USHORT sel = GetFS();
|
---|
6292 |
|
---|
6293 | yyrc = WinMakeRect(a, b);
|
---|
6294 | SetFS(sel);
|
---|
6295 |
|
---|
6296 | return yyrc;
|
---|
6297 | }
|
---|
6298 |
|
---|
6299 | #undef WinMakeRect
|
---|
6300 | #define WinMakeRect _WinMakeRect
|
---|
6301 |
|
---|
6302 | inline BOOL _WinOffsetRect(HAB a, PRECTL b, LONG c, LONG d)
|
---|
6303 | {
|
---|
6304 | BOOL yyrc;
|
---|
6305 | USHORT sel = GetFS();
|
---|
6306 |
|
---|
6307 | yyrc = WinOffsetRect(a, b, c, d);
|
---|
6308 | SetFS(sel);
|
---|
6309 |
|
---|
6310 | return yyrc;
|
---|
6311 | }
|
---|
6312 |
|
---|
6313 | #undef WinOffsetRect
|
---|
6314 | #define WinOffsetRect _WinOffsetRect
|
---|
6315 |
|
---|
6316 | inline BOOL _WinPtInRect(HAB a, PRECTL b, PPOINTL c)
|
---|
6317 | {
|
---|
6318 | BOOL yyrc;
|
---|
6319 | USHORT sel = GetFS();
|
---|
6320 |
|
---|
6321 | yyrc = WinPtInRect(a, b, c);
|
---|
6322 | SetFS(sel);
|
---|
6323 |
|
---|
6324 | return yyrc;
|
---|
6325 | }
|
---|
6326 |
|
---|
6327 | #undef WinPtInRect
|
---|
6328 | #define WinPtInRect _WinPtInRect
|
---|
6329 |
|
---|
6330 | inline BOOL _WinSetRect(HAB a, PRECTL b, LONG c, LONG d, LONG e, LONG f)
|
---|
6331 | {
|
---|
6332 | BOOL yyrc;
|
---|
6333 | USHORT sel = GetFS();
|
---|
6334 |
|
---|
6335 | yyrc = WinSetRect(a, b, c, d, e, f);
|
---|
6336 | SetFS(sel);
|
---|
6337 |
|
---|
6338 | return yyrc;
|
---|
6339 | }
|
---|
6340 |
|
---|
6341 | #undef WinSetRect
|
---|
6342 | #define WinSetRect _WinSetRect
|
---|
6343 |
|
---|
6344 | inline BOOL _WinSetRectEmpty(HAB a, PRECTL b)
|
---|
6345 | {
|
---|
6346 | BOOL yyrc;
|
---|
6347 | USHORT sel = GetFS();
|
---|
6348 |
|
---|
6349 | yyrc = WinSetRectEmpty(a, b);
|
---|
6350 | SetFS(sel);
|
---|
6351 |
|
---|
6352 | return yyrc;
|
---|
6353 | }
|
---|
6354 |
|
---|
6355 | #undef WinSetRectEmpty
|
---|
6356 | #define WinSetRectEmpty _WinSetRectEmpty
|
---|
6357 |
|
---|
6358 | inline BOOL _WinSubtractRect(HAB a, PRECTL b, PRECTL c, PRECTL d)
|
---|
6359 | {
|
---|
6360 | BOOL yyrc;
|
---|
6361 | USHORT sel = GetFS();
|
---|
6362 |
|
---|
6363 | yyrc = WinSubtractRect(a, b, c, d);
|
---|
6364 | SetFS(sel);
|
---|
6365 |
|
---|
6366 | return yyrc;
|
---|
6367 | }
|
---|
6368 |
|
---|
6369 | #undef WinSubtractRect
|
---|
6370 | #define WinSubtractRect _WinSubtractRect
|
---|
6371 |
|
---|
6372 | inline BOOL _WinUnionRect(HAB a, PRECTL b, PRECTL c, PRECTL d)
|
---|
6373 | {
|
---|
6374 | BOOL yyrc;
|
---|
6375 | USHORT sel = GetFS();
|
---|
6376 |
|
---|
6377 | yyrc = WinUnionRect(a, b, c, d);
|
---|
6378 | SetFS(sel);
|
---|
6379 |
|
---|
6380 | return yyrc;
|
---|
6381 | }
|
---|
6382 |
|
---|
6383 | #undef WinUnionRect
|
---|
6384 | #define WinUnionRect _WinUnionRect
|
---|
6385 |
|
---|
6386 | #endif
|
---|
6387 | #ifdef INCL_WINSYS
|
---|
6388 | inline LONG _WinQueryControlColors(HWND a, LONG b, ULONG c, ULONG d, PCTLCOLOR e)
|
---|
6389 | {
|
---|
6390 | LONG yyrc;
|
---|
6391 | USHORT sel = GetFS();
|
---|
6392 |
|
---|
6393 | yyrc = WinQueryControlColors(a, b, c, d, e);
|
---|
6394 | SetFS(sel);
|
---|
6395 |
|
---|
6396 | return yyrc;
|
---|
6397 | }
|
---|
6398 |
|
---|
6399 | #undef WinQueryControlColors
|
---|
6400 | #define WinQueryControlColors _WinQueryControlColors
|
---|
6401 |
|
---|
6402 | inline ULONG _WinQueryPresParam(HWND a, ULONG b, ULONG c, PULONG d, ULONG e, PVOID f, ULONG g)
|
---|
6403 | {
|
---|
6404 | ULONG yyrc;
|
---|
6405 | USHORT sel = GetFS();
|
---|
6406 |
|
---|
6407 | yyrc = WinQueryPresParam(a, b, c, d, e, f, g);
|
---|
6408 | SetFS(sel);
|
---|
6409 |
|
---|
6410 | return yyrc;
|
---|
6411 | }
|
---|
6412 |
|
---|
6413 | #undef WinQueryPresParam
|
---|
6414 | #define WinQueryPresParam _WinQueryPresParam
|
---|
6415 |
|
---|
6416 | inline LONG _WinQuerySysColor(HWND a, LONG b, LONG c)
|
---|
6417 | {
|
---|
6418 | LONG yyrc;
|
---|
6419 | USHORT sel = GetFS();
|
---|
6420 |
|
---|
6421 | yyrc = WinQuerySysColor(a, b, c);
|
---|
6422 | SetFS(sel);
|
---|
6423 |
|
---|
6424 | return yyrc;
|
---|
6425 | }
|
---|
6426 |
|
---|
6427 | #undef WinQuerySysColor
|
---|
6428 | #define WinQuerySysColor _WinQuerySysColor
|
---|
6429 |
|
---|
6430 | inline LONG _WinQuerySysValue(HWND a, LONG b)
|
---|
6431 | {
|
---|
6432 | LONG yyrc;
|
---|
6433 | USHORT sel = GetFS();
|
---|
6434 |
|
---|
6435 | yyrc = WinQuerySysValue(a, b);
|
---|
6436 | SetFS(sel);
|
---|
6437 |
|
---|
6438 | return yyrc;
|
---|
6439 | }
|
---|
6440 |
|
---|
6441 | #undef WinQuerySysValue
|
---|
6442 | #define WinQuerySysValue _WinQuerySysValue
|
---|
6443 |
|
---|
6444 | inline BOOL _WinRemovePresParam(HWND a, ULONG b)
|
---|
6445 | {
|
---|
6446 | BOOL yyrc;
|
---|
6447 | USHORT sel = GetFS();
|
---|
6448 |
|
---|
6449 | yyrc = WinRemovePresParam(a, b);
|
---|
6450 | SetFS(sel);
|
---|
6451 |
|
---|
6452 | return yyrc;
|
---|
6453 | }
|
---|
6454 |
|
---|
6455 | #undef WinRemovePresParam
|
---|
6456 | #define WinRemovePresParam _WinRemovePresParam
|
---|
6457 |
|
---|
6458 | inline LONG _WinSetControlColors(HWND a, LONG b, ULONG c, ULONG d, PCTLCOLOR e)
|
---|
6459 | {
|
---|
6460 | LONG yyrc;
|
---|
6461 | USHORT sel = GetFS();
|
---|
6462 |
|
---|
6463 | yyrc = WinSetControlColors(a, b, c, d, e);
|
---|
6464 | SetFS(sel);
|
---|
6465 |
|
---|
6466 | return yyrc;
|
---|
6467 | }
|
---|
6468 |
|
---|
6469 | #undef WinSetControlColors
|
---|
6470 | #define WinSetControlColors _WinSetControlColors
|
---|
6471 |
|
---|
6472 | inline BOOL _WinSetPresParam(HWND a, ULONG b, ULONG c, PVOID d)
|
---|
6473 | {
|
---|
6474 | BOOL yyrc;
|
---|
6475 | USHORT sel = GetFS();
|
---|
6476 |
|
---|
6477 | yyrc = WinSetPresParam(a, b, c, d);
|
---|
6478 | SetFS(sel);
|
---|
6479 |
|
---|
6480 | return yyrc;
|
---|
6481 | }
|
---|
6482 |
|
---|
6483 | #undef WinSetPresParam
|
---|
6484 | #define WinSetPresParam _WinSetPresParam
|
---|
6485 |
|
---|
6486 | inline BOOL _WinSetSysColors(HWND a, ULONG b, ULONG c, LONG d, ULONG e, PLONG f)
|
---|
6487 | {
|
---|
6488 | BOOL yyrc;
|
---|
6489 | USHORT sel = GetFS();
|
---|
6490 |
|
---|
6491 | yyrc = WinSetSysColors(a, b, c, d, e, f);
|
---|
6492 | SetFS(sel);
|
---|
6493 |
|
---|
6494 | return yyrc;
|
---|
6495 | }
|
---|
6496 |
|
---|
6497 | #undef WinSetSysColors
|
---|
6498 | #define WinSetSysColors _WinSetSysColors
|
---|
6499 |
|
---|
6500 | inline BOOL _WinSetSysValue(HWND a, LONG b, LONG c)
|
---|
6501 | {
|
---|
6502 | BOOL yyrc;
|
---|
6503 | USHORT sel = GetFS();
|
---|
6504 |
|
---|
6505 | yyrc = WinSetSysValue(a, b, c);
|
---|
6506 | SetFS(sel);
|
---|
6507 |
|
---|
6508 | return yyrc;
|
---|
6509 | }
|
---|
6510 |
|
---|
6511 | #undef WinSetSysValue
|
---|
6512 | #define WinSetSysValue _WinSetSysValue
|
---|
6513 |
|
---|
6514 | #endif
|
---|
6515 | #ifdef INCL_WINTHUNKAPI
|
---|
6516 | inline PFN _WinQueryClassThunkProc(PCSZ a)
|
---|
6517 | {
|
---|
6518 | PFN yyrc;
|
---|
6519 | USHORT sel = GetFS();
|
---|
6520 |
|
---|
6521 | yyrc = WinQueryClassThunkProc(a);
|
---|
6522 | SetFS(sel);
|
---|
6523 |
|
---|
6524 | return yyrc;
|
---|
6525 | }
|
---|
6526 |
|
---|
6527 | #undef WinQueryClassThunkProc
|
---|
6528 | #define WinQueryClassThunkProc _WinQueryClassThunkProc
|
---|
6529 |
|
---|
6530 | inline LONG _WinQueryWindowModel(HWND a)
|
---|
6531 | {
|
---|
6532 | LONG yyrc;
|
---|
6533 | USHORT sel = GetFS();
|
---|
6534 |
|
---|
6535 | yyrc = WinQueryWindowModel(a);
|
---|
6536 | SetFS(sel);
|
---|
6537 |
|
---|
6538 | return yyrc;
|
---|
6539 | }
|
---|
6540 |
|
---|
6541 | #undef WinQueryWindowModel
|
---|
6542 | #define WinQueryWindowModel _WinQueryWindowModel
|
---|
6543 |
|
---|
6544 | inline PFN _WinQueryWindowThunkProc(HWND a)
|
---|
6545 | {
|
---|
6546 | PFN yyrc;
|
---|
6547 | USHORT sel = GetFS();
|
---|
6548 |
|
---|
6549 | yyrc = WinQueryWindowThunkProc(a);
|
---|
6550 | SetFS(sel);
|
---|
6551 |
|
---|
6552 | return yyrc;
|
---|
6553 | }
|
---|
6554 |
|
---|
6555 | #undef WinQueryWindowThunkProc
|
---|
6556 | #define WinQueryWindowThunkProc _WinQueryWindowThunkProc
|
---|
6557 |
|
---|
6558 | inline BOOL _WinSetClassThunkProc(PCSZ a, PFN b)
|
---|
6559 | {
|
---|
6560 | BOOL yyrc;
|
---|
6561 | USHORT sel = GetFS();
|
---|
6562 |
|
---|
6563 | yyrc = WinSetClassThunkProc(a, b);
|
---|
6564 | SetFS(sel);
|
---|
6565 |
|
---|
6566 | return yyrc;
|
---|
6567 | }
|
---|
6568 |
|
---|
6569 | #undef WinSetClassThunkProc
|
---|
6570 | #define WinSetClassThunkProc _WinSetClassThunkProc
|
---|
6571 |
|
---|
6572 | inline BOOL _WinSetWindowThunkProc(HWND a, PFN b)
|
---|
6573 | {
|
---|
6574 | BOOL yyrc;
|
---|
6575 | USHORT sel = GetFS();
|
---|
6576 |
|
---|
6577 | yyrc = WinSetWindowThunkProc(a, b);
|
---|
6578 | SetFS(sel);
|
---|
6579 |
|
---|
6580 | return yyrc;
|
---|
6581 | }
|
---|
6582 |
|
---|
6583 | #undef WinSetWindowThunkProc
|
---|
6584 | #define WinSetWindowThunkProc _WinSetWindowThunkProc
|
---|
6585 |
|
---|
6586 | #endif
|
---|
6587 | #ifdef INCL_WINTIMER
|
---|
6588 | inline ULONG _WinGetCurrentTime(HAB a)
|
---|
6589 | {
|
---|
6590 | ULONG yyrc;
|
---|
6591 | USHORT sel = GetFS();
|
---|
6592 |
|
---|
6593 | yyrc = WinGetCurrentTime(a);
|
---|
6594 | SetFS(sel);
|
---|
6595 |
|
---|
6596 | return yyrc;
|
---|
6597 | }
|
---|
6598 |
|
---|
6599 | #undef WinGetCurrentTime
|
---|
6600 | #define WinGetCurrentTime _WinGetCurrentTime
|
---|
6601 |
|
---|
6602 | inline ULONG _WinStartTimer(HAB a, HWND b, ULONG c, ULONG d)
|
---|
6603 | {
|
---|
6604 | ULONG yyrc;
|
---|
6605 | USHORT sel = GetFS();
|
---|
6606 |
|
---|
6607 | yyrc = WinStartTimer(a, b, c, d);
|
---|
6608 | SetFS(sel);
|
---|
6609 |
|
---|
6610 | return yyrc;
|
---|
6611 | }
|
---|
6612 |
|
---|
6613 | #undef WinStartTimer
|
---|
6614 | #define WinStartTimer _WinStartTimer
|
---|
6615 |
|
---|
6616 | inline BOOL _WinStopTimer(HAB a, HWND b, ULONG c)
|
---|
6617 | {
|
---|
6618 | BOOL yyrc;
|
---|
6619 | USHORT sel = GetFS();
|
---|
6620 |
|
---|
6621 | yyrc = WinStopTimer(a, b, c);
|
---|
6622 | SetFS(sel);
|
---|
6623 |
|
---|
6624 | return yyrc;
|
---|
6625 | }
|
---|
6626 |
|
---|
6627 | #undef WinStopTimer
|
---|
6628 | #define WinStopTimer _WinStopTimer
|
---|
6629 |
|
---|
6630 | #endif
|
---|
6631 | #ifdef INCL_WINTRACKRECT
|
---|
6632 | inline BOOL _WinShowTrackRect(HWND a, BOOL b)
|
---|
6633 | {
|
---|
6634 | BOOL yyrc;
|
---|
6635 | USHORT sel = GetFS();
|
---|
6636 |
|
---|
6637 | yyrc = WinShowTrackRect(a, b);
|
---|
6638 | SetFS(sel);
|
---|
6639 |
|
---|
6640 | return yyrc;
|
---|
6641 | }
|
---|
6642 |
|
---|
6643 | #undef WinShowTrackRect
|
---|
6644 | #define WinShowTrackRect _WinShowTrackRect
|
---|
6645 |
|
---|
6646 | inline BOOL _WinTrackRect(HWND a, HPS b, PTRACKINFO c)
|
---|
6647 | {
|
---|
6648 | BOOL yyrc;
|
---|
6649 | USHORT sel = GetFS();
|
---|
6650 |
|
---|
6651 | yyrc = WinTrackRect(a, b, c);
|
---|
6652 | SetFS(sel);
|
---|
6653 |
|
---|
6654 | return yyrc;
|
---|
6655 | }
|
---|
6656 |
|
---|
6657 | #undef WinTrackRect
|
---|
6658 | #define WinTrackRect _WinTrackRect
|
---|
6659 |
|
---|
6660 | #endif
|
---|
6661 | #endif
|
---|
6662 | #ifdef INCL_GPI
|
---|
6663 | inline LONG _GpiAnimatePalette(HPAL a, ULONG b, ULONG c, ULONG d, PULONG e)
|
---|
6664 | {
|
---|
6665 | LONG yyrc;
|
---|
6666 | USHORT sel = GetFS();
|
---|
6667 |
|
---|
6668 | yyrc = GpiAnimatePalette(a, b, c, d, e);
|
---|
6669 | SetFS(sel);
|
---|
6670 |
|
---|
6671 | return yyrc;
|
---|
6672 | }
|
---|
6673 |
|
---|
6674 | #undef GpiAnimatePalette
|
---|
6675 | #define GpiAnimatePalette _GpiAnimatePalette
|
---|
6676 |
|
---|
6677 | inline BOOL _GpiBeginArea(HPS a, ULONG b)
|
---|
6678 | {
|
---|
6679 | BOOL yyrc;
|
---|
6680 | USHORT sel = GetFS();
|
---|
6681 |
|
---|
6682 | yyrc = GpiBeginArea(a, b);
|
---|
6683 | SetFS(sel);
|
---|
6684 |
|
---|
6685 | return yyrc;
|
---|
6686 | }
|
---|
6687 |
|
---|
6688 | #undef GpiBeginArea
|
---|
6689 | #define GpiBeginArea _GpiBeginArea
|
---|
6690 |
|
---|
6691 | inline BOOL _GpiBeginElement(HPS a, LONG b, PCSZ c)
|
---|
6692 | {
|
---|
6693 | BOOL yyrc;
|
---|
6694 | USHORT sel = GetFS();
|
---|
6695 |
|
---|
6696 | yyrc = GpiBeginElement(a, b, c);
|
---|
6697 | SetFS(sel);
|
---|
6698 |
|
---|
6699 | return yyrc;
|
---|
6700 | }
|
---|
6701 |
|
---|
6702 | #undef GpiBeginElement
|
---|
6703 | #define GpiBeginElement _GpiBeginElement
|
---|
6704 |
|
---|
6705 | inline BOOL _GpiBeginPath(HPS a, LONG b)
|
---|
6706 | {
|
---|
6707 | BOOL yyrc;
|
---|
6708 | USHORT sel = GetFS();
|
---|
6709 |
|
---|
6710 | yyrc = GpiBeginPath(a, b);
|
---|
6711 | SetFS(sel);
|
---|
6712 |
|
---|
6713 | return yyrc;
|
---|
6714 | }
|
---|
6715 |
|
---|
6716 | #undef GpiBeginPath
|
---|
6717 | #define GpiBeginPath _GpiBeginPath
|
---|
6718 |
|
---|
6719 | inline LONG _GpiBox(HPS a, LONG b, PPOINTL c, LONG d, LONG e)
|
---|
6720 | {
|
---|
6721 | LONG yyrc;
|
---|
6722 | USHORT sel = GetFS();
|
---|
6723 |
|
---|
6724 | yyrc = GpiBox(a, b, c, d, e);
|
---|
6725 | SetFS(sel);
|
---|
6726 |
|
---|
6727 | return yyrc;
|
---|
6728 | }
|
---|
6729 |
|
---|
6730 | #undef GpiBox
|
---|
6731 | #define GpiBox _GpiBox
|
---|
6732 |
|
---|
6733 | inline LONG _GpiCallSegmentMatrix(HPS a, LONG b, LONG c, PMATRIXLF d, LONG e)
|
---|
6734 | {
|
---|
6735 | LONG yyrc;
|
---|
6736 | USHORT sel = GetFS();
|
---|
6737 |
|
---|
6738 | yyrc = GpiCallSegmentMatrix(a, b, c, d, e);
|
---|
6739 | SetFS(sel);
|
---|
6740 |
|
---|
6741 | return yyrc;
|
---|
6742 | }
|
---|
6743 |
|
---|
6744 | #undef GpiCallSegmentMatrix
|
---|
6745 | #define GpiCallSegmentMatrix _GpiCallSegmentMatrix
|
---|
6746 |
|
---|
6747 | inline LONG _GpiCharString(HPS a, LONG b, PCH c)
|
---|
6748 | {
|
---|
6749 | LONG yyrc;
|
---|
6750 | USHORT sel = GetFS();
|
---|
6751 |
|
---|
6752 | yyrc = GpiCharString(a, b, c);
|
---|
6753 | SetFS(sel);
|
---|
6754 |
|
---|
6755 | return yyrc;
|
---|
6756 | }
|
---|
6757 |
|
---|
6758 | #undef GpiCharString
|
---|
6759 | #define GpiCharString _GpiCharString
|
---|
6760 |
|
---|
6761 | inline LONG _GpiCharStringAt(HPS a, PPOINTL b, LONG c, PCH d)
|
---|
6762 | {
|
---|
6763 | LONG yyrc;
|
---|
6764 | USHORT sel = GetFS();
|
---|
6765 |
|
---|
6766 | yyrc = GpiCharStringAt(a, b, c, d);
|
---|
6767 | SetFS(sel);
|
---|
6768 |
|
---|
6769 | return yyrc;
|
---|
6770 | }
|
---|
6771 |
|
---|
6772 | #undef GpiCharStringAt
|
---|
6773 | #define GpiCharStringAt _GpiCharStringAt
|
---|
6774 |
|
---|
6775 | inline LONG _GpiCharStringPos(HPS a, PRECTL b, ULONG c, LONG d, PCH e, PLONG f)
|
---|
6776 | {
|
---|
6777 | LONG yyrc;
|
---|
6778 | USHORT sel = GetFS();
|
---|
6779 |
|
---|
6780 | yyrc = GpiCharStringPos(a, b, c, d, e, f);
|
---|
6781 | SetFS(sel);
|
---|
6782 |
|
---|
6783 | return yyrc;
|
---|
6784 | }
|
---|
6785 |
|
---|
6786 | #undef GpiCharStringPos
|
---|
6787 | #define GpiCharStringPos _GpiCharStringPos
|
---|
6788 |
|
---|
6789 | inline LONG _GpiCharStringPosAt(HPS a, PPOINTL b, PRECTL c, ULONG d, LONG e, PCH f, PLONG g)
|
---|
6790 | {
|
---|
6791 | LONG yyrc;
|
---|
6792 | USHORT sel = GetFS();
|
---|
6793 |
|
---|
6794 | yyrc = GpiCharStringPosAt(a, b, c, d, e, f, g);
|
---|
6795 | SetFS(sel);
|
---|
6796 |
|
---|
6797 | return yyrc;
|
---|
6798 | }
|
---|
6799 |
|
---|
6800 | #undef GpiCharStringPosAt
|
---|
6801 | #define GpiCharStringPosAt _GpiCharStringPosAt
|
---|
6802 |
|
---|
6803 | inline BOOL _GpiCloseFigure(HPS a)
|
---|
6804 | {
|
---|
6805 | BOOL yyrc;
|
---|
6806 | USHORT sel = GetFS();
|
---|
6807 |
|
---|
6808 | yyrc = GpiCloseFigure(a);
|
---|
6809 | SetFS(sel);
|
---|
6810 |
|
---|
6811 | return yyrc;
|
---|
6812 | }
|
---|
6813 |
|
---|
6814 | #undef GpiCloseFigure
|
---|
6815 | #define GpiCloseFigure _GpiCloseFigure
|
---|
6816 |
|
---|
6817 | inline LONG _GpiCombineRegion(HPS a, HRGN b, HRGN c, HRGN d, LONG e)
|
---|
6818 | {
|
---|
6819 | LONG yyrc;
|
---|
6820 | USHORT sel = GetFS();
|
---|
6821 |
|
---|
6822 | yyrc = GpiCombineRegion(a, b, c, d, e);
|
---|
6823 | SetFS(sel);
|
---|
6824 |
|
---|
6825 | return yyrc;
|
---|
6826 | }
|
---|
6827 |
|
---|
6828 | #undef GpiCombineRegion
|
---|
6829 | #define GpiCombineRegion _GpiCombineRegion
|
---|
6830 |
|
---|
6831 | inline BOOL _GpiComment(HPS a, LONG b, PBYTE c)
|
---|
6832 | {
|
---|
6833 | BOOL yyrc;
|
---|
6834 | USHORT sel = GetFS();
|
---|
6835 |
|
---|
6836 | yyrc = GpiComment(a, b, c);
|
---|
6837 | SetFS(sel);
|
---|
6838 |
|
---|
6839 | return yyrc;
|
---|
6840 | }
|
---|
6841 |
|
---|
6842 | #undef GpiComment
|
---|
6843 | #define GpiComment _GpiComment
|
---|
6844 |
|
---|
6845 | inline BOOL _GpiConvert(HPS a, LONG b, LONG c, LONG d, PPOINTL e)
|
---|
6846 | {
|
---|
6847 | BOOL yyrc;
|
---|
6848 | USHORT sel = GetFS();
|
---|
6849 |
|
---|
6850 | yyrc = GpiConvert(a, b, c, d, e);
|
---|
6851 | SetFS(sel);
|
---|
6852 |
|
---|
6853 | return yyrc;
|
---|
6854 | }
|
---|
6855 |
|
---|
6856 | #undef GpiConvert
|
---|
6857 | #define GpiConvert _GpiConvert
|
---|
6858 |
|
---|
6859 | inline BOOL _GpiConvertWithMatrix(HPS a, LONG b, PPOINTL c, LONG d, PMATRIXLF e)
|
---|
6860 | {
|
---|
6861 | BOOL yyrc;
|
---|
6862 | USHORT sel = GetFS();
|
---|
6863 |
|
---|
6864 | yyrc = GpiConvertWithMatrix(a, b, c, d, e);
|
---|
6865 | SetFS(sel);
|
---|
6866 |
|
---|
6867 | return yyrc;
|
---|
6868 | }
|
---|
6869 |
|
---|
6870 | #undef GpiConvertWithMatrix
|
---|
6871 | #define GpiConvertWithMatrix _GpiConvertWithMatrix
|
---|
6872 |
|
---|
6873 | inline HMF _GpiCopyMetaFile(HMF a)
|
---|
6874 | {
|
---|
6875 | HMF yyrc;
|
---|
6876 | USHORT sel = GetFS();
|
---|
6877 |
|
---|
6878 | yyrc = GpiCopyMetaFile(a);
|
---|
6879 | SetFS(sel);
|
---|
6880 |
|
---|
6881 | return yyrc;
|
---|
6882 | }
|
---|
6883 |
|
---|
6884 | #undef GpiCopyMetaFile
|
---|
6885 | #define GpiCopyMetaFile _GpiCopyMetaFile
|
---|
6886 |
|
---|
6887 | inline BOOL _GpiCreateLogColorTable(HPS a, ULONG b, LONG c, LONG d, LONG e, PLONG f)
|
---|
6888 | {
|
---|
6889 | BOOL yyrc;
|
---|
6890 | USHORT sel = GetFS();
|
---|
6891 |
|
---|
6892 | yyrc = GpiCreateLogColorTable(a, b, c, d, e, f);
|
---|
6893 | SetFS(sel);
|
---|
6894 |
|
---|
6895 | return yyrc;
|
---|
6896 | }
|
---|
6897 |
|
---|
6898 | #undef GpiCreateLogColorTable
|
---|
6899 | #define GpiCreateLogColorTable _GpiCreateLogColorTable
|
---|
6900 |
|
---|
6901 | inline LONG _GpiCreateLogFont(HPS a, STR8 *b, LONG c, PFATTRS d)
|
---|
6902 | {
|
---|
6903 | LONG yyrc;
|
---|
6904 | USHORT sel = GetFS();
|
---|
6905 |
|
---|
6906 | yyrc = GpiCreateLogFont(a, b, c, d);
|
---|
6907 | SetFS(sel);
|
---|
6908 |
|
---|
6909 | return yyrc;
|
---|
6910 | }
|
---|
6911 |
|
---|
6912 | #undef GpiCreateLogFont
|
---|
6913 | #define GpiCreateLogFont _GpiCreateLogFont
|
---|
6914 |
|
---|
6915 | inline HPAL _GpiCreatePalette(HAB a, ULONG b, ULONG c, ULONG d, PULONG e)
|
---|
6916 | {
|
---|
6917 | HPAL yyrc;
|
---|
6918 | USHORT sel = GetFS();
|
---|
6919 |
|
---|
6920 | yyrc = GpiCreatePalette(a, b, c, d, e);
|
---|
6921 | SetFS(sel);
|
---|
6922 |
|
---|
6923 | return yyrc;
|
---|
6924 | }
|
---|
6925 |
|
---|
6926 | #undef GpiCreatePalette
|
---|
6927 | #define GpiCreatePalette _GpiCreatePalette
|
---|
6928 |
|
---|
6929 | inline HRGN _GpiCreateRegion(HPS a, LONG b, PRECTL c)
|
---|
6930 | {
|
---|
6931 | HRGN yyrc;
|
---|
6932 | USHORT sel = GetFS();
|
---|
6933 |
|
---|
6934 | yyrc = GpiCreateRegion(a, b, c);
|
---|
6935 | SetFS(sel);
|
---|
6936 |
|
---|
6937 | return yyrc;
|
---|
6938 | }
|
---|
6939 |
|
---|
6940 | #undef GpiCreateRegion
|
---|
6941 | #define GpiCreateRegion _GpiCreateRegion
|
---|
6942 |
|
---|
6943 | inline BOOL _GpiDeleteElement(HPS a)
|
---|
6944 | {
|
---|
6945 | BOOL yyrc;
|
---|
6946 | USHORT sel = GetFS();
|
---|
6947 |
|
---|
6948 | yyrc = GpiDeleteElement(a);
|
---|
6949 | SetFS(sel);
|
---|
6950 |
|
---|
6951 | return yyrc;
|
---|
6952 | }
|
---|
6953 |
|
---|
6954 | #undef GpiDeleteElement
|
---|
6955 | #define GpiDeleteElement _GpiDeleteElement
|
---|
6956 |
|
---|
6957 | inline BOOL _GpiDeleteElementRange(HPS a, LONG b, LONG c)
|
---|
6958 | {
|
---|
6959 | BOOL yyrc;
|
---|
6960 | USHORT sel = GetFS();
|
---|
6961 |
|
---|
6962 | yyrc = GpiDeleteElementRange(a, b, c);
|
---|
6963 | SetFS(sel);
|
---|
6964 |
|
---|
6965 | return yyrc;
|
---|
6966 | }
|
---|
6967 |
|
---|
6968 | #undef GpiDeleteElementRange
|
---|
6969 | #define GpiDeleteElementRange _GpiDeleteElementRange
|
---|
6970 |
|
---|
6971 | inline BOOL _GpiDeleteElementsBetweenLabels(HPS a, LONG b, LONG c)
|
---|
6972 | {
|
---|
6973 | BOOL yyrc;
|
---|
6974 | USHORT sel = GetFS();
|
---|
6975 |
|
---|
6976 | yyrc = GpiDeleteElementsBetweenLabels(a, b, c);
|
---|
6977 | SetFS(sel);
|
---|
6978 |
|
---|
6979 | return yyrc;
|
---|
6980 | }
|
---|
6981 |
|
---|
6982 | #undef GpiDeleteElementsBetweenLabels
|
---|
6983 | #define GpiDeleteElementsBetweenLabels _GpiDeleteElementsBetweenLabels
|
---|
6984 |
|
---|
6985 | inline BOOL _GpiDeleteMetaFile(HMF a)
|
---|
6986 | {
|
---|
6987 | BOOL yyrc;
|
---|
6988 | USHORT sel = GetFS();
|
---|
6989 |
|
---|
6990 | yyrc = GpiDeleteMetaFile(a);
|
---|
6991 | SetFS(sel);
|
---|
6992 |
|
---|
6993 | return yyrc;
|
---|
6994 | }
|
---|
6995 |
|
---|
6996 | #undef GpiDeleteMetaFile
|
---|
6997 | #define GpiDeleteMetaFile _GpiDeleteMetaFile
|
---|
6998 |
|
---|
6999 | inline BOOL _GpiDeletePalette(HPAL a)
|
---|
7000 | {
|
---|
7001 | BOOL yyrc;
|
---|
7002 | USHORT sel = GetFS();
|
---|
7003 |
|
---|
7004 | yyrc = GpiDeletePalette(a);
|
---|
7005 | SetFS(sel);
|
---|
7006 |
|
---|
7007 | return yyrc;
|
---|
7008 | }
|
---|
7009 |
|
---|
7010 | #undef GpiDeletePalette
|
---|
7011 | #define GpiDeletePalette _GpiDeletePalette
|
---|
7012 |
|
---|
7013 | inline BOOL _GpiDeleteSetId(HPS a, LONG b)
|
---|
7014 | {
|
---|
7015 | BOOL yyrc;
|
---|
7016 | USHORT sel = GetFS();
|
---|
7017 |
|
---|
7018 | yyrc = GpiDeleteSetId(a, b);
|
---|
7019 | SetFS(sel);
|
---|
7020 |
|
---|
7021 | return yyrc;
|
---|
7022 | }
|
---|
7023 |
|
---|
7024 | #undef GpiDeleteSetId
|
---|
7025 | #define GpiDeleteSetId _GpiDeleteSetId
|
---|
7026 |
|
---|
7027 | inline BOOL _GpiDestroyRegion(HPS a, HRGN b)
|
---|
7028 | {
|
---|
7029 | BOOL yyrc;
|
---|
7030 | USHORT sel = GetFS();
|
---|
7031 |
|
---|
7032 | yyrc = GpiDestroyRegion(a, b);
|
---|
7033 | SetFS(sel);
|
---|
7034 |
|
---|
7035 | return yyrc;
|
---|
7036 | }
|
---|
7037 |
|
---|
7038 | #undef GpiDestroyRegion
|
---|
7039 | #define GpiDestroyRegion _GpiDestroyRegion
|
---|
7040 |
|
---|
7041 | inline LONG _GpiElement(HPS a, LONG b, PCSZ c, LONG d, PBYTE e)
|
---|
7042 | {
|
---|
7043 | LONG yyrc;
|
---|
7044 | USHORT sel = GetFS();
|
---|
7045 |
|
---|
7046 | yyrc = GpiElement(a, b, c, d, e);
|
---|
7047 | SetFS(sel);
|
---|
7048 |
|
---|
7049 | return yyrc;
|
---|
7050 | }
|
---|
7051 |
|
---|
7052 | #undef GpiElement
|
---|
7053 | #define GpiElement _GpiElement
|
---|
7054 |
|
---|
7055 | inline LONG _GpiEndArea(HPS a)
|
---|
7056 | {
|
---|
7057 | LONG yyrc;
|
---|
7058 | USHORT sel = GetFS();
|
---|
7059 |
|
---|
7060 | yyrc = GpiEndArea(a);
|
---|
7061 | SetFS(sel);
|
---|
7062 |
|
---|
7063 | return yyrc;
|
---|
7064 | }
|
---|
7065 |
|
---|
7066 | #undef GpiEndArea
|
---|
7067 | #define GpiEndArea _GpiEndArea
|
---|
7068 |
|
---|
7069 | inline BOOL _GpiEndElement(HPS a)
|
---|
7070 | {
|
---|
7071 | BOOL yyrc;
|
---|
7072 | USHORT sel = GetFS();
|
---|
7073 |
|
---|
7074 | yyrc = GpiEndElement(a);
|
---|
7075 | SetFS(sel);
|
---|
7076 |
|
---|
7077 | return yyrc;
|
---|
7078 | }
|
---|
7079 |
|
---|
7080 | #undef GpiEndElement
|
---|
7081 | #define GpiEndElement _GpiEndElement
|
---|
7082 |
|
---|
7083 | inline BOOL _GpiEndPath(HPS a)
|
---|
7084 | {
|
---|
7085 | BOOL yyrc;
|
---|
7086 | USHORT sel = GetFS();
|
---|
7087 |
|
---|
7088 | yyrc = GpiEndPath(a);
|
---|
7089 | SetFS(sel);
|
---|
7090 |
|
---|
7091 | return yyrc;
|
---|
7092 | }
|
---|
7093 |
|
---|
7094 | #undef GpiEndPath
|
---|
7095 | #define GpiEndPath _GpiEndPath
|
---|
7096 |
|
---|
7097 | inline LONG _GpiEqualRegion(HPS a, HRGN b, HRGN c)
|
---|
7098 | {
|
---|
7099 | LONG yyrc;
|
---|
7100 | USHORT sel = GetFS();
|
---|
7101 |
|
---|
7102 | yyrc = GpiEqualRegion(a, b, c);
|
---|
7103 | SetFS(sel);
|
---|
7104 |
|
---|
7105 | return yyrc;
|
---|
7106 | }
|
---|
7107 |
|
---|
7108 | #undef GpiEqualRegion
|
---|
7109 | #define GpiEqualRegion _GpiEqualRegion
|
---|
7110 |
|
---|
7111 | inline LONG _GpiExcludeClipRectangle(HPS a, PRECTL b)
|
---|
7112 | {
|
---|
7113 | LONG yyrc;
|
---|
7114 | USHORT sel = GetFS();
|
---|
7115 |
|
---|
7116 | yyrc = GpiExcludeClipRectangle(a, b);
|
---|
7117 | SetFS(sel);
|
---|
7118 |
|
---|
7119 | return yyrc;
|
---|
7120 | }
|
---|
7121 |
|
---|
7122 | #undef GpiExcludeClipRectangle
|
---|
7123 | #define GpiExcludeClipRectangle _GpiExcludeClipRectangle
|
---|
7124 |
|
---|
7125 | inline LONG _GpiFillPath(HPS a, LONG b, LONG c)
|
---|
7126 | {
|
---|
7127 | LONG yyrc;
|
---|
7128 | USHORT sel = GetFS();
|
---|
7129 |
|
---|
7130 | yyrc = GpiFillPath(a, b, c);
|
---|
7131 | SetFS(sel);
|
---|
7132 |
|
---|
7133 | return yyrc;
|
---|
7134 | }
|
---|
7135 |
|
---|
7136 | #undef GpiFillPath
|
---|
7137 | #define GpiFillPath _GpiFillPath
|
---|
7138 |
|
---|
7139 | inline LONG _GpiFrameRegion(HPS a, HRGN b, PSIZEL c)
|
---|
7140 | {
|
---|
7141 | LONG yyrc;
|
---|
7142 | USHORT sel = GetFS();
|
---|
7143 |
|
---|
7144 | yyrc = GpiFrameRegion(a, b, c);
|
---|
7145 | SetFS(sel);
|
---|
7146 |
|
---|
7147 | return yyrc;
|
---|
7148 | }
|
---|
7149 |
|
---|
7150 | #undef GpiFrameRegion
|
---|
7151 | #define GpiFrameRegion _GpiFrameRegion
|
---|
7152 |
|
---|
7153 | inline LONG _GpiFullArc(HPS a, LONG b, FIXED c)
|
---|
7154 | {
|
---|
7155 | LONG yyrc;
|
---|
7156 | USHORT sel = GetFS();
|
---|
7157 |
|
---|
7158 | yyrc = GpiFullArc(a, b, c);
|
---|
7159 | SetFS(sel);
|
---|
7160 |
|
---|
7161 | return yyrc;
|
---|
7162 | }
|
---|
7163 |
|
---|
7164 | #undef GpiFullArc
|
---|
7165 | #define GpiFullArc _GpiFullArc
|
---|
7166 |
|
---|
7167 | inline LONG _GpiImage(HPS a, LONG b, PSIZEL c, LONG d, PBYTE e)
|
---|
7168 | {
|
---|
7169 | LONG yyrc;
|
---|
7170 | USHORT sel = GetFS();
|
---|
7171 |
|
---|
7172 | yyrc = GpiImage(a, b, c, d, e);
|
---|
7173 | SetFS(sel);
|
---|
7174 |
|
---|
7175 | return yyrc;
|
---|
7176 | }
|
---|
7177 |
|
---|
7178 | #undef GpiImage
|
---|
7179 | #define GpiImage _GpiImage
|
---|
7180 |
|
---|
7181 | inline LONG _GpiIntersectClipRectangle(HPS a, PRECTL b)
|
---|
7182 | {
|
---|
7183 | LONG yyrc;
|
---|
7184 | USHORT sel = GetFS();
|
---|
7185 |
|
---|
7186 | yyrc = GpiIntersectClipRectangle(a, b);
|
---|
7187 | SetFS(sel);
|
---|
7188 |
|
---|
7189 | return yyrc;
|
---|
7190 | }
|
---|
7191 |
|
---|
7192 | #undef GpiIntersectClipRectangle
|
---|
7193 | #define GpiIntersectClipRectangle _GpiIntersectClipRectangle
|
---|
7194 |
|
---|
7195 | inline BOOL _GpiLabel(HPS a, LONG b)
|
---|
7196 | {
|
---|
7197 | BOOL yyrc;
|
---|
7198 | USHORT sel = GetFS();
|
---|
7199 |
|
---|
7200 | yyrc = GpiLabel(a, b);
|
---|
7201 | SetFS(sel);
|
---|
7202 |
|
---|
7203 | return yyrc;
|
---|
7204 | }
|
---|
7205 |
|
---|
7206 | #undef GpiLabel
|
---|
7207 | #define GpiLabel _GpiLabel
|
---|
7208 |
|
---|
7209 | inline LONG _GpiLine(HPS a, PPOINTL b)
|
---|
7210 | {
|
---|
7211 | LONG yyrc;
|
---|
7212 | USHORT sel = GetFS();
|
---|
7213 |
|
---|
7214 | yyrc = GpiLine(a, b);
|
---|
7215 | SetFS(sel);
|
---|
7216 |
|
---|
7217 | return yyrc;
|
---|
7218 | }
|
---|
7219 |
|
---|
7220 | #undef GpiLine
|
---|
7221 | #define GpiLine _GpiLine
|
---|
7222 |
|
---|
7223 | inline BOOL _GpiLoadFonts(HAB a, PCSZ b)
|
---|
7224 | {
|
---|
7225 | BOOL yyrc;
|
---|
7226 | USHORT sel = GetFS();
|
---|
7227 |
|
---|
7228 | yyrc = GpiLoadFonts(a, b);
|
---|
7229 | SetFS(sel);
|
---|
7230 |
|
---|
7231 | return yyrc;
|
---|
7232 | }
|
---|
7233 |
|
---|
7234 | #undef GpiLoadFonts
|
---|
7235 | #define GpiLoadFonts _GpiLoadFonts
|
---|
7236 |
|
---|
7237 | inline HMF _GpiLoadMetaFile(HAB a, PCSZ b)
|
---|
7238 | {
|
---|
7239 | HMF yyrc;
|
---|
7240 | USHORT sel = GetFS();
|
---|
7241 |
|
---|
7242 | yyrc = GpiLoadMetaFile(a, b);
|
---|
7243 | SetFS(sel);
|
---|
7244 |
|
---|
7245 | return yyrc;
|
---|
7246 | }
|
---|
7247 |
|
---|
7248 | #undef GpiLoadMetaFile
|
---|
7249 | #define GpiLoadMetaFile _GpiLoadMetaFile
|
---|
7250 |
|
---|
7251 | inline BOOL _GpiLoadPublicFonts(HAB a, PCSZ b)
|
---|
7252 | {
|
---|
7253 | BOOL yyrc;
|
---|
7254 | USHORT sel = GetFS();
|
---|
7255 |
|
---|
7256 | yyrc = GpiLoadPublicFonts(a, b);
|
---|
7257 | SetFS(sel);
|
---|
7258 |
|
---|
7259 | return yyrc;
|
---|
7260 | }
|
---|
7261 |
|
---|
7262 | #undef GpiLoadPublicFonts
|
---|
7263 | #define GpiLoadPublicFonts _GpiLoadPublicFonts
|
---|
7264 |
|
---|
7265 | inline LONG _GpiMarker(HPS a, PPOINTL b)
|
---|
7266 | {
|
---|
7267 | LONG yyrc;
|
---|
7268 | USHORT sel = GetFS();
|
---|
7269 |
|
---|
7270 | yyrc = GpiMarker(a, b);
|
---|
7271 | SetFS(sel);
|
---|
7272 |
|
---|
7273 | return yyrc;
|
---|
7274 | }
|
---|
7275 |
|
---|
7276 | #undef GpiMarker
|
---|
7277 | #define GpiMarker _GpiMarker
|
---|
7278 |
|
---|
7279 | inline BOOL _GpiModifyPath(HPS a, LONG b, LONG c)
|
---|
7280 | {
|
---|
7281 | BOOL yyrc;
|
---|
7282 | USHORT sel = GetFS();
|
---|
7283 |
|
---|
7284 | yyrc = GpiModifyPath(a, b, c);
|
---|
7285 | SetFS(sel);
|
---|
7286 |
|
---|
7287 | return yyrc;
|
---|
7288 | }
|
---|
7289 |
|
---|
7290 | #undef GpiModifyPath
|
---|
7291 | #define GpiModifyPath _GpiModifyPath
|
---|
7292 |
|
---|
7293 | inline BOOL _GpiMove(HPS a, PPOINTL b)
|
---|
7294 | {
|
---|
7295 | BOOL yyrc;
|
---|
7296 | USHORT sel = GetFS();
|
---|
7297 |
|
---|
7298 | yyrc = GpiMove(a, b);
|
---|
7299 | SetFS(sel);
|
---|
7300 |
|
---|
7301 | return yyrc;
|
---|
7302 | }
|
---|
7303 |
|
---|
7304 | #undef GpiMove
|
---|
7305 | #define GpiMove _GpiMove
|
---|
7306 |
|
---|
7307 | inline LONG _GpiOffsetClipRegion(HPS a, PPOINTL b)
|
---|
7308 | {
|
---|
7309 | LONG yyrc;
|
---|
7310 | USHORT sel = GetFS();
|
---|
7311 |
|
---|
7312 | yyrc = GpiOffsetClipRegion(a, b);
|
---|
7313 | SetFS(sel);
|
---|
7314 |
|
---|
7315 | return yyrc;
|
---|
7316 | }
|
---|
7317 |
|
---|
7318 | #undef GpiOffsetClipRegion
|
---|
7319 | #define GpiOffsetClipRegion _GpiOffsetClipRegion
|
---|
7320 |
|
---|
7321 | inline BOOL _GpiOffsetElementPointer(HPS a, LONG b)
|
---|
7322 | {
|
---|
7323 | BOOL yyrc;
|
---|
7324 | USHORT sel = GetFS();
|
---|
7325 |
|
---|
7326 | yyrc = GpiOffsetElementPointer(a, b);
|
---|
7327 | SetFS(sel);
|
---|
7328 |
|
---|
7329 | return yyrc;
|
---|
7330 | }
|
---|
7331 |
|
---|
7332 | #undef GpiOffsetElementPointer
|
---|
7333 | #define GpiOffsetElementPointer _GpiOffsetElementPointer
|
---|
7334 |
|
---|
7335 | inline BOOL _GpiOffsetRegion(HPS a, HRGN b, PPOINTL c)
|
---|
7336 | {
|
---|
7337 | BOOL yyrc;
|
---|
7338 | USHORT sel = GetFS();
|
---|
7339 |
|
---|
7340 | yyrc = GpiOffsetRegion(a, b, c);
|
---|
7341 | SetFS(sel);
|
---|
7342 |
|
---|
7343 | return yyrc;
|
---|
7344 | }
|
---|
7345 |
|
---|
7346 | #undef GpiOffsetRegion
|
---|
7347 | #define GpiOffsetRegion _GpiOffsetRegion
|
---|
7348 |
|
---|
7349 | inline LONG _GpiOutlinePath(HPS a, LONG b, LONG c)
|
---|
7350 | {
|
---|
7351 | LONG yyrc;
|
---|
7352 | USHORT sel = GetFS();
|
---|
7353 |
|
---|
7354 | yyrc = GpiOutlinePath(a, b, c);
|
---|
7355 | SetFS(sel);
|
---|
7356 |
|
---|
7357 | return yyrc;
|
---|
7358 | }
|
---|
7359 |
|
---|
7360 | #undef GpiOutlinePath
|
---|
7361 | #define GpiOutlinePath _GpiOutlinePath
|
---|
7362 |
|
---|
7363 | inline LONG _GpiPaintRegion(HPS a, HRGN b)
|
---|
7364 | {
|
---|
7365 | LONG yyrc;
|
---|
7366 | USHORT sel = GetFS();
|
---|
7367 |
|
---|
7368 | yyrc = GpiPaintRegion(a, b);
|
---|
7369 | SetFS(sel);
|
---|
7370 |
|
---|
7371 | return yyrc;
|
---|
7372 | }
|
---|
7373 |
|
---|
7374 | #undef GpiPaintRegion
|
---|
7375 | #define GpiPaintRegion _GpiPaintRegion
|
---|
7376 |
|
---|
7377 | inline LONG _GpiPartialArc(HPS a, PPOINTL b, FIXED c, FIXED d, FIXED e)
|
---|
7378 | {
|
---|
7379 | LONG yyrc;
|
---|
7380 | USHORT sel = GetFS();
|
---|
7381 |
|
---|
7382 | yyrc = GpiPartialArc(a, b, c, d, e);
|
---|
7383 | SetFS(sel);
|
---|
7384 |
|
---|
7385 | return yyrc;
|
---|
7386 | }
|
---|
7387 |
|
---|
7388 | #undef GpiPartialArc
|
---|
7389 | #define GpiPartialArc _GpiPartialArc
|
---|
7390 |
|
---|
7391 | inline HRGN _GpiPathToRegion(HPS a, LONG b, LONG c)
|
---|
7392 | {
|
---|
7393 | HRGN yyrc;
|
---|
7394 | USHORT sel = GetFS();
|
---|
7395 |
|
---|
7396 | yyrc = GpiPathToRegion(a, b, c);
|
---|
7397 | SetFS(sel);
|
---|
7398 |
|
---|
7399 | return yyrc;
|
---|
7400 | }
|
---|
7401 |
|
---|
7402 | #undef GpiPathToRegion
|
---|
7403 | #define GpiPathToRegion _GpiPathToRegion
|
---|
7404 |
|
---|
7405 | inline LONG _GpiPlayMetaFile(HPS a, HMF b, LONG c, PLONG d, PLONG e, LONG f, PSZ g)
|
---|
7406 | {
|
---|
7407 | LONG yyrc;
|
---|
7408 | USHORT sel = GetFS();
|
---|
7409 |
|
---|
7410 | yyrc = GpiPlayMetaFile(a, b, c, d, e, f, g);
|
---|
7411 | SetFS(sel);
|
---|
7412 |
|
---|
7413 | return yyrc;
|
---|
7414 | }
|
---|
7415 |
|
---|
7416 | #undef GpiPlayMetaFile
|
---|
7417 | #define GpiPlayMetaFile _GpiPlayMetaFile
|
---|
7418 |
|
---|
7419 | inline LONG _GpiPointArc(HPS a, PPOINTL b)
|
---|
7420 | {
|
---|
7421 | LONG yyrc;
|
---|
7422 | USHORT sel = GetFS();
|
---|
7423 |
|
---|
7424 | yyrc = GpiPointArc(a, b);
|
---|
7425 | SetFS(sel);
|
---|
7426 |
|
---|
7427 | return yyrc;
|
---|
7428 | }
|
---|
7429 |
|
---|
7430 | #undef GpiPointArc
|
---|
7431 | #define GpiPointArc _GpiPointArc
|
---|
7432 |
|
---|
7433 | inline LONG _GpiPolyFillet(HPS a, LONG b, PPOINTL c)
|
---|
7434 | {
|
---|
7435 | LONG yyrc;
|
---|
7436 | USHORT sel = GetFS();
|
---|
7437 |
|
---|
7438 | yyrc = GpiPolyFillet(a, b, c);
|
---|
7439 | SetFS(sel);
|
---|
7440 |
|
---|
7441 | return yyrc;
|
---|
7442 | }
|
---|
7443 |
|
---|
7444 | #undef GpiPolyFillet
|
---|
7445 | #define GpiPolyFillet _GpiPolyFillet
|
---|
7446 |
|
---|
7447 | inline LONG _GpiPolyFilletSharp(HPS a, LONG b, PPOINTL c, PFIXED d)
|
---|
7448 | {
|
---|
7449 | LONG yyrc;
|
---|
7450 | USHORT sel = GetFS();
|
---|
7451 |
|
---|
7452 | yyrc = GpiPolyFilletSharp(a, b, c, d);
|
---|
7453 | SetFS(sel);
|
---|
7454 |
|
---|
7455 | return yyrc;
|
---|
7456 | }
|
---|
7457 |
|
---|
7458 | #undef GpiPolyFilletSharp
|
---|
7459 | #define GpiPolyFilletSharp _GpiPolyFilletSharp
|
---|
7460 |
|
---|
7461 | inline LONG _GpiPolygons(HPS a, ULONG b, PPOLYGON c, ULONG d, ULONG e)
|
---|
7462 | {
|
---|
7463 | LONG yyrc;
|
---|
7464 | USHORT sel = GetFS();
|
---|
7465 |
|
---|
7466 | yyrc = GpiPolygons(a, b, c, d, e);
|
---|
7467 | SetFS(sel);
|
---|
7468 |
|
---|
7469 | return yyrc;
|
---|
7470 | }
|
---|
7471 |
|
---|
7472 | #undef GpiPolygons
|
---|
7473 | #define GpiPolygons _GpiPolygons
|
---|
7474 |
|
---|
7475 | inline LONG _GpiPolyLine(HPS a, LONG b, PPOINTL c)
|
---|
7476 | {
|
---|
7477 | LONG yyrc;
|
---|
7478 | USHORT sel = GetFS();
|
---|
7479 |
|
---|
7480 | yyrc = GpiPolyLine(a, b, c);
|
---|
7481 | SetFS(sel);
|
---|
7482 |
|
---|
7483 | return yyrc;
|
---|
7484 | }
|
---|
7485 |
|
---|
7486 | #undef GpiPolyLine
|
---|
7487 | #define GpiPolyLine _GpiPolyLine
|
---|
7488 |
|
---|
7489 | inline LONG _GpiPolyLineDisjoint(HPS a, LONG b, PPOINTL c)
|
---|
7490 | {
|
---|
7491 | LONG yyrc;
|
---|
7492 | USHORT sel = GetFS();
|
---|
7493 |
|
---|
7494 | yyrc = GpiPolyLineDisjoint(a, b, c);
|
---|
7495 | SetFS(sel);
|
---|
7496 |
|
---|
7497 | return yyrc;
|
---|
7498 | }
|
---|
7499 |
|
---|
7500 | #undef GpiPolyLineDisjoint
|
---|
7501 | #define GpiPolyLineDisjoint _GpiPolyLineDisjoint
|
---|
7502 |
|
---|
7503 | inline LONG _GpiPolyMarker(HPS a, LONG b, PPOINTL c)
|
---|
7504 | {
|
---|
7505 | LONG yyrc;
|
---|
7506 | USHORT sel = GetFS();
|
---|
7507 |
|
---|
7508 | yyrc = GpiPolyMarker(a, b, c);
|
---|
7509 | SetFS(sel);
|
---|
7510 |
|
---|
7511 | return yyrc;
|
---|
7512 | }
|
---|
7513 |
|
---|
7514 | #undef GpiPolyMarker
|
---|
7515 | #define GpiPolyMarker _GpiPolyMarker
|
---|
7516 |
|
---|
7517 | inline LONG _GpiPolySpline(HPS a, LONG b, PPOINTL c)
|
---|
7518 | {
|
---|
7519 | LONG yyrc;
|
---|
7520 | USHORT sel = GetFS();
|
---|
7521 |
|
---|
7522 | yyrc = GpiPolySpline(a, b, c);
|
---|
7523 | SetFS(sel);
|
---|
7524 |
|
---|
7525 | return yyrc;
|
---|
7526 | }
|
---|
7527 |
|
---|
7528 | #undef GpiPolySpline
|
---|
7529 | #define GpiPolySpline _GpiPolySpline
|
---|
7530 |
|
---|
7531 | inline BOOL _GpiPop(HPS a, LONG b)
|
---|
7532 | {
|
---|
7533 | BOOL yyrc;
|
---|
7534 | USHORT sel = GetFS();
|
---|
7535 |
|
---|
7536 | yyrc = GpiPop(a, b);
|
---|
7537 | SetFS(sel);
|
---|
7538 |
|
---|
7539 | return yyrc;
|
---|
7540 | }
|
---|
7541 |
|
---|
7542 | #undef GpiPop
|
---|
7543 | #define GpiPop _GpiPop
|
---|
7544 |
|
---|
7545 | inline LONG _GpiPtInRegion(HPS a, HRGN b, PPOINTL c)
|
---|
7546 | {
|
---|
7547 | LONG yyrc;
|
---|
7548 | USHORT sel = GetFS();
|
---|
7549 |
|
---|
7550 | yyrc = GpiPtInRegion(a, b, c);
|
---|
7551 | SetFS(sel);
|
---|
7552 |
|
---|
7553 | return yyrc;
|
---|
7554 | }
|
---|
7555 |
|
---|
7556 | #undef GpiPtInRegion
|
---|
7557 | #define GpiPtInRegion _GpiPtInRegion
|
---|
7558 |
|
---|
7559 | inline LONG _GpiPtVisible(HPS a, PPOINTL b)
|
---|
7560 | {
|
---|
7561 | LONG yyrc;
|
---|
7562 | USHORT sel = GetFS();
|
---|
7563 |
|
---|
7564 | yyrc = GpiPtVisible(a, b);
|
---|
7565 | SetFS(sel);
|
---|
7566 |
|
---|
7567 | return yyrc;
|
---|
7568 | }
|
---|
7569 |
|
---|
7570 | #undef GpiPtVisible
|
---|
7571 | #define GpiPtVisible _GpiPtVisible
|
---|
7572 |
|
---|
7573 | inline BOOL _GpiQueryArcParams(HPS a, PARCPARAMS b)
|
---|
7574 | {
|
---|
7575 | BOOL yyrc;
|
---|
7576 | USHORT sel = GetFS();
|
---|
7577 |
|
---|
7578 | yyrc = GpiQueryArcParams(a, b);
|
---|
7579 | SetFS(sel);
|
---|
7580 |
|
---|
7581 | return yyrc;
|
---|
7582 | }
|
---|
7583 |
|
---|
7584 | #undef GpiQueryArcParams
|
---|
7585 | #define GpiQueryArcParams _GpiQueryArcParams
|
---|
7586 |
|
---|
7587 | inline LONG _GpiQueryAttrMode(HPS a)
|
---|
7588 | {
|
---|
7589 | LONG yyrc;
|
---|
7590 | USHORT sel = GetFS();
|
---|
7591 |
|
---|
7592 | yyrc = GpiQueryAttrMode(a);
|
---|
7593 | SetFS(sel);
|
---|
7594 |
|
---|
7595 | return yyrc;
|
---|
7596 | }
|
---|
7597 |
|
---|
7598 | #undef GpiQueryAttrMode
|
---|
7599 | #define GpiQueryAttrMode _GpiQueryAttrMode
|
---|
7600 |
|
---|
7601 | inline LONG _GpiQueryAttrs(HPS a, LONG b, ULONG c, PBUNDLE d)
|
---|
7602 | {
|
---|
7603 | LONG yyrc;
|
---|
7604 | USHORT sel = GetFS();
|
---|
7605 |
|
---|
7606 | yyrc = GpiQueryAttrs(a, b, c, d);
|
---|
7607 | SetFS(sel);
|
---|
7608 |
|
---|
7609 | return yyrc;
|
---|
7610 | }
|
---|
7611 |
|
---|
7612 | #undef GpiQueryAttrs
|
---|
7613 | #define GpiQueryAttrs _GpiQueryAttrs
|
---|
7614 |
|
---|
7615 | inline LONG _GpiQueryBackColor(HPS a)
|
---|
7616 | {
|
---|
7617 | LONG yyrc;
|
---|
7618 | USHORT sel = GetFS();
|
---|
7619 |
|
---|
7620 | yyrc = GpiQueryBackColor(a);
|
---|
7621 | SetFS(sel);
|
---|
7622 |
|
---|
7623 | return yyrc;
|
---|
7624 | }
|
---|
7625 |
|
---|
7626 | #undef GpiQueryBackColor
|
---|
7627 | #define GpiQueryBackColor _GpiQueryBackColor
|
---|
7628 |
|
---|
7629 | inline LONG _GpiQueryBackMix(HPS a)
|
---|
7630 | {
|
---|
7631 | LONG yyrc;
|
---|
7632 | USHORT sel = GetFS();
|
---|
7633 |
|
---|
7634 | yyrc = GpiQueryBackMix(a);
|
---|
7635 | SetFS(sel);
|
---|
7636 |
|
---|
7637 | return yyrc;
|
---|
7638 | }
|
---|
7639 |
|
---|
7640 | #undef GpiQueryBackMix
|
---|
7641 | #define GpiQueryBackMix _GpiQueryBackMix
|
---|
7642 |
|
---|
7643 | inline BOOL _GpiQueryCharAngle(HPS a, PGRADIENTL b)
|
---|
7644 | {
|
---|
7645 | BOOL yyrc;
|
---|
7646 | USHORT sel = GetFS();
|
---|
7647 |
|
---|
7648 | yyrc = GpiQueryCharAngle(a, b);
|
---|
7649 | SetFS(sel);
|
---|
7650 |
|
---|
7651 | return yyrc;
|
---|
7652 | }
|
---|
7653 |
|
---|
7654 | #undef GpiQueryCharAngle
|
---|
7655 | #define GpiQueryCharAngle _GpiQueryCharAngle
|
---|
7656 |
|
---|
7657 | inline BOOL _GpiQueryCharBox(HPS a, PSIZEF b)
|
---|
7658 | {
|
---|
7659 | BOOL yyrc;
|
---|
7660 | USHORT sel = GetFS();
|
---|
7661 |
|
---|
7662 | yyrc = GpiQueryCharBox(a, b);
|
---|
7663 | SetFS(sel);
|
---|
7664 |
|
---|
7665 | return yyrc;
|
---|
7666 | }
|
---|
7667 |
|
---|
7668 | #undef GpiQueryCharBox
|
---|
7669 | #define GpiQueryCharBox _GpiQueryCharBox
|
---|
7670 |
|
---|
7671 | inline BOOL _GpiQueryCharBreakExtra(HPS a, PFIXED b)
|
---|
7672 | {
|
---|
7673 | BOOL yyrc;
|
---|
7674 | USHORT sel = GetFS();
|
---|
7675 |
|
---|
7676 | yyrc = GpiQueryCharBreakExtra(a, b);
|
---|
7677 | SetFS(sel);
|
---|
7678 |
|
---|
7679 | return yyrc;
|
---|
7680 | }
|
---|
7681 |
|
---|
7682 | #undef GpiQueryCharBreakExtra
|
---|
7683 | #define GpiQueryCharBreakExtra _GpiQueryCharBreakExtra
|
---|
7684 |
|
---|
7685 | inline LONG _GpiQueryCharDirection(HPS a)
|
---|
7686 | {
|
---|
7687 | LONG yyrc;
|
---|
7688 | USHORT sel = GetFS();
|
---|
7689 |
|
---|
7690 | yyrc = GpiQueryCharDirection(a);
|
---|
7691 | SetFS(sel);
|
---|
7692 |
|
---|
7693 | return yyrc;
|
---|
7694 | }
|
---|
7695 |
|
---|
7696 | #undef GpiQueryCharDirection
|
---|
7697 | #define GpiQueryCharDirection _GpiQueryCharDirection
|
---|
7698 |
|
---|
7699 | inline BOOL _GpiQueryCharExtra(HPS a, PFIXED b)
|
---|
7700 | {
|
---|
7701 | BOOL yyrc;
|
---|
7702 | USHORT sel = GetFS();
|
---|
7703 |
|
---|
7704 | yyrc = GpiQueryCharExtra(a, b);
|
---|
7705 | SetFS(sel);
|
---|
7706 |
|
---|
7707 | return yyrc;
|
---|
7708 | }
|
---|
7709 |
|
---|
7710 | #undef GpiQueryCharExtra
|
---|
7711 | #define GpiQueryCharExtra _GpiQueryCharExtra
|
---|
7712 |
|
---|
7713 | inline LONG _GpiQueryCharMode(HPS a)
|
---|
7714 | {
|
---|
7715 | LONG yyrc;
|
---|
7716 | USHORT sel = GetFS();
|
---|
7717 |
|
---|
7718 | yyrc = GpiQueryCharMode(a);
|
---|
7719 | SetFS(sel);
|
---|
7720 |
|
---|
7721 | return yyrc;
|
---|
7722 | }
|
---|
7723 |
|
---|
7724 | #undef GpiQueryCharMode
|
---|
7725 | #define GpiQueryCharMode _GpiQueryCharMode
|
---|
7726 |
|
---|
7727 | inline LONG _GpiQueryCharSet(HPS a)
|
---|
7728 | {
|
---|
7729 | LONG yyrc;
|
---|
7730 | USHORT sel = GetFS();
|
---|
7731 |
|
---|
7732 | yyrc = GpiQueryCharSet(a);
|
---|
7733 | SetFS(sel);
|
---|
7734 |
|
---|
7735 | return yyrc;
|
---|
7736 | }
|
---|
7737 |
|
---|
7738 | #undef GpiQueryCharSet
|
---|
7739 | #define GpiQueryCharSet _GpiQueryCharSet
|
---|
7740 |
|
---|
7741 | inline BOOL _GpiQueryCharShear(HPS a, PPOINTL b)
|
---|
7742 | {
|
---|
7743 | BOOL yyrc;
|
---|
7744 | USHORT sel = GetFS();
|
---|
7745 |
|
---|
7746 | yyrc = GpiQueryCharShear(a, b);
|
---|
7747 | SetFS(sel);
|
---|
7748 |
|
---|
7749 | return yyrc;
|
---|
7750 | }
|
---|
7751 |
|
---|
7752 | #undef GpiQueryCharShear
|
---|
7753 | #define GpiQueryCharShear _GpiQueryCharShear
|
---|
7754 |
|
---|
7755 | inline BOOL _GpiQueryCharStringPos(HPS a, ULONG b, LONG c, PCH d, PLONG e, PPOINTL f)
|
---|
7756 | {
|
---|
7757 | BOOL yyrc;
|
---|
7758 | USHORT sel = GetFS();
|
---|
7759 |
|
---|
7760 | yyrc = GpiQueryCharStringPos(a, b, c, d, e, f);
|
---|
7761 | SetFS(sel);
|
---|
7762 |
|
---|
7763 | return yyrc;
|
---|
7764 | }
|
---|
7765 |
|
---|
7766 | #undef GpiQueryCharStringPos
|
---|
7767 | #define GpiQueryCharStringPos _GpiQueryCharStringPos
|
---|
7768 |
|
---|
7769 | inline BOOL _GpiQueryCharStringPosAt(HPS a, PPOINTL b, ULONG c, LONG d, PCH e, PLONG f, PPOINTL g)
|
---|
7770 | {
|
---|
7771 | BOOL yyrc;
|
---|
7772 | USHORT sel = GetFS();
|
---|
7773 |
|
---|
7774 | yyrc = GpiQueryCharStringPosAt(a, b, c, d, e, f, g);
|
---|
7775 | SetFS(sel);
|
---|
7776 |
|
---|
7777 | return yyrc;
|
---|
7778 | }
|
---|
7779 |
|
---|
7780 | #undef GpiQueryCharStringPosAt
|
---|
7781 | #define GpiQueryCharStringPosAt _GpiQueryCharStringPosAt
|
---|
7782 |
|
---|
7783 | inline LONG _GpiQueryClipBox(HPS a, PRECTL b)
|
---|
7784 | {
|
---|
7785 | LONG yyrc;
|
---|
7786 | USHORT sel = GetFS();
|
---|
7787 |
|
---|
7788 | yyrc = GpiQueryClipBox(a, b);
|
---|
7789 | SetFS(sel);
|
---|
7790 |
|
---|
7791 | return yyrc;
|
---|
7792 | }
|
---|
7793 |
|
---|
7794 | #undef GpiQueryClipBox
|
---|
7795 | #define GpiQueryClipBox _GpiQueryClipBox
|
---|
7796 |
|
---|
7797 | inline HRGN _GpiQueryClipRegion(HPS a)
|
---|
7798 | {
|
---|
7799 | HRGN yyrc;
|
---|
7800 | USHORT sel = GetFS();
|
---|
7801 |
|
---|
7802 | yyrc = GpiQueryClipRegion(a);
|
---|
7803 | SetFS(sel);
|
---|
7804 |
|
---|
7805 | return yyrc;
|
---|
7806 | }
|
---|
7807 |
|
---|
7808 | #undef GpiQueryClipRegion
|
---|
7809 | #define GpiQueryClipRegion _GpiQueryClipRegion
|
---|
7810 |
|
---|
7811 | inline LONG _GpiQueryColor(HPS a)
|
---|
7812 | {
|
---|
7813 | LONG yyrc;
|
---|
7814 | USHORT sel = GetFS();
|
---|
7815 |
|
---|
7816 | yyrc = GpiQueryColor(a);
|
---|
7817 | SetFS(sel);
|
---|
7818 |
|
---|
7819 | return yyrc;
|
---|
7820 | }
|
---|
7821 |
|
---|
7822 | #undef GpiQueryColor
|
---|
7823 | #define GpiQueryColor _GpiQueryColor
|
---|
7824 |
|
---|
7825 | inline BOOL _GpiQueryColorData(HPS a, LONG b, PLONG c)
|
---|
7826 | {
|
---|
7827 | BOOL yyrc;
|
---|
7828 | USHORT sel = GetFS();
|
---|
7829 |
|
---|
7830 | yyrc = GpiQueryColorData(a, b, c);
|
---|
7831 | SetFS(sel);
|
---|
7832 |
|
---|
7833 | return yyrc;
|
---|
7834 | }
|
---|
7835 |
|
---|
7836 | #undef GpiQueryColorData
|
---|
7837 | #define GpiQueryColorData _GpiQueryColorData
|
---|
7838 |
|
---|
7839 | inline LONG _GpiQueryColorIndex(HPS a, ULONG b, LONG c)
|
---|
7840 | {
|
---|
7841 | LONG yyrc;
|
---|
7842 | USHORT sel = GetFS();
|
---|
7843 |
|
---|
7844 | yyrc = GpiQueryColorIndex(a, b, c);
|
---|
7845 | SetFS(sel);
|
---|
7846 |
|
---|
7847 | return yyrc;
|
---|
7848 | }
|
---|
7849 |
|
---|
7850 | #undef GpiQueryColorIndex
|
---|
7851 | #define GpiQueryColorIndex _GpiQueryColorIndex
|
---|
7852 |
|
---|
7853 | inline ULONG _GpiQueryCp(HPS a)
|
---|
7854 | {
|
---|
7855 | ULONG yyrc;
|
---|
7856 | USHORT sel = GetFS();
|
---|
7857 |
|
---|
7858 | yyrc = GpiQueryCp(a);
|
---|
7859 | SetFS(sel);
|
---|
7860 |
|
---|
7861 | return yyrc;
|
---|
7862 | }
|
---|
7863 |
|
---|
7864 | #undef GpiQueryCp
|
---|
7865 | #define GpiQueryCp _GpiQueryCp
|
---|
7866 |
|
---|
7867 | inline BOOL _GpiQueryCurrentPosition(HPS a, PPOINTL b)
|
---|
7868 | {
|
---|
7869 | BOOL yyrc;
|
---|
7870 | USHORT sel = GetFS();
|
---|
7871 |
|
---|
7872 | yyrc = GpiQueryCurrentPosition(a, b);
|
---|
7873 | SetFS(sel);
|
---|
7874 |
|
---|
7875 | return yyrc;
|
---|
7876 | }
|
---|
7877 |
|
---|
7878 | #undef GpiQueryCurrentPosition
|
---|
7879 | #define GpiQueryCurrentPosition _GpiQueryCurrentPosition
|
---|
7880 |
|
---|
7881 | inline BOOL _GpiQueryDefArcParams(HPS a, PARCPARAMS b)
|
---|
7882 | {
|
---|
7883 | BOOL yyrc;
|
---|
7884 | USHORT sel = GetFS();
|
---|
7885 |
|
---|
7886 | yyrc = GpiQueryDefArcParams(a, b);
|
---|
7887 | SetFS(sel);
|
---|
7888 |
|
---|
7889 | return yyrc;
|
---|
7890 | }
|
---|
7891 |
|
---|
7892 | #undef GpiQueryDefArcParams
|
---|
7893 | #define GpiQueryDefArcParams _GpiQueryDefArcParams
|
---|
7894 |
|
---|
7895 | inline BOOL _GpiQueryDefAttrs(HPS a, LONG b, ULONG c, PBUNDLE d)
|
---|
7896 | {
|
---|
7897 | BOOL yyrc;
|
---|
7898 | USHORT sel = GetFS();
|
---|
7899 |
|
---|
7900 | yyrc = GpiQueryDefAttrs(a, b, c, d);
|
---|
7901 | SetFS(sel);
|
---|
7902 |
|
---|
7903 | return yyrc;
|
---|
7904 | }
|
---|
7905 |
|
---|
7906 | #undef GpiQueryDefAttrs
|
---|
7907 | #define GpiQueryDefAttrs _GpiQueryDefAttrs
|
---|
7908 |
|
---|
7909 | inline BOOL _GpiQueryDefCharBox(HPS a, PSIZEL b)
|
---|
7910 | {
|
---|
7911 | BOOL yyrc;
|
---|
7912 | USHORT sel = GetFS();
|
---|
7913 |
|
---|
7914 | yyrc = GpiQueryDefCharBox(a, b);
|
---|
7915 | SetFS(sel);
|
---|
7916 |
|
---|
7917 | return yyrc;
|
---|
7918 | }
|
---|
7919 |
|
---|
7920 | #undef GpiQueryDefCharBox
|
---|
7921 | #define GpiQueryDefCharBox _GpiQueryDefCharBox
|
---|
7922 |
|
---|
7923 | inline BOOL _GpiQueryDefTag(HPS a, PLONG b)
|
---|
7924 | {
|
---|
7925 | BOOL yyrc;
|
---|
7926 | USHORT sel = GetFS();
|
---|
7927 |
|
---|
7928 | yyrc = GpiQueryDefTag(a, b);
|
---|
7929 | SetFS(sel);
|
---|
7930 |
|
---|
7931 | return yyrc;
|
---|
7932 | }
|
---|
7933 |
|
---|
7934 | #undef GpiQueryDefTag
|
---|
7935 | #define GpiQueryDefTag _GpiQueryDefTag
|
---|
7936 |
|
---|
7937 | inline BOOL _GpiQueryDefViewingLimits(HPS a, PRECTL b)
|
---|
7938 | {
|
---|
7939 | BOOL yyrc;
|
---|
7940 | USHORT sel = GetFS();
|
---|
7941 |
|
---|
7942 | yyrc = GpiQueryDefViewingLimits(a, b);
|
---|
7943 | SetFS(sel);
|
---|
7944 |
|
---|
7945 | return yyrc;
|
---|
7946 | }
|
---|
7947 |
|
---|
7948 | #undef GpiQueryDefViewingLimits
|
---|
7949 | #define GpiQueryDefViewingLimits _GpiQueryDefViewingLimits
|
---|
7950 |
|
---|
7951 | inline BOOL _GpiQueryDefaultViewMatrix(HPS a, LONG b, PMATRIXLF c)
|
---|
7952 | {
|
---|
7953 | BOOL yyrc;
|
---|
7954 | USHORT sel = GetFS();
|
---|
7955 |
|
---|
7956 | yyrc = GpiQueryDefaultViewMatrix(a, b, c);
|
---|
7957 | SetFS(sel);
|
---|
7958 |
|
---|
7959 | return yyrc;
|
---|
7960 | }
|
---|
7961 |
|
---|
7962 | #undef GpiQueryDefaultViewMatrix
|
---|
7963 | #define GpiQueryDefaultViewMatrix _GpiQueryDefaultViewMatrix
|
---|
7964 |
|
---|
7965 | inline LONG _GpiQueryEditMode(HPS a)
|
---|
7966 | {
|
---|
7967 | LONG yyrc;
|
---|
7968 | USHORT sel = GetFS();
|
---|
7969 |
|
---|
7970 | yyrc = GpiQueryEditMode(a);
|
---|
7971 | SetFS(sel);
|
---|
7972 |
|
---|
7973 | return yyrc;
|
---|
7974 | }
|
---|
7975 |
|
---|
7976 | #undef GpiQueryEditMode
|
---|
7977 | #define GpiQueryEditMode _GpiQueryEditMode
|
---|
7978 |
|
---|
7979 | inline LONG _GpiQueryElement(HPS a, LONG b, LONG c, PBYTE d)
|
---|
7980 | {
|
---|
7981 | LONG yyrc;
|
---|
7982 | USHORT sel = GetFS();
|
---|
7983 |
|
---|
7984 | yyrc = GpiQueryElement(a, b, c, d);
|
---|
7985 | SetFS(sel);
|
---|
7986 |
|
---|
7987 | return yyrc;
|
---|
7988 | }
|
---|
7989 |
|
---|
7990 | #undef GpiQueryElement
|
---|
7991 | #define GpiQueryElement _GpiQueryElement
|
---|
7992 |
|
---|
7993 | inline LONG _GpiQueryElementPointer(HPS a)
|
---|
7994 | {
|
---|
7995 | LONG yyrc;
|
---|
7996 | USHORT sel = GetFS();
|
---|
7997 |
|
---|
7998 | yyrc = GpiQueryElementPointer(a);
|
---|
7999 | SetFS(sel);
|
---|
8000 |
|
---|
8001 | return yyrc;
|
---|
8002 | }
|
---|
8003 |
|
---|
8004 | #undef GpiQueryElementPointer
|
---|
8005 | #define GpiQueryElementPointer _GpiQueryElementPointer
|
---|
8006 |
|
---|
8007 | inline LONG _GpiQueryElementType(HPS a, PLONG b, LONG c, PSZ d)
|
---|
8008 | {
|
---|
8009 | LONG yyrc;
|
---|
8010 | USHORT sel = GetFS();
|
---|
8011 |
|
---|
8012 | yyrc = GpiQueryElementType(a, b, c, d);
|
---|
8013 | SetFS(sel);
|
---|
8014 |
|
---|
8015 | return yyrc;
|
---|
8016 | }
|
---|
8017 |
|
---|
8018 | #undef GpiQueryElementType
|
---|
8019 | #define GpiQueryElementType _GpiQueryElementType
|
---|
8020 |
|
---|
8021 | inline ULONG _GpiQueryFaceString(HPS a, PCSZ b, PFACENAMEDESC c, LONG d, PSZ e)
|
---|
8022 | {
|
---|
8023 | ULONG yyrc;
|
---|
8024 | USHORT sel = GetFS();
|
---|
8025 |
|
---|
8026 | yyrc = GpiQueryFaceString(a, b, c, d, e);
|
---|
8027 | SetFS(sel);
|
---|
8028 |
|
---|
8029 | return yyrc;
|
---|
8030 | }
|
---|
8031 |
|
---|
8032 | #undef GpiQueryFaceString
|
---|
8033 | #define GpiQueryFaceString _GpiQueryFaceString
|
---|
8034 |
|
---|
8035 | inline ULONG _GpiQueryFontAction(HAB a, ULONG b)
|
---|
8036 | {
|
---|
8037 | ULONG yyrc;
|
---|
8038 | USHORT sel = GetFS();
|
---|
8039 |
|
---|
8040 | yyrc = GpiQueryFontAction(a, b);
|
---|
8041 | SetFS(sel);
|
---|
8042 |
|
---|
8043 | return yyrc;
|
---|
8044 | }
|
---|
8045 |
|
---|
8046 | #undef GpiQueryFontAction
|
---|
8047 | #define GpiQueryFontAction _GpiQueryFontAction
|
---|
8048 |
|
---|
8049 | inline LONG _GpiQueryFontFileDescriptions(HAB a, PCSZ b, PLONG c, PFFDESCS d)
|
---|
8050 | {
|
---|
8051 | LONG yyrc;
|
---|
8052 | USHORT sel = GetFS();
|
---|
8053 |
|
---|
8054 | yyrc = GpiQueryFontFileDescriptions(a, b, c, d);
|
---|
8055 | SetFS(sel);
|
---|
8056 |
|
---|
8057 | return yyrc;
|
---|
8058 | }
|
---|
8059 |
|
---|
8060 | #undef GpiQueryFontFileDescriptions
|
---|
8061 | #define GpiQueryFontFileDescriptions _GpiQueryFontFileDescriptions
|
---|
8062 |
|
---|
8063 | inline BOOL _GpiQueryFontMetrics(HPS a, LONG b, PFONTMETRICS c)
|
---|
8064 | {
|
---|
8065 | BOOL yyrc;
|
---|
8066 | USHORT sel = GetFS();
|
---|
8067 |
|
---|
8068 | yyrc = GpiQueryFontMetrics(a, b, c);
|
---|
8069 | SetFS(sel);
|
---|
8070 |
|
---|
8071 | return yyrc;
|
---|
8072 | }
|
---|
8073 |
|
---|
8074 | #undef GpiQueryFontMetrics
|
---|
8075 | #define GpiQueryFontMetrics _GpiQueryFontMetrics
|
---|
8076 |
|
---|
8077 | inline LONG _GpiQueryFonts(HPS a, ULONG b, PCSZ c, PLONG d, LONG e, PFONTMETRICS f)
|
---|
8078 | {
|
---|
8079 | LONG yyrc;
|
---|
8080 | USHORT sel = GetFS();
|
---|
8081 |
|
---|
8082 | yyrc = GpiQueryFonts(a, b, c, d, e, f);
|
---|
8083 | SetFS(sel);
|
---|
8084 |
|
---|
8085 | return yyrc;
|
---|
8086 | }
|
---|
8087 |
|
---|
8088 | #undef GpiQueryFonts
|
---|
8089 | #define GpiQueryFonts _GpiQueryFonts
|
---|
8090 |
|
---|
8091 | inline LONG _GpiQueryFullFontFileDescs(HAB a, PCSZ b, PLONG c, PVOID d, PLONG e)
|
---|
8092 | {
|
---|
8093 | LONG yyrc;
|
---|
8094 | USHORT sel = GetFS();
|
---|
8095 |
|
---|
8096 | yyrc = GpiQueryFullFontFileDescs(a, b, c, d, e);
|
---|
8097 | SetFS(sel);
|
---|
8098 |
|
---|
8099 | return yyrc;
|
---|
8100 | }
|
---|
8101 |
|
---|
8102 | #undef GpiQueryFullFontFileDescs
|
---|
8103 | #define GpiQueryFullFontFileDescs _GpiQueryFullFontFileDescs
|
---|
8104 |
|
---|
8105 | inline BOOL _GpiQueryGraphicsField(HPS a, PRECTL b)
|
---|
8106 | {
|
---|
8107 | BOOL yyrc;
|
---|
8108 | USHORT sel = GetFS();
|
---|
8109 |
|
---|
8110 | yyrc = GpiQueryGraphicsField(a, b);
|
---|
8111 | SetFS(sel);
|
---|
8112 |
|
---|
8113 | return yyrc;
|
---|
8114 | }
|
---|
8115 |
|
---|
8116 | #undef GpiQueryGraphicsField
|
---|
8117 | #define GpiQueryGraphicsField _GpiQueryGraphicsField
|
---|
8118 |
|
---|
8119 | inline LONG _GpiQueryKerningPairs(HPS a, LONG b, PKERNINGPAIRS c)
|
---|
8120 | {
|
---|
8121 | LONG yyrc;
|
---|
8122 | USHORT sel = GetFS();
|
---|
8123 |
|
---|
8124 | yyrc = GpiQueryKerningPairs(a, b, c);
|
---|
8125 | SetFS(sel);
|
---|
8126 |
|
---|
8127 | return yyrc;
|
---|
8128 | }
|
---|
8129 |
|
---|
8130 | #undef GpiQueryKerningPairs
|
---|
8131 | #define GpiQueryKerningPairs _GpiQueryKerningPairs
|
---|
8132 |
|
---|
8133 | inline LONG _GpiQueryLineEnd(HPS a)
|
---|
8134 | {
|
---|
8135 | LONG yyrc;
|
---|
8136 | USHORT sel = GetFS();
|
---|
8137 |
|
---|
8138 | yyrc = GpiQueryLineEnd(a);
|
---|
8139 | SetFS(sel);
|
---|
8140 |
|
---|
8141 | return yyrc;
|
---|
8142 | }
|
---|
8143 |
|
---|
8144 | #undef GpiQueryLineEnd
|
---|
8145 | #define GpiQueryLineEnd _GpiQueryLineEnd
|
---|
8146 |
|
---|
8147 | inline LONG _GpiQueryLineJoin(HPS a)
|
---|
8148 | {
|
---|
8149 | LONG yyrc;
|
---|
8150 | USHORT sel = GetFS();
|
---|
8151 |
|
---|
8152 | yyrc = GpiQueryLineJoin(a);
|
---|
8153 | SetFS(sel);
|
---|
8154 |
|
---|
8155 | return yyrc;
|
---|
8156 | }
|
---|
8157 |
|
---|
8158 | #undef GpiQueryLineJoin
|
---|
8159 | #define GpiQueryLineJoin _GpiQueryLineJoin
|
---|
8160 |
|
---|
8161 | inline LONG _GpiQueryLineType(HPS a)
|
---|
8162 | {
|
---|
8163 | LONG yyrc;
|
---|
8164 | USHORT sel = GetFS();
|
---|
8165 |
|
---|
8166 | yyrc = GpiQueryLineType(a);
|
---|
8167 | SetFS(sel);
|
---|
8168 |
|
---|
8169 | return yyrc;
|
---|
8170 | }
|
---|
8171 |
|
---|
8172 | #undef GpiQueryLineType
|
---|
8173 | #define GpiQueryLineType _GpiQueryLineType
|
---|
8174 |
|
---|
8175 | inline FIXED _GpiQueryLineWidth(HPS a)
|
---|
8176 | {
|
---|
8177 | FIXED yyrc;
|
---|
8178 | USHORT sel = GetFS();
|
---|
8179 |
|
---|
8180 | yyrc = GpiQueryLineWidth(a);
|
---|
8181 | SetFS(sel);
|
---|
8182 |
|
---|
8183 | return yyrc;
|
---|
8184 | }
|
---|
8185 |
|
---|
8186 | #undef GpiQueryLineWidth
|
---|
8187 | #define GpiQueryLineWidth _GpiQueryLineWidth
|
---|
8188 |
|
---|
8189 | inline LONG _GpiQueryLineWidthGeom(HPS a)
|
---|
8190 | {
|
---|
8191 | LONG yyrc;
|
---|
8192 | USHORT sel = GetFS();
|
---|
8193 |
|
---|
8194 | yyrc = GpiQueryLineWidthGeom(a);
|
---|
8195 | SetFS(sel);
|
---|
8196 |
|
---|
8197 | return yyrc;
|
---|
8198 | }
|
---|
8199 |
|
---|
8200 | #undef GpiQueryLineWidthGeom
|
---|
8201 | #define GpiQueryLineWidthGeom _GpiQueryLineWidthGeom
|
---|
8202 |
|
---|
8203 | inline LONG _GpiQueryLogColorTable(HPS a, ULONG b, LONG c, LONG d, PLONG e)
|
---|
8204 | {
|
---|
8205 | LONG yyrc;
|
---|
8206 | USHORT sel = GetFS();
|
---|
8207 |
|
---|
8208 | yyrc = GpiQueryLogColorTable(a, b, c, d, e);
|
---|
8209 | SetFS(sel);
|
---|
8210 |
|
---|
8211 | return yyrc;
|
---|
8212 | }
|
---|
8213 |
|
---|
8214 | #undef GpiQueryLogColorTable
|
---|
8215 | #define GpiQueryLogColorTable _GpiQueryLogColorTable
|
---|
8216 |
|
---|
8217 | inline BOOL _GpiQueryLogicalFont(HPS a, LONG b, PSTR8 c, PFATTRS d, LONG e)
|
---|
8218 | {
|
---|
8219 | BOOL yyrc;
|
---|
8220 | USHORT sel = GetFS();
|
---|
8221 |
|
---|
8222 | yyrc = GpiQueryLogicalFont(a, b, c, d, e);
|
---|
8223 | SetFS(sel);
|
---|
8224 |
|
---|
8225 | return yyrc;
|
---|
8226 | }
|
---|
8227 |
|
---|
8228 | #undef GpiQueryLogicalFont
|
---|
8229 | #define GpiQueryLogicalFont _GpiQueryLogicalFont
|
---|
8230 |
|
---|
8231 | inline LONG _GpiQueryMarker(HPS a)
|
---|
8232 | {
|
---|
8233 | LONG yyrc;
|
---|
8234 | USHORT sel = GetFS();
|
---|
8235 |
|
---|
8236 | yyrc = GpiQueryMarker(a);
|
---|
8237 | SetFS(sel);
|
---|
8238 |
|
---|
8239 | return yyrc;
|
---|
8240 | }
|
---|
8241 |
|
---|
8242 | #undef GpiQueryMarker
|
---|
8243 | #define GpiQueryMarker _GpiQueryMarker
|
---|
8244 |
|
---|
8245 | inline BOOL _GpiQueryMarkerBox(HPS a, PSIZEF b)
|
---|
8246 | {
|
---|
8247 | BOOL yyrc;
|
---|
8248 | USHORT sel = GetFS();
|
---|
8249 |
|
---|
8250 | yyrc = GpiQueryMarkerBox(a, b);
|
---|
8251 | SetFS(sel);
|
---|
8252 |
|
---|
8253 | return yyrc;
|
---|
8254 | }
|
---|
8255 |
|
---|
8256 | #undef GpiQueryMarkerBox
|
---|
8257 | #define GpiQueryMarkerBox _GpiQueryMarkerBox
|
---|
8258 |
|
---|
8259 | inline LONG _GpiQueryMarkerSet(HPS a)
|
---|
8260 | {
|
---|
8261 | LONG yyrc;
|
---|
8262 | USHORT sel = GetFS();
|
---|
8263 |
|
---|
8264 | yyrc = GpiQueryMarkerSet(a);
|
---|
8265 | SetFS(sel);
|
---|
8266 |
|
---|
8267 | return yyrc;
|
---|
8268 | }
|
---|
8269 |
|
---|
8270 | #undef GpiQueryMarkerSet
|
---|
8271 | #define GpiQueryMarkerSet _GpiQueryMarkerSet
|
---|
8272 |
|
---|
8273 | inline BOOL _GpiQueryMetaFileBits(HMF a, LONG b, LONG c, PBYTE d)
|
---|
8274 | {
|
---|
8275 | BOOL yyrc;
|
---|
8276 | USHORT sel = GetFS();
|
---|
8277 |
|
---|
8278 | yyrc = GpiQueryMetaFileBits(a, b, c, d);
|
---|
8279 | SetFS(sel);
|
---|
8280 |
|
---|
8281 | return yyrc;
|
---|
8282 | }
|
---|
8283 |
|
---|
8284 | #undef GpiQueryMetaFileBits
|
---|
8285 | #define GpiQueryMetaFileBits _GpiQueryMetaFileBits
|
---|
8286 |
|
---|
8287 | inline LONG _GpiQueryMetaFileLength(HMF a)
|
---|
8288 | {
|
---|
8289 | LONG yyrc;
|
---|
8290 | USHORT sel = GetFS();
|
---|
8291 |
|
---|
8292 | yyrc = GpiQueryMetaFileLength(a);
|
---|
8293 | SetFS(sel);
|
---|
8294 |
|
---|
8295 | return yyrc;
|
---|
8296 | }
|
---|
8297 |
|
---|
8298 | #undef GpiQueryMetaFileLength
|
---|
8299 | #define GpiQueryMetaFileLength _GpiQueryMetaFileLength
|
---|
8300 |
|
---|
8301 | inline LONG _GpiQueryMix(HPS a)
|
---|
8302 | {
|
---|
8303 | LONG yyrc;
|
---|
8304 | USHORT sel = GetFS();
|
---|
8305 |
|
---|
8306 | yyrc = GpiQueryMix(a);
|
---|
8307 | SetFS(sel);
|
---|
8308 |
|
---|
8309 | return yyrc;
|
---|
8310 | }
|
---|
8311 |
|
---|
8312 | #undef GpiQueryMix
|
---|
8313 | #define GpiQueryMix _GpiQueryMix
|
---|
8314 |
|
---|
8315 | inline BOOL _GpiQueryModelTransformMatrix(HPS a, LONG b, PMATRIXLF c)
|
---|
8316 | {
|
---|
8317 | BOOL yyrc;
|
---|
8318 | USHORT sel = GetFS();
|
---|
8319 |
|
---|
8320 | yyrc = GpiQueryModelTransformMatrix(a, b, c);
|
---|
8321 | SetFS(sel);
|
---|
8322 |
|
---|
8323 | return yyrc;
|
---|
8324 | }
|
---|
8325 |
|
---|
8326 | #undef GpiQueryModelTransformMatrix
|
---|
8327 | #define GpiQueryModelTransformMatrix _GpiQueryModelTransformMatrix
|
---|
8328 |
|
---|
8329 | inline LONG _GpiQueryNearestColor(HPS a, ULONG b, LONG c)
|
---|
8330 | {
|
---|
8331 | LONG yyrc;
|
---|
8332 | USHORT sel = GetFS();
|
---|
8333 |
|
---|
8334 | yyrc = GpiQueryNearestColor(a, b, c);
|
---|
8335 | SetFS(sel);
|
---|
8336 |
|
---|
8337 | return yyrc;
|
---|
8338 | }
|
---|
8339 |
|
---|
8340 | #undef GpiQueryNearestColor
|
---|
8341 | #define GpiQueryNearestColor _GpiQueryNearestColor
|
---|
8342 |
|
---|
8343 | inline LONG _GpiQueryNumberSetIds(HPS a)
|
---|
8344 | {
|
---|
8345 | LONG yyrc;
|
---|
8346 | USHORT sel = GetFS();
|
---|
8347 |
|
---|
8348 | yyrc = GpiQueryNumberSetIds(a);
|
---|
8349 | SetFS(sel);
|
---|
8350 |
|
---|
8351 | return yyrc;
|
---|
8352 | }
|
---|
8353 |
|
---|
8354 | #undef GpiQueryNumberSetIds
|
---|
8355 | #define GpiQueryNumberSetIds _GpiQueryNumberSetIds
|
---|
8356 |
|
---|
8357 | inline BOOL _GpiQueryPageViewport(HPS a, PRECTL b)
|
---|
8358 | {
|
---|
8359 | BOOL yyrc;
|
---|
8360 | USHORT sel = GetFS();
|
---|
8361 |
|
---|
8362 | yyrc = GpiQueryPageViewport(a, b);
|
---|
8363 | SetFS(sel);
|
---|
8364 |
|
---|
8365 | return yyrc;
|
---|
8366 | }
|
---|
8367 |
|
---|
8368 | #undef GpiQueryPageViewport
|
---|
8369 | #define GpiQueryPageViewport _GpiQueryPageViewport
|
---|
8370 |
|
---|
8371 | inline HPAL _GpiQueryPalette(HPS a)
|
---|
8372 | {
|
---|
8373 | HPAL yyrc;
|
---|
8374 | USHORT sel = GetFS();
|
---|
8375 |
|
---|
8376 | yyrc = GpiQueryPalette(a);
|
---|
8377 | SetFS(sel);
|
---|
8378 |
|
---|
8379 | return yyrc;
|
---|
8380 | }
|
---|
8381 |
|
---|
8382 | #undef GpiQueryPalette
|
---|
8383 | #define GpiQueryPalette _GpiQueryPalette
|
---|
8384 |
|
---|
8385 | inline LONG _GpiQueryPaletteInfo(HPAL a, HPS b, ULONG c, ULONG d, ULONG e, PULONG f)
|
---|
8386 | {
|
---|
8387 | LONG yyrc;
|
---|
8388 | USHORT sel = GetFS();
|
---|
8389 |
|
---|
8390 | yyrc = GpiQueryPaletteInfo(a, b, c, d, e, f);
|
---|
8391 | SetFS(sel);
|
---|
8392 |
|
---|
8393 | return yyrc;
|
---|
8394 | }
|
---|
8395 |
|
---|
8396 | #undef GpiQueryPaletteInfo
|
---|
8397 | #define GpiQueryPaletteInfo _GpiQueryPaletteInfo
|
---|
8398 |
|
---|
8399 | inline LONG _GpiQueryPattern(HPS a)
|
---|
8400 | {
|
---|
8401 | LONG yyrc;
|
---|
8402 | USHORT sel = GetFS();
|
---|
8403 |
|
---|
8404 | yyrc = GpiQueryPattern(a);
|
---|
8405 | SetFS(sel);
|
---|
8406 |
|
---|
8407 | return yyrc;
|
---|
8408 | }
|
---|
8409 |
|
---|
8410 | #undef GpiQueryPattern
|
---|
8411 | #define GpiQueryPattern _GpiQueryPattern
|
---|
8412 |
|
---|
8413 | inline BOOL _GpiQueryPatternRefPoint(HPS a, PPOINTL b)
|
---|
8414 | {
|
---|
8415 | BOOL yyrc;
|
---|
8416 | USHORT sel = GetFS();
|
---|
8417 |
|
---|
8418 | yyrc = GpiQueryPatternRefPoint(a, b);
|
---|
8419 | SetFS(sel);
|
---|
8420 |
|
---|
8421 | return yyrc;
|
---|
8422 | }
|
---|
8423 |
|
---|
8424 | #undef GpiQueryPatternRefPoint
|
---|
8425 | #define GpiQueryPatternRefPoint _GpiQueryPatternRefPoint
|
---|
8426 |
|
---|
8427 | inline LONG _GpiQueryPatternSet(HPS a)
|
---|
8428 | {
|
---|
8429 | LONG yyrc;
|
---|
8430 | USHORT sel = GetFS();
|
---|
8431 |
|
---|
8432 | yyrc = GpiQueryPatternSet(a);
|
---|
8433 | SetFS(sel);
|
---|
8434 |
|
---|
8435 | return yyrc;
|
---|
8436 | }
|
---|
8437 |
|
---|
8438 | #undef GpiQueryPatternSet
|
---|
8439 | #define GpiQueryPatternSet _GpiQueryPatternSet
|
---|
8440 |
|
---|
8441 | inline LONG _GpiQueryRealColors(HPS a, ULONG b, LONG c, LONG d, PLONG e)
|
---|
8442 | {
|
---|
8443 | LONG yyrc;
|
---|
8444 | USHORT sel = GetFS();
|
---|
8445 |
|
---|
8446 | yyrc = GpiQueryRealColors(a, b, c, d, e);
|
---|
8447 | SetFS(sel);
|
---|
8448 |
|
---|
8449 | return yyrc;
|
---|
8450 | }
|
---|
8451 |
|
---|
8452 | #undef GpiQueryRealColors
|
---|
8453 | #define GpiQueryRealColors _GpiQueryRealColors
|
---|
8454 |
|
---|
8455 | inline LONG _GpiQueryRegionBox(HPS a, HRGN b, PRECTL c)
|
---|
8456 | {
|
---|
8457 | LONG yyrc;
|
---|
8458 | USHORT sel = GetFS();
|
---|
8459 |
|
---|
8460 | yyrc = GpiQueryRegionBox(a, b, c);
|
---|
8461 | SetFS(sel);
|
---|
8462 |
|
---|
8463 | return yyrc;
|
---|
8464 | }
|
---|
8465 |
|
---|
8466 | #undef GpiQueryRegionBox
|
---|
8467 | #define GpiQueryRegionBox _GpiQueryRegionBox
|
---|
8468 |
|
---|
8469 | inline BOOL _GpiQueryRegionRects(HPS a, HRGN b, PRECTL c, PRGNRECT d, PRECTL e)
|
---|
8470 | {
|
---|
8471 | BOOL yyrc;
|
---|
8472 | USHORT sel = GetFS();
|
---|
8473 |
|
---|
8474 | yyrc = GpiQueryRegionRects(a, b, c, d, e);
|
---|
8475 | SetFS(sel);
|
---|
8476 |
|
---|
8477 | return yyrc;
|
---|
8478 | }
|
---|
8479 |
|
---|
8480 | #undef GpiQueryRegionRects
|
---|
8481 | #define GpiQueryRegionRects _GpiQueryRegionRects
|
---|
8482 |
|
---|
8483 | inline LONG _GpiQueryRGBColor(HPS a, ULONG b, LONG c)
|
---|
8484 | {
|
---|
8485 | LONG yyrc;
|
---|
8486 | USHORT sel = GetFS();
|
---|
8487 |
|
---|
8488 | yyrc = GpiQueryRGBColor(a, b, c);
|
---|
8489 | SetFS(sel);
|
---|
8490 |
|
---|
8491 | return yyrc;
|
---|
8492 | }
|
---|
8493 |
|
---|
8494 | #undef GpiQueryRGBColor
|
---|
8495 | #define GpiQueryRGBColor _GpiQueryRGBColor
|
---|
8496 |
|
---|
8497 | inline BOOL _GpiQuerySegmentTransformMatrix(HPS a, LONG b, LONG c, PMATRIXLF d)
|
---|
8498 | {
|
---|
8499 | BOOL yyrc;
|
---|
8500 | USHORT sel = GetFS();
|
---|
8501 |
|
---|
8502 | yyrc = GpiQuerySegmentTransformMatrix(a, b, c, d);
|
---|
8503 | SetFS(sel);
|
---|
8504 |
|
---|
8505 | return yyrc;
|
---|
8506 | }
|
---|
8507 |
|
---|
8508 | #undef GpiQuerySegmentTransformMatrix
|
---|
8509 | #define GpiQuerySegmentTransformMatrix _GpiQuerySegmentTransformMatrix
|
---|
8510 |
|
---|
8511 | inline BOOL _GpiQuerySetIds(HPS a, LONG b, PLONG c, PSTR8 d, PLONG e)
|
---|
8512 | {
|
---|
8513 | BOOL yyrc;
|
---|
8514 | USHORT sel = GetFS();
|
---|
8515 |
|
---|
8516 | yyrc = GpiQuerySetIds(a, b, c, d, e);
|
---|
8517 | SetFS(sel);
|
---|
8518 |
|
---|
8519 | return yyrc;
|
---|
8520 | }
|
---|
8521 |
|
---|
8522 | #undef GpiQuerySetIds
|
---|
8523 | #define GpiQuerySetIds _GpiQuerySetIds
|
---|
8524 |
|
---|
8525 | inline BOOL _GpiQueryTextAlignment(HPS a, PLONG b, PLONG c)
|
---|
8526 | {
|
---|
8527 | BOOL yyrc;
|
---|
8528 | USHORT sel = GetFS();
|
---|
8529 |
|
---|
8530 | yyrc = GpiQueryTextAlignment(a, b, c);
|
---|
8531 | SetFS(sel);
|
---|
8532 |
|
---|
8533 | return yyrc;
|
---|
8534 | }
|
---|
8535 |
|
---|
8536 | #undef GpiQueryTextAlignment
|
---|
8537 | #define GpiQueryTextAlignment _GpiQueryTextAlignment
|
---|
8538 |
|
---|
8539 | inline BOOL _GpiQueryTextBox(HPS a, LONG b, PCH c, LONG d, PPOINTL e)
|
---|
8540 | {
|
---|
8541 | BOOL yyrc;
|
---|
8542 | USHORT sel = GetFS();
|
---|
8543 |
|
---|
8544 | yyrc = GpiQueryTextBox(a, b, c, d, e);
|
---|
8545 | SetFS(sel);
|
---|
8546 |
|
---|
8547 | return yyrc;
|
---|
8548 | }
|
---|
8549 |
|
---|
8550 | #undef GpiQueryTextBox
|
---|
8551 | #define GpiQueryTextBox _GpiQueryTextBox
|
---|
8552 |
|
---|
8553 | inline BOOL _GpiQueryViewingLimits(HPS a, PRECTL b)
|
---|
8554 | {
|
---|
8555 | BOOL yyrc;
|
---|
8556 | USHORT sel = GetFS();
|
---|
8557 |
|
---|
8558 | yyrc = GpiQueryViewingLimits(a, b);
|
---|
8559 | SetFS(sel);
|
---|
8560 |
|
---|
8561 | return yyrc;
|
---|
8562 | }
|
---|
8563 |
|
---|
8564 | #undef GpiQueryViewingLimits
|
---|
8565 | #define GpiQueryViewingLimits _GpiQueryViewingLimits
|
---|
8566 |
|
---|
8567 | inline BOOL _GpiQueryViewingTransformMatrix(HPS a, LONG b, PMATRIXLF c)
|
---|
8568 | {
|
---|
8569 | BOOL yyrc;
|
---|
8570 | USHORT sel = GetFS();
|
---|
8571 |
|
---|
8572 | yyrc = GpiQueryViewingTransformMatrix(a, b, c);
|
---|
8573 | SetFS(sel);
|
---|
8574 |
|
---|
8575 | return yyrc;
|
---|
8576 | }
|
---|
8577 |
|
---|
8578 | #undef GpiQueryViewingTransformMatrix
|
---|
8579 | #define GpiQueryViewingTransformMatrix _GpiQueryViewingTransformMatrix
|
---|
8580 |
|
---|
8581 | inline BOOL _GpiQueryWidthTable(HPS a, LONG b, LONG c, PLONG d)
|
---|
8582 | {
|
---|
8583 | BOOL yyrc;
|
---|
8584 | USHORT sel = GetFS();
|
---|
8585 |
|
---|
8586 | yyrc = GpiQueryWidthTable(a, b, c, d);
|
---|
8587 | SetFS(sel);
|
---|
8588 |
|
---|
8589 | return yyrc;
|
---|
8590 | }
|
---|
8591 |
|
---|
8592 | #undef GpiQueryWidthTable
|
---|
8593 | #define GpiQueryWidthTable _GpiQueryWidthTable
|
---|
8594 |
|
---|
8595 | inline LONG _GpiRectInRegion(HPS a, HRGN b, PRECTL c)
|
---|
8596 | {
|
---|
8597 | LONG yyrc;
|
---|
8598 | USHORT sel = GetFS();
|
---|
8599 |
|
---|
8600 | yyrc = GpiRectInRegion(a, b, c);
|
---|
8601 | SetFS(sel);
|
---|
8602 |
|
---|
8603 | return yyrc;
|
---|
8604 | }
|
---|
8605 |
|
---|
8606 | #undef GpiRectInRegion
|
---|
8607 | #define GpiRectInRegion _GpiRectInRegion
|
---|
8608 |
|
---|
8609 | inline LONG _GpiRectVisible(HPS a, PRECTL b)
|
---|
8610 | {
|
---|
8611 | LONG yyrc;
|
---|
8612 | USHORT sel = GetFS();
|
---|
8613 |
|
---|
8614 | yyrc = GpiRectVisible(a, b);
|
---|
8615 | SetFS(sel);
|
---|
8616 |
|
---|
8617 | return yyrc;
|
---|
8618 | }
|
---|
8619 |
|
---|
8620 | #undef GpiRectVisible
|
---|
8621 | #define GpiRectVisible _GpiRectVisible
|
---|
8622 |
|
---|
8623 | inline BOOL _GpiRotate(HPS a, PMATRIXLF b, LONG c, FIXED d, PPOINTL e)
|
---|
8624 | {
|
---|
8625 | BOOL yyrc;
|
---|
8626 | USHORT sel = GetFS();
|
---|
8627 |
|
---|
8628 | yyrc = GpiRotate(a, b, c, d, e);
|
---|
8629 | SetFS(sel);
|
---|
8630 |
|
---|
8631 | return yyrc;
|
---|
8632 | }
|
---|
8633 |
|
---|
8634 | #undef GpiRotate
|
---|
8635 | #define GpiRotate _GpiRotate
|
---|
8636 |
|
---|
8637 | inline BOOL _GpiSaveMetaFile(HMF a, PCSZ b)
|
---|
8638 | {
|
---|
8639 | BOOL yyrc;
|
---|
8640 | USHORT sel = GetFS();
|
---|
8641 |
|
---|
8642 | yyrc = GpiSaveMetaFile(a, b);
|
---|
8643 | SetFS(sel);
|
---|
8644 |
|
---|
8645 | return yyrc;
|
---|
8646 | }
|
---|
8647 |
|
---|
8648 | #undef GpiSaveMetaFile
|
---|
8649 | #define GpiSaveMetaFile _GpiSaveMetaFile
|
---|
8650 |
|
---|
8651 | inline BOOL _GpiScale(HPS a, PMATRIXLF b, LONG c, PFIXED d, PPOINTL e)
|
---|
8652 | {
|
---|
8653 | BOOL yyrc;
|
---|
8654 | USHORT sel = GetFS();
|
---|
8655 |
|
---|
8656 | yyrc = GpiScale(a, b, c, d, e);
|
---|
8657 | SetFS(sel);
|
---|
8658 |
|
---|
8659 | return yyrc;
|
---|
8660 | }
|
---|
8661 |
|
---|
8662 | #undef GpiScale
|
---|
8663 | #define GpiScale _GpiScale
|
---|
8664 |
|
---|
8665 | inline HPAL _GpiSelectPalette(HPS a, HPAL b)
|
---|
8666 | {
|
---|
8667 | HPAL yyrc;
|
---|
8668 | USHORT sel = GetFS();
|
---|
8669 |
|
---|
8670 | yyrc = GpiSelectPalette(a, b);
|
---|
8671 | SetFS(sel);
|
---|
8672 |
|
---|
8673 | return yyrc;
|
---|
8674 | }
|
---|
8675 |
|
---|
8676 | #undef GpiSelectPalette
|
---|
8677 | #define GpiSelectPalette _GpiSelectPalette
|
---|
8678 |
|
---|
8679 | inline BOOL _GpiSetArcParams(HPS a, PARCPARAMS b)
|
---|
8680 | {
|
---|
8681 | BOOL yyrc;
|
---|
8682 | USHORT sel = GetFS();
|
---|
8683 |
|
---|
8684 | yyrc = GpiSetArcParams(a, b);
|
---|
8685 | SetFS(sel);
|
---|
8686 |
|
---|
8687 | return yyrc;
|
---|
8688 | }
|
---|
8689 |
|
---|
8690 | #undef GpiSetArcParams
|
---|
8691 | #define GpiSetArcParams _GpiSetArcParams
|
---|
8692 |
|
---|
8693 | inline BOOL _GpiSetAttrMode(HPS a, LONG b)
|
---|
8694 | {
|
---|
8695 | BOOL yyrc;
|
---|
8696 | USHORT sel = GetFS();
|
---|
8697 |
|
---|
8698 | yyrc = GpiSetAttrMode(a, b);
|
---|
8699 | SetFS(sel);
|
---|
8700 |
|
---|
8701 | return yyrc;
|
---|
8702 | }
|
---|
8703 |
|
---|
8704 | #undef GpiSetAttrMode
|
---|
8705 | #define GpiSetAttrMode _GpiSetAttrMode
|
---|
8706 |
|
---|
8707 | inline BOOL _GpiSetAttrs(HPS a, LONG b, ULONG c, ULONG d, PVOID e)
|
---|
8708 | {
|
---|
8709 | BOOL yyrc;
|
---|
8710 | USHORT sel = GetFS();
|
---|
8711 |
|
---|
8712 | yyrc = GpiSetAttrs(a, b, c, d, e);
|
---|
8713 | SetFS(sel);
|
---|
8714 |
|
---|
8715 | return yyrc;
|
---|
8716 | }
|
---|
8717 |
|
---|
8718 | #undef GpiSetAttrs
|
---|
8719 | #define GpiSetAttrs _GpiSetAttrs
|
---|
8720 |
|
---|
8721 | inline BOOL _GpiSetBackColor(HPS a, LONG b)
|
---|
8722 | {
|
---|
8723 | BOOL yyrc;
|
---|
8724 | USHORT sel = GetFS();
|
---|
8725 |
|
---|
8726 | yyrc = GpiSetBackColor(a, b);
|
---|
8727 | SetFS(sel);
|
---|
8728 |
|
---|
8729 | return yyrc;
|
---|
8730 | }
|
---|
8731 |
|
---|
8732 | #undef GpiSetBackColor
|
---|
8733 | #define GpiSetBackColor _GpiSetBackColor
|
---|
8734 |
|
---|
8735 | inline BOOL _GpiSetBackMix(HPS a, LONG b)
|
---|
8736 | {
|
---|
8737 | BOOL yyrc;
|
---|
8738 | USHORT sel = GetFS();
|
---|
8739 |
|
---|
8740 | yyrc = GpiSetBackMix(a, b);
|
---|
8741 | SetFS(sel);
|
---|
8742 |
|
---|
8743 | return yyrc;
|
---|
8744 | }
|
---|
8745 |
|
---|
8746 | #undef GpiSetBackMix
|
---|
8747 | #define GpiSetBackMix _GpiSetBackMix
|
---|
8748 |
|
---|
8749 | inline BOOL _GpiSetCharAngle(HPS a, PGRADIENTL b)
|
---|
8750 | {
|
---|
8751 | BOOL yyrc;
|
---|
8752 | USHORT sel = GetFS();
|
---|
8753 |
|
---|
8754 | yyrc = GpiSetCharAngle(a, b);
|
---|
8755 | SetFS(sel);
|
---|
8756 |
|
---|
8757 | return yyrc;
|
---|
8758 | }
|
---|
8759 |
|
---|
8760 | #undef GpiSetCharAngle
|
---|
8761 | #define GpiSetCharAngle _GpiSetCharAngle
|
---|
8762 |
|
---|
8763 | inline BOOL _GpiSetCharBox(HPS a, PSIZEF b)
|
---|
8764 | {
|
---|
8765 | BOOL yyrc;
|
---|
8766 | USHORT sel = GetFS();
|
---|
8767 |
|
---|
8768 | yyrc = GpiSetCharBox(a, b);
|
---|
8769 | SetFS(sel);
|
---|
8770 |
|
---|
8771 | return yyrc;
|
---|
8772 | }
|
---|
8773 |
|
---|
8774 | #undef GpiSetCharBox
|
---|
8775 | #define GpiSetCharBox _GpiSetCharBox
|
---|
8776 |
|
---|
8777 | inline BOOL _GpiSetCharBreakExtra(HPS a, FIXED b)
|
---|
8778 | {
|
---|
8779 | BOOL yyrc;
|
---|
8780 | USHORT sel = GetFS();
|
---|
8781 |
|
---|
8782 | yyrc = GpiSetCharBreakExtra(a, b);
|
---|
8783 | SetFS(sel);
|
---|
8784 |
|
---|
8785 | return yyrc;
|
---|
8786 | }
|
---|
8787 |
|
---|
8788 | #undef GpiSetCharBreakExtra
|
---|
8789 | #define GpiSetCharBreakExtra _GpiSetCharBreakExtra
|
---|
8790 |
|
---|
8791 | inline BOOL _GpiSetCharDirection(HPS a, LONG b)
|
---|
8792 | {
|
---|
8793 | BOOL yyrc;
|
---|
8794 | USHORT sel = GetFS();
|
---|
8795 |
|
---|
8796 | yyrc = GpiSetCharDirection(a, b);
|
---|
8797 | SetFS(sel);
|
---|
8798 |
|
---|
8799 | return yyrc;
|
---|
8800 | }
|
---|
8801 |
|
---|
8802 | #undef GpiSetCharDirection
|
---|
8803 | #define GpiSetCharDirection _GpiSetCharDirection
|
---|
8804 |
|
---|
8805 | inline BOOL _GpiSetCharExtra(HPS a, FIXED b)
|
---|
8806 | {
|
---|
8807 | BOOL yyrc;
|
---|
8808 | USHORT sel = GetFS();
|
---|
8809 |
|
---|
8810 | yyrc = GpiSetCharExtra(a, b);
|
---|
8811 | SetFS(sel);
|
---|
8812 |
|
---|
8813 | return yyrc;
|
---|
8814 | }
|
---|
8815 |
|
---|
8816 | #undef GpiSetCharExtra
|
---|
8817 | #define GpiSetCharExtra _GpiSetCharExtra
|
---|
8818 |
|
---|
8819 | inline BOOL _GpiSetCharMode(HPS a, LONG b)
|
---|
8820 | {
|
---|
8821 | BOOL yyrc;
|
---|
8822 | USHORT sel = GetFS();
|
---|
8823 |
|
---|
8824 | yyrc = GpiSetCharMode(a, b);
|
---|
8825 | SetFS(sel);
|
---|
8826 |
|
---|
8827 | return yyrc;
|
---|
8828 | }
|
---|
8829 |
|
---|
8830 | #undef GpiSetCharMode
|
---|
8831 | #define GpiSetCharMode _GpiSetCharMode
|
---|
8832 |
|
---|
8833 | inline BOOL _GpiSetCharSet(HPS a, LONG b)
|
---|
8834 | {
|
---|
8835 | BOOL yyrc;
|
---|
8836 | USHORT sel = GetFS();
|
---|
8837 |
|
---|
8838 | yyrc = GpiSetCharSet(a, b);
|
---|
8839 | SetFS(sel);
|
---|
8840 |
|
---|
8841 | return yyrc;
|
---|
8842 | }
|
---|
8843 |
|
---|
8844 | #undef GpiSetCharSet
|
---|
8845 | #define GpiSetCharSet _GpiSetCharSet
|
---|
8846 |
|
---|
8847 | inline BOOL _GpiSetCharShear(HPS a, PPOINTL b)
|
---|
8848 | {
|
---|
8849 | BOOL yyrc;
|
---|
8850 | USHORT sel = GetFS();
|
---|
8851 |
|
---|
8852 | yyrc = GpiSetCharShear(a, b);
|
---|
8853 | SetFS(sel);
|
---|
8854 |
|
---|
8855 | return yyrc;
|
---|
8856 | }
|
---|
8857 |
|
---|
8858 | #undef GpiSetCharShear
|
---|
8859 | #define GpiSetCharShear _GpiSetCharShear
|
---|
8860 |
|
---|
8861 | inline BOOL _GpiSetClipPath(HPS a, LONG b, LONG c)
|
---|
8862 | {
|
---|
8863 | BOOL yyrc;
|
---|
8864 | USHORT sel = GetFS();
|
---|
8865 |
|
---|
8866 | yyrc = GpiSetClipPath(a, b, c);
|
---|
8867 | SetFS(sel);
|
---|
8868 |
|
---|
8869 | return yyrc;
|
---|
8870 | }
|
---|
8871 |
|
---|
8872 | #undef GpiSetClipPath
|
---|
8873 | #define GpiSetClipPath _GpiSetClipPath
|
---|
8874 |
|
---|
8875 | inline LONG _GpiSetClipRegion(HPS a, HRGN b, PHRGN c)
|
---|
8876 | {
|
---|
8877 | LONG yyrc;
|
---|
8878 | USHORT sel = GetFS();
|
---|
8879 |
|
---|
8880 | yyrc = GpiSetClipRegion(a, b, c);
|
---|
8881 | SetFS(sel);
|
---|
8882 |
|
---|
8883 | return yyrc;
|
---|
8884 | }
|
---|
8885 |
|
---|
8886 | #undef GpiSetClipRegion
|
---|
8887 | #define GpiSetClipRegion _GpiSetClipRegion
|
---|
8888 |
|
---|
8889 | inline BOOL _GpiSetColor(HPS a, LONG b)
|
---|
8890 | {
|
---|
8891 | BOOL yyrc;
|
---|
8892 | USHORT sel = GetFS();
|
---|
8893 |
|
---|
8894 | yyrc = GpiSetColor(a, b);
|
---|
8895 | SetFS(sel);
|
---|
8896 |
|
---|
8897 | return yyrc;
|
---|
8898 | }
|
---|
8899 |
|
---|
8900 | #undef GpiSetColor
|
---|
8901 | #define GpiSetColor _GpiSetColor
|
---|
8902 |
|
---|
8903 | inline BOOL _GpiSetCp(HPS a, ULONG b)
|
---|
8904 | {
|
---|
8905 | BOOL yyrc;
|
---|
8906 | USHORT sel = GetFS();
|
---|
8907 |
|
---|
8908 | yyrc = GpiSetCp(a, b);
|
---|
8909 | SetFS(sel);
|
---|
8910 |
|
---|
8911 | return yyrc;
|
---|
8912 | }
|
---|
8913 |
|
---|
8914 | #undef GpiSetCp
|
---|
8915 | #define GpiSetCp _GpiSetCp
|
---|
8916 |
|
---|
8917 | inline BOOL _GpiSetCurrentPosition(HPS a, PPOINTL b)
|
---|
8918 | {
|
---|
8919 | BOOL yyrc;
|
---|
8920 | USHORT sel = GetFS();
|
---|
8921 |
|
---|
8922 | yyrc = GpiSetCurrentPosition(a, b);
|
---|
8923 | SetFS(sel);
|
---|
8924 |
|
---|
8925 | return yyrc;
|
---|
8926 | }
|
---|
8927 |
|
---|
8928 | #undef GpiSetCurrentPosition
|
---|
8929 | #define GpiSetCurrentPosition _GpiSetCurrentPosition
|
---|
8930 |
|
---|
8931 | inline BOOL _GpiSetDefArcParams(HPS a, PARCPARAMS b)
|
---|
8932 | {
|
---|
8933 | BOOL yyrc;
|
---|
8934 | USHORT sel = GetFS();
|
---|
8935 |
|
---|
8936 | yyrc = GpiSetDefArcParams(a, b);
|
---|
8937 | SetFS(sel);
|
---|
8938 |
|
---|
8939 | return yyrc;
|
---|
8940 | }
|
---|
8941 |
|
---|
8942 | #undef GpiSetDefArcParams
|
---|
8943 | #define GpiSetDefArcParams _GpiSetDefArcParams
|
---|
8944 |
|
---|
8945 | inline BOOL _GpiSetDefAttrs(HPS a, LONG b, ULONG c, PVOID d)
|
---|
8946 | {
|
---|
8947 | BOOL yyrc;
|
---|
8948 | USHORT sel = GetFS();
|
---|
8949 |
|
---|
8950 | yyrc = GpiSetDefAttrs(a, b, c, d);
|
---|
8951 | SetFS(sel);
|
---|
8952 |
|
---|
8953 | return yyrc;
|
---|
8954 | }
|
---|
8955 |
|
---|
8956 | #undef GpiSetDefAttrs
|
---|
8957 | #define GpiSetDefAttrs _GpiSetDefAttrs
|
---|
8958 |
|
---|
8959 | inline BOOL _GpiSetDefaultViewMatrix(HPS a, LONG b, PMATRIXLF c, LONG d)
|
---|
8960 | {
|
---|
8961 | BOOL yyrc;
|
---|
8962 | USHORT sel = GetFS();
|
---|
8963 |
|
---|
8964 | yyrc = GpiSetDefaultViewMatrix(a, b, c, d);
|
---|
8965 | SetFS(sel);
|
---|
8966 |
|
---|
8967 | return yyrc;
|
---|
8968 | }
|
---|
8969 |
|
---|
8970 | #undef GpiSetDefaultViewMatrix
|
---|
8971 | #define GpiSetDefaultViewMatrix _GpiSetDefaultViewMatrix
|
---|
8972 |
|
---|
8973 | inline BOOL _GpiSetDefTag(HPS a, LONG b)
|
---|
8974 | {
|
---|
8975 | BOOL yyrc;
|
---|
8976 | USHORT sel = GetFS();
|
---|
8977 |
|
---|
8978 | yyrc = GpiSetDefTag(a, b);
|
---|
8979 | SetFS(sel);
|
---|
8980 |
|
---|
8981 | return yyrc;
|
---|
8982 | }
|
---|
8983 |
|
---|
8984 | #undef GpiSetDefTag
|
---|
8985 | #define GpiSetDefTag _GpiSetDefTag
|
---|
8986 |
|
---|
8987 | inline BOOL _GpiSetDefViewingLimits(HPS a, PRECTL b)
|
---|
8988 | {
|
---|
8989 | BOOL yyrc;
|
---|
8990 | USHORT sel = GetFS();
|
---|
8991 |
|
---|
8992 | yyrc = GpiSetDefViewingLimits(a, b);
|
---|
8993 | SetFS(sel);
|
---|
8994 |
|
---|
8995 | return yyrc;
|
---|
8996 | }
|
---|
8997 |
|
---|
8998 | #undef GpiSetDefViewingLimits
|
---|
8999 | #define GpiSetDefViewingLimits _GpiSetDefViewingLimits
|
---|
9000 |
|
---|
9001 | inline BOOL _GpiSetEditMode(HPS a, LONG b)
|
---|
9002 | {
|
---|
9003 | BOOL yyrc;
|
---|
9004 | USHORT sel = GetFS();
|
---|
9005 |
|
---|
9006 | yyrc = GpiSetEditMode(a, b);
|
---|
9007 | SetFS(sel);
|
---|
9008 |
|
---|
9009 | return yyrc;
|
---|
9010 | }
|
---|
9011 |
|
---|
9012 | #undef GpiSetEditMode
|
---|
9013 | #define GpiSetEditMode _GpiSetEditMode
|
---|
9014 |
|
---|
9015 | inline BOOL _GpiSetElementPointer(HPS a, LONG b)
|
---|
9016 | {
|
---|
9017 | BOOL yyrc;
|
---|
9018 | USHORT sel = GetFS();
|
---|
9019 |
|
---|
9020 | yyrc = GpiSetElementPointer(a, b);
|
---|
9021 | SetFS(sel);
|
---|
9022 |
|
---|
9023 | return yyrc;
|
---|
9024 | }
|
---|
9025 |
|
---|
9026 | #undef GpiSetElementPointer
|
---|
9027 | #define GpiSetElementPointer _GpiSetElementPointer
|
---|
9028 |
|
---|
9029 | inline BOOL _GpiSetElementPointerAtLabel(HPS a, LONG b)
|
---|
9030 | {
|
---|
9031 | BOOL yyrc;
|
---|
9032 | USHORT sel = GetFS();
|
---|
9033 |
|
---|
9034 | yyrc = GpiSetElementPointerAtLabel(a, b);
|
---|
9035 | SetFS(sel);
|
---|
9036 |
|
---|
9037 | return yyrc;
|
---|
9038 | }
|
---|
9039 |
|
---|
9040 | #undef GpiSetElementPointerAtLabel
|
---|
9041 | #define GpiSetElementPointerAtLabel _GpiSetElementPointerAtLabel
|
---|
9042 |
|
---|
9043 | inline BOOL _GpiSetGraphicsField(HPS a, PRECTL b)
|
---|
9044 | {
|
---|
9045 | BOOL yyrc;
|
---|
9046 | USHORT sel = GetFS();
|
---|
9047 |
|
---|
9048 | yyrc = GpiSetGraphicsField(a, b);
|
---|
9049 | SetFS(sel);
|
---|
9050 |
|
---|
9051 | return yyrc;
|
---|
9052 | }
|
---|
9053 |
|
---|
9054 | #undef GpiSetGraphicsField
|
---|
9055 | #define GpiSetGraphicsField _GpiSetGraphicsField
|
---|
9056 |
|
---|
9057 | inline BOOL _GpiSetLineEnd(HPS a, LONG b)
|
---|
9058 | {
|
---|
9059 | BOOL yyrc;
|
---|
9060 | USHORT sel = GetFS();
|
---|
9061 |
|
---|
9062 | yyrc = GpiSetLineEnd(a, b);
|
---|
9063 | SetFS(sel);
|
---|
9064 |
|
---|
9065 | return yyrc;
|
---|
9066 | }
|
---|
9067 |
|
---|
9068 | #undef GpiSetLineEnd
|
---|
9069 | #define GpiSetLineEnd _GpiSetLineEnd
|
---|
9070 |
|
---|
9071 | inline BOOL _GpiSetLineJoin(HPS a, LONG b)
|
---|
9072 | {
|
---|
9073 | BOOL yyrc;
|
---|
9074 | USHORT sel = GetFS();
|
---|
9075 |
|
---|
9076 | yyrc = GpiSetLineJoin(a, b);
|
---|
9077 | SetFS(sel);
|
---|
9078 |
|
---|
9079 | return yyrc;
|
---|
9080 | }
|
---|
9081 |
|
---|
9082 | #undef GpiSetLineJoin
|
---|
9083 | #define GpiSetLineJoin _GpiSetLineJoin
|
---|
9084 |
|
---|
9085 | inline BOOL _GpiSetLineType(HPS a, LONG b)
|
---|
9086 | {
|
---|
9087 | BOOL yyrc;
|
---|
9088 | USHORT sel = GetFS();
|
---|
9089 |
|
---|
9090 | yyrc = GpiSetLineType(a, b);
|
---|
9091 | SetFS(sel);
|
---|
9092 |
|
---|
9093 | return yyrc;
|
---|
9094 | }
|
---|
9095 |
|
---|
9096 | #undef GpiSetLineType
|
---|
9097 | #define GpiSetLineType _GpiSetLineType
|
---|
9098 |
|
---|
9099 | inline BOOL _GpiSetLineWidth(HPS a, FIXED b)
|
---|
9100 | {
|
---|
9101 | BOOL yyrc;
|
---|
9102 | USHORT sel = GetFS();
|
---|
9103 |
|
---|
9104 | yyrc = GpiSetLineWidth(a, b);
|
---|
9105 | SetFS(sel);
|
---|
9106 |
|
---|
9107 | return yyrc;
|
---|
9108 | }
|
---|
9109 |
|
---|
9110 | #undef GpiSetLineWidth
|
---|
9111 | #define GpiSetLineWidth _GpiSetLineWidth
|
---|
9112 |
|
---|
9113 | inline BOOL _GpiSetLineWidthGeom(HPS a, LONG b)
|
---|
9114 | {
|
---|
9115 | BOOL yyrc;
|
---|
9116 | USHORT sel = GetFS();
|
---|
9117 |
|
---|
9118 | yyrc = GpiSetLineWidthGeom(a, b);
|
---|
9119 | SetFS(sel);
|
---|
9120 |
|
---|
9121 | return yyrc;
|
---|
9122 | }
|
---|
9123 |
|
---|
9124 | #undef GpiSetLineWidthGeom
|
---|
9125 | #define GpiSetLineWidthGeom _GpiSetLineWidthGeom
|
---|
9126 |
|
---|
9127 | inline BOOL _GpiSetMarker(HPS a, LONG b)
|
---|
9128 | {
|
---|
9129 | BOOL yyrc;
|
---|
9130 | USHORT sel = GetFS();
|
---|
9131 |
|
---|
9132 | yyrc = GpiSetMarker(a, b);
|
---|
9133 | SetFS(sel);
|
---|
9134 |
|
---|
9135 | return yyrc;
|
---|
9136 | }
|
---|
9137 |
|
---|
9138 | #undef GpiSetMarker
|
---|
9139 | #define GpiSetMarker _GpiSetMarker
|
---|
9140 |
|
---|
9141 | inline BOOL _GpiSetMarkerBox(HPS a, PSIZEF b)
|
---|
9142 | {
|
---|
9143 | BOOL yyrc;
|
---|
9144 | USHORT sel = GetFS();
|
---|
9145 |
|
---|
9146 | yyrc = GpiSetMarkerBox(a, b);
|
---|
9147 | SetFS(sel);
|
---|
9148 |
|
---|
9149 | return yyrc;
|
---|
9150 | }
|
---|
9151 |
|
---|
9152 | #undef GpiSetMarkerBox
|
---|
9153 | #define GpiSetMarkerBox _GpiSetMarkerBox
|
---|
9154 |
|
---|
9155 | inline BOOL _GpiSetMarkerSet(HPS a, LONG b)
|
---|
9156 | {
|
---|
9157 | BOOL yyrc;
|
---|
9158 | USHORT sel = GetFS();
|
---|
9159 |
|
---|
9160 | yyrc = GpiSetMarkerSet(a, b);
|
---|
9161 | SetFS(sel);
|
---|
9162 |
|
---|
9163 | return yyrc;
|
---|
9164 | }
|
---|
9165 |
|
---|
9166 | #undef GpiSetMarkerSet
|
---|
9167 | #define GpiSetMarkerSet _GpiSetMarkerSet
|
---|
9168 |
|
---|
9169 | inline BOOL _GpiSetMetaFileBits(HMF a, LONG b, LONG c, PBYTE d)
|
---|
9170 | {
|
---|
9171 | BOOL yyrc;
|
---|
9172 | USHORT sel = GetFS();
|
---|
9173 |
|
---|
9174 | yyrc = GpiSetMetaFileBits(a, b, c, d);
|
---|
9175 | SetFS(sel);
|
---|
9176 |
|
---|
9177 | return yyrc;
|
---|
9178 | }
|
---|
9179 |
|
---|
9180 | #undef GpiSetMetaFileBits
|
---|
9181 | #define GpiSetMetaFileBits _GpiSetMetaFileBits
|
---|
9182 |
|
---|
9183 | inline BOOL _GpiSetMix(HPS a, LONG b)
|
---|
9184 | {
|
---|
9185 | BOOL yyrc;
|
---|
9186 | USHORT sel = GetFS();
|
---|
9187 |
|
---|
9188 | yyrc = GpiSetMix(a, b);
|
---|
9189 | SetFS(sel);
|
---|
9190 |
|
---|
9191 | return yyrc;
|
---|
9192 | }
|
---|
9193 |
|
---|
9194 | #undef GpiSetMix
|
---|
9195 | #define GpiSetMix _GpiSetMix
|
---|
9196 |
|
---|
9197 | inline BOOL _GpiSetModelTransformMatrix(HPS a, LONG b, PMATRIXLF c, LONG d)
|
---|
9198 | {
|
---|
9199 | BOOL yyrc;
|
---|
9200 | USHORT sel = GetFS();
|
---|
9201 |
|
---|
9202 | yyrc = GpiSetModelTransformMatrix(a, b, c, d);
|
---|
9203 | SetFS(sel);
|
---|
9204 |
|
---|
9205 | return yyrc;
|
---|
9206 | }
|
---|
9207 |
|
---|
9208 | #undef GpiSetModelTransformMatrix
|
---|
9209 | #define GpiSetModelTransformMatrix _GpiSetModelTransformMatrix
|
---|
9210 |
|
---|
9211 | inline BOOL _GpiSetPageViewport(HPS a, PRECTL b)
|
---|
9212 | {
|
---|
9213 | BOOL yyrc;
|
---|
9214 | USHORT sel = GetFS();
|
---|
9215 |
|
---|
9216 | yyrc = GpiSetPageViewport(a, b);
|
---|
9217 | SetFS(sel);
|
---|
9218 |
|
---|
9219 | return yyrc;
|
---|
9220 | }
|
---|
9221 |
|
---|
9222 | #undef GpiSetPageViewport
|
---|
9223 | #define GpiSetPageViewport _GpiSetPageViewport
|
---|
9224 |
|
---|
9225 | inline BOOL _GpiSetPaletteEntries(HPAL a, ULONG b, ULONG c, ULONG d, ULONG *e)
|
---|
9226 | {
|
---|
9227 | BOOL yyrc;
|
---|
9228 | USHORT sel = GetFS();
|
---|
9229 |
|
---|
9230 | yyrc = GpiSetPaletteEntries(a, b, c, d, e);
|
---|
9231 | SetFS(sel);
|
---|
9232 |
|
---|
9233 | return yyrc;
|
---|
9234 | }
|
---|
9235 |
|
---|
9236 | #undef GpiSetPaletteEntries
|
---|
9237 | #define GpiSetPaletteEntries _GpiSetPaletteEntries
|
---|
9238 |
|
---|
9239 | inline BOOL _GpiSetPattern(HPS a, LONG b)
|
---|
9240 | {
|
---|
9241 | BOOL yyrc;
|
---|
9242 | USHORT sel = GetFS();
|
---|
9243 |
|
---|
9244 | yyrc = GpiSetPattern(a, b);
|
---|
9245 | SetFS(sel);
|
---|
9246 |
|
---|
9247 | return yyrc;
|
---|
9248 | }
|
---|
9249 |
|
---|
9250 | #undef GpiSetPattern
|
---|
9251 | #define GpiSetPattern _GpiSetPattern
|
---|
9252 |
|
---|
9253 | inline BOOL _GpiSetPatternRefPoint(HPS a, PPOINTL b)
|
---|
9254 | {
|
---|
9255 | BOOL yyrc;
|
---|
9256 | USHORT sel = GetFS();
|
---|
9257 |
|
---|
9258 | yyrc = GpiSetPatternRefPoint(a, b);
|
---|
9259 | SetFS(sel);
|
---|
9260 |
|
---|
9261 | return yyrc;
|
---|
9262 | }
|
---|
9263 |
|
---|
9264 | #undef GpiSetPatternRefPoint
|
---|
9265 | #define GpiSetPatternRefPoint _GpiSetPatternRefPoint
|
---|
9266 |
|
---|
9267 | inline BOOL _GpiSetPatternSet(HPS a, LONG b)
|
---|
9268 | {
|
---|
9269 | BOOL yyrc;
|
---|
9270 | USHORT sel = GetFS();
|
---|
9271 |
|
---|
9272 | yyrc = GpiSetPatternSet(a, b);
|
---|
9273 | SetFS(sel);
|
---|
9274 |
|
---|
9275 | return yyrc;
|
---|
9276 | }
|
---|
9277 |
|
---|
9278 | #undef GpiSetPatternSet
|
---|
9279 | #define GpiSetPatternSet _GpiSetPatternSet
|
---|
9280 |
|
---|
9281 | inline BOOL _GpiSetRegion(HPS a, HRGN b, LONG c, PRECTL d)
|
---|
9282 | {
|
---|
9283 | BOOL yyrc;
|
---|
9284 | USHORT sel = GetFS();
|
---|
9285 |
|
---|
9286 | yyrc = GpiSetRegion(a, b, c, d);
|
---|
9287 | SetFS(sel);
|
---|
9288 |
|
---|
9289 | return yyrc;
|
---|
9290 | }
|
---|
9291 |
|
---|
9292 | #undef GpiSetRegion
|
---|
9293 | #define GpiSetRegion _GpiSetRegion
|
---|
9294 |
|
---|
9295 | inline BOOL _GpiSetSegmentTransformMatrix(HPS a, LONG b, LONG c, MATRIXLF *d, LONG e)
|
---|
9296 | {
|
---|
9297 | BOOL yyrc;
|
---|
9298 | USHORT sel = GetFS();
|
---|
9299 |
|
---|
9300 | yyrc = GpiSetSegmentTransformMatrix(a, b, c, d, e);
|
---|
9301 | SetFS(sel);
|
---|
9302 |
|
---|
9303 | return yyrc;
|
---|
9304 | }
|
---|
9305 |
|
---|
9306 | #undef GpiSetSegmentTransformMatrix
|
---|
9307 | #define GpiSetSegmentTransformMatrix _GpiSetSegmentTransformMatrix
|
---|
9308 |
|
---|
9309 | inline BOOL _GpiSetTextAlignment(HPS a, LONG b, LONG c)
|
---|
9310 | {
|
---|
9311 | BOOL yyrc;
|
---|
9312 | USHORT sel = GetFS();
|
---|
9313 |
|
---|
9314 | yyrc = GpiSetTextAlignment(a, b, c);
|
---|
9315 | SetFS(sel);
|
---|
9316 |
|
---|
9317 | return yyrc;
|
---|
9318 | }
|
---|
9319 |
|
---|
9320 | #undef GpiSetTextAlignment
|
---|
9321 | #define GpiSetTextAlignment _GpiSetTextAlignment
|
---|
9322 |
|
---|
9323 | inline BOOL _GpiSetViewingLimits(HPS a, PRECTL b)
|
---|
9324 | {
|
---|
9325 | BOOL yyrc;
|
---|
9326 | USHORT sel = GetFS();
|
---|
9327 |
|
---|
9328 | yyrc = GpiSetViewingLimits(a, b);
|
---|
9329 | SetFS(sel);
|
---|
9330 |
|
---|
9331 | return yyrc;
|
---|
9332 | }
|
---|
9333 |
|
---|
9334 | #undef GpiSetViewingLimits
|
---|
9335 | #define GpiSetViewingLimits _GpiSetViewingLimits
|
---|
9336 |
|
---|
9337 | inline BOOL _GpiSetViewingTransformMatrix(HPS a, LONG b, MATRIXLF *c, LONG d)
|
---|
9338 | {
|
---|
9339 | BOOL yyrc;
|
---|
9340 | USHORT sel = GetFS();
|
---|
9341 |
|
---|
9342 | yyrc = GpiSetViewingTransformMatrix(a, b, c, d);
|
---|
9343 | SetFS(sel);
|
---|
9344 |
|
---|
9345 | return yyrc;
|
---|
9346 | }
|
---|
9347 |
|
---|
9348 | #undef GpiSetViewingTransformMatrix
|
---|
9349 | #define GpiSetViewingTransformMatrix _GpiSetViewingTransformMatrix
|
---|
9350 |
|
---|
9351 | inline LONG _GpiStrokePath(HPS a, LONG b, ULONG c)
|
---|
9352 | {
|
---|
9353 | LONG yyrc;
|
---|
9354 | USHORT sel = GetFS();
|
---|
9355 |
|
---|
9356 | yyrc = GpiStrokePath(a, b, c);
|
---|
9357 | SetFS(sel);
|
---|
9358 |
|
---|
9359 | return yyrc;
|
---|
9360 | }
|
---|
9361 |
|
---|
9362 | #undef GpiStrokePath
|
---|
9363 | #define GpiStrokePath _GpiStrokePath
|
---|
9364 |
|
---|
9365 | inline BOOL _GpiTranslate(HPS a, PMATRIXLF b, LONG c, PPOINTL d)
|
---|
9366 | {
|
---|
9367 | BOOL yyrc;
|
---|
9368 | USHORT sel = GetFS();
|
---|
9369 |
|
---|
9370 | yyrc = GpiTranslate(a, b, c, d);
|
---|
9371 | SetFS(sel);
|
---|
9372 |
|
---|
9373 | return yyrc;
|
---|
9374 | }
|
---|
9375 |
|
---|
9376 | #undef GpiTranslate
|
---|
9377 | #define GpiTranslate _GpiTranslate
|
---|
9378 |
|
---|
9379 | inline BOOL _GpiUnloadFonts(HAB a, PCSZ b)
|
---|
9380 | {
|
---|
9381 | BOOL yyrc;
|
---|
9382 | USHORT sel = GetFS();
|
---|
9383 |
|
---|
9384 | yyrc = GpiUnloadFonts(a, b);
|
---|
9385 | SetFS(sel);
|
---|
9386 |
|
---|
9387 | return yyrc;
|
---|
9388 | }
|
---|
9389 |
|
---|
9390 | #undef GpiUnloadFonts
|
---|
9391 | #define GpiUnloadFonts _GpiUnloadFonts
|
---|
9392 |
|
---|
9393 | inline BOOL _GpiUnloadPublicFonts(HAB a, PCSZ b)
|
---|
9394 | {
|
---|
9395 | BOOL yyrc;
|
---|
9396 | USHORT sel = GetFS();
|
---|
9397 |
|
---|
9398 | yyrc = GpiUnloadPublicFonts(a, b);
|
---|
9399 | SetFS(sel);
|
---|
9400 |
|
---|
9401 | return yyrc;
|
---|
9402 | }
|
---|
9403 |
|
---|
9404 | #undef GpiUnloadPublicFonts
|
---|
9405 | #define GpiUnloadPublicFonts _GpiUnloadPublicFonts
|
---|
9406 |
|
---|
9407 | #ifdef INCL_GPIBITMAPS
|
---|
9408 | inline LONG _GpiBitBlt(HPS a, HPS b, LONG c, PPOINTL d, LONG e, ULONG f)
|
---|
9409 | {
|
---|
9410 | LONG yyrc;
|
---|
9411 | USHORT sel = GetFS();
|
---|
9412 |
|
---|
9413 | yyrc = GpiBitBlt(a, b, c, d, e, f);
|
---|
9414 | SetFS(sel);
|
---|
9415 |
|
---|
9416 | return yyrc;
|
---|
9417 | }
|
---|
9418 |
|
---|
9419 | #undef GpiBitBlt
|
---|
9420 | #define GpiBitBlt _GpiBitBlt
|
---|
9421 |
|
---|
9422 | inline BOOL _GpiDeleteBitmap(HBITMAP a)
|
---|
9423 | {
|
---|
9424 | BOOL yyrc;
|
---|
9425 | USHORT sel = GetFS();
|
---|
9426 |
|
---|
9427 | yyrc = GpiDeleteBitmap(a);
|
---|
9428 | SetFS(sel);
|
---|
9429 |
|
---|
9430 | return yyrc;
|
---|
9431 | }
|
---|
9432 |
|
---|
9433 | #undef GpiDeleteBitmap
|
---|
9434 | #define GpiDeleteBitmap _GpiDeleteBitmap
|
---|
9435 |
|
---|
9436 | inline HBITMAP _GpiLoadBitmap(HPS a, HMODULE b, ULONG c, LONG d, LONG e)
|
---|
9437 | {
|
---|
9438 | HBITMAP yyrc;
|
---|
9439 | USHORT sel = GetFS();
|
---|
9440 |
|
---|
9441 | yyrc = GpiLoadBitmap(a, b, c, d, e);
|
---|
9442 | SetFS(sel);
|
---|
9443 |
|
---|
9444 | return yyrc;
|
---|
9445 | }
|
---|
9446 |
|
---|
9447 | #undef GpiLoadBitmap
|
---|
9448 | #define GpiLoadBitmap _GpiLoadBitmap
|
---|
9449 |
|
---|
9450 | inline HBITMAP _GpiSetBitmap(HPS a, HBITMAP b)
|
---|
9451 | {
|
---|
9452 | HBITMAP yyrc;
|
---|
9453 | USHORT sel = GetFS();
|
---|
9454 |
|
---|
9455 | yyrc = GpiSetBitmap(a, b);
|
---|
9456 | SetFS(sel);
|
---|
9457 |
|
---|
9458 | return yyrc;
|
---|
9459 | }
|
---|
9460 |
|
---|
9461 | #undef GpiSetBitmap
|
---|
9462 | #define GpiSetBitmap _GpiSetBitmap
|
---|
9463 |
|
---|
9464 | inline LONG _GpiWCBitBlt(HPS a, HBITMAP b, LONG c, PPOINTL d, LONG e, ULONG f)
|
---|
9465 | {
|
---|
9466 | LONG yyrc;
|
---|
9467 | USHORT sel = GetFS();
|
---|
9468 |
|
---|
9469 | yyrc = GpiWCBitBlt(a, b, c, d, e, f);
|
---|
9470 | SetFS(sel);
|
---|
9471 |
|
---|
9472 | return yyrc;
|
---|
9473 | }
|
---|
9474 |
|
---|
9475 | #undef GpiWCBitBlt
|
---|
9476 | #define GpiWCBitBlt _GpiWCBitBlt
|
---|
9477 |
|
---|
9478 | inline HBITMAP _GpiCreateBitmap(HPS a, BITMAPINFOHEADER2 *b, ULONG c, PBYTE d, BITMAPINFO2 *e)
|
---|
9479 | {
|
---|
9480 | HBITMAP yyrc;
|
---|
9481 | USHORT sel = GetFS();
|
---|
9482 |
|
---|
9483 | yyrc = GpiCreateBitmap(a, b, c, d, e);
|
---|
9484 | SetFS(sel);
|
---|
9485 |
|
---|
9486 | return yyrc;
|
---|
9487 | }
|
---|
9488 |
|
---|
9489 | #undef GpiCreateBitmap
|
---|
9490 | #define GpiCreateBitmap _GpiCreateBitmap
|
---|
9491 |
|
---|
9492 | inline LONG _GpiDrawBits(HPS a, PVOID b, BITMAPINFO2 *c, LONG d, PPOINTL e, LONG f, ULONG g)
|
---|
9493 | {
|
---|
9494 | LONG yyrc;
|
---|
9495 | USHORT sel = GetFS();
|
---|
9496 |
|
---|
9497 | yyrc = GpiDrawBits(a, b, c, d, e, f, g);
|
---|
9498 | SetFS(sel);
|
---|
9499 |
|
---|
9500 | return yyrc;
|
---|
9501 | }
|
---|
9502 |
|
---|
9503 | #undef GpiDrawBits
|
---|
9504 | #define GpiDrawBits _GpiDrawBits
|
---|
9505 |
|
---|
9506 | inline LONG _GpiFloodFill(HPS a, LONG b, LONG c)
|
---|
9507 | {
|
---|
9508 | LONG yyrc;
|
---|
9509 | USHORT sel = GetFS();
|
---|
9510 |
|
---|
9511 | yyrc = GpiFloodFill(a, b, c);
|
---|
9512 | SetFS(sel);
|
---|
9513 |
|
---|
9514 | return yyrc;
|
---|
9515 | }
|
---|
9516 |
|
---|
9517 | #undef GpiFloodFill
|
---|
9518 | #define GpiFloodFill _GpiFloodFill
|
---|
9519 |
|
---|
9520 | inline LONG _GpiQueryBitmapBits(HPS a, LONG b, LONG c, PBYTE d, PBITMAPINFO2 e)
|
---|
9521 | {
|
---|
9522 | LONG yyrc;
|
---|
9523 | USHORT sel = GetFS();
|
---|
9524 |
|
---|
9525 | yyrc = GpiQueryBitmapBits(a, b, c, d, e);
|
---|
9526 | SetFS(sel);
|
---|
9527 |
|
---|
9528 | return yyrc;
|
---|
9529 | }
|
---|
9530 |
|
---|
9531 | #undef GpiQueryBitmapBits
|
---|
9532 | #define GpiQueryBitmapBits _GpiQueryBitmapBits
|
---|
9533 |
|
---|
9534 | inline BOOL _GpiQueryBitmapDimension(HBITMAP a, PSIZEL b)
|
---|
9535 | {
|
---|
9536 | BOOL yyrc;
|
---|
9537 | USHORT sel = GetFS();
|
---|
9538 |
|
---|
9539 | yyrc = GpiQueryBitmapDimension(a, b);
|
---|
9540 | SetFS(sel);
|
---|
9541 |
|
---|
9542 | return yyrc;
|
---|
9543 | }
|
---|
9544 |
|
---|
9545 | #undef GpiQueryBitmapDimension
|
---|
9546 | #define GpiQueryBitmapDimension _GpiQueryBitmapDimension
|
---|
9547 |
|
---|
9548 | inline HBITMAP _GpiQueryBitmapHandle(HPS a, LONG b)
|
---|
9549 | {
|
---|
9550 | HBITMAP yyrc;
|
---|
9551 | USHORT sel = GetFS();
|
---|
9552 |
|
---|
9553 | yyrc = GpiQueryBitmapHandle(a, b);
|
---|
9554 | SetFS(sel);
|
---|
9555 |
|
---|
9556 | return yyrc;
|
---|
9557 | }
|
---|
9558 |
|
---|
9559 | #undef GpiQueryBitmapHandle
|
---|
9560 | #define GpiQueryBitmapHandle _GpiQueryBitmapHandle
|
---|
9561 |
|
---|
9562 | inline BOOL _GpiQueryBitmapInfoHeader(HBITMAP a, PBITMAPINFOHEADER2 b)
|
---|
9563 | {
|
---|
9564 | BOOL yyrc;
|
---|
9565 | USHORT sel = GetFS();
|
---|
9566 |
|
---|
9567 | yyrc = GpiQueryBitmapInfoHeader(a, b);
|
---|
9568 | SetFS(sel);
|
---|
9569 |
|
---|
9570 | return yyrc;
|
---|
9571 | }
|
---|
9572 |
|
---|
9573 | #undef GpiQueryBitmapInfoHeader
|
---|
9574 | #define GpiQueryBitmapInfoHeader _GpiQueryBitmapInfoHeader
|
---|
9575 |
|
---|
9576 | inline BOOL _GpiQueryBitmapParameters(HBITMAP a, PBITMAPINFOHEADER b)
|
---|
9577 | {
|
---|
9578 | BOOL yyrc;
|
---|
9579 | USHORT sel = GetFS();
|
---|
9580 |
|
---|
9581 | yyrc = GpiQueryBitmapParameters(a, b);
|
---|
9582 | SetFS(sel);
|
---|
9583 |
|
---|
9584 | return yyrc;
|
---|
9585 | }
|
---|
9586 |
|
---|
9587 | #undef GpiQueryBitmapParameters
|
---|
9588 | #define GpiQueryBitmapParameters _GpiQueryBitmapParameters
|
---|
9589 |
|
---|
9590 | inline BOOL _GpiQueryDeviceBitmapFormats(HPS a, LONG b, PLONG c)
|
---|
9591 | {
|
---|
9592 | BOOL yyrc;
|
---|
9593 | USHORT sel = GetFS();
|
---|
9594 |
|
---|
9595 | yyrc = GpiQueryDeviceBitmapFormats(a, b, c);
|
---|
9596 | SetFS(sel);
|
---|
9597 |
|
---|
9598 | return yyrc;
|
---|
9599 | }
|
---|
9600 |
|
---|
9601 | #undef GpiQueryDeviceBitmapFormats
|
---|
9602 | #define GpiQueryDeviceBitmapFormats _GpiQueryDeviceBitmapFormats
|
---|
9603 |
|
---|
9604 | inline LONG _GpiSetBitmapBits(HPS a, LONG b, LONG c, PBYTE d, BITMAPINFO2 *e)
|
---|
9605 | {
|
---|
9606 | LONG yyrc;
|
---|
9607 | USHORT sel = GetFS();
|
---|
9608 |
|
---|
9609 | yyrc = GpiSetBitmapBits(a, b, c, d, e);
|
---|
9610 | SetFS(sel);
|
---|
9611 |
|
---|
9612 | return yyrc;
|
---|
9613 | }
|
---|
9614 |
|
---|
9615 | #undef GpiSetBitmapBits
|
---|
9616 | #define GpiSetBitmapBits _GpiSetBitmapBits
|
---|
9617 |
|
---|
9618 | inline LONG _GpiQueryPel(HPS a, PPOINTL b)
|
---|
9619 | {
|
---|
9620 | LONG yyrc;
|
---|
9621 | USHORT sel = GetFS();
|
---|
9622 |
|
---|
9623 | yyrc = GpiQueryPel(a, b);
|
---|
9624 | SetFS(sel);
|
---|
9625 |
|
---|
9626 | return yyrc;
|
---|
9627 | }
|
---|
9628 |
|
---|
9629 | #undef GpiQueryPel
|
---|
9630 | #define GpiQueryPel _GpiQueryPel
|
---|
9631 |
|
---|
9632 | inline BOOL _GpiSetBitmapDimension(HBITMAP a, SIZEL *b)
|
---|
9633 | {
|
---|
9634 | BOOL yyrc;
|
---|
9635 | USHORT sel = GetFS();
|
---|
9636 |
|
---|
9637 | yyrc = GpiSetBitmapDimension(a, b);
|
---|
9638 | SetFS(sel);
|
---|
9639 |
|
---|
9640 | return yyrc;
|
---|
9641 | }
|
---|
9642 |
|
---|
9643 | #undef GpiSetBitmapDimension
|
---|
9644 | #define GpiSetBitmapDimension _GpiSetBitmapDimension
|
---|
9645 |
|
---|
9646 | inline BOOL _GpiSetBitmapId(HPS a, HBITMAP b, LONG c)
|
---|
9647 | {
|
---|
9648 | BOOL yyrc;
|
---|
9649 | USHORT sel = GetFS();
|
---|
9650 |
|
---|
9651 | yyrc = GpiSetBitmapId(a, b, c);
|
---|
9652 | SetFS(sel);
|
---|
9653 |
|
---|
9654 | return yyrc;
|
---|
9655 | }
|
---|
9656 |
|
---|
9657 | #undef GpiSetBitmapId
|
---|
9658 | #define GpiSetBitmapId _GpiSetBitmapId
|
---|
9659 |
|
---|
9660 | inline LONG _GpiSetPel(HPS a, PPOINTL b)
|
---|
9661 | {
|
---|
9662 | LONG yyrc;
|
---|
9663 | USHORT sel = GetFS();
|
---|
9664 |
|
---|
9665 | yyrc = GpiSetPel(a, b);
|
---|
9666 | SetFS(sel);
|
---|
9667 |
|
---|
9668 | return yyrc;
|
---|
9669 | }
|
---|
9670 |
|
---|
9671 | #undef GpiSetPel
|
---|
9672 | #define GpiSetPel _GpiSetPel
|
---|
9673 |
|
---|
9674 | #endif
|
---|
9675 | #ifdef INCL_GPICONTROL
|
---|
9676 | inline BOOL _GpiAssociate(HPS a, HDC b)
|
---|
9677 | {
|
---|
9678 | BOOL yyrc;
|
---|
9679 | USHORT sel = GetFS();
|
---|
9680 |
|
---|
9681 | yyrc = GpiAssociate(a, b);
|
---|
9682 | SetFS(sel);
|
---|
9683 |
|
---|
9684 | return yyrc;
|
---|
9685 | }
|
---|
9686 |
|
---|
9687 | #undef GpiAssociate
|
---|
9688 | #define GpiAssociate _GpiAssociate
|
---|
9689 |
|
---|
9690 | inline HPS _GpiCreatePS(HAB a, HDC b, PSIZEL c, ULONG d)
|
---|
9691 | {
|
---|
9692 | HPS yyrc;
|
---|
9693 | USHORT sel = GetFS();
|
---|
9694 |
|
---|
9695 | yyrc = GpiCreatePS(a, b, c, d);
|
---|
9696 | SetFS(sel);
|
---|
9697 |
|
---|
9698 | return yyrc;
|
---|
9699 | }
|
---|
9700 |
|
---|
9701 | #undef GpiDestroyPS
|
---|
9702 | #define GpiDestroyPS _GpiDestroyPS
|
---|
9703 |
|
---|
9704 | inline BOOL _GpiDestroyPS(HPS a)
|
---|
9705 | {
|
---|
9706 | BOOL yyrc;
|
---|
9707 | USHORT sel = GetFS();
|
---|
9708 |
|
---|
9709 | yyrc = GpiDestroyPS(a);
|
---|
9710 | SetFS(sel);
|
---|
9711 |
|
---|
9712 | return yyrc;
|
---|
9713 | }
|
---|
9714 |
|
---|
9715 | #undef GpiDestroyPS
|
---|
9716 | #define GpiDestroyPS _GpiDestroyPS
|
---|
9717 |
|
---|
9718 | inline BOOL _GpiErase(HPS a)
|
---|
9719 | {
|
---|
9720 | BOOL yyrc;
|
---|
9721 | USHORT sel = GetFS();
|
---|
9722 |
|
---|
9723 | yyrc = GpiErase(a);
|
---|
9724 | SetFS(sel);
|
---|
9725 |
|
---|
9726 | return yyrc;
|
---|
9727 | }
|
---|
9728 |
|
---|
9729 | #undef GpiErase
|
---|
9730 | #define GpiErase _GpiErase
|
---|
9731 |
|
---|
9732 | inline HDC _GpiQueryDevice(HPS a)
|
---|
9733 | {
|
---|
9734 | HDC yyrc;
|
---|
9735 | USHORT sel = GetFS();
|
---|
9736 |
|
---|
9737 | yyrc = GpiQueryDevice(a);
|
---|
9738 | SetFS(sel);
|
---|
9739 |
|
---|
9740 | return yyrc;
|
---|
9741 | }
|
---|
9742 |
|
---|
9743 | #undef GpiQueryDevice
|
---|
9744 | #define GpiQueryDevice _GpiQueryDevice
|
---|
9745 |
|
---|
9746 | inline BOOL _GpiRestorePS(HPS a, LONG b)
|
---|
9747 | {
|
---|
9748 | BOOL yyrc;
|
---|
9749 | USHORT sel = GetFS();
|
---|
9750 |
|
---|
9751 | yyrc = GpiRestorePS(a, b);
|
---|
9752 | SetFS(sel);
|
---|
9753 |
|
---|
9754 | return yyrc;
|
---|
9755 | }
|
---|
9756 |
|
---|
9757 | #undef GpiRestorePS
|
---|
9758 | #define GpiRestorePS _GpiRestorePS
|
---|
9759 |
|
---|
9760 | inline LONG _GpiSavePS(HPS a)
|
---|
9761 | {
|
---|
9762 | LONG yyrc;
|
---|
9763 | USHORT sel = GetFS();
|
---|
9764 |
|
---|
9765 | yyrc = GpiSavePS(a);
|
---|
9766 | SetFS(sel);
|
---|
9767 |
|
---|
9768 | return yyrc;
|
---|
9769 | }
|
---|
9770 |
|
---|
9771 | #undef GpiSavePS
|
---|
9772 | #define GpiSavePS _GpiSavePS
|
---|
9773 |
|
---|
9774 | inline LONG _GpiErrorSegmentData(HPS a, PLONG b, PLONG c)
|
---|
9775 | {
|
---|
9776 | LONG yyrc;
|
---|
9777 | USHORT sel = GetFS();
|
---|
9778 |
|
---|
9779 | yyrc = GpiErrorSegmentData(a, b, c);
|
---|
9780 | SetFS(sel);
|
---|
9781 |
|
---|
9782 | return yyrc;
|
---|
9783 | }
|
---|
9784 |
|
---|
9785 | #undef GpiErrorSegmentData
|
---|
9786 | #define GpiErrorSegmentData _GpiErrorSegmentData
|
---|
9787 |
|
---|
9788 | inline LONG _GpiQueryDrawControl(HPS a, LONG b)
|
---|
9789 | {
|
---|
9790 | LONG yyrc;
|
---|
9791 | USHORT sel = GetFS();
|
---|
9792 |
|
---|
9793 | yyrc = GpiQueryDrawControl(a, b);
|
---|
9794 | SetFS(sel);
|
---|
9795 |
|
---|
9796 | return yyrc;
|
---|
9797 | }
|
---|
9798 |
|
---|
9799 | #undef GpiQueryDrawControl
|
---|
9800 | #define GpiQueryDrawControl _GpiQueryDrawControl
|
---|
9801 |
|
---|
9802 | inline LONG _GpiQueryDrawingMode(HPS a)
|
---|
9803 | {
|
---|
9804 | LONG yyrc;
|
---|
9805 | USHORT sel = GetFS();
|
---|
9806 |
|
---|
9807 | yyrc = GpiQueryDrawingMode(a);
|
---|
9808 | SetFS(sel);
|
---|
9809 |
|
---|
9810 | return yyrc;
|
---|
9811 | }
|
---|
9812 |
|
---|
9813 | #undef GpiQueryDrawingMode
|
---|
9814 | #define GpiQueryDrawingMode _GpiQueryDrawingMode
|
---|
9815 |
|
---|
9816 | inline ULONG _GpiQueryPS(HPS a, PSIZEL b)
|
---|
9817 | {
|
---|
9818 | ULONG yyrc;
|
---|
9819 | USHORT sel = GetFS();
|
---|
9820 |
|
---|
9821 | yyrc = GpiQueryPS(a, b);
|
---|
9822 | SetFS(sel);
|
---|
9823 |
|
---|
9824 | return yyrc;
|
---|
9825 | }
|
---|
9826 |
|
---|
9827 | #undef GpiQueryPS
|
---|
9828 | #define GpiQueryPS _GpiQueryPS
|
---|
9829 |
|
---|
9830 | inline BOOL _GpiResetPS(HPS a, ULONG b)
|
---|
9831 | {
|
---|
9832 | BOOL yyrc;
|
---|
9833 | USHORT sel = GetFS();
|
---|
9834 |
|
---|
9835 | yyrc = GpiResetPS(a, b);
|
---|
9836 | SetFS(sel);
|
---|
9837 |
|
---|
9838 | return yyrc;
|
---|
9839 | }
|
---|
9840 |
|
---|
9841 | #undef GpiResetPS
|
---|
9842 | #define GpiResetPS _GpiResetPS
|
---|
9843 |
|
---|
9844 | inline LONG _GpiQueryStopDraw(HPS a)
|
---|
9845 | {
|
---|
9846 | LONG yyrc;
|
---|
9847 | USHORT sel = GetFS();
|
---|
9848 |
|
---|
9849 | yyrc = GpiQueryStopDraw(a);
|
---|
9850 | SetFS(sel);
|
---|
9851 |
|
---|
9852 | return yyrc;
|
---|
9853 | }
|
---|
9854 |
|
---|
9855 | #undef GpiQueryStopDraw
|
---|
9856 | #define GpiQueryStopDraw _GpiQueryStopDraw
|
---|
9857 |
|
---|
9858 | inline BOOL _GpiSetDrawControl(HPS a, LONG b, LONG c)
|
---|
9859 | {
|
---|
9860 | BOOL yyrc;
|
---|
9861 | USHORT sel = GetFS();
|
---|
9862 |
|
---|
9863 | yyrc = GpiSetDrawControl(a, b, c);
|
---|
9864 | SetFS(sel);
|
---|
9865 |
|
---|
9866 | return yyrc;
|
---|
9867 | }
|
---|
9868 |
|
---|
9869 | #undef GpiSetDrawControl
|
---|
9870 | #define GpiSetDrawControl _GpiSetDrawControl
|
---|
9871 |
|
---|
9872 | inline BOOL _GpiSetDrawingMode(HPS a, LONG b)
|
---|
9873 | {
|
---|
9874 | BOOL yyrc;
|
---|
9875 | USHORT sel = GetFS();
|
---|
9876 |
|
---|
9877 | yyrc = GpiSetDrawingMode(a, b);
|
---|
9878 | SetFS(sel);
|
---|
9879 |
|
---|
9880 | return yyrc;
|
---|
9881 | }
|
---|
9882 |
|
---|
9883 | #undef GpiSetDrawingMode
|
---|
9884 | #define GpiSetDrawingMode _GpiSetDrawingMode
|
---|
9885 |
|
---|
9886 | inline BOOL _GpiSetPS(HPS a, SIZEL *b, ULONG c)
|
---|
9887 | {
|
---|
9888 | BOOL yyrc;
|
---|
9889 | USHORT sel = GetFS();
|
---|
9890 |
|
---|
9891 | yyrc = GpiSetPS(a, b, c);
|
---|
9892 | SetFS(sel);
|
---|
9893 |
|
---|
9894 | return yyrc;
|
---|
9895 | }
|
---|
9896 |
|
---|
9897 | #undef GpiSetPS
|
---|
9898 | #define GpiSetPS _GpiSetPS
|
---|
9899 |
|
---|
9900 | inline BOOL _GpiSetStopDraw(HPS a, LONG b)
|
---|
9901 | {
|
---|
9902 | BOOL yyrc;
|
---|
9903 | USHORT sel = GetFS();
|
---|
9904 |
|
---|
9905 | yyrc = GpiSetStopDraw(a, b);
|
---|
9906 | SetFS(sel);
|
---|
9907 |
|
---|
9908 | return yyrc;
|
---|
9909 | }
|
---|
9910 |
|
---|
9911 | #undef GpiSetStopDraw
|
---|
9912 | #define GpiSetStopDraw _GpiSetStopDraw
|
---|
9913 |
|
---|
9914 | #endif
|
---|
9915 | #ifdef INCL_GPICORRELATION
|
---|
9916 | inline LONG _GpiCorrelateChain(HPS a, LONG b, PPOINTL c, LONG d, LONG e, PLONG f)
|
---|
9917 | {
|
---|
9918 | LONG yyrc;
|
---|
9919 | USHORT sel = GetFS();
|
---|
9920 |
|
---|
9921 | yyrc = GpiCorrelateChain(a, b, c, d, e, f);
|
---|
9922 | SetFS(sel);
|
---|
9923 |
|
---|
9924 | return yyrc;
|
---|
9925 | }
|
---|
9926 |
|
---|
9927 | #undef GpiCorrelateChain
|
---|
9928 | #define GpiCorrelateChain _GpiCorrelateChain
|
---|
9929 |
|
---|
9930 | inline LONG _GpiCorrelateFrom(HPS a, LONG b, LONG c, LONG d, PPOINTL e, LONG f, LONG g, PLONG h)
|
---|
9931 | {
|
---|
9932 | LONG yyrc;
|
---|
9933 | USHORT sel = GetFS();
|
---|
9934 |
|
---|
9935 | yyrc = GpiCorrelateFrom(a, b, c, d, e, f, g, h);
|
---|
9936 | SetFS(sel);
|
---|
9937 |
|
---|
9938 | return yyrc;
|
---|
9939 | }
|
---|
9940 |
|
---|
9941 | #undef GpiCorrelateFrom
|
---|
9942 | #define GpiCorrelateFrom _GpiCorrelateFrom
|
---|
9943 |
|
---|
9944 | inline LONG _GpiCorrelateSegment(HPS a, LONG b, LONG c, PPOINTL d, LONG e, LONG f, PLONG g)
|
---|
9945 | {
|
---|
9946 | LONG yyrc;
|
---|
9947 | USHORT sel = GetFS();
|
---|
9948 |
|
---|
9949 | yyrc = GpiCorrelateSegment(a, b, c, d, e, f, g);
|
---|
9950 | SetFS(sel);
|
---|
9951 |
|
---|
9952 | return yyrc;
|
---|
9953 | }
|
---|
9954 |
|
---|
9955 | #undef GpiCorrelateSegment
|
---|
9956 | #define GpiCorrelateSegment _GpiCorrelateSegment
|
---|
9957 |
|
---|
9958 | inline BOOL _GpiQueryBoundaryData(HPS a, PRECTL b)
|
---|
9959 | {
|
---|
9960 | BOOL yyrc;
|
---|
9961 | USHORT sel = GetFS();
|
---|
9962 |
|
---|
9963 | yyrc = GpiQueryBoundaryData(a, b);
|
---|
9964 | SetFS(sel);
|
---|
9965 |
|
---|
9966 | return yyrc;
|
---|
9967 | }
|
---|
9968 |
|
---|
9969 | #undef GpiQueryBoundaryData
|
---|
9970 | #define GpiQueryBoundaryData _GpiQueryBoundaryData
|
---|
9971 |
|
---|
9972 | inline BOOL _GpiQueryPickAperturePosition(HPS a, PPOINTL b)
|
---|
9973 | {
|
---|
9974 | BOOL yyrc;
|
---|
9975 | USHORT sel = GetFS();
|
---|
9976 |
|
---|
9977 | yyrc = GpiQueryPickAperturePosition(a, b);
|
---|
9978 | SetFS(sel);
|
---|
9979 |
|
---|
9980 | return yyrc;
|
---|
9981 | }
|
---|
9982 |
|
---|
9983 | #undef GpiQueryPickAperturePosition
|
---|
9984 | #define GpiQueryPickAperturePosition _GpiQueryPickAperturePosition
|
---|
9985 |
|
---|
9986 | inline BOOL _GpiQueryPickApertureSize(HPS a, PSIZEL b)
|
---|
9987 | {
|
---|
9988 | BOOL yyrc;
|
---|
9989 | USHORT sel = GetFS();
|
---|
9990 |
|
---|
9991 | yyrc = GpiQueryPickApertureSize(a, b);
|
---|
9992 | SetFS(sel);
|
---|
9993 |
|
---|
9994 | return yyrc;
|
---|
9995 | }
|
---|
9996 |
|
---|
9997 | #undef GpiQueryPickApertureSize
|
---|
9998 | #define GpiQueryPickApertureSize _GpiQueryPickApertureSize
|
---|
9999 |
|
---|
10000 | inline BOOL _GpiQueryTag(HPS a, PLONG b)
|
---|
10001 | {
|
---|
10002 | BOOL yyrc;
|
---|
10003 | USHORT sel = GetFS();
|
---|
10004 |
|
---|
10005 | yyrc = GpiQueryTag(a, b);
|
---|
10006 | SetFS(sel);
|
---|
10007 |
|
---|
10008 | return yyrc;
|
---|
10009 | }
|
---|
10010 |
|
---|
10011 | #undef GpiQueryTag
|
---|
10012 | #define GpiQueryTag _GpiQueryTag
|
---|
10013 |
|
---|
10014 | inline BOOL _GpiResetBoundaryData(HPS a)
|
---|
10015 | {
|
---|
10016 | BOOL yyrc;
|
---|
10017 | USHORT sel = GetFS();
|
---|
10018 |
|
---|
10019 | yyrc = GpiResetBoundaryData(a);
|
---|
10020 | SetFS(sel);
|
---|
10021 |
|
---|
10022 | return yyrc;
|
---|
10023 | }
|
---|
10024 |
|
---|
10025 | #undef GpiResetBoundaryData
|
---|
10026 | #define GpiResetBoundaryData _GpiResetBoundaryData
|
---|
10027 |
|
---|
10028 | inline BOOL _GpiSetPickAperturePosition(HPS a, PPOINTL b)
|
---|
10029 | {
|
---|
10030 | BOOL yyrc;
|
---|
10031 | USHORT sel = GetFS();
|
---|
10032 |
|
---|
10033 | yyrc = GpiSetPickAperturePosition(a, b);
|
---|
10034 | SetFS(sel);
|
---|
10035 |
|
---|
10036 | return yyrc;
|
---|
10037 | }
|
---|
10038 |
|
---|
10039 | #undef GpiSetPickAperturePosition
|
---|
10040 | #define GpiSetPickAperturePosition _GpiSetPickAperturePosition
|
---|
10041 |
|
---|
10042 | inline BOOL _GpiSetPickApertureSize(HPS a, LONG b, SIZEL *c)
|
---|
10043 | {
|
---|
10044 | BOOL yyrc;
|
---|
10045 | USHORT sel = GetFS();
|
---|
10046 |
|
---|
10047 | yyrc = GpiSetPickApertureSize(a, b, c);
|
---|
10048 | SetFS(sel);
|
---|
10049 |
|
---|
10050 | return yyrc;
|
---|
10051 | }
|
---|
10052 |
|
---|
10053 | #undef GpiSetPickApertureSize
|
---|
10054 | #define GpiSetPickApertureSize _GpiSetPickApertureSize
|
---|
10055 |
|
---|
10056 | inline BOOL _GpiSetTag(HPS a, LONG b)
|
---|
10057 | {
|
---|
10058 | BOOL yyrc;
|
---|
10059 | USHORT sel = GetFS();
|
---|
10060 |
|
---|
10061 | yyrc = GpiSetTag(a, b);
|
---|
10062 | SetFS(sel);
|
---|
10063 |
|
---|
10064 | return yyrc;
|
---|
10065 | }
|
---|
10066 |
|
---|
10067 | #undef GpiSetTag
|
---|
10068 | #define GpiSetTag _GpiSetTag
|
---|
10069 |
|
---|
10070 | #endif
|
---|
10071 | #ifdef INCL_GPIINK
|
---|
10072 | inline BOOL _GpiBeginInkPath(HPS a, LONG b, ULONG c)
|
---|
10073 | {
|
---|
10074 | BOOL yyrc;
|
---|
10075 | USHORT sel = GetFS();
|
---|
10076 |
|
---|
10077 | yyrc = GpiBeginInkPath(a, b, c);
|
---|
10078 | SetFS(sel);
|
---|
10079 |
|
---|
10080 | return yyrc;
|
---|
10081 | }
|
---|
10082 |
|
---|
10083 | #undef GpiBeginInkPath
|
---|
10084 | #define GpiBeginInkPath _GpiBeginInkPath
|
---|
10085 |
|
---|
10086 | inline BOOL _GpiEndInkPath(HPS a, ULONG b)
|
---|
10087 | {
|
---|
10088 | BOOL yyrc;
|
---|
10089 | USHORT sel = GetFS();
|
---|
10090 |
|
---|
10091 | yyrc = GpiEndInkPath(a, b);
|
---|
10092 | SetFS(sel);
|
---|
10093 |
|
---|
10094 | return yyrc;
|
---|
10095 | }
|
---|
10096 |
|
---|
10097 | #undef GpiEndInkPath
|
---|
10098 | #define GpiEndInkPath _GpiEndInkPath
|
---|
10099 |
|
---|
10100 | inline LONG _GpiStrokeInkPath(HPS a, LONG b, LONG c, PPOINTL d, ULONG e)
|
---|
10101 | {
|
---|
10102 | LONG yyrc;
|
---|
10103 | USHORT sel = GetFS();
|
---|
10104 |
|
---|
10105 | yyrc = GpiStrokeInkPath(a, b, c, d, e);
|
---|
10106 | SetFS(sel);
|
---|
10107 |
|
---|
10108 | return yyrc;
|
---|
10109 | }
|
---|
10110 |
|
---|
10111 | #undef GpiStrokeInkPath
|
---|
10112 | #define GpiStrokeInkPath _GpiStrokeInkPath
|
---|
10113 |
|
---|
10114 | #endif
|
---|
10115 | #ifdef INCL_GPISEGMENTS
|
---|
10116 | inline BOOL _GpiCloseSegment(HPS a)
|
---|
10117 | {
|
---|
10118 | BOOL yyrc;
|
---|
10119 | USHORT sel = GetFS();
|
---|
10120 |
|
---|
10121 | yyrc = GpiCloseSegment(a);
|
---|
10122 | SetFS(sel);
|
---|
10123 |
|
---|
10124 | return yyrc;
|
---|
10125 | }
|
---|
10126 |
|
---|
10127 | #undef GpiCloseSegment
|
---|
10128 | #define GpiCloseSegment _GpiCloseSegment
|
---|
10129 |
|
---|
10130 | inline BOOL _GpiDeleteSegment(HPS a, LONG b)
|
---|
10131 | {
|
---|
10132 | BOOL yyrc;
|
---|
10133 | USHORT sel = GetFS();
|
---|
10134 |
|
---|
10135 | yyrc = GpiDeleteSegment(a, b);
|
---|
10136 | SetFS(sel);
|
---|
10137 |
|
---|
10138 | return yyrc;
|
---|
10139 | }
|
---|
10140 |
|
---|
10141 | #undef GpiDeleteSegment
|
---|
10142 | #define GpiDeleteSegment _GpiDeleteSegment
|
---|
10143 |
|
---|
10144 | inline BOOL _GpiDeleteSegments(HPS a, LONG b, LONG c)
|
---|
10145 | {
|
---|
10146 | BOOL yyrc;
|
---|
10147 | USHORT sel = GetFS();
|
---|
10148 |
|
---|
10149 | yyrc = GpiDeleteSegments(a, b, c);
|
---|
10150 | SetFS(sel);
|
---|
10151 |
|
---|
10152 | return yyrc;
|
---|
10153 | }
|
---|
10154 |
|
---|
10155 | #undef GpiDeleteSegments
|
---|
10156 | #define GpiDeleteSegments _GpiDeleteSegments
|
---|
10157 |
|
---|
10158 | inline BOOL _GpiDrawChain(HPS a)
|
---|
10159 | {
|
---|
10160 | BOOL yyrc;
|
---|
10161 | USHORT sel = GetFS();
|
---|
10162 |
|
---|
10163 | yyrc = GpiDrawChain(a);
|
---|
10164 | SetFS(sel);
|
---|
10165 |
|
---|
10166 | return yyrc;
|
---|
10167 | }
|
---|
10168 |
|
---|
10169 | #undef GpiDrawChain
|
---|
10170 | #define GpiDrawChain _GpiDrawChain
|
---|
10171 |
|
---|
10172 | inline BOOL _GpiDrawDynamics(HPS a)
|
---|
10173 | {
|
---|
10174 | BOOL yyrc;
|
---|
10175 | USHORT sel = GetFS();
|
---|
10176 |
|
---|
10177 | yyrc = GpiDrawDynamics(a);
|
---|
10178 | SetFS(sel);
|
---|
10179 |
|
---|
10180 | return yyrc;
|
---|
10181 | }
|
---|
10182 |
|
---|
10183 | #undef GpiDrawDynamics
|
---|
10184 | #define GpiDrawDynamics _GpiDrawDynamics
|
---|
10185 |
|
---|
10186 | inline BOOL _GpiDrawFrom(HPS a, LONG b, LONG c)
|
---|
10187 | {
|
---|
10188 | BOOL yyrc;
|
---|
10189 | USHORT sel = GetFS();
|
---|
10190 |
|
---|
10191 | yyrc = GpiDrawFrom(a, b, c);
|
---|
10192 | SetFS(sel);
|
---|
10193 |
|
---|
10194 | return yyrc;
|
---|
10195 | }
|
---|
10196 |
|
---|
10197 | #undef GpiDrawFrom
|
---|
10198 | #define GpiDrawFrom _GpiDrawFrom
|
---|
10199 |
|
---|
10200 | inline BOOL _GpiDrawSegment(HPS a, LONG b)
|
---|
10201 | {
|
---|
10202 | BOOL yyrc;
|
---|
10203 | USHORT sel = GetFS();
|
---|
10204 |
|
---|
10205 | yyrc = GpiDrawSegment(a, b);
|
---|
10206 | SetFS(sel);
|
---|
10207 |
|
---|
10208 | return yyrc;
|
---|
10209 | }
|
---|
10210 |
|
---|
10211 | #undef GpiDrawSegment
|
---|
10212 | #define GpiDrawSegment _GpiDrawSegment
|
---|
10213 |
|
---|
10214 | inline LONG _GpiGetData(HPS a, LONG b, PLONG c, LONG d, LONG e, PBYTE f)
|
---|
10215 | {
|
---|
10216 | LONG yyrc;
|
---|
10217 | USHORT sel = GetFS();
|
---|
10218 |
|
---|
10219 | yyrc = GpiGetData(a, b, c, d, e, f);
|
---|
10220 | SetFS(sel);
|
---|
10221 |
|
---|
10222 | return yyrc;
|
---|
10223 | }
|
---|
10224 |
|
---|
10225 | #undef GpiGetData
|
---|
10226 | #define GpiGetData _GpiGetData
|
---|
10227 |
|
---|
10228 | inline BOOL _GpiOpenSegment(HPS a, LONG b)
|
---|
10229 | {
|
---|
10230 | BOOL yyrc;
|
---|
10231 | USHORT sel = GetFS();
|
---|
10232 |
|
---|
10233 | yyrc = GpiOpenSegment(a, b);
|
---|
10234 | SetFS(sel);
|
---|
10235 |
|
---|
10236 | return yyrc;
|
---|
10237 | }
|
---|
10238 |
|
---|
10239 | #undef GpiOpenSegment
|
---|
10240 | #define GpiOpenSegment _GpiOpenSegment
|
---|
10241 |
|
---|
10242 | inline LONG _GpiPutData(HPS a, LONG b, PLONG c, PBYTE d)
|
---|
10243 | {
|
---|
10244 | LONG yyrc;
|
---|
10245 | USHORT sel = GetFS();
|
---|
10246 |
|
---|
10247 | yyrc = GpiPutData(a, b, c, d);
|
---|
10248 | SetFS(sel);
|
---|
10249 |
|
---|
10250 | return yyrc;
|
---|
10251 | }
|
---|
10252 |
|
---|
10253 | #undef GpiPutData
|
---|
10254 | #define GpiPutData _GpiPutData
|
---|
10255 |
|
---|
10256 | inline LONG _GpiQueryInitialSegmentAttrs(HPS a, LONG b)
|
---|
10257 | {
|
---|
10258 | LONG yyrc;
|
---|
10259 | USHORT sel = GetFS();
|
---|
10260 |
|
---|
10261 | yyrc = GpiQueryInitialSegmentAttrs(a, b);
|
---|
10262 | SetFS(sel);
|
---|
10263 |
|
---|
10264 | return yyrc;
|
---|
10265 | }
|
---|
10266 |
|
---|
10267 | #undef GpiQueryInitialSegmentAttrs
|
---|
10268 | #define GpiQueryInitialSegmentAttrs _GpiQueryInitialSegmentAttrs
|
---|
10269 |
|
---|
10270 | inline LONG _GpiQuerySegmentAttrs(HPS a, LONG b, LONG c)
|
---|
10271 | {
|
---|
10272 | LONG yyrc;
|
---|
10273 | USHORT sel = GetFS();
|
---|
10274 |
|
---|
10275 | yyrc = GpiQuerySegmentAttrs(a, b, c);
|
---|
10276 | SetFS(sel);
|
---|
10277 |
|
---|
10278 | return yyrc;
|
---|
10279 | }
|
---|
10280 |
|
---|
10281 | #undef GpiQuerySegmentAttrs
|
---|
10282 | #define GpiQuerySegmentAttrs _GpiQuerySegmentAttrs
|
---|
10283 |
|
---|
10284 | inline LONG _GpiQuerySegmentNames(HPS a, LONG b, LONG c, LONG d, PLONG e)
|
---|
10285 | {
|
---|
10286 | LONG yyrc;
|
---|
10287 | USHORT sel = GetFS();
|
---|
10288 |
|
---|
10289 | yyrc = GpiQuerySegmentNames(a, b, c, d, e);
|
---|
10290 | SetFS(sel);
|
---|
10291 |
|
---|
10292 | return yyrc;
|
---|
10293 | }
|
---|
10294 |
|
---|
10295 | #undef GpiQuerySegmentNames
|
---|
10296 | #define GpiQuerySegmentNames _GpiQuerySegmentNames
|
---|
10297 |
|
---|
10298 | inline LONG _GpiQuerySegmentPriority(HPS a, LONG b, LONG c)
|
---|
10299 | {
|
---|
10300 | LONG yyrc;
|
---|
10301 | USHORT sel = GetFS();
|
---|
10302 |
|
---|
10303 | yyrc = GpiQuerySegmentPriority(a, b, c);
|
---|
10304 | SetFS(sel);
|
---|
10305 |
|
---|
10306 | return yyrc;
|
---|
10307 | }
|
---|
10308 |
|
---|
10309 | #undef GpiQuerySegmentPriority
|
---|
10310 | #define GpiQuerySegmentPriority _GpiQuerySegmentPriority
|
---|
10311 |
|
---|
10312 | inline BOOL _GpiRemoveDynamics(HPS a, LONG b, LONG c)
|
---|
10313 | {
|
---|
10314 | BOOL yyrc;
|
---|
10315 | USHORT sel = GetFS();
|
---|
10316 |
|
---|
10317 | yyrc = GpiRemoveDynamics(a, b, c);
|
---|
10318 | SetFS(sel);
|
---|
10319 |
|
---|
10320 | return yyrc;
|
---|
10321 | }
|
---|
10322 |
|
---|
10323 | #undef GpiRemoveDynamics
|
---|
10324 | #define GpiRemoveDynamics _GpiRemoveDynamics
|
---|
10325 |
|
---|
10326 | inline BOOL _GpiSetInitialSegmentAttrs(HPS a, LONG b, LONG c)
|
---|
10327 | {
|
---|
10328 | BOOL yyrc;
|
---|
10329 | USHORT sel = GetFS();
|
---|
10330 |
|
---|
10331 | yyrc = GpiSetInitialSegmentAttrs(a, b, c);
|
---|
10332 | SetFS(sel);
|
---|
10333 |
|
---|
10334 | return yyrc;
|
---|
10335 | }
|
---|
10336 |
|
---|
10337 | #undef GpiSetInitialSegmentAttrs
|
---|
10338 | #define GpiSetInitialSegmentAttrs _GpiSetInitialSegmentAttrs
|
---|
10339 |
|
---|
10340 | inline BOOL _GpiSetSegmentAttrs(HPS a, LONG b, LONG c, LONG d)
|
---|
10341 | {
|
---|
10342 | BOOL yyrc;
|
---|
10343 | USHORT sel = GetFS();
|
---|
10344 |
|
---|
10345 | yyrc = GpiSetSegmentAttrs(a, b, c, d);
|
---|
10346 | SetFS(sel);
|
---|
10347 |
|
---|
10348 | return yyrc;
|
---|
10349 | }
|
---|
10350 |
|
---|
10351 | #undef GpiSetSegmentAttrs
|
---|
10352 | #define GpiSetSegmentAttrs _GpiSetSegmentAttrs
|
---|
10353 |
|
---|
10354 | inline BOOL _GpiSetSegmentPriority(HPS a, LONG b, LONG c, LONG d)
|
---|
10355 | {
|
---|
10356 | BOOL yyrc;
|
---|
10357 | USHORT sel = GetFS();
|
---|
10358 |
|
---|
10359 | yyrc = GpiSetSegmentPriority(a, b, c, d);
|
---|
10360 | SetFS(sel);
|
---|
10361 |
|
---|
10362 | return yyrc;
|
---|
10363 | }
|
---|
10364 |
|
---|
10365 | #undef GpiSetSegmentPriority
|
---|
10366 | #define GpiSetSegmentPriority _GpiSetSegmentPriority
|
---|
10367 |
|
---|
10368 | #endif
|
---|
10369 | #ifdef INCL_DEV
|
---|
10370 | inline LONG _DevEscape(HDC a, LONG b, LONG c, PBYTE d, PLONG e, PBYTE f)
|
---|
10371 | {
|
---|
10372 | LONG yyrc;
|
---|
10373 | USHORT sel = GetFS();
|
---|
10374 |
|
---|
10375 | yyrc = DevEscape(a, b, c, d, e, f);
|
---|
10376 | SetFS(sel);
|
---|
10377 |
|
---|
10378 | return yyrc;
|
---|
10379 | }
|
---|
10380 |
|
---|
10381 | #undef DevEscape
|
---|
10382 | #define DevEscape _DevEscape
|
---|
10383 |
|
---|
10384 | inline LONG _DevPostEscape(PCSZ a, PCSZ b, PCSZ c, PCSZ d, ULONG e, ULONG f, PBYTE g, ULONG h, PBYTE i)
|
---|
10385 | {
|
---|
10386 | LONG yyrc;
|
---|
10387 | USHORT sel = GetFS();
|
---|
10388 |
|
---|
10389 | yyrc = DevPostEscape(a, b, c, d, e, f, g, h, i);
|
---|
10390 | SetFS(sel);
|
---|
10391 |
|
---|
10392 | return yyrc;
|
---|
10393 | }
|
---|
10394 |
|
---|
10395 | #undef DevPostEscape
|
---|
10396 | #define DevPostEscape _DevPostEscape
|
---|
10397 |
|
---|
10398 | inline LONG _DevPostDeviceModes(HAB a, PDRIVDATA b, PCSZ c, PCSZ d, PCSZ e, ULONG f)
|
---|
10399 | {
|
---|
10400 | LONG yyrc;
|
---|
10401 | USHORT sel = GetFS();
|
---|
10402 |
|
---|
10403 | yyrc = DevPostDeviceModes(a, b, c, d, e, f);
|
---|
10404 | SetFS(sel);
|
---|
10405 |
|
---|
10406 | return yyrc;
|
---|
10407 | }
|
---|
10408 |
|
---|
10409 | #undef DevPostDeviceModes
|
---|
10410 | #define DevPostDeviceModes _DevPostDeviceModes
|
---|
10411 |
|
---|
10412 | inline BOOL _DevQueryDeviceNames(HAB a, PCSZ b, PLONG c, PSTR32 d, PSTR64 e, PLONG f, PSTR16 g)
|
---|
10413 | {
|
---|
10414 | BOOL yyrc;
|
---|
10415 | USHORT sel = GetFS();
|
---|
10416 |
|
---|
10417 | yyrc = DevQueryDeviceNames(a, b, c, d, e, f, g);
|
---|
10418 | SetFS(sel);
|
---|
10419 |
|
---|
10420 | return yyrc;
|
---|
10421 | }
|
---|
10422 |
|
---|
10423 | #undef DevQueryDeviceNames
|
---|
10424 | #define DevQueryDeviceNames _DevQueryDeviceNames
|
---|
10425 |
|
---|
10426 | inline LONG _DevQueryHardcopyCaps(HDC a, LONG b, LONG c, PHCINFO d)
|
---|
10427 | {
|
---|
10428 | LONG yyrc;
|
---|
10429 | USHORT sel = GetFS();
|
---|
10430 |
|
---|
10431 | yyrc = DevQueryHardcopyCaps(a, b, c, d);
|
---|
10432 | SetFS(sel);
|
---|
10433 |
|
---|
10434 | return yyrc;
|
---|
10435 | }
|
---|
10436 |
|
---|
10437 | #undef DevQueryHardcopyCaps
|
---|
10438 | #define DevQueryHardcopyCaps _DevQueryHardcopyCaps
|
---|
10439 |
|
---|
10440 | #endif
|
---|
10441 | inline HMF _DevCloseDC(HDC a)
|
---|
10442 | {
|
---|
10443 | HMF yyrc;
|
---|
10444 | USHORT sel = GetFS();
|
---|
10445 |
|
---|
10446 | yyrc = DevCloseDC(a);
|
---|
10447 | SetFS(sel);
|
---|
10448 |
|
---|
10449 | return yyrc;
|
---|
10450 | }
|
---|
10451 |
|
---|
10452 | #undef DevCloseDC
|
---|
10453 | #define DevCloseDC _DevCloseDC
|
---|
10454 |
|
---|
10455 | inline HDC _DevOpenDC(HAB a, LONG b, PCSZ c, LONG d, PDEVOPENDATA e, HDC f)
|
---|
10456 | {
|
---|
10457 | HDC yyrc;
|
---|
10458 | USHORT sel = GetFS();
|
---|
10459 |
|
---|
10460 | yyrc = DevOpenDC(a, b, c, d, e, f);
|
---|
10461 | SetFS(sel);
|
---|
10462 |
|
---|
10463 | return yyrc;
|
---|
10464 | }
|
---|
10465 |
|
---|
10466 | #undef DevOpenDC
|
---|
10467 | #define DevOpenDC _DevOpenDC
|
---|
10468 |
|
---|
10469 | inline BOOL _DevQueryCaps(HDC a, LONG b, LONG c, PLONG d)
|
---|
10470 | {
|
---|
10471 | BOOL yyrc;
|
---|
10472 | USHORT sel = GetFS();
|
---|
10473 |
|
---|
10474 | yyrc = DevQueryCaps(a, b, c, d);
|
---|
10475 | SetFS(sel);
|
---|
10476 |
|
---|
10477 | return yyrc;
|
---|
10478 | }
|
---|
10479 |
|
---|
10480 | #undef DevQueryCaps
|
---|
10481 | #define DevQueryCaps _DevQueryCaps
|
---|
10482 |
|
---|
10483 | #endif
|
---|
10484 | #ifdef INCL_WINPROGRAMLIST
|
---|
10485 | inline HPROGRAM _PrfAddProgram(HINI a, PPROGDETAILS b, HPROGRAM c)
|
---|
10486 | {
|
---|
10487 | HPROGRAM yyrc;
|
---|
10488 | USHORT sel = GetFS();
|
---|
10489 |
|
---|
10490 | yyrc = PrfAddProgram(a, b, c);
|
---|
10491 | SetFS(sel);
|
---|
10492 |
|
---|
10493 | return yyrc;
|
---|
10494 | }
|
---|
10495 |
|
---|
10496 | #undef PrfAddProgram
|
---|
10497 | #define PrfAddProgram _PrfAddProgram
|
---|
10498 |
|
---|
10499 | inline BOOL _PrfChangeProgram(HINI a, HPROGRAM b, PPROGDETAILS c)
|
---|
10500 | {
|
---|
10501 | BOOL yyrc;
|
---|
10502 | USHORT sel = GetFS();
|
---|
10503 |
|
---|
10504 | yyrc = PrfChangeProgram(a, b, c);
|
---|
10505 | SetFS(sel);
|
---|
10506 |
|
---|
10507 | return yyrc;
|
---|
10508 | }
|
---|
10509 |
|
---|
10510 | #undef PrfChangeProgram
|
---|
10511 | #define PrfChangeProgram _PrfChangeProgram
|
---|
10512 |
|
---|
10513 | inline HPROGRAM _PrfCreateGroup(HINI a, PCSZ b, UCHAR c)
|
---|
10514 | {
|
---|
10515 | HPROGRAM yyrc;
|
---|
10516 | USHORT sel = GetFS();
|
---|
10517 |
|
---|
10518 | yyrc = PrfCreateGroup(a, b, c);
|
---|
10519 | SetFS(sel);
|
---|
10520 |
|
---|
10521 | return yyrc;
|
---|
10522 | }
|
---|
10523 |
|
---|
10524 | #undef PrfCreateGroup
|
---|
10525 | #define PrfCreateGroup _PrfCreateGroup
|
---|
10526 |
|
---|
10527 | inline BOOL _PrfDestroyGroup(HINI a, HPROGRAM b)
|
---|
10528 | {
|
---|
10529 | BOOL yyrc;
|
---|
10530 | USHORT sel = GetFS();
|
---|
10531 |
|
---|
10532 | yyrc = PrfDestroyGroup(a, b);
|
---|
10533 | SetFS(sel);
|
---|
10534 |
|
---|
10535 | return yyrc;
|
---|
10536 | }
|
---|
10537 |
|
---|
10538 | #undef PrfDestroyGroup
|
---|
10539 | #define PrfDestroyGroup _PrfDestroyGroup
|
---|
10540 |
|
---|
10541 | inline PROGCATEGORY _PrfQueryProgramCategory(HINI a, PCSZ b)
|
---|
10542 | {
|
---|
10543 | PROGCATEGORY yyrc;
|
---|
10544 | USHORT sel = GetFS();
|
---|
10545 |
|
---|
10546 | yyrc = PrfQueryProgramCategory(a, b);
|
---|
10547 | SetFS(sel);
|
---|
10548 |
|
---|
10549 | return yyrc;
|
---|
10550 | }
|
---|
10551 |
|
---|
10552 | #undef PrfQueryProgramCategory
|
---|
10553 | #define PrfQueryProgramCategory _PrfQueryProgramCategory
|
---|
10554 |
|
---|
10555 | inline ULONG _PrfQueryProgramHandle(HINI a, PCSZ b, PHPROGARRAY c, ULONG d, PULONG e)
|
---|
10556 | {
|
---|
10557 | ULONG yyrc;
|
---|
10558 | USHORT sel = GetFS();
|
---|
10559 |
|
---|
10560 | yyrc = PrfQueryProgramHandle(a, b, c, d, e);
|
---|
10561 | SetFS(sel);
|
---|
10562 |
|
---|
10563 | return yyrc;
|
---|
10564 | }
|
---|
10565 |
|
---|
10566 | #undef PrfQueryProgramHandle
|
---|
10567 | #define PrfQueryProgramHandle _PrfQueryProgramHandle
|
---|
10568 |
|
---|
10569 | inline ULONG _PrfQueryProgramTitles(HINI a, HPROGRAM b, PPROGTITLE c, ULONG d, PULONG e)
|
---|
10570 | {
|
---|
10571 | ULONG yyrc;
|
---|
10572 | USHORT sel = GetFS();
|
---|
10573 |
|
---|
10574 | yyrc = PrfQueryProgramTitles(a, b, c, d, e);
|
---|
10575 | SetFS(sel);
|
---|
10576 |
|
---|
10577 | return yyrc;
|
---|
10578 | }
|
---|
10579 |
|
---|
10580 | #undef PrfQueryProgramTitles
|
---|
10581 | #define PrfQueryProgramTitles _PrfQueryProgramTitles
|
---|
10582 |
|
---|
10583 | inline ULONG _PrfQueryDefinition(HINI a, HPROGRAM b, PPROGDETAILS c, ULONG d)
|
---|
10584 | {
|
---|
10585 | ULONG yyrc;
|
---|
10586 | USHORT sel = GetFS();
|
---|
10587 |
|
---|
10588 | yyrc = PrfQueryDefinition(a, b, c, d);
|
---|
10589 | SetFS(sel);
|
---|
10590 |
|
---|
10591 | return yyrc;
|
---|
10592 | }
|
---|
10593 |
|
---|
10594 | #undef PrfQueryDefinition
|
---|
10595 | #define PrfQueryDefinition _PrfQueryDefinition
|
---|
10596 |
|
---|
10597 | inline BOOL _PrfRemoveProgram(HINI a, HPROGRAM b)
|
---|
10598 | {
|
---|
10599 | BOOL yyrc;
|
---|
10600 | USHORT sel = GetFS();
|
---|
10601 |
|
---|
10602 | yyrc = PrfRemoveProgram(a, b);
|
---|
10603 | SetFS(sel);
|
---|
10604 |
|
---|
10605 | return yyrc;
|
---|
10606 | }
|
---|
10607 |
|
---|
10608 | #undef PrfRemoveProgram
|
---|
10609 | #define PrfRemoveProgram _PrfRemoveProgram
|
---|
10610 |
|
---|
10611 | inline HAPP _WinStartApp(HWND a, PPROGDETAILS b, PCSZ c, PVOID d, ULONG e)
|
---|
10612 | {
|
---|
10613 | HAPP yyrc;
|
---|
10614 | USHORT sel = GetFS();
|
---|
10615 |
|
---|
10616 | yyrc = WinStartApp(a, b, c, d, e);
|
---|
10617 | SetFS(sel);
|
---|
10618 |
|
---|
10619 | return yyrc;
|
---|
10620 | }
|
---|
10621 |
|
---|
10622 | #undef WinStartApp
|
---|
10623 | #define WinStartApp _WinStartApp
|
---|
10624 |
|
---|
10625 | inline BOOL _WinTerminateApp(HAPP a)
|
---|
10626 | {
|
---|
10627 | BOOL yyrc;
|
---|
10628 | USHORT sel = GetFS();
|
---|
10629 |
|
---|
10630 | yyrc = WinTerminateApp(a);
|
---|
10631 | SetFS(sel);
|
---|
10632 |
|
---|
10633 | return yyrc;
|
---|
10634 | }
|
---|
10635 |
|
---|
10636 | #undef WinTerminateApp
|
---|
10637 | #define WinTerminateApp _WinTerminateApp
|
---|
10638 |
|
---|
10639 | #endif
|
---|
10640 | #ifdef INCL_WINSWITCHLIST
|
---|
10641 | inline HSWITCH _WinAddSwitchEntry(PSWCNTRL a)
|
---|
10642 | {
|
---|
10643 | HSWITCH yyrc;
|
---|
10644 | USHORT sel = GetFS();
|
---|
10645 |
|
---|
10646 | yyrc = WinAddSwitchEntry(a);
|
---|
10647 | SetFS(sel);
|
---|
10648 |
|
---|
10649 | return yyrc;
|
---|
10650 | }
|
---|
10651 |
|
---|
10652 | #undef WinAddSwitchEntry
|
---|
10653 | #define WinAddSwitchEntry _WinAddSwitchEntry
|
---|
10654 |
|
---|
10655 | inline ULONG _WinRemoveSwitchEntry(HSWITCH a)
|
---|
10656 | {
|
---|
10657 | ULONG yyrc;
|
---|
10658 | USHORT sel = GetFS();
|
---|
10659 |
|
---|
10660 | yyrc = WinRemoveSwitchEntry(a);
|
---|
10661 | SetFS(sel);
|
---|
10662 |
|
---|
10663 | return yyrc;
|
---|
10664 | }
|
---|
10665 |
|
---|
10666 | #undef WinRemoveSwitchEntry
|
---|
10667 | #define WinRemoveSwitchEntry _WinRemoveSwitchEntry
|
---|
10668 |
|
---|
10669 | inline ULONG _WinChangeSwitchEntry(HSWITCH a, PSWCNTRL b)
|
---|
10670 | {
|
---|
10671 | ULONG yyrc;
|
---|
10672 | USHORT sel = GetFS();
|
---|
10673 |
|
---|
10674 | yyrc = WinChangeSwitchEntry(a, b);
|
---|
10675 | SetFS(sel);
|
---|
10676 |
|
---|
10677 | return yyrc;
|
---|
10678 | }
|
---|
10679 |
|
---|
10680 | #undef WinChangeSwitchEntry
|
---|
10681 | #define WinChangeSwitchEntry _WinChangeSwitchEntry
|
---|
10682 |
|
---|
10683 | inline HSWITCH _WinCreateSwitchEntry(HAB a, PSWCNTRL b)
|
---|
10684 | {
|
---|
10685 | HSWITCH yyrc;
|
---|
10686 | USHORT sel = GetFS();
|
---|
10687 |
|
---|
10688 | yyrc = WinCreateSwitchEntry(a, b);
|
---|
10689 | SetFS(sel);
|
---|
10690 |
|
---|
10691 | return yyrc;
|
---|
10692 | }
|
---|
10693 |
|
---|
10694 | #undef WinCreateSwitchEntry
|
---|
10695 | #define WinCreateSwitchEntry _WinCreateSwitchEntry
|
---|
10696 |
|
---|
10697 | inline ULONG _WinQuerySessionTitle(HAB a, ULONG b, PSZ c, ULONG d)
|
---|
10698 | {
|
---|
10699 | ULONG yyrc;
|
---|
10700 | USHORT sel = GetFS();
|
---|
10701 |
|
---|
10702 | yyrc = WinQuerySessionTitle(a, b, c, d);
|
---|
10703 | SetFS(sel);
|
---|
10704 |
|
---|
10705 | return yyrc;
|
---|
10706 | }
|
---|
10707 |
|
---|
10708 | #undef WinQuerySessionTitle
|
---|
10709 | #define WinQuerySessionTitle _WinQuerySessionTitle
|
---|
10710 |
|
---|
10711 | inline ULONG _WinQuerySwitchEntry(HSWITCH a, PSWCNTRL b)
|
---|
10712 | {
|
---|
10713 | ULONG yyrc;
|
---|
10714 | USHORT sel = GetFS();
|
---|
10715 |
|
---|
10716 | yyrc = WinQuerySwitchEntry(a, b);
|
---|
10717 | SetFS(sel);
|
---|
10718 |
|
---|
10719 | return yyrc;
|
---|
10720 | }
|
---|
10721 |
|
---|
10722 | #undef WinQuerySwitchEntry
|
---|
10723 | #define WinQuerySwitchEntry _WinQuerySwitchEntry
|
---|
10724 |
|
---|
10725 | inline HSWITCH _WinQuerySwitchHandle(HWND a, PID b)
|
---|
10726 | {
|
---|
10727 | HSWITCH yyrc;
|
---|
10728 | USHORT sel = GetFS();
|
---|
10729 |
|
---|
10730 | yyrc = WinQuerySwitchHandle(a, b);
|
---|
10731 | SetFS(sel);
|
---|
10732 |
|
---|
10733 | return yyrc;
|
---|
10734 | }
|
---|
10735 |
|
---|
10736 | #undef WinQuerySwitchHandle
|
---|
10737 | #define WinQuerySwitchHandle _WinQuerySwitchHandle
|
---|
10738 |
|
---|
10739 | inline ULONG _WinQuerySwitchList(HAB a, PSWBLOCK b, ULONG c)
|
---|
10740 | {
|
---|
10741 | ULONG yyrc;
|
---|
10742 | USHORT sel = GetFS();
|
---|
10743 |
|
---|
10744 | yyrc = WinQuerySwitchList(a, b, c);
|
---|
10745 | SetFS(sel);
|
---|
10746 |
|
---|
10747 | return yyrc;
|
---|
10748 | }
|
---|
10749 |
|
---|
10750 | #undef WinQuerySwitchList
|
---|
10751 | #define WinQuerySwitchList _WinQuerySwitchList
|
---|
10752 |
|
---|
10753 | inline ULONG _WinQueryTaskSizePos(HAB a, ULONG b, PSWP c)
|
---|
10754 | {
|
---|
10755 | ULONG yyrc;
|
---|
10756 | USHORT sel = GetFS();
|
---|
10757 |
|
---|
10758 | yyrc = WinQueryTaskSizePos(a, b, c);
|
---|
10759 | SetFS(sel);
|
---|
10760 |
|
---|
10761 | return yyrc;
|
---|
10762 | }
|
---|
10763 |
|
---|
10764 | #undef WinQueryTaskSizePos
|
---|
10765 | #define WinQueryTaskSizePos _WinQueryTaskSizePos
|
---|
10766 |
|
---|
10767 | inline ULONG _WinQueryTaskTitle(ULONG a, PSZ b, ULONG c)
|
---|
10768 | {
|
---|
10769 | ULONG yyrc;
|
---|
10770 | USHORT sel = GetFS();
|
---|
10771 |
|
---|
10772 | yyrc = WinQueryTaskTitle(a, b, c);
|
---|
10773 | SetFS(sel);
|
---|
10774 |
|
---|
10775 | return yyrc;
|
---|
10776 | }
|
---|
10777 |
|
---|
10778 | #undef WinQueryTaskTitle
|
---|
10779 | #define WinQueryTaskTitle _WinQueryTaskTitle
|
---|
10780 |
|
---|
10781 | inline ULONG _WinSwitchToProgram(HSWITCH a)
|
---|
10782 | {
|
---|
10783 | ULONG yyrc;
|
---|
10784 | USHORT sel = GetFS();
|
---|
10785 |
|
---|
10786 | yyrc = WinSwitchToProgram(a);
|
---|
10787 | SetFS(sel);
|
---|
10788 |
|
---|
10789 | return yyrc;
|
---|
10790 | }
|
---|
10791 |
|
---|
10792 | #undef WinSwitchToProgram
|
---|
10793 | #define WinSwitchToProgram _WinSwitchToProgram
|
---|
10794 |
|
---|
10795 | #endif
|
---|
10796 | #ifdef INCL_WINSHELLDATA
|
---|
10797 | inline BOOL _PrfCloseProfile(HINI a)
|
---|
10798 | {
|
---|
10799 | BOOL yyrc;
|
---|
10800 | USHORT sel = GetFS();
|
---|
10801 |
|
---|
10802 | yyrc = PrfCloseProfile(a);
|
---|
10803 | SetFS(sel);
|
---|
10804 |
|
---|
10805 | return yyrc;
|
---|
10806 | }
|
---|
10807 |
|
---|
10808 | #undef PrfCloseProfile
|
---|
10809 | #define PrfCloseProfile _PrfCloseProfile
|
---|
10810 |
|
---|
10811 | inline HINI _PrfOpenProfile(HAB a, PCSZ b)
|
---|
10812 | {
|
---|
10813 | HINI yyrc;
|
---|
10814 | USHORT sel = GetFS();
|
---|
10815 |
|
---|
10816 | yyrc = PrfOpenProfile(a, b);
|
---|
10817 | SetFS(sel);
|
---|
10818 |
|
---|
10819 | return yyrc;
|
---|
10820 | }
|
---|
10821 |
|
---|
10822 | #undef PrfOpenProfile
|
---|
10823 | #define PrfOpenProfile _PrfOpenProfile
|
---|
10824 |
|
---|
10825 | inline BOOL _PrfQueryProfile(HAB a, PPRFPROFILE b)
|
---|
10826 | {
|
---|
10827 | BOOL yyrc;
|
---|
10828 | USHORT sel = GetFS();
|
---|
10829 |
|
---|
10830 | yyrc = PrfQueryProfile(a, b);
|
---|
10831 | SetFS(sel);
|
---|
10832 |
|
---|
10833 | return yyrc;
|
---|
10834 | }
|
---|
10835 |
|
---|
10836 | #undef PrfQueryProfile
|
---|
10837 | #define PrfQueryProfile _PrfQueryProfile
|
---|
10838 |
|
---|
10839 | inline BOOL _PrfQueryProfileData(HINI a, PCSZ b, PCSZ c, PVOID d, PULONG e)
|
---|
10840 | {
|
---|
10841 | BOOL yyrc;
|
---|
10842 | USHORT sel = GetFS();
|
---|
10843 |
|
---|
10844 | yyrc = PrfQueryProfileData(a, b, c, d, e);
|
---|
10845 | SetFS(sel);
|
---|
10846 |
|
---|
10847 | return yyrc;
|
---|
10848 | }
|
---|
10849 |
|
---|
10850 | #undef PrfQueryProfileData
|
---|
10851 | #define PrfQueryProfileData _PrfQueryProfileData
|
---|
10852 |
|
---|
10853 | inline LONG _PrfQueryProfileInt(HINI a, PCSZ b, PCSZ c, LONG d)
|
---|
10854 | {
|
---|
10855 | LONG yyrc;
|
---|
10856 | USHORT sel = GetFS();
|
---|
10857 |
|
---|
10858 | yyrc = PrfQueryProfileInt(a, b, c, d);
|
---|
10859 | SetFS(sel);
|
---|
10860 |
|
---|
10861 | return yyrc;
|
---|
10862 | }
|
---|
10863 |
|
---|
10864 | #undef PrfQueryProfileInt
|
---|
10865 | #define PrfQueryProfileInt _PrfQueryProfileInt
|
---|
10866 |
|
---|
10867 | inline BOOL _PrfQueryProfileSize(HINI a, PCSZ b, PCSZ c, PULONG d)
|
---|
10868 | {
|
---|
10869 | BOOL yyrc;
|
---|
10870 | USHORT sel = GetFS();
|
---|
10871 |
|
---|
10872 | yyrc = PrfQueryProfileSize(a, b, c, d);
|
---|
10873 | SetFS(sel);
|
---|
10874 |
|
---|
10875 | return yyrc;
|
---|
10876 | }
|
---|
10877 |
|
---|
10878 | #undef PrfQueryProfileSize
|
---|
10879 | #define PrfQueryProfileSize _PrfQueryProfileSize
|
---|
10880 |
|
---|
10881 | inline ULONG _PrfQueryProfileString(HINI a, PCSZ b, PCSZ c, PCSZ d, PVOID e, ULONG f)
|
---|
10882 | {
|
---|
10883 | ULONG yyrc;
|
---|
10884 | USHORT sel = GetFS();
|
---|
10885 |
|
---|
10886 | yyrc = PrfQueryProfileString(a, b, c, d, e, f);
|
---|
10887 | SetFS(sel);
|
---|
10888 |
|
---|
10889 | return yyrc;
|
---|
10890 | }
|
---|
10891 |
|
---|
10892 | #undef PrfQueryProfileString
|
---|
10893 | #define PrfQueryProfileString _PrfQueryProfileString
|
---|
10894 |
|
---|
10895 | inline BOOL _PrfReset(HAB a, PPRFPROFILE b)
|
---|
10896 | {
|
---|
10897 | BOOL yyrc;
|
---|
10898 | USHORT sel = GetFS();
|
---|
10899 |
|
---|
10900 | yyrc = PrfReset(a, b);
|
---|
10901 | SetFS(sel);
|
---|
10902 |
|
---|
10903 | return yyrc;
|
---|
10904 | }
|
---|
10905 |
|
---|
10906 | #undef PrfReset
|
---|
10907 | #define PrfReset _PrfReset
|
---|
10908 |
|
---|
10909 | inline BOOL _PrfWriteProfileData(HINI a, PCSZ b, PCSZ c, PVOID d, ULONG e)
|
---|
10910 | {
|
---|
10911 | BOOL yyrc;
|
---|
10912 | USHORT sel = GetFS();
|
---|
10913 |
|
---|
10914 | yyrc = PrfWriteProfileData(a, b, c, d, e);
|
---|
10915 | SetFS(sel);
|
---|
10916 |
|
---|
10917 | return yyrc;
|
---|
10918 | }
|
---|
10919 |
|
---|
10920 | #undef PrfWriteProfileData
|
---|
10921 | #define PrfWriteProfileData _PrfWriteProfileData
|
---|
10922 |
|
---|
10923 | inline BOOL _PrfWriteProfileString(HINI a, PCSZ b, PCSZ c, PCSZ d)
|
---|
10924 | {
|
---|
10925 | BOOL yyrc;
|
---|
10926 | USHORT sel = GetFS();
|
---|
10927 |
|
---|
10928 | yyrc = PrfWriteProfileString(a, b, c, d);
|
---|
10929 | SetFS(sel);
|
---|
10930 |
|
---|
10931 | return yyrc;
|
---|
10932 | }
|
---|
10933 |
|
---|
10934 | #undef PrfWriteProfileString
|
---|
10935 | #define PrfWriteProfileString _PrfWriteProfileString
|
---|
10936 |
|
---|
10937 | #endif
|
---|
10938 | #ifdef INCL_WINSTDFILE
|
---|
10939 | inline MRESULT _WinDefFileDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
|
---|
10940 | {
|
---|
10941 | MRESULT yyrc;
|
---|
10942 | USHORT sel = GetFS();
|
---|
10943 |
|
---|
10944 | yyrc = WinDefFileDlgProc(a, b, c, d);
|
---|
10945 | SetFS(sel);
|
---|
10946 |
|
---|
10947 | return yyrc;
|
---|
10948 | }
|
---|
10949 |
|
---|
10950 | #undef WinDefFileDlgProc
|
---|
10951 | #define WinDefFileDlgProc _WinDefFileDlgProc
|
---|
10952 |
|
---|
10953 | inline HWND _WinFileDlg(HWND a, HWND b, PFILEDLG c)
|
---|
10954 | {
|
---|
10955 | HWND yyrc;
|
---|
10956 | USHORT sel = GetFS();
|
---|
10957 |
|
---|
10958 | yyrc = WinFileDlg(a, b, c);
|
---|
10959 | SetFS(sel);
|
---|
10960 |
|
---|
10961 | return yyrc;
|
---|
10962 | }
|
---|
10963 |
|
---|
10964 | #undef WinFileDlg
|
---|
10965 | #define WinFileDlg _WinFileDlg
|
---|
10966 |
|
---|
10967 | inline BOOL _WinFreeFileDlgList(PAPSZ a)
|
---|
10968 | {
|
---|
10969 | BOOL yyrc;
|
---|
10970 | USHORT sel = GetFS();
|
---|
10971 |
|
---|
10972 | yyrc = WinFreeFileDlgList(a);
|
---|
10973 | SetFS(sel);
|
---|
10974 |
|
---|
10975 | return yyrc;
|
---|
10976 | }
|
---|
10977 |
|
---|
10978 | #undef WinFreeFileDlgList
|
---|
10979 | #define WinFreeFileDlgList _WinFreeFileDlgList
|
---|
10980 |
|
---|
10981 | #endif
|
---|
10982 | #ifdef INCL_WINSTDFONT
|
---|
10983 | inline HWND _WinFontDlg(HWND a, HWND b, PFONTDLG c)
|
---|
10984 | {
|
---|
10985 | HWND yyrc;
|
---|
10986 | USHORT sel = GetFS();
|
---|
10987 |
|
---|
10988 | yyrc = WinFontDlg(a, b, c);
|
---|
10989 | SetFS(sel);
|
---|
10990 |
|
---|
10991 | return yyrc;
|
---|
10992 | }
|
---|
10993 |
|
---|
10994 | #undef WinFontDlg
|
---|
10995 | #define WinFontDlg _WinFontDlg
|
---|
10996 |
|
---|
10997 | inline MRESULT _WinDefFontDlgProc(HWND a, ULONG b, MPARAM c, MPARAM d)
|
---|
10998 | {
|
---|
10999 | MRESULT yyrc;
|
---|
11000 | USHORT sel = GetFS();
|
---|
11001 |
|
---|
11002 | yyrc = WinDefFontDlgProc(a, b, c, d);
|
---|
11003 | SetFS(sel);
|
---|
11004 |
|
---|
11005 | return yyrc;
|
---|
11006 | }
|
---|
11007 |
|
---|
11008 | #undef WinDefFontDlgProc
|
---|
11009 | #define WinDefFontDlgProc _WinDefFontDlgProc
|
---|
11010 |
|
---|
11011 | #endif
|
---|
11012 | #ifdef INCL_WINSTDDRAG
|
---|
11013 | inline BOOL _DrgAcceptDroppedFiles(HWND a, PCSZ b, PCSZ c, ULONG d, ULONG e)
|
---|
11014 | {
|
---|
11015 | BOOL yyrc;
|
---|
11016 | USHORT sel = GetFS();
|
---|
11017 |
|
---|
11018 | yyrc = DrgAcceptDroppedFiles(a, b, c, d, e);
|
---|
11019 | SetFS(sel);
|
---|
11020 |
|
---|
11021 | return yyrc;
|
---|
11022 | }
|
---|
11023 |
|
---|
11024 | #undef DrgAcceptDroppedFiles
|
---|
11025 | #define DrgAcceptDroppedFiles _DrgAcceptDroppedFiles
|
---|
11026 |
|
---|
11027 | inline BOOL _DrgAccessDraginfo(PDRAGINFO a)
|
---|
11028 | {
|
---|
11029 | BOOL yyrc;
|
---|
11030 | USHORT sel = GetFS();
|
---|
11031 |
|
---|
11032 | yyrc = DrgAccessDraginfo(a);
|
---|
11033 | SetFS(sel);
|
---|
11034 |
|
---|
11035 | return yyrc;
|
---|
11036 | }
|
---|
11037 |
|
---|
11038 | #undef DrgAccessDraginfo
|
---|
11039 | #define DrgAccessDraginfo _DrgAccessDraginfo
|
---|
11040 |
|
---|
11041 | inline HSTR _DrgAddStrHandle(PCSZ a)
|
---|
11042 | {
|
---|
11043 | HSTR yyrc;
|
---|
11044 | USHORT sel = GetFS();
|
---|
11045 |
|
---|
11046 | yyrc = DrgAddStrHandle(a);
|
---|
11047 | SetFS(sel);
|
---|
11048 |
|
---|
11049 | return yyrc;
|
---|
11050 | }
|
---|
11051 |
|
---|
11052 | #undef DrgAddStrHandle
|
---|
11053 | #define DrgAddStrHandle _DrgAddStrHandle
|
---|
11054 |
|
---|
11055 | inline PDRAGINFO _DrgAllocDraginfo(ULONG a)
|
---|
11056 | {
|
---|
11057 | PDRAGINFO yyrc;
|
---|
11058 | USHORT sel = GetFS();
|
---|
11059 |
|
---|
11060 | yyrc = DrgAllocDraginfo(a);
|
---|
11061 | SetFS(sel);
|
---|
11062 |
|
---|
11063 | return yyrc;
|
---|
11064 | }
|
---|
11065 |
|
---|
11066 | #undef DrgAllocDraginfo
|
---|
11067 | #define DrgAllocDraginfo _DrgAllocDraginfo
|
---|
11068 |
|
---|
11069 | inline PDRAGTRANSFER _DrgAllocDragtransfer(ULONG a)
|
---|
11070 | {
|
---|
11071 | PDRAGTRANSFER yyrc;
|
---|
11072 | USHORT sel = GetFS();
|
---|
11073 |
|
---|
11074 | yyrc = DrgAllocDragtransfer(a);
|
---|
11075 | SetFS(sel);
|
---|
11076 |
|
---|
11077 | return yyrc;
|
---|
11078 | }
|
---|
11079 |
|
---|
11080 | #undef DrgAllocDragtransfer
|
---|
11081 | #define DrgAllocDragtransfer _DrgAllocDragtransfer
|
---|
11082 |
|
---|
11083 | inline BOOL _DrgCancelLazyDrag()
|
---|
11084 | {
|
---|
11085 | BOOL yyrc;
|
---|
11086 | USHORT sel = GetFS();
|
---|
11087 |
|
---|
11088 | yyrc = DrgCancelLazyDrag();
|
---|
11089 | SetFS(sel);
|
---|
11090 |
|
---|
11091 | return yyrc;
|
---|
11092 | }
|
---|
11093 |
|
---|
11094 | #undef DrgCancelLazyDrag
|
---|
11095 | #define DrgCancelLazyDrag _DrgCancelLazyDrag
|
---|
11096 |
|
---|
11097 | inline BOOL _DrgDeleteDraginfoStrHandles(PDRAGINFO a)
|
---|
11098 | {
|
---|
11099 | BOOL yyrc;
|
---|
11100 | USHORT sel = GetFS();
|
---|
11101 |
|
---|
11102 | yyrc = DrgDeleteDraginfoStrHandles(a);
|
---|
11103 | SetFS(sel);
|
---|
11104 |
|
---|
11105 | return yyrc;
|
---|
11106 | }
|
---|
11107 |
|
---|
11108 | #undef DrgDeleteDraginfoStrHandles
|
---|
11109 | #define DrgDeleteDraginfoStrHandles _DrgDeleteDraginfoStrHandles
|
---|
11110 |
|
---|
11111 | inline BOOL _DrgDeleteStrHandle(HSTR a)
|
---|
11112 | {
|
---|
11113 | BOOL yyrc;
|
---|
11114 | USHORT sel = GetFS();
|
---|
11115 |
|
---|
11116 | yyrc = DrgDeleteStrHandle(a);
|
---|
11117 | SetFS(sel);
|
---|
11118 |
|
---|
11119 | return yyrc;
|
---|
11120 | }
|
---|
11121 |
|
---|
11122 | #undef DrgDeleteStrHandle
|
---|
11123 | #define DrgDeleteStrHandle _DrgDeleteStrHandle
|
---|
11124 |
|
---|
11125 | inline HWND _DrgDrag(HWND a, PDRAGINFO b, PDRAGIMAGE c, ULONG d, LONG e, PVOID f)
|
---|
11126 | {
|
---|
11127 | HWND yyrc;
|
---|
11128 | USHORT sel = GetFS();
|
---|
11129 |
|
---|
11130 | yyrc = DrgDrag(a, b, c, d, e, f);
|
---|
11131 | SetFS(sel);
|
---|
11132 |
|
---|
11133 | return yyrc;
|
---|
11134 | }
|
---|
11135 |
|
---|
11136 | #undef DrgDrag
|
---|
11137 | #define DrgDrag _DrgDrag
|
---|
11138 |
|
---|
11139 | inline BOOL _DrgDragFiles(HWND a, PCSZ *b, PCSZ *c, PCSZ *d, ULONG e, HPOINTER f, ULONG g, BOOL h, ULONG i)
|
---|
11140 | {
|
---|
11141 | BOOL yyrc;
|
---|
11142 | USHORT sel = GetFS();
|
---|
11143 |
|
---|
11144 | yyrc = DrgDragFiles(a, b, c, d, e, f, g, h, i);
|
---|
11145 | SetFS(sel);
|
---|
11146 |
|
---|
11147 | return yyrc;
|
---|
11148 | }
|
---|
11149 |
|
---|
11150 | #undef DrgDragFiles
|
---|
11151 | #define DrgDragFiles _DrgDragFiles
|
---|
11152 |
|
---|
11153 | inline BOOL _DrgFreeDraginfo(PDRAGINFO a)
|
---|
11154 | {
|
---|
11155 | BOOL yyrc;
|
---|
11156 | USHORT sel = GetFS();
|
---|
11157 |
|
---|
11158 | yyrc = DrgFreeDraginfo(a);
|
---|
11159 | SetFS(sel);
|
---|
11160 |
|
---|
11161 | return yyrc;
|
---|
11162 | }
|
---|
11163 |
|
---|
11164 | #undef DrgFreeDraginfo
|
---|
11165 | #define DrgFreeDraginfo _DrgFreeDraginfo
|
---|
11166 |
|
---|
11167 | inline BOOL _DrgFreeDragtransfer(PDRAGTRANSFER a)
|
---|
11168 | {
|
---|
11169 | BOOL yyrc;
|
---|
11170 | USHORT sel = GetFS();
|
---|
11171 |
|
---|
11172 | yyrc = DrgFreeDragtransfer(a);
|
---|
11173 | SetFS(sel);
|
---|
11174 |
|
---|
11175 | return yyrc;
|
---|
11176 | }
|
---|
11177 |
|
---|
11178 | #undef DrgFreeDragtransfer
|
---|
11179 | #define DrgFreeDragtransfer _DrgFreeDragtransfer
|
---|
11180 |
|
---|
11181 | inline HPS _DrgGetPS(HWND a)
|
---|
11182 | {
|
---|
11183 | HPS yyrc;
|
---|
11184 | USHORT sel = GetFS();
|
---|
11185 |
|
---|
11186 | yyrc = DrgGetPS(a);
|
---|
11187 | SetFS(sel);
|
---|
11188 |
|
---|
11189 | return yyrc;
|
---|
11190 | }
|
---|
11191 |
|
---|
11192 | #undef DrgGetPS
|
---|
11193 | #define DrgGetPS _DrgGetPS
|
---|
11194 |
|
---|
11195 | inline BOOL _DrgLazyDrag(HWND a, PDRAGINFO b, PDRAGIMAGE c, ULONG d, PVOID e)
|
---|
11196 | {
|
---|
11197 | BOOL yyrc;
|
---|
11198 | USHORT sel = GetFS();
|
---|
11199 |
|
---|
11200 | yyrc = DrgLazyDrag(a, b, c, d, e);
|
---|
11201 | SetFS(sel);
|
---|
11202 |
|
---|
11203 | return yyrc;
|
---|
11204 | }
|
---|
11205 |
|
---|
11206 | #undef DrgLazyDrag
|
---|
11207 | #define DrgLazyDrag _DrgLazyDrag
|
---|
11208 |
|
---|
11209 | inline BOOL _DrgLazyDrop(HWND a, ULONG b, PPOINTL c)
|
---|
11210 | {
|
---|
11211 | BOOL yyrc;
|
---|
11212 | USHORT sel = GetFS();
|
---|
11213 |
|
---|
11214 | yyrc = DrgLazyDrop(a, b, c);
|
---|
11215 | SetFS(sel);
|
---|
11216 |
|
---|
11217 | return yyrc;
|
---|
11218 | }
|
---|
11219 |
|
---|
11220 | #undef DrgLazyDrop
|
---|
11221 | #define DrgLazyDrop _DrgLazyDrop
|
---|
11222 |
|
---|
11223 | inline BOOL _DrgPostTransferMsg(HWND a, ULONG b, PDRAGTRANSFER c, ULONG d, ULONG e, BOOL f)
|
---|
11224 | {
|
---|
11225 | BOOL yyrc;
|
---|
11226 | USHORT sel = GetFS();
|
---|
11227 |
|
---|
11228 | yyrc = DrgPostTransferMsg(a, b, c, d, e, f);
|
---|
11229 | SetFS(sel);
|
---|
11230 |
|
---|
11231 | return yyrc;
|
---|
11232 | }
|
---|
11233 |
|
---|
11234 | #undef DrgPostTransferMsg
|
---|
11235 | #define DrgPostTransferMsg _DrgPostTransferMsg
|
---|
11236 |
|
---|
11237 | inline BOOL _DrgPushDraginfo(PDRAGINFO a, HWND b)
|
---|
11238 | {
|
---|
11239 | BOOL yyrc;
|
---|
11240 | USHORT sel = GetFS();
|
---|
11241 |
|
---|
11242 | yyrc = DrgPushDraginfo(a, b);
|
---|
11243 | SetFS(sel);
|
---|
11244 |
|
---|
11245 | return yyrc;
|
---|
11246 | }
|
---|
11247 |
|
---|
11248 | #undef DrgPushDraginfo
|
---|
11249 | #define DrgPushDraginfo _DrgPushDraginfo
|
---|
11250 |
|
---|
11251 | inline PDRAGINFO _DrgQueryDraginfoPtr(PDRAGINFO a)
|
---|
11252 | {
|
---|
11253 | PDRAGINFO yyrc;
|
---|
11254 | USHORT sel = GetFS();
|
---|
11255 |
|
---|
11256 | yyrc = DrgQueryDraginfoPtr(a);
|
---|
11257 | SetFS(sel);
|
---|
11258 |
|
---|
11259 | return yyrc;
|
---|
11260 | }
|
---|
11261 |
|
---|
11262 | #undef DrgQueryDraginfoPtr
|
---|
11263 | #define DrgQueryDraginfoPtr _DrgQueryDraginfoPtr
|
---|
11264 |
|
---|
11265 | inline PDRAGINFO _DrgQueryDraginfoPtrFromHwnd(HWND a)
|
---|
11266 | {
|
---|
11267 | PDRAGINFO yyrc;
|
---|
11268 | USHORT sel = GetFS();
|
---|
11269 |
|
---|
11270 | yyrc = DrgQueryDraginfoPtrFromHwnd(a);
|
---|
11271 | SetFS(sel);
|
---|
11272 |
|
---|
11273 | return yyrc;
|
---|
11274 | }
|
---|
11275 |
|
---|
11276 | #undef DrgQueryDraginfoPtrFromHwnd
|
---|
11277 | #define DrgQueryDraginfoPtrFromHwnd _DrgQueryDraginfoPtrFromHwnd
|
---|
11278 |
|
---|
11279 | inline PDRAGINFO _DrgQueryDraginfoPtrFromDragitem(PDRAGITEM a)
|
---|
11280 | {
|
---|
11281 | PDRAGINFO yyrc;
|
---|
11282 | USHORT sel = GetFS();
|
---|
11283 |
|
---|
11284 | yyrc = DrgQueryDraginfoPtrFromDragitem(a);
|
---|
11285 | SetFS(sel);
|
---|
11286 |
|
---|
11287 | return yyrc;
|
---|
11288 | }
|
---|
11289 |
|
---|
11290 | #undef DrgQueryDraginfoPtrFromDragitem
|
---|
11291 | #define DrgQueryDraginfoPtrFromDragitem _DrgQueryDraginfoPtrFromDragitem
|
---|
11292 |
|
---|
11293 | inline BOOL _DrgQueryDragitem(PDRAGINFO a, ULONG b, PDRAGITEM c, ULONG d)
|
---|
11294 | {
|
---|
11295 | BOOL yyrc;
|
---|
11296 | USHORT sel = GetFS();
|
---|
11297 |
|
---|
11298 | yyrc = DrgQueryDragitem(a, b, c, d);
|
---|
11299 | SetFS(sel);
|
---|
11300 |
|
---|
11301 | return yyrc;
|
---|
11302 | }
|
---|
11303 |
|
---|
11304 | #undef DrgQueryDragitem
|
---|
11305 | #define DrgQueryDragitem _DrgQueryDragitem
|
---|
11306 |
|
---|
11307 | inline ULONG _DrgQueryDragitemCount(PDRAGINFO a)
|
---|
11308 | {
|
---|
11309 | ULONG yyrc;
|
---|
11310 | USHORT sel = GetFS();
|
---|
11311 |
|
---|
11312 | yyrc = DrgQueryDragitemCount(a);
|
---|
11313 | SetFS(sel);
|
---|
11314 |
|
---|
11315 | return yyrc;
|
---|
11316 | }
|
---|
11317 |
|
---|
11318 | #undef DrgQueryDragitemCount
|
---|
11319 | #define DrgQueryDragitemCount _DrgQueryDragitemCount
|
---|
11320 |
|
---|
11321 | inline PDRAGITEM _DrgQueryDragitemPtr(PDRAGINFO a, ULONG b)
|
---|
11322 | {
|
---|
11323 | PDRAGITEM yyrc;
|
---|
11324 | USHORT sel = GetFS();
|
---|
11325 |
|
---|
11326 | yyrc = DrgQueryDragitemPtr(a, b);
|
---|
11327 | SetFS(sel);
|
---|
11328 |
|
---|
11329 | return yyrc;
|
---|
11330 | }
|
---|
11331 |
|
---|
11332 | #undef DrgQueryDragitemPtr
|
---|
11333 | #define DrgQueryDragitemPtr _DrgQueryDragitemPtr
|
---|
11334 |
|
---|
11335 | inline ULONG _DrgQueryDragStatus()
|
---|
11336 | {
|
---|
11337 | ULONG yyrc;
|
---|
11338 | USHORT sel = GetFS();
|
---|
11339 |
|
---|
11340 | yyrc = DrgQueryDragStatus();
|
---|
11341 | SetFS(sel);
|
---|
11342 |
|
---|
11343 | return yyrc;
|
---|
11344 | }
|
---|
11345 |
|
---|
11346 | #undef DrgQueryDragStatus
|
---|
11347 | #define DrgQueryDragStatus _DrgQueryDragStatus
|
---|
11348 |
|
---|
11349 | inline BOOL _DrgQueryNativeRMF(PDRAGITEM a, ULONG b, PCHAR c)
|
---|
11350 | {
|
---|
11351 | BOOL yyrc;
|
---|
11352 | USHORT sel = GetFS();
|
---|
11353 |
|
---|
11354 | yyrc = DrgQueryNativeRMF(a, b, c);
|
---|
11355 | SetFS(sel);
|
---|
11356 |
|
---|
11357 | return yyrc;
|
---|
11358 | }
|
---|
11359 |
|
---|
11360 | #undef DrgQueryNativeRMF
|
---|
11361 | #define DrgQueryNativeRMF _DrgQueryNativeRMF
|
---|
11362 |
|
---|
11363 | inline ULONG _DrgQueryNativeRMFLen(PDRAGITEM a)
|
---|
11364 | {
|
---|
11365 | ULONG yyrc;
|
---|
11366 | USHORT sel = GetFS();
|
---|
11367 |
|
---|
11368 | yyrc = DrgQueryNativeRMFLen(a);
|
---|
11369 | SetFS(sel);
|
---|
11370 |
|
---|
11371 | return yyrc;
|
---|
11372 | }
|
---|
11373 |
|
---|
11374 | #undef DrgQueryNativeRMFLen
|
---|
11375 | #define DrgQueryNativeRMFLen _DrgQueryNativeRMFLen
|
---|
11376 |
|
---|
11377 | inline ULONG _DrgQueryStrName(HSTR a, ULONG b, PSZ c)
|
---|
11378 | {
|
---|
11379 | ULONG yyrc;
|
---|
11380 | USHORT sel = GetFS();
|
---|
11381 |
|
---|
11382 | yyrc = DrgQueryStrName(a, b, c);
|
---|
11383 | SetFS(sel);
|
---|
11384 |
|
---|
11385 | return yyrc;
|
---|
11386 | }
|
---|
11387 |
|
---|
11388 | #undef DrgQueryStrName
|
---|
11389 | #define DrgQueryStrName _DrgQueryStrName
|
---|
11390 |
|
---|
11391 | inline ULONG _DrgQueryStrNameLen(HSTR a)
|
---|
11392 | {
|
---|
11393 | ULONG yyrc;
|
---|
11394 | USHORT sel = GetFS();
|
---|
11395 |
|
---|
11396 | yyrc = DrgQueryStrNameLen(a);
|
---|
11397 | SetFS(sel);
|
---|
11398 |
|
---|
11399 | return yyrc;
|
---|
11400 | }
|
---|
11401 |
|
---|
11402 | #undef DrgQueryStrNameLen
|
---|
11403 | #define DrgQueryStrNameLen _DrgQueryStrNameLen
|
---|
11404 |
|
---|
11405 | inline BOOL _DrgQueryTrueType(PDRAGITEM a, ULONG b, PSZ c)
|
---|
11406 | {
|
---|
11407 | BOOL yyrc;
|
---|
11408 | USHORT sel = GetFS();
|
---|
11409 |
|
---|
11410 | yyrc = DrgQueryTrueType(a, b, c);
|
---|
11411 | SetFS(sel);
|
---|
11412 |
|
---|
11413 | return yyrc;
|
---|
11414 | }
|
---|
11415 |
|
---|
11416 | #undef DrgQueryTrueType
|
---|
11417 | #define DrgQueryTrueType _DrgQueryTrueType
|
---|
11418 |
|
---|
11419 | inline ULONG _DrgQueryTrueTypeLen(PDRAGITEM a)
|
---|
11420 | {
|
---|
11421 | ULONG yyrc;
|
---|
11422 | USHORT sel = GetFS();
|
---|
11423 |
|
---|
11424 | yyrc = DrgQueryTrueTypeLen(a);
|
---|
11425 | SetFS(sel);
|
---|
11426 |
|
---|
11427 | return yyrc;
|
---|
11428 | }
|
---|
11429 |
|
---|
11430 | #undef DrgQueryTrueTypeLen
|
---|
11431 | #define DrgQueryTrueTypeLen _DrgQueryTrueTypeLen
|
---|
11432 |
|
---|
11433 | inline PDRAGINFO _DrgReallocDraginfo(PDRAGINFO a, ULONG b)
|
---|
11434 | {
|
---|
11435 | PDRAGINFO yyrc;
|
---|
11436 | USHORT sel = GetFS();
|
---|
11437 |
|
---|
11438 | yyrc = DrgReallocDraginfo(a, b);
|
---|
11439 | SetFS(sel);
|
---|
11440 |
|
---|
11441 | return yyrc;
|
---|
11442 | }
|
---|
11443 |
|
---|
11444 | #undef DrgReallocDraginfo
|
---|
11445 | #define DrgReallocDraginfo _DrgReallocDraginfo
|
---|
11446 |
|
---|
11447 | inline BOOL _DrgReleasePS(HPS a)
|
---|
11448 | {
|
---|
11449 | BOOL yyrc;
|
---|
11450 | USHORT sel = GetFS();
|
---|
11451 |
|
---|
11452 | yyrc = DrgReleasePS(a);
|
---|
11453 | SetFS(sel);
|
---|
11454 |
|
---|
11455 | return yyrc;
|
---|
11456 | }
|
---|
11457 |
|
---|
11458 | #undef DrgReleasePS
|
---|
11459 | #define DrgReleasePS _DrgReleasePS
|
---|
11460 |
|
---|
11461 | inline MRESULT _DrgSendTransferMsg(HWND a, ULONG b, MPARAM c, MPARAM d)
|
---|
11462 | {
|
---|
11463 | MRESULT yyrc;
|
---|
11464 | USHORT sel = GetFS();
|
---|
11465 |
|
---|
11466 | yyrc = DrgSendTransferMsg(a, b, c, d);
|
---|
11467 | SetFS(sel);
|
---|
11468 |
|
---|
11469 | return yyrc;
|
---|
11470 | }
|
---|
11471 |
|
---|
11472 | #undef DrgSendTransferMsg
|
---|
11473 | #define DrgSendTransferMsg _DrgSendTransferMsg
|
---|
11474 |
|
---|
11475 | inline BOOL _DrgSetDragImage(PDRAGINFO a, PDRAGIMAGE b, ULONG c, PVOID d)
|
---|
11476 | {
|
---|
11477 | BOOL yyrc;
|
---|
11478 | USHORT sel = GetFS();
|
---|
11479 |
|
---|
11480 | yyrc = DrgSetDragImage(a, b, c, d);
|
---|
11481 | SetFS(sel);
|
---|
11482 |
|
---|
11483 | return yyrc;
|
---|
11484 | }
|
---|
11485 |
|
---|
11486 | #undef DrgSetDragImage
|
---|
11487 | #define DrgSetDragImage _DrgSetDragImage
|
---|
11488 |
|
---|
11489 | inline BOOL _DrgSetDragitem(PDRAGINFO a, PDRAGITEM b, ULONG c, ULONG d)
|
---|
11490 | {
|
---|
11491 | BOOL yyrc;
|
---|
11492 | USHORT sel = GetFS();
|
---|
11493 |
|
---|
11494 | yyrc = DrgSetDragitem(a, b, c, d);
|
---|
11495 | SetFS(sel);
|
---|
11496 |
|
---|
11497 | return yyrc;
|
---|
11498 | }
|
---|
11499 |
|
---|
11500 | #undef DrgSetDragitem
|
---|
11501 | #define DrgSetDragitem _DrgSetDragitem
|
---|
11502 |
|
---|
11503 | inline BOOL _DrgSetDragPointer(PDRAGINFO a, HPOINTER b)
|
---|
11504 | {
|
---|
11505 | BOOL yyrc;
|
---|
11506 | USHORT sel = GetFS();
|
---|
11507 |
|
---|
11508 | yyrc = DrgSetDragPointer(a, b);
|
---|
11509 | SetFS(sel);
|
---|
11510 |
|
---|
11511 | return yyrc;
|
---|
11512 | }
|
---|
11513 |
|
---|
11514 | #undef DrgSetDragPointer
|
---|
11515 | #define DrgSetDragPointer _DrgSetDragPointer
|
---|
11516 |
|
---|
11517 | inline BOOL _DrgVerifyNativeRMF(PDRAGITEM a, PCSZ b)
|
---|
11518 | {
|
---|
11519 | BOOL yyrc;
|
---|
11520 | USHORT sel = GetFS();
|
---|
11521 |
|
---|
11522 | yyrc = DrgVerifyNativeRMF(a, b);
|
---|
11523 | SetFS(sel);
|
---|
11524 |
|
---|
11525 | return yyrc;
|
---|
11526 | }
|
---|
11527 |
|
---|
11528 | #undef DrgVerifyNativeRMF
|
---|
11529 | #define DrgVerifyNativeRMF _DrgVerifyNativeRMF
|
---|
11530 |
|
---|
11531 | inline BOOL _DrgVerifyRMF(PDRAGITEM a, PCSZ b, PCSZ c)
|
---|
11532 | {
|
---|
11533 | BOOL yyrc;
|
---|
11534 | USHORT sel = GetFS();
|
---|
11535 |
|
---|
11536 | yyrc = DrgVerifyRMF(a, b, c);
|
---|
11537 | SetFS(sel);
|
---|
11538 |
|
---|
11539 | return yyrc;
|
---|
11540 | }
|
---|
11541 |
|
---|
11542 | #undef DrgVerifyRMF
|
---|
11543 | #define DrgVerifyRMF _DrgVerifyRMF
|
---|
11544 |
|
---|
11545 | inline BOOL _DrgVerifyTrueType(PDRAGITEM a, PCSZ b)
|
---|
11546 | {
|
---|
11547 | BOOL yyrc;
|
---|
11548 | USHORT sel = GetFS();
|
---|
11549 |
|
---|
11550 | yyrc = DrgVerifyTrueType(a, b);
|
---|
11551 | SetFS(sel);
|
---|
11552 |
|
---|
11553 | return yyrc;
|
---|
11554 | }
|
---|
11555 |
|
---|
11556 | #undef DrgVerifyTrueType
|
---|
11557 | #define DrgVerifyTrueType _DrgVerifyTrueType
|
---|
11558 |
|
---|
11559 | inline BOOL _DrgVerifyType(PDRAGITEM a, PCSZ b)
|
---|
11560 | {
|
---|
11561 | BOOL yyrc;
|
---|
11562 | USHORT sel = GetFS();
|
---|
11563 |
|
---|
11564 | yyrc = DrgVerifyType(a, b);
|
---|
11565 | SetFS(sel);
|
---|
11566 |
|
---|
11567 | return yyrc;
|
---|
11568 | }
|
---|
11569 |
|
---|
11570 | #undef DrgVerifyType
|
---|
11571 | #define DrgVerifyType _DrgVerifyType
|
---|
11572 |
|
---|
11573 | inline BOOL _DrgVerifyTypeSet(PDRAGITEM a, PCSZ b, ULONG c, PSZ d)
|
---|
11574 | {
|
---|
11575 | BOOL yyrc;
|
---|
11576 | USHORT sel = GetFS();
|
---|
11577 |
|
---|
11578 | yyrc = DrgVerifyTypeSet(a, b, c, d);
|
---|
11579 | SetFS(sel);
|
---|
11580 |
|
---|
11581 | return yyrc;
|
---|
11582 | }
|
---|
11583 |
|
---|
11584 | #undef DrgVerifyTypeSet
|
---|
11585 | #define DrgVerifyTypeSet _DrgVerifyTypeSet
|
---|
11586 |
|
---|
11587 | #endif
|
---|
11588 | #ifdef INCL_WPCLASS
|
---|
11589 | inline HOBJECT _WinCopyObject(HOBJECT a, HOBJECT b, ULONG c)
|
---|
11590 | {
|
---|
11591 | HOBJECT yyrc;
|
---|
11592 | USHORT sel = GetFS();
|
---|
11593 |
|
---|
11594 | yyrc = WinCopyObject(a, b, c);
|
---|
11595 | SetFS(sel);
|
---|
11596 |
|
---|
11597 | return yyrc;
|
---|
11598 | }
|
---|
11599 |
|
---|
11600 | #undef WinCopyObject
|
---|
11601 | #define WinCopyObject _WinCopyObject
|
---|
11602 |
|
---|
11603 | inline HOBJECT _WinCreateObject(PCSZ a, PCSZ b, PCSZ c, PCSZ d, ULONG e)
|
---|
11604 | {
|
---|
11605 | HOBJECT yyrc;
|
---|
11606 | USHORT sel = GetFS();
|
---|
11607 |
|
---|
11608 | yyrc = WinCreateObject(a, b, c, d, e);
|
---|
11609 | SetFS(sel);
|
---|
11610 |
|
---|
11611 | return yyrc;
|
---|
11612 | }
|
---|
11613 |
|
---|
11614 | #undef WinCreateObject
|
---|
11615 | #define WinCreateObject _WinCreateObject
|
---|
11616 |
|
---|
11617 | inline HOBJECT _WinCreateShadow(HOBJECT a, HOBJECT b, ULONG c)
|
---|
11618 | {
|
---|
11619 | HOBJECT yyrc;
|
---|
11620 | USHORT sel = GetFS();
|
---|
11621 |
|
---|
11622 | yyrc = WinCreateShadow(a, b, c);
|
---|
11623 | SetFS(sel);
|
---|
11624 |
|
---|
11625 | return yyrc;
|
---|
11626 | }
|
---|
11627 |
|
---|
11628 | #undef WinCreateShadow
|
---|
11629 | #define WinCreateShadow _WinCreateShadow
|
---|
11630 |
|
---|
11631 | inline BOOL _WinDeregisterObjectClass(PCSZ a)
|
---|
11632 | {
|
---|
11633 | BOOL yyrc;
|
---|
11634 | USHORT sel = GetFS();
|
---|
11635 |
|
---|
11636 | yyrc = WinDeregisterObjectClass(a);
|
---|
11637 | SetFS(sel);
|
---|
11638 |
|
---|
11639 | return yyrc;
|
---|
11640 | }
|
---|
11641 |
|
---|
11642 | #undef WinDeregisterObjectClass
|
---|
11643 | #define WinDeregisterObjectClass _WinDeregisterObjectClass
|
---|
11644 |
|
---|
11645 | inline BOOL _WinDestroyObject(HOBJECT a)
|
---|
11646 | {
|
---|
11647 | BOOL yyrc;
|
---|
11648 | USHORT sel = GetFS();
|
---|
11649 |
|
---|
11650 | yyrc = WinDestroyObject(a);
|
---|
11651 | SetFS(sel);
|
---|
11652 |
|
---|
11653 | return yyrc;
|
---|
11654 | }
|
---|
11655 |
|
---|
11656 | #undef WinDestroyObject
|
---|
11657 | #define WinDestroyObject _WinDestroyObject
|
---|
11658 |
|
---|
11659 | inline BOOL _WinEnumObjectClasses(POBJCLASS a, PULONG b)
|
---|
11660 | {
|
---|
11661 | BOOL yyrc;
|
---|
11662 | USHORT sel = GetFS();
|
---|
11663 |
|
---|
11664 | yyrc = WinEnumObjectClasses(a, b);
|
---|
11665 | SetFS(sel);
|
---|
11666 |
|
---|
11667 | return yyrc;
|
---|
11668 | }
|
---|
11669 |
|
---|
11670 | #undef WinEnumObjectClasses
|
---|
11671 | #define WinEnumObjectClasses _WinEnumObjectClasses
|
---|
11672 |
|
---|
11673 | inline BOOL _WinIsSOMDDReady()
|
---|
11674 | {
|
---|
11675 | BOOL yyrc;
|
---|
11676 | USHORT sel = GetFS();
|
---|
11677 |
|
---|
11678 | yyrc = WinIsSOMDDReady();
|
---|
11679 | SetFS(sel);
|
---|
11680 |
|
---|
11681 | return yyrc;
|
---|
11682 | }
|
---|
11683 |
|
---|
11684 | #undef WinIsSOMDDReady
|
---|
11685 | #define WinIsSOMDDReady _WinIsSOMDDReady
|
---|
11686 |
|
---|
11687 | inline BOOL _WinIsWPDServerReady()
|
---|
11688 | {
|
---|
11689 | BOOL yyrc;
|
---|
11690 | USHORT sel = GetFS();
|
---|
11691 |
|
---|
11692 | yyrc = WinIsWPDServerReady();
|
---|
11693 | SetFS(sel);
|
---|
11694 |
|
---|
11695 | return yyrc;
|
---|
11696 | }
|
---|
11697 |
|
---|
11698 | #undef WinIsWPDServerReady
|
---|
11699 | #define WinIsWPDServerReady _WinIsWPDServerReady
|
---|
11700 |
|
---|
11701 | inline HOBJECT _WinMoveObject(HOBJECT a, HOBJECT b, ULONG c)
|
---|
11702 | {
|
---|
11703 | HOBJECT yyrc;
|
---|
11704 | USHORT sel = GetFS();
|
---|
11705 |
|
---|
11706 | yyrc = WinMoveObject(a, b, c);
|
---|
11707 | SetFS(sel);
|
---|
11708 |
|
---|
11709 | return yyrc;
|
---|
11710 | }
|
---|
11711 |
|
---|
11712 | #undef WinMoveObject
|
---|
11713 | #define WinMoveObject _WinMoveObject
|
---|
11714 |
|
---|
11715 | inline BOOL _WinOpenObject(HOBJECT a, ULONG b, BOOL c)
|
---|
11716 | {
|
---|
11717 | BOOL yyrc;
|
---|
11718 | USHORT sel = GetFS();
|
---|
11719 |
|
---|
11720 | yyrc = WinOpenObject(a, b, c);
|
---|
11721 | SetFS(sel);
|
---|
11722 |
|
---|
11723 | return yyrc;
|
---|
11724 | }
|
---|
11725 |
|
---|
11726 | #undef WinOpenObject
|
---|
11727 | #define WinOpenObject _WinOpenObject
|
---|
11728 |
|
---|
11729 | inline BOOL _WinQueryActiveDesktopPathname(PSZ a, ULONG b)
|
---|
11730 | {
|
---|
11731 | BOOL yyrc;
|
---|
11732 | USHORT sel = GetFS();
|
---|
11733 |
|
---|
11734 | yyrc = WinQueryActiveDesktopPathname(a, b);
|
---|
11735 | SetFS(sel);
|
---|
11736 |
|
---|
11737 | return yyrc;
|
---|
11738 | }
|
---|
11739 |
|
---|
11740 | #undef WinQueryActiveDesktopPathname
|
---|
11741 | #define WinQueryActiveDesktopPathname _WinQueryActiveDesktopPathname
|
---|
11742 |
|
---|
11743 | inline HOBJECT _WinQueryObject(PCSZ a)
|
---|
11744 | {
|
---|
11745 | HOBJECT yyrc;
|
---|
11746 | USHORT sel = GetFS();
|
---|
11747 |
|
---|
11748 | yyrc = WinQueryObject(a);
|
---|
11749 | SetFS(sel);
|
---|
11750 |
|
---|
11751 | return yyrc;
|
---|
11752 | }
|
---|
11753 |
|
---|
11754 | #undef WinQueryObject
|
---|
11755 | #define WinQueryObject _WinQueryObject
|
---|
11756 |
|
---|
11757 | inline BOOL _WinQueryObjectPath(HOBJECT a, PSZ b, ULONG c)
|
---|
11758 | {
|
---|
11759 | BOOL yyrc;
|
---|
11760 | USHORT sel = GetFS();
|
---|
11761 |
|
---|
11762 | yyrc = WinQueryObjectPath(a, b, c);
|
---|
11763 | SetFS(sel);
|
---|
11764 |
|
---|
11765 | return yyrc;
|
---|
11766 | }
|
---|
11767 |
|
---|
11768 | #undef WinQueryObjectPath
|
---|
11769 | #define WinQueryObjectPath _WinQueryObjectPath
|
---|
11770 |
|
---|
11771 | inline BOOL _WinRegisterObjectClass(PCSZ a, PCSZ b)
|
---|
11772 | {
|
---|
11773 | BOOL yyrc;
|
---|
11774 | USHORT sel = GetFS();
|
---|
11775 |
|
---|
11776 | yyrc = WinRegisterObjectClass(a, b);
|
---|
11777 | SetFS(sel);
|
---|
11778 |
|
---|
11779 | return yyrc;
|
---|
11780 | }
|
---|
11781 |
|
---|
11782 | #undef WinRegisterObjectClass
|
---|
11783 | #define WinRegisterObjectClass _WinRegisterObjectClass
|
---|
11784 |
|
---|
11785 | inline BOOL _WinReplaceObjectClass(PCSZ a, PCSZ b, BOOL c)
|
---|
11786 | {
|
---|
11787 | BOOL yyrc;
|
---|
11788 | USHORT sel = GetFS();
|
---|
11789 |
|
---|
11790 | yyrc = WinReplaceObjectClass(a, b, c);
|
---|
11791 | SetFS(sel);
|
---|
11792 |
|
---|
11793 | return yyrc;
|
---|
11794 | }
|
---|
11795 |
|
---|
11796 | #undef WinReplaceObjectClass
|
---|
11797 | #define WinReplaceObjectClass _WinReplaceObjectClass
|
---|
11798 |
|
---|
11799 | inline ULONG _WinRestartSOMDD(BOOL a)
|
---|
11800 | {
|
---|
11801 | ULONG yyrc;
|
---|
11802 | USHORT sel = GetFS();
|
---|
11803 |
|
---|
11804 | yyrc = WinRestartSOMDD(a);
|
---|
11805 | SetFS(sel);
|
---|
11806 |
|
---|
11807 | return yyrc;
|
---|
11808 | }
|
---|
11809 |
|
---|
11810 | #undef WinRestartSOMDD
|
---|
11811 | #define WinRestartSOMDD _WinRestartSOMDD
|
---|
11812 |
|
---|
11813 | inline ULONG _WinRestartWPDServer(BOOL a)
|
---|
11814 | {
|
---|
11815 | ULONG yyrc;
|
---|
11816 | USHORT sel = GetFS();
|
---|
11817 |
|
---|
11818 | yyrc = WinRestartWPDServer(a);
|
---|
11819 | SetFS(sel);
|
---|
11820 |
|
---|
11821 | return yyrc;
|
---|
11822 | }
|
---|
11823 |
|
---|
11824 | #undef WinRestartWPDServer
|
---|
11825 | #define WinRestartWPDServer _WinRestartWPDServer
|
---|
11826 |
|
---|
11827 | inline BOOL _WinSaveObject(HOBJECT a, BOOL b)
|
---|
11828 | {
|
---|
11829 | BOOL yyrc;
|
---|
11830 | USHORT sel = GetFS();
|
---|
11831 |
|
---|
11832 | yyrc = WinSaveObject(a, b);
|
---|
11833 | SetFS(sel);
|
---|
11834 |
|
---|
11835 | return yyrc;
|
---|
11836 | }
|
---|
11837 |
|
---|
11838 | #undef WinSaveObject
|
---|
11839 | #define WinSaveObject _WinSaveObject
|
---|
11840 |
|
---|
11841 | inline BOOL _WinSetObjectData(HOBJECT a, PCSZ b)
|
---|
11842 | {
|
---|
11843 | BOOL yyrc;
|
---|
11844 | USHORT sel = GetFS();
|
---|
11845 |
|
---|
11846 | yyrc = WinSetObjectData(a, b);
|
---|
11847 | SetFS(sel);
|
---|
11848 |
|
---|
11849 | return yyrc;
|
---|
11850 | }
|
---|
11851 |
|
---|
11852 | #undef WinSetObjectData
|
---|
11853 | #define WinSetObjectData _WinSetObjectData
|
---|
11854 |
|
---|
11855 | inline BOOL _WinFreeFileIcon(HPOINTER a)
|
---|
11856 | {
|
---|
11857 | BOOL yyrc;
|
---|
11858 | USHORT sel = GetFS();
|
---|
11859 |
|
---|
11860 | yyrc = WinFreeFileIcon(a);
|
---|
11861 | SetFS(sel);
|
---|
11862 |
|
---|
11863 | return yyrc;
|
---|
11864 | }
|
---|
11865 |
|
---|
11866 | #undef WinFreeFileIcon
|
---|
11867 | #define WinFreeFileIcon _WinFreeFileIcon
|
---|
11868 |
|
---|
11869 | inline HPOINTER _WinLoadFileIcon(PCSZ a, BOOL b)
|
---|
11870 | {
|
---|
11871 | HPOINTER yyrc;
|
---|
11872 | USHORT sel = GetFS();
|
---|
11873 |
|
---|
11874 | yyrc = WinLoadFileIcon(a, b);
|
---|
11875 | SetFS(sel);
|
---|
11876 |
|
---|
11877 | return yyrc;
|
---|
11878 | }
|
---|
11879 |
|
---|
11880 | #undef WinLoadFileIcon
|
---|
11881 | #define WinLoadFileIcon _WinLoadFileIcon
|
---|
11882 |
|
---|
11883 | inline BOOL _WinRestoreWindowPos(PCSZ a, PCSZ b, HWND c)
|
---|
11884 | {
|
---|
11885 | BOOL yyrc;
|
---|
11886 | USHORT sel = GetFS();
|
---|
11887 |
|
---|
11888 | yyrc = WinRestoreWindowPos(a, b, c);
|
---|
11889 | SetFS(sel);
|
---|
11890 |
|
---|
11891 | return yyrc;
|
---|
11892 | }
|
---|
11893 |
|
---|
11894 | #undef WinRestoreWindowPos
|
---|
11895 | #define WinRestoreWindowPos _WinRestoreWindowPos
|
---|
11896 |
|
---|
11897 | inline BOOL _WinSetFileIcon(PCSZ a, PICONINFO b)
|
---|
11898 | {
|
---|
11899 | BOOL yyrc;
|
---|
11900 | USHORT sel = GetFS();
|
---|
11901 |
|
---|
11902 | yyrc = WinSetFileIcon(a, b);
|
---|
11903 | SetFS(sel);
|
---|
11904 |
|
---|
11905 | return yyrc;
|
---|
11906 | }
|
---|
11907 |
|
---|
11908 | #undef WinSetFileIcon
|
---|
11909 | #define WinSetFileIcon _WinSetFileIcon
|
---|
11910 |
|
---|
11911 | inline BOOL _WinShutdownSystem(HAB a, HMQ b)
|
---|
11912 | {
|
---|
11913 | BOOL yyrc;
|
---|
11914 | USHORT sel = GetFS();
|
---|
11915 |
|
---|
11916 | yyrc = WinShutdownSystem(a, b);
|
---|
11917 | SetFS(sel);
|
---|
11918 |
|
---|
11919 | return yyrc;
|
---|
11920 | }
|
---|
11921 |
|
---|
11922 | #undef WinShutdownSystem
|
---|
11923 | #define WinShutdownSystem _WinShutdownSystem
|
---|
11924 |
|
---|
11925 | inline BOOL _WinStoreWindowPos(PCSZ a, PCSZ b, HWND c)
|
---|
11926 | {
|
---|
11927 | BOOL yyrc;
|
---|
11928 | USHORT sel = GetFS();
|
---|
11929 |
|
---|
11930 | yyrc = WinStoreWindowPos(a, b, c);
|
---|
11931 | SetFS(sel);
|
---|
11932 |
|
---|
11933 | return yyrc;
|
---|
11934 | }
|
---|
11935 |
|
---|
11936 | #undef WinStoreWindowPos
|
---|
11937 | #define WinStoreWindowPos _WinStoreWindowPos
|
---|
11938 |
|
---|
11939 | #endif
|
---|
11940 | #ifdef INCL_SPL
|
---|
11941 | inline BOOL _SplStdClose(HDC a)
|
---|
11942 | {
|
---|
11943 | BOOL yyrc;
|
---|
11944 | USHORT sel = GetFS();
|
---|
11945 |
|
---|
11946 | yyrc = SplStdClose(a);
|
---|
11947 | SetFS(sel);
|
---|
11948 |
|
---|
11949 | return yyrc;
|
---|
11950 | }
|
---|
11951 |
|
---|
11952 | #undef SplStdClose
|
---|
11953 | #define SplStdClose _SplStdClose
|
---|
11954 |
|
---|
11955 | inline BOOL _SplStdDelete(HSTD a)
|
---|
11956 | {
|
---|
11957 | BOOL yyrc;
|
---|
11958 | USHORT sel = GetFS();
|
---|
11959 |
|
---|
11960 | yyrc = SplStdDelete(a);
|
---|
11961 | SetFS(sel);
|
---|
11962 |
|
---|
11963 | return yyrc;
|
---|
11964 | }
|
---|
11965 |
|
---|
11966 | #undef SplStdDelete
|
---|
11967 | #define SplStdDelete _SplStdDelete
|
---|
11968 |
|
---|
11969 | inline BOOL _SplStdGetBits(HSTD a, LONG b, LONG c, PCH d)
|
---|
11970 | {
|
---|
11971 | BOOL yyrc;
|
---|
11972 | USHORT sel = GetFS();
|
---|
11973 |
|
---|
11974 | yyrc = SplStdGetBits(a, b, c, d);
|
---|
11975 | SetFS(sel);
|
---|
11976 |
|
---|
11977 | return yyrc;
|
---|
11978 | }
|
---|
11979 |
|
---|
11980 | #undef SplStdGetBits
|
---|
11981 | #define SplStdGetBits _SplStdGetBits
|
---|
11982 |
|
---|
11983 | inline BOOL _SplStdOpen(HDC a)
|
---|
11984 | {
|
---|
11985 | BOOL yyrc;
|
---|
11986 | USHORT sel = GetFS();
|
---|
11987 |
|
---|
11988 | yyrc = SplStdOpen(a);
|
---|
11989 | SetFS(sel);
|
---|
11990 |
|
---|
11991 | return yyrc;
|
---|
11992 | }
|
---|
11993 |
|
---|
11994 | #undef SplStdOpen
|
---|
11995 | #define SplStdOpen _SplStdOpen
|
---|
11996 |
|
---|
11997 | inline LONG _SplStdQueryLength(HSTD a)
|
---|
11998 | {
|
---|
11999 | LONG yyrc;
|
---|
12000 | USHORT sel = GetFS();
|
---|
12001 |
|
---|
12002 | yyrc = SplStdQueryLength(a);
|
---|
12003 | SetFS(sel);
|
---|
12004 |
|
---|
12005 | return yyrc;
|
---|
12006 | }
|
---|
12007 |
|
---|
12008 | #undef SplStdQueryLength
|
---|
12009 | #define SplStdQueryLength _SplStdQueryLength
|
---|
12010 |
|
---|
12011 | inline BOOL _SplStdStart(HDC a)
|
---|
12012 | {
|
---|
12013 | BOOL yyrc;
|
---|
12014 | USHORT sel = GetFS();
|
---|
12015 |
|
---|
12016 | yyrc = SplStdStart(a);
|
---|
12017 | SetFS(sel);
|
---|
12018 |
|
---|
12019 | return yyrc;
|
---|
12020 | }
|
---|
12021 |
|
---|
12022 | #undef SplStdStart
|
---|
12023 | #define SplStdStart _SplStdStart
|
---|
12024 |
|
---|
12025 | inline HSTD _SplStdStop(HDC a)
|
---|
12026 | {
|
---|
12027 | HSTD yyrc;
|
---|
12028 | USHORT sel = GetFS();
|
---|
12029 |
|
---|
12030 | yyrc = SplStdStop(a);
|
---|
12031 | SetFS(sel);
|
---|
12032 |
|
---|
12033 | return yyrc;
|
---|
12034 | }
|
---|
12035 |
|
---|
12036 | #undef SplStdStop
|
---|
12037 | #define SplStdStop _SplStdStop
|
---|
12038 |
|
---|
12039 | inline SPLERR _SplControlDevice(PSZ a, PSZ b, ULONG c)
|
---|
12040 | {
|
---|
12041 | SPLERR yyrc;
|
---|
12042 | USHORT sel = GetFS();
|
---|
12043 |
|
---|
12044 | yyrc = SplControlDevice(a, b, c);
|
---|
12045 | SetFS(sel);
|
---|
12046 |
|
---|
12047 | return yyrc;
|
---|
12048 | }
|
---|
12049 |
|
---|
12050 | #undef SplControlDevice
|
---|
12051 | #define SplControlDevice _SplControlDevice
|
---|
12052 |
|
---|
12053 | inline SPLERR _SplCopyJob(PCSZ a, PCSZ b, ULONG c, PCSZ d, PCSZ e, PULONG f)
|
---|
12054 | {
|
---|
12055 | SPLERR yyrc;
|
---|
12056 | USHORT sel = GetFS();
|
---|
12057 |
|
---|
12058 | yyrc = SplCopyJob(a, b, c, d, e, f);
|
---|
12059 | SetFS(sel);
|
---|
12060 |
|
---|
12061 | return yyrc;
|
---|
12062 | }
|
---|
12063 |
|
---|
12064 | #undef SplCopyJob
|
---|
12065 | #define SplCopyJob _SplCopyJob
|
---|
12066 |
|
---|
12067 | inline SPLERR _SplCreateDevice(PSZ a, ULONG b, PVOID c, ULONG d)
|
---|
12068 | {
|
---|
12069 | SPLERR yyrc;
|
---|
12070 | USHORT sel = GetFS();
|
---|
12071 |
|
---|
12072 | yyrc = SplCreateDevice(a, b, c, d);
|
---|
12073 | SetFS(sel);
|
---|
12074 |
|
---|
12075 | return yyrc;
|
---|
12076 | }
|
---|
12077 |
|
---|
12078 | #undef SplCreateDevice
|
---|
12079 | #define SplCreateDevice _SplCreateDevice
|
---|
12080 |
|
---|
12081 | inline SPLERR _SplCreatePort(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f)
|
---|
12082 | {
|
---|
12083 | SPLERR yyrc;
|
---|
12084 | USHORT sel = GetFS();
|
---|
12085 |
|
---|
12086 | yyrc = SplCreatePort(a, b, c, d, e, f);
|
---|
12087 | SetFS(sel);
|
---|
12088 |
|
---|
12089 | return yyrc;
|
---|
12090 | }
|
---|
12091 |
|
---|
12092 | #undef SplCreatePort
|
---|
12093 | #define SplCreatePort _SplCreatePort
|
---|
12094 |
|
---|
12095 | inline SPLERR _SplCreateQueue(PSZ a, ULONG b, PVOID c, ULONG d)
|
---|
12096 | {
|
---|
12097 | SPLERR yyrc;
|
---|
12098 | USHORT sel = GetFS();
|
---|
12099 |
|
---|
12100 | yyrc = SplCreateQueue(a, b, c, d);
|
---|
12101 | SetFS(sel);
|
---|
12102 |
|
---|
12103 | return yyrc;
|
---|
12104 | }
|
---|
12105 |
|
---|
12106 | #undef SplCreateQueue
|
---|
12107 | #define SplCreateQueue _SplCreateQueue
|
---|
12108 |
|
---|
12109 | inline SPLERR _SplDeleteDevice(PSZ a, PSZ b)
|
---|
12110 | {
|
---|
12111 | SPLERR yyrc;
|
---|
12112 | USHORT sel = GetFS();
|
---|
12113 |
|
---|
12114 | yyrc = SplDeleteDevice(a, b);
|
---|
12115 | SetFS(sel);
|
---|
12116 |
|
---|
12117 | return yyrc;
|
---|
12118 | }
|
---|
12119 |
|
---|
12120 | #undef SplDeleteDevice
|
---|
12121 | #define SplDeleteDevice _SplDeleteDevice
|
---|
12122 |
|
---|
12123 | inline SPLERR _SplDeleteJob(PSZ a, PSZ b, ULONG c)
|
---|
12124 | {
|
---|
12125 | SPLERR yyrc;
|
---|
12126 | USHORT sel = GetFS();
|
---|
12127 |
|
---|
12128 | yyrc = SplDeleteJob(a, b, c);
|
---|
12129 | SetFS(sel);
|
---|
12130 |
|
---|
12131 | return yyrc;
|
---|
12132 | }
|
---|
12133 |
|
---|
12134 | #undef SplDeleteJob
|
---|
12135 | #define SplDeleteJob _SplDeleteJob
|
---|
12136 |
|
---|
12137 | inline SPLERR _SplDeletePort(PCSZ a, PCSZ b)
|
---|
12138 | {
|
---|
12139 | SPLERR yyrc;
|
---|
12140 | USHORT sel = GetFS();
|
---|
12141 |
|
---|
12142 | yyrc = SplDeletePort(a, b);
|
---|
12143 | SetFS(sel);
|
---|
12144 |
|
---|
12145 | return yyrc;
|
---|
12146 | }
|
---|
12147 |
|
---|
12148 | #undef SplDeletePort
|
---|
12149 | #define SplDeletePort _SplDeletePort
|
---|
12150 |
|
---|
12151 | inline SPLERR _SplDeleteQueue(PSZ a, PSZ b)
|
---|
12152 | {
|
---|
12153 | SPLERR yyrc;
|
---|
12154 | USHORT sel = GetFS();
|
---|
12155 |
|
---|
12156 | yyrc = SplDeleteQueue(a, b);
|
---|
12157 | SetFS(sel);
|
---|
12158 |
|
---|
12159 | return yyrc;
|
---|
12160 | }
|
---|
12161 |
|
---|
12162 | #undef SplDeleteQueue
|
---|
12163 | #define SplDeleteQueue _SplDeleteQueue
|
---|
12164 |
|
---|
12165 | inline SPLERR _SplEnumDevice(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
|
---|
12166 | {
|
---|
12167 | SPLERR yyrc;
|
---|
12168 | USHORT sel = GetFS();
|
---|
12169 |
|
---|
12170 | yyrc = SplEnumDevice(a, b, c, d, e, f, g, h);
|
---|
12171 | SetFS(sel);
|
---|
12172 |
|
---|
12173 | return yyrc;
|
---|
12174 | }
|
---|
12175 |
|
---|
12176 | #undef SplEnumDevice
|
---|
12177 | #define SplEnumDevice _SplEnumDevice
|
---|
12178 |
|
---|
12179 | inline SPLERR _SplEnumDriver(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
|
---|
12180 | {
|
---|
12181 | SPLERR yyrc;
|
---|
12182 | USHORT sel = GetFS();
|
---|
12183 |
|
---|
12184 | yyrc = SplEnumDriver(a, b, c, d, e, f, g, h);
|
---|
12185 | SetFS(sel);
|
---|
12186 |
|
---|
12187 | return yyrc;
|
---|
12188 | }
|
---|
12189 |
|
---|
12190 | #undef SplEnumDriver
|
---|
12191 | #define SplEnumDriver _SplEnumDriver
|
---|
12192 |
|
---|
12193 | inline SPLERR _SplEnumJob(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f, PULONG g, PULONG h, PVOID i)
|
---|
12194 | {
|
---|
12195 | SPLERR yyrc;
|
---|
12196 | USHORT sel = GetFS();
|
---|
12197 |
|
---|
12198 | yyrc = SplEnumJob(a, b, c, d, e, f, g, h, i);
|
---|
12199 | SetFS(sel);
|
---|
12200 |
|
---|
12201 | return yyrc;
|
---|
12202 | }
|
---|
12203 |
|
---|
12204 | #undef SplEnumJob
|
---|
12205 | #define SplEnumJob _SplEnumJob
|
---|
12206 |
|
---|
12207 | inline SPLERR _SplEnumPort(PCSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
|
---|
12208 | {
|
---|
12209 | SPLERR yyrc;
|
---|
12210 | USHORT sel = GetFS();
|
---|
12211 |
|
---|
12212 | yyrc = SplEnumPort(a, b, c, d, e, f, g, h);
|
---|
12213 | SetFS(sel);
|
---|
12214 |
|
---|
12215 | return yyrc;
|
---|
12216 | }
|
---|
12217 |
|
---|
12218 | #undef SplEnumPort
|
---|
12219 | #define SplEnumPort _SplEnumPort
|
---|
12220 |
|
---|
12221 | inline SPLERR _SplEnumPrinter(PSZ a, ULONG b, ULONG c, PVOID d, ULONG e, PULONG f, PULONG g, PULONG h, PVOID i)
|
---|
12222 | {
|
---|
12223 | SPLERR yyrc;
|
---|
12224 | USHORT sel = GetFS();
|
---|
12225 |
|
---|
12226 | yyrc = SplEnumPrinter(a, b, c, d, e, f, g, h, i);
|
---|
12227 | SetFS(sel);
|
---|
12228 |
|
---|
12229 | return yyrc;
|
---|
12230 | }
|
---|
12231 |
|
---|
12232 | #undef SplEnumPrinter
|
---|
12233 | #define SplEnumPrinter _SplEnumPrinter
|
---|
12234 |
|
---|
12235 | inline SPLERR _SplEnumQueue(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
|
---|
12236 | {
|
---|
12237 | SPLERR yyrc;
|
---|
12238 | USHORT sel = GetFS();
|
---|
12239 |
|
---|
12240 | yyrc = SplEnumQueue(a, b, c, d, e, f, g, h);
|
---|
12241 | SetFS(sel);
|
---|
12242 |
|
---|
12243 | return yyrc;
|
---|
12244 | }
|
---|
12245 |
|
---|
12246 | #undef SplEnumQueue
|
---|
12247 | #define SplEnumQueue _SplEnumQueue
|
---|
12248 |
|
---|
12249 | inline SPLERR _SplEnumQueueProcessor(PSZ a, ULONG b, PVOID c, ULONG d, PULONG e, PULONG f, PULONG g, PVOID h)
|
---|
12250 | {
|
---|
12251 | SPLERR yyrc;
|
---|
12252 | USHORT sel = GetFS();
|
---|
12253 |
|
---|
12254 | yyrc = SplEnumQueueProcessor(a, b, c, d, e, f, g, h);
|
---|
12255 | SetFS(sel);
|
---|
12256 |
|
---|
12257 | return yyrc;
|
---|
12258 | }
|
---|
12259 |
|
---|
12260 | #undef SplEnumQueueProcessor
|
---|
12261 | #define SplEnumQueueProcessor _SplEnumQueueProcessor
|
---|
12262 |
|
---|
12263 | inline SPLERR _SplHoldJob(PCSZ a, PCSZ b, ULONG c)
|
---|
12264 | {
|
---|
12265 | SPLERR yyrc;
|
---|
12266 | USHORT sel = GetFS();
|
---|
12267 |
|
---|
12268 | yyrc = SplHoldJob(a, b, c);
|
---|
12269 | SetFS(sel);
|
---|
12270 |
|
---|
12271 | return yyrc;
|
---|
12272 | }
|
---|
12273 |
|
---|
12274 | #undef SplHoldJob
|
---|
12275 | #define SplHoldJob _SplHoldJob
|
---|
12276 |
|
---|
12277 | inline SPLERR _SplHoldQueue(PSZ a, PSZ b)
|
---|
12278 | {
|
---|
12279 | SPLERR yyrc;
|
---|
12280 | USHORT sel = GetFS();
|
---|
12281 |
|
---|
12282 | yyrc = SplHoldQueue(a, b);
|
---|
12283 | SetFS(sel);
|
---|
12284 |
|
---|
12285 | return yyrc;
|
---|
12286 | }
|
---|
12287 |
|
---|
12288 | #undef SplHoldQueue
|
---|
12289 | #define SplHoldQueue _SplHoldQueue
|
---|
12290 |
|
---|
12291 | inline SPLERR _SplPurgeQueue(PSZ a, PSZ b)
|
---|
12292 | {
|
---|
12293 | SPLERR yyrc;
|
---|
12294 | USHORT sel = GetFS();
|
---|
12295 |
|
---|
12296 | yyrc = SplPurgeQueue(a, b);
|
---|
12297 | SetFS(sel);
|
---|
12298 |
|
---|
12299 | return yyrc;
|
---|
12300 | }
|
---|
12301 |
|
---|
12302 | #undef SplPurgeQueue
|
---|
12303 | #define SplPurgeQueue _SplPurgeQueue
|
---|
12304 |
|
---|
12305 | inline SPLERR _SplQueryDevice(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
|
---|
12306 | {
|
---|
12307 | SPLERR yyrc;
|
---|
12308 | USHORT sel = GetFS();
|
---|
12309 |
|
---|
12310 | yyrc = SplQueryDevice(a, b, c, d, e, f);
|
---|
12311 | SetFS(sel);
|
---|
12312 |
|
---|
12313 | return yyrc;
|
---|
12314 | }
|
---|
12315 |
|
---|
12316 | #undef SplQueryDevice
|
---|
12317 | #define SplQueryDevice _SplQueryDevice
|
---|
12318 |
|
---|
12319 | inline SPLERR _SplQueryDriver(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f, PULONG g)
|
---|
12320 | {
|
---|
12321 | SPLERR yyrc;
|
---|
12322 | USHORT sel = GetFS();
|
---|
12323 |
|
---|
12324 | yyrc = SplQueryDriver(a, b, c, d, e, f, g);
|
---|
12325 | SetFS(sel);
|
---|
12326 |
|
---|
12327 | return yyrc;
|
---|
12328 | }
|
---|
12329 |
|
---|
12330 | #undef SplQueryDriver
|
---|
12331 | #define SplQueryDriver _SplQueryDriver
|
---|
12332 |
|
---|
12333 | inline SPLERR _SplQueryJob(PSZ a, PSZ b, ULONG c, ULONG d, PVOID e, ULONG f, PULONG g)
|
---|
12334 | {
|
---|
12335 | SPLERR yyrc;
|
---|
12336 | USHORT sel = GetFS();
|
---|
12337 |
|
---|
12338 | yyrc = SplQueryJob(a, b, c, d, e, f, g);
|
---|
12339 | SetFS(sel);
|
---|
12340 |
|
---|
12341 | return yyrc;
|
---|
12342 | }
|
---|
12343 |
|
---|
12344 | #undef SplQueryJob
|
---|
12345 | #define SplQueryJob _SplQueryJob
|
---|
12346 |
|
---|
12347 | inline SPLERR _SplQueryPort(PCSZ a, PCSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
|
---|
12348 | {
|
---|
12349 | SPLERR yyrc;
|
---|
12350 | USHORT sel = GetFS();
|
---|
12351 |
|
---|
12352 | yyrc = SplQueryPort(a, b, c, d, e, f);
|
---|
12353 | SetFS(sel);
|
---|
12354 |
|
---|
12355 | return yyrc;
|
---|
12356 | }
|
---|
12357 |
|
---|
12358 | #undef SplQueryPort
|
---|
12359 | #define SplQueryPort _SplQueryPort
|
---|
12360 |
|
---|
12361 | inline SPLERR _SplQueryQueue(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, PULONG f)
|
---|
12362 | {
|
---|
12363 | SPLERR yyrc;
|
---|
12364 | USHORT sel = GetFS();
|
---|
12365 |
|
---|
12366 | yyrc = SplQueryQueue(a, b, c, d, e, f);
|
---|
12367 | SetFS(sel);
|
---|
12368 |
|
---|
12369 | return yyrc;
|
---|
12370 | }
|
---|
12371 |
|
---|
12372 | #undef SplQueryQueue
|
---|
12373 | #define SplQueryQueue _SplQueryQueue
|
---|
12374 |
|
---|
12375 | inline SPLERR _SplReleaseJob(PCSZ a, PCSZ b, ULONG c)
|
---|
12376 | {
|
---|
12377 | SPLERR yyrc;
|
---|
12378 | USHORT sel = GetFS();
|
---|
12379 |
|
---|
12380 | yyrc = SplReleaseJob(a, b, c);
|
---|
12381 | SetFS(sel);
|
---|
12382 |
|
---|
12383 | return yyrc;
|
---|
12384 | }
|
---|
12385 |
|
---|
12386 | #undef SplReleaseJob
|
---|
12387 | #define SplReleaseJob _SplReleaseJob
|
---|
12388 |
|
---|
12389 | inline SPLERR _SplReleaseQueue(PSZ a, PSZ b)
|
---|
12390 | {
|
---|
12391 | SPLERR yyrc;
|
---|
12392 | USHORT sel = GetFS();
|
---|
12393 |
|
---|
12394 | yyrc = SplReleaseQueue(a, b);
|
---|
12395 | SetFS(sel);
|
---|
12396 |
|
---|
12397 | return yyrc;
|
---|
12398 | }
|
---|
12399 |
|
---|
12400 | #undef SplReleaseQueue
|
---|
12401 | #define SplReleaseQueue _SplReleaseQueue
|
---|
12402 |
|
---|
12403 | inline SPLERR _SplSetDevice(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
|
---|
12404 | {
|
---|
12405 | SPLERR yyrc;
|
---|
12406 | USHORT sel = GetFS();
|
---|
12407 |
|
---|
12408 | yyrc = SplSetDevice(a, b, c, d, e, f);
|
---|
12409 | SetFS(sel);
|
---|
12410 |
|
---|
12411 | return yyrc;
|
---|
12412 | }
|
---|
12413 |
|
---|
12414 | #undef SplSetDevice
|
---|
12415 | #define SplSetDevice _SplSetDevice
|
---|
12416 |
|
---|
12417 | inline SPLERR _SplSetDriver(PCSZ a, PCSZ b, PCSZ c, ULONG d, PVOID e, ULONG f, ULONG g)
|
---|
12418 | {
|
---|
12419 | SPLERR yyrc;
|
---|
12420 | USHORT sel = GetFS();
|
---|
12421 |
|
---|
12422 | yyrc = SplSetDriver(a, b, c, d, e, f, g);
|
---|
12423 | SetFS(sel);
|
---|
12424 |
|
---|
12425 | return yyrc;
|
---|
12426 | }
|
---|
12427 |
|
---|
12428 | #undef SplSetDriver
|
---|
12429 | #define SplSetDriver _SplSetDriver
|
---|
12430 |
|
---|
12431 | inline SPLERR _SplSetJob(PSZ a, PSZ b, ULONG c, ULONG d, PVOID e, ULONG f, ULONG g)
|
---|
12432 | {
|
---|
12433 | SPLERR yyrc;
|
---|
12434 | USHORT sel = GetFS();
|
---|
12435 |
|
---|
12436 | yyrc = SplSetJob(a, b, c, d, e, f, g);
|
---|
12437 | SetFS(sel);
|
---|
12438 |
|
---|
12439 | return yyrc;
|
---|
12440 | }
|
---|
12441 |
|
---|
12442 | #undef SplSetJob
|
---|
12443 | #define SplSetJob _SplSetJob
|
---|
12444 |
|
---|
12445 | inline SPLERR _SplSetPort(PCSZ a, PCSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
|
---|
12446 | {
|
---|
12447 | SPLERR yyrc;
|
---|
12448 | USHORT sel = GetFS();
|
---|
12449 |
|
---|
12450 | yyrc = SplSetPort(a, b, c, d, e, f);
|
---|
12451 | SetFS(sel);
|
---|
12452 |
|
---|
12453 | return yyrc;
|
---|
12454 | }
|
---|
12455 |
|
---|
12456 | #undef SplSetPort
|
---|
12457 | #define SplSetPort _SplSetPort
|
---|
12458 |
|
---|
12459 | inline SPLERR _SplSetQueue(PSZ a, PSZ b, ULONG c, PVOID d, ULONG e, ULONG f)
|
---|
12460 | {
|
---|
12461 | SPLERR yyrc;
|
---|
12462 | USHORT sel = GetFS();
|
---|
12463 |
|
---|
12464 | yyrc = SplSetQueue(a, b, c, d, e, f);
|
---|
12465 | SetFS(sel);
|
---|
12466 |
|
---|
12467 | return yyrc;
|
---|
12468 | }
|
---|
12469 |
|
---|
12470 | #undef SplSetQueue
|
---|
12471 | #define SplSetQueue _SplSetQueue
|
---|
12472 |
|
---|
12473 | inline ULONG _SplMessageBox(PSZ a, ULONG b, ULONG c, PSZ d, PSZ e, ULONG f, ULONG g)
|
---|
12474 | {
|
---|
12475 | ULONG yyrc;
|
---|
12476 | USHORT sel = GetFS();
|
---|
12477 |
|
---|
12478 | yyrc = SplMessageBox(a, b, c, d, e, f, g);
|
---|
12479 | SetFS(sel);
|
---|
12480 |
|
---|
12481 | return yyrc;
|
---|
12482 | }
|
---|
12483 |
|
---|
12484 | #undef SplMessageBox
|
---|
12485 | #define SplMessageBox _SplMessageBox
|
---|
12486 |
|
---|
12487 | inline BOOL _SplQmAbort(HSPL a)
|
---|
12488 | {
|
---|
12489 | BOOL yyrc;
|
---|
12490 | USHORT sel = GetFS();
|
---|
12491 |
|
---|
12492 | yyrc = SplQmAbort(a);
|
---|
12493 | SetFS(sel);
|
---|
12494 |
|
---|
12495 | return yyrc;
|
---|
12496 | }
|
---|
12497 |
|
---|
12498 | #undef SplQmAbort
|
---|
12499 | #define SplQmAbort _SplQmAbort
|
---|
12500 |
|
---|
12501 | inline BOOL _SplQmAbortDoc(HSPL a)
|
---|
12502 | {
|
---|
12503 | BOOL yyrc;
|
---|
12504 | USHORT sel = GetFS();
|
---|
12505 |
|
---|
12506 | yyrc = SplQmAbortDoc(a);
|
---|
12507 | SetFS(sel);
|
---|
12508 |
|
---|
12509 | return yyrc;
|
---|
12510 | }
|
---|
12511 |
|
---|
12512 | #undef SplQmAbortDoc
|
---|
12513 | #define SplQmAbortDoc _SplQmAbortDoc
|
---|
12514 |
|
---|
12515 | inline BOOL _SplQmClose(HSPL a)
|
---|
12516 | {
|
---|
12517 | BOOL yyrc;
|
---|
12518 | USHORT sel = GetFS();
|
---|
12519 |
|
---|
12520 | yyrc = SplQmClose(a);
|
---|
12521 | SetFS(sel);
|
---|
12522 |
|
---|
12523 | return yyrc;
|
---|
12524 | }
|
---|
12525 |
|
---|
12526 | #undef SplQmClose
|
---|
12527 | #define SplQmClose _SplQmClose
|
---|
12528 |
|
---|
12529 | inline BOOL _SplQmEndDoc(HSPL a)
|
---|
12530 | {
|
---|
12531 | BOOL yyrc;
|
---|
12532 | USHORT sel = GetFS();
|
---|
12533 |
|
---|
12534 | yyrc = SplQmEndDoc(a);
|
---|
12535 | SetFS(sel);
|
---|
12536 |
|
---|
12537 | return yyrc;
|
---|
12538 | }
|
---|
12539 |
|
---|
12540 | #undef SplQmEndDoc
|
---|
12541 | #define SplQmEndDoc _SplQmEndDoc
|
---|
12542 |
|
---|
12543 | inline ULONG _SplQmGetJobID(HSPL a, ULONG b, PVOID c, ULONG d, PULONG e)
|
---|
12544 | {
|
---|
12545 | ULONG yyrc;
|
---|
12546 | USHORT sel = GetFS();
|
---|
12547 |
|
---|
12548 | yyrc = SplQmGetJobID(a, b, c, d, e);
|
---|
12549 | SetFS(sel);
|
---|
12550 |
|
---|
12551 | return yyrc;
|
---|
12552 | }
|
---|
12553 |
|
---|
12554 | #undef SplQmGetJobID
|
---|
12555 | #define SplQmGetJobID _SplQmGetJobID
|
---|
12556 |
|
---|
12557 | inline BOOL _SplQmNewPage(HSPL a, ULONG b)
|
---|
12558 | {
|
---|
12559 | BOOL yyrc;
|
---|
12560 | USHORT sel = GetFS();
|
---|
12561 |
|
---|
12562 | yyrc = SplQmNewPage(a, b);
|
---|
12563 | SetFS(sel);
|
---|
12564 |
|
---|
12565 | return yyrc;
|
---|
12566 | }
|
---|
12567 |
|
---|
12568 | #undef SplQmNewPage
|
---|
12569 | #define SplQmNewPage _SplQmNewPage
|
---|
12570 |
|
---|
12571 | inline HSPL _SplQmOpen(PSZ a, LONG b, PQMOPENDATA c)
|
---|
12572 | {
|
---|
12573 | HSPL yyrc;
|
---|
12574 | USHORT sel = GetFS();
|
---|
12575 |
|
---|
12576 | yyrc = SplQmOpen(a, b, c);
|
---|
12577 | SetFS(sel);
|
---|
12578 |
|
---|
12579 | return yyrc;
|
---|
12580 | }
|
---|
12581 |
|
---|
12582 | #undef SplQmOpen
|
---|
12583 | #define SplQmOpen _SplQmOpen
|
---|
12584 |
|
---|
12585 | inline BOOL _SplQmStartDoc(HSPL a, PSZ b)
|
---|
12586 | {
|
---|
12587 | BOOL yyrc;
|
---|
12588 | USHORT sel = GetFS();
|
---|
12589 |
|
---|
12590 | yyrc = SplQmStartDoc(a, b);
|
---|
12591 | SetFS(sel);
|
---|
12592 |
|
---|
12593 | return yyrc;
|
---|
12594 | }
|
---|
12595 |
|
---|
12596 | #undef SplQmStartDoc
|
---|
12597 | #define SplQmStartDoc _SplQmStartDoc
|
---|
12598 |
|
---|
12599 | inline BOOL _SplQmWrite(HSPL a, LONG b, PVOID c)
|
---|
12600 | {
|
---|
12601 | BOOL yyrc;
|
---|
12602 | USHORT sel = GetFS();
|
---|
12603 |
|
---|
12604 | yyrc = SplQmWrite(a, b, c);
|
---|
12605 | SetFS(sel);
|
---|
12606 |
|
---|
12607 | return yyrc;
|
---|
12608 | }
|
---|
12609 |
|
---|
12610 | #undef SplQmWrite
|
---|
12611 | #define SplQmWrite _SplQmWrite
|
---|
12612 |
|
---|
12613 | #endif
|
---|
12614 | #ifdef INCL_WINHELP
|
---|
12615 | inline BOOL _WinAssociateHelpInstance(HWND a, HWND b)
|
---|
12616 | {
|
---|
12617 | BOOL yyrc;
|
---|
12618 | USHORT sel = GetFS();
|
---|
12619 |
|
---|
12620 | yyrc = WinAssociateHelpInstance(a, b);
|
---|
12621 | SetFS(sel);
|
---|
12622 |
|
---|
12623 | return yyrc;
|
---|
12624 | }
|
---|
12625 |
|
---|
12626 | #undef WinAssociateHelpInstance
|
---|
12627 | #define WinAssociateHelpInstance _WinAssociateHelpInstance
|
---|
12628 |
|
---|
12629 | inline HWND _WinCreateHelpInstance(HAB a, PHELPINIT b)
|
---|
12630 | {
|
---|
12631 | HWND yyrc;
|
---|
12632 | USHORT sel = GetFS();
|
---|
12633 |
|
---|
12634 | yyrc = WinCreateHelpInstance(a, b);
|
---|
12635 | SetFS(sel);
|
---|
12636 |
|
---|
12637 | return yyrc;
|
---|
12638 | }
|
---|
12639 |
|
---|
12640 | #undef WinCreateHelpInstance
|
---|
12641 | #define WinCreateHelpInstance _WinCreateHelpInstance
|
---|
12642 |
|
---|
12643 | inline BOOL _WinCreateHelpTable(HWND a, PHELPTABLE b)
|
---|
12644 | {
|
---|
12645 | BOOL yyrc;
|
---|
12646 | USHORT sel = GetFS();
|
---|
12647 |
|
---|
12648 | yyrc = WinCreateHelpTable(a, b);
|
---|
12649 | SetFS(sel);
|
---|
12650 |
|
---|
12651 | return yyrc;
|
---|
12652 | }
|
---|
12653 |
|
---|
12654 | #undef WinCreateHelpTable
|
---|
12655 | #define WinCreateHelpTable _WinCreateHelpTable
|
---|
12656 |
|
---|
12657 | inline BOOL _WinDestroyHelpInstance(HWND a)
|
---|
12658 | {
|
---|
12659 | BOOL yyrc;
|
---|
12660 | USHORT sel = GetFS();
|
---|
12661 |
|
---|
12662 | yyrc = WinDestroyHelpInstance(a);
|
---|
12663 | SetFS(sel);
|
---|
12664 |
|
---|
12665 | return yyrc;
|
---|
12666 | }
|
---|
12667 |
|
---|
12668 | #undef WinDestroyHelpInstance
|
---|
12669 | #define WinDestroyHelpInstance _WinDestroyHelpInstance
|
---|
12670 |
|
---|
12671 | inline BOOL _WinLoadHelpTable(HWND a, ULONG b, HMODULE c)
|
---|
12672 | {
|
---|
12673 | BOOL yyrc;
|
---|
12674 | USHORT sel = GetFS();
|
---|
12675 |
|
---|
12676 | yyrc = WinLoadHelpTable(a, b, c);
|
---|
12677 | SetFS(sel);
|
---|
12678 |
|
---|
12679 | return yyrc;
|
---|
12680 | }
|
---|
12681 |
|
---|
12682 | #undef WinLoadHelpTable
|
---|
12683 | #define WinLoadHelpTable _WinLoadHelpTable
|
---|
12684 |
|
---|
12685 | inline HWND _WinQueryHelpInstance(HWND a)
|
---|
12686 | {
|
---|
12687 | HWND yyrc;
|
---|
12688 | USHORT sel = GetFS();
|
---|
12689 |
|
---|
12690 | yyrc = WinQueryHelpInstance(a);
|
---|
12691 | SetFS(sel);
|
---|
12692 |
|
---|
12693 | return yyrc;
|
---|
12694 | }
|
---|
12695 |
|
---|
12696 | #undef WinQueryHelpInstance
|
---|
12697 | #define WinQueryHelpInstance _WinQueryHelpInstance
|
---|
12698 |
|
---|
12699 | #endif
|
---|
12700 | #ifdef INCL_DDF
|
---|
12701 | inline BOOL _DdfBeginList(HDDF a, ULONG b, ULONG c, ULONG d)
|
---|
12702 | {
|
---|
12703 | BOOL yyrc;
|
---|
12704 | USHORT sel = GetFS();
|
---|
12705 |
|
---|
12706 | yyrc = DdfBeginList(a, b, c, d);
|
---|
12707 | SetFS(sel);
|
---|
12708 |
|
---|
12709 | return yyrc;
|
---|
12710 | }
|
---|
12711 |
|
---|
12712 | #undef DdfBeginList
|
---|
12713 | #define DdfBeginList _DdfBeginList
|
---|
12714 |
|
---|
12715 | inline BOOL _DdfBitmap(HDDF a, HBITMAP b, ULONG c)
|
---|
12716 | {
|
---|
12717 | BOOL yyrc;
|
---|
12718 | USHORT sel = GetFS();
|
---|
12719 |
|
---|
12720 | yyrc = DdfBitmap(a, b, c);
|
---|
12721 | SetFS(sel);
|
---|
12722 |
|
---|
12723 | return yyrc;
|
---|
12724 | }
|
---|
12725 |
|
---|
12726 | #undef DdfBitmap
|
---|
12727 | #define DdfBitmap _DdfBitmap
|
---|
12728 |
|
---|
12729 | inline BOOL _DdfEndList(HDDF a)
|
---|
12730 | {
|
---|
12731 | BOOL yyrc;
|
---|
12732 | USHORT sel = GetFS();
|
---|
12733 |
|
---|
12734 | yyrc = DdfEndList(a);
|
---|
12735 | SetFS(sel);
|
---|
12736 |
|
---|
12737 | return yyrc;
|
---|
12738 | }
|
---|
12739 |
|
---|
12740 | #undef DdfEndList
|
---|
12741 | #define DdfEndList _DdfEndList
|
---|
12742 |
|
---|
12743 | inline BOOL _DdfHyperText(HDDF a, PCSZ b, PCSZ c, ULONG d)
|
---|
12744 | {
|
---|
12745 | BOOL yyrc;
|
---|
12746 | USHORT sel = GetFS();
|
---|
12747 |
|
---|
12748 | yyrc = DdfHyperText(a, b, c, d);
|
---|
12749 | SetFS(sel);
|
---|
12750 |
|
---|
12751 | return yyrc;
|
---|
12752 | }
|
---|
12753 |
|
---|
12754 | #undef DdfHyperText
|
---|
12755 | #define DdfHyperText _DdfHyperText
|
---|
12756 |
|
---|
12757 | inline BOOL _DdfInform(HDDF a, PCSZ b, ULONG c)
|
---|
12758 | {
|
---|
12759 | BOOL yyrc;
|
---|
12760 | USHORT sel = GetFS();
|
---|
12761 |
|
---|
12762 | yyrc = DdfInform(a, b, c);
|
---|
12763 | SetFS(sel);
|
---|
12764 |
|
---|
12765 | return yyrc;
|
---|
12766 | }
|
---|
12767 |
|
---|
12768 | #undef DdfInform
|
---|
12769 | #define DdfInform _DdfInform
|
---|
12770 |
|
---|
12771 | inline HDDF _DdfInitialize(HWND a, ULONG b, ULONG c)
|
---|
12772 | {
|
---|
12773 | HDDF yyrc;
|
---|
12774 | USHORT sel = GetFS();
|
---|
12775 |
|
---|
12776 | yyrc = DdfInitialize(a, b, c);
|
---|
12777 | SetFS(sel);
|
---|
12778 |
|
---|
12779 | return yyrc;
|
---|
12780 | }
|
---|
12781 |
|
---|
12782 | #undef DdfInitialize
|
---|
12783 | #define DdfInitialize _DdfInitialize
|
---|
12784 |
|
---|
12785 | inline BOOL _DdfListItem(HDDF a, PCSZ b, PCSZ c)
|
---|
12786 | {
|
---|
12787 | BOOL yyrc;
|
---|
12788 | USHORT sel = GetFS();
|
---|
12789 |
|
---|
12790 | yyrc = DdfListItem(a, b, c);
|
---|
12791 | SetFS(sel);
|
---|
12792 |
|
---|
12793 | return yyrc;
|
---|
12794 | }
|
---|
12795 |
|
---|
12796 | #undef DdfListItem
|
---|
12797 | #define DdfListItem _DdfListItem
|
---|
12798 |
|
---|
12799 | inline BOOL _DdfMetafile(HDDF a, HMF b, PRECTL c)
|
---|
12800 | {
|
---|
12801 | BOOL yyrc;
|
---|
12802 | USHORT sel = GetFS();
|
---|
12803 |
|
---|
12804 | yyrc = DdfMetafile(a, b, c);
|
---|
12805 | SetFS(sel);
|
---|
12806 |
|
---|
12807 | return yyrc;
|
---|
12808 | }
|
---|
12809 |
|
---|
12810 | #undef DdfMetafile
|
---|
12811 | #define DdfMetafile _DdfMetafile
|
---|
12812 |
|
---|
12813 | inline BOOL _DdfPara(HDDF a)
|
---|
12814 | {
|
---|
12815 | BOOL yyrc;
|
---|
12816 | USHORT sel = GetFS();
|
---|
12817 |
|
---|
12818 | yyrc = DdfPara(a);
|
---|
12819 | SetFS(sel);
|
---|
12820 |
|
---|
12821 | return yyrc;
|
---|
12822 | }
|
---|
12823 |
|
---|
12824 | #undef DdfPara
|
---|
12825 | #define DdfPara _DdfPara
|
---|
12826 |
|
---|
12827 | inline BOOL _DdfSetColor(HDDF a, COLOR b, COLOR c)
|
---|
12828 | {
|
---|
12829 | BOOL yyrc;
|
---|
12830 | USHORT sel = GetFS();
|
---|
12831 |
|
---|
12832 | yyrc = DdfSetColor(a, b, c);
|
---|
12833 | SetFS(sel);
|
---|
12834 |
|
---|
12835 | return yyrc;
|
---|
12836 | }
|
---|
12837 |
|
---|
12838 | #undef DdfSetColor
|
---|
12839 | #define DdfSetColor _DdfSetColor
|
---|
12840 |
|
---|
12841 | inline BOOL _DdfSetFont(HDDF a, PCSZ b, ULONG c, ULONG d)
|
---|
12842 | {
|
---|
12843 | BOOL yyrc;
|
---|
12844 | USHORT sel = GetFS();
|
---|
12845 |
|
---|
12846 | yyrc = DdfSetFont(a, b, c, d);
|
---|
12847 | SetFS(sel);
|
---|
12848 |
|
---|
12849 | return yyrc;
|
---|
12850 | }
|
---|
12851 |
|
---|
12852 | #undef DdfSetFont
|
---|
12853 | #define DdfSetFont _DdfSetFont
|
---|
12854 |
|
---|
12855 | inline BOOL _DdfSetFontStyle(HDDF a, ULONG b)
|
---|
12856 | {
|
---|
12857 | BOOL yyrc;
|
---|
12858 | USHORT sel = GetFS();
|
---|
12859 |
|
---|
12860 | yyrc = DdfSetFontStyle(a, b);
|
---|
12861 | SetFS(sel);
|
---|
12862 |
|
---|
12863 | return yyrc;
|
---|
12864 | }
|
---|
12865 |
|
---|
12866 | #undef DdfSetFontStyle
|
---|
12867 | #define DdfSetFontStyle _DdfSetFontStyle
|
---|
12868 |
|
---|
12869 | inline BOOL _DdfSetFormat(HDDF a, ULONG b)
|
---|
12870 | {
|
---|
12871 | BOOL yyrc;
|
---|
12872 | USHORT sel = GetFS();
|
---|
12873 |
|
---|
12874 | yyrc = DdfSetFormat(a, b);
|
---|
12875 | SetFS(sel);
|
---|
12876 |
|
---|
12877 | return yyrc;
|
---|
12878 | }
|
---|
12879 |
|
---|
12880 | #undef DdfSetFormat
|
---|
12881 | #define DdfSetFormat _DdfSetFormat
|
---|
12882 |
|
---|
12883 | inline BOOL _DdfSetTextAlign(HDDF a, ULONG b)
|
---|
12884 | {
|
---|
12885 | BOOL yyrc;
|
---|
12886 | USHORT sel = GetFS();
|
---|
12887 |
|
---|
12888 | yyrc = DdfSetTextAlign(a, b);
|
---|
12889 | SetFS(sel);
|
---|
12890 |
|
---|
12891 | return yyrc;
|
---|
12892 | }
|
---|
12893 |
|
---|
12894 | #undef DdfSetTextAlign
|
---|
12895 | #define DdfSetTextAlign _DdfSetTextAlign
|
---|
12896 |
|
---|
12897 | inline BOOL _DdfText(HDDF a, PCSZ b)
|
---|
12898 | {
|
---|
12899 | BOOL yyrc;
|
---|
12900 | USHORT sel = GetFS();
|
---|
12901 |
|
---|
12902 | yyrc = DdfText(a, b);
|
---|
12903 | SetFS(sel);
|
---|
12904 |
|
---|
12905 | return yyrc;
|
---|
12906 | }
|
---|
12907 |
|
---|
12908 | #undef DdfText
|
---|
12909 | #define DdfText _DdfText
|
---|
12910 |
|
---|
12911 | #endif
|
---|
12912 | #ifdef INCL_AVIO
|
---|
12913 | inline USHORT _VioAssociate(HDC a, HVPS b)
|
---|
12914 | {
|
---|
12915 | USHORT yyrc;
|
---|
12916 | USHORT sel = GetFS();
|
---|
12917 |
|
---|
12918 | yyrc = VIO16ASSOCIATE(a, b);
|
---|
12919 | SetFS(sel);
|
---|
12920 |
|
---|
12921 | return yyrc;
|
---|
12922 | }
|
---|
12923 |
|
---|
12924 | #undef VioAssociate
|
---|
12925 | #define VioAssociate _VioAssociate
|
---|
12926 |
|
---|
12927 | inline USHORT _VioCreateLogFont(PFATTRS a, LONG b, PSTR8 c, HVPS d)
|
---|
12928 | {
|
---|
12929 | USHORT yyrc;
|
---|
12930 | USHORT sel = GetFS();
|
---|
12931 |
|
---|
12932 | yyrc = VIO16CREATELOGFONT(a, b, c, d);
|
---|
12933 | SetFS(sel);
|
---|
12934 |
|
---|
12935 | return yyrc;
|
---|
12936 | }
|
---|
12937 |
|
---|
12938 | #undef VioCreateLogFont
|
---|
12939 | #define VioCreateLogFont _VioCreateLogFont
|
---|
12940 |
|
---|
12941 | inline USHORT _VioCreatePS(PHVPS a, SHORT b, SHORT c, SHORT d, SHORT e, HVPS f)
|
---|
12942 | {
|
---|
12943 | USHORT yyrc;
|
---|
12944 | USHORT sel = GetFS();
|
---|
12945 |
|
---|
12946 | yyrc = VIO16CREATEPS(a, b, c, d, e, f);
|
---|
12947 | SetFS(sel);
|
---|
12948 |
|
---|
12949 | return yyrc;
|
---|
12950 | }
|
---|
12951 |
|
---|
12952 | #undef VioCreatePS
|
---|
12953 | #define VioCreatePS _VioCreatePS
|
---|
12954 |
|
---|
12955 | inline USHORT _VioDeleteSetId(LONG a, HVPS b)
|
---|
12956 | {
|
---|
12957 | USHORT yyrc;
|
---|
12958 | USHORT sel = GetFS();
|
---|
12959 |
|
---|
12960 | yyrc = VIO16DELETESETID(a, b);
|
---|
12961 | SetFS(sel);
|
---|
12962 |
|
---|
12963 | return yyrc;
|
---|
12964 | }
|
---|
12965 |
|
---|
12966 | #undef VioDeleteSetId
|
---|
12967 | #define VioDeleteSetId _VioDeleteSetId
|
---|
12968 |
|
---|
12969 | inline USHORT _VioDestroyPS(HVPS a)
|
---|
12970 | {
|
---|
12971 | USHORT yyrc;
|
---|
12972 | USHORT sel = GetFS();
|
---|
12973 |
|
---|
12974 | yyrc = VIO16DESTROYPS(a);
|
---|
12975 | SetFS(sel);
|
---|
12976 |
|
---|
12977 | return yyrc;
|
---|
12978 | }
|
---|
12979 |
|
---|
12980 | #undef VioDestroyPS
|
---|
12981 | #define VioDestroyPS _VioDestroyPS
|
---|
12982 |
|
---|
12983 | inline USHORT _VioGetDeviceCellSize(PSHORT a, PSHORT b, HVPS c)
|
---|
12984 | {
|
---|
12985 | USHORT yyrc;
|
---|
12986 | USHORT sel = GetFS();
|
---|
12987 |
|
---|
12988 | yyrc = VIO16GETDEVICECELLSIZE(a, b, c);
|
---|
12989 | SetFS(sel);
|
---|
12990 |
|
---|
12991 | return yyrc;
|
---|
12992 | }
|
---|
12993 |
|
---|
12994 | #undef VioGetDeviceCellSize
|
---|
12995 | #define VioGetDeviceCellSize _VioGetDeviceCellSize
|
---|
12996 |
|
---|
12997 | inline USHORT _VioGetOrg(PSHORT a, PSHORT b, HVPS c)
|
---|
12998 | {
|
---|
12999 | USHORT yyrc;
|
---|
13000 | USHORT sel = GetFS();
|
---|
13001 |
|
---|
13002 | yyrc = VIO16GETORG(a, b, c);
|
---|
13003 | SetFS(sel);
|
---|
13004 |
|
---|
13005 | return yyrc;
|
---|
13006 | }
|
---|
13007 |
|
---|
13008 | #undef VioGetOrg
|
---|
13009 | #define VioGetOrg _VioGetOrg
|
---|
13010 |
|
---|
13011 | inline USHORT _VioQueryFonts(PLONG a, PFONTMETRICS b, LONG c, PLONG d, PSZ e, ULONG f, HVPS g)
|
---|
13012 | {
|
---|
13013 | USHORT yyrc;
|
---|
13014 | USHORT sel = GetFS();
|
---|
13015 |
|
---|
13016 | yyrc = VIO16QUERYFONTS(a, b, c, d, e, f, g);
|
---|
13017 | SetFS(sel);
|
---|
13018 |
|
---|
13019 | return yyrc;
|
---|
13020 | }
|
---|
13021 |
|
---|
13022 | #undef VioQueryFonts
|
---|
13023 | #define VioQueryFonts _VioQueryFonts
|
---|
13024 |
|
---|
13025 | inline USHORT _VioQuerySetIds(PLONG a, PSTR8 b, PLONG c, LONG d, HVPS e)
|
---|
13026 | {
|
---|
13027 | USHORT yyrc;
|
---|
13028 | USHORT sel = GetFS();
|
---|
13029 |
|
---|
13030 | yyrc = VIO16QUERYSETIDS(a, b, c, d, e);
|
---|
13031 | SetFS(sel);
|
---|
13032 |
|
---|
13033 | return yyrc;
|
---|
13034 | }
|
---|
13035 |
|
---|
13036 | #undef VioQuerySetIds
|
---|
13037 | #define VioQuerySetIds _VioQuerySetIds
|
---|
13038 |
|
---|
13039 | inline USHORT _VioSetDeviceCellSize(SHORT a, SHORT b, HVPS c)
|
---|
13040 | {
|
---|
13041 | USHORT yyrc;
|
---|
13042 | USHORT sel = GetFS();
|
---|
13043 |
|
---|
13044 | yyrc = VIO16SETDEVICECELLSIZE(a, b, c);
|
---|
13045 | SetFS(sel);
|
---|
13046 |
|
---|
13047 | return yyrc;
|
---|
13048 | }
|
---|
13049 |
|
---|
13050 | #undef VioSetDeviceCellSize
|
---|
13051 | #define VioSetDeviceCellSize _VioSetDeviceCellSize
|
---|
13052 |
|
---|
13053 | inline USHORT _VioSetOrg(SHORT a, SHORT b, HVPS c)
|
---|
13054 | {
|
---|
13055 | USHORT yyrc;
|
---|
13056 | USHORT sel = GetFS();
|
---|
13057 |
|
---|
13058 | yyrc = VIO16SETORG(a, b, c);
|
---|
13059 | SetFS(sel);
|
---|
13060 |
|
---|
13061 | return yyrc;
|
---|
13062 | }
|
---|
13063 |
|
---|
13064 | #undef VioSetOrg
|
---|
13065 | #define VioSetOrg _VioSetOrg
|
---|
13066 |
|
---|
13067 | inline USHORT _VioShowPS(SHORT a, SHORT b, SHORT c, HVPS d)
|
---|
13068 | {
|
---|
13069 | USHORT yyrc;
|
---|
13070 | USHORT sel = GetFS();
|
---|
13071 |
|
---|
13072 | yyrc = VIO16SHOWPS(a, b, c, d);
|
---|
13073 | SetFS(sel);
|
---|
13074 |
|
---|
13075 | return yyrc;
|
---|
13076 | }
|
---|
13077 |
|
---|
13078 | #undef VioShowPS
|
---|
13079 | #define VioShowPS _VioShowPS
|
---|
13080 |
|
---|
13081 | inline MRESULT _WinDefAVioWindowProc(HWND a, USHORT b, ULONG c, ULONG d)
|
---|
13082 | {
|
---|
13083 | MRESULT yyrc;
|
---|
13084 | USHORT sel = GetFS();
|
---|
13085 |
|
---|
13086 | yyrc = WinDefAVioWindowProc(a, b, c, d);
|
---|
13087 | SetFS(sel);
|
---|
13088 |
|
---|
13089 | return yyrc;
|
---|
13090 | }
|
---|
13091 |
|
---|
13092 | #undef WinDefAVioWindowProc
|
---|
13093 | #define WinDefAVioWindowProc _WinDefAVioWindowProc
|
---|
13094 |
|
---|
13095 | #endif
|
---|
13096 | #ifdef INCL_KBD
|
---|
13097 | inline USHORT _KbdCharIn(PKBDKEYINFO a, USHORT b, HKBD c)
|
---|
13098 | {
|
---|
13099 | USHORT yyrc;
|
---|
13100 | USHORT sel = GetFS();
|
---|
13101 |
|
---|
13102 | yyrc = KbdCharIn(a, b, c);
|
---|
13103 | SetFS(sel);
|
---|
13104 |
|
---|
13105 | return yyrc;
|
---|
13106 | }
|
---|
13107 |
|
---|
13108 | #undef KbdCharIn
|
---|
13109 | #define KbdCharIn _KbdCharIn
|
---|
13110 |
|
---|
13111 | inline USHORT _KbdClose(HKBD a)
|
---|
13112 | {
|
---|
13113 | USHORT yyrc;
|
---|
13114 | USHORT sel = GetFS();
|
---|
13115 |
|
---|
13116 | yyrc = KbdClose(a);
|
---|
13117 | SetFS(sel);
|
---|
13118 |
|
---|
13119 | return yyrc;
|
---|
13120 | }
|
---|
13121 |
|
---|
13122 | #undef KbdClose
|
---|
13123 | #define KbdClose _KbdClose
|
---|
13124 |
|
---|
13125 | inline USHORT _KbdDeRegister()
|
---|
13126 | {
|
---|
13127 | USHORT yyrc;
|
---|
13128 | USHORT sel = GetFS();
|
---|
13129 |
|
---|
13130 | yyrc = KbdDeRegister();
|
---|
13131 | SetFS(sel);
|
---|
13132 |
|
---|
13133 | return yyrc;
|
---|
13134 | }
|
---|
13135 |
|
---|
13136 | #undef KbdDeRegister
|
---|
13137 | #define KbdDeRegister _KbdDeRegister
|
---|
13138 |
|
---|
13139 | inline USHORT _KbdFlushBuffer(HKBD a)
|
---|
13140 | {
|
---|
13141 | USHORT yyrc;
|
---|
13142 | USHORT sel = GetFS();
|
---|
13143 |
|
---|
13144 | yyrc = KbdFlushBuffer(a);
|
---|
13145 | SetFS(sel);
|
---|
13146 |
|
---|
13147 | return yyrc;
|
---|
13148 | }
|
---|
13149 |
|
---|
13150 | #undef KbdFlushBuffer
|
---|
13151 | #define KbdFlushBuffer _KbdFlushBuffer
|
---|
13152 |
|
---|
13153 | inline USHORT _KbdFreeFocus(HKBD a)
|
---|
13154 | {
|
---|
13155 | USHORT yyrc;
|
---|
13156 | USHORT sel = GetFS();
|
---|
13157 |
|
---|
13158 | yyrc = KbdFreeFocus(a);
|
---|
13159 | SetFS(sel);
|
---|
13160 |
|
---|
13161 | return yyrc;
|
---|
13162 | }
|
---|
13163 |
|
---|
13164 | #undef KbdFreeFocus
|
---|
13165 | #define KbdFreeFocus _KbdFreeFocus
|
---|
13166 |
|
---|
13167 | inline USHORT _KbdGetCp(ULONG a, PUSHORT b, HKBD c)
|
---|
13168 | {
|
---|
13169 | USHORT yyrc;
|
---|
13170 | USHORT sel = GetFS();
|
---|
13171 |
|
---|
13172 | yyrc = KbdGetCp(a, b, c);
|
---|
13173 | SetFS(sel);
|
---|
13174 |
|
---|
13175 | return yyrc;
|
---|
13176 | }
|
---|
13177 |
|
---|
13178 | #undef KbdGetCp
|
---|
13179 | #define KbdGetCp _KbdGetCp
|
---|
13180 |
|
---|
13181 | inline USHORT _KbdGetFocus(USHORT a, HKBD b)
|
---|
13182 | {
|
---|
13183 | USHORT yyrc;
|
---|
13184 | USHORT sel = GetFS();
|
---|
13185 |
|
---|
13186 | yyrc = KbdGetFocus(a, b);
|
---|
13187 | SetFS(sel);
|
---|
13188 |
|
---|
13189 | return yyrc;
|
---|
13190 | }
|
---|
13191 |
|
---|
13192 | #undef KbdGetFocus
|
---|
13193 | #define KbdGetFocus _KbdGetFocus
|
---|
13194 |
|
---|
13195 | inline USHORT _KbdGetHWID(PKBDHWID a, HKBD b)
|
---|
13196 | {
|
---|
13197 | USHORT yyrc;
|
---|
13198 | USHORT sel = GetFS();
|
---|
13199 |
|
---|
13200 | yyrc = KbdGetHWID(a, b);
|
---|
13201 | SetFS(sel);
|
---|
13202 |
|
---|
13203 | return yyrc;
|
---|
13204 | }
|
---|
13205 |
|
---|
13206 | #undef KbdGetHWID
|
---|
13207 | #define KbdGetHWID _KbdGetHWID
|
---|
13208 |
|
---|
13209 | inline USHORT _KbdGetStatus(PKBDINFO a, HKBD b)
|
---|
13210 | {
|
---|
13211 | USHORT yyrc;
|
---|
13212 | USHORT sel = GetFS();
|
---|
13213 |
|
---|
13214 | yyrc = KbdGetStatus(a, b);
|
---|
13215 | SetFS(sel);
|
---|
13216 |
|
---|
13217 | return yyrc;
|
---|
13218 | }
|
---|
13219 |
|
---|
13220 | #undef KbdGetStatus
|
---|
13221 | #define KbdGetStatus _KbdGetStatus
|
---|
13222 |
|
---|
13223 | inline USHORT _KbdOpen(PHKBD a)
|
---|
13224 | {
|
---|
13225 | USHORT yyrc;
|
---|
13226 | USHORT sel = GetFS();
|
---|
13227 |
|
---|
13228 | yyrc = KbdOpen(a);
|
---|
13229 | SetFS(sel);
|
---|
13230 |
|
---|
13231 | return yyrc;
|
---|
13232 | }
|
---|
13233 |
|
---|
13234 | #undef KbdOpen
|
---|
13235 | #define KbdOpen _KbdOpen
|
---|
13236 |
|
---|
13237 | inline USHORT _KbdPeek(PKBDKEYINFO a, HKBD b)
|
---|
13238 | {
|
---|
13239 | USHORT yyrc;
|
---|
13240 | USHORT sel = GetFS();
|
---|
13241 |
|
---|
13242 | yyrc = KbdPeek(a, b);
|
---|
13243 | SetFS(sel);
|
---|
13244 |
|
---|
13245 | return yyrc;
|
---|
13246 | }
|
---|
13247 |
|
---|
13248 | #undef KbdPeek
|
---|
13249 | #define KbdPeek _KbdPeek
|
---|
13250 |
|
---|
13251 | inline USHORT _KbdRegister(PSZ a, PSZ b, ULONG c)
|
---|
13252 | {
|
---|
13253 | USHORT yyrc;
|
---|
13254 | USHORT sel = GetFS();
|
---|
13255 |
|
---|
13256 | yyrc = KbdRegister(a, b, c);
|
---|
13257 | SetFS(sel);
|
---|
13258 |
|
---|
13259 | return yyrc;
|
---|
13260 | }
|
---|
13261 |
|
---|
13262 | #undef KbdRegister
|
---|
13263 | #define KbdRegister _KbdRegister
|
---|
13264 |
|
---|
13265 | inline USHORT _KbdSetCp(USHORT a, USHORT b, HKBD c)
|
---|
13266 | {
|
---|
13267 | USHORT yyrc;
|
---|
13268 | USHORT sel = GetFS();
|
---|
13269 |
|
---|
13270 | yyrc = KbdSetCp(a, b, c);
|
---|
13271 | SetFS(sel);
|
---|
13272 |
|
---|
13273 | return yyrc;
|
---|
13274 | }
|
---|
13275 |
|
---|
13276 | #undef KbdSetCp
|
---|
13277 | #define KbdSetCp _KbdSetCp
|
---|
13278 |
|
---|
13279 | inline USHORT _KbdSetCustXt(PUSHORT a, HKBD b)
|
---|
13280 | {
|
---|
13281 | USHORT yyrc;
|
---|
13282 | USHORT sel = GetFS();
|
---|
13283 |
|
---|
13284 | yyrc = KbdSetCustXt(a, b);
|
---|
13285 | SetFS(sel);
|
---|
13286 |
|
---|
13287 | return yyrc;
|
---|
13288 | }
|
---|
13289 |
|
---|
13290 | #undef KbdSetCustXt
|
---|
13291 | #define KbdSetCustXt _KbdSetCustXt
|
---|
13292 |
|
---|
13293 | inline USHORT _KbdSetFgnd()
|
---|
13294 | {
|
---|
13295 | USHORT yyrc;
|
---|
13296 | USHORT sel = GetFS();
|
---|
13297 |
|
---|
13298 | yyrc = KbdSetFgnd();
|
---|
13299 | SetFS(sel);
|
---|
13300 |
|
---|
13301 | return yyrc;
|
---|
13302 | }
|
---|
13303 |
|
---|
13304 | #undef KbdSetFgnd
|
---|
13305 | #define KbdSetFgnd _KbdSetFgnd
|
---|
13306 |
|
---|
13307 | inline USHORT _KbdSetHWID(PKBDHWID a, HKBD b)
|
---|
13308 | {
|
---|
13309 | USHORT yyrc;
|
---|
13310 | USHORT sel = GetFS();
|
---|
13311 |
|
---|
13312 | yyrc = KbdSetHWID(a, b);
|
---|
13313 | SetFS(sel);
|
---|
13314 |
|
---|
13315 | return yyrc;
|
---|
13316 | }
|
---|
13317 |
|
---|
13318 | #undef KbdSetHWID
|
---|
13319 | #define KbdSetHWID _KbdSetHWID
|
---|
13320 |
|
---|
13321 | inline USHORT _KbdSetStatus(PKBDINFO a, HKBD b)
|
---|
13322 | {
|
---|
13323 | USHORT yyrc;
|
---|
13324 | USHORT sel = GetFS();
|
---|
13325 |
|
---|
13326 | yyrc = KbdSetStatus(a, b);
|
---|
13327 | SetFS(sel);
|
---|
13328 |
|
---|
13329 | return yyrc;
|
---|
13330 | }
|
---|
13331 |
|
---|
13332 | #undef KbdSetStatus
|
---|
13333 | #define KbdSetStatus _KbdSetStatus
|
---|
13334 |
|
---|
13335 | inline USHORT _KbdStringIn(PCH a, PSTRINGINBUF b, USHORT c, HKBD d)
|
---|
13336 | {
|
---|
13337 | USHORT yyrc;
|
---|
13338 | USHORT sel = GetFS();
|
---|
13339 |
|
---|
13340 | yyrc = KbdStringIn(a, b, c, d);
|
---|
13341 | SetFS(sel);
|
---|
13342 |
|
---|
13343 | return yyrc;
|
---|
13344 | }
|
---|
13345 |
|
---|
13346 | #undef KbdStringIn
|
---|
13347 | #define KbdStringIn _KbdStringIn
|
---|
13348 |
|
---|
13349 | inline USHORT _KbdSynch(USHORT a)
|
---|
13350 | {
|
---|
13351 | USHORT yyrc;
|
---|
13352 | USHORT sel = GetFS();
|
---|
13353 |
|
---|
13354 | yyrc = KbdSynch(a);
|
---|
13355 | SetFS(sel);
|
---|
13356 |
|
---|
13357 | return yyrc;
|
---|
13358 | }
|
---|
13359 |
|
---|
13360 | #undef KbdSynch
|
---|
13361 | #define KbdSynch _KbdSynch
|
---|
13362 |
|
---|
13363 | inline USHORT _KbdXlate(PKBDTRANS a, HKBD b)
|
---|
13364 | {
|
---|
13365 | USHORT yyrc;
|
---|
13366 | USHORT sel = GetFS();
|
---|
13367 |
|
---|
13368 | yyrc = KbdXlate(a, b);
|
---|
13369 | SetFS(sel);
|
---|
13370 |
|
---|
13371 | return yyrc;
|
---|
13372 | }
|
---|
13373 |
|
---|
13374 | #undef KbdXlate
|
---|
13375 | #define KbdXlate _KbdXlate
|
---|
13376 |
|
---|
13377 | #endif
|
---|
13378 | #ifdef INCL_VIO
|
---|
13379 | inline USHORT _VioCheckCharType(PUSHORT a, USHORT b, USHORT c, HVIO d)
|
---|
13380 | {
|
---|
13381 | USHORT yyrc;
|
---|
13382 | USHORT sel = GetFS();
|
---|
13383 |
|
---|
13384 | yyrc = VIO16CHECKCHARTYPE(a, b, c, d);
|
---|
13385 | SetFS(sel);
|
---|
13386 |
|
---|
13387 | return yyrc;
|
---|
13388 | }
|
---|
13389 |
|
---|
13390 | #undef VioCheckCharType
|
---|
13391 | #define VioCheckCharType _VioCheckCharType
|
---|
13392 |
|
---|
13393 | inline USHORT _VioDeRegister()
|
---|
13394 | {
|
---|
13395 | USHORT yyrc;
|
---|
13396 | USHORT sel = GetFS();
|
---|
13397 |
|
---|
13398 | yyrc = VIO16DEREGISTER();
|
---|
13399 | SetFS(sel);
|
---|
13400 |
|
---|
13401 | return yyrc;
|
---|
13402 | }
|
---|
13403 |
|
---|
13404 | #undef VioDeRegister
|
---|
13405 | #define VioDeRegister _VioDeRegister
|
---|
13406 |
|
---|
13407 | inline USHORT _VioEndPopUp(HVIO a)
|
---|
13408 | {
|
---|
13409 | USHORT yyrc;
|
---|
13410 | USHORT sel = GetFS();
|
---|
13411 |
|
---|
13412 | yyrc = VIO16ENDPOPUP(a);
|
---|
13413 | SetFS(sel);
|
---|
13414 |
|
---|
13415 | return yyrc;
|
---|
13416 | }
|
---|
13417 |
|
---|
13418 | #undef VioEndPopUp
|
---|
13419 | #define VioEndPopUp _VioEndPopUp
|
---|
13420 |
|
---|
13421 | inline USHORT _VioGetAnsi(PUSHORT a, HVIO b)
|
---|
13422 | {
|
---|
13423 | USHORT yyrc;
|
---|
13424 | USHORT sel = GetFS();
|
---|
13425 |
|
---|
13426 | yyrc = VIO16GETANSI(a, b);
|
---|
13427 | SetFS(sel);
|
---|
13428 |
|
---|
13429 | return yyrc;
|
---|
13430 | }
|
---|
13431 |
|
---|
13432 | #undef VioGetAnsi
|
---|
13433 | #define VioGetAnsi _VioGetAnsi
|
---|
13434 |
|
---|
13435 | inline USHORT _VioGetBuf(PULONG a, PUSHORT b, HVIO c)
|
---|
13436 | {
|
---|
13437 | USHORT yyrc;
|
---|
13438 | USHORT sel = GetFS();
|
---|
13439 |
|
---|
13440 | yyrc = VIO16GETBUF(a, b, c);
|
---|
13441 | SetFS(sel);
|
---|
13442 |
|
---|
13443 | return yyrc;
|
---|
13444 | }
|
---|
13445 |
|
---|
13446 | #undef VioGetBuf
|
---|
13447 | #define VioGetBuf _VioGetBuf
|
---|
13448 |
|
---|
13449 | inline USHORT _VioGetConfig(USHORT a, PVIOCONFIGINFO b, HVIO c)
|
---|
13450 | {
|
---|
13451 | USHORT yyrc;
|
---|
13452 | USHORT sel = GetFS();
|
---|
13453 |
|
---|
13454 | yyrc = VIO16GETCONFIG(a, b, c);
|
---|
13455 | SetFS(sel);
|
---|
13456 |
|
---|
13457 | return yyrc;
|
---|
13458 | }
|
---|
13459 |
|
---|
13460 | #undef VioGetConfig
|
---|
13461 | #define VioGetConfig _VioGetConfig
|
---|
13462 |
|
---|
13463 | inline USHORT _VioGetCp(USHORT a, PUSHORT b, HVIO c)
|
---|
13464 | {
|
---|
13465 | USHORT yyrc;
|
---|
13466 | USHORT sel = GetFS();
|
---|
13467 |
|
---|
13468 | yyrc = VIO16GETCP(a, b, c);
|
---|
13469 | SetFS(sel);
|
---|
13470 |
|
---|
13471 | return yyrc;
|
---|
13472 | }
|
---|
13473 |
|
---|
13474 | #undef VioGetCp
|
---|
13475 | #define VioGetCp _VioGetCp
|
---|
13476 |
|
---|
13477 | inline USHORT _VioGetCurPos(PUSHORT a, PUSHORT b, HVIO c)
|
---|
13478 | {
|
---|
13479 | USHORT yyrc;
|
---|
13480 | USHORT sel = GetFS();
|
---|
13481 |
|
---|
13482 | yyrc = VIO16GETCURPOS(a, b, c);
|
---|
13483 | SetFS(sel);
|
---|
13484 |
|
---|
13485 | return yyrc;
|
---|
13486 | }
|
---|
13487 |
|
---|
13488 | #undef VioGetCurPos
|
---|
13489 | #define VioGetCurPos _VioGetCurPos
|
---|
13490 |
|
---|
13491 | inline USHORT _VioGetCurType(PVIOCURSORINFO a, HVIO b)
|
---|
13492 | {
|
---|
13493 | USHORT yyrc;
|
---|
13494 | USHORT sel = GetFS();
|
---|
13495 |
|
---|
13496 | yyrc = VIO16GETCURTYPE(a, b);
|
---|
13497 | SetFS(sel);
|
---|
13498 |
|
---|
13499 | return yyrc;
|
---|
13500 | }
|
---|
13501 |
|
---|
13502 | #undef VioGetCurType
|
---|
13503 | #define VioGetCurType _VioGetCurType
|
---|
13504 |
|
---|
13505 | inline USHORT _VioGetFont(PVIOFONTINFO a, HVIO b)
|
---|
13506 | {
|
---|
13507 | USHORT yyrc;
|
---|
13508 | USHORT sel = GetFS();
|
---|
13509 |
|
---|
13510 | yyrc = VIO16GETFONT(a, b);
|
---|
13511 | SetFS(sel);
|
---|
13512 |
|
---|
13513 | return yyrc;
|
---|
13514 | }
|
---|
13515 |
|
---|
13516 | #undef VioGetFont
|
---|
13517 | #define VioGetFont _VioGetFont
|
---|
13518 |
|
---|
13519 | inline USHORT _VioGetMode(PVIOMODEINFO a, HVIO b)
|
---|
13520 | {
|
---|
13521 | USHORT yyrc;
|
---|
13522 | USHORT sel = GetFS();
|
---|
13523 |
|
---|
13524 | yyrc = VIO16GETMODE(a, b);
|
---|
13525 | SetFS(sel);
|
---|
13526 |
|
---|
13527 | return yyrc;
|
---|
13528 | }
|
---|
13529 |
|
---|
13530 | #undef VioGetMode
|
---|
13531 | #define VioGetMode _VioGetMode
|
---|
13532 |
|
---|
13533 | inline USHORT _VioGetPhysBuf(PVIOPHYSBUF a, USHORT b)
|
---|
13534 | {
|
---|
13535 | USHORT yyrc;
|
---|
13536 | USHORT sel = GetFS();
|
---|
13537 |
|
---|
13538 | yyrc = VIO16GETPHYSBUF(a, b);
|
---|
13539 | SetFS(sel);
|
---|
13540 |
|
---|
13541 | return yyrc;
|
---|
13542 | }
|
---|
13543 |
|
---|
13544 | #undef VioGetPhysBuf
|
---|
13545 | #define VioGetPhysBuf _VioGetPhysBuf
|
---|
13546 |
|
---|
13547 | inline USHORT _VioGetState(PVOID a, HVIO b)
|
---|
13548 | {
|
---|
13549 | USHORT yyrc;
|
---|
13550 | USHORT sel = GetFS();
|
---|
13551 |
|
---|
13552 | yyrc = VIO16GETSTATE(a, b);
|
---|
13553 | SetFS(sel);
|
---|
13554 |
|
---|
13555 | return yyrc;
|
---|
13556 | }
|
---|
13557 |
|
---|
13558 | #undef VioGetState
|
---|
13559 | #define VioGetState _VioGetState
|
---|
13560 |
|
---|
13561 | inline USHORT _VioModeUndo(USHORT a, USHORT b, USHORT c)
|
---|
13562 | {
|
---|
13563 | USHORT yyrc;
|
---|
13564 | USHORT sel = GetFS();
|
---|
13565 |
|
---|
13566 | yyrc = VIO16MODEUNDO(a, b, c);
|
---|
13567 | SetFS(sel);
|
---|
13568 |
|
---|
13569 | return yyrc;
|
---|
13570 | }
|
---|
13571 |
|
---|
13572 | #undef VioModeUndo
|
---|
13573 | #define VioModeUndo _VioModeUndo
|
---|
13574 |
|
---|
13575 | inline USHORT _VioModeWait(USHORT a, PUSHORT b, USHORT c)
|
---|
13576 | {
|
---|
13577 | USHORT yyrc;
|
---|
13578 | USHORT sel = GetFS();
|
---|
13579 |
|
---|
13580 | yyrc = VIO16MODEWAIT(a, b, c);
|
---|
13581 | SetFS(sel);
|
---|
13582 |
|
---|
13583 | return yyrc;
|
---|
13584 | }
|
---|
13585 |
|
---|
13586 | #undef VioModeWait
|
---|
13587 | #define VioModeWait _VioModeWait
|
---|
13588 |
|
---|
13589 | inline USHORT _VioPopUp(PUSHORT a, HVIO b)
|
---|
13590 | {
|
---|
13591 | USHORT yyrc;
|
---|
13592 | USHORT sel = GetFS();
|
---|
13593 |
|
---|
13594 | yyrc = VIO16POPUP(a, b);
|
---|
13595 | SetFS(sel);
|
---|
13596 |
|
---|
13597 | return yyrc;
|
---|
13598 | }
|
---|
13599 |
|
---|
13600 | #undef VioPopUp
|
---|
13601 | #define VioPopUp _VioPopUp
|
---|
13602 |
|
---|
13603 | inline USHORT _VioPrtSc(HVIO a)
|
---|
13604 | {
|
---|
13605 | USHORT yyrc;
|
---|
13606 | USHORT sel = GetFS();
|
---|
13607 |
|
---|
13608 | yyrc = VIO16PRTSC(a);
|
---|
13609 | SetFS(sel);
|
---|
13610 |
|
---|
13611 | return yyrc;
|
---|
13612 | }
|
---|
13613 |
|
---|
13614 | #undef VioPrtSc
|
---|
13615 | #define VioPrtSc _VioPrtSc
|
---|
13616 |
|
---|
13617 | inline USHORT _VioPrtScToggle(HVIO a)
|
---|
13618 | {
|
---|
13619 | USHORT yyrc;
|
---|
13620 | USHORT sel = GetFS();
|
---|
13621 |
|
---|
13622 | yyrc = VIO16PRTSCTOGGLE(a);
|
---|
13623 | SetFS(sel);
|
---|
13624 |
|
---|
13625 | return yyrc;
|
---|
13626 | }
|
---|
13627 |
|
---|
13628 | #undef VioPrtScToggle
|
---|
13629 | #define VioPrtScToggle _VioPrtScToggle
|
---|
13630 |
|
---|
13631 | inline USHORT _VioReadCellStr(PCH a, PUSHORT b, USHORT c, USHORT d, HVIO e)
|
---|
13632 | {
|
---|
13633 | USHORT yyrc;
|
---|
13634 | USHORT sel = GetFS();
|
---|
13635 |
|
---|
13636 | yyrc = VIO16READCELLSTR(a, b, c, d, e);
|
---|
13637 | SetFS(sel);
|
---|
13638 |
|
---|
13639 | return yyrc;
|
---|
13640 | }
|
---|
13641 |
|
---|
13642 | #undef VioReadCellStr
|
---|
13643 | #define VioReadCellStr _VioReadCellStr
|
---|
13644 |
|
---|
13645 | inline USHORT _VioReadCharStr(PCH a, PUSHORT b, USHORT c, USHORT d, HVIO e)
|
---|
13646 | {
|
---|
13647 | USHORT yyrc;
|
---|
13648 | USHORT sel = GetFS();
|
---|
13649 |
|
---|
13650 | yyrc = VIO16READCHARSTR(a, b, c, d, e);
|
---|
13651 | SetFS(sel);
|
---|
13652 |
|
---|
13653 | return yyrc;
|
---|
13654 | }
|
---|
13655 |
|
---|
13656 | #undef VioReadCharStr
|
---|
13657 | #define VioReadCharStr _VioReadCharStr
|
---|
13658 |
|
---|
13659 | inline USHORT _VioRegister(PSZ a, PSZ b, ULONG c, ULONG d)
|
---|
13660 | {
|
---|
13661 | USHORT yyrc;
|
---|
13662 | USHORT sel = GetFS();
|
---|
13663 |
|
---|
13664 | yyrc = VIO16REGISTER(a, b, c, d);
|
---|
13665 | SetFS(sel);
|
---|
13666 |
|
---|
13667 | return yyrc;
|
---|
13668 | }
|
---|
13669 |
|
---|
13670 | #undef VioRegister
|
---|
13671 | #define VioRegister _VioRegister
|
---|
13672 |
|
---|
13673 | inline USHORT _VioSavRedrawUndo(USHORT a, USHORT b, USHORT c)
|
---|
13674 | {
|
---|
13675 | USHORT yyrc;
|
---|
13676 | USHORT sel = GetFS();
|
---|
13677 |
|
---|
13678 | yyrc = VIO16SAVREDRAWUNDO(a, b, c);
|
---|
13679 | SetFS(sel);
|
---|
13680 |
|
---|
13681 | return yyrc;
|
---|
13682 | }
|
---|
13683 |
|
---|
13684 | #undef VioSavRedrawUndo
|
---|
13685 | #define VioSavRedrawUndo _VioSavRedrawUndo
|
---|
13686 |
|
---|
13687 | inline USHORT _VioSavRedrawWait(USHORT a, PUSHORT b, USHORT c)
|
---|
13688 | {
|
---|
13689 | USHORT yyrc;
|
---|
13690 | USHORT sel = GetFS();
|
---|
13691 |
|
---|
13692 | yyrc = VIO16SAVREDRAWWAIT(a, b, c);
|
---|
13693 | SetFS(sel);
|
---|
13694 |
|
---|
13695 | return yyrc;
|
---|
13696 | }
|
---|
13697 |
|
---|
13698 | #undef VioSavRedrawWait
|
---|
13699 | #define VioSavRedrawWait _VioSavRedrawWait
|
---|
13700 |
|
---|
13701 | inline USHORT _VioScrLock(USHORT a, PUCHAR b, HVIO c)
|
---|
13702 | {
|
---|
13703 | USHORT yyrc;
|
---|
13704 | USHORT sel = GetFS();
|
---|
13705 |
|
---|
13706 | yyrc = VIO16SCRLOCK(a, b, c);
|
---|
13707 | SetFS(sel);
|
---|
13708 |
|
---|
13709 | return yyrc;
|
---|
13710 | }
|
---|
13711 |
|
---|
13712 | #undef VioScrLock
|
---|
13713 | #define VioScrLock _VioScrLock
|
---|
13714 |
|
---|
13715 | inline USHORT _VioScrollDn(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
|
---|
13716 | {
|
---|
13717 | USHORT yyrc;
|
---|
13718 | USHORT sel = GetFS();
|
---|
13719 |
|
---|
13720 | yyrc = VIO16SCROLLDN(a, b, c, d, e, f, g);
|
---|
13721 | SetFS(sel);
|
---|
13722 |
|
---|
13723 | return yyrc;
|
---|
13724 | }
|
---|
13725 |
|
---|
13726 | #undef VioScrollDn
|
---|
13727 | #define VioScrollDn _VioScrollDn
|
---|
13728 |
|
---|
13729 | inline USHORT _VioScrollLf(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
|
---|
13730 | {
|
---|
13731 | USHORT yyrc;
|
---|
13732 | USHORT sel = GetFS();
|
---|
13733 |
|
---|
13734 | yyrc = VIO16SCROLLLF(a, b, c, d, e, f, g);
|
---|
13735 | SetFS(sel);
|
---|
13736 |
|
---|
13737 | return yyrc;
|
---|
13738 | }
|
---|
13739 |
|
---|
13740 | #undef VioScrollLf
|
---|
13741 | #define VioScrollLf _VioScrollLf
|
---|
13742 |
|
---|
13743 | inline USHORT _VioScrollRt(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
|
---|
13744 | {
|
---|
13745 | USHORT yyrc;
|
---|
13746 | USHORT sel = GetFS();
|
---|
13747 |
|
---|
13748 | yyrc = VIO16SCROLLRT(a, b, c, d, e, f, g);
|
---|
13749 | SetFS(sel);
|
---|
13750 |
|
---|
13751 | return yyrc;
|
---|
13752 | }
|
---|
13753 |
|
---|
13754 | #undef VioScrollRt
|
---|
13755 | #define VioScrollRt _VioScrollRt
|
---|
13756 |
|
---|
13757 | inline USHORT _VioScrollUp(USHORT a, USHORT b, USHORT c, USHORT d, USHORT e, PBYTE f, HVIO g)
|
---|
13758 | {
|
---|
13759 | USHORT yyrc;
|
---|
13760 | USHORT sel = GetFS();
|
---|
13761 |
|
---|
13762 | yyrc = VIO16SCROLLUP(a, b, c, d, e, f, g);
|
---|
13763 | SetFS(sel);
|
---|
13764 |
|
---|
13765 | return yyrc;
|
---|
13766 | }
|
---|
13767 |
|
---|
13768 | #undef VioScrollUp
|
---|
13769 | #define VioScrollUp _VioScrollUp
|
---|
13770 |
|
---|
13771 | inline USHORT _VioScrUnLock(HVIO a)
|
---|
13772 | {
|
---|
13773 | USHORT yyrc;
|
---|
13774 | USHORT sel = GetFS();
|
---|
13775 |
|
---|
13776 | yyrc = VIO16SCRUNLOCK(a);
|
---|
13777 | SetFS(sel);
|
---|
13778 |
|
---|
13779 | return yyrc;
|
---|
13780 | }
|
---|
13781 |
|
---|
13782 | #undef VioScrUnLock
|
---|
13783 | #define VioScrUnLock _VioScrUnLock
|
---|
13784 |
|
---|
13785 | inline USHORT _VioSetAnsi(USHORT a, HVIO b)
|
---|
13786 | {
|
---|
13787 | USHORT yyrc;
|
---|
13788 | USHORT sel = GetFS();
|
---|
13789 |
|
---|
13790 | yyrc = VIO16SETANSI(a, b);
|
---|
13791 | SetFS(sel);
|
---|
13792 |
|
---|
13793 | return yyrc;
|
---|
13794 | }
|
---|
13795 |
|
---|
13796 | #undef VioSetAnsi
|
---|
13797 | #define VioSetAnsi _VioSetAnsi
|
---|
13798 |
|
---|
13799 | inline USHORT _VioSetCp(USHORT a, USHORT b, HVIO c)
|
---|
13800 | {
|
---|
13801 | USHORT yyrc;
|
---|
13802 | USHORT sel = GetFS();
|
---|
13803 |
|
---|
13804 | yyrc = VIO16SETCP(a, b, c);
|
---|
13805 | SetFS(sel);
|
---|
13806 |
|
---|
13807 | return yyrc;
|
---|
13808 | }
|
---|
13809 |
|
---|
13810 | #undef VioSetCp
|
---|
13811 | #define VioSetCp _VioSetCp
|
---|
13812 |
|
---|
13813 | inline USHORT _VioSetCurPos(USHORT a, USHORT b, HVIO c)
|
---|
13814 | {
|
---|
13815 | USHORT yyrc;
|
---|
13816 | USHORT sel = GetFS();
|
---|
13817 |
|
---|
13818 | yyrc = VIO16SETCURPOS(a, b, c);
|
---|
13819 | SetFS(sel);
|
---|
13820 |
|
---|
13821 | return yyrc;
|
---|
13822 | }
|
---|
13823 |
|
---|
13824 | #undef VioSetCurPos
|
---|
13825 | #define VioSetCurPos _VioSetCurPos
|
---|
13826 |
|
---|
13827 | inline USHORT _VioSetCurType(PVIOCURSORINFO a, HVIO b)
|
---|
13828 | {
|
---|
13829 | USHORT yyrc;
|
---|
13830 | USHORT sel = GetFS();
|
---|
13831 |
|
---|
13832 | yyrc = VIO16SETCURTYPE(a, b);
|
---|
13833 | SetFS(sel);
|
---|
13834 |
|
---|
13835 | return yyrc;
|
---|
13836 | }
|
---|
13837 |
|
---|
13838 | #undef VioSetCurType
|
---|
13839 | #define VioSetCurType _VioSetCurType
|
---|
13840 |
|
---|
13841 | inline USHORT _VioSetFont(PVIOFONTINFO a, HVIO b)
|
---|
13842 | {
|
---|
13843 | USHORT yyrc;
|
---|
13844 | USHORT sel = GetFS();
|
---|
13845 |
|
---|
13846 | yyrc = VIO16SETFONT(a, b);
|
---|
13847 | SetFS(sel);
|
---|
13848 |
|
---|
13849 | return yyrc;
|
---|
13850 | }
|
---|
13851 |
|
---|
13852 | #undef VioSetFont
|
---|
13853 | #define VioSetFont _VioSetFont
|
---|
13854 |
|
---|
13855 | inline USHORT _VioSetMode(PVIOMODEINFO a, HVIO b)
|
---|
13856 | {
|
---|
13857 | USHORT yyrc;
|
---|
13858 | USHORT sel = GetFS();
|
---|
13859 |
|
---|
13860 | yyrc = VIO16SETMODE(a, b);
|
---|
13861 | SetFS(sel);
|
---|
13862 |
|
---|
13863 | return yyrc;
|
---|
13864 | }
|
---|
13865 |
|
---|
13866 | #undef VioSetMode
|
---|
13867 | #define VioSetMode _VioSetMode
|
---|
13868 |
|
---|
13869 | inline USHORT _VioSetState(PVOID a, HVIO b)
|
---|
13870 | {
|
---|
13871 | USHORT yyrc;
|
---|
13872 | USHORT sel = GetFS();
|
---|
13873 |
|
---|
13874 | yyrc = VIO16SETSTATE(a, b);
|
---|
13875 | SetFS(sel);
|
---|
13876 |
|
---|
13877 | return yyrc;
|
---|
13878 | }
|
---|
13879 |
|
---|
13880 | #undef VioSetState
|
---|
13881 | #define VioSetState _VioSetState
|
---|
13882 |
|
---|
13883 | inline USHORT _VioShowBuf(USHORT a, USHORT b, HVIO c)
|
---|
13884 | {
|
---|
13885 | USHORT yyrc;
|
---|
13886 | USHORT sel = GetFS();
|
---|
13887 |
|
---|
13888 | yyrc = VIO16SHOWBUF(a, b, c);
|
---|
13889 | SetFS(sel);
|
---|
13890 |
|
---|
13891 | return yyrc;
|
---|
13892 | }
|
---|
13893 |
|
---|
13894 | #undef VioShowBuf
|
---|
13895 | #define VioShowBuf _VioShowBuf
|
---|
13896 |
|
---|
13897 | inline USHORT _VioWrtCellStr(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
|
---|
13898 | {
|
---|
13899 | USHORT yyrc;
|
---|
13900 | USHORT sel = GetFS();
|
---|
13901 |
|
---|
13902 | yyrc = VIO16WRTCELLSTR(a, b, c, d, e);
|
---|
13903 | SetFS(sel);
|
---|
13904 |
|
---|
13905 | return yyrc;
|
---|
13906 | }
|
---|
13907 |
|
---|
13908 | #undef VioWrtCellStr
|
---|
13909 | #define VioWrtCellStr _VioWrtCellStr
|
---|
13910 |
|
---|
13911 | inline USHORT _VioWrtCharStr(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
|
---|
13912 | {
|
---|
13913 | USHORT yyrc;
|
---|
13914 | USHORT sel = GetFS();
|
---|
13915 |
|
---|
13916 | yyrc = VIO16WRTCHARSTR(a, b, c, d, e);
|
---|
13917 | SetFS(sel);
|
---|
13918 |
|
---|
13919 | return yyrc;
|
---|
13920 | }
|
---|
13921 |
|
---|
13922 | #undef VioWrtCharStr
|
---|
13923 | #define VioWrtCharStr _VioWrtCharStr
|
---|
13924 |
|
---|
13925 | inline USHORT _VioWrtCharStrAtt(PCH a, USHORT b, USHORT c, USHORT d, PBYTE e, HVIO f)
|
---|
13926 | {
|
---|
13927 | USHORT yyrc;
|
---|
13928 | USHORT sel = GetFS();
|
---|
13929 |
|
---|
13930 | yyrc = VIO16WRTCHARSTRATT(a, b, c, d, e, f);
|
---|
13931 | SetFS(sel);
|
---|
13932 |
|
---|
13933 | return yyrc;
|
---|
13934 | }
|
---|
13935 |
|
---|
13936 | #undef VioWrtCharStrAtt
|
---|
13937 | #define VioWrtCharStrAtt _VioWrtCharStrAtt
|
---|
13938 |
|
---|
13939 | inline USHORT _VioWrtNAttr(PBYTE a, USHORT b, USHORT c, USHORT d, HVIO e)
|
---|
13940 | {
|
---|
13941 | USHORT yyrc;
|
---|
13942 | USHORT sel = GetFS();
|
---|
13943 |
|
---|
13944 | yyrc = VIO16WRTNATTR(a, b, c, d, e);
|
---|
13945 | SetFS(sel);
|
---|
13946 |
|
---|
13947 | return yyrc;
|
---|
13948 | }
|
---|
13949 |
|
---|
13950 | #undef VioWrtNAttr
|
---|
13951 | #define VioWrtNAttr _VioWrtNAttr
|
---|
13952 |
|
---|
13953 | inline USHORT _VioWrtNCell(PBYTE a, USHORT b, USHORT c, USHORT d, HVIO e)
|
---|
13954 | {
|
---|
13955 | USHORT yyrc;
|
---|
13956 | USHORT sel = GetFS();
|
---|
13957 |
|
---|
13958 | yyrc = VIO16WRTNCELL(a, b, c, d, e);
|
---|
13959 | SetFS(sel);
|
---|
13960 |
|
---|
13961 | return yyrc;
|
---|
13962 | }
|
---|
13963 |
|
---|
13964 | #undef VioWrtNCell
|
---|
13965 | #define VioWrtNCell _VioWrtNCell
|
---|
13966 |
|
---|
13967 | inline USHORT _VioWrtNChar(PCH a, USHORT b, USHORT c, USHORT d, HVIO e)
|
---|
13968 | {
|
---|
13969 | USHORT yyrc;
|
---|
13970 | USHORT sel = GetFS();
|
---|
13971 |
|
---|
13972 | yyrc = VIO16WRTNCHAR(a, b, c, d, e);
|
---|
13973 | SetFS(sel);
|
---|
13974 |
|
---|
13975 | return yyrc;
|
---|
13976 | }
|
---|
13977 |
|
---|
13978 | #undef VioWrtNChar
|
---|
13979 | #define VioWrtNChar _VioWrtNChar
|
---|
13980 |
|
---|
13981 | inline USHORT _VioWrtTTY(PCH a, USHORT b, HVIO c)
|
---|
13982 | {
|
---|
13983 | USHORT yyrc;
|
---|
13984 | USHORT sel = GetFS();
|
---|
13985 |
|
---|
13986 | yyrc = VIO16WRTTTY(a, b, c);
|
---|
13987 | SetFS(sel);
|
---|
13988 |
|
---|
13989 | return yyrc;
|
---|
13990 | }
|
---|
13991 |
|
---|
13992 | #undef VioWrtTTY
|
---|
13993 | #define VioWrtTTY _VioWrtTTY
|
---|
13994 |
|
---|
13995 | #endif
|
---|
13996 | #ifdef INCL_MOU
|
---|
13997 | inline USHORT _MouClose(HMOU a)
|
---|
13998 | {
|
---|
13999 | USHORT yyrc;
|
---|
14000 | USHORT sel = GetFS();
|
---|
14001 |
|
---|
14002 | yyrc = MOU16CLOSE(a);
|
---|
14003 | SetFS(sel);
|
---|
14004 |
|
---|
14005 | return yyrc;
|
---|
14006 | }
|
---|
14007 |
|
---|
14008 | #undef MouClose
|
---|
14009 | #define MouClose _MouClose
|
---|
14010 |
|
---|
14011 | inline USHORT _MouDeRegister()
|
---|
14012 | {
|
---|
14013 | USHORT yyrc;
|
---|
14014 | USHORT sel = GetFS();
|
---|
14015 |
|
---|
14016 | yyrc = MOU16DEREGISTER();
|
---|
14017 | SetFS(sel);
|
---|
14018 |
|
---|
14019 | return yyrc;
|
---|
14020 | }
|
---|
14021 |
|
---|
14022 | #undef MouDeRegister
|
---|
14023 | #define MouDeRegister _MouDeRegister
|
---|
14024 |
|
---|
14025 | inline USHORT _MouDrawPtr(HMOU a)
|
---|
14026 | {
|
---|
14027 | USHORT yyrc;
|
---|
14028 | USHORT sel = GetFS();
|
---|
14029 |
|
---|
14030 | yyrc = MOU16DRAWPTR(a);
|
---|
14031 | SetFS(sel);
|
---|
14032 |
|
---|
14033 | return yyrc;
|
---|
14034 | }
|
---|
14035 |
|
---|
14036 | #undef MouDrawPtr
|
---|
14037 | #define MouDrawPtr _MouDrawPtr
|
---|
14038 |
|
---|
14039 | inline USHORT _MouFlushQue(HMOU a)
|
---|
14040 | {
|
---|
14041 | USHORT yyrc;
|
---|
14042 | USHORT sel = GetFS();
|
---|
14043 |
|
---|
14044 | yyrc = MOU16FLUSHQUE(a);
|
---|
14045 | SetFS(sel);
|
---|
14046 |
|
---|
14047 | return yyrc;
|
---|
14048 | }
|
---|
14049 |
|
---|
14050 | #undef MouFlushQue
|
---|
14051 | #define MouFlushQue _MouFlushQue
|
---|
14052 |
|
---|
14053 | inline USHORT _MouGetDevStatus(PUSHORT a, HMOU b)
|
---|
14054 | {
|
---|
14055 | USHORT yyrc;
|
---|
14056 | USHORT sel = GetFS();
|
---|
14057 |
|
---|
14058 | yyrc = MOU16GETDEVSTATUS(a, b);
|
---|
14059 | SetFS(sel);
|
---|
14060 |
|
---|
14061 | return yyrc;
|
---|
14062 | }
|
---|
14063 |
|
---|
14064 | #undef MouGetDevStatus
|
---|
14065 | #define MouGetDevStatus _MouGetDevStatus
|
---|
14066 |
|
---|
14067 | inline USHORT _MouGetEventMask(PUSHORT a, HMOU b)
|
---|
14068 | {
|
---|
14069 | USHORT yyrc;
|
---|
14070 | USHORT sel = GetFS();
|
---|
14071 |
|
---|
14072 | yyrc = MOU16GETEVENTMASK(a, b);
|
---|
14073 | SetFS(sel);
|
---|
14074 |
|
---|
14075 | return yyrc;
|
---|
14076 | }
|
---|
14077 |
|
---|
14078 | #undef MouGetEventMask
|
---|
14079 | #define MouGetEventMask _MouGetEventMask
|
---|
14080 |
|
---|
14081 | inline USHORT _MouGetNumButtons(PUSHORT a, HMOU b)
|
---|
14082 | {
|
---|
14083 | USHORT yyrc;
|
---|
14084 | USHORT sel = GetFS();
|
---|
14085 |
|
---|
14086 | yyrc = MOU16GETNUMBUTTONS(a, b);
|
---|
14087 | SetFS(sel);
|
---|
14088 |
|
---|
14089 | return yyrc;
|
---|
14090 | }
|
---|
14091 |
|
---|
14092 | #undef MouGetNumButtons
|
---|
14093 | #define MouGetNumButtons _MouGetNumButtons
|
---|
14094 |
|
---|
14095 | inline USHORT _MouGetNumMickeys(PUSHORT a, HMOU b)
|
---|
14096 | {
|
---|
14097 | USHORT yyrc;
|
---|
14098 | USHORT sel = GetFS();
|
---|
14099 |
|
---|
14100 | yyrc = MOU16GETNUMMICKEYS(a, b);
|
---|
14101 | SetFS(sel);
|
---|
14102 |
|
---|
14103 | return yyrc;
|
---|
14104 | }
|
---|
14105 |
|
---|
14106 | #undef MouGetNumMickeys
|
---|
14107 | #define MouGetNumMickeys _MouGetNumMickeys
|
---|
14108 |
|
---|
14109 | inline USHORT _MouGetNumQueEl(PMOUQUEINFO a, HMOU b)
|
---|
14110 | {
|
---|
14111 | USHORT yyrc;
|
---|
14112 | USHORT sel = GetFS();
|
---|
14113 |
|
---|
14114 | yyrc = MOU16GETNUMQUEEL(a, b);
|
---|
14115 | SetFS(sel);
|
---|
14116 |
|
---|
14117 | return yyrc;
|
---|
14118 | }
|
---|
14119 |
|
---|
14120 | #undef MouGetNumQueEl
|
---|
14121 | #define MouGetNumQueEl _MouGetNumQueEl
|
---|
14122 |
|
---|
14123 | inline USHORT _MouGetPtrPos(PPTRLOC a, HMOU b)
|
---|
14124 | {
|
---|
14125 | USHORT yyrc;
|
---|
14126 | USHORT sel = GetFS();
|
---|
14127 |
|
---|
14128 | yyrc = MOU16GETPTRPOS(a, b);
|
---|
14129 | SetFS(sel);
|
---|
14130 |
|
---|
14131 | return yyrc;
|
---|
14132 | }
|
---|
14133 |
|
---|
14134 | #undef MouGetPtrPos
|
---|
14135 | #define MouGetPtrPos _MouGetPtrPos
|
---|
14136 |
|
---|
14137 | inline USHORT _MouGetPtrShape(PBYTE a, PPTRSHAPE b, HMOU c)
|
---|
14138 | {
|
---|
14139 | USHORT yyrc;
|
---|
14140 | USHORT sel = GetFS();
|
---|
14141 |
|
---|
14142 | yyrc = MOU16GETPTRSHAPE(a, b, c);
|
---|
14143 | SetFS(sel);
|
---|
14144 |
|
---|
14145 | return yyrc;
|
---|
14146 | }
|
---|
14147 |
|
---|
14148 | #undef MouGetPtrShape
|
---|
14149 | #define MouGetPtrShape _MouGetPtrShape
|
---|
14150 |
|
---|
14151 | inline USHORT _MouGetScaleFact(PSCALEFACT a, HMOU b)
|
---|
14152 | {
|
---|
14153 | USHORT yyrc;
|
---|
14154 | USHORT sel = GetFS();
|
---|
14155 |
|
---|
14156 | yyrc = MOU16GETSCALEFACT(a, b);
|
---|
14157 | SetFS(sel);
|
---|
14158 |
|
---|
14159 | return yyrc;
|
---|
14160 | }
|
---|
14161 |
|
---|
14162 | #undef MouGetScaleFact
|
---|
14163 | #define MouGetScaleFact _MouGetScaleFact
|
---|
14164 |
|
---|
14165 | inline USHORT _MouGetThreshold(PTHRESHOLD a, HMOU b)
|
---|
14166 | {
|
---|
14167 | USHORT yyrc;
|
---|
14168 | USHORT sel = GetFS();
|
---|
14169 |
|
---|
14170 | yyrc = MOU16GETTHRESHOLD(a, b);
|
---|
14171 | SetFS(sel);
|
---|
14172 |
|
---|
14173 | return yyrc;
|
---|
14174 | }
|
---|
14175 |
|
---|
14176 | #undef MouGetThreshold
|
---|
14177 | #define MouGetThreshold _MouGetThreshold
|
---|
14178 |
|
---|
14179 | inline USHORT _MouInitReal(PSZ a)
|
---|
14180 | {
|
---|
14181 | USHORT yyrc;
|
---|
14182 | USHORT sel = GetFS();
|
---|
14183 |
|
---|
14184 | yyrc = MOU16INITREAL(a);
|
---|
14185 | SetFS(sel);
|
---|
14186 |
|
---|
14187 | return yyrc;
|
---|
14188 | }
|
---|
14189 |
|
---|
14190 | #undef MouInitReal
|
---|
14191 | #define MouInitReal _MouInitReal
|
---|
14192 |
|
---|
14193 | inline USHORT _MouOpen(PSZ a, PHMOU b)
|
---|
14194 | {
|
---|
14195 | USHORT yyrc;
|
---|
14196 | USHORT sel = GetFS();
|
---|
14197 |
|
---|
14198 | yyrc = MOU16OPEN(a, b);
|
---|
14199 | SetFS(sel);
|
---|
14200 |
|
---|
14201 | return yyrc;
|
---|
14202 | }
|
---|
14203 |
|
---|
14204 | #undef MouOpen
|
---|
14205 | #define MouOpen _MouOpen
|
---|
14206 |
|
---|
14207 | inline USHORT _MouReadEventQue(PMOUEVENTINFO a, PUSHORT b, HMOU c)
|
---|
14208 | {
|
---|
14209 | USHORT yyrc;
|
---|
14210 | USHORT sel = GetFS();
|
---|
14211 |
|
---|
14212 | yyrc = MOU16READEVENTQUE(a, b, c);
|
---|
14213 | SetFS(sel);
|
---|
14214 |
|
---|
14215 | return yyrc;
|
---|
14216 | }
|
---|
14217 |
|
---|
14218 | #undef MouReadEventQue
|
---|
14219 | #define MouReadEventQue _MouReadEventQue
|
---|
14220 |
|
---|
14221 | inline USHORT _MouRegister(PSZ a, PSZ b, ULONG c)
|
---|
14222 | {
|
---|
14223 | USHORT yyrc;
|
---|
14224 | USHORT sel = GetFS();
|
---|
14225 |
|
---|
14226 | yyrc = MOU16REGISTER(a, b, c);
|
---|
14227 | SetFS(sel);
|
---|
14228 |
|
---|
14229 | return yyrc;
|
---|
14230 | }
|
---|
14231 |
|
---|
14232 | #undef MouRegister
|
---|
14233 | #define MouRegister _MouRegister
|
---|
14234 |
|
---|
14235 | inline USHORT _MouRemovePtr(PNOPTRRECT a, HMOU b)
|
---|
14236 | {
|
---|
14237 | USHORT yyrc;
|
---|
14238 | USHORT sel = GetFS();
|
---|
14239 |
|
---|
14240 | yyrc = MOU16REMOVEPTR(a, b);
|
---|
14241 | SetFS(sel);
|
---|
14242 |
|
---|
14243 | return yyrc;
|
---|
14244 | }
|
---|
14245 |
|
---|
14246 | #undef MouRemovePtr
|
---|
14247 | #define MouRemovePtr _MouRemovePtr
|
---|
14248 |
|
---|
14249 | inline USHORT _MouSetDevStatus(PUSHORT a, HMOU b)
|
---|
14250 | {
|
---|
14251 | USHORT yyrc;
|
---|
14252 | USHORT sel = GetFS();
|
---|
14253 |
|
---|
14254 | yyrc = MOU16SETDEVSTATUS(a, b);
|
---|
14255 | SetFS(sel);
|
---|
14256 |
|
---|
14257 | return yyrc;
|
---|
14258 | }
|
---|
14259 |
|
---|
14260 | #undef MouSetDevStatus
|
---|
14261 | #define MouSetDevStatus _MouSetDevStatus
|
---|
14262 |
|
---|
14263 | inline USHORT _MouSetEventMask(PUSHORT a, HMOU b)
|
---|
14264 | {
|
---|
14265 | USHORT yyrc;
|
---|
14266 | USHORT sel = GetFS();
|
---|
14267 |
|
---|
14268 | yyrc = MOU16SETEVENTMASK(a, b);
|
---|
14269 | SetFS(sel);
|
---|
14270 |
|
---|
14271 | return yyrc;
|
---|
14272 | }
|
---|
14273 |
|
---|
14274 | #undef MouSetEventMask
|
---|
14275 | #define MouSetEventMask _MouSetEventMask
|
---|
14276 |
|
---|
14277 | inline USHORT _MouSetPtrPos(PPTRLOC a, HMOU b)
|
---|
14278 | {
|
---|
14279 | USHORT yyrc;
|
---|
14280 | USHORT sel = GetFS();
|
---|
14281 |
|
---|
14282 | yyrc = MOU16SETPTRPOS(a, b);
|
---|
14283 | SetFS(sel);
|
---|
14284 |
|
---|
14285 | return yyrc;
|
---|
14286 | }
|
---|
14287 |
|
---|
14288 | #undef MouSetPtrPos
|
---|
14289 | #define MouSetPtrPos _MouSetPtrPos
|
---|
14290 |
|
---|
14291 | inline USHORT _MouSetPtrShape(PBYTE a, PPTRSHAPE b, HMOU c)
|
---|
14292 | {
|
---|
14293 | USHORT yyrc;
|
---|
14294 | USHORT sel = GetFS();
|
---|
14295 |
|
---|
14296 | yyrc = MOU16SETPTRSHAPE(a, b, c);
|
---|
14297 | SetFS(sel);
|
---|
14298 |
|
---|
14299 | return yyrc;
|
---|
14300 | }
|
---|
14301 |
|
---|
14302 | #undef MouSetPtrShape
|
---|
14303 | #define MouSetPtrShape _MouSetPtrShape
|
---|
14304 |
|
---|
14305 | inline USHORT _MouSetScaleFact(PSCALEFACT a, HMOU b)
|
---|
14306 | {
|
---|
14307 | USHORT yyrc;
|
---|
14308 | USHORT sel = GetFS();
|
---|
14309 |
|
---|
14310 | yyrc = MOU16SETSCALEFACT(a, b);
|
---|
14311 | SetFS(sel);
|
---|
14312 |
|
---|
14313 | return yyrc;
|
---|
14314 | }
|
---|
14315 |
|
---|
14316 | #undef MouSetScaleFact
|
---|
14317 | #define MouSetScaleFact _MouSetScaleFact
|
---|
14318 |
|
---|
14319 | inline USHORT _MouSetThreshold(PTHRESHOLD a, HMOU b)
|
---|
14320 | {
|
---|
14321 | USHORT yyrc;
|
---|
14322 | USHORT sel = GetFS();
|
---|
14323 |
|
---|
14324 | yyrc = MOU16SETTHRESHOLD(a, b);
|
---|
14325 | SetFS(sel);
|
---|
14326 |
|
---|
14327 | return yyrc;
|
---|
14328 | }
|
---|
14329 |
|
---|
14330 | #undef MouSetThreshold
|
---|
14331 | #define MouSetThreshold _MouSetThreshold
|
---|
14332 |
|
---|
14333 | inline USHORT _MouSynch(USHORT a)
|
---|
14334 | {
|
---|
14335 | USHORT yyrc;
|
---|
14336 | USHORT sel = GetFS();
|
---|
14337 |
|
---|
14338 | yyrc = MOU16SYNCH(a);
|
---|
14339 | SetFS(sel);
|
---|
14340 |
|
---|
14341 | return yyrc;
|
---|
14342 | }
|
---|
14343 |
|
---|
14344 | #undef MouSynch
|
---|
14345 | #define MouSynch _MouSynch
|
---|
14346 |
|
---|
14347 | #endif
|
---|
14348 |
|
---|
14349 | #endif
|
---|