Provider

Provider class

[The Provider class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]

The Provider class is the base class for the class or classes that the framework provider supports. The Provider class encapsulates implementations of the methods of IWbemServices and includes several helper functions. A framework provider overrides one of the methods of the Provider class for each feature that it supports. For example, a provider that supports query processing overrides the Provider::ExecQuery method.

An instance of the Provider class is created for each WMI class that has a framework provider.

Provider has these types of members:

Methods

The Provider class has these methods.

MethodDescription
Commit

Returns the current instance to WMI.

CreateNewInstance

Allocates a new CInstance object and returns a pointer to it.

DeleteInstance

Deletes an instance. Called by WMI.

EnumerateInstances

Retrieves all instances of a framework provider's class. Called by WMI.

ExecMethod

Invokes a method on a class or instance. Called by WMI.

ExecQuery

Processes a WMI Query Language (WQL) query. Called by WMI.

Flush

Called by the provider framework to delete all unnecessary memory in use by the provider.

GetLocalComputerName

Returns a constant reference to the computer name in CHString format.

GetLocalInstancePath

Attempts to build a full object path to a specified instance.

GetObject

Retrieves an instance of a class. Called by WMI.

GetProviderName

Retrieves the name of the provider.

MakeLocalPath

Builds a full instance path from a relative path.

PutInstance

Updates an instance. Called by WMI.

SetCreationClassName

Sets the CreationClassName string property of the given instance to the name of this provider.

ValidateDeletionFlags

Determines whether a set of flags is valid for a delete operation.

ValidateEnumerationFlags

Determines whether a set of flags is valid for an enumeration.

ValidateFlags

Determines whether a set of flags is valid.

ValidateGetObjFlags

Determines whether a set of flags is valid for an instance retrieval operation.

ValidateMethodFlags

Determines whether a set of flags is valid for an execute method operation.

ValidatePutInstanceFlags

Determines whether a set of flags is valid for an instance update operation.

ValidateQueryFlags

Determines whether a set of flags is valid for a query operation.

 

Remarks

The destructor for this class is Provider::~Provider.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Provider.h (include FwCommon.h)

Library

Framedyn.lib

DLL

Framedyn.dll

 

 

Show:
© 2016 Microsoft