home *** CD-ROM | disk | FTP | other *** search
- ' Include file for using INTPLUS.BAS
- ' Definations from QB.BI
- '
- ' Define the type needed for INTERRUPT
- '
- TYPE RegType
- ax AS INTEGER
- bx AS INTEGER
- cx AS INTEGER
- dx AS INTEGER
- bp AS INTEGER
- si AS INTEGER
- di AS INTEGER
- flags AS INTEGER
- END TYPE
- '
- ' Define the type needed for INTERUPTX
- '
- TYPE RegTypeX
- ax AS INTEGER
- bx AS INTEGER
- cx AS INTEGER
- dx AS INTEGER
- bp AS INTEGER
- si AS INTEGER
- di AS INTEGER
- flags AS INTEGER
- ds AS INTEGER
- es AS INTEGER
- END TYPE
- '
- '
- '
- TYPE FileType
- DosJunk AS STRING * 21
- Attr AS STRING * 1
- Time AS INTEGER
- Date AS INTEGER
- Size AS LONG
- FileName AS STRING * 13
- END TYPE
-
- ' Generate a software interrupt, loading all but the segment registers
- '
- DECLARE SUB INTERRUPT (intnum AS INTEGER, inreg AS RegType, outreg AS RegType)
- '
- ' Generate a software interrupt, loading all registers
- '
- DECLARE SUB InterruptX (intnum AS INTEGER, inreg AS RegTypeX, outreg AS RegTypeX)
- '
- ' If you prefer to use QB.BI which has the similar definations as above:
- ' --- Delete above lines, use '$INCLUDE: 'qb.bi' instead.
-
- ' << Get current DOS version.>>
- DECLARE FUNCTION DosVer% ()
-
- ' << Get free space on specified drive >>
- DECLARE FUNCTION SpcDrive! (Drive%)
-
- ' << Change current default drive. Returns total logical drive Number. >>
- DECLARE FUNCTION UseDrive% (Drive%)
-
- ' << Get current default drive >>
- DECLARE FUNCTION DefDrive% ()
-
- ' << Plays sound for each key user pressed and returns the key >>
- DECLARE FUNCTION MuzKey$ ()
-
- ' << Generate a blinking bar till user press a key. >>
- DECLARE SUB BlinkBar (NumbChar%, char%)
-
- ' << Print text$ use DOS function. >>
- DECLARE SUB DosPrint (text$)
-
- ' << Stroll window in any mode using a DOS function >>
- DECLARE SUB RollWind (lines%, r1%, c1%, r2%, c2%, BackColor%)
-
- ' << Graphics screen dump to dot-matrix printer in mode 1 or 2 only >>
- DECLARE SUB PrGraph (ScrMode%, Lmargin%, c1%, r1%, c2%, r2%)
-
- ' << Get file information from disk and store in FileDta >>
- DECLARE SUB GetFileDta (Spec$, DtaBuf AS FileType, ErrCode%)
-
- ' << Get directory information>>
- DECLARE FUNCTION GetDirSpec$ (Drive%)
-
- '
- ' Define inregs and outregs for INTERRUPT use.
- ' Must also copy to the main module if you use this program
- ' as a secondary module.
-
- DIM SHARED InRegs AS RegType
- DIM SHARED outregs AS RegType
- DIM SHARED InRegsX AS RegTypeX
- DIM SHARED OutRegsX AS RegTypeX
- DIM SHARED FileDta AS FileType
-
-
-