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.

35 lines
874 B

  1. // Attribute.h : Declaration of the CAttribute
  2. #ifndef __ATTRIBUTE_H_
  3. #define __ATTRIBUTE_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CAttribute
  7. class ATL_NO_VTABLE CAttribute :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CAttribute, &CLSID_Attribute>,
  10. public IDispatchImpl<IAttribute, &IID_IAttribute, &LIBID_IASPolicyLib>
  11. {
  12. public:
  13. CAttribute()
  14. {
  15. }
  16. IAS_DECLARE_REGISTRY(Attribute, 1, 0, IASPolicyLib)
  17. BEGIN_COM_MAP(CAttribute)
  18. COM_INTERFACE_ENTRY(IAttribute)
  19. COM_INTERFACE_ENTRY(IDispatch)
  20. END_COM_MAP()
  21. // IAttribute
  22. public:
  23. STDMETHOD(get_Id)(/*[out, retval]*/ LONG *pVal);
  24. STDMETHOD(put_Id)(/*[in]*/ LONG newVal);
  25. STDMETHOD(get_Value)(/*[out, retval]*/ VARIANT *pVal);
  26. STDMETHOD(put_Value)(/*[in]*/ VARIANT newVal);
  27. };
  28. #endif //__ATTRIBUTE_H_