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.

80 lines
2.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation
  4. Module Name:
  5. IASEnumerableAttributeEditor.h
  6. Abstract:
  7. Declaration of the CIASEnumerableAttributeEditor class.
  8. This class is the C++ implementation of the IIASAttributeEditor interface on
  9. the Enumerable Attribute Editor COM object.
  10. See IASEnumerableAttributeEditor.cpp for implementation.
  11. Revision History:
  12. mmaguire 06/25/98 - created
  13. --*/
  14. //////////////////////////////////////////////////////////////////////////////
  15. #if !defined(_ENUMERABLE_ATTRIBUTE_EDITOR_H_)
  16. #define _ENUMERABLE_ATTRIBUTE_EDITOR_H_
  17. #pragma once
  18. //////////////////////////////////////////////////////////////////////////////
  19. // BEGIN INCLUDES
  20. //
  21. // where we can find what this class derives from:
  22. //
  23. #include "IASAttributeEditor.h"
  24. //
  25. // where we can find what this class has or uses:
  26. //
  27. //
  28. // END INCLUDES
  29. //////////////////////////////////////////////////////////////////////////////
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CIASEnumerableAttributeEditor
  32. class ATL_NO_VTABLE CIASEnumerableAttributeEditor :
  33. public CComObjectRootEx<CComSingleThreadModel>,
  34. public CComCoClass<CIASEnumerableAttributeEditor, &CLSID_IASEnumerableAttributeEditor>,
  35. public CIASAttributeEditor
  36. {
  37. public:
  38. CIASEnumerableAttributeEditor()
  39. {
  40. }
  41. DECLARE_NO_REGISTRY()
  42. BEGIN_COM_MAP(CIASEnumerableAttributeEditor)
  43. COM_INTERFACE_ENTRY(IIASAttributeEditor)
  44. COM_INTERFACE_ENTRY(IDispatch)
  45. END_COM_MAP()
  46. // IIASAttributeEditor overrides
  47. protected:
  48. STDMETHOD(SetAttributeValue)(VARIANT *pValue);
  49. STDMETHOD(ShowEditor)( /*[in, out]*/ BSTR *pReserved );
  50. STDMETHOD(get_ValueAsString)(/*[out, retval]*/ BSTR *pVal);
  51. STDMETHOD(put_ValueAsString)(/*[in]*/ BSTR newVal);
  52. STDMETHOD(SetAttributeSchema)(IIASAttributeInfo *pIASAttributeInfo);
  53. private:
  54. long ConvertEnumerateDescriptionToOrdinal( BSTR bstrDescription );
  55. long ConvertEnumerateIDToOrdinal( long ID );
  56. CComPtr<IIASEnumerableAttributeInfo> m_spIASEnumerableAttributeInfo;
  57. };
  58. #endif // _ENUMERABLE_ATTRIBUTE_EDITOR_H_