Componentes.Terceros.RemObj.../internal/5.0.23.613/1/RemObjects SDK for Delphi/Samples/COM/ROCOM_TLB.pas
david 2824855ea7 - Modificación del paquete RemObjects_Core_D10 para que sea un paquete de runtime/designtime (antes era designtime sólo)
- Recompilación en Delphi10 de todos los paquetes de RO para generar las DCU's en Lib\D10
- Recompilación en Delphi10 de todos los paquetes de DA para generar las DCU's en Lib\D10

git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@9 b6239004-a887-0f4b-9937-50029ccdca16
2007-09-10 14:06:19 +00:00

239 lines
12 KiB
ObjectPascal

unit ROCOM_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.0$
// File generated on 3/4/2004 1:47:40 AM from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Dev\ROSDK3\Bin\ROCOM.dll (1)
// LIBID: {FC2EC537-E5F2-4C65-82EA-AF94C4AA742B}
// LCID: 0
// Helpfile:
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// (2) v4.0 StdVCL, (C:\WINDOWS\system32\stdvcl40.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, OleServer, 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
ROCOMMajorVersion = 1;
ROCOMMinorVersion = 0;
LIBID_ROCOM: TGUID = '{FC2EC537-E5F2-4C65-82EA-AF94C4AA742B}';
IID_IROCOMServer: TGUID = '{B59C6504-BAEC-41D3-8740-B8EF6BC8630F}';
CLASS_ROCOMServer: TGUID = '{886FF65A-00E0-4D12-8FB3-0129F03842C0}';
IID_IROCOMArray: TGUID = '{52F2EA1A-ABDB-4124-9BDE-6B49105A92E9}';
IID_IROCOMBinary: TGUID = '{C2B18A45-04B9-45D8-A84F-DACD2FBABAF8}';
CLASS_ROCOMBinaryTypeWrapper: TGUID = '{3B24E151-81FC-4EA6-BD91-C602499963F7}';
CLASS_ROCOMArrayTypeWrapper: TGUID = '{CFF986AA-6C4A-417F-B688-84CCF32FE0F0}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IROCOMServer = interface;
IROCOMServerDisp = dispinterface;
IROCOMArray = interface;
IROCOMArrayDisp = dispinterface;
IROCOMBinary = interface;
IROCOMBinaryDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
ROCOMServer = IROCOMServer;
ROCOMBinaryTypeWrapper = IROCOMBinary;
ROCOMArrayTypeWrapper = IROCOMArray;
// *********************************************************************//
// Interface: IROCOMServer
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {B59C6504-BAEC-41D3-8740-B8EF6BC8630F}
// *********************************************************************//
IROCOMServer = interface(IDispatch)
['{B59C6504-BAEC-41D3-8740-B8EF6BC8630F}']
function CreateService(const ServiceName: WideString): OleVariant; safecall;
function CreateComplexType(const ComplexTypeName: WideString): OleVariant; safecall;
function CreateArrayType(const aArrayTypeName: WideString): OleVariant; safecall;
function CreateBinaryType: OleVariant; safecall;
function Get_ChannelType: WideString; safecall;
procedure Set_ChannelType(const Value: WideString); safecall;
function Get_MessageType: WideString; safecall;
procedure Set_MessageType(const Value: WideString); safecall;
procedure SetChannelProperty(const Name: WideString; Value: OleVariant); safecall;
procedure SetMessageProperty(const Name: WideString; Value: OleVariant); safecall;
function GetChannelProperty(const Name: WideString): OleVariant; safecall;
function GetMessageProperty(const Name: WideString): OleVariant; safecall;
property ChannelType: WideString read Get_ChannelType write Set_ChannelType;
property MessageType: WideString read Get_MessageType write Set_MessageType;
end;
// *********************************************************************//
// DispIntf: IROCOMServerDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {B59C6504-BAEC-41D3-8740-B8EF6BC8630F}
// *********************************************************************//
IROCOMServerDisp = dispinterface
['{B59C6504-BAEC-41D3-8740-B8EF6BC8630F}']
function CreateService(const ServiceName: WideString): OleVariant; dispid 1;
function CreateComplexType(const ComplexTypeName: WideString): OleVariant; dispid 2;
function CreateArrayType(const aArrayTypeName: WideString): OleVariant; dispid 147;
function CreateBinaryType: OleVariant; dispid 4;
property ChannelType: WideString dispid 8;
property MessageType: WideString dispid 9;
procedure SetChannelProperty(const Name: WideString; Value: OleVariant); dispid 10;
procedure SetMessageProperty(const Name: WideString; Value: OleVariant); dispid 11;
function GetChannelProperty(const Name: WideString): OleVariant; dispid 12;
function GetMessageProperty(const Name: WideString): OleVariant; dispid 13;
end;
// *********************************************************************//
// Interface: IROCOMArray
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {52F2EA1A-ABDB-4124-9BDE-6B49105A92E9}
// *********************************************************************//
IROCOMArray = interface(IDispatch)
['{52F2EA1A-ABDB-4124-9BDE-6B49105A92E9}']
function Get_Count: Integer; safecall;
procedure Set_Count(Value: Integer); safecall;
procedure SetValue(aIndex: Integer; aValue: OleVariant); safecall;
function GetValue(aIndex: Integer): OleVariant; safecall;
property Count: Integer read Get_Count write Set_Count;
end;
// *********************************************************************//
// DispIntf: IROCOMArrayDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {52F2EA1A-ABDB-4124-9BDE-6B49105A92E9}
// *********************************************************************//
IROCOMArrayDisp = dispinterface
['{52F2EA1A-ABDB-4124-9BDE-6B49105A92E9}']
property Count: Integer dispid 1;
procedure SetValue(aIndex: Integer; aValue: OleVariant); dispid 2;
function GetValue(aIndex: Integer): OleVariant; dispid 3;
end;
// *********************************************************************//
// Interface: IROCOMBinary
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {C2B18A45-04B9-45D8-A84F-DACD2FBABAF8}
// *********************************************************************//
IROCOMBinary = interface(IDispatch)
['{C2B18A45-04B9-45D8-A84F-DACD2FBABAF8}']
procedure LoadFromFile(const aFilename: WideString); safecall;
procedure SaveToFile(const aFilename: WideString); safecall;
function ToString: WideString; safecall;
end;
// *********************************************************************//
// DispIntf: IROCOMBinaryDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {C2B18A45-04B9-45D8-A84F-DACD2FBABAF8}
// *********************************************************************//
IROCOMBinaryDisp = dispinterface
['{C2B18A45-04B9-45D8-A84F-DACD2FBABAF8}']
procedure LoadFromFile(const aFilename: WideString); dispid 1;
procedure SaveToFile(const aFilename: WideString); dispid 2;
function ToString: WideString; dispid 201;
end;
// *********************************************************************//
// The Class CoROCOMServer provides a Create and CreateRemote method to
// create instances of the default interface IROCOMServer exposed by
// the CoClass ROCOMServer. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoROCOMServer = class
class function Create: IROCOMServer;
class function CreateRemote(const MachineName: string): IROCOMServer;
end;
// *********************************************************************//
// The Class CoROCOMBinaryTypeWrapper provides a Create and CreateRemote method to
// create instances of the default interface IROCOMBinary exposed by
// the CoClass ROCOMBinaryTypeWrapper. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoROCOMBinaryTypeWrapper = class
class function Create: IROCOMBinary;
class function CreateRemote(const MachineName: string): IROCOMBinary;
end;
// *********************************************************************//
// The Class CoROCOMArrayTypeWrapper provides a Create and CreateRemote method to
// create instances of the default interface IROCOMArray exposed by
// the CoClass ROCOMArrayTypeWrapper. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoROCOMArrayTypeWrapper = class
class function Create: IROCOMArray;
class function CreateRemote(const MachineName: string): IROCOMArray;
end;
implementation
uses ComObj;
class function CoROCOMServer.Create: IROCOMServer;
begin
Result := CreateComObject(CLASS_ROCOMServer) as IROCOMServer;
end;
class function CoROCOMServer.CreateRemote(const MachineName: string): IROCOMServer;
begin
Result := CreateRemoteComObject(MachineName, CLASS_ROCOMServer) as IROCOMServer;
end;
class function CoROCOMBinaryTypeWrapper.Create: IROCOMBinary;
begin
Result := CreateComObject(CLASS_ROCOMBinaryTypeWrapper) as IROCOMBinary;
end;
class function CoROCOMBinaryTypeWrapper.CreateRemote(const MachineName: string): IROCOMBinary;
begin
Result := CreateRemoteComObject(MachineName, CLASS_ROCOMBinaryTypeWrapper) as IROCOMBinary;
end;
class function CoROCOMArrayTypeWrapper.Create: IROCOMArray;
begin
Result := CreateComObject(CLASS_ROCOMArrayTypeWrapper) as IROCOMArray;
end;
class function CoROCOMArrayTypeWrapper.CreateRemote(const MachineName: string): IROCOMArray;
begin
Result := CreateRemoteComObject(MachineName, CLASS_ROCOMArrayTypeWrapper) as IROCOMArray;
end;
end.