|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.Parameter com.jniwrapper.Structure com.jniwrapper.win32.system.DllVersionInfo
public class DllVersionInfo
This class represents the DLLVERSIONINFO structure and provides the ability to load this structure from a specified library.
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.
Field Summary | |
---|---|
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. |
Fields inherited from class com.jniwrapper.Structure |
---|
i |
Fields inherited from class com.jniwrapper.Parameter |
---|
LICENSE_TYPE, V |
Constructor Summary | |
---|---|
DllVersionInfo(java.lang.String libraryName)
Creates a new instance and automatically tries to load DLL version information from the specified library. |
Method Summary | |
---|---|
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()
|
Methods inherited from class com.jniwrapper.Structure |
---|
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write |
Methods inherited from class com.jniwrapper.Parameter |
---|
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DLLVER_PLATFORM_WINDOWS
public static final int DLLVER_PLATFORM_NT
Constructor Detail |
---|
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
.Method Detail |
---|
public int getMajorVersion()
public int getMinorVersion()
public int getBuildNumber()
public int getPlatformID()
DLLVER_PLATFORM_WINDOWS
DLLVER_PLATFORM_NT
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class com.jniwrapper.Structure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |