开发者

how to run a wmi query in c

开发者 https://www.devze.com 2022-12-17 06:29 出处:网络
i know how to this in .net i want to know how in pure c and not c++ than开发者_如何转开发ks.You can use the COM interface to use WMI from pure C applications. WMI COM Reference: http://msdn.microsoft

i know how to this in .net i want to know how in pure c and not c++

than开发者_如何转开发ks.


You can use the COM interface to use WMI from pure C applications. WMI COM Reference: http://msdn.microsoft.com/en-us/library/aa389276(VS.85).aspx


Using OLE you resolves instance of class ManagementClass and follow resolving all other interfaces. Also (if you use MSVC compiler) you can use #import directive to expose expected dll

Look at this sample on msdn: http://msdn.microsoft.com/en-us/library/aa392093(VS.85).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号