AppCentreCom_TLB.pas 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. unit AppCentreCom_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: 8291 $
  13. // File generated on 2016/4/8 16:01:00 from Type Library described below.
  14. // ************************************************************************ //
  15. // Type Lib: D:\DelphiProjects\IMClient-Root-LQQ\AppCom\AppCentreCom.tlb (1)
  16. // LIBID: {8C503EEC-E038-4773-A802-BF691D519B4E}
  17. // LCID: 0
  18. // Helpfile:
  19. // HelpString: Ó¦ÓÃÖÐÐĽӿÚ
  20. // DepndLst:
  21. // (1) v2.0 stdole, (C:\Windows\System32\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. AppCentreComMajorVersion = 1;
  39. AppCentreComMinorVersion = 0;
  40. LIBID_AppCentreCom: TGUID = '{8C503EEC-E038-4773-A802-BF691D519B4E}';
  41. IID_ILXTAppCentreCom: TGUID = '{FC989AE3-8C04-49C9-9628-DD62A8A53BD1}';
  42. CLASS_LXTAppCentreCom: TGUID = '{B1461301-5B24-4403-ABCA-07D8950C86ED}';
  43. type
  44. // *********************************************************************//
  45. // Forward declaration of types defined in TypeLibrary
  46. // *********************************************************************//
  47. ILXTAppCentreCom = interface;
  48. // *********************************************************************//
  49. // Declaration of CoClasses defined in Type Library
  50. // (NOTE: Here we map each CoClass to its Default Interface)
  51. // *********************************************************************//
  52. LXTAppCentreCom = ILXTAppCentreCom;
  53. // *********************************************************************//
  54. // Interface: ILXTAppCentreCom
  55. // Flags: (256) OleAutomation
  56. // GUID: {FC989AE3-8C04-49C9-9628-DD62A8A53BD1}
  57. // *********************************************************************//
  58. ILXTAppCentreCom = interface(IUnknown)
  59. ['{FC989AE3-8C04-49C9-9628-DD62A8A53BD1}']
  60. function RegisterInstallationDirectory(AAppKey: PChar; ADir: PChar): SYSINT; stdcall;
  61. function GetInstallationDirectory(AAppKey: PChar): PChar; stdcall;
  62. function Authenticate(AAuthURL: PChar; AAppSecret: PChar): PChar; stdcall;
  63. end;
  64. // *********************************************************************//
  65. // The Class CoLXTAppCentreCom provides a Create and CreateRemote method to
  66. // create instances of the default interface ILXTAppCentreCom exposed by
  67. // the CoClass LXTAppCentreCom. The functions are intended to be used by
  68. // clients wishing to automate the CoClass objects exposed by the
  69. // server of this typelibrary.
  70. // *********************************************************************//
  71. CoLXTAppCentreCom = class
  72. class function Create: ILXTAppCentreCom;
  73. class function CreateRemote(const MachineName: string): ILXTAppCentreCom;
  74. end;
  75. implementation
  76. uses ComObj;
  77. class function CoLXTAppCentreCom.Create: ILXTAppCentreCom;
  78. begin
  79. Result := CreateComObject(CLASS_LXTAppCentreCom) as ILXTAppCentreCom;
  80. end;
  81. class function CoLXTAppCentreCom.CreateRemote(const MachineName: string): ILXTAppCentreCom;
  82. begin
  83. Result := CreateRemoteComObject(MachineName, CLASS_LXTAppCentreCom) as ILXTAppCentreCom;
  84. end;
  85. end.