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++.
Recent comments
2 days 20 hours ago
6 days 16 hours ago
6 days 16 hours ago
1 week 12 hours ago
1 week 5 days ago
1 week 5 days ago
2 weeks 5 days ago
10 weeks 20 hours ago
14 weeks 1 day ago
17 weeks 2 hours ago