📄 firstserv_tlb.pas
字号:
unit FirstServ_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.
// ************************************************************************ //
// $Rev: 8291 $
// File generated on 1/18/2008 5:19:48 PM from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Text\OPC-mine\OPC_Publish\FirstServ.tlb (1)
// LIBID: {A42F19F1-608B-11D3-B98D-00403357BAA5}
// LCID: 0
// Helpfile:
// HelpString: MRD OPC 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
FirstServMajorVersion = 2;
FirstServMinorVersion = 0;
LIBID_FirstServ: TGUID = '{A42F19F1-608B-11D3-B98D-00403357BAA5}';
IID_IDA2: TGUID = '{A42F19F2-608B-11D3-B98D-00403357BAA5}';
CLASS_DA2: TGUID = '{A42F19F4-608B-11D3-B98D-00403357BAA5}';
IID_DA2Unknown: TGUID = '{DEBAB081-6AE4-11D3-B995-00403357BAA5}';
IID_IOPCGroup: TGUID = '{B1779B97-71B6-11D3-B996-00104B33F2C4}';
CLASS_OPCGroup: TGUID = '{B1779B99-71B6-11D3-B996-00104B33F2C4}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IDA2 = interface;
IDA2Disp = dispinterface;
DA2Unknown = interface;
DA2UnknownDisp = dispinterface;
IOPCGroup = interface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
DA2 = IDA2;
OPCGroup = IOPCGroup;
// *********************************************************************//
// Interface: IDA2
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {A42F19F2-608B-11D3-B98D-00403357BAA5}
// *********************************************************************//
IDA2 = interface(IDispatch)
['{A42F19F2-608B-11D3-B98D-00403357BAA5}']
end;
// *********************************************************************//
// DispIntf: IDA2Disp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {A42F19F2-608B-11D3-B98D-00403357BAA5}
// *********************************************************************//
IDA2Disp = dispinterface
['{A42F19F2-608B-11D3-B98D-00403357BAA5}']
end;
// *********************************************************************//
// Interface: DA2Unknown
// Flags: (320) Dual OleAutomation
// GUID: {DEBAB081-6AE4-11D3-B995-00403357BAA5}
// *********************************************************************//
DA2Unknown = interface(IUnknown)
['{DEBAB081-6AE4-11D3-B995-00403357BAA5}']
end;
// *********************************************************************//
// DispIntf: DA2UnknownDisp
// Flags: (320) Dual OleAutomation
// GUID: {DEBAB081-6AE4-11D3-B995-00403357BAA5}
// *********************************************************************//
DA2UnknownDisp = dispinterface
['{DEBAB081-6AE4-11D3-B995-00403357BAA5}']
end;
// *********************************************************************//
// Interface: IOPCGroup
// Flags: (0)
// GUID: {B1779B97-71B6-11D3-B996-00104B33F2C4}
// *********************************************************************//
IOPCGroup = interface(IUnknown)
['{B1779B97-71B6-11D3-B996-00104B33F2C4}']
end;
// *********************************************************************//
// The Class CoDA2 provides a Create and CreateRemote method to
// create instances of the default interface IDA2 exposed by
// the CoClass DA2. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoDA2 = class
class function Create: IDA2;
class function CreateRemote(const MachineName: string): IDA2;
end;
// *********************************************************************//
// The Class CoOPCGroup provides a Create and CreateRemote method to
// create instances of the default interface IOPCGroup exposed by
// the CoClass OPCGroup. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoOPCGroup = class
class function Create: IOPCGroup;
class function CreateRemote(const MachineName: string): IOPCGroup;
end;
implementation
uses ComObj;
class function CoDA2.Create: IDA2;
begin
Result := CreateComObject(CLASS_DA2) as IDA2;
end;
class function CoDA2.CreateRemote(const MachineName: string): IDA2;
begin
Result := CreateRemoteComObject(MachineName, CLASS_DA2) as IDA2;
end;
class function CoOPCGroup.Create: IOPCGroup;
begin
Result := CreateComObject(CLASS_OPCGroup) as IOPCGroup;
end;
class function CoOPCGroup.CreateRemote(const MachineName: string): IOPCGroup;
begin
Result := CreateRemoteComObject(MachineName, CLASS_OPCGroup) as IOPCGroup;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -