unit AppCentreCom_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 2015/5/6 16:27:43 from Type Library described below. // ************************************************************************ // // Type Lib: D:\IMClient-Root-LQQ\AppCom\AppCentreCom.tlb (1) // LIBID: {8C503EEC-E038-4773-A802-BF691D519B4E} // LCID: 0 // Helpfile: // HelpString: 应用中心接口 // DepndLst: // (1) v2.0 stdole, (C:\Windows\system32\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 AppCentreComMajorVersion = 1; AppCentreComMinorVersion = 0; LIBID_AppCentreCom: TGUID = '{8C503EEC-E038-4773-A802-BF691D519B4E}'; IID_ILXTAppCentreCom: TGUID = '{FC989AE3-8C04-49C9-9628-DD62A8A53BD1}'; CLASS_LXTAppCentreCom: TGUID = '{B1461301-5B24-4403-ABCA-07D8950C86ED}'; type // *********************************************************************// // Forward declaration of types defined in TypeLibrary // *********************************************************************// ILXTAppCentreCom = interface; // *********************************************************************// // Declaration of CoClasses defined in Type Library // (NOTE: Here we map each CoClass to its Default Interface) // *********************************************************************// LXTAppCentreCom = ILXTAppCentreCom; // *********************************************************************// // Interface: ILXTAppCentreCom // Flags: (256) OleAutomation // GUID: {FC989AE3-8C04-49C9-9628-DD62A8A53BD1} // *********************************************************************// ILXTAppCentreCom = interface(IUnknown) ['{FC989AE3-8C04-49C9-9628-DD62A8A53BD1}'] function RegisterInstallationDirectory(AAppKey: PAnsiChar; ADir: PAnsiChar): SYSINT; stdcall; function GetInstallationDirectory(AAppKey: PAnsiChar): PAnsiChar; stdcall; function Authenticate(AToken: PAnsiChar): PAnsiChar; stdcall; end; // *********************************************************************// // The Class CoLXTAppCentreCom provides a Create and CreateRemote method to // create instances of the default interface ILXTAppCentreCom exposed by // the CoClass LXTAppCentreCom. The functions are intended to be used by // clients wishing to automate the CoClass objects exposed by the // server of this typelibrary. // *********************************************************************// CoLXTAppCentreCom = class class function Create: ILXTAppCentreCom; class function CreateRemote(const MachineName: string): ILXTAppCentreCom; end; implementation uses ComObj; class function CoLXTAppCentreCom.Create: ILXTAppCentreCom; begin Result := CreateComObject(CLASS_LXTAppCentreCom) as ILXTAppCentreCom; end; class function CoLXTAppCentreCom.CreateRemote(const MachineName: string): ILXTAppCentreCom; begin Result := CreateRemoteComObject(MachineName, CLASS_LXTAppCentreCom) as ILXTAppCentreCom; end; end.