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

Windows编程

开发平台:

Visual C++

  1. /* This header file machine-generated by mktyplib.exe */
  2. /* Interface to type library: SPRUUIDS */
  3. #ifndef _SPRUUIDS_H_
  4. #define _SPRUUIDS_H_
  5. DEFINE_GUID(LIBID_SPRUUIDS,0x8703FF61L,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  6. #ifndef BEGIN_INTERFACE
  7. #define BEGIN_INTERFACE
  8. #endif
  9. #ifdef __cplusplus
  10. class SpruuidsApp;
  11. #endif
  12. interface ISpruuidsApp;
  13. #ifdef __cplusplus
  14. class Game;
  15. #endif
  16. interface IGame;
  17. interface IGameEvents;
  18. #ifdef __cplusplus
  19. class SpriteClass;
  20. #endif
  21. interface ISpriteClass;
  22. interface ISpriteClassEvents;
  23. #ifdef __cplusplus
  24. class Sprite;
  25. #endif
  26. interface ISprite;
  27. DEFINE_GUID(IID_ISpruuidsApp,0x8703FF62L,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  28. /* Definition of interface: ISpruuidsApp */
  29. #undef INTERFACE
  30. #define INTERFACE ISpruuidsApp
  31. DECLARE_INTERFACE_(ISpruuidsApp, IDispatch)
  32. {
  33. BEGIN_INTERFACE
  34. #ifndef NO_BASEINTERFACE_FUNCS
  35.     /* IUnknown methods */
  36.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  37.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  38.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  39.     /* IDispatch methods */
  40.     STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  41.     STDMETHOD(GetTypeInfo)(
  42.       THIS_
  43.       UINT itinfo,
  44.       LCID lcid,
  45.       ITypeInfo FAR* FAR* pptinfo) PURE;
  46.     STDMETHOD(GetIDsOfNames)(
  47.       THIS_
  48.       REFIID riid,
  49.       OLECHAR FAR* FAR* rgszNames,
  50.       UINT cNames,
  51.       LCID lcid,
  52.       DISPID FAR* rgdispid) PURE;
  53.     STDMETHOD(Invoke)(
  54.       THIS_
  55.       DISPID dispidMember,
  56.       REFIID riid,
  57.       LCID lcid,
  58.       WORD wFlags,
  59.       DISPPARAMS FAR* pdispparams,
  60.       VARIANT FAR* pvarResult,
  61.       EXCEPINFO FAR* pexcepinfo,
  62.       UINT FAR* puArgErr) PURE;
  63. #endif
  64.     /* ISpruuidsApp methods */
  65.     STDMETHOD(get_Application)(THIS_ ISpruuidsApp FAR* FAR* ppRet) PURE;
  66.     STDMETHOD(get_Parent)(THIS_ ISpruuidsApp FAR* FAR* ppRet) PURE;
  67.     STDMETHOD(Quit)(THIS) PURE;
  68.     STDMETHOD(get_Game)(THIS_ IGame FAR* FAR* ppRet) PURE;
  69. };
  70. DEFINE_GUID(CLSID_SpruuidsApp,0x8703FF63L,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  71. #ifdef __cplusplus
  72. class SpruuidsApp;
  73. #endif
  74. DEFINE_GUID(IID_IGame,0x8703FF64L,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  75. /* Definition of interface: IGame */
  76. #undef INTERFACE
  77. #define INTERFACE IGame
  78. DECLARE_INTERFACE_(IGame, IDispatch)
  79. {
  80. BEGIN_INTERFACE
  81. #ifndef NO_BASEINTERFACE_FUNCS
  82.     /* IUnknown methods */
  83.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  84.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  85.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  86.     /* IDispatch methods */
  87.     STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  88.     STDMETHOD(GetTypeInfo)(
  89.       THIS_
  90.       UINT itinfo,
  91.       LCID lcid,
  92.       ITypeInfo FAR* FAR* pptinfo) PURE;
  93.     STDMETHOD(GetIDsOfNames)(
  94.       THIS_
  95.       REFIID riid,
  96.       OLECHAR FAR* FAR* rgszNames,
  97.       UINT cNames,
  98.       LCID lcid,
  99.       DISPID FAR* rgdispid) PURE;
  100.     STDMETHOD(Invoke)(
  101.       THIS_
  102.       DISPID dispidMember,
  103.       REFIID riid,
  104.       LCID lcid,
  105.       WORD wFlags,
  106.       DISPPARAMS FAR* pdispparams,
  107.       VARIANT FAR* pvarResult,
  108.       EXCEPINFO FAR* pexcepinfo,
  109.       UINT FAR* puArgErr) PURE;
  110. #endif
  111.     /* IGame methods */
  112.     STDMETHOD(get_Caption)(THIS_ BSTR FAR* pbstrReturn) PURE;
  113.     STDMETHOD(put_Caption)(THIS_ BSTR bstr) PURE;
  114.     STDMETHOD(get_Application)(THIS_ ISpruuidsApp FAR* FAR* ppRet) PURE;
  115.     STDMETHOD(get_Parent)(THIS_ ISpruuidsApp FAR* FAR* ppRet) PURE;
  116.     STDMETHOD(StartGame)(THIS) PURE;
  117.     STDMETHOD(EndGame)(THIS) PURE;
  118.     STDMETHOD(RemoveAllSprites)(THIS) PURE;
  119.     STDMETHOD(NextLevel)(THIS) PURE;
  120.     STDMETHOD(Refresh)(THIS) PURE;
  121.     STDMETHOD(AddScore)(THIS_ int val) PURE;
  122.     STDMETHOD(StdBorderBounce)(THIS_ ISprite FAR* pspr, int brd) PURE;
  123.     STDMETHOD(StdBorderWrap)(THIS_ ISprite FAR* pspr, int brd) PURE;
  124.     STDMETHOD(StdInitRand)(THIS_ ISprite FAR* pspr, VARIANT user) PURE;
  125.     STDMETHOD(StdInitEdge)(THIS_ ISprite FAR* pspr, VARIANT user) PURE;
  126.     STDMETHOD(get_Paused)(THIS_ VARIANT_BOOL FAR* pRet) PURE;
  127.     STDMETHOD(put_Paused)(THIS_ VARIANT_BOOL val) PURE;
  128.     STDMETHOD(get_Width)(THIS_ int FAR* pRet) PURE;
  129.     STDMETHOD(put_Width)(THIS_ int val) PURE;
  130.     STDMETHOD(get_Height)(THIS_ int FAR* pRet) PURE;
  131.     STDMETHOD(put_Height)(THIS_ int val) PURE;
  132.     STDMETHOD(get_BackColor)(THIS_ long FAR* pRet) PURE;
  133.     STDMETHOD(put_BackColor)(THIS_ long val) PURE;
  134.     STDMETHOD(get_Score)(THIS_ int FAR* pRet) PURE;
  135.     STDMETHOD(put_Score)(THIS_ int val) PURE;
  136.     STDMETHOD(get_Level)(THIS_ int FAR* pRet) PURE;
  137.     STDMETHOD(put_Level)(THIS_ int val) PURE;
  138.     STDMETHOD(get_ShipCount)(THIS_ int FAR* pRet) PURE;
  139.     STDMETHOD(put_ShipCount)(THIS_ int val) PURE;
  140.     STDMETHOD(get_ScoreFirst1Up)(THIS_ int FAR* pRet) PURE;
  141.     STDMETHOD(put_ScoreFirst1Up)(THIS_ int val) PURE;
  142.     STDMETHOD(get_ScoreSecond1Up)(THIS_ int FAR* pRet) PURE;
  143.     STDMETHOD(put_ScoreSecond1Up)(THIS_ int val) PURE;
  144.     STDMETHOD(get_DScoreNext1Up)(THIS_ int FAR* pRet) PURE;
  145.     STDMETHOD(put_DScoreNext1Up)(THIS_ int val) PURE;
  146.     STDMETHOD(get_ShipsStart)(THIS_ int FAR* pRet) PURE;
  147.     STDMETHOD(put_ShipsStart)(THIS_ int val) PURE;
  148.     STDMETHOD(get_Tag)(THIS_ VARIANT FAR* pRet) PURE;
  149.     STDMETHOD(put_Tag)(THIS_ VARIANT val) PURE;
  150.     STDMETHOD(get_StatusText)(THIS_ BSTR FAR* pbstrReturn) PURE;
  151.     STDMETHOD(put_StatusText)(THIS_ BSTR bstr) PURE;
  152. };
  153. DEFINE_GUID(DIID_IGameEvents,0x8703FF65L,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  154. /* Definition of dispatch interface: IGameEvents */
  155. #undef INTERFACE
  156. #define INTERFACE IGameEvents
  157. DECLARE_INTERFACE_(IGameEvents, IDispatch)
  158. {
  159. BEGIN_INTERFACE
  160. #ifndef NO_BASEINTERFACE_FUNCS
  161.     /* IUnknown methods */
  162.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  163.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  164.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  165.     /* IDispatch methods */
  166.     STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  167.     STDMETHOD(GetTypeInfo)(
  168.       THIS_
  169.       UINT itinfo,
  170.       LCID lcid,
  171.       ITypeInfo FAR* FAR* pptinfo) PURE;
  172.     STDMETHOD(GetIDsOfNames)(
  173.       THIS_
  174.       REFIID riid,
  175.       OLECHAR FAR* FAR* rgszNames,
  176.       UINT cNames,
  177.       LCID lcid,
  178.       DISPID FAR* rgdispid) PURE;
  179.     STDMETHOD(Invoke)(
  180.       THIS_
  181.       DISPID dispidMember,
  182.       REFIID riid,
  183.       LCID lcid,
  184.       WORD wFlags,
  185.       DISPPARAMS FAR* pdispparams,
  186.       VARIANT FAR* pvarResult,
  187.       EXCEPINFO FAR* pexcepinfo,
  188.       UINT FAR* puArgErr) PURE;
  189. #endif
  190.     /* IGameEvents methods:
  191.     void NewGame(void);
  192.     void NewLevel(void);
  193.     void NewShip(void);
  194.     void Collide(IDispatch * pspr1, IDispatch * pspr2, long collide);
  195.     void Tick(void);
  196.     void KeyDown(long vk);
  197.     void KeyPress(long ascii);
  198.     void KeyUp(long vk);
  199.     void MouseMove(long x, long y, long keys, long buttons);
  200.     void MouseDown(long x, long y, long keys, long buttons);
  201.     void MouseOver(long x, long y, long keys, long buttons);
  202.     */
  203. };
  204. DEFINE_GUID(CLSID_Game,0x8703FF66L,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  205. #ifdef __cplusplus
  206. class Game;
  207. #endif
  208. DEFINE_GUID(IID_ISpriteClass,0x8703FF67L,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  209. /* Definition of interface: ISpriteClass */
  210. #undef INTERFACE
  211. #define INTERFACE ISpriteClass
  212. DECLARE_INTERFACE_(ISpriteClass, IDispatch)
  213. {
  214. BEGIN_INTERFACE
  215. #ifndef NO_BASEINTERFACE_FUNCS
  216.     /* IUnknown methods */
  217.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  218.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  219.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  220.     /* IDispatch methods */
  221.     STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  222.     STDMETHOD(GetTypeInfo)(
  223.       THIS_
  224.       UINT itinfo,
  225.       LCID lcid,
  226.       ITypeInfo FAR* FAR* pptinfo) PURE;
  227.     STDMETHOD(GetIDsOfNames)(
  228.       THIS_
  229.       REFIID riid,
  230.       OLECHAR FAR* FAR* rgszNames,
  231.       UINT cNames,
  232.       LCID lcid,
  233.       DISPID FAR* rgdispid) PURE;
  234.     STDMETHOD(Invoke)(
  235.       THIS_
  236.       DISPID dispidMember,
  237.       REFIID riid,
  238.       LCID lcid,
  239.       WORD wFlags,
  240.       DISPPARAMS FAR* pdispparams,
  241.       VARIANT FAR* pvarResult,
  242.       EXCEPINFO FAR* pexcepinfo,
  243.       UINT FAR* puArgErr) PURE;
  244. #endif
  245.     /* ISpriteClass methods */
  246.     STDMETHOD(get_Application)(THIS_ ISpruuidsApp FAR* FAR* ppRet) PURE;
  247.     STDMETHOD(get_Parent)(THIS_ IGame FAR* FAR* ppRet) PURE;
  248.     STDMETHOD(CreateSprite)(THIS_ int x, int y, VARIANT arg, ISprite FAR* FAR* ppRet) PURE;
  249.     STDMETHOD(get_Tag)(THIS_ VARIANT FAR* pRet) PURE;
  250.     STDMETHOD(put_Tag)(THIS_ VARIANT val) PURE;
  251.     STDMETHOD(get_Image)(THIS_ int FAR* pRet) PURE;
  252.     STDMETHOD(put_Image)(THIS_ int val) PURE;
  253.     STDMETHOD(get_Border)(THIS_ int FAR* pRet) PURE;
  254.     STDMETHOD(put_Border)(THIS_ int val) PURE;
  255.     STDMETHOD(get_Collide)(THIS_ int FAR* pRet) PURE;
  256.     STDMETHOD(put_Collide)(THIS_ int val) PURE;
  257.     STDMETHOD(get_MaximumVelocity)(THIS_ float FAR* pRet) PURE;
  258.     STDMETHOD(put_MaximumVelocity)(THIS_ float val) PURE;
  259.     STDMETHOD(get_Friction)(THIS_ float FAR* pRet) PURE;
  260.     STDMETHOD(put_Friction)(THIS_ float val) PURE;
  261.     STDMETHOD(get_MaximumAcceleration)(THIS_ float FAR* pRet) PURE;
  262.     STDMETHOD(put_MaximumAcceleration)(THIS_ float val) PURE;
  263.     STDMETHOD(get_AccelerationFriction)(THIS_ float FAR* pRet) PURE;
  264.     STDMETHOD(put_AccelerationFriction)(THIS_ float val) PURE;
  265.     STDMETHOD(get_SpriteCount)(THIS_ int FAR* pRet) PURE;
  266. };
  267. DEFINE_GUID(DIID_ISpriteClassEvents,0x8703FF68L,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  268. /* Definition of dispatch interface: ISpriteClassEvents */
  269. #undef INTERFACE
  270. #define INTERFACE ISpriteClassEvents
  271. DECLARE_INTERFACE_(ISpriteClassEvents, IDispatch)
  272. {
  273. BEGIN_INTERFACE
  274. #ifndef NO_BASEINTERFACE_FUNCS
  275.     /* IUnknown methods */
  276.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  277.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  278.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  279.     /* IDispatch methods */
  280.     STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  281.     STDMETHOD(GetTypeInfo)(
  282.       THIS_
  283.       UINT itinfo,
  284.       LCID lcid,
  285.       ITypeInfo FAR* FAR* pptinfo) PURE;
  286.     STDMETHOD(GetIDsOfNames)(
  287.       THIS_
  288.       REFIID riid,
  289.       OLECHAR FAR* FAR* rgszNames,
  290.       UINT cNames,
  291.       LCID lcid,
  292.       DISPID FAR* rgdispid) PURE;
  293.     STDMETHOD(Invoke)(
  294.       THIS_
  295.       DISPID dispidMember,
  296.       REFIID riid,
  297.       LCID lcid,
  298.       WORD wFlags,
  299.       DISPPARAMS FAR* pdispparams,
  300.       VARIANT FAR* pvarResult,
  301.       EXCEPINFO FAR* pexcepinfo,
  302.       UINT FAR* puArgErr) PURE;
  303. #endif
  304.     /* ISpriteClassEvents methods:
  305.     void Init(IDispatch * sprite, VARIANT arg);
  306.     void Tick(IDispatch * sprite);
  307.     void Border(IDispatch * sprite, long border);
  308.     void Term(IDispatch * sprite);
  309.     void lastTerm(void);
  310.     */
  311. };
  312. DEFINE_GUID(CLSID_SpriteClass,0x8703FF69L,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  313. #ifdef __cplusplus
  314. class SpriteClass;
  315. #endif
  316. DEFINE_GUID(IID_ISprite,0x8703FF6AL,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  317. /* Definition of interface: ISprite */
  318. #undef INTERFACE
  319. #define INTERFACE ISprite
  320. DECLARE_INTERFACE_(ISprite, IDispatch)
  321. {
  322. BEGIN_INTERFACE
  323. #ifndef NO_BASEINTERFACE_FUNCS
  324.     /* IUnknown methods */
  325.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  326.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  327.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  328.     /* IDispatch methods */
  329.     STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  330.     STDMETHOD(GetTypeInfo)(
  331.       THIS_
  332.       UINT itinfo,
  333.       LCID lcid,
  334.       ITypeInfo FAR* FAR* pptinfo) PURE;
  335.     STDMETHOD(GetIDsOfNames)(
  336.       THIS_
  337.       REFIID riid,
  338.       OLECHAR FAR* FAR* rgszNames,
  339.       UINT cNames,
  340.       LCID lcid,
  341.       DISPID FAR* rgdispid) PURE;
  342.     STDMETHOD(Invoke)(
  343.       THIS_
  344.       DISPID dispidMember,
  345.       REFIID riid,
  346.       LCID lcid,
  347.       WORD wFlags,
  348.       DISPPARAMS FAR* pdispparams,
  349.       VARIANT FAR* pvarResult,
  350.       EXCEPINFO FAR* pexcepinfo,
  351.       UINT FAR* puArgErr) PURE;
  352. #endif
  353.     /* ISprite methods */
  354.     STDMETHOD(get_Application)(THIS_ ISpruuidsApp FAR* FAR* ppRet) PURE;
  355.     STDMETHOD(get_Parent)(THIS_ ISpriteClass FAR* FAR* ppRet) PURE;
  356.     STDMETHOD(MoveTo)(THIS_ float x, float y) PURE;
  357.     STDMETHOD(MoveBy)(THIS_ float dx, float dy) PURE;
  358.     STDMETHOD(MoveAtSprite)(THIS_ ISprite FAR* sprite, float scale, float dMax, long flags) PURE;
  359.     STDMETHOD(Remove)(THIS) PURE;
  360.     STDMETHOD(Refresh)(THIS) PURE;
  361.     STDMETHOD(IgnoreMove)(THIS) PURE;
  362.     STDMETHOD(get_Left)(THIS_ float FAR* pRet) PURE;
  363.     STDMETHOD(put_Left)(THIS_ float val) PURE;
  364.     STDMETHOD(get_Top)(THIS_ float FAR* pRet) PURE;
  365.     STDMETHOD(put_Top)(THIS_ float val) PURE;
  366.     STDMETHOD(get_Vx)(THIS_ float FAR* pRet) PURE;
  367.     STDMETHOD(put_Vx)(THIS_ float val) PURE;
  368.     STDMETHOD(get_Vy)(THIS_ float FAR* pRet) PURE;
  369.     STDMETHOD(put_Vy)(THIS_ float val) PURE;
  370.     STDMETHOD(get_Ax)(THIS_ float FAR* pRet) PURE;
  371.     STDMETHOD(put_Ax)(THIS_ float val) PURE;
  372.     STDMETHOD(get_Ay)(THIS_ float FAR* pRet) PURE;
  373.     STDMETHOD(put_Ay)(THIS_ float val) PURE;
  374.     STDMETHOD(get_FrictionX)(THIS_ float FAR* pRet) PURE;
  375.     STDMETHOD(put_FrictionX)(THIS_ float val) PURE;
  376.     STDMETHOD(get_FrictionY)(THIS_ float FAR* pRet) PURE;
  377.     STDMETHOD(put_FrictionY)(THIS_ float val) PURE;
  378.     STDMETHOD(get_Image)(THIS_ int FAR* pRet) PURE;
  379.     STDMETHOD(put_Image)(THIS_ int val) PURE;
  380.     STDMETHOD(get_TickMove)(THIS_ int FAR* pRet) PURE;
  381.     STDMETHOD(put_TickMove)(THIS_ int val) PURE;
  382.     STDMETHOD(get_TickEvent)(THIS_ int FAR* pRet) PURE;
  383.     STDMETHOD(put_TickEvent)(THIS_ int val) PURE;
  384.     STDMETHOD(get_Visible)(THIS_ VARIANT_BOOL FAR* pRet) PURE;
  385.     STDMETHOD(put_Visible)(THIS_ VARIANT_BOOL val) PURE;
  386.     STDMETHOD(get_Tag)(THIS_ VARIANT FAR* pRet) PURE;
  387.     STDMETHOD(put_Tag)(THIS_ VARIANT val) PURE;
  388.     STDMETHOD(get_Width)(THIS_ int FAR* pRet) PURE;
  389.     STDMETHOD(get_Height)(THIS_ int FAR* pRet) PURE;
  390. };
  391. DEFINE_GUID(CLSID_Sprite,0x8703FF6BL,0x669C,0x11CF,0xA9,0x2B,0x00,0xAA,0x00,0x68,0x8A,0x2F);
  392. #ifdef __cplusplus
  393. class Sprite;
  394. #endif
  395. #endif