Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 767 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 767 Bytes

Description

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.

Usage

Prerequisites

  • VS2017+ compiler and /std:c++17 switch
  • premake5

Build & Run

$ 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!