SOL9 2.0 Sample: SWbemQueryApplet

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * SWbemQueryApplet.cpp 
 * Copyright (c) 2009 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 exception\n");
    }

}

Last modified: 24 Dec 2009

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