Skip to content

yuyoyuppe/wmi_query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published