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.

56 lines
1.4 KiB

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