Question

Is it possible to issue WMI WQL queries in plain C? And if yes, how?

Was it helpful?

Solution

You can use any programming language that you want as long as you can call into the COM API for WMI.

OTHER TIPS

It looks like you can do this sort of thing by using ExecQuery(), though this example is in C++. BTW this guy couldn't get it to work, but you may check out what he's doing.

Hope this helps.

http://forums.devshed.com/c-programming-42/wmi-wql-querying-problem-in-c-215026.html

More WMI programming:

http://www.vedivi.com/blog/2008/05/how-to-enable-remote-desktop-programmatically/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top