RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.CheckWin32Version Function

Check to see if you are running on a specific level (or higher) of the Windows 32 bit Operating System.

Pascal
function CheckWin32Version(AMajor: Integer; AMinor: Integer = 0): Boolean;
C++
Boolean CheckWin32Version(int AMajor, int AMinor = 0);

SysUtils

The Windows Operating System Major.Minor version number is compared with the passed AMajor and AMinor values. AMinor defaults to 0 if not supplied. 

CheckWin32Version Returns true if the Windows OS Major.Minor version number is >= the passed AMajor.AMinor value.

Note: Prior to Delphi 7, this routine returned a different result.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!