ML Reference
ml::WMIInterface Class Reference

Interface to the Windows Management Instrumentation https://msdn.microsoft.com/en-us/library/aa394582.aspx. More...

#include <mlWMIInterface.h>

Public Member Functions

std::string queryWMIString (const char *wmiClassName, const char *wmiProperty)
 Returns UTF-8 encoded WMI property given the wmiClassName and wmiPropery. More...
 
MLuint32 queryWMIuint32 (const char *wmiClassName, const char *wmiProperty)
 Returns integer WMI property given the wmiClassName and wmiPropery. More...
 

Static Public Member Functions

static WMIInterfaceself ()
 Returns singleton. It creates singleton if init() was not yet called. More...
 
static void init ()
 Initializes the singleton. More...
 
static void cleanup ()
 Cleans up of the singleton. More...
 

Detailed Description

Interface to the Windows Management Instrumentation https://msdn.microsoft.com/en-us/library/aa394582.aspx.

Definition at line 35 of file mlWMIInterface.h.

Member Function Documentation

◆ cleanup()

static void ml::WMIInterface::cleanup ( )
static

Cleans up of the singleton.

◆ init()

static void ml::WMIInterface::init ( )
static

Initializes the singleton.

◆ queryWMIString()

std::string ml::WMIInterface::queryWMIString ( const char *  wmiClassName,
const char *  wmiProperty 
)

Returns UTF-8 encoded WMI property given the wmiClassName and wmiPropery.

◆ queryWMIuint32()

MLuint32 ml::WMIInterface::queryWMIuint32 ( const char *  wmiClassName,
const char *  wmiProperty 
)

Returns integer WMI property given the wmiClassName and wmiPropery.

◆ self()

static WMIInterface* ml::WMIInterface::self ( )
static

Returns singleton. It creates singleton if init() was not yet called.


The documentation for this class was generated from the following file: