Package com.jgcomptech.tools
Class NativeMethods
- java.lang.Object
-
- com.jgcomptech.tools.NativeMethods
-
public final class NativeMethods extends java.lang.ObjectContains methods that allow access to Windows C++ dll files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNativeMethods.Kernel32Interface object to hold all the Kernel32 Instances.static interfaceNativeMethods.Secur32Interface object to hold all the Secur32 Instances.static interfaceNativeMethods.Shell32Interface object to hold all the Shell32 Instances.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetProductInfo(int major, int minor)Generates a new instance of the ProductInfo object.static booleangetSystemMetrics(int nIndex)Checks if a system metrics value is true.static booleangetVersionInfoFailed(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
-
-