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

  1. // AtlAgent.idl : IDL source for AtlAgent.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (AtlAgent.tlb) and marshalling code.
  6.  
  7. import "oaidl.idl";
  8. import "ocidl.idl";
  9.  
  10.     [
  11.         object,
  12.         uuid(53B15D6A-F364-11D0-8F53-000000000000),
  13.         dual,
  14.         helpstring("IAgentCtl Interface"),
  15.         pointer_default(unique)
  16.     ]
  17.     interface IAgentCtl : IDispatch
  18.     {
  19.         [id(1), helpstring("method Play")] HRESULT Play();
  20.         [id(2), helpstring("method SpeakFile")] HRESULT SpeakFile([in] BSTR FileName);
  21.         [id(3), helpstring("method SpeakText")] HRESULT SpeakText([in] BSTR Text);
  22.         [propget, id(4), helpstring("property Speed")] HRESULT Speed([out, retval] long *pVal);
  23.         [propput, id(4), helpstring("property Speed")] HRESULT Speed([in] long newVal);
  24.         [id(5), helpstring("method Animate")] HRESULT Animate([in] BSTR Animation);
  25.         [id(6), helpstring("method Stop")] HRESULT Stop();
  26.     };
  27. [
  28.     uuid(53B15D5D-F364-11D0-8F53-000000000000),
  29.     version(1.0),
  30.     helpstring("AtlAgent 1.0 Type Library")
  31. ]
  32. library ATLAGENTLib
  33. {
  34.     importlib("stdole32.tlb");
  35.     importlib("stdole2.tlb");
  36.  
  37.     [
  38.         uuid(DC174F5C-B7B8-11D0-8E78-000000000000),
  39.         helpstring("AgentCtl Class")
  40.     ]
  41.     coclass AgentCtl
  42.     {
  43.         [default] interface IAgentCtl;
  44.     };
  45. };
  46.