WMI C++ Application Examples

The WMI application examples in this section are written in C++. They demonstrate a range of tasks that can be completed using WMI components and offer an alternative over using Visual Basic scripts. Each application is separated into a series of steps in a similar way so that code sections from different examples can easily be combined to form customized applications.

The following table lists the C++ examples in this section.

ExampleDescription
Example: Getting WMI Data from the Local ComputerThis example connects to the WMI namespace on the local computer and gets data from a query on the local computer. The data is gathered semisynchronously.
Example: Getting WMI Data from the Local Computer AsynchronouslyThis example connects to the WMI namespace on the local computer and gets data from a query on the local computer. The data is gathered asynchronously.
Example: Getting WMI Data from a Remote ComputerThis example connects to the WMI namespace on a remote computer and gets data from a query on the remote computer. The data is gathered semisynchronously.
Example: Calling a Provider MethodThis example connects to the WMI namespace on the local computer and calls a method in WMI. The method is executed synchronously.
Example: Receiving Event Notifications Through WMIThis example connects to the WMI namespace on the local computer and receives an event from the local computer. The event is received semisynchronously.

 

Send comments about this topic to Microsoft

Build date: 11/3/2009

Tags : wmi


Community Content

Jangid
Set Information Through WMI

How do I add my application details to root\\SecurityCenter for Firewall/AntiVirus/AntiSpyware ?


Page view tracker