home *** CD-ROM | disk | FTP | other *** search
- unit miserv_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 : $Revision: 1.11.1.63 $
- // File generated on 07/04/99 10:36:41 from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: D:\conferen\CORBA16\Miserv1.tlb
- // IID\LCID: {C2A54FA6-53B7-11D2-AC35-02608C6CCF39}\0
- // Helpfile:
- // HelpString: Project1 Library
- // Version: 1.0
- // ************************************************************************ //
-
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL, SysUtils, CORBAObj, OrbPas, CorbaStd;
-
- // *********************************************************************//
- // 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
- LIBID_miserv: TGUID = '{C2A54FA6-53B7-11D2-AC35-02608C6CCF39}';
- IID_ITMIAPLICACION: TGUID = '{C2A54FA7-53B7-11D2-AC35-02608C6CCF39}';
- CLASS_TMIAPLICACION: TGUID = '{C2A54FA9-53B7-11D2-AC35-02608C6CCF39}';
- type
-
- // *********************************************************************//
- // Forward declaration of interfaces defined in Type Library //
- // *********************************************************************//
- ITMIAPLICACION = interface;
- ITMIAPLICACIONDisp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library //
- // (NOTE: Here we map each CoClass to its Default Interface) //
- // *********************************************************************//
- TMIAPLICACION = ITMIAPLICACION;
-
-
- // *********************************************************************//
- // Interface: ITMIAPLICACION
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {C2A54FA7-53B7-11D2-AC35-02608C6CCF39}
- // *********************************************************************//
- ITMIAPLICACION = interface(IDataBroker)
- ['{C2A54FA7-53B7-11D2-AC35-02608C6CCF39}']
- function Get_Table1: IProvider; safecall;
- function Get_Query1: IProvider; safecall;
- property Table1: IProvider read Get_Table1;
- property Query1: IProvider read Get_Query1;
- end;
-
- // *********************************************************************//
- // DispIntf: ITMIAPLICACIONDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {C2A54FA7-53B7-11D2-AC35-02608C6CCF39}
- // *********************************************************************//
- ITMIAPLICACIONDisp = dispinterface
- ['{C2A54FA7-53B7-11D2-AC35-02608C6CCF39}']
- property Table1: IProvider readonly dispid 1;
- property Query1: IProvider readonly dispid 2;
- function GetProviderNames: OleVariant; dispid 22929905;
- end;
-
- TTMIAPLICACIONStub = class(TDataBrokerStub, ITMIAPLICACION)
- public
- function Get_Table1: IProvider; safecall;
- function Get_Query1: IProvider; safecall;
- end;
-
- TTMIAPLICACIONSkeleton = class(TDataBrokerSkeleton)
- private
- FIntf: ITMIAPLICACION;
- public
- constructor Create(const InstanceName: string; const Impl: IUnknown); override;
- procedure GetImplementation(out Impl: IUnknown); override; stdcall;
- published
- procedure Get_Table1(const InBuf: IMarshalInBuffer; Cookie: Pointer);
- procedure Get_Query1(const InBuf: IMarshalInBuffer; Cookie: Pointer);
- end;
-
- CoTMIAPLICACION = class
- class function Create: ITMIAPLICACION;
- class function CreateRemote(const MachineName: string): ITMIAPLICACION;
- end;
-
- TTMIAPLICACIONCorbaFactory = class
- class function CreateInstance(const InstanceName: string): ITMIAPLICACION;
- end;
-
- implementation
-
- uses ComObj;
-
- { TTMIAPLICACIONStub }
-
- function TTMIAPLICACIONStub.Get_Table1: IProvider;
- var
- OutBuf: IMarshalOutBuffer;
- InBuf: IMarshalInBuffer;
- begin
- FStub.CreateRequest('Get_Table1', True, OutBuf);
- FStub.Invoke(OutBuf, InBuf);
- Result := UnmarshalObject(InBuf, IProvider) as IProvider;
- end;
-
- function TTMIAPLICACIONStub.Get_Query1: IProvider;
- var
- OutBuf: IMarshalOutBuffer;
- InBuf: IMarshalInBuffer;
- begin
- FStub.CreateRequest('Get_Query1', True, OutBuf);
- FStub.Invoke(OutBuf, InBuf);
- Result := UnmarshalObject(InBuf, IProvider) as IProvider;
- end;
-
- { TTMIAPLICACIONSkeleton }
-
- constructor TTMIAPLICACIONSkeleton.Create(const InstanceName: string; const Impl: IUnknown);
- begin
- inherited;
- inherited InitSkeleton('TMIAPLICACION', InstanceName, 'IDL:miserv/ITMIAPLICACION:1.0', tmMultiThreaded, True);
- FIntf := Impl as ITMIAPLICACION;
- end;
-
- procedure TTMIAPLICACIONSkeleton.GetImplementation(out Impl: IUnknown);
- begin
- Impl := FIntf;
- end;
-
- procedure TTMIAPLICACIONSkeleton.Get_Table1(const InBuf: IMarshalInBuffer; Cookie: Pointer);
- var
- OutBuf: IMarshalOutBuffer;
- Retval: IProvider;
- begin
- Retval := FIntf.Get_Table1;
- FSkeleton.GetReplyBuffer(Cookie, OutBuf);
- MarshalObject(OutBuf, IProvider, Retval);
- end;
-
- procedure TTMIAPLICACIONSkeleton.Get_Query1(const InBuf: IMarshalInBuffer; Cookie: Pointer);
- var
- OutBuf: IMarshalOutBuffer;
- Retval: IProvider;
- begin
- Retval := FIntf.Get_Query1;
- FSkeleton.GetReplyBuffer(Cookie, OutBuf);
- MarshalObject(OutBuf, IProvider, Retval);
- end;
-
- class function CoTMIAPLICACION.Create: ITMIAPLICACION;
- begin
- Result := CreateComObject(CLASS_TMIAPLICACION) as ITMIAPLICACION;
- end;
-
- class function CoTMIAPLICACION.CreateRemote(const MachineName: string): ITMIAPLICACION;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_TMIAPLICACION) as ITMIAPLICACION;
- end;
-
- class function TTMIAPLICACIONCorbaFactory.CreateInstance(const InstanceName: string): ITMIAPLICACION;
- begin
- Result := CorbaFactoryCreateStub('IDL:miserv/TMIAPLICACIONFactory:1.0', 'TMIAPLICACION',
- InstanceName, '', ITMIAPLICACION) as ITMIAPLICACION;
- end;
-
- initialization
- CorbaStubManager.RegisterStub(ITMIAPLICACION, TTMIAPLICACIONStub);
- CorbaInterfaceIDManager.RegisterInterface(ITMIAPLICACION, 'IDL:miserv/ITMIAPLICACION:1.0');
- CorbaSkeletonManager.RegisterSkeleton(ITMIAPLICACION, TTMIAPLICACIONSkeleton);
-
- end.
-