home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9112 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.8 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!canterbury.ac.nz!phys169
  2. Newsgroups: comp.os.msdos.programmer
  3. Subject: Re: OEM String
  4. Message-ID: <1992Sep7.153532.694@csc.canterbury.ac.nz>
  5. From: phys169@csc.canterbury.ac.nz
  6. Date: 7 Sep 92 15:35:32 +1200
  7. References: <17rastINNb02@matt.ksu.ksu.edu>
  8. Organization: University of Canterbury, Christchurch, New Zealand
  9. Lines: 48
  10.  
  11. In article <17rastINNb02@matt.ksu.ksu.edu>, danodom@matt.ksu.ksu.edu (Dan Odom) writes:
  12. > How do I figure out what the "OEM string" is in MS-DOS 5.0?  Neither of
  13. > the "standard" services for discovering version stuff (30h and 3306h)
  14. > returns it, and I can't find a reference to it anywhere in the programmer's
  15. > reference.  
  16.  
  17. Well, there is a field at the start of diskettes (8 bytes starting with the 4th
  18. byte) that may contain the name of the OEM disk name.  Some OEM diskettes still
  19. call it IBM or sometimes MSDOS, though.  But there is also the OEM number, for
  20. versions of DOS that aren't generic MSDOS, returned by the Get Version function
  21. call... if you want to convert that number into a name look at Ralf Brown's
  22. interrupt list for a few (I had a list somewhere, that included a few more,
  23. like Data General's version of MSDOS for the DG10, and something like VCCP
  24. DOS). OEM versions of DOS isn't common since DOS 3. DRDOS doesn't use a special
  25. OEM number (although there are OEM versions of DRDOS, e.g. RDK); you can tell
  26. if you are running under DRDOS either by looking at the environment variable
  27. "OS" or by interrupt 21h/AX=4412h, as explained in Ralf's interrupt list
  28. (available by anonymous ftp from all sorts of places)....
  29.  
  30. ----------214412-----------------------------
  31. INT 21 - DR-DOS 5.0 - DETERMINE DOS TYPE
  32.         AX = 4412h
  33.         CF set
  34. Return: CF set if not DR DOS
  35.             AX = error code (see AH=59h)
  36.         CF clear if DR DOS
  37.             DX = AX = version code
  38.                 1060h = ???
  39.                 1063h = DR-DOS 3.41 ???
  40.                 1065h = DR-DOS 5.0
  41.                 1067h = DR-DOS 6.0
  42. Note:   this call is identical to AX=4452h
  43. SeeAlso: AX=4452h
  44.  
  45.  
  46. > Also, is there a DR-DOS programmer's reference?  Is it worth getting or 
  47. > should I use the MS one?
  48.  
  49. There is, apparently.  All of the interesting extensions seem to be in Ralf's
  50. interrupt list and, as Frotz posted recently, the Novell/DRDOS people are
  51. working on making sure it is up to date.  Basically, though, if you look at the
  52. interrupts for MSDOS 3.3 you won't be far out - there are a few added to find
  53. and set the extra access rights (actually Multi-user DOS's system with Group
  54. and Owner, I think it was, ignored). There are a few calls to device drivers
  55. that come with SuperStor and SuperPCK that might also be interesting, again a
  56. lot seem to be documented in Ralf's free interrupt list. 
  57.  
  58. Mark Aitchison, University of Canterbury, New Zealand.
  59.