问题
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