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.

54 lines
1.6 KiB

  1. // Marker.h: interface for the CMarker class.
  2. //
  3. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  4. // 2000. This computer program includes Confidential, Proprietary
  5. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  6. // use, disclosure, and/or reproduction is prohibited unless authorized
  7. // in writing. All Rights Reserved.
  8. //////////////////////////////////////////////////////////////////////
  9. #if !defined(AFX_MARKER_H__8B7450C2_A2FD_11D3_A5D7_00104BD32DA8__INCLUDED_)
  10. #define AFX_MARKER_H__8B7450C2_A2FD_11D3_A5D7_00104BD32DA8__INCLUDED_
  11. #if _MSC_VER > 1000
  12. #pragma once
  13. #endif // _MSC_VER > 1000
  14. #include <windows.h>
  15. #include <rpc.h>
  16. #include "DllSymDefn.h"
  17. namespace iop
  18. {
  19. class IOPDLL_API CMarker
  20. {
  21. public:
  22. typedef __int64 MarkerCounter;
  23. typedef enum { PinMarker=0,
  24. WriteMarker=1,
  25. // ... add more above this line.
  26. MaximumMarker // Reserved name.
  27. } MarkerType;
  28. explicit CMarker(MarkerType const &Type);
  29. CMarker(CMarker const &Marker);
  30. CMarker(MarkerType Type, UUID const &GUID, const MarkerCounter &Counter);
  31. virtual ~CMarker();
  32. CMarker& operator=(const CMarker &rhs);
  33. friend bool IOPDLL_API __cdecl operator==(const CMarker &lhs, const CMarker &rhs);
  34. friend bool IOPDLL_API __cdecl operator!=(const CMarker &lhs, const CMarker &rhs);
  35. private:
  36. MarkerType m_Type;
  37. MarkerCounter m_Counter;
  38. UUID m_GUID;
  39. };
  40. } // namespace iop
  41. #endif // !defined(AFX_MARKER_H__8B7450C2_A2FD_11D3_A5D7_00104BD32DA8__INCLUDED_)