yuyoyuppe / wmi_query

Generate modern C++ API for WMI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

Generate modern C++ API for WMI.


Languages

Language:C++ 83.7%Language:Lua 15.9%Language:C 0.4%