HRESULT _IFUNC BOleInProcServer::Save(IStorage* pStgSave,BOOL fSameAsLoad) { LPOLECACHE2 pCache; if (SUCCEEDED(pDefHandler->QueryInterface(IID_IOleCache2, &(LPVOID)pCache))) { pCache->UpdateCache(this, ADVFCACHE_ONSAVE, NULL); pCache->Release(); } LPPERSISTSTORAGE pPersistCache; if (SUCCEEDED(pDefHandler->QueryInterface(IID_IPersistStorage, &(LPVOID)pPersistCache))) { pPersistCache->Save(pStgSave, fSameAsLoad); pPersistCache->Release(); } return BOleSite::Save(pStgSave, fSameAsLoad); }