RealICQCOMInterfaces_TLB.pas 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. unit RealICQCOMInterfaces_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 2014/11/28 16:13:08 from Type Library described below.
  14. // ************************************************************************ //
  15. // Type Lib: D:\ÀöË®°æ20141125\COM\RealICQCOMInterfaces\RealICQCOMInterfaces.tlb (1)
  16. // LIBID: {CE78C617-89B7-412F-BF8D-06FE79DA7B61}
  17. // LCID: 0
  18. // Helpfile:
  19. // HelpString: RealICQCOMInterfaces Library
  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. RealICQCOMInterfacesMajorVersion = 1;
  39. RealICQCOMInterfacesMinorVersion = 0;
  40. LIBID_RealICQCOMInterfaces: TGUID = '{CE78C617-89B7-412F-BF8D-06FE79DA7B61}';
  41. IID_ICustomMessageSender: TGUID = '{85ACC616-2A33-4519-ADB8-0E00138D19BB}';
  42. DIID_ICustomMessageSenderEvents: TGUID = '{35A2EDC8-5AE9-403F-99B9-FC0B7B3CBE0B}';
  43. CLASS_CustomMessageSender: TGUID = '{405FEBB0-C9CA-43E4-9F7D-EA9C1E6A1AAB}';
  44. type
  45. // *********************************************************************//
  46. // Forward declaration of types defined in TypeLibrary
  47. // *********************************************************************//
  48. ICustomMessageSender = interface;
  49. ICustomMessageSenderDisp = dispinterface;
  50. ICustomMessageSenderEvents = dispinterface;
  51. // *********************************************************************//
  52. // Declaration of CoClasses defined in Type Library
  53. // (NOTE: Here we map each CoClass to its Default Interface)
  54. // *********************************************************************//
  55. CustomMessageSender = ICustomMessageSender;
  56. // *********************************************************************//
  57. // Interface: ICustomMessageSender
  58. // Flags: (4416) Dual OleAutomation Dispatchable
  59. // GUID: {85ACC616-2A33-4519-ADB8-0E00138D19BB}
  60. // *********************************************************************//
  61. ICustomMessageSender = interface(IDispatch)
  62. ['{85ACC616-2A33-4519-ADB8-0E00138D19BB}']
  63. procedure OnStartPage(const unk: IUnknown); safecall;
  64. procedure OnEndPage; safecall;
  65. procedure Send(ServerAddress: OleVariant; ServerPort: SYSINT; LoginName: OleVariant;
  66. Content: OleVariant; Flag: SYSINT); safecall;
  67. function Get_Result: SYSINT; safecall;
  68. property Result: SYSINT read Get_Result;
  69. end;
  70. // *********************************************************************//
  71. // DispIntf: ICustomMessageSenderDisp
  72. // Flags: (4416) Dual OleAutomation Dispatchable
  73. // GUID: {85ACC616-2A33-4519-ADB8-0E00138D19BB}
  74. // *********************************************************************//
  75. ICustomMessageSenderDisp = dispinterface
  76. ['{85ACC616-2A33-4519-ADB8-0E00138D19BB}']
  77. procedure OnStartPage(const unk: IUnknown); dispid 201;
  78. procedure OnEndPage; dispid 202;
  79. procedure Send(ServerAddress: OleVariant; ServerPort: SYSINT; LoginName: OleVariant;
  80. Content: OleVariant; Flag: SYSINT); dispid 203;
  81. property Result: SYSINT readonly dispid 204;
  82. end;
  83. // *********************************************************************//
  84. // DispIntf: ICustomMessageSenderEvents
  85. // Flags: (4096) Dispatchable
  86. // GUID: {35A2EDC8-5AE9-403F-99B9-FC0B7B3CBE0B}
  87. // *********************************************************************//
  88. ICustomMessageSenderEvents = dispinterface
  89. ['{35A2EDC8-5AE9-403F-99B9-FC0B7B3CBE0B}']
  90. end;
  91. // *********************************************************************//
  92. // The Class CoCustomMessageSender provides a Create and CreateRemote method to
  93. // create instances of the default interface ICustomMessageSender exposed by
  94. // the CoClass CustomMessageSender. The functions are intended to be used by
  95. // clients wishing to automate the CoClass objects exposed by the
  96. // server of this typelibrary.
  97. // *********************************************************************//
  98. CoCustomMessageSender = class
  99. class function Create: ICustomMessageSender;
  100. class function CreateRemote(const MachineName: string): ICustomMessageSender;
  101. end;
  102. implementation
  103. uses ComObj;
  104. class function CoCustomMessageSender.Create: ICustomMessageSender;
  105. begin
  106. Result := CreateComObject(CLASS_CustomMessageSender) as ICustomMessageSender;
  107. end;
  108. class function CoCustomMessageSender.CreateRemote(const MachineName: string): ICustomMessageSender;
  109. begin
  110. Result := CreateRemoteComObject(MachineName, CLASS_CustomMessageSender) as ICustomMessageSender;
  111. end;
  112. end.