unit ActiveXObjectTest_TLB; // ************************************************************************ // // WARNING // ------- // The types declared in this file were generated from data read from a // Type Library. If this type library is explicitly or indirectly (via // another type library referring to this type library) re-imported, or the // 'Refresh' command of the Type Library Editor activated while editing the // Type Library, the contents of this file will be regenerated and all // manual modifications will be lost. // ************************************************************************ // // $Rev: 5081 $ // File generated on 2016/5/12 14:10:21 from Type Library described below. // ************************************************************************ // // Type Lib: E:\DelphiProjects\IMClient-Root-CMG\Log\ActiveXObjectTest.tlb (1) // LIBID: {5A8EB089-C171-47CA-AACF-8BC0E9A2783F} // LCID: 0 // Helpfile: // HelpString: ActiveXObjectTest Library // DepndLst: // (1) v2.0 stdole, (C:\Windows\SysWOW64\stdole2.tlb) // ************************************************************************ // {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. {$WARN SYMBOL_PLATFORM OFF} {$WRITEABLECONST ON} {$VARPROPSETTER ON} interface uses Windows, ActiveX, Classes, Graphics, StdVCL, Variants; // *********************************************************************// // GUIDS declared in the TypeLibrary. Following prefixes are used: // Type Libraries : LIBID_xxxx // CoClasses : CLASS_xxxx // DISPInterfaces : DIID_xxxx // Non-DISP interfaces: IID_xxxx // *********************************************************************// const // TypeLibrary Major and minor versions ActiveXObjectTestMajorVersion = 1; ActiveXObjectTestMinorVersion = 0; LIBID_ActiveXObjectTest: TGUID = '{5A8EB089-C171-47CA-AACF-8BC0E9A2783F}'; IID_IWebTest: TGUID = '{656E34F4-EA77-408F-ABF0-B4472DC66EF3}'; CLASS_WebTest: TGUID = '{6F860ED3-2B01-4677-B946-15827630ECD6}'; type // *********************************************************************// // Forward declaration of types defined in TypeLibrary // *********************************************************************// IWebTest = interface; IWebTestDisp = dispinterface; // *********************************************************************// // Declaration of CoClasses defined in Type Library // (NOTE: Here we map each CoClass to its Default Interface) // *********************************************************************// WebTest = IWebTest; // *********************************************************************// // Interface: IWebTest // Flags: (4352) OleAutomation Dispatchable // GUID: {656E34F4-EA77-408F-ABF0-B4472DC66EF3} // *********************************************************************// IWebTest = interface(IDispatch) ['{656E34F4-EA77-408F-ABF0-B4472DC66EF3}'] function SayHello(const Msg: OleVariant): OleVariant; safecall; end; IWebTestDisp = dispinterface ['{656E34F4-EA77-408F-ABF0-B4472DC66EF3}'] function SayHello(const Msg: OleVariant): OleVariant; dispid 201; end; // *********************************************************************// // The Class CoWebTest provides a Create and CreateRemote method to // create instances of the default interface IWebTest exposed by // the CoClass WebTest. The functions are intended to be used by // clients wishing to automate the CoClass objects exposed by the // server of this typelibrary. // *********************************************************************// CoWebTest = class class function Create: IWebTest; class function CreateRemote(const MachineName: string): IWebTest; end; implementation uses ComObj; class function CoWebTest.Create: IWebTest; begin Result := CreateComObject(CLASS_WebTest) as IWebTest; end; class function CoWebTest.CreateRemote(const MachineName: string): IWebTest; begin Result := CreateRemoteComObject(MachineName, CLASS_WebTest) as IWebTest; end; end.