Package com.jgcomptech.tools
Class NativeMethods
- java.lang.Object
-
- com.jgcomptech.tools.NativeMethods
-
public final class NativeMethods extends java.lang.Object
Contains methods that allow access to Windows C++ dll files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NativeMethods.Kernel32
Interface object to hold all the Kernel32 Instances.static interface
NativeMethods.Secur32
Interface object to hold all the Secur32 Instances.static interface
NativeMethods.Shell32
Interface object to hold all the Shell32 Instances.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getProductInfo(int major, int minor)
Generates a new instance of the ProductInfo object.static boolean
getSystemMetrics(int nIndex)
Checks if a system metrics value is true.static boolean
getVersionInfoFailed(com.sun.jna.platform.win32.WinNT.OSVERSIONINFOEX osVersionInfo)
Generates a new instance of the VersionInfo object.
-
-
-
Method Detail
-
getVersionInfoFailed
public static boolean getVersionInfoFailed(com.sun.jna.platform.win32.WinNT.OSVERSIONINFOEX osVersionInfo)
Generates a new instance of the VersionInfo object.- Parameters:
osVersionInfo
- Empty VersionInfo object to fill- Returns:
- True if an error occurs
-
getSystemMetrics
public static boolean getSystemMetrics(int nIndex)
Checks if a system metrics value is true.- Parameters:
nIndex
- Value to check for- Returns:
- False if value is false
-
getProductInfo
public static int getProductInfo(int major, int minor)
Generates a new instance of the ProductInfo object.- Parameters:
major
- versionminor
- version- Returns:
- Product Info as an int
-
-