IPERSTMI.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /*
  2.  * IPERSTMI.H
  3.  *
  4.  * Definitions of a template IPersistStreamInit interface
  5.  * implementation.
  6.  *
  7.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  8.  *
  9.  * Kraig Brockschmidt, Microsoft
  10.  * Internet  :  kraigb@microsoft.com
  11.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  12.  */
  13. #ifndef _IPERSTMI_H_
  14. #define _IPERSTMI_H_
  15. #define INC_CONTROLS
  16. #include <inole.h>
  17. class CImpIPersistStreamInit;
  18. typedef class CImpIPersistStreamInit *PCImpIPersistStreamInit;
  19. class CImpIPersistStreamInit : public IPersistStreamInit
  20.     {
  21.     protected:
  22.         ULONG           m_cRef;      //Interface reference count
  23.         LPVOID          m_pObj;      //Backpointer to the object
  24.         LPUNKNOWN       m_pUnkOuter; //For delegation
  25.     public:
  26.         CImpIPersistStreamInit(LPVOID, LPUNKNOWN);
  27.         ~CImpIPersistStreamInit(void);
  28.         STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  29.         STDMETHODIMP_(ULONG) AddRef(void);
  30.         STDMETHODIMP_(ULONG) Release(void);
  31.         STDMETHODIMP GetClassID(LPCLSID);
  32.         STDMETHODIMP IsDirty(void);
  33.         STDMETHODIMP Load(LPSTREAM);
  34.         STDMETHODIMP Save(LPSTREAM, BOOL);
  35.         STDMETHODIMP GetSizeMax(ULARGE_INTEGER *);
  36.         STDMETHODIMP InitNew(void);
  37.     };
  38. #endif  //_IPERSTMI_H_