IADVSINK.H

/* 
* IADVSINK.H
*
* Definitions of a temmplate IAdviseSink interface implementation.
*
* Copyright (c)1993-1996 Microsoft Corporation, All Rights Reserved
*
* Kraig Brockschmidt, Software Design Engineer
* Microsoft Systems Developer Relations
*
* Internet : kraigb@microsoft.com
* Compuserve: >INTERNET:kraigb@microsoft.com
*/


#ifndef _IADVSINK_H_
#define _IADVSINK_H_

class CImpIAdviseSink;
typedef class CImpIAdviseSink *PIMPIADVISESINK;

class CImpIAdviseSink : public IAdviseSink
{
protected:
ULONG m_cRef; //Interface reference count
LPVOID m_pObj; //Back pointer 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_