staticVALUEfole_typelib(VALUEself){structoledata*pole;HRESULThr;ITypeInfo*pTypeInfo;LCIDlcid=cWIN32OLE_lcid;VALUEvtlib=Qnil;OLEData_Get_Struct(self,pole);hr=pole->pDispatch->lpVtbl->GetTypeInfo(pole->pDispatch,0,lcid,&pTypeInfo);if(FAILED(hr)){ole_raise(hr,rb_eRuntimeError,"failed to GetTypeInfo");}vtlib=ole_typelib_from_itypeinfo(pTypeInfo);OLE_RELEASE(pTypeInfo);if(vtlib==Qnil){rb_raise(rb_eRuntimeError,"failed to get type library info.");}returnvtlib;}