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 12 hours ago
2 days 12 hours ago
3 days 8 hours ago
1 week 1 day ago
1 week 1 day ago
2 weeks 23 hours ago
9 weeks 3 days ago
13 weeks 4 days ago
16 weeks 2 days ago
16 weeks 4 days ago