public class DllVersionInfo
extends com.jniwrapper.Structure
Note: Not all libraries have the DllGetVersion
function, which is used by this class.
Therefore, loading of version information from such a library will fail with NoSuchFunctionException
thrown.
Modifier and Type | Field and Description |
---|---|
static int |
DLLVER_PLATFORM_NT
The DLL was built specifically for Microsoft Windows NT�.
|
static int |
DLLVER_PLATFORM_WINDOWS
The DLL was built for all Microsoft� Windows� platforms.
|
Constructor and Description |
---|
DllVersionInfo(java.lang.String libraryName)
Creates a new instance and automatically tries to load DLL version information from the
specified library.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
int |
getBuildNumber()
Returns the build number of the DLL.
|
int |
getMajorVersion()
Returns the major version of the DLL.
|
int |
getMinorVersion()
Returns the minor version of the DLL.
|
int |
getPlatformID()
Returns the platform identifier for which the DLL was built.
|
java.lang.String |
toString() |
acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
public static final int DLLVER_PLATFORM_WINDOWS
public static final int DLLVER_PLATFORM_NT
public DllVersionInfo(java.lang.String libraryName) throws com.jniwrapper.NoSuchFunctionException
libraryName
- the library name to load version info from.com.jniwrapper.NoSuchFunctionException
- if the specified library does not export DllGetVersion
.public int getMajorVersion()
public int getMinorVersion()
public int getBuildNumber()
public int getPlatformID()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class com.jniwrapper.Structure