home *** CD-ROM | disk | FTP | other *** search
- Unit ABSDDOS;
- {
- DoubleDOS Routines for TP 6.0
-
- Copyright (c) 1992 A.B.S. - ALL RIGHTS RESERVED
-
- 1.00
- 1.10 Minor Optimizations
- }
-
- {$A+,B-,D-,F+,I-,N-,O-,R-,S-,V-}
-
- Interface
-
- Const
- ABSDDOSVer = '1.10';
-
- Function Check4DDOS : Boolean;
- {
- Returns True if DoubleDOS is Detected
- }
-
- Function DDOS_Visible : Boolean;
- {
- Returns True if Current Task is DoubleDOS Visible Task
- Returns False if Current Task is DoubleDOS Invisible Task
- }
-
- Procedure DDOS_SwitchTasks;
- {
- Swaps the Visible and Invisible Tasks
- }
-
- Procedure DDOS_SuspendInvisible;
- {
- Suspends the Invisible Task
- }
-
- Procedure DDOS_ResumeInvisible;
- {
- Resumes the Invisible Task
- }
-
- Procedure DDOS_KillOtherTask;
- {
- Kills the other task
- }
-
- Procedure DDOS_ClearCurrentKeyBuf;
- {
- Clears the Keyboard Buffer for the Current Task
- }
-
- Function DDOS_SendCharOther(C : Char) : Boolean;
- {
- Sends a Character to the Keyboard Buffer of the Other Task
- }
-
- Function DDOS_SendCharCurrent(C : Char) : Boolean;
- {
- Sends a Character to the Keyboard Buffer of the Current Task
- }
-
- Procedure DDOS_TimeSlices(Slices : Byte);
- {
- Gives up Slices number of Time Slices
- }
-
- Procedure DDOS_TimeSlice;
- {
- Gives up one time slice
- }
-
- Procedure DDOS_PreventSwitching;
- {
- Prevents Task Switching
- }
-
- Procedure DDOS_ResumeSwitching;
- {
- Resumes Task Switching
- }
-
- Function DDOS_OtherProgramStatus : Byte;
- {
- Returns the Status of the Other Task:
- 0 - no program in other partition
- 1 - program in other partition is running
- 2 - program in other partition is suspended
- }
-
- Procedure DDOS_TimeShareSet(Flag : Byte);
- {
- Sets the Time Sharing Status:
- 0 - visible program gets 70% invisible gets 30% (default)
- 1 - visible program gets 50% invisible gets 50% of time
- 2 - visible program gets 30% invisible gets 70% of time
- 3 - top program gets 70% bottom program gets 30% of time
- 4 - top program gets 30% bottom program gets 70% of time
- }
-
- Function DDOS_TimeShareStatus : Byte;
- {
- Returns the Current Time Sharing Status, as Listed Above
- }
-
- Function DDOS_SetKeyFlags(Task : Byte; Flags : Word) : Word;
- {
- Task = 0 for current, 1 for other
-
- Sets the Keyboard Control Flags: (bit set enables, cleared disables)
- bit 0: menu
- bit 1: exchange
- bit 2: entire keyboard enable/disable
- bit 3: Ctrl-C
- bit 4: Ctrl-PrtSc
- bit 5: Alt/Erase
- bit 6: Ctrl-Break
- bit 7: Ctrl-NumLock
- bit 8: shift-PrtSc
- bit 9-13: undefined
- bit 14: cancel key (clear keyboard buffer)
- bit 15: suspend key
-
- Returns - Previous Flags
- }
-
- Function DDOS_VirtualBuffer : Word;
- {
- Returns the Segment of the Display Buffer. This can change if multitasking
- is enabled.
- }
-