CWbemProviderGlue class (wbemglue.h)

[The CWbemProviderGlue 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.]

CWbemProviderGlue ties the Component Object Model (COM) interfaces of the Windows Management Instrumentation (WMI) API to the classes derived from the Provider class, and supplies methods for providers to use to query each other. It is not expected that provider writers ever derive from this class, or create instances of this class. Typically, the provider writer uses the static methods listed here to retrieve information from WMI. The CWbemProviderGlue is a COM interface, and it relies on COM security for interprocess communication. For more information, see Setting the Security Levels on a WMI Connection and Setting the Security on IWbemServices and Other Proxies.

CWbemProviderGlue has these types of members:

Method Description
FrameworkLoginDLL Called when the DLL_PROCESS_ATTACH value is sent to DllMain to determine whether the provider server can be loaded.
FrameworkLogoffDLL Called by DllCanUnloadNow to determine whether the provider server is not in use and can be unloaded.
GetAllDerivedInstances Retrieves a list of instances derived from a particular base class.
GetAllDerivedInstancesAsynch Retrieves a list of instances supported by a particular provider and derived from a particular base class. Returns one instance at a time.
GetAllInstances Retrieves a list of instances supported by a particular provider.
GetAllInstancesAsynch Retrieves a list of instances supported by a particular provider. Returns one instance at a time.
GetEmptyInstance Overloaded. Retrieves a single instance from a particular provider.
GetInstanceByPath Retrieves the instance identified by a particular object path.
GetInstanceKeysByPath Retrieves the instance identified by a particular object path, with only the key properties populated.
GetInstancePropertiesByPath Retrieves the instance identified by a particular object path, with only the specified properties populated.
GetInstancesByQuery Retrieves a list of instances that match a particular query.
GetInstancesByQueryAsynch Retrieves a list of instances supported by a particular provider that match a particular query. Returns one instance at a time.
GetNamespaceConnection Retrieves a namespace connection.
IsDerivedFrom Determines whether one class is derived from another.
SetStatusObject Sets the parameters of a status object which is used to supply more information when an error occurs.

Inheritance

The CWbemProviderGlue class implements IWbemServicesIWbemProviderInit.

Methods

The CWbemProviderGlue class has these methods.

 
CWbemProviderGlue::FrameworkLoginDLL

The FrameworkLoginDLL method is called when the DLL_PROCESS_ATTACH value is sent to DllMain to determine whether the provider server can be loaded. (overload 1/2)
CWbemProviderGlue::FrameworkLoginDLL

The FrameworkLoginDLL method is called when the DLL_PROCESS_ATTACH value is sent to DllMain to determine whether the provider server can be loaded. (overload 2/2)
CWbemProviderGlue::FrameworkLogoffDLL

The FrameworkLogoffDLL method is called by DllCanUnloadNow to determine whether the provider server is not in use and can be unloaded. (overload 1/2)
CWbemProviderGlue::FrameworkLogoffDLL

The FrameworkLogoffDLL method is called by DllCanUnloadNow to determine whether the provider server is not in use and can be unloaded. (overload 2/2)
CWbemProviderGlue::GetAllDerivedInstances

The GetAllDerivedInstances method retrieves a list of instances of a base class, or any children of that base class.
CWbemProviderGlue::GetAllDerivedInstancesAsynch

The GetAllDerivedInstancesAsynch method retrieves a list of instances supported by a particular provider and derived from a particular base class. This method allows the provider to respond asynchronously by returning one instance at a time.
CWbemProviderGlue::GetAllInstances

The GetAllInstances method retrieves a list of instances returned by a specific class.
CWbemProviderGlue::GetAllInstancesAsynch

The GetAllInstancesAsynch method retrieves a list of instances returned by a specific class. This method allows the provider to respond asynchronously by returning one instance at a time.
CWbemProviderGlue::GetEmptyInstance

The GetEmptyInstance method retrieves a single unpopulated instance of the specified class. (overload 1/2)
CWbemProviderGlue::GetEmptyInstance

The GetEmptyInstance method retrieves a single unpopulated instance of the specified class. (overload 2/2)
CWbemProviderGlue::GetInstanceByPath

The CWbemProviderGlue::GetInstanceByPath (wbemglue.h) method retrieves the instance identified by a particular object path.
CWbemProviderGlue::GetInstanceByPath

The CWbemProviderGlue::GetInstanceByPath (wbemglue.h) method retrieves the instance identified by a particular object path by calling the provider GetObject method.
CWbemProviderGlue::GetInstanceKeysByPath

The GetInstanceKeysByPath method retrieves the instance identified by a particular object path, with only the key properties populated.
CWbemProviderGlue::GetInstancePropertiesByPath

Retrieves the instance identified by a particular object path, with only the specified properties populated. The properties to be populated are named in a CHString array.
CWbemProviderGlue::GetInstancesByQuery

The CWbemProviderGlue::GetInstancesByQuery (wbemglue.h) method retrieves a list of instances that match a particular query.
CWbemProviderGlue::GetInstancesByQuery

The CWbemProviderGlue::GetInstancesByQuery (wbemglue.h) method retrieves a list of instances that match a particular query.
CWbemProviderGlue::GetInstancesByQueryAsynch

The GetInstancesByQueryAsynch method retrieves a list of instances supported by a particular provider, and that match a particular query. This method allows the provider to respond asynchronously by returning one instance at a time.
CWbemProviderGlue::GetNamespaceConnection

The GetNameSpaceConnection method is used to retrieve a namespace connection. (overload 2/2)
CWbemProviderGlue::GetNamespaceConnection

The GetNameSpaceConnection method is used to retrieve a namespace connection. (overload 1/2)
CWbemProviderGlue::IsDerivedFrom

The CWbemProviderGlue::IsDerivedFrom(wbemglue.h) method determines whether one class is derived from another.
CWbemProviderGlue::IsDerivedFrom

The CWbemProviderGlue::IsDerivedFrom (wbemglue.h) method determines whether one class is derived from another.
CWbemProviderGlue::SetStatusObject

The SetStatusObject method sets the parameters of a status object used to supply more information when an error occurs. This status object is derived from the Win32_PrivilegesStatus class.

Requirements

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