home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / chap14 / beeper2 / ibeeper.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  2KB  |  77 lines

  1. /* This header file machine-generated by mktyplib.exe */
  2. /* Interface to type library: BeeperTypeLibrary */
  3.  
  4. #ifndef _BeeperTypeLibrary_H_
  5. #define _BeeperTypeLibrary_H_
  6.  
  7. DEFINE_GUID(LIBID_BeeperTypeLibrary,0x0002115E,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  8.  
  9. DEFINE_GUID(IID_IBeeper,0x0002115C,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  10.  
  11. /* Definition of interface: IBeeper */
  12. DECLARE_INTERFACE_(IBeeper, IUnknown)
  13. {
  14. #ifndef NO_BASEINTERFACE_FUNCS
  15.  
  16.     /* IUnknown methods */
  17.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  18.     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  19.     STDMETHOD_(ULONG, Release)(THIS) PURE;
  20. #endif
  21.  
  22.     /* IBeeper methods */
  23.     STDMETHOD_(long, get_Sound)(THIS) PURE;
  24.     STDMETHOD_(void, put_Sound)(THIS_ long lSound) PURE;
  25.     STDMETHOD_(long, Beep)(THIS) PURE;
  26. };
  27.  
  28. DEFINE_GUID(DIID_DIBeeper,0x0002115D,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  29.  
  30. /* Definition of dispatch interface: DIBeeper */
  31. DECLARE_INTERFACE_(DIBeeper, IDispatch)
  32. {
  33. #ifndef NO_BASEINTERFACE_FUNCS
  34.  
  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.  
  40.     /* IDispatch methods */
  41.     STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE;
  42.  
  43.     STDMETHOD(GetTypeInfo)(
  44.       THIS_
  45.       UINT itinfo,
  46.       LCID lcid,
  47.       ITypeInfo FAR* FAR* pptinfo) PURE;
  48.  
  49.     STDMETHOD(GetIDsOfNames)(
  50.       THIS_
  51.       REFIID riid,
  52.       OLECHAR FAR* FAR* rgszNames,
  53.       UINT cNames,
  54.       LCID lcid,
  55.       DISPID FAR* rgdispid) PURE;
  56.  
  57.     STDMETHOD(Invoke)(
  58.       THIS_
  59.       DISPID dispidMember,
  60.       REFIID riid,
  61.       LCID lcid,
  62.       WORD wFlags,
  63.       DISPPARAMS FAR* pdispparams,
  64.       VARIANT FAR* pvarResult,
  65.       EXCEPINFO FAR* pexcepinfo,
  66.       UINT FAR* puArgErr) PURE;
  67. #endif
  68.  
  69. /* Capable of dispatching all the methods of interface IBeeper */
  70. };
  71.  
  72. DEFINE_GUID(CLSID_Beeper,0x0002115B,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
  73.  
  74. class Beeper;
  75.  
  76. #endif
  77.