WMI and C # can they play together?

I saw useful what WMI can be.

My question is: do all WMI APIs allow you to use the .net language, for example C #, or is it only through C ++ and Scripting? Do you know where I can find information about.

I could only find a few examples.

Thank you very much.

+3
source share
2 answers

Oh Lord no. The WMI system looks painful in C ++, System.Management is a very nice COM code shell that you have to write in C ++. You don’t even need to write C # code yourself. Download the WMI Code Creator Tool , it allows you to play with requests and automatically generates C # code for cutting and pasting into your project.

+6
source

Look at the classes in the namespace System.Management.

+3
source

Source: https://habr.com/ru/post/1767970/


All Articles