Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

  1. //**********************************************************************
  2. // File name: ips.h
  3. //
  4. // Definition of CPersistStorage
  5. //
  6. // Copyright (c) 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _IPS_H_)
  9. #define _IPS_H_
  10. #include <ole2.h>
  11. #include "obj.h"
  12. class CSimpSvrObj;
  13. interface CPersistStorage : IPersistStorage
  14. {
  15. private:
  16. CSimpSvrObj FAR * m_lpObj;
  17. BOOL m_fSameAsLoad;
  18. public:
  19. CPersistStorage::CPersistStorage(CSimpSvrObj FAR * lpSimpSvrObj)
  20. {
  21. m_lpObj = lpSimpSvrObj;
  22. };
  23. CPersistStorage::~CPersistStorage() {};
  24. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  25. STDMETHODIMP_(ULONG) AddRef ();
  26. STDMETHODIMP_(ULONG) Release ();
  27. STDMETHODIMP InitNew (LPSTORAGE pStg);
  28. STDMETHODIMP GetClassID ( LPCLSID lpClassID) ;
  29. STDMETHODIMP Save ( LPSTORAGE pStgSave, BOOL fSameAsLoad) ;
  30. STDMETHODIMP SaveCompleted ( LPSTORAGE pStgNew);
  31. STDMETHODIMP Load ( LPSTORAGE pStg);
  32. STDMETHODIMP IsDirty ();
  33. STDMETHODIMP HandsOffStorage ();
  34. void ReleaseStreamsAndStorage();
  35. void OpenStreams(LPSTORAGE lpStg);
  36. void CreateStreams(LPSTORAGE lpStg);
  37. void CreateStreams(LPSTORAGE lpStg, LPSTREAM FAR *lpTempColor, LPSTREAM FAR *lpTempSize);
  38. };
  39. #endif