IWbemClassObject::GetMethodOrigin method (wbemcli.h)
The IWbemClassObject::GetMethodOrigin method is used to determine the class for which a method was declared.
This call is only supported if the current object is a CIM class definition. Method manipulation is not available from IWbemClassObject pointers which point to CIM instances.
HRESULT GetMethodOrigin( LPCWSTR wszMethodName, BSTR *pstrClassName );
Name of the method for the object whose owning class is being requested.
Receives the name of the class which owns the method. The user must call SysFreeString on the returned BSTR when it is no longer required.
This method returns an HRESULT indicating the status of the method call. The following list lists the value contained within an HRESULT. For general HRESULT values, see System Error Codes.
Because methods are inherited from class to class, it is often desirable to determine the owning class for a given method.
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|
|Header||wbemcli.h (include Wbemidl.h)|
|DLL||CIMWin32.dll; Esscli.dll; Fastprox.dll; FrameDyn.dll; FrameDynOS.dll; Krnlprov.dll; Ncprov.dll; Wbemcore.dll; Wbemess.dll; Wmipiprt.dll|