SOL9 Sample: PerformanceCounterBrowser

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * PerformanceCounterBrowser.cpp 
 * Copyright (c) 2015 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");
  }
}


Last modified: 2 May 2016

Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.