blob: cd15e5bb33af4c2a0c117575f839281333b8f9fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
//**********************************************************************
// File name: IAS.H
//
// Definition of CAdviseSink
//
// Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved.
//**********************************************************************
#if !defined( _IAS_H_ )
#define _IAS_H_
#include <assert.h>
class CSimpleSite;
interface CAdviseSink : public IAdviseSink
{
CSimpleSite FAR * m_pSite;
CAdviseSink(CSimpleSite FAR * pSite)
{
TestDebugOut(TEXT("In IAS's constructor\r\n"));
m_pSite = pSite;
};
~CAdviseSink()
{
TestDebugOut(TEXT("In IAS's destructor\r\n"));
} ;
STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppv);
STDMETHODIMP_(ULONG) AddRef ();
STDMETHODIMP_(ULONG) Release ();
// *** IAdviseSink methods ***
STDMETHODIMP_(void) OnDataChange (FORMATETC FAR* pFormatetc,
STGMEDIUM FAR* pStgmed);
STDMETHODIMP_(void) OnViewChange (DWORD dwAspect, LONG lindex);
STDMETHODIMP_(void) OnRename (LPMONIKER pmk);
STDMETHODIMP_(void) OnSave ();
STDMETHODIMP_(void) OnClose ();
};
#endif
|