Source code of Windows XP (NT5)
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.

67 lines
1.9 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. //////////////////////////////////////////////////////////////////////////////
  23. // BEGIN INCLUDES
  24. //
  25. // where we can find what this class derives from:
  26. //
  27. #include "IASAttributeEditor.h"
  28. //
  29. // where we can find what this class has or uses:
  30. //
  31. //
  32. // END INCLUDES
  33. //////////////////////////////////////////////////////////////////////////////
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CIASBooleanAttributeEditor
  36. class ATL_NO_VTABLE CIASBooleanAttributeEditor :
  37. public CComObjectRootEx<CComSingleThreadModel>,
  38. public CComCoClass<CIASBooleanAttributeEditor, &CLSID_IASBooleanAttributeEditor>,
  39. public CIASAttributeEditor
  40. {
  41. public:
  42. CIASBooleanAttributeEditor();
  43. DECLARE_REGISTRY_RESOURCEID(IDR_NAPSNAPIN)
  44. BEGIN_COM_MAP(CIASBooleanAttributeEditor)
  45. COM_INTERFACE_ENTRY(IIASAttributeEditor)
  46. COM_INTERFACE_ENTRY(IDispatch)
  47. END_COM_MAP()
  48. // IIASAttributeEditor overrides
  49. protected:
  50. STDMETHOD(SetAttributeValue)(VARIANT *pValue);
  51. STDMETHOD(ShowEditor)( /*[in, out]*/ BSTR *pReserved );
  52. STDMETHOD(get_ValueAsString)(/*[out, retval]*/ BSTR *pVal);
  53. STDMETHOD(put_ValueAsString)(/*[in]*/ BSTR newVal);
  54. STDMETHOD(put_ValueAsVariant)(/*[in]*/ const CComVariant& newVal);
  55. private:
  56. WCHAR szTrue[IAS_MAX_STRING];
  57. WCHAR szFalse[IAS_MAX_STRING];
  58. };
  59. #endif // _BOOLEAN_ATTRIBUTE_EDITOR_H_