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

  1. #include <olectl.h>
  2. // ATLMovie.idl : IDL source for ATLMovie.dll
  3. //
  4.  
  5. // This file will be processed by the MIDL tool to
  6. // produce the type library (ATLMovie.tlb) and marshalling code.
  7.  
  8. import "oaidl.idl";
  9. import "ocidl.idl";
  10.  
  11.     [
  12.         object,
  13.         uuid(A8AF3253-AED7-11D0-A771-00A0C90391D3),
  14.         dual,
  15.         helpstring("IMovieCtl Interface"),
  16.         pointer_default(unique)
  17.     ]
  18.     interface IMovieCtl : IDispatch
  19.     {
  20.         [id(1), helpstring("method Play")] HRESULT Play();
  21.         [propput, id(2), helpstring("property FileName")] HRESULT FileName([in] BSTR newVal);
  22.         [id(3), helpstring("method Pause")] HRESULT Pause();
  23.         [id(4), helpstring("method Reset")] HRESULT Reset();
  24.         [id(5), helpstring("method Stop")] HRESULT Stop();
  25.     };
  26. [
  27.     uuid(A8AF3246-AED7-11D0-A771-00A0C90391D3),
  28.     version(1.0),
  29.     helpstring("ATLMovie 1.0 Type Library")
  30. ]
  31. library ATLMOVIELib
  32. {
  33.     importlib("stdole32.tlb");
  34.     importlib("stdole2.tlb");
  35.  
  36.     [
  37.         uuid(A8AF3254-AED7-11D0-A771-00A0C90391D3),
  38.         helpstring("MovieCtl Class")
  39.     ]
  40.     coclass MovieCtl
  41.     {
  42.         [default] interface IMovieCtl;
  43.     };
  44. };
  45.