WMI

Create a WMI Application - Refined

I recently had the need to be able to query the WMI via WQL (which are very fascinating and helpful technologies, actually) from C++. WQL essentially provides an SQL interface for querying system properties of a running computer.

The process of running and returning a WQL query from C++ has several steps to it, so I found the official example for how to do this on Microsoft's website.

I will not quote the full original code here, but I will comment on it. It makes a pretty good object lesson in how to not program in C++.

Syndicate content