Leaked source code of windows server 2003
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.

53 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 <storage.h>
  12. #include "obj.h"
  13. class CSimpSvrObj;
  14. interface CPersistStorage : IPersistStorage
  15. {
  16. private:
  17. CSimpSvrObj FAR * m_lpObj;
  18. int m_nCount;
  19. BOOL m_fSameAsLoad;
  20. public:
  21. CPersistStorage::CPersistStorage(CSimpSvrObj FAR * lpSimpSvrObj)
  22. {
  23. m_lpObj = lpSimpSvrObj;
  24. m_nCount = 0;
  25. };
  26. CPersistStorage::~CPersistStorage() {};
  27. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  28. STDMETHODIMP_(ULONG) AddRef ();
  29. STDMETHODIMP_(ULONG) Release ();
  30. STDMETHODIMP InitNew (LPSTORAGE pStg);
  31. STDMETHODIMP GetClassID ( LPCLSID lpClassID) ;
  32. STDMETHODIMP Save ( LPSTORAGE pStgSave, BOOL fSameAsLoad) ;
  33. STDMETHODIMP SaveCompleted ( LPSTORAGE pStgNew);
  34. STDMETHODIMP Load ( LPSTORAGE pStg);
  35. STDMETHODIMP IsDirty ();
  36. STDMETHODIMP HandsOffStorage ();
  37. void ReleaseStreamsAndStorage();
  38. void OpenStreams(LPSTORAGE lpStg);
  39. void CreateStreams(LPSTORAGE lpStg);
  40. void CreateStreams(LPSTORAGE lpStg, LPSTREAM FAR *lpTempColor, LPSTREAM FAR *lpTempSize);
  41. };
  42. #endif