Is there any C++ library to work with WMI? [closed

2019-09-05 21:37发布

I'm working on a big project that have to poll remote WMI counter. I have to code a Win32 app in C++ to query WMI from remote Windows systems. So, Is there any C++ library (free or paid) help me to work with WMI ? Please help me.

Thanks so much :)

2条回答
看我几分像从前
2楼-- · 2019-09-05 22:21

AFAIK, there are no off the shelf libraries (think STL) for accessing WMI. You'll have to do it manually. There is a brief outline on MSDN as to what a program is expected to do in order to access these functions. There is also some example code related to the article here.

查看更多
够拽才男人
3楼-- · 2019-09-05 22:28

You can use the WMI Delphi Code Creator to generate C++ code to access the WMI (Windows Management Instrumentation) classes, events and methods.

查看更多
登录 后发表回答