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.

68 lines
2.0 KiB

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