📄 pdiiserver_tlb.pas
字号:
unit PDIIServer_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.88 $
// File generated on 1999/10/24 AM 08:49:49 from Type Library described below.
// *************************************************************************//
// NOTE:
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties
// which return objects that may need to be explicitly created via a function
// call prior to any access via the property. These items have been disabled
// in order to prevent accidental use from within the object inspector. You
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively
// removing them from the $IFDEF blocks. However, such items must still be
// programmatically created via a method of the appropriate CoClass before
// they can be used.
// ************************************************************************ //
// Type Lib: F:\leewei\Delphi5\Book1\Ch12\DIIDemo\PDIIServer.tlb (1)
// IID\LCID: {2E842E20-89A5-11D3-8DB9-0080C8518D0A}\0
// Helpfile:
// DepndLst:
// (1) v1.0 Midas, (C:\CWIN98\SYSTEM\MIDAS.DLL)
// (2) v2.0 stdole, (C:\CWIN98\SYSTEM\STDOLE2.TLB)
// (3) v4.0 StdVCL, (C:\CWIN98\SYSTEM\STDVCL40.DLL)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
interface
uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL, SysUtils, CORBAObj, OrbPas, CorbaStd,
MIDAS;
// *********************************************************************//
// 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
PDIIServerMajorVersion = 1;
PDIIServerMinorVersion = 0;
LIBID_PDIIServer: TGUID = '{2E842E20-89A5-11D3-8DB9-0080C8518D0A}';
IID_ICORBADIIServer: TGUID = '{2E842E21-89A5-11D3-8DB9-0080C8518D0A}';
CLASS_CORBADIIServer: TGUID = '{2E842E23-89A5-11D3-8DB9-0080C8518D0A}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
ICORBADIIServer = interface;
ICORBADIIServerDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
CORBADIIServer = ICORBADIIServer;
// *********************************************************************//
// Interface: ICORBADIIServer
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {2E842E21-89A5-11D3-8DB9-0080C8518D0A}
// *********************************************************************//
ICORBADIIServer = interface(IAppServer)
['{2E842E21-89A5-11D3-8DB9-0080C8518D0A}']
function Employees: OleVariant; safecall;
end;
// *********************************************************************//
// DispIntf: ICORBADIIServerDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {2E842E21-89A5-11D3-8DB9-0080C8518D0A}
// *********************************************************************//
ICORBADIIServerDisp = dispinterface
['{2E842E21-89A5-11D3-8DB9-0080C8518D0A}']
function Employees: OleVariant; dispid 1;
function AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant;
MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
function AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer;
Options: Integer; const CommandText: WideString;
var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
function AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
function AS_GetProviderNames: OleVariant; dispid 20000003;
function AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
function AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer;
var OwnerData: OleVariant): OleVariant; dispid 20000005;
procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString;
var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
end;
TCORBADIIServerStub = class(TAppServerStub, ICORBADIIServer)
public
function Employees: OleVariant; safecall;
end;
TCORBADIIServerSkeleton = class(TAppServerSkeleton)
private
FIntf: ICORBADIIServer;
public
constructor Create(const InstanceName: string; const Impl: IUnknown); override;
procedure GetImplementation(out Impl: IUnknown); override; stdcall;
published
procedure Employees(const InBuf: IMarshalInBuffer; Cookie: Pointer);
end;
// *********************************************************************//
// The Class CoCORBADIIServer provides a Create and CreateRemote method to
// create instances of the default interface ICORBADIIServer exposed by
// the CoClass CORBADIIServer. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoCORBADIIServer = class
class function Create: ICORBADIIServer;
class function CreateRemote(const MachineName: string): ICORBADIIServer;
end;
// *********************************************************************//
// OLE Server Proxy class declaration
// Server Object : TCORBADIIServer
// Help String : CORBADIIServer Object
// Default Interface: ICORBADIIServer
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
TCORBADIIServerProperties= class;
{$ENDIF}
TCORBADIIServer = class(TOleServer)
private
FIntf: ICORBADIIServer;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
FProps: TCORBADIIServerProperties;
function GetServerProperties: TCORBADIIServerProperties;
{$ENDIF}
function GetDefaultInterface: ICORBADIIServer;
protected
procedure InitServerData; override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure Connect; override;
procedure ConnectTo(svrIntf: ICORBADIIServer);
procedure Disconnect; override;
function AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant;
MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant;
function AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer;
Options: Integer; const CommandText: WideString;
var Params: OleVariant; var OwnerData: OleVariant): OleVariant;
function AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant;
function AS_GetProviderNames: OleVariant;
function AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant;
function AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer;
var OwnerData: OleVariant): OleVariant;
procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString;
var Params: OleVariant; var OwnerData: OleVariant);
function Employees: OleVariant;
property DefaultInterface: ICORBADIIServer read GetDefaultInterface;
published
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
property Server: TCORBADIIServerProperties read GetServerProperties;
{$ENDIF}
end;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
// *********************************************************************//
// OLE Server Properties Proxy Class
// Server Object : TCORBADIIServer
// (This object is used by the IDE's Property Inspector to allow editing
// of the properties of this server)
// *********************************************************************//
TCORBADIIServerProperties = class(TPersistent)
private
FServer: TCORBADIIServer;
function GetDefaultInterface: ICORBADIIServer;
constructor Create(AServer: TCORBADIIServer);
protected
public
property DefaultInterface: ICORBADIIServer read GetDefaultInterface;
published
end;
{$ENDIF}
TCORBADIIServerCorbaFactory = class
class function CreateInstance(const InstanceName: string): ICORBADIIServer;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -