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.

30 lines
778 B

  1. // Gemplus (C) 2000
  2. // Version 1.0
  3. // Author: Sergey Ivanov
  4. // Date of creation - 18.05.2000
  5. // Change log:
  6. //
  7. #ifndef WDEM_SEM_INT
  8. #define WDM_SEM_INT
  9. #include "generic.h"
  10. #include "semaphore.h"
  11. #pragma PAGEDCODE
  12. class CWDMSemaphore: public CSemaphore
  13. {
  14. public:
  15. NTSTATUS m_Status;
  16. SAFE_DESTRUCTORS();
  17. virtual VOID dispose(VOID){self_delete();};
  18. protected:
  19. CWDMSemaphore(){m_Status = STATUS_SUCCESS;};
  20. virtual ~CWDMSemaphore(){};
  21. public:
  22. static CSemaphore* create(VOID);
  23. virtual VOID initialize(IN PRKSEMAPHORE Semaphore, IN LONG Count, IN LONG Limit);
  24. virtual LONG release(IN PRKSEMAPHORE Semaphore,IN KPRIORITY Increment,IN LONG Adjustment,IN BOOLEAN Wait);
  25. virtual LONG getState(IN PRKSEMAPHORE Semaphore);
  26. };
  27. #endif//SEMAPHORE