com.jniwrapper.win32.system
Class VersionInfo

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Structure
          extended by com.jniwrapper.win32.system.VersionInfo
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class VersionInfo
extends com.jniwrapper.Structure

This provides version information about underlying Windows platform.


Field Summary
static int VER_NT_WORKSTATION
          Windows Vista, Windows XP Professional, Windows XP Home Edition, or Windows 2000 Professional.
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.
 
Fields inherited from class com.jniwrapper.Structure
i
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
VersionInfo()
           
VersionInfo(VersionInfo that)
           
 
Method Summary
 java.lang.Object clone()
           
 long getBuildNumber()
           
 long getMajor()
           
 long getMinor()
           
 long getPlatformId()
          Returns operating system platform, which can be one of the VER_PLATFORM_XXX values.
 long getProductType()
           
 java.lang.String getServicePack()
          Returns additional version information string.
 boolean isNT()
           
 boolean isWin2003()
           
 boolean isWin2008()
           
 boolean isWin2k()
           
 boolean isWin7()
           
 boolean isWin9x()
           
 boolean isWinMe()
           
 boolean isWinVista()
           
 boolean isWinXP()
           
 
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
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, 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

VER_NT_WORKSTATION

public static final int VER_NT_WORKSTATION
Windows Vista, Windows XP Professional, Windows XP Home Edition, or Windows 2000 Professional.

See Also:
Constant Field Values
Constructor Detail

VersionInfo

public VersionInfo()

VersionInfo

public VersionInfo(VersionInfo that)
Method Detail

getBuildNumber

public long getBuildNumber()

getMajor

public long getMajor()

getMinor

public long getMinor()

getProductType

public long getProductType()

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()

isWinXP

public boolean isWinXP()

isWin2003

public boolean isWin2003()

isWinVista

public boolean isWinVista()

isWin2008

public boolean isWin2008()

isWin7

public boolean isWin7()

clone

public java.lang.Object clone()
Overrides:
clone in class com.jniwrapper.Structure