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.

67 lines
1.9 KiB

  1. /*****************************************************************************
  2. * Copyright (c) 1998-2001 Microsoft Corporation, All Rights Reserved
  3. *
  4. * All Rights Reserved
  5. *
  6. * This software is furnished under a license and may be used and copied
  7. * only in accordance with the terms of such license and with the inclusion
  8. * of the above copyright notice. This software or any other copies thereof
  9. * may not be provided or otherwise made available to any other person. No
  10. * title to and ownership of the software is hereby transferred.
  11. *****************************************************************************/
  12. //============================================================================
  13. //
  14. // CWaitableObject.h -- Pure virtual base class for waitable objects
  15. //
  16. // Copyright (c) 1998-2001 Microsoft Corporation, All Rights Reserved
  17. //
  18. // Revisions: 6/26/98 a-kevhu Created
  19. //
  20. //============================================================================
  21. #ifndef __CWAITABLEOBJECT_H__
  22. #define __CWAITABLEOBJECT_H__
  23. #include "CGlobal.h"
  24. class CWaitableObject {
  25. // class has no member data, it's only purpose is to provide
  26. // a base class for waitable objects which have internal HANDLES
  27. // and Status...
  28. // class needs no construtor, since it has no members...
  29. public:
  30. // get the internal handle...
  31. // this member function is virtual to assure
  32. // this function appears in all derived classes
  33. // and pure (= 0) so that this class cannot be instantiated...
  34. virtual HANDLE GetHandle(void) const = 0;
  35. // get the internal object status...
  36. // this member function is virtual to assure
  37. // this function appears in all derived classes
  38. // and pure (= 0) so that this class cannot be instantiated...
  39. virtual DWORD Status(void) const = 0;
  40. };
  41. #endif