Writing a Property Provider
A property provider retrieves and modifies individual property values for instances of a given class that is stored in the WMI repository.
The following procedure describes how to create a property provider.
To create a property provider
Design and register your provider with WMI.
Implement the IWbemProviderInit interface for your provider.
Property providers are strongly encouraged to use the multithreading model "Both".
Implement the IWbemPropertyProvider interface for your provider.
The IWbemPropertyProvider interface is the primary interface for a property provider. The two main methods are GetProperty and PutProperty. For more information, see Implementing the Primary Interface for a Property Provider.
Add any additional code necessary for your provider.
When retrieving information for a client, you may need to access the security levels for that client. For more information, see Impersonating a Client.
Replace the preexisting provider with your new code.
You do not need to perform this step if you do not have a preexisting provider to copy over. For more information, see Updating a Provider.