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

梦想的初衷 提交于 2019-12-12 03:45:00

问题


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 :)


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/14052597/is-there-any-c-library-to-work-with-wmi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!