Leaked source code of windows server 2003
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.2 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. CSimpleSite FAR * m_pSite;
  15. CAdviseSink(CSimpleSite FAR * pSite)
  16. {
  17. TestDebugOut(TEXT("In IAS's constructor\r\n"));
  18. m_pSite = pSite;
  19. };
  20. ~CAdviseSink()
  21. {
  22. TestDebugOut(TEXT("In IAS's destructor\r\n"));
  23. } ;
  24. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppv);
  25. STDMETHODIMP_(ULONG) AddRef ();
  26. STDMETHODIMP_(ULONG) Release ();
  27. // *** IAdviseSink methods ***
  28. STDMETHODIMP_(void) OnDataChange (FORMATETC FAR* pFormatetc,
  29. 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