PDH_COUNTER_PATH_ELEMENTS_W structure (pdh.h)

The PDH_COUNTER_PATH_ELEMENTS structure contains the components of a counter path.

Syntax

typedef struct _PDH_COUNTER_PATH_ELEMENTS_W {
  LPWSTR szMachineName;
  LPWSTR szObjectName;
  LPWSTR szInstanceName;
  LPWSTR szParentInstance;
  DWORD  dwInstanceIndex;
  LPWSTR szCounterName;
} PDH_COUNTER_PATH_ELEMENTS_W, *PPDH_COUNTER_PATH_ELEMENTS_W;

Members

szMachineName

Pointer to a null-terminated string that specifies the computer name.

szObjectName

Pointer to a null-terminated string that specifies the object name.

szInstanceName

Pointer to a null-terminated string that specifies the instance name. Can contain a wildcard character.

szParentInstance

Pointer to a null-terminated string that specifies the parent instance name. Can contain a wildcard character.

dwInstanceIndex

Index used to uniquely identify duplicate instance names.

szCounterName

Pointer to a null-terminated string that specifies the counter name.

Remarks

This structure is used by PdhMakeCounterPath to create a counter path and by PdhParseCounterPath to parse a counter path.

When you allocate memory for this structure, allocate enough memory for the member strings, such as szCounterName, that are appended to the end of this structure.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header pdh.h

See also

PdhMakeCounterPath

PdhParseCounterPath