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.

39 lines
647 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: signal.hxx
  7. //
  8. // Contents: Signal class delcrations
  9. //
  10. // Classes: CSignal
  11. //
  12. // Functions:
  13. //
  14. // History: 29-Sep-93 CarlH Created
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef SIGNAL_HXX
  18. #define SIGNAL_HXX
  19. class CSignal
  20. {
  21. public:
  22. CSignal(WCHAR const *pwszName);
  23. ~CSignal(void);
  24. DWORD Wait(DWORD dwTimeout = INFINITE);
  25. DWORD Signal(void);
  26. private:
  27. WCHAR *_pwszName;
  28. HANDLE _hevent;
  29. };
  30. #endif