1
0

evntsink.h 902 B

12345678910111213141516171819202122232425
  1. #ifndef _EVNTSINK_H
  2. #define _EVNTSINK_H
  3. class CEventSink : public IDispatch
  4. {
  5. private:
  6. ULONG m_cRefs; // ref count
  7. public:
  8. CEventSink();
  9. public:
  10. // *** IUnknown Methods ***
  11. STDMETHOD(QueryInterface)(REFIID riid, PVOID *ppvObject);
  12. STDMETHOD_(ULONG, AddRef)(void);
  13. STDMETHOD_(ULONG, Release)(void);
  14. // *** IDispatch Methods ***
  15. STDMETHOD (GetIDsOfNames)(REFIID riid, OLECHAR FAR* FAR* rgszNames, unsigned int cNames, LCID lcid, DISPID FAR* rgdispid);
  16. STDMETHOD (GetTypeInfo)(unsigned int itinfo, LCID lcid, ITypeInfo FAR* FAR* pptinfo);
  17. STDMETHOD (GetTypeInfoCount)(unsigned int FAR * pctinfo);
  18. STDMETHOD (Invoke)(DISPID dispid, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, EXCEPINFO FAR * pexecinfo, unsigned int FAR *puArgErr);
  19. };
  20. #endif