Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InheritsFrom method

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)

IDL

WbemCli.idl

Library

WbemUuid.lib

DLL

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

CLSID

CLSID_WbemClassObject is defined as 9A653086-174F-11d2-B5F9-00104B703EFD

IID

IID_IWbemClassObject is defined as dc12a681-737f-11cf-884d-00aa004b2e24

See also

IWbemClassObject
GetPropertyOrigin

 

 

Show:
© 2015 Microsoft