[This is preliminary documentation and subject to change.]
The IWbemClassObject::InheritsFrom method determines if the current class or instance derives from a specified parent class.
HRESULT IWbemClassObject::InheritsFrom(
[in] BSTR bstrAncestor
);
WBEM_NO_ERROR | The current object inherits from the specified ancestor class. |
WBEM_S_FALSE | The current object does not inherit from the specified ancestor class. |
WBEM_E_INVALID_PARAMETER | The strAncestor parameter is NULL. |