Platform SDK: Performance Monitoring |
Given a string containing a counter path with wildcard characters, the PdhExpandCounterPath function returns all counter paths that match the specified path. The list of matching counter paths are returned as one string, and you must allocate sufficient memory space for this string. Each counter path is terminated by a NULL character. You can allocate this memory in blocks at run time by calling PdhExpandCounterPath repeatedly and checking for a PDH_MORE_DATA return value.