home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / connect / server / connect.idl < prev    next >
Text File  |  1998-04-02  |  1KB  |  57 lines

  1. // Connect.idl : IDL source for Connect.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (Connect.tlb) and marshalling code.
  6.  
  7.     [
  8.         object,
  9.         uuid(CCE84211-DB31-11CF-9D75-00A0C90391D3),
  10.         dual,
  11.         helpstring("IRandom Interface"),
  12.         pointer_default(unique)
  13.     ]
  14.     interface IRandom : IDispatch
  15.     {
  16.         import "oaidl.idl";
  17.         [id(1), propget] HRESULT Start([out, retval] long* pnID);
  18.         [id(2), propput] HRESULT Stop([in] long nID);
  19.         [id(3)] HRESULT StopAll();
  20.     };
  21.  
  22.     [
  23.         object,
  24.         uuid(CCE84212-DB31-11CF-9D75-00A0C90391D3),
  25.         dual,
  26.         helpstring("IRandomEvent Interface"),
  27.         pointer_default(unique)
  28.     ]
  29.     interface IRandomEvent : IDispatch
  30.     {
  31.         import "oaidl.idl";
  32.         [id(1), propput] HRESULT Fire([in] long nID);
  33.         [id(2), propput] HRESULT ID([in] int n);
  34.     };
  35.  
  36.  
  37. [
  38.     uuid(CCE8420F-DB31-11CF-9D75-00A0C90391D3),
  39.     version(1.0),
  40.     helpstring("Connect 1.0 Type Library")
  41. ]
  42. library CONNECTLib
  43. {
  44.     importlib("stdole32.tlb");
  45.  
  46.     [
  47.         uuid(CCE84215-DB31-11CF-9D75-00A0C90391D3),
  48.         helpstring("Random Class")
  49.     ]
  50.     coclass CoRandom
  51.     {
  52.         [default] interface IRandom;
  53.         [default, source] interface IRandomEvent;
  54.     };
  55.  
  56. };
  57.