PERF_INSTANCE_DEFINITION

The PERF_INSTANCE_DEFINITION structure contains the instance-specific information for a block of performance data. There is one PERF_INSTANCE_DEFINITION structure for each instance specified in the PERF_OBJECT_TYPE structure.

typedef struct _PERF_INSTANCE_DEFINITION { // pid 
    DWORD ByteLength; 
    DWORD ParentObjectTitleIndex; 
    DWORD ParentObjectInstance; 
    DWORD UniqueID; 
    DWORD NameOffset; 
    DWORD NameLength; 
} PERF_INSTANCE_DEFINITION; 
 

Members

ByteLength
Specifies the length, in bytes, of this structure, including the subsequent name.
ParentObjectTitleIndex
Specifies the index of the name of the "parent" object in the title database. For example, if the object is a thread, the parent object type is a process, or if the object is a logical drive, the parent is a physical drive.
ParentObjectInstance
Specifies the index to an instance of the parent object type that is the parent of this instance. This member may be zero or greater.
UniqueID
Specifies the unique identifier used instead of the instance name. This member is PERF_NO_UNIQUE_ID if there is no such identifier.
NameOffset
Specifies the offset from the beginning of this structure to the Unicode name of this instance.
NameLength
Specifies the length, in bytes, of the instance name. This member is zero if the instance does not have a name.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in winperf.h.

See Also

Performance Data Helper Overview, Performance Data Structures, PERF_OBJECT_TYPE