Package com.sun.jna.platform.win32
Class WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
java.lang.Object
com.sun.jna.Structure
com.sun.jna.platform.win32.WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
- Direct Known Subclasses:
- WinNT.CACHE_RELATIONSHIP,- WinNT.GROUP_RELATIONSHIP,- WinNT.NUMA_NODE_RELATIONSHIP,- WinNT.PROCESSOR_RELATIONSHIP,- WinNT.UNKNOWN_RELATIONSHIP
- Enclosing interface:
- WinNT
@FieldOrder({"relationship","size"})
public abstract static class WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
extends Structure
Contains information about the relationships of logical processors and
 related hardware. The 
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.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.sun.jna.StructureStructure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintThe type of relationship between the logical processors.intThe size of the structure, in bytes.Fields inherited from class com.sun.jna.StructureALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedThis constructor should only be called by a subclass to ensure memory is properly allocated to the subclass fields.
- 
Method SummaryModifier and TypeMethodDescriptionfromPointer(Pointer memory) Create a new instance of the appropriate subclass ofWinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EXfrom the providedPointerto native memory.Methods inherited from class com.sun.jna.StructureallocateMemory, 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
- 
Field Details- 
relationshippublic int relationshipThe type of relationship between the logical processors. This parameter can be one of the following values:WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationCache,WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationGroup,WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationNumaNode,WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorCore, orWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorPackage.This field identifies which subclass will be instantiated by the fromPointer(Pointer)method.
- 
sizepublic int sizeThe size of the structure, in bytes.
 
- 
- 
Constructor Details- 
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EXpublic SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX()
- 
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EXThis constructor should only be called by a subclass to ensure memory is properly allocated to the subclass fields.- Parameters:
- memory- A pointer to the allocated native memory.
 
 
- 
- 
Method Details- 
fromPointerCreate a new instance of the appropriate subclass ofWinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EXfrom the providedPointerto native memory. Use this method rather thanSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX(Pointer)to properly cast the Pointer to the appropriate subclass and populate variable length arrays.- Parameters:
- memory- A pointer to allocated memory to be cast to this class.
- Returns:
- An instance of the appropriate subclass depending on the
         value of the relationshipfield. If therelationshipmember isWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorCoreorWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorPackage, the return type will beWinNT.PROCESSOR_RELATIONSHIP. If therelationshipmember isWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationNumaNode, the return type will beWinNT.NUMA_NODE_RELATIONSHIP. If therelationshipmember isWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationCache, the return type will beWinNT.CACHE_RELATIONSHIP. If therelationshipmember isWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationGroup, the return type will beWinNT.GROUP_RELATIONSHIP.
 
 
-