staticVALUEfole_method_help(VALUEself,VALUEcmdname){ITypeInfo*pTypeInfo;HRESULThr;structoledata*pole;VALUEmethod,obj;SafeStringValue(cmdname);OLEData_Get_Struct(self,pole);hr=typeinfo_from_ole(pole,&pTypeInfo);if(FAILED(hr))ole_raise(hr,rb_eRuntimeError,"failed to get ITypeInfo");method=folemethod_s_allocate(cWIN32OLE_METHOD);obj=olemethod_from_typeinfo(method,pTypeInfo,cmdname);OLE_RELEASE(pTypeInfo);if(obj==Qnil)rb_raise(eWIN32OLERuntimeError,"not found %s",StringValuePtr(cmdname));returnobj;}