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.4 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation
  4. Module Name:
  5. IASEnumerableAttributeInfo.h
  6. Abstract:
  7. Declaration of the CEnumerableAttributeInfo class.
  8. This class is the C++ implementation of the IIASEnumerableAttributeInfo interface on
  9. the EnumerableAttributeInfo COM object.
  10. See IASEnumerableAttributeInfo.cpp for implementation.
  11. Revision History:
  12. mmaguire 06/25/98 - created
  13. --*/
  14. //////////////////////////////////////////////////////////////////////////////
  15. #if !defined(_ENUMERABLE_SCHEMA_ATTRIBUTE_H_)
  16. #define _ENUMERABLE_SCHEMA_ATTRIBUTE_H_
  17. #pragma once
  18. //////////////////////////////////////////////////////////////////////////////
  19. // BEGIN INCLUDES
  20. //
  21. // where we can find what this class derives from:
  22. //
  23. #include "IASBaseAttributeInfo.h"
  24. //
  25. // where we can find what this class has or uses:
  26. //
  27. #include <vector>
  28. //
  29. // END INCLUDES
  30. //////////////////////////////////////////////////////////////////////////////
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CEnumerableAttributeInfo
  33. class ATL_NO_VTABLE CEnumerableAttributeInfo :
  34. public CComObjectRootEx<CComSingleThreadModel>,
  35. public CComCoClass<CEnumerableAttributeInfo, &CLSID_IASEnumerableAttributeInfo>,
  36. public IDispatchImpl<IIASEnumerableAttributeInfo, &IID_IIASEnumerableAttributeInfo, &LIBID_NAPMMCLib>,
  37. public CBaseAttributeInfo
  38. {
  39. public:
  40. CEnumerableAttributeInfo()
  41. {
  42. }
  43. DECLARE_NO_REGISTRY()
  44. DECLARE_CLASSFACTORY()
  45. BEGIN_COM_MAP(CEnumerableAttributeInfo)
  46. COM_INTERFACE_ENTRY(IIASAttributeInfo)
  47. COM_INTERFACE_ENTRY(IIASEnumerableAttributeInfo)
  48. COM_INTERFACE_ENTRY2(IDispatch, IIASEnumerableAttributeInfo)
  49. END_COM_MAP()
  50. // IEnumerableAttributeInfo
  51. public:
  52. STDMETHOD(get_CountEnumerateDescription)(/*[out, retval]*/ long *pVal);
  53. STDMETHOD(AddEnumerateDescription)( /*[in]*/ BSTR newVal);
  54. STDMETHOD(get_CountEnumerateID)(/*[out, retval]*/ long *pVal);
  55. STDMETHOD(get_EnumerateDescription)(long index, /*[out, retval]*/ BSTR *pVal);
  56. STDMETHOD(AddEnumerateID)( /*[in]*/ long newVal);
  57. STDMETHOD(get_EnumerateID)(long index, /*[out, retval]*/ long *pVal);
  58. private:
  59. std::vector<long> m_veclEnumerateID;
  60. std::vector<CComBSTR> m_vecbstrEnumerateDescription;
  61. };
  62. #endif // _ENUMERABLE_SCHEMA_ATTRIBUTE_H_