OSDN Git Service

不要レジストリリソースの削除
[seraphyscrtools/SeraphyScriptTools.git] / ProfileSection.h
1 // ProfileSection.h : CProfileSection \82Ì\90é\8c¾
2
3 #pragma once
4
5 #include "resource.h"       // \83\81\83C\83\93 \83V\83\93\83{\83\8b
6
7 /////////////////////////////////////////////////////////////////////////////
8 // CProfileSection
9 class ATL_NO_VTABLE CProfileSection :
10         public CComObjectRootEx<CComSingleThreadModel>,
11         public CComCoClass<CProfileSection, &CLSID_ProfileSection>,
12         public ISupportErrorInfoImpl<&IID_ISeraphyScriptTools_ProfileSection>,
13         public IDispatchImpl<ISeraphyScriptTools_ProfileSection, &IID_ISeraphyScriptTools_ProfileSection, &LIBID_SERAPHYSCRIPTTOOLSLib>
14 {
15 public:
16         CProfileSection()
17         {
18         }
19
20         //DECLARE_REGISTRY_RESOURCEID(IDR_PROFILESECTION)
21
22         DECLARE_PROTECT_FINAL_CONSTRUCT()
23
24         BEGIN_COM_MAP(CProfileSection)
25                 COM_INTERFACE_ENTRY(ISeraphyScriptTools_ProfileSection)
26                 COM_INTERFACE_ENTRY(IDispatch)
27                 COM_INTERFACE_ENTRY(ISupportErrorInfo)
28         END_COM_MAP()
29
30         // ISeraphyScriptTools_ProfileSection
31 public:
32         STDMETHOD(GetKeyNames)(/*[out]*/VARIANT* pVal);
33         STDMETHOD(GetValue)(/*[in]*/VARIANT idx,/*[in,optional]*/VARIANT def,/*[out,retval]*/VARIANT* pVal);
34         STDMETHOD(get_Value)(/*[in]*/VARIANT idx, /*[out, retval]*/ VARIANT *pVal);
35         STDMETHOD(put_Value)(/*[in]*/VARIANT idx, /*[in]*/ VARIANT newVal);
36         ATL::CString m_szProfilePath;
37         ATL::CString m_szSectionName;
38 };