Lines Matching refs:hr
446 HRESULT hr = OleInitialize( NULL ); in OleComponent() local
447 OSL_ENSURE( hr == S_OK || hr == S_FALSE, "The ole can not be successfully initialized\n" ); in OleComponent()
448 if ( hr == S_OK || hr == S_FALSE ) in OleComponent()
579 …HRESULT hr = StgCreateDocfile( reinterpret_cast<LPCWSTR>(aTempFilePath.getStr()), STGM_CREATE | ST… in CreateNewIStorage_Impl() local
580 if ( FAILED( hr ) || !m_pNativeImpl->m_pIStorage ) in CreateNewIStorage_Impl()
616 HRESULT hr = m_pNativeImpl->m_pObj->QueryInterface( IID_IDataObject, (void**)&pDataObject ); in RetrieveObjectDataFlavors_Impl() local
617 if ( SUCCEEDED( hr ) && pDataObject ) in RetrieveObjectDataFlavors_Impl()
620 hr = pDataObject->EnumFormatEtc( DATADIR_GET, &pFormatEnum ); in RetrieveObjectDataFlavors_Impl()
621 if ( SUCCEEDED( hr ) && pFormatEnum ) in RetrieveObjectDataFlavors_Impl()
631 HRESULT hr = pFormatEnum->Next( MAX_ENUM_ELE, pElem, &nNum ); in RetrieveObjectDataFlavors_Impl() local
632 if( hr == S_OK || hr == S_FALSE ) in RetrieveObjectDataFlavors_Impl()
668 HRESULT hr = m_pNativeImpl->m_pObj->QueryInterface( IID_IOleLink, (void**)&pOleLink ); in InitializeObject_Impl() local
674 …hr = m_pNativeImpl->m_pObj->QueryInterface( IID_IViewObject2, (void**)&m_pNativeImpl->m_pViewObjec… in InitializeObject_Impl()
675 if ( FAILED( hr ) || !m_pNativeImpl->m_pViewObject2 ) in InitializeObject_Impl()
686 HRESULT hr = pIOleCache->EnumCache( &pEnumSD ); in InitializeObject_Impl() local
688 if ( SUCCEEDED( hr ) && pEnumSD ) in InitializeObject_Impl()
694 hr = pIOleCache->Uncache( aSD.dwConnection ); in InitializeObject_Impl()
700 hr = pIOleCache->Cache( &aFormat, ADVFCACHE_ONSAVE, &nConn ); in InitializeObject_Impl()
706 hr = m_pNativeImpl->m_pObj->QueryInterface( IID_IOleObject, (void**)&m_pNativeImpl->m_pOleObject ); in InitializeObject_Impl()
707 if ( FAILED( hr ) || !m_pNativeImpl->m_pOleObject ) in InitializeObject_Impl()
736 HRESULT hr = OpenIStorageFromURL_Impl( aTempURL, &m_pNativeImpl->m_pIStorage ); in LoadEmbeddedObject() local
738 if ( FAILED( hr ) || !m_pNativeImpl->m_pIStorage ) in LoadEmbeddedObject()
741 hr = OleLoad( m_pNativeImpl->m_pIStorage, IID_IUnknown, NULL, (void**)&m_pNativeImpl->m_pObj ); in LoadEmbeddedObject()
742 if ( FAILED( hr ) || !m_pNativeImpl->m_pObj ) in LoadEmbeddedObject()
764 HRESULT hr = OleGetClipboard( &pDO ); in CreateObjectFromClipboard() local
765 if( SUCCEEDED( hr ) && pDO ) in CreateObjectFromClipboard()
767 hr = OleQueryCreateFromData( pDO ); in CreateObjectFromClipboard()
768 if( S_OK == GetScode( hr ) ) in CreateObjectFromClipboard()
770 hr = OleCreateFromData( pDO, in CreateObjectFromClipboard()
785 if ( FAILED( hr ) || !m_pNativeImpl->m_pObj ) in CreateObjectFromClipboard()
809 HRESULT hr = OleCreate( aClsID, in CreateNewEmbeddedObject() local
817 if ( FAILED( hr ) || !m_pNativeImpl->m_pObj ) in CreateNewEmbeddedObject()
851 HRESULT hr = OleCreateFromFile( CLSID_NULL, in CreateObjectFromFile() local
860 if ( FAILED( hr ) || !m_pNativeImpl->m_pObj ) in CreateObjectFromFile()
881 HRESULT hr = OleCreateLinkToFile( reinterpret_cast<LPCWSTR>(aFilePath.getStr()), in CreateLinkFromFile() local
889 if ( FAILED( hr ) || !m_pNativeImpl->m_pObj ) in CreateLinkFromFile()
906 …HRESULT hr = pOleLinkComponent->m_pNativeImpl->m_pObj->QueryInterface( IID_IDataObject, (void**)&p… in InitEmbeddedCopyOfLink() local
907 if ( SUCCEEDED( hr ) && pDataObject && SUCCEEDED( OleQueryCreateFromData( pDataObject ) ) ) in InitEmbeddedCopyOfLink()
914 hr = OleCreateFromData( pDataObject, in InitEmbeddedCopyOfLink()
926 hr = pOleLinkComponent->m_pNativeImpl->m_pObj->QueryInterface( IID_IOleLink, (void**)&pOleLink ); in InitEmbeddedCopyOfLink()
927 if ( FAILED( hr ) || !pOleLink ) in InitEmbeddedCopyOfLink()
931 hr = pOleLink->GetSourceMoniker( &pMoniker ); in InitEmbeddedCopyOfLink()
932 if ( FAILED( hr ) || !pMoniker ) in InitEmbeddedCopyOfLink()
937 hr = pMoniker->IsSystemMoniker( &aMonType ); in InitEmbeddedCopyOfLink()
938 if ( SUCCEEDED( hr ) && aMonType == MKSYS_FILEMONIKER ) in InitEmbeddedCopyOfLink()
945 hr = pOleLink->GetSourceDisplayName( &pOleStr ); in InitEmbeddedCopyOfLink()
946 if ( SUCCEEDED( hr ) && pOleStr ) in InitEmbeddedCopyOfLink()
952 hr = OleCreateFromFile( CLSID_NULL, in InitEmbeddedCopyOfLink()
967 hr = CreateBindCtx( 0, ( LPBC FAR* )&pBindCtx ); in InitEmbeddedCopyOfLink()
968 if ( SUCCEEDED( hr ) && pBindCtx ) in InitEmbeddedCopyOfLink()
971 hr = pMoniker->BindToStorage( pBindCtx, NULL, IID_IStorage, (void**)&pObjectStorage ); in InitEmbeddedCopyOfLink()
972 if ( SUCCEEDED( hr ) && pObjectStorage ) in InitEmbeddedCopyOfLink()
974 hr = pObjectStorage->CopyTo( 0, NULL, NULL, m_pNativeImpl->m_pIStorage ); in InitEmbeddedCopyOfLink()
975 if ( SUCCEEDED( hr ) ) in InitEmbeddedCopyOfLink()
976 … hr = OleLoad( m_pNativeImpl->m_pIStorage, IID_IUnknown, NULL, (void**)&m_pNativeImpl->m_pObj ); in InitEmbeddedCopyOfLink()
983 if ( FAILED( hr ) || !m_pNativeImpl->m_pObj ) in InitEmbeddedCopyOfLink()
999 HRESULT hr = S_OK; in RunObject() local
1002 hr = OleRun( m_pNativeImpl->m_pObj ); in RunObject()
1010 if ( FAILED( hr ) ) in RunObject()
1012 if ( hr == REGDB_E_CLASSNOTREG ) in RunObject()
1063 HRESULT hr = pEnum->Next( MAX_ENUM_ELE, szEle, &nNum ); in GetVerbList() local
1064 if( hr == S_OK || hr == S_FALSE ) in GetVerbList()
1091 HRESULT hr = OleRun( m_pNativeImpl->m_pOleObject ); in ExecuteVerb() local
1092 if ( FAILED( hr ) ) in ExecuteVerb()
1097 hr = m_pNativeImpl->m_pOleObject->DoVerb( nVerbID, NULL, m_pOleWrapClientSite, 0, NULL, NULL ); in ExecuteVerb()
1099 if ( FAILED( hr ) ) in ExecuteVerb()
1125 HRESULT hr = m_pNativeImpl->m_pOleObject->SetExtent( nMSAspect, &aSize ); in SetExtent() local
1127 if ( FAILED( hr ) ) in SetExtent()
1152 HRESULT hr = m_pNativeImpl->m_pObj->QueryInterface( IID_IDataObject, (void**)&pDataObject ); in GetExtent() local
1153 if ( SUCCEEDED( hr ) || pDataObject ) in GetExtent()
1159 hr = pDataObject->GetData( &aFormat, &aMedium ); in GetExtent()
1160 if ( SUCCEEDED( hr ) && aMedium.tymed == TYMED_MFPICT ) // Win Metafile in GetExtent()
1209 if ( SUCCEEDED( hr ) ) in GetExtent()
1229 HRESULT hr = m_pNativeImpl->m_pViewObject2->GetExtent( nMSAspect, -1, NULL, &aSize ); in GetCachedExtent() local
1231 if ( FAILED( hr ) ) in GetCachedExtent()
1254 HRESULT hr = m_pNativeImpl->m_pOleObject->GetExtent( nMSAspect, &aSize ); in GetReccomendedExtent() local
1255 if ( FAILED( hr ) ) in GetReccomendedExtent()
1279 HRESULT hr = m_pNativeImpl->m_pOleObject->GetUserClassID( &aCLSID ); in GetCLSID() local
1280 if ( FAILED( hr ) ) in GetCLSID()
1300 …HRESULT hr = m_pNativeImpl->m_pObj->QueryInterface( IID_IPersistStorage, (void**)&pPersistStorage … in IsDirty() local
1301 if ( FAILED( hr ) || !pPersistStorage ) in IsDirty()
1304 hr = pPersistStorage->IsDirty(); in IsDirty()
1305 return ( hr != S_FALSE ); in IsDirty()
1315 …HRESULT hr = m_pNativeImpl->m_pObj->QueryInterface( IID_IPersistStorage, (void**)&pPersistStorage … in StoreOwnTmpIfNecessary() local
1316 if ( FAILED( hr ) || !pPersistStorage ) in StoreOwnTmpIfNecessary()
1321 hr = OleSave( pPersistStorage, m_pNativeImpl->m_pIStorage, TRUE ); in StoreOwnTmpIfNecessary()
1322 if ( FAILED( hr ) ) in StoreOwnTmpIfNecessary()
1326 hr = m_pNativeImpl->m_pOleObject->GetUserClassID( &aCLSID ); in StoreOwnTmpIfNecessary()
1327 if ( FAILED( hr ) ) in StoreOwnTmpIfNecessary()
1330 hr = WriteClassStg( m_pNativeImpl->m_pIStorage, aCLSID ); in StoreOwnTmpIfNecessary()
1331 if ( FAILED( hr ) ) in StoreOwnTmpIfNecessary()
1336 hr = pPersistStorage->Save( m_pNativeImpl->m_pIStorage, TRUE ); in StoreOwnTmpIfNecessary()
1343 hr = m_pNativeImpl->m_pIStorage->Commit( STGC_DEFAULT ); in StoreOwnTmpIfNecessary()
1344 if ( FAILED( hr ) ) in StoreOwnTmpIfNecessary()
1347 hr = pPersistStorage->SaveCompleted( NULL ); in StoreOwnTmpIfNecessary()
1348 if ( FAILED( hr ) && hr != E_UNEXPECTED ) in StoreOwnTmpIfNecessary()
1553 HRESULT hr = m_pNativeImpl->m_pObj->QueryInterface( IID_IDataObject, (void**)&pDataObject ); in getTransferData() local
1554 if ( FAILED( hr ) || !pDataObject ) in getTransferData()
1580 hr = pDataObject->GetData( &aFormat, &aMedium ); in getTransferData()
1581 if ( SUCCEEDED( hr ) ) in getTransferData()