Package com.sun.jna.platform.win32
Class VersionUtil
java.lang.Object
com.sun.jna.platform.win32.VersionUtil
Reads Windows Version info from files (the version details you can see by
 right-clicking and choosing properties)
- Author:
- mlfreeman[at]gmail.com
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic VerRsrc.VS_FIXEDFILEINFOgetFileVersionInfo(String filePath) Gets the file's version number info
- 
Constructor Details- 
VersionUtilpublic VersionUtil()
 
- 
- 
Method Details- 
getFileVersionInfoGets the file's version number info- Parameters:
- filePath- The path to the file
- Returns:
- The VS_FIXEDFILEINFO structure read from the file.
 Use the getFileVersionMajor(), getFileVersionMinor(), getFileVersionRevision(), and getFileVersionBuild()
- Throws:
- UnsupportedOperationException- if VerQueryValue fails to get version info from the file.
 
 
-