Lines Matching refs:hr
130 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in CheckDefHandler() local
131 if ( SUCCEEDED( hr ) && pOleObject ) in CheckDefHandler()
147 hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in CheckDefHandler()
148 if ( SUCCEEDED( hr ) && pIDataObject ) in CheckDefHandler()
162 hr = m_pDefHandler->QueryInterface( IID_IViewObject, (void**)&pIViewObject ); in CheckDefHandler()
163 if ( SUCCEEDED( hr ) && pIViewObject ) in CheckDefHandler()
173 hr = m_pDefHandler->QueryInterface( IID_IPersistStorage, (void**)&pPersist ); in CheckDefHandler()
174 if ( SUCCEEDED( hr ) && pPersist ) in CheckDefHandler()
197 HRESULT hr = OleCreateDefaultHandler( m_guid, NULL, IID_IUnknown, (void**)&m_pDefHandler ); in CheckDefHandler() local
198 if ( SUCCEEDED( hr ) ) in CheckDefHandler()
218 … hr = m_pDefHandler->QueryInterface( IID_IPersistStorage, (void**)&pPersist ); in CheckDefHandler()
221 if ( SUCCEEDED( hr ) && pPersist && m_pStorage ) in CheckDefHandler()
222 hr = pPersist->InitNew( m_pStorage ); in CheckDefHandler()
228 … hr = m_pDefHandler->QueryInterface( IID_IPersistStorage, (void**)&pPersist ); in CheckDefHandler()
231 if ( SUCCEEDED( hr ) && pPersist && m_pStorage ) in CheckDefHandler()
232 hr = pPersist->Load( m_pStorage ); in CheckDefHandler()
238 … hr = m_pDefHandler->QueryInterface( IID_IPersistFile, (void**)&pPersistFile ); in CheckDefHandler()
241 if ( SUCCEEDED( hr ) && pPersistFile && m_pFileName ) in CheckDefHandler()
242 hr = pPersistFile->Load( m_pFileName, m_nFileOpenMode ); in CheckDefHandler()
250 if ( !SUCCEEDED( hr ) || !m_pDefHandler ) in CheckDefHandler()
260 hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in CheckDefHandler()
261 if ( SUCCEEDED( hr ) && pOleObject ) in CheckDefHandler()
279 hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in CheckDefHandler()
280 if ( SUCCEEDED( hr ) && pIDataObject ) in CheckDefHandler()
296 hr = m_pDefHandler->QueryInterface( IID_IViewObject, (void**)&pIViewObject ); in CheckDefHandler()
297 if ( SUCCEEDED( hr ) && pIViewObject ) in CheckDefHandler()
513 HRESULT hr = m_pDefHandler->QueryInterface( IID_IPersistStorage, (void**)&pPersist ); in IsDirty() local
516 if ( SUCCEEDED( hr ) && pPersist ) in IsDirty()
530 HRESULT hr = m_pDefHandler->QueryInterface( IID_IPersistStorage, (void**)&pPersist ); in InitNew() local
533 if ( SUCCEEDED( hr ) && pPersist ) in InitNew()
535 hr = pPersist->InitNew( pStg ); in InitNew()
536 if ( SUCCEEDED( hr ) ) in InitNew()
549 return hr; in InitNew()
564 HRESULT hr = m_pDefHandler->QueryInterface( IID_IPersistStorage, (void**)&pPersist ); in Load() local
567 if ( SUCCEEDED( hr ) && pPersist ) in Load()
570 hr = pPersist->Load( pStg ); in Load()
571 if ( SUCCEEDED( hr ) ) in Load()
586 return hr; in Load()
604 HRESULT hr = m_pDefHandler->QueryInterface( IID_IPersistStorage, (void**)&pPersist ); in Save() local
607 if ( SUCCEEDED( hr ) && pPersist ) in Save()
630 HRESULT hr = m_pDefHandler->QueryInterface( IID_IPersistStorage, (void**)&pPersist ); in SaveCompleted() local
633 if ( SUCCEEDED( hr ) && pPersist ) in SaveCompleted()
635 hr = pPersist->SaveCompleted( pStgNew ); in SaveCompleted()
636 if ( SUCCEEDED( hr ) ) in SaveCompleted()
654 return hr; in SaveCompleted()
668 HRESULT hr = m_pDefHandler->QueryInterface( IID_IPersistStorage, (void**)&pPersist ); in HandsOffStorage() local
671 if ( SUCCEEDED( hr ) && pPersist ) in HandsOffStorage()
673 hr = pPersist->HandsOffStorage(); in HandsOffStorage()
674 if ( SUCCEEDED( hr ) ) in HandsOffStorage()
680 return hr; in HandsOffStorage()
695 HRESULT hr = m_pDefHandler->QueryInterface( IID_IPersistFile, (void**)&pPersist ); in Load() local
698 if ( SUCCEEDED( hr ) && pPersist ) in Load()
700 hr = pPersist->Load( pszFileName, dwMode ); in Load()
701 if ( SUCCEEDED( hr ) ) in Load()
712 return hr; in Load()
726 HRESULT hr = m_pDefHandler->QueryInterface( IID_IPersistFile, (void**)&pPersist ); in Save() local
729 if ( SUCCEEDED( hr ) && pPersist ) in Save()
743 HRESULT hr = m_pDefHandler->QueryInterface( IID_IPersistFile, (void**)&pPersist ); in SaveCompleted() local
746 if ( SUCCEEDED( hr ) && pPersist ) in SaveCompleted()
748 hr = pPersist->SaveCompleted( pszFileName ); in SaveCompleted()
749 if ( SUCCEEDED( hr ) ) in SaveCompleted()
773 HRESULT hr = m_pDefHandler->QueryInterface( IID_IPersistFile, (void**)&pPersist ); in GetCurFile() local
776 if ( SUCCEEDED( hr ) && pPersist ) in GetCurFile()
804 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in SetClientSite() local
807 if ( SUCCEEDED( hr ) && pOleObject ) in SetClientSite()
809 HRESULT hr = pOleObject->SetClientSite( pSite ); in SetClientSite() local
810 if ( SUCCEEDED( hr ) ) in SetClientSite()
825 return hr; in SetClientSite()
839 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in GetClientSite() local
842 if ( SUCCEEDED( hr ) && pOleObject ) in GetClientSite()
857 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in SetHostNames() local
860 if ( SUCCEEDED( hr ) && pOleObject ) in SetHostNames()
863 hr = pOleObject->SetHostNames( szContainerApp, szContainerObj ); in SetHostNames()
878 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in Close() local
881 if ( SUCCEEDED( hr ) && pOleObject ) in Close()
883 hr = pOleObject->Close( dwSaveOption ); in Close()
884 hr = CoDisconnectObject( (IUnknown*)(IPersistStorage*)this, 0 ); in Close()
901 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in SetMoniker() local
904 if ( SUCCEEDED( hr ) && pOleObject ) in SetMoniker()
918 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in GetMoniker() local
921 if ( SUCCEEDED( hr ) && pOleObject ) in GetMoniker()
935 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in InitFromData() local
938 if ( SUCCEEDED( hr ) && pOleObject ) in InitFromData()
952 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in GetClipboardData() local
955 if ( SUCCEEDED( hr ) && pOleObject ) in GetClipboardData()
976 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in DoVerb() local
981 if ( SUCCEEDED( hr ) && pOleObject ) in DoVerb()
984 hr = pOleObject->DoVerb( iVerb, pMsg, pActiveSite, nLong, hWin, pRect ); in DoVerb()
985 if ( SUCCEEDED( hr ) ) in DoVerb()
990 return hr; in DoVerb()
1006 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in EnumVerbs() local
1009 if ( SUCCEEDED( hr ) && pOleObject ) in EnumVerbs()
1024 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in Update() local
1027 if ( SUCCEEDED( hr ) && pOleObject ) in Update()
1041 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in IsUpToDate() local
1044 if ( SUCCEEDED( hr ) && pOleObject ) in IsUpToDate()
1068 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in GetUserType() local
1071 if ( SUCCEEDED( hr ) && pOleObject ) in GetUserType()
1085 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in SetExtent() local
1088 if ( SUCCEEDED( hr ) && pOleObject ) in SetExtent()
1102 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in GetExtent() local
1105 if ( SUCCEEDED( hr ) && pOleObject ) in GetExtent()
1130 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in Advise() local
1133 if ( SUCCEEDED( hr ) && pOleObject ) in Advise()
1162 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in Unadvise() local
1165 if ( SUCCEEDED( hr ) && pOleObject ) in Unadvise()
1206 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in GetMiscStatus() local
1209 if ( SUCCEEDED( hr ) && pOleObject ) in GetMiscStatus()
1223 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleObject, (void**)&pOleObject ); in SetColorScheme() local
1226 if ( SUCCEEDED( hr ) && pOleObject ) in SetColorScheme()
1241 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in GetData() local
1244 if ( SUCCEEDED( hr ) && pIDataObject ) in GetData()
1258 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in GetDataHere() local
1261 if ( SUCCEEDED( hr ) && pIDataObject ) in GetDataHere()
1275 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in QueryGetData() local
1278 if ( SUCCEEDED( hr ) && pIDataObject ) in QueryGetData()
1292 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in GetCanonicalFormatEtc() local
1295 if ( SUCCEEDED( hr ) && pIDataObject ) in GetCanonicalFormatEtc()
1309 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in SetData() local
1312 if ( SUCCEEDED( hr ) && pIDataObject ) in SetData()
1326 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in EnumFormatEtc() local
1329 if ( SUCCEEDED( hr ) && pIDataObject ) in EnumFormatEtc()
1354 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in DAdvise() local
1357 if ( SUCCEEDED( hr ) && pIDataObject ) in DAdvise()
1387 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in DUnadvise() local
1390 if ( SUCCEEDED( hr ) && pIDataObject ) in DUnadvise()
1413 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDataObject, (void**)&pIDataObject ); in EnumDAdvise() local
1416 if ( SUCCEEDED( hr ) && pIDataObject ) in EnumDAdvise()
1431 HRESULT hr = m_pDefHandler->QueryInterface( IID_IRunnableObject, (void**)&pIRunObj ); in GetRunningClass() local
1434 if ( SUCCEEDED( hr ) && pIRunObj ) in GetRunningClass()
1448 HRESULT hr = m_pDefHandler->QueryInterface( IID_IRunnableObject, (void**)&pIRunObj ); in Run() local
1451 if ( SUCCEEDED( hr ) && pIRunObj ) in Run()
1465 HRESULT hr = m_pDefHandler->QueryInterface( IID_IRunnableObject, (void**)&pIRunObj ); in IsRunning() local
1468 if ( SUCCEEDED( hr ) && pIRunObj ) in IsRunning()
1483 HRESULT hr = m_pDefHandler->QueryInterface( IID_IRunnableObject, (void**)&pIRunObj ); in LockRunning() local
1486 if ( SUCCEEDED( hr ) && pIRunObj ) in LockRunning()
1500 HRESULT hr = m_pDefHandler->QueryInterface( IID_IRunnableObject, (void**)&pIRunObj ); in SetContainedObject() local
1503 if ( SUCCEEDED( hr ) && pIRunObj ) in SetContainedObject()
1519 HRESULT hr = m_pDefHandler->QueryInterface( IID_IViewObject, (void**)&pIViewObject ); in Draw() local
1522 if ( SUCCEEDED( hr ) && pIViewObject ) in Draw()
1536 HRESULT hr = m_pDefHandler->QueryInterface( IID_IViewObject, (void**)&pIViewObject ); in GetColorSet() local
1539 if ( SUCCEEDED( hr ) && pIViewObject ) in GetColorSet()
1553 HRESULT hr = m_pDefHandler->QueryInterface( IID_IViewObject, (void**)&pIViewObject ); in Freeze() local
1556 if ( SUCCEEDED( hr ) && pIViewObject ) in Freeze()
1570 HRESULT hr = m_pDefHandler->QueryInterface( IID_IViewObject, (void**)&pIViewObject ); in Unfreeze() local
1573 if ( SUCCEEDED( hr ) && pIViewObject ) in Unfreeze()
1595 HRESULT hr = m_pDefHandler->QueryInterface( IID_IViewObject, (void**)&pIViewObject ); in SetAdvise() local
1598 if ( SUCCEEDED( hr ) && pIViewObject ) in SetAdvise()
1645 HRESULT hr = m_pDefHandler->QueryInterface( IID_IViewObject2, (void**)&pIViewObject2 ); in GetExtent() local
1648 if ( SUCCEEDED( hr ) && pIViewObject2 ) in GetExtent()
1665 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleWindow, (void**)&pIOleWindow ); in GetWindow() local
1668 if ( SUCCEEDED( hr ) && pIOleWindow ) in GetWindow()
1682 HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleWindow, (void**)&pIOleWindow ); in ContextSensitiveHelp() local
1685 if ( SUCCEEDED( hr ) && pIOleWindow ) in ContextSensitiveHelp()
1701 … HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleInPlaceObject, (void**)&pIOleInPlaceObject ); in InPlaceDeactivate() local
1704 if ( SUCCEEDED( hr ) && pIOleInPlaceObject ) in InPlaceDeactivate()
1718 … HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleInPlaceObject, (void**)&pIOleInPlaceObject ); in UIDeactivate() local
1721 if ( SUCCEEDED( hr ) && pIOleInPlaceObject ) in UIDeactivate()
1735 … HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleInPlaceObject, (void**)&pIOleInPlaceObject ); in SetObjectRects() local
1738 if ( SUCCEEDED( hr ) && pIOleInPlaceObject ) in SetObjectRects()
1752 … HRESULT hr = m_pDefHandler->QueryInterface( IID_IOleInPlaceObject, (void**)&pIOleInPlaceObject ); in ReactivateAndUndo() local
1755 if ( SUCCEEDED( hr ) && pIOleInPlaceObject ) in ReactivateAndUndo()
1771 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDispatch, (void**)&pIDispatch ); in GetTypeInfoCount() local
1774 if ( SUCCEEDED( hr ) && pIDispatch ) in GetTypeInfoCount()
1788 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDispatch, (void**)&pIDispatch ); in GetTypeInfo() local
1791 if ( SUCCEEDED( hr ) && pIDispatch ) in GetTypeInfo()
1805 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDispatch, (void**)&pIDispatch ); in GetIDsOfNames() local
1808 if ( SUCCEEDED( hr ) && pIDispatch ) in GetIDsOfNames()
1822 HRESULT hr = m_pDefHandler->QueryInterface( IID_IDispatch, (void**)&pIDispatch ); in Invoke() local
1825 if ( SUCCEEDED( hr ) && pIDispatch ) in Invoke()
1864 … HRESULT hr = m_rOwnDocument.GetDefHandler()->QueryInterface( IID_IOleCache, (void**)&pIOleCache ); in Cache() local
1867 if ( SUCCEEDED( hr ) && pIOleCache ) in Cache()
1881 … HRESULT hr = m_rOwnDocument.GetDefHandler()->QueryInterface( IID_IOleCache, (void**)&pIOleCache ); in Uncache() local
1884 if ( SUCCEEDED( hr ) && pIOleCache ) in Uncache()
1898 … HRESULT hr = m_rOwnDocument.GetDefHandler()->QueryInterface( IID_IOleCache, (void**)&pIOleCache ); in EnumCache() local
1901 if ( SUCCEEDED( hr ) && pIOleCache ) in EnumCache()
1915 … HRESULT hr = m_rOwnDocument.GetDefHandler()->QueryInterface( IID_IOleCache, (void**)&pIOleCache ); in InitCache() local
1918 if ( SUCCEEDED( hr ) && pIOleCache ) in InitCache()
1932 … HRESULT hr = m_rOwnDocument.GetDefHandler()->QueryInterface( IID_IOleCache, (void**)&pIOleCache ); in SetData() local
1935 if ( SUCCEEDED( hr ) && pIOleCache ) in SetData()
1950 …HRESULT hr = m_rOwnDocument.GetDefHandler()->QueryInterface( IID_IOleCache2, (void**)&pIOleCache2 … in UpdateCache() local
1953 if ( SUCCEEDED( hr ) && pIOleCache2 ) in UpdateCache()
1967 …HRESULT hr = m_rOwnDocument.GetDefHandler()->QueryInterface( IID_IOleCache2, (void**)&pIOleCache2 … in DiscardCache() local
1970 if ( SUCCEEDED( hr ) && pIOleCache2 ) in DiscardCache()