WMI Provider Extensions Sample Code

The following samples demonstrate how to create WMI providers by using the WMI.NET provider extensions framework. For more sample code, see topics in the System.Management.Instrumentation reference.

Sample Description

How To: Create a Basic Decoupled Provider

A minimal sample to get you started with decoupled providers. Decoupled providers are hosted by your application and only work when your application is running.

How to: Create a Basic In-Process WMI Provider

A minimal sample to get you started with in-process providers. In-process providers are hosted by the WMI service and are always available when WMI is working properly.

How to: Make the State of an Application Manageable

A sample that demonstrates how to implement a decoupled provider in a Windows Forms application.

How to: Expose Configuration Settings Through WMI

A sample that recreates some of the functionality of the Win32_Process WMI class. The sample implements an in-process provider and essentially wraps some of the functionality of the System.Diagnostics.Process class.

See Also

Reference

System.Management.Instrumentation

Concepts

WMI Provider Extensions

Send comments about this topic to Microsoft.

Copyright © 2007 by Microsoft Corporation. All rights reserved.