home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
PASCAL
/
MTASK211
/
MTASK.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-03-30
|
2KB
|
51 lines
{
*****************************************************************************
MTASK.PAS ... General-purpose multitasker interface code
Release 2.01 (March 30, 1991)
Written by : David Begley
*****************************************************************************
**************************************
Turbo Pascal 4/5/5.5/6 - TPU Unit
**************************************
Values returned by DetectMultitasker correspond to:
0 no known multitasker found
1 generic TopView environment
2 generic TAME-controlled
3 DESQview
4 MultiDOS II
5 MultiDOS III
6 DoubleDOS
7 Windows 2.xx or lower
8 Windows 3.xx (or above?)
9 OS/2's DOS Compatibility Box
10 Concurrent DOS
11 PC-MOS/386
12 MultiLink
If DetectMultitasker is not run first, then
when TaskSwitch is called, it will automatically
execute DetectMultitasker to automate the time-
slicing process by selecting the appropriate code
depending on the multitasker active.
}
unit MTask;
interface
function DetectMultitasker : byte;
procedure TaskSwitch;
implementation
{$L MTask}
function DetectMultitasker : byte; external;
procedure TaskSwitch; external;
end.