This library provides modern C++ API for WMI interface. The main goal is to write this:
for(const auto& o : wmi::WmiMonitorID::get_all_objects())
log(info, "got: %s", o.to_string().c_str());
instead of that.
- VS2017+ compiler and
/std:c++17
switch - premake5
$ cd modern_wmi
$ premake5 vs2017 --classes=Win32_UserProfile
$ msbuild /p:Configuration=Release build\modern_wmi.sln
Your newly generated API is ready: just use wmi_classes.h
and generated_api.lib
which don't require any additional dependencies!