13#ifndef ML_WMIINTERFACE_H 
   14#define ML_WMIINTERFACE_H 
   26#include <ThirdPartyWarningsDisable.h> 
   29#include <ThirdPartyWarningsRestore.h> 
   31ML_UTILS_START_NAMESPACE
 
   47  std::string 
queryWMIString(
const char* wmiClassName, 
const char* wmiProperty);
 
   63  bool _needsUninitialize;
 
   65  IWbemLocator*  _locator;
 
   66  IWbemServices* _services;
 
   69  VARIANT* queryWMI(
const char* wmiClassName, 
const char* wmiProperty);
 
   72  void deleteVariant(VARIANT* var);
 
 
Interface to the Windows Management Instrumentation https://msdn.microsoft.com/en-us/library/aa394582...
 
static WMIInterface * self()
Returns singleton. It creates singleton if init() was not yet called.
 
static void cleanup()
Cleans up of the singleton.
 
static void init()
Initializes the singleton.
 
std::string queryWMIString(const char *wmiClassName, const char *wmiProperty)
Returns UTF-8 encoded WMI property given the wmiClassName and wmiPropery.
 
MLuint32 queryWMIuint32(const char *wmiClassName, const char *wmiProperty)
Returns integer WMI property given the wmiClassName and wmiPropery.