www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Windows Class: GetWindowVersion

Previous  Top  Next  


Prototype: (),String,PROC

 

ReturnsReturns windows version in x.x format

 

This method uses the GetVersionEx api function to retrieve the windows version information.  It returns the Major and Minor version numbers in a x.x format.  The method also fills in the MajorVersion, MinorVersion, VersionBuildNr, VersionPlatformID and VersionInformation properties of the ITWindowClass.  After a call to this method you can use these properties to get extensive version information about the operating system that your code is running on. 

 

For more information about the windows versions, please see http://msdn.microsoft.com/en-us/library/ms724451(VS.85).aspx and http://msdn.microsoft.com/en-us/library/ms724833(VS.85).aspx

 

Example:

ITW  ITWindowsClass

VS   CString(101)

Code

!...

VS = ITW.GetWindowVersion()

Message('Version:          ' & VS &|

       '|Major Version:    ' & ITW.MajorVersion &|

       '|Minor Version:    ' & ITW.MinorVersion &|

       '|Build Number:     ' & ITW.VersionBuildNr &|

       '|Platform ID:      ' & ITW.VersionPlatformID &|

       '|Version Info:     ' & ITW.VersionInformation, |

       'Version Information',ICON:Information)

 

On Windows XP Home, service pack 1, the results can be seen in the screenshot below.

 

Version Information

 

See also:

MajorVersion

MinorVersion

VersionPlatformID

VersionBuildNr

VersionInformation

IsVista

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getwindowversion_window.htm