Location: Symbol Reference > Classes > TJwWindowsVersion Class > TJwWindowsVersion Methods > TJwWindowsVersion.CheckWindowsVersion Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwWindowsVersion.CheckWindowsVersion Method
Pascal
class procedure CheckWindowsVersion(const iWinVer: integer; bOrHigher: boolean; SourceProc: TJwString; SourceClass: TJwString; SourceFile: TJwString; SourcePos: Cardinal); virtual;
Parameters 
Description 
const iWinVer: integer 
contains a cOsXXXXX constant that is defined in JwsclConstants. If iWinVer is not between the bounds of sOSVerString the windows version will be checked though, but on exception the supplied cOsXXXX constant will be presented as "Unknown System".  
bOrHigher: boolean 
If true the exception will only be raised if the current system version is smaller than the given on in iWinVer; otherwise the system version must be exactly the given one in iWinVer  
SourceProc: TJwString 
contains the caller method name to be displayed in the exception message  
SourceClass: TJwString 
contains the caller class name to be displayed in the exception message  
SourceFile: TJwString 
contains the caller file name to be displayed in the exception message  
SourcePos: Cardinal 
contains the caller source position to be displayed in the exception message 

CheckWindowsVersion raises an EJwsclUnsupportedWindowsVersionException exception if the current windows version does not correspond to the required one in the parameters. 

 

Exceptions 
Description 
will be raised if the following expression is false : ((fWindowsType = iWinVer) or (bOrHigher and (fWindowsType > iWinVer))) 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!