Platform SDK: Performance Monitoring

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
A pointer to a null-terminated string containing the machine name, parsed from the counter path.
szObjectName
A pointer to a null-terminated string containing the object name, parsed from the counter path.
szInstanceName
A pointer to a null-terminated string containing the instance name, parsed from counter path.
szParentInstance
A pointer to a null-terminated string containing the parent instance name, parsed from counter path.
dwInstanceIndex
The index of duplicate instance names.
szCounterName
A pointer to a null-terminated string containing the counter name.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Header: Declared in Pdh.h.
  Unicode: Declared as Unicode and ANSI structures.

See Also

PdhMakeCounterPath, PdhParseCounterPath