ConnectionAdvisor.h
上传用户:fda_625
上传日期:2007-01-02
资源大小:32k
文件大小:1k
源码类别:

文件操作

开发平台:

Visual C++

  1. #if !defined(AFX_CONNECTIONADVISOR_H__10B0E294_B541_11D2_A0A2_0080C7F3B56B__INCLUDED_)
  2. #define AFX_CONNECTIONADVISOR_H__10B0E294_B541_11D2_A0A2_0080C7F3B56B__INCLUDED_
  3. /*----------------------------------------------------------------------------*/
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. /*----------------------------------------------------------------------------*/
  8. class CConnectionAdvisor  
  9. {
  10. public:
  11. CConnectionAdvisor(REFIID iid);
  12. BOOL Advise(IUnknown* pSink, IUnknown* pSource);
  13. BOOL Unadvise();
  14. virtual ~CConnectionAdvisor();
  15. private:
  16. CConnectionAdvisor();
  17. CConnectionAdvisor(const CConnectionAdvisor& ConnectionAdvisor);
  18. REFIID m_iid;
  19. IConnectionPoint* m_pConnectionPoint;
  20. DWORD m_AdviseCookie;
  21. };
  22. /*----------------------------------------------------------------------------*/
  23. #endif // !defined(AFX_CONNECTIONADVISOR_H__10B0E294_B541_11D2_A0A2_0080C7F3B56B__INCLUDED_)