qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DosVersion Function
  Summary Details Example                                   Back
 
  Returns
 
    Word    Version of operating system
 
  Description
 
    The DosVersion function returns the version number for the
    operating system.
 
    DosVersion returns the major version number in the low byte of the
    return value. The minor version number is returned in the high
    byte. For instance, in the case of DOS version 3.31, the returned
    word has the number 3 in the low byte and the number 31 in the
    high byte.
 
    To get the contents of each byte, use the functions Hi, Lo,
    and Swap.