IPS.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- //**********************************************************************
- // File name: ips.h
- //
- // Definition of CPersistStorage
- //
- // Copyright (c) 1993-1997 Microsoft Corporation. All rights reserved.
- //**********************************************************************
- #if !defined( _IPS_H_)
- #define _IPS_H_
- #include <ole2.h>
- //@@WTK WIN32, UNICODE
- //#include <storage.h>
- #include "obj.h"
- class CSimpSvrObj;
- interface CPersistStorage : IPersistStorage
- {
- private:
- CSimpSvrObj FAR * m_lpObj;
- int m_nCount;
- BOOL m_fSameAsLoad;
- public:
- CPersistStorage::CPersistStorage(CSimpSvrObj FAR * lpSimpSvrObj)
- {
- m_lpObj = lpSimpSvrObj;
- m_nCount = 0;
- };
- CPersistStorage::~CPersistStorage() {};
- STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
- STDMETHODIMP_(ULONG) AddRef ();
- STDMETHODIMP_(ULONG) Release ();
- STDMETHODIMP InitNew (LPSTORAGE pStg);
- STDMETHODIMP GetClassID ( LPCLSID lpClassID) ;
- STDMETHODIMP Save ( LPSTORAGE pStgSave, BOOL fSameAsLoad) ;
- STDMETHODIMP SaveCompleted ( LPSTORAGE pStgNew);
- STDMETHODIMP Load ( LPSTORAGE pStg);
- STDMETHODIMP IsDirty ();
- STDMETHODIMP HandsOffStorage ();
- void ReleaseStreamsAndStorage();
- void OpenStreams(LPSTORAGE lpStg);
- void CreateStreams(LPSTORAGE lpStg);
- void CreateStreams(LPSTORAGE lpStg, LPSTREAM FAR *lpTempColor, LPSTREAM FAR *lpTempSize);
- };
- #endif