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.

82 lines
2.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation
  4. Module Name:
  5. IASStringAttributeEditor.h
  6. Abstract:
  7. Declaration of the CIASStringAttributeEditor class.
  8. This class is the C++ implementation of the IIASAttributeEditor interface on
  9. the String Attribute Editor COM object.
  10. See IASStringAttributeEditor.cpp for implementation.
  11. Revision History:
  12. mmaguire 06/25/98 - created
  13. --*/
  14. //////////////////////////////////////////////////////////////////////////////
  15. #if !defined(_STRING_ATTRIBUTE_EDITOR_H_)
  16. #define _STRING_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. enum EStringType
  31. {
  32. STRING_TYPE_NULL = 0,
  33. STRING_TYPE_NORMAL,
  34. STRING_TYPE_UNICODE,
  35. STRING_TYPE_HEX_FROM_BINARY,
  36. };
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CIASStringAttributeEditor
  39. class ATL_NO_VTABLE CIASStringAttributeEditor :
  40. public CComObjectRootEx<CComSingleThreadModel>,
  41. public CComCoClass<CIASStringAttributeEditor, &CLSID_IASStringAttributeEditor>,
  42. public CIASAttributeEditor
  43. {
  44. public:
  45. CIASStringAttributeEditor()
  46. {
  47. }
  48. DECLARE_NO_REGISTRY()
  49. BEGIN_COM_MAP(CIASStringAttributeEditor)
  50. COM_INTERFACE_ENTRY(IIASAttributeEditor)
  51. COM_INTERFACE_ENTRY(IDispatch)
  52. END_COM_MAP()
  53. // IIASAttributeEditor overrides
  54. protected:
  55. STDMETHOD(SetAttributeValue)(VARIANT *pValue);
  56. STDMETHOD(ShowEditor)( /*[in, out]*/ BSTR *pReserved );
  57. STDMETHOD(get_ValueAsString)(/*[out, retval]*/ BSTR *pVal);
  58. STDMETHOD(put_ValueAsString)(/*[in]*/ BSTR newVal);
  59. STDMETHOD(get_ValueAsStringEx)(/*[out, retval]*/ BSTR *pVal, OUT EStringType* pType);
  60. STDMETHOD(put_ValueAsStringEx)(/*[in]*/ BSTR newVal, IN EStringType type);
  61. };
  62. #endif // _STRING_ATTRIBUTE_EDITOR_H_