Export (0) Print
Expand All

IWbemClassObject::InheritsFrom method

The IWbemClassObject::InheritsFrom method determines if the current class or instance derives from a specified parent class.

Syntax


HRESULT InheritsFrom(
  [in] LPCWSTR wszAncestor
);

Parameters

wszAncestor [in]

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, WBEM_S_NO_ERROR returns. This must point to a valid LPCWSTR, which is treated as read-only.

Return value

This method returns an HRESULT indicating the status of the method call. The following table lists the value contained within an HRESULT. For general HRESULT values, see System Error Codes.

Return codeDescription
WBEM_S_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 wszAncestor parameter is NULL.

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Wbemcli.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

CIMWin32.dll;
Esscli.dll;
Evntrprv.dll;
Fastprox.dll;
Framedyn.dll;
Krnlprov.dll;
Ncprov.dll;
Wbemcore.dll;
Wbemess.dll;
Wmipiprt.dll

See also

IWbemClassObject
GetPropertyOrigin

 

 

Show:
© 2015 Microsoft