Guys, tell me if there are standard methods for working with WMI from under Qt. I found some QAxObject in the docks and there are no examples. How to use vaguely imagine.

  • why such a perversion? What is the challenge? - Senior Pomidor
  • one
    Read events and Windows Event Log using Qt - Nicola Krivosheya

2 answers 2

An example of working with WMI using QAxObject A link ; there are some crutch versions of powershell scripts that use WMI and parse the results of their execution. Example

    Microsoft has already described how to work with WMI. Creating a WMI Application Using C ++. You can implement some kind of interface for working with this, or you can generate classes. Read more here . I recommend to generate. Read more about WMI classes here.

    You can also use PowerShell to access WMI-объектам . Examples on PS can be found here .

    C ++ Examples

    Also on the site codeProject there is very good information about this. There are already ready code samples with comments (I don’t want to duplicate it here)