CThreadBase Class

[The CThreadBase 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 CThreadBase class is a base class that supplies the internal thread safety mechanisms for the WMI Provider Framework. This class is called internally.

CThreadBase has these types of members:

Enumerations

The CThreadBase class has these enumerations.
Enumeration Description
FlagDefs Specifies which flags are valid for the specified type of operation. This enumeration is used by the Provider::ValidateFlags method.
 

Methods

The CThreadBase class has these methods.
Method Description
BeginRead Provides thread safety for WMI provider data access when the provider is built on the WMI Provider Framework.
BeginWrite Provides thread safety for WMI provider operations that write data when the provider is built on the WMI Provider Framework.
CThreadBase Initializes a new instance of CThreadBase.
EndRead Provides thread safety by indicating the end of a data read operation when the provider is built on the WMI Provider Framework.
EndWrite Provides thread safety by indicating the end of a data write operation when the provider is built on the WMI Provider Framework.
OnFinalRelease Virtual function called by Release when the reference count reaches zero.

Methods

The CThreadBase class has these methods.

Method Description
CThreadBase::BeginRead The BeginRead method provides thread safety by indicating the beginning of a data read operation when the provider is built on the WMI Provider Framework. CThreadBase is called internally.
CThreadBase::BeginWrite The BeginWrite method provides thread safety by indicating the beginning of a data write operation when the provider is built on the WMI Provider Framework. CThreadBase is called internally.
CThreadBase::CThreadBase The CThreadBase::CThreadBase constructor initializes a new instance of CThreadBase. CThreadBase is called internally.
CThreadBase::EndRead The EndRead method provides thread safety by indicating the end of a data read operation when the provider is built on the WMI Provider Framework. CThreadBase is called internally.
CThreadBase::EndWrite The EndWrite method provides thread safety by indicating the end of a data write operation when the provider is built on the WMI Provider Framework. CThreadBase is called internally.
CThreadBase::OnFinalRelease The OnFinalRelease method is a virtual function called by Release when the reference count reaches zero. CThreadBase is called internally.

Remarks

The destructor for the class is CWbemGlueFactory::~CWbemGlueFactory.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header thrdbase.h (include FwCommon.h)