1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
|
/*static char *SCCSID = "@(#)doscall.h 6.25 86/06/03";*/
/*** doscall.h
*
* Shirleyd
* (C) Copyright 1988 Microsoft Corporation
* 12/13/85
*
* Description:
*
* Function declarations to provide strong type checking
* on arguments to DOS 4.0 function calls
*
* Major Modifications 04/28/86 by S. S.
* Major Modifications 04/30/86 by K. D.
* Minor Modifications 04/30/86 by S. S. (DosTimerAsync/Start)
* Major Modifications 05/01/86 by S. S. (fix Sems,add Queues)
* Minor Modifications 05/14/86 by K. D. (DosFileLocks)
* Minor Modifications 05/16/86 by S. S. (NLS routines)
* Minor Modifications 05/20/86 by S. S. (Get/SetPrty,CreateThread)
* Minor Modifications 05/20/86 by S. S. (add DosSetVector)
* Minor Modifications 06/02/86 by S. S. (GetHugeShift, MuxSemWait)
* Major Modifications 06/03/86 by S. S. (Mouse calls)
*/
/*** CursorData - structure that contains the characteristics
* of the cursor
*/
struct CursorData {
unsigned cur_start; /* Cursor start line */
unsigned cur_end; /* Cursor end line */
unsigned cur_width; /* Cursor width */
unsigned cur_attribute; /* Cursor attribute */
};
/*** DateTime - structure for date and time */
struct DateTime {
unsigned char hour; /* current hour */
unsigned char minutes; /* current minute */
unsigned char seconds; /* current second */
unsigned char hundredths; /* current hundredths of a second */
unsigned char day; /* current day */
unsigned char month; /* current month */
unsigned year; /* current year */
unsigned timezone; /* minutes of time west of GMT */
unsigned char day_of_week; /* current day of week */
};
/*** FileFindBuf - structure of area where the filesystem driver
* returns the results of the search
*/
struct FileFindBuf {
unsigned create_date; /* date of file creation */
unsigned create_time; /* time of file creation */
unsigned access_date; /* date of last access */
unsigned access_time; /* time of last access */
unsigned write_date; /* date of last write */
unsigned write_time; /* time of last write */
unsigned long file_size; /* file size (end of data) */
unsigned long falloc_size; /* file allocated size */
unsigned attributes; /* attributes of the file */
char string_len; /* returned length of ascii name str. */
/* length does not include null byte */
char file_name[12]; /* name string */
};
/*** FileStatus - structure of information list used by DosQFileInfo */
struct FileStatus {
unsigned create_date; /* date of file creation */
unsigned create_time; /* time of file creation */
unsigned access_date; /* date of last access */
unsigned access_time; /* time of last access */
unsigned write_date; /* date of last write */
unsigned write_time; /* time of last write */
unsigned long file_size; /* file size (end of data) */
unsigned long falloc_size; /* file allocated size */
unsigned block_size; /* blocking factor */
unsigned attributes; /* attributes of the file */
};
/*** FSAllocate - structure of file system allocation */
struct FSAllocate {
unsigned long filsys_id; /* file system ID */
unsigned long sec_per_unit; /* number sectors per allocation unit */
unsigned long num_units; /* number of allocation units */
unsigned long avail_units; /* avaliable allocation units */
unsigned bytes_sec; /* bytes per sector */
};
/*** KbdStatus - structure in which the keyboard support will information */
struct KbdStatus {
unsigned length; /* length in words of data structure */
unsigned bit_mask; /* bit mask */
unsigned turn_around_char; /* turnaround character */
unsigned interim_char_flags; /* interim character flags */
unsigned shift_state; /* shift state */
};
/*** KeyData - structure that contains character data */
struct KeyData {
char char_code; /* ASCII character code */
char scan_code; /* scan code */
char status; /* indicates state of the character */
unsigned shift_state; /* state of the shift keys */
unsigned long time; /* time stamp of the keystroke */
};
/*** ModeData - structure that contains characteristics of the mode */
struct ModeData {
unsigned length; /* Length of structure */
char type; /* Text or graphics */
char color; /* Color or monochrome */
unsigned col; /* Column resolution */
unsigned row; /* Row resolution */
unsigned hres; /* horizontal resolution */
unsigned vres; /* vertical resolution */
};
/*** ProcIDsArea - structure of the address of the area where the
* ID's will be placed
*/
struct ProcIDsArea {
unsigned procid_cpid; /* current process' process ID */
unsigned procid_ctid; /* current process' thread ID */
unsigned procid_ppid; /* process ID of the parent */
};
/*** PVBData - structure that contains information about the
* physical video buffer
*/
struct PVBData {
unsigned pvb_size; /* size of the structure */
unsigned long pvb_ptr; /* returns pointer to the pvb buffer */
unsigned pvb_length; /* length of PVB */
unsigned pvb_rows; /* buffer dimension (rows) */
unsigned pvb_cols; /* buffer dimension (cols) */
char pvb_type; /* color or mono */
};
/*** SchedParmsArea - structure of address in which the scheduler
* parms will be placed
*/
struct SchedParmsArea {
char dynvar_flag; /* dynamic variation flag, 1=enabled */
char maxwait; /* maxwait (sec) */
unsigned mintime; /* minimum timeslice (ms) */
unsigned maxtime; /* maximum timeslice (ms) */
};
/*** Tasking Processes:
*
* DosCreateThread
* DosCwait
* DosEnterCritSec
* DosExecPgm
* DosExit
* DosExitCritSec
* DosExitList
* DosGetPID
* DosGetPrty
* DosGetSchedParms
* DosSetFgnd
* DosSetPrty
* DosKillProcess
*/
/*** DosCreateThread - Create another thread of execution
*
* Creates an asynchronous thread of execution under the
* current process
*/
extern unsigned far pascal DOSCREATETHREAD (
void (far *)(void), /* Starting Address for new thread */
unsigned far *, /* Address to put new thread ID */
unsigned char far * ); /* Address of stack for new thread */
/*** DosCwait - Wait for child termination
*
* Places the current thread in a wait state until a child process
* has terminated, then returns the ending process' process ID and
* termination code.
*/
extern unsigned far pascal DOSCWAIT (
unsigned, /* Action (execution) codes */
unsigned, /* Wait options */
unsigned far *, /* Address to put result code */
unsigned far *, /* Address to put process ID */
unsigned ); /* ProcessID of process to wait for */
/*** DosEnterCritSec - Enter critical section of execution
*
* Disables thread switching for the current process
*/
extern void far pascal DOSENTERCRITSEC (void);
/*** DosExecPgm - Execute a program
*
* Allows a program to request another program be executed as a
* child process. The requestor's process may optionally continue
* to execute asynchronous to the new program
*/
extern unsigned far pascal DOSEXECPGM (
unsigned, /* 0=synchronous, 1=asynchronous with */
/* return code discarded, 2=async */
/* with return code saved */
unsigned, /* Trace process */
char far *, /* Address of argument string */
char far *, /* Address of environment string */
unsigned far *, /* Address to put Process ID */
char far * ); /* Address of program filename */
/*** DosExit - Exit a program
*
* This call is issued when a thread completes its execution.
* The current thread is ended.
*/
extern void far pascal DOSEXIT (
unsigned, /* 0=end current thread, 1=end all */
unsigned ); /* Result Code to save for DosCwait */
/*** DosExitCritSec - Exit critical section of execution
*
* Re-enables thread switching for the current process
*/
extern void far pascal DOSEXITCRITSEC (void);
/*** DosExitList - Routine list for process termination
*
* Maintains a list of routines which are to be executed when the
* current process ends, normally or otherwise
*/
extern unsigned far pascal DOSEXITLIST (
unsigned, /* Function request code */
void (far *)(void) ); /* Address of routine to be executed */
/*** DosGetPID - Return process ID
*
* Returns the current process's process ID (PID), thread ID,
* and the PID of the process that spawned it
*/
extern void far pascal DOSGETPID (
struct ProcIDsArea far *); /* ProcID structure */
/*** DosGetPrty - Get Process's Priority
*
* Allows the caller to learn the priority of a process or thread
*/
extern unsigned far pascal DOSGETPRTY (
unsigned, /* Indicate thread or process ID */
unsigned far *, /* Address to put priority */
unsigned ); /* PID of process/thread of interest */
/*** DosGetSchedParms - Get scheduler's parameters
*
* Gets the scheduler's current configuration parameters
*/
extern void far pascal DOSGETSCHEDPARMS (
struct SchedParmsArea far * ); /* Address to put parameters */
/*** DosSetFgnd - Set Foreground Process
*
* Allows the session manager to designate which process
* is to receive favored dispatching
*/
extern unsigned far pascal DOSSETFGND (
unsigned ); /* Process ID of target process */
/*** DosSetPrty - Set Process Priority
*
* Allows the caller to change the base priority or priority
* class of a child process or a thread in the current process
*/
extern unsigned far pascal DOSSETPRTY (
unsigned, /* Indicate scope of change */
unsigned, /* Priority class to set */
unsigned, /* Priority delta to apply */
unsigned ); /* Process or Thread ID of target */
/*** DosKillProcess - Terminate a Process
*
* Terminates a child process and returns its termination code
* to its parent (if any)
*/
extern unsigned far pascal DOSKILLPROCESS (
unsigned, /* 0=kill child processes also, */
/* 1=kill only indicated process */
unsigned ); /* Process ID of process to end */
/*** Asynchronous Notification (Signals):
*
* DosHoldSignal
* DosSendSignal
* DosSetSigHandler
*/
/*** DosHoldSignal - Disable / Enable signals
*
* Used to termporarily disable or enable signal processing
* for the current process.
*/
extern void far pascal DOSHOLDSIGNAL (
unsigned ); /* 0=enable signal, 1=disable signal */
/*** DosSendSignal - Issue signal
*
* Used to send a signal event to an arbitrary process or
* command subtree.
*/
extern unsigned far pascal DOSSENDSIGNAL (
unsigned, /* Process ID to signal */
unsigned, /* 0=notify entire subtree, 1=notify */
/* only the indicated process */
unsigned, /* Signal argument */
unsigned ); /* Signal number */
/*** DosSetSigHandler - Handle Signal
*
* Notifies CP/DOS of a handler for a signal. It may also be used
* to ignore a signal or install a default action for a signal.
*/
extern unsigned far pascal DOSSETSIGHANDLER (
void (far *)(), /* Signal handler address */
unsigned long far *, /* Address of previous handler */
unsigned far *, /* Address of previous action */
unsigned, /* Indicate request type */
unsigned ); /* Signal number */
/*** Pipes:
*
* DosMakePipe
*/
/*** DosMakePipe - Create a Pipe */
extern unsigned far pascal DOSMAKEPIPE (
unsigned far *, /* Addr to place the read handle */
unsigned far *, /* Addr to place the write handle */
unsigned ); /* Size to reserve for the pipe */
/*** Queues:
*
* DosCloseQueue
* DosCreateQueue
* DosOpenQueue
* DosPeekQueue
* DosPurgeQueue
* DosQueryQueue
* DosReadQueue
* DosWriteQueue
*/
/*** DosCloseQueue - Close a Queue
*
* close a queue which is in use by the requesting process
*
*/
extern unsigned far pascal DOSCLOSEQUEUE (
unsigned ) ; /* queue handle */
/*** DosCreateQueue - Create a Queue
*
* creates a queue to be owned by the requesting process
*
*/
extern unsigned far pascal DOSCREATEQUEUE (
unsigned far *, /* queue handle */
unsigned, /* queue priority */
char far * ) ; /* queue name */
/*** DosOpenQueue - Open a Queue
*
* opens a queue for the current process
*
*/
extern unsigned far pascal DOSOPENQUEUE (
unsigned far *, /* PID of queue owner */
unsigned far *, /* queue handle */
char far * ) ; /* queue name */
/*** DosPeekQueue - Peek at a Queue
*
* retrieves an element from a queue without removing it from the queue
*
*/
extern unsigned far pascal DOSPEEKQUEUE (
unsigned, /* queue handle */
unsigned long far *, /* pointer to request */
unsigned far *, /* length of datum returned */
unsigned long far *, /* pointer to address of datum */
unsigned far *, /* indicator of datum returned */
unsigned char, /* wait indicator for empty queue */
unsigned char far *, /* priority of element */
unsigned long ) ; /* semaphore handle */
/*** DosPurgeQueue - Purge a Queue
*
* purges all elements from a queue
*
*/
extern unsigned far pascal DOSPURGEQUEUE (
unsigned ) ; /* queue handle */
/*** DosQueryQueue - Query size of a Queue
*
* returns the number of elements in a queue
*
*/
extern unsigned far pascal DOSQUERYQUEUE (
unsigned, /* queue handle */
unsigned far * ); /* pointer for number of elements */
/*** DosReadQueue - Read from a Queue
*
* retrieves an element from a queue
*
*/
extern unsigned far pascal DOSREADQUEUE (
unsigned, /* queue handle */
unsigned long far *, /* pointer to request */
unsigned far *, /* length of datum returned */
unsigned long far *, /* pointer to address of datum */
unsigned, /* indicator of datum returned */
unsigned char, /* wait indicator for empty queue */
unsigned char far *, /* priority of element */
unsigned long ) ; /* semaphore handle */
/*** DosWriteQueue - Write to a Queue
*
* adds an element to a queue
*
*/
extern unsigned far pascal DOSWRITEQUEUE (
unsigned, /* queue handle */
unsigned, /* request */
unsigned, /* length of datum */
unsigned char far *, /* address of datum */
unsigned char ); /* priority of element */
/*** Semaphores:
*
* DosSemClear
* DosSemRequest
* DosSemSet
* DosSemWait
* DosSemSetWait
* DosMuxSemWait
* DosCloseSem
* DosCreatSem
* DosOpenSem
*/
/*** DosSemClear - Unconditionally clears a semaphore
*
* Unconditionally clears a semaphore; i.e., sets the
* state of the specified semaphore to unowned.
*/
extern unsigned far pascal DOSSEMCLEAR (
unsigned long ); /* semaphore handle */
/*** DosSemRequest - Wait until next DosSemClear
*
* Blocks the current thread until the next DosSemClear is
* issued to the indicated semaphore
*/
extern unsigned far pascal DOSSEMREQUEST (
unsigned long, /* semaphore handle */
unsigned long ); /* Timeout, -1=no timeout, */
/* 0=immediate timeout, >1=number ms */
/*** DosSemSet - Unconditionally take a semaphore
*
* Unconditionally takes a semaphore; i.e., sets the status
* of the specified semaphore to owned.
*/
extern unsigned far pascal DOSSEMSET (
unsigned long ); /* semaphore handle */
/*** DosSemSetWait - Wait for a semaphore to be cleared and set it
*
* Blocks the current thread until the indicated semaphore is
* cleared and then establishes ownership of the semaphore
*/
extern unsigned far pascal DOSSEMSETWAIT (
unsigned long, /* semaphore handle */
unsigned long ); /* Timeout, -1=no timeout, */
/* 0=immediate timeout, >1=number ms */
/*** DosSemWait - Wait for a semaphore to be cleared
*
* Blocks the current thread until the indicated semaphore is
* cleared but does not establish ownership of the semaphore
*/
extern unsigned far pascal DOSSEMWAIT (
unsigned long, /* semaphore handle */
unsigned long ); /* Timeout, -1=no timeout, */
/* 0=immediate timeout, >1=number ms */
/*** DosMuxSemWait - Wait for 1 of N semaphores to be cleared
*
* Blocks the current thread until the indicated semaphore is
* cleared but does not establish ownership of the semaphore
*/
extern unsigned far pascal DOSMUXSEMWAIT (
unsigned far *, /* address for event index number */
unsigned far *, /* list of semaphores */
unsigned long ); /* Timeout, -1=no timeout, */
/* 0=immediate timeout, >1=number ms */
/*** DosCloseSem - Close a system semaphore
*
* closed the specified system semaphore
*/
extern unsigned far pascal DOSCLOSESEM (
unsigned long ); /* semaphore handle */
/*** DosCreateSem - Create a system semaphore
*
* create a system semaphore
*/
extern unsigned far pascal DOSCREATESEM (
unsigned, /* =0 indicates exclusive ownership */
unsigned long far *, /* address for semaphore handle */
char far * ); /* name of semaphore */
/*** DosOpenSem - Open a system semaphore
*
* open a system semaphore
*/
extern unsigned far pascal DOSOPENSEM (
unsigned long far *, /* address for semaphore handle */
char far * ); /* name of semaphore */
/*** Timer Services:
*
* DosGetDateTime
* DosSetDateTime
* DosSleep
* DosGetTimerInt
* DosTimerAsync
* DosTimerStart
* DosTimerStop
*/
/*** DosGetDateTime - Get the current date and time
*
* Used to get the current date and time that are maintained by
* the operating system
*/
extern unsigned far pascal DOSGETDATETIME (
struct DateTime far * );
/*** DosSetDateTime - Set the current date and time
*
* Used to set the date and time that are maintained by the
* operating system
*/
extern unsigned far pascal DOSSETDATETIME (
struct DateTime far * );
/*** DosSleep - Delay Process Execution
*
* Suspends the current thread for a specified interval of time,
* or if the requested interval is '0', simply gives up the
* remainder of the current time slice.
*/
extern unsigned far pascal DOSSLEEP (
unsigned long ); /* TimeInterval - interval size */
/*** DosGetTimerInt - Get the timer tick interval in 1/10000 sec.
*
* Gets a word that contains the timer tick interval in ten
* thousandths of a second. This is the amount of time that
* elapses with every timer tick
*/
extern unsigned far pascal DOSGETTIMERINT (
unsigned far * ); /* interval size */
/*** DosTimerAsync - Start an asynchronous time delay
*
* Starts a timer that runs asynchronously to the thread issuing
* the request. It sets a RAM semaphore which can be used by the
* wait facility
*/
extern unsigned far pascal DOSTIMERASYNC (
unsigned long, /* Interval size */
unsigned long, /* handle of semaphore */
unsigned far * ); /* handle of timer */
/*** DosTimerStart - Start a Periodic Interval Timer
*
* Starts a periodic interval timer that runs asynchronously to
* the thread issuing the request. It sets a RAM semaphore which
* can be used by the wait facility. The semaphore is continually
* signalled at the specified time interval until the timer is
* turned off by DosTimerStop
*/
extern unsigned far pascal DOSTIMERSTART (
unsigned long, /* Interval size */
unsigned long, /* handle of semaphore */
unsigned far * ); /* handle of timer */
/*** DosTimerStop - Stop an interval timer
*
* Stops an interval timer that was started by DosTimerStart
*/
extern unsigned far pascal DOSTIMERSTOP (
unsigned ); /* Handle of the timer */
/*** Memory Management:
*
* DosAllocSeg
* DosAllocShrSeg
* DosGetShrSeg
* DosReallocSeg
* DosFreeSeg
* DosAllocHuge
* DosGetHugeShift
* DosReallocHuge
* DosCreateCSAlias
*/
/*** DosAllocSeg - Allocate Segment
*
* Allocates a segment of memory to the requesting process.
*/
extern unsigned far pascal DOSALLOCSEG (
unsigned, /* Number of bytes requested */
unsigned far *, /* Selector allocated (returned) */
unsigned ); /* Indicator for sharing */
/*** DosAllocShrSeg - Allocate Shared Segment
*
* Allocates a shared memory segment to a process.
*/
extern unsigned far pascal DOSALLOCSHRSEG (
unsigned, /* Number of bytes requested */
char far *, /* Name string */
unsigned far * ); /* Selector allocated (returned) */
/*** DosGetShrSeg - Access Shared Segment
*
* Allows a process to access a shared memory segment previously
* allocated by another process. The reference count for the
* shared segment is incremented.
*/
extern unsigned far pascal DOSGETSHRSEG (
char far *, /* Name string */
unsigned far * ); /* Selector (returned) */
/*** DosGiveSeg - Give access to Segment
*
* Gives another process access to a shares memory segment
*/
extern unsigned far pascal DOSGIVESEG (
unsigned, /* Caller's segment handle */
unsigned, /* Process ID of recipient */
unsigned far * ); /* Recipient's segment handle */
/*** DosReallocSeg - Change Segment Size
*
* Changes the size of a segment already allocated.
*/
extern unsigned far pascal DOSREALLOCSEG (
unsigned, /* New size requested in bytes */
unsigned ); /* Selector */
/*** DosFreeSeg - Free a Segment
*
* Deallocates a segment
*/
extern unsigned far pascal DOSFREESEG (
unsigned ); /* Selector */
/*** DosAllocHuge - Allocate Huge Memory
*
* Allocates memory greater than the maximum segment size
*/
extern unsigned far pascal DOSALLOCHUGE (
unsigned, /* Number of 65536 byte segments */
unsigned, /* Number of bytes in last segment */
unsigned far *, /* Selector allocated (returned) */
unsigned ); /* Max number of 65536-byte segments */
/*** DosGetHugeShift - Get shift count used with Huge Segments
*
* Returns the shift count used in deriving selectors
* to address memory allocated by DosAllocHuge.
*/
extern unsigned far pascal DOSGETHUGESHIFT (
unsigned far *); /* Shift Count (returned) */
/*** DosReallocHuge - Change Huge Memory Size
*
* Changes the size of memory originally allocated by DosAllocHuge
*/
extern unsigned far pascal DOSREALLOCHUGE (
unsigned, /* Number of 65536 byte segments */
unsigned, /* Number of bytes in last segment */
unsigned ); /* Selector */
/*** DosCreateCSAlias - Create CS Alias
*
* Creates an alias descriptor for a data type descriptor passed
* as input. The type of the new descriptor is executable.
*/
extern unsigned far pascal DOSCREATECSALIAS (
unsigned, /* Data segment selector */
unsigned far * ); /* Code segment selector (returned) */
/*** Memory Sub-Allocation Package (MSP)
*
* DosSubAlloc
* DosSubFree
* DosSubSet
*/
/*** DosSubAlloc - Allocate Memory
*
* Allocates memory from a segment previously allocated by
* DosAllocSeg or DosAllocShrSeg and initialized by DosSubSet
*/
extern unsigned far pascal DOSSUBALLOC (
unsigned, /* Segment selector */
unsigned far *, /* Address of block offset */
unsigned ); /* Size of requested block */
/*** DosSubFree - Free Memory
*
* Frees memory previously allocated by DosSubAlloc
*/
extern unsigned far pascal DOSSUBFREE (
unsigned, /* Segment selector */
unsigned, /* Offset of memory block to free */
unsigned ); /* Size of block in bytes */
/*** DosSubSet - Initialize or Set Allocated Memory
*
* Can be used either to initialize a segment for sub-allocation
* of to notify MSP of a change in the size of a segment already
* initialized.
*/
extern unsigned far pascal DOSSUBSET (
unsigned, /* Segment selector */
unsigned, /* Parameter flags */
unsigned ); /* New size of the block */
/*** Program Execution Control:
*
* DosLoadModule
* DosFreeModule
* DosGetProcAddr
* DosGetModHandle
* DosGetModName
*/
/*** DosLoadModule - Load Dynamic Link Routines
*
* Loads a dynamic link module and returns a handle for the module
*/
extern unsigned far pascal DOSLOADMODULE (
char far *, /* Module name string */
unsigned far * ); /* Module handle (returned) */
/*** DosFreeModule - Free Dynamic Link Routines
*
* Frees the reference to the dynamic link module for this process.
* If the dynamic link module is no longer used by any process, the
* module will be freed from system memory.
*/
extern unsigned far pascal DOSFREEMODULE (
unsigned ); /* Module handle */
/*** DosGetProcAddr - Get Dynamic Link Procedure Address
*
* Retruns a far address to the desired procedure within a dynamic
* link module.
*/
extern unsigned far pascal DOSGETPROCADDR (
unsigned, /* Module handle */
char far *, /* Module name string */
unsigned long far * ); /* Procedure address (returned) */
/*** DosGetModHandle - Get Dynamic Link Module Handle
*
* Returns the handle to a dynamic link module that was previously
* loaded. The interface provides a mechanism for testing whether
* a dynamic link module is already loaded.
*/
extern unsigned far pascal DOSGETMODHANDLE (
char far *, /* Module name string */
unsigned far *); /* Module handle (returned) */
/*** DosGetModName - Get Dynamic Link Module Name
*
* returns the fully qualified drive, path, filename, and
* extension associated with the referenced modul handle
*/
extern unsigned far pascal DOSGETMODNAME (
unsigned, /* Module handle */
unsigned, /* Maximum buffer length */
unsigned far * ); /* Buffer (returned) */
/*** Device I/O Services:
*
* DosBeep
* DosDevConfig
* DosDevIOCtl
* DosScrDirectIO
* DosScrRedrawWait
* DosScrLock
* DosScrUnLock
* DosSGInit
* DosSGNum
* DosSGRestore
* DosSGSave
* DosSGSwitch
* DosSGSwitchMe
* DosVioAttach
* DosVioRegister
* KbdCharIn
* KbdFlushBuffer
* KbdGetStatus
* KbdPeek
* KbdSetStatus
* KbdStringIn
* VioRegister
* VioFreePhysBuf
* VioGetBuf
* VioGetCurPos
* VioGetCurType
* VioGetMode
* VioGetPhysBuf
* VioReadCellStr
* VioReadCharStr
* VioScrollDn
* VioScrollUp
* VioScrollLf
* VioScrollRt
* VioSetCurPos
* VioSetCurType
* VioSetMode
* VioShowBuf
* VioWrtCellStr
* VioWrtCharStr
* VioWrtCharStrAtt
* VioWrtNAttr
* VioWrtNCell
* VioWrtNChar
* VioWrtTTY
* VioSetANSI
* VioGetANSI
* VioPrtScreen
* VioSaveRedrawWait
* VioSaveRedrawWaitUndo
* VioScrLock
* VioScrUnlock
* VioSetMnLockTime
* VioSetMXSaveTime
* VioGetTimes
* VioPopUp
* VioEndPopUp
*/
/*** DosBeep - Generate Sound From Speaker */
extern unsigned far pascal DOSBEEP (
unsigned, /* Hertz (25H-7FFFH) */
unsigned ); /* Length of sound in ms */
/*** DosDevConfig - Get Device Configurations
*
* Get information about attached devices
*/
extern unsigned far pascal DOSDEVCONFIG (
unsigned char far *, /* Returned information */
unsigned, /* Item number */
unsigned ); /* Reserved */
/*** DosDevIOCtl - Preform Control Functions Directly On Device
*
* Control functions on the device specified by the opened
* handle
*/
extern unsigned far pascal DOSDEVIOCTL (
char far *, /* Data area */
char far *, /* Command-specific argument list */
unsigned, /* Device-specific function code */
unsigned, /* Device category */
unsigned ); /* Device handle returned by Open */
/*** DosScrDirectIO - Direct Screen I/O
*
* Indicate direct screen I/O
*/
extern unsigned far pascal DOSSCRDIRECTIO (
unsigned ); /* Indicates state of direct I/O */
/* 0=on, 1=off */
/*** DosScrRedrawWait - Screen Refresh
*
* Wait for notification to refresh or redraw screen
*/
extern unsigned far pascal DOSSCRREDRAWWAIT (void);
/*** DosScrLock - Lock Screen
*
* Lock the screen for I/O
*/
extern unsigned far pascal DOSSCRLOCK (
unsigned, /* Block or not - 0=return if */
/* screen unavailable, 1=wait */
unsigned far *); /* Return status of lock - */
/* 0=sucessful, 1=unsuccessful */
/*** DosScrUnLock - Unlock Screen
*
* Unlock the screen for I/O
*/
extern unsigned far pascal DOSSCRUNLOCK (void) ;
/*** DosSGInit - Initialize Screen Group
*
* Initialize the specified screen group
*/
extern unsigned far pascal DOSSGINIT (
unsigned ); /* Number of screen group */
/*** DosSGNum - Get Number of Screen Groups
*
* Get the number of screen groups
*/
extern unsigned far pascal DOSSGNUM (
unsigned far *); /* Total number of screen groups */
/*** DosSGRestore - Restore Screen Group
*
* Restore the current screen group
*/
extern unsigned far pascal DOSSGRESTORE (void);
/*** DosSGSave - Save Screen Group
*
* Save the current screen group
*/
extern unsigned far pascal DOSSGSAVE (void);
/*** DosSGSwitch - Switch Screen Groups
*
* Switch the specified screen group to the active screen group
*/
extern unsigned far pascal DOSSGSWITCH (
unsigned ); /* Number of screen group */
/*** DosSGSwitchMe - Put Process in Screen Group
*
* Switch the caller into the specified screen group
*/
extern unsigned far pascal DOSSGSWITCHME (
unsigned ); /* Number of screen groups */
/*** DosVioAttach - Attach to Video Subsystem
*
* Attach to the current video subsystem for the current screen
* group. This must be done prior to using any VIO functions.
*/
extern unsigned far pascal DOSVIOATTACH (void);
/*** DosVioRegister - Register Video Subsystem
*
* Register a video subsystem for a screen group
*/
extern unsigned far pascal DOSVIOREGISTER (
char far *, /* Module name */
char far * ); /* Table of entries supported by */
/* the VIO dynamic link module */
/*** KbdCharIn - Read Character, Scan Code
*
* Return a character and scan code from the standard input device
*/
extern unsigned far pascal KBDCHARIN (
struct KeyData far *, /* Buffer for character code */
unsigned, /* I/O wait - 0=wait for a */
/* character, 1=no wait */
unsigned ); /* keyboard handle */
/*** KbdFlushBuffer - Flush Keystroke Buffer
*
* Clear the keystroke buffer
*/
extern unsigned far pascal KBDFLUSHBUFFER (
unsigned ); /* keyboard handle */
/*** KbdGetStatus - Get Keyboard Status
*
* Gets the current state of the keyboard.
*/
extern unsigned far pascal KBDGETSTATUS (
struct KbdStatus far *, /* data structure */
unsigned ); /* Keyboard device handle */
/*** KbdPeek - Peek at Character, Scan Code
*
* Return the character/scan code, if available, from the
* standard input device without removing it from the buffer.
*/
extern unsigned far pascal KBDPEEK (
struct KeyData far *, /* buffer for data */
unsigned ); /* keyboard handle */
/*** KbdSetStatus - Set Keyboard Status
*
* Sets the characteristics of the keyboard.
*/
extern unsigned far pascal KBDSETSTATUS (
struct KbdStatus far *, /* data structure */
unsigned ); /* device handle */
/*** KbdStringIn - Read Character String
*
* Read a character string (character codes only) from the
* standard input device. The character string may optionally
* be echoed at the standard output device if the echo mode
* is set (KbdSetEchoMode)
*/
extern unsigned far pascal KBDSTRINGIN (
char far *, /* Char string buffer */
unsigned far *, /* Length of buffer */
unsigned, /* I/O wait- 0=wait for a */
/* character, 1=no wait */
unsigned ); /* keyboard handle */
/*** VioRegister - Register Video Subsystem
*
* Register a video subsystem within a screen group
*
*/
extern unsigned far pascal VIOREGISTER (
char far *, /* Module name */
char far *, /* Entry Point name */
unsigned long, /* Function mask 1 */
unsigned long ); /* Function mask 2 */
/*** VioFreePhysBuf - Free Physical Video Buffer
*
* Release the physical video buffer
*/
extern unsigned far pascal VIOFREEPHYSBUF (
char far * ); /* Physical video buffer */
/*** VioGetBuf - Get Logical Video Buffer
*
* Return the address of the logical video buffer
*/
extern unsigned far pascal VIOGETBUF (
unsigned long far *, /* Will point to logical video buffer */
unsigned far *, /* Length of Buffer */
unsigned ); /* Vio Handle */
/*** VioGetCurPos - Get Cursor Position
*
* Return the cursor position
*/
extern unsigned far pascal VIOGETCURPOS (
unsigned far *, /* Current row position */
unsigned far *, /* Current column position */
unsigned ); /* Vio Handle */
/*** VioGetCurType - Get Cursor Type
*
* Return the cursor type
*/
extern unsigned far pascal VIOGETCURTYPE (
struct CursorData far *, /* Cursor characteristics */
unsigned ); /* Vio Handle */
/*** VioGetMode - Get Display Mode
*
* Return the mode of the display
*/
extern unsigned far pascal VIOGETMODE (
struct ModeData far *, /* Length of Buffer */
unsigned ); /* Vio Handle */
/*** VioGetPhysBuf - Get Physical Video Buffer
*
* Return the address of the physical video buffer
*/
extern unsigned far pascal VIOGETPHYSBUF (
char far *, /* Buffer start address */
char far *, /* Buffer end address */
unsigned far *, /* Address of selector list */
unsigned ); /* Length of selector list */
/*** VioReadCellStr - Read Character/Attributes String
*
* Read a string of character/attributes (or cells) from the
* screen starting at the specified location.
*/
extern unsigned far pascal VIOREADCELLSTR (
char far *, /* Character Buffer */
unsigned far *, /* Length of cell string buffer */
unsigned, /* Starting location (row) */
unsigned, /* Starting location (col) */
unsigned ); /* Vio Handle */
/*** VioReadCharStr - Read Character String
*
* Read a character string from the display starting at the
* current cursor position
*/
extern unsigned far pascal VIOREADCHARSTR (
char far *, /* Character Buffer */
unsigned far *, /* Length of cell string buffer */
unsigned, /* Starting location (row) */
unsigned, /* Starting location (col) */
unsigned ); /* Vio Handle */
/*** VioScrollDn - Scroll Screen Down
*
* Scroll the current screen down
*/
extern unsigned far pascal VIOSCROLLDN (
unsigned, /* Top row of section to scroll */
unsigned, /* Left column of section to scroll */
unsigned, /* Bottom row of section to scroll */
unsigned, /* Right column of section to scroll */
unsigned, /* Number of blank lines at bottom */
char far *, /* pointer to blank Char,Attr */
unsigned ); /* Vio Handle */
/*** VioScrollUp - Scroll Screen Up
*
* Scroll the active page (or display) up
*/
extern unsigned far pascal VIOSCROLLUP (
unsigned, /* Top row of section to scroll */
unsigned, /* Left column of section to scroll */
unsigned, /* Bottom row of section to scroll */
unsigned, /* Right column of section to scroll */
unsigned, /* Number of blank lines at bottom */
char far *, /* pointer to blank Char,Attr */
unsigned ); /* Vio Handle */
/*** VioScrollLf - Scroll Screen Left
*
* Scroll the current screen left
*/
extern unsigned far pascal VIOSCROLLLF (
unsigned, /* Top row of section to scroll */
unsigned, /* Left column of section to scroll */
unsigned, /* Bottom row of section to scroll */
unsigned, /* Right column of section to scroll */
unsigned, /* Number of blank columsn at right */
char far *, /* pointer to blank Char,Attr */
unsigned ); /* Vio Handle */
/*** VioScrollLf - Scroll Screen Right
*
* Scroll the current screen right
*/
extern unsigned far pascal VIOSCROLLRT (
unsigned, /* Top row of section to scroll */
unsigned, /* Left column of section to scroll */
unsigned, /* Bottom row of section to scroll */
unsigned, /* Right column of section to scroll */
unsigned, /* Number of blank columsn at left */
char far *, /* pointer to blank Char,Attr */
unsigned ); /* Vio Handle */
/*** VioSetCurPos - Set Cursor Position
*
* Set the cursor position
*/
extern unsigned far pascal VIOSETCURPOS (
unsigned, /* Row return data */
unsigned, /* Column return data */
unsigned ); /* Vio Handle */
/*** VioSetCurType - Set Cursor Type
*
* Set the cursor type
*/
extern unsigned far pascal VIOSETCURTYPE (
struct CursorData far *, /* Cursor characteristics */
unsigned ); /* Vio Handle */
/*** VioSetMode - Set Display Mode
*
* Set the mode of the display
*/
extern unsigned far pascal VIOSETMODE (
struct ModeData far *, /* Mode characteristics */
unsigned ); /* Vio Handle */
/*** VioShowBuf - Display Logical Buffer
*
* Update the display with the logical video buffer
*/
extern unsigned far pascal VIOSHOWBUF (
unsigned, /* Offset into buffer */
unsigned, /* Length of area to be updated */
unsigned ); /* Vio Handle */
/*** VioWrtCellStr - Write Character/Attribute String
*
* Write a character,attribute string to the display
*/
extern unsigned far pascal VIOWRTCELLSTR (
char far *, /* String to be written */
unsigned, /* Length of string */
unsigned, /* Starting position for output (row) */
unsigned, /* Starting position for output (col) */
unsigned ); /* Vio Handle */
/*** VioWrtCharStr - Write Character String
*
* Write a character string to the display
*/
extern unsigned far pascal VIOWRTCHARSTR (
char far *, /* String to be written */
unsigned, /* Length of string */
unsigned, /* Starting position for output (row) */
unsigned, /* Starting position for output (col) */
unsigned ); /* Vio Handle */
/*** VioWrtCharStrAtt - Write Character String With Attribute
*
* Write a character string with repeated attribute to the display
*/
extern unsigned far pascal VIOWRTCHARSTRATT (
char far *, /* String to be written */
unsigned, /* Length of string */
unsigned, /* Starting position for output (row) */
unsigned, /* Starting position for output (col) */
char far *, /* Attribute to be replicated */
unsigned ); /* Vio Handle */
/*** VioWrtNAttr - Write N Attributes
*
* Write an attribute to the display a specified number of times
*/
extern unsigned far pascal VIOWRTNATTR (
char far *, /* Attribute to be written */
unsigned, /* Length of write */
unsigned, /* Starting position for output (row) */
unsigned, /* Starting position for output (col) */
unsigned ); /* Vio Handle */
/*** VioWrtNCell - Write N Character/Attributes
*
* Write a cell (or character/attribute) to the display a
* specified number of times
*/
extern unsigned far pascal VIOWRTNCELL (
char far *, /* Cell to be written */
unsigned, /* Length of write */
unsigned, /* Starting position for output (row) */
unsigned, /* Starting position for output (col) */
unsigned ); /* Vio Handle */
/*** VioWrtNChar - Write N Characters
*
* Write a character to the display a specified number of times
*/
extern unsigned far pascal VIOWRTNCHAR (
unsigned, /* Character to be written */
unsigned, /* Length of write */
unsigned, /* Starting position for output (row) */
unsigned, /* Starting position for output (col) */
unsigned ); /* Vio Handle */
/*** VioWrtTTY - Write TTY String
*
* Write a character string from the current cursor position in
* TTY mode to the display. The cursor will be positioned at the
* end of the string+1 at the end of the write.
*/
extern unsigned far pascal VIOWRTTTY (
char far *, /* String to be written */
unsigned, /* Length of string */
unsigned ); /* Vio Handle */
/*** VioSetAnsi - Set ANSI On or Off
*
* Activates or deactivates ANSI support
*
*/
extern unsigned far pascal VIOSETANSI (
unsigned, /* ON (=1) or OFF (=0) indicator */
unsigned ); /* Vio Handle */
/*** VioGetAnsi - Get ANSI State
*
* Returns the current ANSI state (0=inactive, 1=active)
*
*/
extern unsigned far pascal VIOGETANSI (
unsigned far *, /* ANSI state (returned) */
unsigned ); /* Vio Handle */
/*** VioPrtScreen - Print Screen
*
* Copies the screen to the printer
*
*/
extern unsigned far pascal VIOPRTSCREEN (
unsigned ); /* Vio Handle */
/*** VioSaveRedrWait - Screen Save Redraw Wait
*
* Allows a process to be notified when it must
* save or redraw its screen
*
*/
extern unsigned far pascal VIOSAVEREDRAWWAIT (
unsigned, /* Save/Redraw Indicator */
unsigned far *, /* Notify type (returned) */
unsigned ); /* Vio Handle */
/*** VioSaveRedrWaitUndo - Undo Screen Save Redraw Wait
*
* Allows a one thread within a process to cancel a
* VIOSAVREDRAWWAIT issued by another thread within
* that same process. Ownership of the VIOSAVREDRAWWAIT
* can either be reserved or given up.
*
*/
extern unsigned far pascal VIOSAVEREDRAWWAITUNDO (
unsigned, /* Ownership Indicator */
unsigned, /* Terminate Indicator */
unsigned ); /* Vio Handle */
/*** VioScrLock - Lock Screen
*
* Tells a process if I/O to the physical screen buffer can occur.
*
*/
extern unsigned far pascal VIOSCRLOCK (
unsigned, /* Wait Flag */
unsigned char far *, /* Status of lock (returned) */
unsigned ); /* Vio Handle */
/*** VioScrUnlock - Unlock Screen
*
* Unlocks the physical screen buffer for I/O.
*
*/
extern unsigned far pascal VIOSCRUNLOCK (
unsigned ); /* Vio Handle */
/*** VioSetMnLockTime - Set Minimum Screen Lock Time
*
* Sets the minimum amount of time that the system will allow a
* process to have exclusive use of the screen via VIOSCRLOCK.
*
*/
extern unsigned far pascal VIOSETMNLOCKTIME (
unsigned, /* Number of seconds */
unsigned ); /* Vio Handle */
/*** VioSetMxSaveTime - Set Maximum Screen Save/Restore Time
*
* Sets the maximum amount of time (in msec) that the system will
* allow a process to take before issuing a VIOSAVREDRWAIT call
* after being notified by the Session Mgr that one is needed.
*
*/
extern unsigned far pascal VIOSETMXSAVETIME (
unsigned, /* Number of milliseconds */
unsigned ); /* Vio Handle */
/*** VioGetTimes - Return VIO Lock and Save/Redraw Times
*
* Returns the 2 word values set by the calls
* VIOSETMNLOCKTIME and VIOSETMXSAVETIME.
*
*/
extern unsigned far pascal VIOGETTIMES (
unsigned far *, /* Min. Lock time (in seconds) */
unsigned far *, /* Max. Save time (in msec) */
unsigned ); /* Vio Handle */
/*** VioPopUp - Allocate a PopUp Display Screen
*
* Creates a temporary window to display a momentary message
*
*/
extern unsigned far pascal VIOPOPUP (
unsigned far *, /* Wait/Nowait Bit flags */
unsigned ); /* Vio Handle */
/*** VioEndPopUp - Deallocate a PopUp Display Screen
*
* Closes a PopUp window
*
*/
extern unsigned far pascal VIOENDPOPUP (
unsigned ); /* Vio Handle */
/*** Mouse Services
*
* MouRegister
* MouGetNumButtons
* MouGetNumMickeys
* MouGetDevStatus
* MouReadEventQueue
* MouGetNumQueEl
* MouGetEventMask
* MouGetScaleFact
* MouSetScaleFact
* MouSetEventMask
* MouOpen
* MouClose
* MouSetPtrShape
* MouRemovePtr
* MouDrawPtr
* MouSetHotKey
*/
/*** MouRegister - Register a Mouse Subsystem or Environment Manager
*
*/
extern unsigned far pascal MOUREGISTER (
char far *, /* Module name */
char far *, /* Entry Point name */
unsigned long, /* Function mask */
unsigned ); /* Mouse Device Handle */
/*** MouGetNumButtons - returns the number of mouse buttons supported
*
*/
extern unsigned far pascal MOUGETNUMBUTTONS (
unsigned far *, /* Number of mouse buttons (returned) */
unsigned ); /* Mouse Device Handle */
/*** MouGetNumMickeys - returns the number of mickeys per centimeter
*
*/
extern unsigned far pascal MOUGETNUMMICKEYS (
unsigned far *, /* Number of Mickeys/cm (returned) */
unsigned ); /* Mouse Device Handle */
/*** MouGetDevStatus - returns the mouse driver status flags
*
*/
extern unsigned far pascal MOUGETDEVSTATUS (
unsigned far *, /* Device Status (returned) */
unsigned ); /* Mouse Device Handle */
/*** MouReadEventQueue - reads an event from the mouse event queue
*
*/
extern unsigned far pascal MOUREADEVENTQUEUE (
unsigned, /* Type of read operation */
unsigned char far *, /* Event Queue Entry (returned) */
unsigned ); /* Mouse Device Handle */
/*** MouGetNumQueEl - returns the status of the Mouse Event Queue
*
*/
extern unsigned far pascal MOUGETNUMQUEEL (
unsigned far *, /* Maximum # of Elements in Queue */
unsigned far *, /* Current # of Elements in Queue */
unsigned ); /* Mouse Device Handle */
/*** MouGetEventMask - Returns the current mouse 1-word event mask
*
*/
extern unsigned far pascal MOUGETEVENTMASK (
unsigned far *, /* Event Mask (returned) */
unsigned ); /* Mouse Device Handle */
/*** MouGetScaleFact - Returns the current mouse scaling factors
*
*/
extern unsigned far pascal MOUGETSCALEFACT (
unsigned far *, /* Y Coordinate Scaling Factor */
unsigned far *, /* X Coordinate Scaling Factor */
unsigned ); /* Mouse Device Handle */
/*** MouSetScaleFact - Sets the current mouse scaling factors
*
*/
extern unsigned far pascal MOUSETSCALEFACT (
unsigned, /* Y Coordinate Scaling Factor */
unsigned, /* X Coordinate Scaling Factor */
unsigned ); /* Mouse Device Handle */
/*** MouSetEventMask - Set the current mouse 1-word event mask
*
*/
extern unsigned far pascal MOUSETEVENTMASK (
unsigned, /* Event Mask */
unsigned ); /* Mouse Device Handle */
/*** MouOpen - Open the mouse device
*
*/
extern unsigned far pascal MOUOPEN (
unsigned far * ); /* Mouse Device Handle (returned) */
/*** MouClose - Close the mouse device
*
*/
extern unsigned far pascal MOUCLOSE (
unsigned ); /* Mouse Device Handle */
/*** MouSetPtrShape - Set the shape and size of the mouse pointer image
*
*/
extern unsigned far pascal MOUSETPTRSHAPE (
unsigned char far *, /* Pointer Shape (returned) */
unsigned long, /* Size of data passed */
unsigned, /* Height of Ptr Shape */
unsigned, /* Width of Ptr Shape */
unsigned, /* Offset to Ptr Column Center */
unsigned, /* Offset to Ptr Row Center */
unsigned ); /* Mouse Device Handle */
/*** MouRemovePtr - Restricts the Mouse Ptr from occurring in a region
*
*/
extern unsigned far pascal MOUREMOVEPTR (
unsigned far *, /* Pointer Area */
unsigned ); /* Mouse Device Handle */
/*** MouDrawPtr - Unrestricts the Mouse Ptr
*
*/
extern unsigned far pascal MOUDRAWPTR (
unsigned ); /* Mouse Device Handle */
/*** MouSetHotKey - Determines which Mouse Key is the system hot key
*
*/
extern unsigned far pascal MOUSETHOTKEY (
unsigned, /* Mouse Button Mask */
unsigned ); /* Mouse Device Handle */
/*** Device Monitor Services
*
* DosMonOpen
* DosMonClose
* DosMonReg
* DosMonRead
* DosMonWrite
*/
/*** DosMonOpen - Open a Connection to a CP/DOS Device Monitor
*
* This call is issued once by a process which wishes to use
* device monitors
*/
extern unsigned far pascal DOSMONOPEN (
char far *, /* Ascii string of device name */
unsigned far * ); /* Address for handle return value */
/*** DosMonClose - Close a Connection to a CP/DOS Device Monitor
*
* This call is issued once by a process which wishes to terminate
* monitoring. This call causes all monitor buffers associated to
* be flushed and closed.
*/
extern unsigned far pascal DOSMONCLOSE (
unsigned ); /* Handle from DosMonOpen */
/*** DosMonReg - Register a Set of Buffers as a Monitor
*
* This call is issued to establish a pair of buffer structures -
* one input and one output - to monitor an I/O stream
*/
extern unsigned far pascal DOSMONREG (
unsigned, /* Handle from DosMonOpen */
unsigned char far *, /* Address of monitor input buffer */
unsigned char far *, /* Address of monitor output buffer */
unsigned, /* Position flag - 0=no positional */
/* preference, 1=front of list, */
/* 2=back of the list */
unsigned ); /* Index */
/*** DosMonRead - Read Input From Monitor Structure
*
* This call is issued to wait for and read input records from
* the monitor buffer structure
*/
extern unsigned far pascal DOSMONREAD (
unsigned char far *, /* Address of monitor input buffer */
unsigned char, /* Block/Run indicator - 0=block */
/* input ready, 1=return */
unsigned char far *, /* Address of data buffer */
unsigned far * ); /* Number of bytes in the data record */
/*** DosMonWrite - Write Output to Monitor Structure
*
* Writes data to the monitor output buffer structure
*/
extern unsigned far pascal DOSMONWRITE (
unsigned char far *, /* Address of monitor output buffer */
unsigned char far *, /* Address of data buffer */
unsigned ); /* Number of bytes in data record */
/*** File I/O Services:
*
* DosBufReset
* DosChdir
* DosChgFilePtr
* DosClose
* DosCreateUn
* DosDelete
* DosDupHandle
* DosFindClose
* DosFindFirst
* DosFindNext
* DosFileLocks
* DosGetInfoSeg
* DosMkdir
* DosMove
* DosNewSize
* DosOpen
* DosQCurDir
* DosQCurDisk
* DosQFHandState
* DosQFileInfo
* DosQFileMode
* DosQFSInfo
* DosQHandType
* DosQSwitChar
* DosQVerify
* DosRead
* DosReadAsync
* DosRmdir
* DosSelectDisk
* DosSetFileInfo
* DosSetFileMode
* DosSetFHandState
* DosSetFSInfo
* DosSetMaxFH
* DosSetVerify
* DosWrite
* DosWriteAsync
*/
/*** DosBufReset - Commit File's Cache Buffers
*
* Flushes requesting process's cache buffers for the specified
* format
*/
extern unsigned far pascal DOSBUFRESET (
unsigned ); /* File handle */
/*** DosChdir - Change The Current Directory
*
* Define the current directory for the requesting process
*/
extern unsigned far pascal DOSCHDIR (
char far *, /* Directory path name */
unsigned long ); /* Reserved (must be 0) */
/*** DosChgFilePtr - Change (Move) File Read Write Pointer
*
* Move the read/write pointer according to the method specified
*/
extern unsigned far pascal DOSCHGFILEPTR (
unsigned, /* File handle */
long, /* Distance to move in bytes */
unsigned, /* Method of moving (0,1,2) */
unsigned long far * ); /* New pointer location */
/*** DosClose - Close a File Handle
*
* Closes the specified file handle
*/
extern unsigned far pascal DOSCLOSE (
unsigned ); /* File handle */
/*** DosCreateUn - Create a Unique File Path Name
*
* Generates a unique file path name
*/
extern unsigned far pascal DOSCREATEUN (
char far * ); /* File path name area */
/*** DosDelete - Delete a File
*
* Removes a directory entry associated with a filename
*/
extern unsigned far pascal DOSDELETE (
char far *, /* Filename path */
unsigned long ); /* Reserved (must be 0) */
/*** DosDupHandle - Duplicate a File Handle
*
* Returns a new file handle for an open file that refers to the
* same file at the same position
*/
extern unsigned far pascal DOSDUPHANDLE (
unsigned, /* Existing file handle */
unsigned far * ); /* New file handle */
/*** DosFindClose - Close Find Handle
*
* Closes the association between a directory handle and a
* DosFindFirst or DosFindNext directory search function
*/
extern unsigned far pascal DOSFINDCLOSE (
unsigned ); /* Directory search handle */
/*** DosFindFirst - Find First Matching File
*
* Finds the first filename that matches the specified file
* specification
*/
extern unsigned far pascal DOSFINDFIRST (
char far *, /* File path name */
unsigned far *, /* Directory search handle */
unsigned, /* Search attribute */
struct FileFindBuf far *, /* Result buffer */
unsigned, /* Result buffer length */
unsigned far *, /* Number of entries to find */
unsigned long ); /* Reserved (must be 0) */
/*** DosFindNext - Find Next Matching File
*
* Finds the next directory entry matching the name that was
* specified on the previous DosFindFirst or DosFindNext function
* call
*/
extern unsigned far pascal DOSFINDNEXT (
unsigned, /* Directory handle */
struct FileFindBuf far *, /* Result buffer */
unsigned, /* Result buffer length */
unsigned far * ); /* Number of entries to find */
/*** DosFileLocks - File Lock Manager
*
* Unlock and/or lock multiple ranges in an opened file
*/
extern unsigned far pascal DOSFILELOCKS (
unsigned, /* File handle */
long far *, /* Unlock Range */
long far * ); /* Lock Range */
/*** DosGetInfoSeg - Get addresses of system variable segments
*
* Returns 2 selectors: one for the global information segment,
* the other for a process information segment
*/
extern unsigned far pascal DOSGETINFOSEG (
unsigned far *, /* Selector for Global Info Seg */
unsigned far * ); /* Selector for Process Info Seg */
/*** DosMkdir - Make Subdirectory
*
* Creates the specified directory
*/
extern unsigned far pascal DOSMKDIR (
char far *, /* New directory name */
unsigned long ); /* Reserved (must be 0) */
/*** DosMove - Move a file or SubDirectory
*
* Moves the specified file or directory
*/
extern unsigned far pascal DOSMOVE (
char far *, /* Old path name */
char far *, /* New path name */
unsigned long ); /* Reserved (must be 0) */
/*** DosNewSize - Change File's Size
*
* Changes a file's size
*/
extern unsigned far pascal DOSNEWSIZE (
unsigned, /* File handle */
unsigned long ); /* File's new size */
/*** DosOpen - Open a File
*
* Creates the specified file (if necessary) and opens it
*/
extern unsigned far pascal DOSOPEN (
char far *, /* File path name */
unsigned far *, /* New file's handle */
unsigned far *, /* Action taken - 1=file existed, */
/* 2=file was created */
unsigned long, /* File primary allocation */
unsigned, /* File attributes */
unsigned, /* Open function type */
unsigned, /* Open mode of the file */
unsigned long ); /* Reserved (must be zero) */
/*** DosQCurDir - Query Current Directory
*
* Get the full path name of the current directory for the
* requesting process for the specified drive
*/
extern unsigned far pascal DOSQCURDIR (
unsigned, /* Drive number - 1=A, etc */
char far *, /* Directory path buffer */
unsigned far * ); /* Directory path buffer length */
/*** DosQCurDisk - Query Current Disk
*
* Determine the current default drive for the requesting process
*/
extern unsigned far pascal DOSQCURDISK (
unsigned far *, /* Default drive number */
unsigned long far * ); /* Drive-map area */
/*** DosQFHandState - Query file handle state
*
* Query the state of the specified handle
*/
extern unsigned far pascal DOSQFHANDSTATE (
unsigned, /* File Handle */
unsigned far * ); /* File handle state */
/*** DosQFileInfo - Query a File's Information
*
* Returns information for a specific file
*/
extern unsigned far pascal DOSQFILEINFO (
unsigned, /* File handle */
unsigned, /* File data required */
char far *, /* File data buffer */
unsigned ); /* File data buffer size */
/*** DosQFileMode - Query File Mode
*
* Get the mode (attribute) of the specified file
*/
extern unsigned far pascal DOSQFILEMODE (
char far *, /* File path name */
unsigned far *, /* Data area */
unsigned long ); /* Reserved (must be zero) */
/*** DosQFSInfo - Query File System Information
*
* Gets information from a file system device
*/
extern unsigned far pascal DOSQFSINFO (
unsigned, /* Drive number - 0=default, 1=A, etc */
unsigned, /* File system info required */
char far *, /* File system info buffer */
unsigned ); /* File system info buffer size */
/*** DosQHandType - Query Handle type
*
* Returns a flag as to whether a handle references a device or
* a file, and if a device, returns device driver attribute word
*/
extern unsigned far pascal DOSQHANDTYPE (
unsigned, /* File Handle */
unsigned far *, /* Handle Type (0=file, 1=device) */
unsigned far * ); /* Device Driver Attribute Word */
/*** DosQSwitChar - Query Switch Character
*
* Returns the system switch character
*/
extern unsigned far pascal DOSQSWITCHAR (
unsigned char far * ); /* Switch Character (returned) */
/*** DosQVerify - Query Verify Setting
*
* Returns the value of the Verify flag
*/
extern unsigned far pascal DOSQVERIFY (
unsigned far * ); /* Verify setting - 0=verify mode */
/* not active, 1=verify mode active */
/*** DosRead - Read from a File
*
* Reads the specified number of bytes from a file to a
* buffer location
*/
extern unsigned far pascal DOSREAD (
unsigned, /* File handle */
char far *, /* Address of user buffer */
unsigned, /* Buffer length */
unsigned far * ); /* Bytes read */
/*** DosReadAsync - Async Read from a File
*
* Reads the specified number of bytes from a file to a buffer
* location asynchronously with respect to the requesting process's
* execution
*/
extern unsigned far pascal DOSREADASYNC (
unsigned, /* File handle */
unsigned long far *, /* Address of Ram semaphore */
unsigned far *, /* Address of I/O error return code */
char far *, /* Address of user buffer */
unsigned, /* Buffer length */
unsigned far * ); /* Number of bytes actually read */
/*** DosRmDir - Remove Subdirectory
*
* Removes a subdirectory from the specified disk
*/
extern unsigned far pascal DOSRMDIR (
char far *, /* Directory name */
unsigned long ); /* Reserved (must be zero) */
/*** DosSelectDisk - Select Default Drive
*
* Select the drive specified as the default drive for the
* calling process
*/
extern unsigned far pascal DOSSELECTDISK (
unsigned ); /* Default drive number */
/*** DosSetFHandState - Set File Handle State
*
* Get the state of the specified file
*/
extern unsigned far pascal DOSSETFHANDSTATE (
unsigned, /* File handle */
unsigned); /* File handle state */
/*** DosSetFSInfo - Set File System Information
*
* Set information for a file system device
*/
extern unsigned far pascal DOSSETFSINFO (
unsigned, /* Drive number - 0=default, 1=A, etc */
unsigned, /* File system info required */
char far *, /* File system info buffer */
unsigned ); /* File system info buffer size */
/*** DosSetFileInfo - Set a File's Information
*
* Specifies information for a file
*/
extern unsigned far pascal DOSSETFILEINFO (
unsigned, /* File handle */
unsigned, /* File info data required */
char far *, /* File info buffer */
unsigned ); /* File info buffer size */
/*** DosSetFileMode - Set File Mode
*
* Change the mode (attribute) of the specified file
*/
extern unsigned far pascal DOSSETFILEMODE (
char far *, /* File path name */
unsigned, /* New attribute of file */
unsigned long ); /* Reserved (must be zero) */
/*** DosSetMaxFH - Set Maximum File Handles
*
* Defines the maximum number of file handles for the
* current process
*/
extern unsigned far pascal DOSSETMAXFH (
unsigned ); /* Number of file handles */
/*** DosSetVerify - Set/Reset Verify Switch
*
* Sets the verify switch
*/
extern unsigned far pascal DOSSETVERIFY (
unsigned ); /* New value of verify switch */
/*** DosWrite - Synchronous Write to a File
*
* Transfers the specified number of bytes from a buffer to
* the specified file, synchronously with respect to the
* requesting process's execution
*/
extern unsigned far pascal DOSWRITE (
unsigned, /* File handle */
char far *, /* Address of user buffer */
unsigned, /* Buffer length */
unsigned far * ); /* Bytes written */
/*** DosWriteAsync - Asynchronous Write to a File
*
* Transfers the specified number of bytes from a buffer to
* the specified file, asynchronously with respect to the
* requesting process's execution
*/
extern unsigned far pascal DOSWRITEASYNC (
unsigned, /* File handle */
unsigned long far *, /* Address of RAM semaphore */
unsigned far *, /* Address of I/O error return code */
char far *, /* Address of user buffer */
unsigned, /* Buffer length */
unsigned far * ); /* Bytes written */
/*** Hard Error Handling
*
* DosError
*/
/*** DosError - Enable Hard Error Processing
*
* Allows a CP/DOS process to receive hard error notification
* without generating a hard error signal. Hard errors generated
* under a process which has issued a DosError call are FAILed and
* the appropriate error code is returned.
*/
extern unsigned far pascal DOSERROR (
unsigned ); /* Action flag */
/*** Machine Exception Handling
*
* DosSetVector
*/
/*** DosSetVec - Establish a handler for an Exception
*
* Allows a process to register an address to be
* called when a 286 processor exception occurs.
*/
extern unsigned far pascal DOSSETVEC (
unsigned, /* Exception Vector */
void (far *)(void), /* Address of exception handler */
void (far * far *)(void) ); /* Address to store previous handler */
/*** Message Functions
*
* DosGetMessage
* DosInsMessage
* DosPutMessage
*/
/*** DosGetMessage - Return System Message With Variable Text
*
* Retrieves a message from the specified system message file
* and inserts variable information into the body of the message
*/
extern unsigned far pascal DOSGETMESSAGE (
char far * far *, /* Table of variables to insert */
unsigned, /* Number of variables */
char far *, /* Address of message buffer */
unsigned, /* Length of buffer */
unsigned, /* Number of the message */
char far *, /* Message file name */
unsigned far * ); /* Length of returned message */
/*** DosInsMessage - Insert Variable Text into Message
*
* Inserts variable text string information into the body ofa message.
*/
extern unsigned far pascal DOSINSMESSAGE (
char far * far *, /* Table of variables to insert */
unsigned, /* Number of variables */
char far *, /* Address of output buffer */
unsigned, /* Length of output buffer */
unsigned, /* Length of message */
char far *, /* Address of input string */
unsigned far * ); /* Length of returned message */
/*** DosPutMessage - Output Message Text to Indicated Handle
*
* Outputs a message in a buffer passed by a caller to the
* specified handle. The function formats the buffer to
* prevent words from wrapping if displayed to a screen.
*/
extern unsigned far pascal DOSPUTMESSAGE (
unsigned, /* Handle of output file/device */
unsigned, /* Length of message buffer */
char far * ); /* Message buffer */
/*** RAS Services
*
* DosSysTrace
*/
/*** DosSysTrace - Add a Trace record to the System Trace Buffer
*
* Allows a subsystem or system extension to add information to the
* System trace buffer. This call can only be made from protected
* mode.
*/
extern unsigned far pascal DOSSYSTRACE (
unsigned, /* Major trace event code (0-255) */
unsigned, /* Length of area to be recorded */
unsigned, /* Minor trace event code (0-FFFFH) */
char far * ); /* Pointer to area to be traced */
/*** Program Startup Conventions
*
* DosGetEnv
* DosGetVersion
*/
/*** DosGetEnv - Get the Address of Process' Environment String
*
* Return the address of the current process' environment string
*/
extern unsigned far pascal DOSGETENV (
unsigned far *, /* Address to place segment handle */
unsigned far * ); /* Address for command line start */
/*** DosGetVersion - Get DOS Version
*
* Returns the DOS version number
*/
extern unsigned far pascal DOSGETVERSION (
unsigned far * ); /* Address to put version number */
/*** World Trade Support
*
* All of these functions declarations have the string NLS in a comment.
* This is required in the generation of the Imports Library DOSCALLS.LIB
*
* DosGetCtryInfo
* DosSetCtryCode
* DosGetDBCSEv
* DosCaseMap
* DosGetSpecChar
* DosCollate
*/
/*** DosGetCtryInfo
*
* Returns the country dependant formatting information that
* resides in the NLSCDIT.SYS World Trade Support file
*/
extern unsigned far pascal DOSGETCTRYINFO ( /*<NLS>*/
unsigned, /* Length of data area provided */
unsigned long far *, /* Country code */
char far *, /* Memory buffer */
unsigned far * ); /* Length of returned data */
/*** DosSetCrtyCode
*
* Sets the current country code for the system
*/
extern unsigned far pascal DOSSETCTRYCODE ( /*<NLS>*/
unsigned long far * ); /* Country code */
/*** DosGetDBCSEv - Get the DBCS Environment Vector
*
* Used to obtain the DBCS environmental vector that resides in
* the NLSDBCS.SYS World Trade Support file.
*/
extern unsigned far pascal DOSGETDBCSEV ( /*<NLS>*/
unsigned, /* Length of data area provided */
unsigned long far *, /* Country code */
char far * ); /* Pointer to data area */
/*** DosCaseMap
*
* Used to perform case mapping on a string of binary values which
* represent ASCII characters.
*/
extern unsigned far pascal DOSCASEMAP ( /*<NLS>*/
unsigned, /* Length of string to case map */
unsigned long far *, /* Country code */
char far * ); /* Address of string of binary values */
/*** DosGetSpecChar
*
* Gets a list of special characters that are valid in file names, etc.
* The list corresponds to the byte values 128-255.
*/
extern unsigned far pascal DOSGETSPECCHAR ( /*<NLS>*/
unsigned, /* Length of data area provided */
unsigned long far *, /* Country Code */
unsigned char far * ); /* Data area */
/*** DosCollate
*
* Undocumented NLS feature
*/
extern unsigned far pascal DOSCOLLATE ( /*<NLS>*/
unsigned, /* Buffer Length */
unsigned long far *, /* Country Code */
char far * ); /* Buffer Address */
/* End of File */
|