com.jniwrapper.win32.system
Class SystemInfo
java.lang.Object
com.jniwrapper.Parameter
com.jniwrapper.Structure
com.jniwrapper.win32.system.SystemInfo
- All Implemented Interfaces:
- com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter
public class SystemInfo
- extends com.jniwrapper.Structure
This class provides information and methods relevant to SYSTEM_INFO
structure, and provides additional methods related to system information.
Fields inherited from class com.jniwrapper.Structure |
i |
Fields inherited from class com.jniwrapper.Parameter |
LICENSE_TYPE, V |
Constructor Summary |
SystemInfo()
Constructs and initializes a new instance with actual values representing
system information. |
SystemInfo(SystemInfo that)
|
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 |
SystemInfo
public SystemInfo()
- Constructs and initializes a new instance with actual values representing
system information.
SystemInfo
public SystemInfo(SystemInfo that)
getProcessorArchitecture
public long getProcessorArchitecture()
getPageSize
public long getPageSize()
getMinAppAddress
public long getMinAppAddress()
getMaxAppAddress
public long getMaxAppAddress()
getActiveProcessorMask
public long getActiveProcessorMask()
getNumberOfProcessors
public long getNumberOfProcessors()
getProcessorType
public long getProcessorType()
getAllocationGranularity
public long getAllocationGranularity()
getProcessorLevel
public long getProcessorLevel()
getProcessorRevision
public long getProcessorRevision()
clone
public java.lang.Object clone()
- Overrides:
clone
in class com.jniwrapper.Structure
getComputerName
public static java.lang.String getComputerName()
- Returns the name of the local computer.
- Returns:
- name of the computer.
getUserName
public static java.lang.String getUserName()
- Returns the user name logged into the system.
- Returns:
- name of the logged in user.