staticVALUEfoletypelib_library_name(VALUEself){HRESULThr;ITypeLib*pTypeLib=NULL;VALUElibname=Qnil;BSTRbstr;pTypeLib=oletypelib_get_typelib(self);hr=pTypeLib->lpVtbl->GetDocumentation(pTypeLib,-1,&bstr,NULL,NULL,NULL);if(FAILED(hr)){ole_raise(hr,eWIN32OLERuntimeError,"failed to get library name");}libname=WC2VSTR(bstr);returnlibname;}