How to obtain data from WMI using a C Application?

前端 未结 2 1985
青春惊慌失措
青春惊慌失措 2020-12-09 13:04

I have a pure C application that issues IOCTL calls to my adapter driver and displays info ,this is however compiled using Visual Developer Studio 5(non-managed code) ... I

2条回答
  •  死守一世寂寞
    2020-12-09 13:38

    Another option, if you want to keep the impact to your existing C application low, is to write a DLL that internally can use C++ and COM wrapper classes to query the desired WMI information.

    This DLL can provide a plain C interface to adapt to your application. Thats the way I would go for.

提交回复
热议问题