A Note About C/C++

It goes without saying that WMI can be accessed from C and C++. In fact, some WMI facilities cannot reasonably be accessed except through these languages. Unfortunately, however, a translation of these script examples into C++ and the accompanying explanation would quintuple the size of this appendix. If you are a C/C++ programmer, however, we offer you these few notes. First, WMI is a COM-based technology, so it is accessed using standard COM techniques. Each of the SWbem scripting components mentioned in this book has a standard COM equivalent. Their names are for the most part obvious, such as IWbemServices, IWbemObjectSink, IWbemObjectSet, and so on. Slightly counterintuitively if you are used to the scripting interface, ...

Get Windows Management Instrumentation (WMI) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.