@Structure.FieldOrder(value={"relationship","size"}) public abstract static class WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX extends Structure
Kernel32.GetLogicalProcessorInformationEx(int, com.sun.jna.Pointer, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function uses this structure.
The native structure contains a union, which is mapped to JNA as subclasses.
Structure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
Modifier and Type | Field and Description |
---|---|
int |
relationship
The type of relationship between the logical processors.
|
int |
size
The size of the structure, in bytes.
|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Modifier | Constructor and Description |
---|---|
|
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX() |
protected |
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX(Pointer memory)
This constructor should only be called by a subclass to ensure memory
is properly allocated to the subclass fields.
|
Modifier and Type | Method and Description |
---|---|
static WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX |
fromPointer(Pointer memory)
Create a new instance of the appropriate subclass of
WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX from the provided
Pointer to native memory. |
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public int relationship
WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationCache
,
WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationGroup
,
WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationNumaNode
,
WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorCore
, or
WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorPackage
.
This field identifies which subclass will be instantiated by the
fromPointer(Pointer)
method.
public int size
public SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX()
protected SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX(Pointer memory)
memory
- A pointer to the allocated native memory.public static WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX fromPointer(Pointer memory)
WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
from the provided
Pointer
to native memory. Use this method rather than
#SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX(Pointer)
to properly
cast the Pointer to the appropriate subclass and populate variable
length arrays.memory
- A pointer to allocated memory to be cast to this class.relationship
field. If the
relationship
member is
WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorCore
or
WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorPackage
,
the return type will be WinNT.PROCESSOR_RELATIONSHIP
. If
the relationship
member is
WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationNumaNode
, the
return type will be WinNT.NUMA_NODE_RELATIONSHIP
. If the
relationship
member is
WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationCache
, the
return type will be WinNT.CACHE_RELATIONSHIP
. If the
relationship
member is
WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationGroup
, the
return type will be WinNT.GROUP_RELATIONSHIP
.