home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / cdinfo / cdinfo.idl < prev    next >
Text File  |  1998-03-26  |  1KB  |  58 lines

  1. #include <olectl.h>
  2. // CDInfo.idl : IDL source for CDInfo.dll
  3. //
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (CDInfo.tlb) and marshalling code.
  6.  
  7.     [
  8.         object,
  9.         uuid(A393BE4F-2FBD-11D0-B939-000000000000),
  10.         dual,
  11.         helpstring("ICDInfo Interface"),
  12.         pointer_default(unique)
  13.     ]
  14.     interface ICDInfo : IDispatch
  15.     {
  16.         import "oaidl.idl";
  17.         import "ocidl.idl";
  18.  
  19.         [propget, id(0)] HRESULT Tracks([out, retval] short* pTracks);
  20.         [propput, id(0)] HRESULT Tracks([in] short Tracks);
  21.         [propget, id(1)] HRESULT Length([in] short Track, [out, retval] short* pLength);
  22.         [propput, id(1)] HRESULT Length([in] short Track, [in] short nLength);
  23.         [propget, id(2)] HRESULT TotalLength([out, retval] short* pLength);
  24.         HRESULT    Read([out, retval] short* pTracks);
  25.         HRESULT Redraw();
  26.         HRESULT Play([in] short Track);
  27.     };
  28. [
  29.     uuid(A393BE4C-2FBD-11D0-B939-000000000000),
  30.     version(1.0),
  31.     helpstring("CDInfo 1.0 Type Library")
  32. ]
  33. library CDINFOLib
  34. {
  35.     importlib("stdole32.tlb");
  36.  
  37.     [
  38.         uuid(3F85F440-3283-11d0-96A9-00A0C90DC94B),
  39.         helpstring("Event interface for CDInfo Control")
  40.     ]
  41.     dispinterface CDEvents
  42.     {
  43.         properties:
  44.         methods:
  45.         [id(1)] void Click([in] short nTrack);
  46.     };
  47.     
  48.     [
  49.         uuid(A393BE4E-2FBD-11D0-B939-000000000000),
  50.         helpstring("CDInfo Class")
  51.     ]
  52.     coclass CCDInfo
  53.     {
  54.         [default] interface ICDInfo;
  55.         [default, source] dispinterface CDEvents;
  56.     };
  57. };
  58.