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.

37 lines
1.3 KiB

  1. // SAFChannelNotifyIncident.h : Declaration of the CSAFChannelNotifyIncident
  2. #ifndef __SAFCHANNELNOTIFYINCIDENT_H_
  3. #define __SAFCHANNELNOTIFYINCIDENT_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CSAFChannelNotifyIncident
  7. class ATL_NO_VTABLE CSAFChannelNotifyIncident :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CSAFChannelNotifyIncident, &CLSID_SAFChannelNotifyIncident>,
  10. public IDispatchImpl<ISAFChannelNotifyIncident, &IID_ISAFChannelNotifyIncident, &LIBID_NOTIFYINCIDENTLib>
  11. {
  12. public:
  13. CSAFChannelNotifyIncident()
  14. {
  15. }
  16. DECLARE_REGISTRY_RESOURCEID(IDR_SAFCHANNELNOTIFYINCIDENT)
  17. DECLARE_PROTECT_FINAL_CONSTRUCT()
  18. BEGIN_COM_MAP(CSAFChannelNotifyIncident)
  19. COM_INTERFACE_ENTRY(ISAFChannelNotifyIncident)
  20. COM_INTERFACE_ENTRY(IDispatch)
  21. END_COM_MAP()
  22. // ISAFChannelNotifyIncident
  23. public:
  24. STDMETHOD(onChannelUpdated)(ISAFChannel * ch, long dwCode, long n);
  25. STDMETHOD(onIncidentUpdated)(ISAFChannel * ch, ISAFIncidentItem * inc, long n);
  26. STDMETHOD(onIncidentRemoved)(ISAFChannel * ch, ISAFIncidentItem * inc, long n);
  27. STDMETHOD(onIncidentAdded)(ISAFChannel * ch, ISAFIncidentItem * inc, long n);
  28. };
  29. #endif //__SAFCHANNELNOTIFYINCIDENT_H_