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.

56 lines
1.0 KiB

  1. #ifndef _EVENTOP_H
  2. #define _EVENTOP_H
  3. typedef enum
  4. {
  5. OP_ADD_EVENT,
  6. OP_DEL_EVENT,
  7. OP_ADD_TRAP,
  8. OP_DEL_TRAP
  9. } tOperation;
  10. class COperation
  11. {
  12. protected:
  13. tOperation m_Operation;
  14. COperation *m_pNextOperation;
  15. DWORD CheckedStrToDword(DWORD & dwDword, char *szDword);
  16. public:
  17. COperation(tOperation operation);
  18. virtual ~COperation();
  19. virtual DWORD ParseCmdArgs() = 0;
  20. COperation* Insert(COperation *pOperation);
  21. COperation* GetNextOp();
  22. virtual DWORD ProcessCommand() = 0;
  23. };
  24. class COpEvents : public COperation
  25. {
  26. char *m_szEventSource;
  27. DWORD m_dwEventID;
  28. DWORD m_dwCount;
  29. DWORD m_dwTime;
  30. public:
  31. COpEvents(tOperation operation);
  32. ~COpEvents();
  33. DWORD ParseCmdArgs();
  34. DWORD ProcessCommand();
  35. };
  36. class COpTraps : public COperation
  37. {
  38. char *m_szCommunity;
  39. char *m_szAddress;
  40. public:
  41. COpTraps(tOperation operation);
  42. ~COpTraps();
  43. DWORD ParseCmdArgs();
  44. DWORD ProcessCommand();
  45. };
  46. #endif