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.
| Example | Description |
|---|---|
| Example: Getting WMI Data from the Local Computer | This 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 Asynchronously | This 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 Computer | This 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 Method | This 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 WMI | This 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: 3/9/2012
Is there the example for setting the value to the property in the Class?
I would like to set the value to the property in the Class, for example, Description property in Win32_OperatingSystem Class.
However, there is no example about setting the value to it.
However, there is no example about setting the value to it.
- 7/27/2011
- tjshin
Set Information Through WMI
How do I add my application details to root\\SecurityCenter for Firewall/AntiVirus/AntiSpyware ?
- 4/25/2008
- Jangid
- 4/21/2011
- soonrchong