tags:

views:

337

answers:

2
+1  Q: 

WMI Queries in C?

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

+1  A: 

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

Jakob Christensen
A: 

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/

Joe