| SOL9 2.0 Sample: PerformanceCounterBrowser |
/*
* PerformanceCounterBrowser.cpp
* Copyright (c) 2009 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2009/09/30
#include <sol/pdh/PerformanceCounterBrowser.h>
void _tmain(int argc, TCHAR** argv)
{
try {
PerformanceCounterBrowser browser;
browser.create(NULL, _T("PerformanceCounterBrowser"), PERF_DETAIL_WIZARD);
String path;
if (browser.select(path) == ERROR_SUCCESS) {
_tprintf(_T("CounterPath : %s\n"), (const TCHAR*)path);
}
} catch (...) {
printf("Exception\n");
}
}
|