home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / connect / connect.idl < prev    next >
Text File  |  1998-03-26  |  1KB  |  56 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.         HRESULT Start([out]long* pnID);
  18.         HRESULT Stop([in]long nID);
  19.         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.         HRESULT Fire([in]long nID);
  33.     };
  34.  
  35.  
  36. [
  37.     uuid(CCE8420F-DB31-11CF-9D75-00A0C90391D3),
  38.     version(1.0),
  39.     helpstring("Connect 1.0 Type Library")
  40. ]
  41. library CONNECTLib
  42. {
  43.     importlib("stdole32.tlb");
  44.  
  45.     [
  46.         uuid(CCE84215-DB31-11CF-9D75-00A0C90391D3),
  47.         helpstring("Random Class")
  48.     ]
  49.     coclass CoRandom
  50.     {
  51.         [default] interface IRandom;
  52.         [default, source] interface IRandomEvent;
  53.     };
  54.  
  55. };
  56.