xentara-utils v2.0.4
The Xentara Utility Library
|
A locator for WMI services. More...
#include <xentara/utils/windows/wmi/Locator.hpp>
Public Member Functions | |
Locator () | |
Constructor. | |
internal auto | connect (const wchar_t *wmiNamespace=L"CIMv2") const -> Namespace |
Connects to a local namespace. | |
A locator for WMI services.
Creates a locator object that can be used to connect to the Windows Management Intrumentation (WMI) service on the local machine.
xentara::utils::windows::wmi::Locator::Locator | ( | ) |
Constructor.
This constructor initializes the COM thread environment needed to communicate with the WMI service. The thread environment uses the the COINIT_APARTMENTTHREADED concurrency model.
std::runtime_error | The COM thread environment nedded could not be initialized |
internal auto xentara::utils::windows::wmi::Locator::connect | ( | const wchar_t * | wmiNamespace = L"CIMv2" | ) | const -> Namespace |
Connects to a local namespace.
std::runtime_error | An error occurred trying to connect to the namespace |