| 1364 | } |
| 1365 | |
| 1366 | std::vector<HCOUNTER> addCounters(HQUERY Query, const char* path) { |
| 1367 | std::vector<HCOUNTER> counters; |
| 1368 | |
| 1369 | std::vector<std::string> paths = expandWildcardPath(path); |
| 1370 | |
| 1371 | for (int i = 0; i < paths.size(); i++) { |
| 1372 | HCOUNTER counter; |
| 1373 | handlePdhStatus(PdhAddCounter(Query, paths[i].c_str(), 0, &counter), "PdhAddCounter"); |
| 1374 | counters.push_back(counter); |
| 1375 | } |
| 1376 | return counters; |
| 1377 | } |
| 1378 | #endif |
| 1379 | |
| 1380 | struct SystemStatisticsState { |
no test coverage detected