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.

83 lines
2.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CUuid.h
  7. //
  8. // Description:
  9. // Header file for CUuid class.
  10. //
  11. // CUuid is a representation of a UUID (universally unique identifier)
  12. //
  13. // Implementation Files:
  14. // CUuid.cpp
  15. //
  16. // Maintained By:
  17. // Vij Vasu (Vvasu) 03-MAR-2000
  18. //
  19. //////////////////////////////////////////////////////////////////////////////
  20. // Make sure that this file is included only once per compile path.
  21. #pragma once
  22. //////////////////////////////////////////////////////////////////////////
  23. // Include Files
  24. //////////////////////////////////////////////////////////////////////////
  25. // Required by Rpcdce.h
  26. #include "rpc.h"
  27. // For UUID and related functions.
  28. #include <Rpcdce.h>
  29. //////////////////////////////////////////////////////////////////////////////
  30. //++
  31. //
  32. // class CUuid
  33. //
  34. // Description:
  35. // CUuid is a representation of a UUID (universally unique identifier)
  36. //
  37. //--
  38. //////////////////////////////////////////////////////////////////////////////
  39. class CUuid
  40. {
  41. public:
  42. //////////////////////////////////////////////////////////////////////////
  43. // Constructors and destructors
  44. //////////////////////////////////////////////////////////////////////////
  45. // Default constructor.
  46. CUuid();
  47. // Default destructor.
  48. ~CUuid();
  49. //////////////////////////////////////////////////////////////////////////
  50. // Public accessors
  51. //////////////////////////////////////////////////////////////////////////
  52. // Get the string that represents this UUID.
  53. const WCHAR *
  54. PszGetUuidString() const throw() { return m_pszStringUuid; }
  55. // Get the UUID of this object.
  56. const UUID &
  57. UuidGetUuid() const throw() { return m_uuid; }
  58. private:
  59. //////////////////////////////////////////////////////////////////////////
  60. // Private data
  61. //////////////////////////////////////////////////////////////////////////
  62. UUID m_uuid;
  63. WCHAR * m_pszStringUuid;
  64. }; //*** class CUuid