IWbemClassObject::InheritsFrom

[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
);
 

Parameters

bstrAncestor
Cannot be NULL. It contains the class name that is being tested. If the current object has this class for one of its ancestor classes, then WBEM_NO_ERROR is returned. This must point to a valid BSTR, which is treated as read-only.

Return Values

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.

See Also

GetPropertyOrigin