home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
PASCAL
/
INFOP125.ZIP
/
INFOPLUS.DOC
< prev
next >
Wrap
Text File
|
1990-08-10
|
20KB
|
345 lines
!! INFOPLUS
!!
!! Version 1.25 Released to the public domain.
!!
!! By Andrew Rossmann, 8/10/90
!!
!! Originally based on Steve Grant's Public Domain SYSID 4.4.
!!
!! All lines that begin with ** are Steve Grant's original documentation.
!! All lines that begin with !! are mine.
!!
!! Usage: [d:][path]INFOPLUS
**
** A system description for DOS-based PC/XT/AT- and PS/2-class machines.
!! INFOPLUS generates 18 screens of information about the host system and
** runs under DOS versions 3.0 and later.
**
!! My primary sourcesofideas in INFOPLUS were Ray Duncans "Advanced MS-DOS"
** and Terry Dettman's "DOS Programmer's Reference." The ideas of Prakash
** Chandra,Terje Mathisen,Bob Smith, and others appear in various places.
!! Also James Howard, John Levine.
**
!! Some of the techniques INFOPLUS uses are not documented or officially
** supported by either IBM or Microsoft. Where possible I have followed
** the undocumented routine with a comment describing my source for the
** technique.
**
!! INFOPLUS.PAS - Main file source code
!! PAGE_xx.INC - Each of the pages
!! INFOPLUS.ASM - assembly language procedures
!! INFOPLUS.PIF - Windows 3 Program Information File
!! INFOPLUS.ICO - Icon for Windows 3 Program Manager
!! Using INFOPLUS is easy. Just use the PGUP and PGDN keys to move from page
!! to page. HOME and END will move to the first and last pages, respectively.
!! If you hit ENTER, you can then type in the page you want to go to. Hit ESC
!! to end the program. Some pages won't fit all on one screen, for that you hit
!! the DOWN ARROW key to get more information. If you wish a hard copy, just
!! hit SHIFT-PrtSc or SHIFT-PRINT or PrintScrn, depending on your keyboard.
!!
!! WINDOWS 3.0 NOTES!!!
!! You can add INFOPLUS to the Program Manager. Open the group that you
!! want to put INFOPLUS in. Select File, New, Program item. Use whatever
!! you want for the Description. For Command line, enter INFOPLUS.EXE,
!! preceed with a drive and directory if not on your PATH. If you hit
!! ENTER, and end up at the screen, select File, Properties. Hit Change
!! Icon, and for the file name, use INFOPLUS.ICO. Then OK everything.
!! On page 3, you might get a message that the program needs to run under
!! standard mode. This is due to the check for a VCPI driver, and no harm
!! comes from this. This will only occur under 386 enhanced mode.
!!
!! Changes by Andrew Rossmann v 1.25 (8/10/90)
!! Page 2: The CPU and NDP detection has been overhauled. First, the
!! tests are now run seperately, making it easier to tell which
!! part is causing problems. The CPU detection code has beeen
!! modified AGAIN, this time from code sent to me by John Levine,
!! who said he got it from the Intel '486 manual. Also, the NDP
!! detection has been modified to reduce the chance of getting an
!! 'unknown coprocessor' message. Test8087 is no longer used.
!! INFOPLUS.ASM: New coding in the CPU and NDP detections, increasing
!! reliability, and allowing seperate testing. This new
!! code should also detect the 486!!
!! Put some comments in the ATIINFO routine.
!!
!!
!! Changes by Andrew Rossmann v 1.21 (8/5/90)
!! Page 2: Slightly modified the CPU detection to disable interrupts
!! during the 286/386 tests. Hopefully, this will fix the
!! ongoing problems.
!! Page 6: The information returned when an ATI video board is detected
!! is now correct. NOTE: The monitor INFOPLUS says may not be
!! exactly what you have the board set to. There are only 16
!! possible selections, and many of the 'models' actually use
!! the same settings. I can only use the information that ATI
!! gives with the board. They probably have more information
!! (such as 8/16 bit mode) buried somewhere that they won't
!! release.
!!
!!
!! Changes by Andrew Rossmann v 1.20 (7/29/90)
!! Page 1: Thanks to information posted to USENET by James Howard of
!! Dell Computer Corporation, most later model Dell's will be
!! directly identified.
!! The adapter ROM scan now searches at 2K boundaries. This will
!! hopefully detect what QEMM calls 'split roms.'
!! Page 2: Due to continued problems with the CPU detection locking up
!! computers, I am now using the original detection code. This
!! uses differences in the Flags registers to distinguish a 386
!! from a 286. The 486 will not be directly identified. A side
!! benefit is that you can now run safely under Windows 3
!! enhanced mode.
!! The coprocessor detection code sometimes thinks you have one
!! when you don't. This gives an 'unknown coprocessor - FF'
!! message. Now, if that happens, I check to see if Turbo Pascal
!! found one (the Test8087 variable.) If it didn't find one, I
!! now say 'none.'
!! Page 9: The file handle count should now be more accurate. I search
!! where DOS keeps it's FILES lists, and get my counts that way.
!! Page 16:Tells whether an extended boot signature is found (DOS 4.)
!! If extended boot signature, tell the physical drive number
!! (hard disks start at 128, floppies at 0.)
!! INFOPLUS.ASM: Commented out 'invalid opcode' CPU detection method, and
!! re-enabled the original detection code. This results in
!! the inablity to detect the '486.
!!
!!
!! Changes by Andrew Rossmann v 1.10 (7/20/90)
!! Page 1: ROM search now displays size of ROMs found.
!! Page 3: If an XMS driver is found, various information about it
!! is now displayed.
!! All EMS memory is now given in K instead of pages.
!! Page 6: Added detection of Paradise, Video 7, and ATI VGA boards. Some
!! additional information and the correct memory size is given.
!! Page 7: Tell whether the Mouse driver is shadowing the EGA registers.
!! Page 10:A hopefully generic Network check was added.
!! The CDROM detection might work better. Also displays what
!! drives are actually CDROM.
!! Page 15:Now only search for drives $80 to $99. Going beyond that
!! caused exception errors under EMM386.SYS (the Win 3 version.)
!! Page 17:Corrected a bug that caused part of the screen to scroll
!! when running under Desqview (I hope.)
!! INFOPLUS.ASM: Added new LONGCALL routine. This is needed for the XMS
!! checking. LONGCALL calls a routine using a FAR CALL instead of
!! the more normal INT functions.
!! Since TASM 2.0 supports the 486, the XADD macro is now
!! commented out.
!!
!!
!! Changes by Andrew Rossmann v 1.0 (6/25/90)
!! All: Due to confusions with Steve Grant continuing to release
!! new versions, I am renaming my version to INFOPLUS.
!! The documentation for SYSID 4.4 states that the source and
!! object code are public domain. SG's newer versions are
!! copywritten, and no longer contain source code. All
!! of my versions WILL ALWAYS continue to contain the source
!! code, and WILL ALWAYS be public domain!! Like FRACTINT, I
!! hope for this program to slowly grow as people add their own
!! ideas.
!! All: Changed colors to blue background, with text of LightGray
!! and LightCyan.
!! You now press the DOWN ARROW key to continue a long screen.
!! This lets you move to another page without looking at all
!! the information.
!! A title telling what is on the page appears at the bottom.
!! Page 0: New page, shows contents of each page. HOME always goes here.
!! Also, this eliminates the chance that scanning the ROM could
!! lock up the program, preventing its use. If that happens, you
!! can just go to another page directly.
!! Page 2: The V20/V30 should be correctly detected.
!! Page 3: Added detection of XMS, DPMI (untested) and VCPI.
!! DPMI detection is tentative, since it's still in the formative
!! stages. Windows 3.0 is the first program to support it.
!! Under EMS 4, handle names will be listed (not all programs
!! give their handles names.)
!! Page 9: Added count of FCB's (File Control Blocks.)
!! Added count of Dos STACKS (DOS 4 only.)
!! Page 10:Added detection of DOS (should always be YES!!)
!! Added detection of JP Software's 4DOS (and other info on it.)
!! Added detection of CD-ROM extensions.
!! Page 13:For default drive, tells what type it is, if it is removable,
!! has doorlock detection, is JOIN'd, or SUBST'd (and shows the
!! true path.)
!! Page 17:New page, just thanks you for using INFOPLUS, and gives
!! some places I can be reached.
!!
!!
!! The following are my versions of SYSID. It's very likely that some
!! of these version numbers may overlap Steve Grant's!!
!!
!! Changes by Andrew Rossmann (5/28/90) v 5.1
!! Page 2: Corrected bug in 386 detection code actually in SYSID.ASM.
!! This bug could cause lock-ups or exception errors on
!! 386, 386SX, or 486 systems.
!!
!! Changes by Andrew Rossmann (1/19/90) v 5.0
!! Page 9: Added buffer count (and read-ahead) for DOS 4!
!! Page 15:Added several more partition types.
!!
!!
!! Changes by Andrew Rossmann (12/31/89) v 4.8
!! Page 2: Added recognition (I hope) of the '486. This involved
!! replacing the code that detects the 286/386 with newer
!! code by Robert Collins.
!! Page 5: Added the extended modes of the Paradise VGA boards.
!! (Considering that the CRT unit forces the screen into a
!! standard text mode at startup, most of the entries are
!! sort of useless right now.)
!! Page 15:Added Disk Manager, Speedstore, Split (?), and GB (?) to
!! the recognized partition types.
!! Corrected some erroneous numbers in the starting cylinder
!! and sector.
!!
!! Changes by Andrew Rossmann (9/30/89) v 4.7
!! All: Re-compiled under Turbo Pascal 5.5.
!! Page 9: Reduced the number of files to 255 due to a potential bug
!! under DOS 3.30.
!! Page 10:Added a few extra programs to the multiplex listings. Some of
!! these will probably only be recognized under DOS 4 or newer.
!!
!! Changes by Andrew Rossmann (7/2/89) v 4.6
!! Page 9: Under DOS 3.30 or newer, use a new DOS function call to set
!! up space for up to 256 files. The number of total files
!! available will now be closer to the FILES= setting, instead
!! of being stuck at the 20 that is the default size.
!!
!! Changes by Andrew Rossmann (6/7/89)
!! Changed the version to 4.5.
!! ALL: Pressing <ENTER> will bring up a 'Page no.=>' prompt. You
!! can then type in the number of the page you want to jump to.
!! Page 9: Added OEM (Original Equipment Manufacturer) Serial number to
!! list. Not everyone uses this. Put file handle table sizes
!! on one line.
!! Changed current time to conform to the format of the current
!! country code, including 12-hour format.
!! Page16: Corrected more DOS4 errors in the Dos Disk Parameter Block
!! listings. It seems the number of sectors per FAT has grown
!! from 1 byte to 1 word. This pushed the sector # of directory,
!! address of device header, media descriptor, access check,
!! and next block pointer up 1 byte.
!!
!! Changes by Andrew Rossmann (6/3/89):
!! I upped the letter to 'V'.
!! Page 9: Added 'Boot disk was'. This will display which disk drive
!! was used to boot the computer under DOS 4. Under DOS 3,
!! this will always display (unknown).
!! I changed the file used to figure out the number of available
!! file handles from COMMAND.COM to the program itself. This is
!! because COMMAND.COM may not always be available (especially
!! if you are on floppies.) It's more likely the program itself
!! will be available. This uses a DOS 3 or 4 feature that lets
!! a program know it's full pathname. (ParamStr(0) in TP5).
!! Page10: Added extra information about the APPEND command under DOS
!! 4. Will display which switches are active, and the path
!! currently in use.
!! Page15: Added several parition types, including 'Big DOS-16' (DOS 4
!! partitions >32M), XENIX, NOVELL, PCIX, CP/M, and BBT.
!! Page16: Modified the DISKREAD portion of SYSID.ASM for use under
!! DOS 4. Will now correctly read disks with partitions >32M.
!! Disks >32M under Compaq DOS 3.31 will probably not work.
!!
!! Changes by Andrew Rossmann (5/29/89):
!! I named this version 4.44U for 'U'pdated. Don't know of any
!! newer versions.
!! Page 1: The search for the Copyright message in ROM has been
!! expanded to start at F000:C000 instead of F000:E000. This
!! test had returned nothing on my Tandy 1000SX. This may
!! cause longer waits on other machines. NOTE: the CPUID
!! routine does not detect my V20. It returns an unknown type.
!! I have no idea why, and I would like to know why. (I also
!! have an 8087 if that makes any difference.)
!! Page 7: If you had a mouse, some information about your keyboard
!! ended up scrolling off the screen. Some related info
!! has been put on 1 line to prevent scrolling.
!! Page 9: The method to find the number of available file handles
!! had a minor problem. It used the COMSPEC environment
!! variable to continuously open COMMAND.COM until an error
!! occurred, presumably a 'Too Many open files' error. BUT,
!! the files were opened as untyped files, which have a
!! default FileMode = 2 (read/write). If your copy of
!! COMMAND.COM was read-only (for virus protection), an
!! error 5 (Access denied) occured, and 0 available handles
!! was shown. This is fixed by setting FileMode:=0 (Read only)
!! before opening files.
!! The printer echo status is supported under DOS 4.
!! The number of buffers is still unknown as I am unable to
!! figure it out. Since DOS 4 can have a huge number of
!! buffers, and even put them in EMS memory, finding out their
!! count may be difficult.
!! Page13: Information about a floppy now supports the parameters
!! for 3.5" drives, and displays number of tracks.
!! Page16: Now supports DOS 4.0 and Compaq DOS 3.31 with partitions
!! >32M (maybe others if they follow the same format.)
!! If you have a disk formatted under DOS 4, the boot
!! record section will display the volume label, serial number,
!! and FAT type of the disk.
!!
**
** Known bugs:
** 1) Page 2: The CPU test for interrupts of multi-prefix string
** instructions is reliable only on machines whose clock speeds are
** less than about 15 MHz. The 8086 and 8088 are the only CPU's that
** don't handle such interrupts correctly, however, and they aren't
** (to my knowledge) ever run at anything like 15 MHz. (This 15 MHz
** limit assumes that the timer tick interrupt occurs at the standard
** rate of 18.2 Hz. SYSID could check that, too, I suppose.)
** 2) Page 5: The description of foreground color will not mention the
** blinking attribute, even if it was enabled before you invoked
** SYSID.
** 3) Page 10: SYSID used to report incorrectly the statuses of some of
** the executable files which use the "multiplex interrupt" (INT
** 2FH). I have commented these status checks out of the source
** code, determined to do battle with them another day. Can anyone
** supply the correct INT 2FH functions for these files? Or are some
** of them red herrings that simply check INT 2FH to see if *other*
** files have been loaded (e.g. APPEND/ASSIGN)?
** 4) The error beep sometimes fails to sound when you press PgDn
** while on the last page (or PgUp while on the first page). I have no
** idea why. (!!corrected in version 4.5)
**
** Both the source and object code of SYSID are hereby released into the
** public domain. Neither version carries any warranty, expressed or
** implied, of merchantability or fitness for a particular purpose.
**
** Comments, suggestions, and questions may be addressed to:
** BIXMail: sjgrant
** CompuServe: 71101,706
**
** Steve Grant
** Long Beach, CA
** January 13, 1989
!!
!!
!!
!! My computer is a Gateway 2000 386/25 running MS-DOS 4.01, Windows 3,
!! an ESDI drive, and an ATI VGA Wonder card.
!! Compiled under Turbo Pascal 5.5 and Turbo Assembler 2.00.
!! Much of the additional info came from Ray Duncan's "Advanced MSDOS
!! Programming" second edition (a must get book for anyone interested
!! in low-level stuff.) Also, additional information on the DOS 4 boot
!! sector format came from "The Norton Troubleshooter." A book that
!! comes with The Norton Utilities 4.5. Even more information comes from
!! Ralf Brown's interrupt list, which lists hundreds of goodies. It's
!! available via BBS's, and resides on SIMTEL20 and many other public
!! access UNIX sites.
!! Additional information on XMS and DPMI came from the book 'Extending
!! DOS' by Ray Duncan (and others.)
!! Information on additional partition values came from numerous people
!! of which I never wrote down their names!!
!!
!! Andrew Rossmann
!! Wheeling, IL
!!
!!
!! Central Command, 1-708-359-9346 (1200/2400)
!! 1-708-359-9396 (HST 14.4)
!! DDSW1 BBS, 1-708-808-7300 (6 lines),
!! 1-708-808-7306 (Telebit PEP only!!)
!! Igloo BBS, 1-708-272-5912 or 1-708-272-5917 (Telebit PEP)
!! RCS Defender BBS, 1-708-390-6603
!!
!! Unix Mail:
!! andyross@ddsw1.MCS.COM, or <well-connected>!ddsw1!andyross
!! -or-
!! andyross@igloo.UUCP