Export (0) Print
Expand All

PDH_COUNTER_PATH_ELEMENTS structure

The PDH_COUNTER_PATH_ELEMENTS structure contains the components of a counter path.

Syntax


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

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Pdh.h

Unicode and ANSI names

PDH_COUNTER_PATH_ELEMENTS_W (Unicode) and PDH_COUNTER_PATH_ELEMENTS_A (ANSI)

See also

PdhMakeCounterPath
PdhParseCounterPath

 

 

Community Additions

ADD
Show:
© 2014 Microsoft