Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 1003 Bytes

obtaining-counter-path-elements-from-a-counter-path.md

File metadata and controls

20 lines (12 loc) · 1003 Bytes
description ms.assetid title ms.topic ms.date
To retrieve the elements of a path, call the PdhParseCounterPath function. The function parses the elements of a counter path and returns them in a PDH\_COUNTER\_PATH\_ELEMENTS structure.
65c722f9-6f9d-4e3d-abf3-867cf260ef9f
Obtaining Counter Path Elements from a Counter Path
article
05/31/2018

Obtaining Counter Path Elements from a Counter Path

To retrieve the elements of a path, call the PdhParseCounterPath function. The function parses the elements of a counter path and returns them in a PDH_COUNTER_PATH_ELEMENTS structure.

If you have a complex instance name (one that contains a parent instance and instance index), you can call the PdhParseInstanceName function to extract the instance name, instance index, and parent name.