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.

44 lines
1.1 KiB

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