| 211 | } |
| 212 | |
| 213 | bool setPdhString(int id, std::string& out) { |
| 214 | char buf[512]; |
| 215 | DWORD sz = 512; |
| 216 | if (!handlePdhStatus(PdhLookupPerfNameByIndex(nullptr, id, buf, &sz), "PdhLookupPerfByNameIndex")) |
| 217 | return false; |
| 218 | out = buf; |
| 219 | return true; |
| 220 | } |
| 221 | #endif |
| 222 | |
| 223 | #ifdef __unixish__ |
no test coverage detected