PDH_COUNTER_PATH_ELEMENTS

The PDH_COUNTER_PATH_ELEMENTS structure contains the parsed elements of a fully qualified counter path. The main purpose of this structure is to provide formatted text to the calling application for display.

typedef struct _PDH_COUNTER_PATH_ELEMENTS {
    LPTSTR  szMachineName;
    LPTSTR  szObjectName;
    LPTSTR  szInstanceName;
    LPTSTR  szParentInstance;
    DWORD   dwInstanceIndex;
    LPTSTR  szCounterName;
} PDH_COUNTER_PATH_ELEMENTS, *PPDH_COUNTER_PATH_ELEMENTS;
 

Members

szMachineName
The machine name, parsed from the counter path.
szObjectName
The object name, parsed from the counter path.
szInstanceName
The instance name, parsed from counter path.
szParentInstance
The parent instance name, parsed from counter path.
dwInstanceIndex
The index of duplicate instance names.
szCounterName
The counter name.

See Also

Performance Data Helper Overview, Performance Data Structures, PdhMakeCounterPath, PdhParseCounterPath