source: nscp/trunk/modules/CheckWMI/WMIQuery.h @ 117fcf5

Last change on this file since 117fcf5 was 117fcf5, checked in by Michael Medin <michael@…>, 7 years ago

* empty log message *

  • Property mode set to 100644
File size: 357 bytes
Line 
1#pragma once
2
3#include <string>
4#include <map>
5
6
7class WMIException {
8public:
9        WMIException(std::string str, HRESULT code) {
10                std::cout << str << std::endl;
11
12        }
13};
14class WMIQuery
15{
16private:
17        bool bInitialized;
18
19public:
20        WMIQuery(void);
21        ~WMIQuery(void);
22
23        std::map<std::string,int> execute(std::string query);
24
25        bool initialize();
26        void unInitialize();
27};
Note: See TracBrowser for help on using the repository browser.