Compartir a través de


How to Implement a Native MI Client

A Windows Management Infrastructure (MI) client enables you to consume data exposed by an MI provider. This section presents a set of step-by-step instructions that illustrate how to perform various tasks from a native MI client using the MI API and Microsoft Visual C++.

Note

To see examples of implementing an MI client using the MI .NET API and Microsoft Visual C#, refer to How to Implement a Managed MI Client.

 

In this section

How to: Enumerate All Instances of a Class (C/C++)

This topic provides step-by-step instructions for enumerating the instances of a specified CIM class using the Windows Management Infrastructure (MI) native API. In addition to the steps, a full source code example is provided at the end of the topic.

How to: Get a Specific Instance of a Class (C/C++)

This topic provides step-by-step instructions for getting a specific (keyed) instance of a specified CIM class using the Windows Management Infrastructure (MI) native API. In addition to the steps, a full source code example is provided at the end of the topic.

How to: Query for Specific Instances of a Class (C/C++)

This topic provides step-by-step instructions for querying instances of a class with WQL (WMI Query Language) using the Windows Management Infrastructure (MI) native API. In addition to the steps, a full source code example is provided at the end of the topic..