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.

39 lines
1.1 KiB

  1. #ifndef WDM_EV_INT
  2. #define WDM_EV_INT
  3. #include "generic.h"
  4. #include "event.h"
  5. #pragma PAGEDCODE
  6. class CWDMEvent : public CEvent
  7. {
  8. public:
  9. NTSTATUS m_Status;
  10. SAFE_DESTRUCTORS();
  11. virtual VOID dispose(VOID){self_delete();};
  12. protected:
  13. CWDMEvent(){m_Status = STATUS_SUCCESS;};
  14. virtual ~CWDMEvent(){};
  15. public:
  16. static CEvent* create(VOID);
  17. virtual VOID initialize(IN PRKEVENT Event,IN EVENT_TYPE Type,IN BOOLEAN State);
  18. virtual VOID clear(PRKEVENT Event);
  19. virtual LONG reset(PRKEVENT Event);
  20. virtual LONG set(PRKEVENT Event,IN KPRIORITY Increment,IN BOOLEAN Wait);
  21. virtual NTSTATUS waitForSingleObject (PVOID Object,
  22. KWAIT_REASON WaitReason,IN KPROCESSOR_MODE WaitMode,
  23. BOOLEAN Alertable,
  24. PLARGE_INTEGER Timeout);
  25. virtual NTSTATUS waitForMultipleObjects(ULONG Count,
  26. PVOID Object[],
  27. WAIT_TYPE WaitType,
  28. KWAIT_REASON WaitReason,
  29. KPROCESSOR_MODE WaitMode,
  30. BOOLEAN Alertable,
  31. PLARGE_INTEGER Timeout,
  32. PKWAIT_BLOCK WaitBlockArray);
  33. };
  34. #endif//WDM_EV_INT