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.

64 lines
1.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // attrdnary.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Declares the class AttributeDictionary.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 04/13/2000 Original version.
  16. //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. #ifndef ATTRDNARY_H
  19. #define ATTRDNARY_H
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif
  23. #include <atlbase.h>
  24. extern CComModule _Module;
  25. #include <atlcom.h>
  26. #include <datastore2.h>
  27. #include <iasuuid.h>
  28. ///////////////////////////////////////////////////////////////////////////////
  29. //
  30. // CLASS
  31. //
  32. // AttributeDictionary
  33. //
  34. // DESCRIPTION
  35. //
  36. // Provides an Automation compatible wrapper around the IAS attribute
  37. // dictionary.
  38. //
  39. ///////////////////////////////////////////////////////////////////////////////
  40. class AttributeDictionary
  41. : public CComObjectRootEx< CComMultiThreadModelNoCS >,
  42. public CComCoClass< AttributeDictionary, &__uuidof(AttributeDictionary) >,
  43. public IAttributeDictionary
  44. {
  45. public:
  46. DECLARE_NO_REGISTRY()
  47. DECLARE_NOT_AGGREGATABLE(AttributeDictionary)
  48. BEGIN_COM_MAP(AttributeDictionary)
  49. COM_INTERFACE_ENTRY_IID(__uuidof(IAttributeDictionary), IAttributeDictionary)
  50. END_COM_MAP()
  51. // IAttributeDictionary
  52. STDMETHOD(GetDictionary)(
  53. BSTR bstrPath,
  54. VARIANT* pVal
  55. );
  56. };
  57. #endif // ATTRDNARY_H