InheritsFrom function
Determines whether the current class or instance derives from a specified parent class.
Note
This API is for internal use only. It's not intended for use from developer code.
Syntax
HRESULT InheritsFrom (
[in] int vFunc,
[in] IWbemClassObject* ptr,
[in] LPCWSTR wszAncestor
);
Parameters
vFunc
[in] This parameter is unused.
ptr
[in] A pointer to an IWbemClassObject instance.
wszAncestor
[in] The name of the class. wszAncestor
must point to a valid LPCWSTR
.
Return value
The following values returned by this function are defined in the WbemCli.h header file, or you can define them as constants in your code:
Constant | Value | Description |
---|---|---|
WBEM_S_NO_ERROR |
0 | The current object inherits from wszAncestor . |
WBEM_S_FALSE |
1 | The current object does not inherit from wszAncestor . |
WBEM_E_INVALID_PARAMETER |
0x80041008 | wszAncestor is null . |
Remarks
This function wraps a call to the IWbemClassObject::InheritsFrom method.
Requirements
Platforms: See System Requirements.
Header: WMINet_Utils.idl
.NET Framework Versions: Available since 4.7.2