__Win32Provider

[This is preliminary documentation and subject to change.]

The __Win32Provider system class is used to register dynamic providers with CIMOM.

class __Win32Provider : __SystemClass
{
    sint32 MethodSet;
    bool MustBeLoaded = FALSE;
    string ProviderClsId = "{00000000-0000-0000-0000-000000000000}";
};
 

You need to register every dynamic data or event provider with CIMOM by creating an instance of the __Win32Provider class in the namespace for which the data is to be provided. For more information see Implementing Dynamic Providers.

Properties

MethodSet
Contains the bitmask of the method bits for all the methods of the IWbemServices interface this provider implements. In the WBEMSVC.IDL, there are a series of bitmask definitions in the WBEM_COM_METHOD_MASK typedef. For each method implemented, the corresponding bit must be set in this mask.

Note:  If the provider is an event provider, this field is set to zero.

MustBeLoaded
If TRUE, then the provider must be loaded at startup whether or not any client is requesting objects from it. If FALSE, then the provider is only loaded when absolutely required.
ProviderClsId
The class identifier of the provider's COM object. The COM object represented by this class identifier must implement the IWbemLocator interface if the provider is a dynamic class or instance provider.

If the provider is an event provider, then this CLSID refers to the IWbemEventProvider implementation.

See Also

Class and Instance Provider Models