CWbemProviderGlue::IsDerivedFrom method

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

The IsDerivedFrom method determines whether one class is derived from another.

Syntax

Platform::Boolean IsDerivedFrom(
  LPCWSTR       pszBaseClassName,
  LPCWSTR       pszDerivedClassName,
  MethodContext *pMethodContext,
  LPCWSTR       pszNamespace
);

Parameters

pszBaseClassName

Name of base class.

pszDerivedClassName

Name of class to be tested.

pMethodContext

Pointer to the current context. A context must be provided to prevent deadlocks. Either use the context passed into the provider by Provider::EnumerateInstances or Provider::ExecQuery, or else obtain it from the instance using CInstance::GetMethodContext. This parameter must not be NULL.

pszNamespace

Namespace that contains pszBaseClassName and pszDerivedClassname. If NULL, the default namespace, root\cimv2, is used.

Return Value

The method returns TRUE if the class pointed to by pszDerivedClassName is a subclass of the class pointed to by pszBaseClassName and FALSE if pszDerivedClassName does not derive from pszBaseClassName. If asked if a class is derived from itself, this method returns FALSE.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header wbemglue.h (include FwCommon.h)
Library FrameDyn.lib
DLL FrameDynOS.dll; FrameDyn.dll