home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / interfac / iconnptc.h < prev    next >
C/C++ Source or Header  |  1996-05-21  |  1KB  |  46 lines

  1. /*
  2.  * ICONNPTC.H
  3.  *
  4.  * Header for template IConnectionPointContainer interface
  5.  * implementation.
  6.  *
  7.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  8.  *
  9.  * Kraig Brockschmidt, Microsoft
  10.  * Internet  :  kraigb@microsoft.com
  11.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  12.  */
  13.  
  14.  
  15. #ifndef _ICONNPTC_H_
  16. #define _ICONNPTC_H_
  17.  
  18. #define INC_CONTROLS
  19. #include <inole.h>
  20.  
  21. class CImpIConnectionPointContainer;
  22. typedef class CImpIConnectionPointContainer
  23.     *PCImpIConnectionPointContainer;
  24.  
  25. class CImpIConnectionPointContainer : public IConnectionPointContainer
  26.     {
  27.     protected:
  28.         ULONG           m_cRef;      //Interface reference count
  29.         LPVOID          m_pObj;      //Backpointer to the object
  30.         LPUNKNOWN       m_pUnkOuter; //For delegation
  31.  
  32.     public:
  33.         CImpIConnectionPointContainer(LPVOID, LPUNKNOWN);
  34.         ~CImpIConnectionPointContainer(void);
  35.  
  36.         STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  37.         STDMETHODIMP_(ULONG) AddRef(void);
  38.         STDMETHODIMP_(ULONG) Release(void);
  39.  
  40.         STDMETHODIMP EnumConnectionPoints(LPENUMCONNECTIONPOINTS *);
  41.         STDMETHODIMP FindConnectionPoint(REFIID, LPCONNECTIONPOINT *);
  42.     };
  43.  
  44.  
  45. #endif //_ICONNPTC_H_
  46.