PDH_COUNTER_PATH_ELEMENTS_A structure (pdh.h)
The PDH_COUNTER_PATH_ELEMENTS structure contains the components of a counter path.
Syntax
typedef struct _PDH_COUNTER_PATH_ELEMENTS_A {
LPSTR szMachineName;
LPSTR szObjectName;
LPSTR szInstanceName;
LPSTR szParentInstance;
DWORD dwInstanceIndex;
LPSTR szCounterName;
} PDH_COUNTER_PATH_ELEMENTS_A, *PPDH_COUNTER_PATH_ELEMENTS_A;
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 |