com.jniwrapper.win32
Class VersionInfo

java.lang.Object
  |
  +--com.jniwrapper.Parameter
        |
        +--com.jniwrapper.Structure
              |
              +--com.jniwrapper.win32.VersionInfo

public class VersionInfo
extends Structure

This provides version information about underlying Windows platform.


Field Summary
static int VER_PLATFORM_WIN32_CE
          Windows CE
static int VER_PLATFORM_WIN32_NT
          Windows NT, Windows 2000, Windows XP, or Windows .NET Server 2003 family.
static int VER_PLATFORM_WIN32_WINDOWS
          Windows 95, Windows 98, or Windows Me.
static int VER_PLATFORM_WIN32s
          Win32s on Windows 3.1.
 
Constructor Summary
VersionInfo()
           
 
Method Summary
 long getBuildNumber()
           
 long getMajor()
           
 long getMinor()
           
 long getPlatformId()
          Returns operating system platform, which can be one of the VER_PLATFORM_XXX values.
 java.lang.String getServicePack()
          Returns additional version information string.
 boolean isNT()
           
 boolean isWin2k()
           
 boolean isWin9x()
           
 boolean isWinMe()
           
 
Methods inherited from class com.jniwrapper.Structure
acceptIOPerformer, addMembers, clone, computeLength, getAlignmentRequirement, getLength, getMember, getMembers, init, init, pop, push, read, setDataBuffer, toString, write
 
Methods inherited from class com.jniwrapper.Parameter
asReturnValue, equals, getAlignedLength, getDataBuffer, getDataBufferOffset, indent, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VER_PLATFORM_WIN32s

public static final int VER_PLATFORM_WIN32s
Win32s on Windows 3.1.

See Also:
Constant Field Values

VER_PLATFORM_WIN32_WINDOWS

public static final int VER_PLATFORM_WIN32_WINDOWS
Windows 95, Windows 98, or Windows Me.

See Also:
Constant Field Values

VER_PLATFORM_WIN32_NT

public static final int VER_PLATFORM_WIN32_NT
Windows NT, Windows 2000, Windows XP, or Windows .NET Server 2003 family.

See Also:
Constant Field Values

VER_PLATFORM_WIN32_CE

public static final int VER_PLATFORM_WIN32_CE
Windows CE

See Also:
Constant Field Values
Constructor Detail

VersionInfo

public VersionInfo()
Method Detail

getBuildNumber

public long getBuildNumber()

getMajor

public long getMajor()

getMinor

public long getMinor()

getPlatformId

public long getPlatformId()
Returns operating system platform, which can be one of the VER_PLATFORM_XXX values.


getServicePack

public java.lang.String getServicePack()
Returns additional version information string. For Windows NT/2000/XP this string represents Service Pack, or is empty if no Service Pack has been installed. For Windows 95/98/Me the result indicates additional version information. For example, " C" indicates Windows 95 OSR2 and " A" indicates Windows 98 Second Edition.


isNT

public boolean isNT()

isWin9x

public boolean isWin9x()

isWin2k

public boolean isWin2k()

isWinMe

public boolean isWinMe()