Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - osver() return dos version numbers http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 osver()             Return DOS version numbers
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   proc osver extern
   param uint uVersionMajor, ;
         uint uVersionMinor

 Arguments
   uVersionMajor contains the major DOS version number.
   uVersionMinor contains the minor DOS version number.

 Return
   None.

 Description
   The osver() procedure returns the current DOS version in its parameters
   passed by reference.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_osver
   // Print the DOS version number.
   vardef
      uint uMajor, uMinor
   enddef
   osver( uMajor, uMinor )
   ? uMajor
   ? uMinor
   endproc

   proc main
   Test_osver()
   endproc

See Also: os()

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