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.

66 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. faxpersist.h
  5. Abstract:
  6. This header prototypes my implementation of IPersistStream.
  7. Environment:
  8. WIN32 User Mode
  9. Author:
  10. Darwin Ouyang (t-darouy) 30-Sept-1997
  11. --*/
  12. #ifndef __FAX_PERSIST_STREAM_H_
  13. #define __FAX_PERSIST_STREAM_H_
  14. #include "resource.h"
  15. class CFaxSnapin; // forward decl
  16. class CFaxPersistStream : public IPersistStream
  17. {
  18. public:
  19. // constructor
  20. CFaxPersistStream()
  21. {
  22. m_bDirtyFlag = TRUE;
  23. m_pFaxSnapin = NULL;
  24. }
  25. // IPersistStream
  26. virtual HRESULT STDMETHODCALLTYPE GetClassID(
  27. /* [out] */ CLSID __RPC_FAR *pClassID);
  28. virtual HRESULT STDMETHODCALLTYPE IsDirty( void );
  29. virtual HRESULT STDMETHODCALLTYPE Load(
  30. /* [unique][in] */ IStream __RPC_FAR *pStm );
  31. virtual HRESULT STDMETHODCALLTYPE Save(
  32. /* [unique][in] */ IStream __RPC_FAR *pStm,
  33. /* [in] */ BOOL fClearDirty );
  34. virtual HRESULT STDMETHODCALLTYPE GetSizeMax(
  35. /* [out] */ ULARGE_INTEGER __RPC_FAR *pcbSize );
  36. void SetDirty( BOOL isDirty ) { m_bDirtyFlag = isDirty; }
  37. protected:
  38. CFaxSnapin * m_pFaxSnapin;
  39. BOOL m_bDirtyFlag;
  40. };
  41. #endif