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.

43 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. CSimpleSite FAR * m_pSite;
  15. CAdviseSink(CSimpleSite FAR * pSite)
  16. {
  17. TestDebugOut("In IAS's constructor\r\n");
  18. m_pSite = pSite;
  19. };
  20. ~CAdviseSink()
  21. {
  22. TestDebugOut("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, STGMEDIUM FAR* pStgmed);
  29. STDMETHODIMP_(void) OnViewChange (DWORD dwAspect, LONG lindex);
  30. STDMETHODIMP_(void) OnRename (LPMONIKER pmk);
  31. STDMETHODIMP_(void) OnSave ();
  32. STDMETHODIMP_(void) OnClose ();
  33. };
  34. #endif