ICOSMO.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:9k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /* This header file machine-generated by mktyplib.exe */
  2. /* Interface to type library: CosmoTypeLibrary */
  3. #ifndef _CosmoTypeLibrary_H_
  4. #define _CosmoTypeLibrary_H_
  5. DEFINE_GUID(LIBID_CosmoTypeLibrary,0x00021165,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  6. DEFINE_GUID(IID_ICosmoFigure,0x00021161,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  7. /* Definition of interface: ICosmoFigure */
  8. DECLARE_INTERFACE_(ICosmoFigure, IUnknown)
  9. {
  10. #ifndef NO_BASEINTERFACE_FUNCS
  11.     /* IUnknown methods */
  12.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  13.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  14.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  15. #endif
  16.     /* ICosmoFigure methods */
  17.     STDMETHOD_(IDispatch *, get_Application)(THIS) PURE;
  18.     STDMETHOD_(IDispatch *, get_Parent)(THIS) PURE;
  19.     STDMETHOD_(BSTR, get_FullName)(THIS) PURE;
  20.     STDMETHOD_(BSTR, get_Name)(THIS) PURE;
  21.     STDMETHOD_(BSTR, get_Path)(THIS) PURE;
  22.     STDMETHOD_(VARIANT_BOOL, get_Saved)(THIS) PURE;
  23.     STDMETHOD_(short, get_NumberOfPoints)(THIS) PURE;
  24.     STDMETHOD_(long, get_BackColor)(THIS) PURE;
  25.     STDMETHOD_(void, put_BackColor)(THIS_ long BackColor) PURE;
  26.     STDMETHOD_(long, get_LineColor)(THIS) PURE;
  27.     STDMETHOD_(void, put_LineColor)(THIS_ long LineColor) PURE;
  28.     STDMETHOD_(short, get_LineStyle)(THIS) PURE;
  29.     STDMETHOD_(void, put_LineStyle)(THIS_ short Style) PURE;
  30.     STDMETHOD_(long, get_Left)(THIS) PURE;
  31.     STDMETHOD_(void, put_Left)(THIS_ long Left) PURE;
  32.     STDMETHOD_(long, get_Top)(THIS) PURE;
  33.     STDMETHOD_(void, put_Top)(THIS_ long Top) PURE;
  34.     STDMETHOD_(long, get_Width)(THIS) PURE;
  35.     STDMETHOD_(void, put_Width)(THIS_ long Width) PURE;
  36.     STDMETHOD_(long, get_Height)(THIS) PURE;
  37.     STDMETHOD_(void, put_Height)(THIS_ long Height) PURE;
  38.     STDMETHOD_(VARIANT_BOOL, get_Visible)(THIS) PURE;
  39.     STDMETHOD_(void, put_Visible)(THIS_ VARIANT_BOOL Visible) PURE;
  40.     STDMETHOD_(void, Activate)(THIS) PURE;
  41.     STDMETHOD_(void, Close)(THIS_ VARIANT SaveChanges, VARIANT Path) PURE;
  42.     STDMETHOD_(void, RevertToSaved)(THIS) PURE;
  43.     STDMETHOD_(void, Save)(THIS) PURE;
  44.     STDMETHOD_(void, SaveAs)(THIS_ BSTR Path) PURE;
  45.     STDMETHOD_(void, Import)(THIS_ BSTR ImportPath) PURE;
  46.     STDMETHOD_(void, Copy)(THIS) PURE;
  47.     STDMETHOD_(void, Cut)(THIS) PURE;
  48.     STDMETHOD_(void, Paste)(THIS) PURE;
  49.     STDMETHOD_(VARIANT_BOOL, AddPoint)(THIS_ short x, short y) PURE;
  50.     STDMETHOD_(void, RemovePoint)(THIS) PURE;
  51. };
  52. DEFINE_GUID(IID_ICosmoFigures,0x00021160,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  53. /* Definition of interface: ICosmoFigures */
  54. DECLARE_INTERFACE_(ICosmoFigures, IUnknown)
  55. {
  56. #ifndef NO_BASEINTERFACE_FUNCS
  57.     /* IUnknown methods */
  58.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  59.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  60.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  61. #endif
  62.     /* ICosmoFigures methods */
  63.     STDMETHOD_(IDispatch *, get_Application)(THIS) PURE;
  64.     STDMETHOD_(IDispatch *, get_Parent)(THIS) PURE;
  65.     STDMETHOD_(long, get_Count)(THIS) PURE;
  66.     STDMETHOD_(IDispatch *, Item)(THIS_ VARIANT index) PURE;
  67.     STDMETHOD_(IDispatch *, Add)(THIS) PURE;
  68.     STDMETHOD_(IDispatch *, Open)(THIS_ BSTR Path) PURE;
  69.     STDMETHOD_(void, Close)(THIS) PURE;
  70.     STDMETHOD_(IUnknown *, _NewEnum)(THIS) PURE;
  71. };
  72. DEFINE_GUID(IID_ICosmoApplication,0x0002115F,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  73. /* Definition of interface: ICosmoApplication */
  74. DECLARE_INTERFACE_(ICosmoApplication, IUnknown)
  75. {
  76. #ifndef NO_BASEINTERFACE_FUNCS
  77.     /* IUnknown methods */
  78.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  79.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  80.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  81. #endif
  82.     /* ICosmoApplication methods */
  83.     STDMETHOD_(IDispatch *, get_Application)(THIS) PURE;
  84.     STDMETHOD_(IDispatch *, get_ActiveFigure)(THIS) PURE;
  85.     STDMETHOD_(BSTR, get_Caption)(THIS) PURE;
  86.     STDMETHOD_(IDispatch *, get_Figures)(THIS) PURE;
  87.     STDMETHOD_(BSTR, get_FullName)(THIS) PURE;
  88.     STDMETHOD_(BSTR, get_Name)(THIS) PURE;
  89.     STDMETHOD_(BSTR, get_Path)(THIS) PURE;
  90.     STDMETHOD_(long, get_Left)(THIS) PURE;
  91.     STDMETHOD_(void, put_Left)(THIS_ long Left) PURE;
  92.     STDMETHOD_(long, get_Top)(THIS) PURE;
  93.     STDMETHOD_(void, put_Top)(THIS_ long Top) PURE;
  94.     STDMETHOD_(long, get_Width)(THIS) PURE;
  95.     STDMETHOD_(void, put_Width)(THIS_ long Width) PURE;
  96.     STDMETHOD_(long, get_Height)(THIS) PURE;
  97.     STDMETHOD_(void, put_Height)(THIS_ long Height) PURE;
  98.     STDMETHOD_(VARIANT_BOOL, get_Visible)(THIS) PURE;
  99.     STDMETHOD_(void, put_Visible)(THIS_ VARIANT_BOOL Visible) PURE;
  100.     STDMETHOD_(BSTR, get_StatusBar)(THIS) PURE;
  101.     STDMETHOD_(void, put_StatusBar)(THIS_ BSTR Text) PURE;
  102.     STDMETHOD_(void, Quit)(THIS) PURE;
  103. };
  104. DEFINE_GUID(DIID_DICosmoFigure,0x00021164,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  105. /* Definition of dispatch interface: DICosmoFigure */
  106. DECLARE_INTERFACE_(DICosmoFigure, IDispatch)
  107. {
  108. #ifndef NO_BASEINTERFACE_FUNCS
  109.     /* IUnknown methods */
  110.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  111.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  112.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  113.     /* IDispatch methods */
  114.     STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  115.     STDMETHOD(GetTypeInfo)(
  116.       THIS_
  117.       UINT itinfo,
  118.       LCID lcid,
  119.       ITypeInfo FAR* FAR* pptinfo) PURE;
  120.     STDMETHOD(GetIDsOfNames)(
  121.       THIS_
  122.       REFIID riid,
  123.       OLECHAR FAR* FAR* rgszNames,
  124.       UINT cNames,
  125.       LCID lcid,
  126.       DISPID FAR* rgdispid) PURE;
  127.     STDMETHOD(Invoke)(
  128.       THIS_
  129.       DISPID dispidMember,
  130.       REFIID riid,
  131.       LCID lcid,
  132.       WORD wFlags,
  133.       DISPPARAMS FAR* pdispparams,
  134.       VARIANT FAR* pvarResult,
  135.       EXCEPINFO FAR* pexcepinfo,
  136.       UINT FAR* puArgErr) PURE;
  137. #endif
  138. /* Capable of dispatching all the methods of interface ICosmoFigure */
  139. };
  140. DEFINE_GUID(DIID_DICosmoFigures,0x00021163,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  141. /* Definition of dispatch interface: DICosmoFigures */
  142. DECLARE_INTERFACE_(DICosmoFigures, IDispatch)
  143. {
  144. #ifndef NO_BASEINTERFACE_FUNCS
  145.     /* IUnknown methods */
  146.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  147.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  148.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  149.     /* IDispatch methods */
  150.     STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  151.     STDMETHOD(GetTypeInfo)(
  152.       THIS_
  153.       UINT itinfo,
  154.       LCID lcid,
  155.       ITypeInfo FAR* FAR* pptinfo) PURE;
  156.     STDMETHOD(GetIDsOfNames)(
  157.       THIS_
  158.       REFIID riid,
  159.       OLECHAR FAR* FAR* rgszNames,
  160.       UINT cNames,
  161.       LCID lcid,
  162.       DISPID FAR* rgdispid) PURE;
  163.     STDMETHOD(Invoke)(
  164.       THIS_
  165.       DISPID dispidMember,
  166.       REFIID riid,
  167.       LCID lcid,
  168.       WORD wFlags,
  169.       DISPPARAMS FAR* pdispparams,
  170.       VARIANT FAR* pvarResult,
  171.       EXCEPINFO FAR* pexcepinfo,
  172.       UINT FAR* puArgErr) PURE;
  173. #endif
  174. /* Capable of dispatching all the methods of interface ICosmoFigures */
  175. };
  176. DEFINE_GUID(DIID_DICosmoApplication,0x00021162,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  177. /* Definition of dispatch interface: DICosmoApplication */
  178. DECLARE_INTERFACE_(DICosmoApplication, IDispatch)
  179. {
  180. #ifndef NO_BASEINTERFACE_FUNCS
  181.     /* IUnknown methods */
  182.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  183.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  184.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  185.     /* IDispatch methods */
  186.     STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  187.     STDMETHOD(GetTypeInfo)(
  188.       THIS_
  189.       UINT itinfo,
  190.       LCID lcid,
  191.       ITypeInfo FAR* FAR* pptinfo) PURE;
  192.     STDMETHOD(GetIDsOfNames)(
  193.       THIS_
  194.       REFIID riid,
  195.       OLECHAR FAR* FAR* rgszNames,
  196.       UINT cNames,
  197.       LCID lcid,
  198.       DISPID FAR* rgdispid) PURE;
  199.     STDMETHOD(Invoke)(
  200.       THIS_
  201.       DISPID dispidMember,
  202.       REFIID riid,
  203.       LCID lcid,
  204.       WORD wFlags,
  205.       DISPPARAMS FAR* pdispparams,
  206.       VARIANT FAR* pvarResult,
  207.       EXCEPINFO FAR* pexcepinfo,
  208.       UINT FAR* puArgErr) PURE;
  209. #endif
  210. /* Capable of dispatching all the methods of interface ICosmoApplication */
  211. };
  212. DEFINE_GUID(CLSID_Cosmo2Figure,0x00021107,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  213. class Cosmo2Figure;
  214. DEFINE_GUID(CLSID_Cosmo2Application,0x00021166,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  215. class Cosmo2Application;
  216. #endif