Source code of Windows XP (NT5)
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.

70 lines
1.3 KiB

  1. #ifndef __EVENHAND_H
  2. #define __EVENHAND_H
  3. //#include "dbgeng.h"
  4. //----------------------------------------------------------------------------
  5. //
  6. // Event callbacks.
  7. //
  8. //----------------------------------------------------------------------------
  9. class CEMSessionThread;
  10. class EventCallbacks : public DebugBaseEventCallbacks
  11. {
  12. public:
  13. CEMSessionThread *m_pEMThread;
  14. public:
  15. // IUnknown.
  16. STDMETHOD_(ULONG, AddRef)(
  17. THIS
  18. );
  19. STDMETHOD_(ULONG, Release)(
  20. THIS
  21. );
  22. // IDebugEventCallbacks.
  23. STDMETHOD(GetInterestMask)(
  24. THIS_
  25. OUT PULONG Mask
  26. );
  27. // Symbol state has changed.
  28. STDMETHOD(ChangeSymbolState)(
  29. THIS_
  30. IN ULONG Flags,
  31. IN ULONG64 Argument
  32. );
  33. STDMETHOD(ChangeDebuggeeState)(
  34. THIS_
  35. IN ULONG Flags,
  36. IN ULONG64 Argument
  37. );
  38. STDMETHOD(ChangeEngineState)(
  39. THIS_
  40. IN ULONG Flags,
  41. IN ULONG64 Argument
  42. );
  43. STDMETHOD(Exception)(
  44. THIS_
  45. IN PEXCEPTION_RECORD64 Exception,
  46. IN ULONG FirstChance
  47. );
  48. STDMETHOD(Breakpoint)(
  49. THIS_
  50. IN PDEBUG_BREAKPOINT Bp
  51. );
  52. STDMETHOD(SessionStatus)(
  53. THIS_
  54. IN ULONG Status
  55. );
  56. STDMETHOD(ExitProcess)(
  57. THIS_
  58. IN ULONG ExitCode
  59. );
  60. };
  61. #endif // __EVENHAND_H