ActiveXObjectTest_TLB.pas 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. unit ActiveXObjectTest_TLB;
  2. // ************************************************************************ //
  3. // WARNING
  4. // -------
  5. // The types declared in this file were generated from data read from a
  6. // Type Library. If this type library is explicitly or indirectly (via
  7. // another type library referring to this type library) re-imported, or the
  8. // 'Refresh' command of the Type Library Editor activated while editing the
  9. // Type Library, the contents of this file will be regenerated and all
  10. // manual modifications will be lost.
  11. // ************************************************************************ //
  12. // $Rev: 5081 $
  13. // File generated on 2016/5/12 14:10:21 from Type Library described below.
  14. // ************************************************************************ //
  15. // Type Lib: E:\DelphiProjects\IMClient-Root-CMG\Log\ActiveXObjectTest.tlb (1)
  16. // LIBID: {5A8EB089-C171-47CA-AACF-8BC0E9A2783F}
  17. // LCID: 0
  18. // Helpfile:
  19. // HelpString: ActiveXObjectTest Library
  20. // DepndLst:
  21. // (1) v2.0 stdole, (C:\Windows\SysWOW64\stdole2.tlb)
  22. // ************************************************************************ //
  23. {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
  24. {$WARN SYMBOL_PLATFORM OFF}
  25. {$WRITEABLECONST ON}
  26. {$VARPROPSETTER ON}
  27. interface
  28. uses Windows, ActiveX, Classes, Graphics, StdVCL, Variants;
  29. // *********************************************************************//
  30. // GUIDS declared in the TypeLibrary. Following prefixes are used:
  31. // Type Libraries : LIBID_xxxx
  32. // CoClasses : CLASS_xxxx
  33. // DISPInterfaces : DIID_xxxx
  34. // Non-DISP interfaces: IID_xxxx
  35. // *********************************************************************//
  36. const
  37. // TypeLibrary Major and minor versions
  38. ActiveXObjectTestMajorVersion = 1;
  39. ActiveXObjectTestMinorVersion = 0;
  40. LIBID_ActiveXObjectTest: TGUID = '{5A8EB089-C171-47CA-AACF-8BC0E9A2783F}';
  41. IID_IWebTest: TGUID = '{656E34F4-EA77-408F-ABF0-B4472DC66EF3}';
  42. CLASS_WebTest: TGUID = '{6F860ED3-2B01-4677-B946-15827630ECD6}';
  43. type
  44. // *********************************************************************//
  45. // Forward declaration of types defined in TypeLibrary
  46. // *********************************************************************//
  47. IWebTest = interface;
  48. IWebTestDisp = dispinterface;
  49. // *********************************************************************//
  50. // Declaration of CoClasses defined in Type Library
  51. // (NOTE: Here we map each CoClass to its Default Interface)
  52. // *********************************************************************//
  53. WebTest = IWebTest;
  54. // *********************************************************************//
  55. // Interface: IWebTest
  56. // Flags: (4352) OleAutomation Dispatchable
  57. // GUID: {656E34F4-EA77-408F-ABF0-B4472DC66EF3}
  58. // *********************************************************************//
  59. IWebTest = interface(IDispatch)
  60. ['{656E34F4-EA77-408F-ABF0-B4472DC66EF3}']
  61. function SayHello(const Msg: OleVariant): OleVariant; safecall;
  62. end;
  63. IWebTestDisp = dispinterface
  64. ['{656E34F4-EA77-408F-ABF0-B4472DC66EF3}']
  65. function SayHello(const Msg: OleVariant): OleVariant; dispid 201;
  66. end;
  67. // *********************************************************************//
  68. // The Class CoWebTest provides a Create and CreateRemote method to
  69. // create instances of the default interface IWebTest exposed by
  70. // the CoClass WebTest. The functions are intended to be used by
  71. // clients wishing to automate the CoClass objects exposed by the
  72. // server of this typelibrary.
  73. // *********************************************************************//
  74. CoWebTest = class
  75. class function Create: IWebTest;
  76. class function CreateRemote(const MachineName: string): IWebTest;
  77. end;
  78. implementation
  79. uses ComObj;
  80. class function CoWebTest.Create: IWebTest;
  81. begin
  82. Result := CreateComObject(CLASS_WebTest) as IWebTest;
  83. end;
  84. class function CoWebTest.CreateRemote(const MachineName: string): IWebTest;
  85. begin
  86. Result := CreateRemoteComObject(MachineName, CLASS_WebTest) as IWebTest;
  87. end;
  88. end.