Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getversion()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetVersion()
Return the version numbers of Windows and DOS
------------------------------------------------------------------------------

Syntax
GetVersion()   -->   nInfo

Arguments
None.

Returns
The version numbers are packed together and returned as a
number.

Description
This function can be used to find out which version of Windows
and/or DOS is in use.  (See the example.)

Example
nVer = GetVersion()
nWin = nVer % 65536
nDOS = int( nVer / 65536 )
nWinMajor = nWin % 256        // for Win 3.1:     3
nWinMinor = int( nWin / 256 ) // for Win 3.1:     10
nDOSMajor = int( nDOS / 256 ) // for DOS 5:  5
nDOSMinor = nDOS % 256        // for DOS 5:  0


See Also: C4WVersion()

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