RealICQInterfaces_TLB.pas 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. unit RealICQInterfaces_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. // PASTLWTR : 1.2
  13. // File generated on 2006-9-7 14:43:34 from Type Library described below.
  14. // ************************************************************************ //
  15. // Type Lib: E:\RealICQ For P5P\RealICQ Projects For Win32\COM\SMSSender\RealICQInterfaces.tlb (1)
  16. // LIBID: {5ABBFC45-2480-4F81-AE60-0F10325D1D33}
  17. // LCID: 0
  18. // Helpfile:
  19. // HelpString: RealICQInterfaces 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. RealICQInterfacesMajorVersion = 1;
  39. RealICQInterfacesMinorVersion = 0;
  40. LIBID_RealICQInterfaces: TGUID = '{5ABBFC45-2480-4F81-AE60-0F10325D1D33}';
  41. IID_ISMSSender: TGUID = '{8EFFA38B-81C7-4399-9333-C97EBC081B9F}';
  42. CLASS_SMSSender: TGUID = '{09184723-8457-47DA-AF2C-01FC3358149B}';
  43. type
  44. // *********************************************************************//
  45. // Forward declaration of types defined in TypeLibrary
  46. // *********************************************************************//
  47. ISMSSender = interface;
  48. ISMSSenderDisp = dispinterface;
  49. // *********************************************************************//
  50. // Declaration of CoClasses defined in Type Library
  51. // (NOTE: Here we map each CoClass to its Default Interface)
  52. // *********************************************************************//
  53. SMSSender = ISMSSender;
  54. // *********************************************************************//
  55. // Interface: ISMSSender
  56. // Flags: (4416) Dual OleAutomation Dispatchable
  57. // GUID: {8EFFA38B-81C7-4399-9333-C97EBC081B9F}
  58. // *********************************************************************//
  59. ISMSSender = interface(IDispatch)
  60. ['{8EFFA38B-81C7-4399-9333-C97EBC081B9F}']
  61. procedure Set_ServerAddress(Param1: OleVariant); safecall;
  62. procedure Set_ServerPort(Param1: SYSINT); safecall;
  63. procedure SendSMS(PhoneID: OleVariant; P5PID: OleVariant; SendDateTime: TDateTime;
  64. Content: OleVariant); safecall;
  65. property ServerAddress: OleVariant write Set_ServerAddress;
  66. property ServerPort: SYSINT write Set_ServerPort;
  67. end;
  68. // *********************************************************************//
  69. // DispIntf: ISMSSenderDisp
  70. // Flags: (4416) Dual OleAutomation Dispatchable
  71. // GUID: {8EFFA38B-81C7-4399-9333-C97EBC081B9F}
  72. // *********************************************************************//
  73. ISMSSenderDisp = dispinterface
  74. ['{8EFFA38B-81C7-4399-9333-C97EBC081B9F}']
  75. property ServerAddress: OleVariant writeonly dispid 201;
  76. property ServerPort: SYSINT writeonly dispid 202;
  77. procedure SendSMS(PhoneID: OleVariant; P5PID: OleVariant; SendDateTime: TDateTime;
  78. Content: OleVariant); dispid 203;
  79. end;
  80. // *********************************************************************//
  81. // The Class CoSMSSender provides a Create and CreateRemote method to
  82. // create instances of the default interface ISMSSender exposed by
  83. // the CoClass SMSSender. The functions are intended to be used by
  84. // clients wishing to automate the CoClass objects exposed by the
  85. // server of this typelibrary.
  86. // *********************************************************************//
  87. CoSMSSender = class
  88. class function Create: ISMSSender;
  89. class function CreateRemote(const MachineName: string): ISMSSender;
  90. end;
  91. implementation
  92. uses ComObj;
  93. class function CoSMSSender.Create: ISMSSender;
  94. begin
  95. Result := CreateComObject(CLASS_SMSSender) as ISMSSender;
  96. end;
  97. class function CoSMSSender.CreateRemote(const MachineName: string): ISMSSender;
  98. begin
  99. Result := CreateRemoteComObject(MachineName, CLASS_SMSSender) as ISMSSender;
  100. end;
  101. end.