SOL9 Sample: SWbemQueryApplet

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * SWbemQueryApplet.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


//SOL9
// 2009/12/13

#include <sol/wmi/SWbemQueryApplet.h>


void _tmain(int argc, const TCHAR** argv)
{
  try {
    //2009/12/21
    Locale locale;
    
    //1 Create SWbemQueryApplet thread

    SWbemQueryApplet applet;

    //2 Start query thread
    applet.start();

    //3 Wait a completion of the query thread
    applet.wait();

  } catch (HRESULT hr) {
    printf("Exception HRESULT=%0x", hr); 
  } catch (Exception& ex) {
    ex.printf();
  } catch (...) {
    printf("Unknown IException\n");
  }

}

Last modified: 2 May 2016

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