13 #ifndef ML_WMIINTERFACE_H
14 #define ML_WMIINTERFACE_H
26 #include <ThirdPartyWarningsDisable.h>
29 #include <ThirdPartyWarningsRestore.h>
31 ML_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);
76 ML_UTILS_END_NAMESPACE
Interface to the Windows Management Instrumentation https://msdn.microsoft.com/en-us/library/aa394582...
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.