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. TheKernel32.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 Summary- 
Nested classes/interfaces inherited from class com.sun.jna.StructureStructure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
 
- 
 - 
Field SummaryFields Modifier and Type Field Description intrelationshipThe type of relationship between the logical processors.intsizeThe size of the structure, in bytes.- 
Fields inherited from class com.sun.jna.StructureALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX()protectedSYSTEM_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.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EXfromPointer(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 Detail- 
relationshippublic int relationship The 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 size The size of the structure, in bytes.
 
- 
 - 
Constructor Detail- 
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EXpublic SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX() 
 - 
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EXprotected 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.- Parameters:
- memory- A pointer to the allocated native memory.
 
 
- 
 - 
Method Detail- 
fromPointerpublic static WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX fromPointer(Pointer memory) Create 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.
 
 
- 
 
-