unit RealICQInterfaces_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. // ************************************************************************ // // PASTLWTR : 1.2 // File generated on 2006-9-7 14:43:34 from Type Library described below. // ************************************************************************ // // Type Lib: E:\RealICQ For P5P\RealICQ Projects For Win32\COM\SMSSender\RealICQInterfaces.tlb (1) // LIBID: {5ABBFC45-2480-4F81-AE60-0F10325D1D33} // LCID: 0 // Helpfile: // HelpString: RealICQInterfaces Library // 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 RealICQInterfacesMajorVersion = 1; RealICQInterfacesMinorVersion = 0; LIBID_RealICQInterfaces: TGUID = '{5ABBFC45-2480-4F81-AE60-0F10325D1D33}'; IID_ISMSSender: TGUID = '{8EFFA38B-81C7-4399-9333-C97EBC081B9F}'; CLASS_SMSSender: TGUID = '{09184723-8457-47DA-AF2C-01FC3358149B}'; type // *********************************************************************// // Forward declaration of types defined in TypeLibrary // *********************************************************************// ISMSSender = interface; ISMSSenderDisp = dispinterface; // *********************************************************************// // Declaration of CoClasses defined in Type Library // (NOTE: Here we map each CoClass to its Default Interface) // *********************************************************************// SMSSender = ISMSSender; // *********************************************************************// // Interface: ISMSSender // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {8EFFA38B-81C7-4399-9333-C97EBC081B9F} // *********************************************************************// ISMSSender = interface(IDispatch) ['{8EFFA38B-81C7-4399-9333-C97EBC081B9F}'] procedure Set_ServerAddress(Param1: OleVariant); safecall; procedure Set_ServerPort(Param1: SYSINT); safecall; procedure SendSMS(PhoneID: OleVariant; P5PID: OleVariant; SendDateTime: TDateTime; Content: OleVariant); safecall; property ServerAddress: OleVariant write Set_ServerAddress; property ServerPort: SYSINT write Set_ServerPort; end; // *********************************************************************// // DispIntf: ISMSSenderDisp // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {8EFFA38B-81C7-4399-9333-C97EBC081B9F} // *********************************************************************// ISMSSenderDisp = dispinterface ['{8EFFA38B-81C7-4399-9333-C97EBC081B9F}'] property ServerAddress: OleVariant writeonly dispid 201; property ServerPort: SYSINT writeonly dispid 202; procedure SendSMS(PhoneID: OleVariant; P5PID: OleVariant; SendDateTime: TDateTime; Content: OleVariant); dispid 203; end; // *********************************************************************// // The Class CoSMSSender provides a Create and CreateRemote method to // create instances of the default interface ISMSSender exposed by // the CoClass SMSSender. The functions are intended to be used by // clients wishing to automate the CoClass objects exposed by the // server of this typelibrary. // *********************************************************************// CoSMSSender = class class function Create: ISMSSender; class function CreateRemote(const MachineName: string): ISMSSender; end; implementation uses ComObj; class function CoSMSSender.Create: ISMSSender; begin Result := CreateComObject(CLASS_SMSSender) as ISMSSender; end; class function CoSMSSender.CreateRemote(const MachineName: string): ISMSSender; begin Result := CreateRemoteComObject(MachineName, CLASS_SMSSender) as ISMSSender; end; end.