home *** CD-ROM | disk | FTP | other *** search
- /*
- * IADVSINK.H
- *
- * Definitions of a temmplate IAdviseSink interface implementation.
- *
- * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
- *
- * Kraig Brockschmidt, Microsoft
- * Internet : kraigb@microsoft.com
- * Compuserve: >INTERNET:kraigb@microsoft.com
- */
-
-
- #ifndef _IADVSINK_H_
- #define _IADVSINK_H_
-
- #include <inole.h>
-
- class CImpIAdviseSink;
- typedef class CImpIAdviseSink *PCImpIAdviseSink;
-
- class CImpIAdviseSink : public IAdviseSink
- {
- protected:
- ULONG m_cRef; //Interface reference count
- LPVOID m_pObj; //Backpointer to the object
- LPUNKNOWN m_pUnkOuter; //For delegation
-
- public:
- CImpIAdviseSink(LPVOID, LPUNKNOWN);
- ~CImpIAdviseSink(void);
-
- STDMETHODIMP QueryInterface(REFIID, LPVOID *);
- STDMETHODIMP_(ULONG) AddRef(void);
- STDMETHODIMP_(ULONG) Release(void);
-
- STDMETHODIMP_(void) OnDataChange(LPFORMATETC, LPSTGMEDIUM);
- STDMETHODIMP_(void) OnViewChange(DWORD, LONG);
- STDMETHODIMP_(void) OnRename(LPMONIKER);
- STDMETHODIMP_(void) OnSave(void);
- STDMETHODIMP_(void) OnClose(void);
- };
-
-
- #endif //_IADVSINK_H_
-