Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_dosver</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_DOSVER
 Return the current DOS major and minor version as a string
------------------------------------------------------------------------------

 Syntax

      FT_DOSVER() -> <cVersion>

 Arguments

     None

 Returns

     A character string with the major version number first, a
     period ("."), then the minor version number (e.g., "3.30")

 Description


     FT_DOSVER() invokes DOS interrupt 21h, service 30 in order to
     return the current DOS version.  It does this by setting up
     an array corresponding to machine registers and then calling
     the toolkit function FT_INT86().

     It returns a character string corresponding to the DOS
     version, as follows:  The major version, a period ("."), then
     the minor version.


 Examples


      FUNCTION main()
      RETURN QOut( "Dos version: " + FT_DOSVER() )


 Source: DOSVER.PRG

 Author: Glenn Scott

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson