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 http://msdn.microsoft.com/en-us/library/aa394582....
static WMIInterface * self()
get singleton (creates singleton if init() was not yet called)
static void cleanup()
cleanup 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
#define ML_UTILS_EXPORT
Defines platform dependent DLL export macro for mlUtils.