📄 pmultithreaddemoserver_tlb.pas
字号:
unit PMultiThreadDemoServer_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 09:25:48 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\CORBAMultiThreadDemo\PMultiThreadDemoServer.tlb (1)
// IID\LCID: {3CA3C3A0-89F3-11D3-8DB9-0080C8518D0A}\0
// Helpfile:
// DepndLst:
// (1) v2.0 stdole, (C:\CWIN98\SYSTEM\STDOLE2.TLB)
// (2) 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;
// *********************************************************************//
// 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
PMultiThreadDemoServerMajorVersion = 1;
PMultiThreadDemoServerMinorVersion = 0;
LIBID_PMultiThreadDemoServer: TGUID = '{3CA3C3A0-89F3-11D3-8DB9-0080C8518D0A}';
IID_IFreezeServer: TGUID = '{3CA3C3A1-89F3-11D3-8DB9-0080C8518D0A}';
CLASS_FreezeServer: TGUID = '{3CA3C3A3-89F3-11D3-8DB9-0080C8518D0A}';
IID_IHoldServer: TGUID = '{3CA3C3A5-89F3-11D3-8DB9-0080C8518D0A}';
CLASS_HoldServer: TGUID = '{3CA3C3A7-89F3-11D3-8DB9-0080C8518D0A}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IFreezeServer = interface;
IFreezeServerDisp = dispinterface;
IHoldServer = interface;
IHoldServerDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
FreezeServer = IFreezeServer;
HoldServer = IHoldServer;
// *********************************************************************//
// Interface: IFreezeServer
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {3CA3C3A1-89F3-11D3-8DB9-0080C8518D0A}
// *********************************************************************//
IFreezeServer = interface(IDispatch)
['{3CA3C3A1-89F3-11D3-8DB9-0080C8518D0A}']
procedure FreezeMeFor(const vID: WideString; iSeconds: Integer); safecall;
end;
// *********************************************************************//
// DispIntf: IFreezeServerDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {3CA3C3A1-89F3-11D3-8DB9-0080C8518D0A}
// *********************************************************************//
IFreezeServerDisp = dispinterface
['{3CA3C3A1-89F3-11D3-8DB9-0080C8518D0A}']
procedure FreezeMeFor(const vID: WideString; iSeconds: Integer); dispid 1;
end;
TFreezeServerStub = class(TCorbaDispatchStub, IFreezeServer)
public
procedure FreezeMeFor(const vID: WideString; iSeconds: Integer); safecall;
end;
TFreezeServerSkeleton = class(TCorbaSkeleton)
private
FIntf: IFreezeServer;
public
constructor Create(const InstanceName: string; const Impl: IUnknown); override;
procedure GetImplementation(out Impl: IUnknown); override; stdcall;
published
procedure FreezeMeFor(const InBuf: IMarshalInBuffer; Cookie: Pointer);
end;
// *********************************************************************//
// Interface: IHoldServer
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {3CA3C3A5-89F3-11D3-8DB9-0080C8518D0A}
// *********************************************************************//
IHoldServer = interface(IDispatch)
['{3CA3C3A5-89F3-11D3-8DB9-0080C8518D0A}']
procedure HoldMeFor(const vID: WideString; iSeconds: Integer); safecall;
end;
// *********************************************************************//
// DispIntf: IHoldServerDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {3CA3C3A5-89F3-11D3-8DB9-0080C8518D0A}
// *********************************************************************//
IHoldServerDisp = dispinterface
['{3CA3C3A5-89F3-11D3-8DB9-0080C8518D0A}']
procedure HoldMeFor(const vID: WideString; iSeconds: Integer); dispid 1;
end;
THoldServerStub = class(TCorbaDispatchStub, IHoldServer)
public
procedure HoldMeFor(const vID: WideString; iSeconds: Integer); safecall;
end;
THoldServerSkeleton = class(TCorbaSkeleton)
private
FIntf: IHoldServer;
public
constructor Create(const InstanceName: string; const Impl: IUnknown); override;
procedure GetImplementation(out Impl: IUnknown); override; stdcall;
published
procedure HoldMeFor(const InBuf: IMarshalInBuffer; Cookie: Pointer);
end;
// *********************************************************************//
// The Class CoFreezeServer provides a Create and CreateRemote method to
// create instances of the default interface IFreezeServer exposed by
// the CoClass FreezeServer. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoFreezeServer = class
class function Create: IFreezeServer;
class function CreateRemote(const MachineName: string): IFreezeServer;
end;
// *********************************************************************//
// OLE Server Proxy class declaration
// Server Object : TFreezeServer
// Help String : FreezeServer Object
// Default Interface: IFreezeServer
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
TFreezeServerProperties= class;
{$ENDIF}
TFreezeServer = class(TOleServer)
private
FIntf: IFreezeServer;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
FProps: TFreezeServerProperties;
function GetServerProperties: TFreezeServerProperties;
{$ENDIF}
function GetDefaultInterface: IFreezeServer;
protected
procedure InitServerData; override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure Connect; override;
procedure ConnectTo(svrIntf: IFreezeServer);
procedure Disconnect; override;
procedure FreezeMeFor(const vID: WideString; iSeconds: Integer);
property DefaultInterface: IFreezeServer read GetDefaultInterface;
published
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
property Server: TFreezeServerProperties read GetServerProperties;
{$ENDIF}
end;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
// *********************************************************************//
// OLE Server Properties Proxy Class
// Server Object : TFreezeServer
// (This object is used by the IDE's Property Inspector to allow editing
// of the properties of this server)
// *********************************************************************//
TFreezeServerProperties = class(TPersistent)
private
FServer: TFreezeServer;
function GetDefaultInterface: IFreezeServer;
constructor Create(AServer: TFreezeServer);
protected
public
property DefaultInterface: IFreezeServer read GetDefaultInterface;
published
end;
{$ENDIF}
TFreezeServerCorbaFactory = class
class function CreateInstance(const InstanceName: string): IFreezeServer;
end;
// *********************************************************************//
// The Class CoHoldServer provides a Create and CreateRemote method to
// create instances of the default interface IHoldServer exposed by
// the CoClass HoldServer. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoHoldServer = class
class function Create: IHoldServer;
class function CreateRemote(const MachineName: string): IHoldServer;
end;
// *********************************************************************//
// OLE Server Proxy class declaration
// Server Object : THoldServer
// Help String : HoldServer Object
// Default Interface: IHoldServer
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
THoldServerProperties= class;
{$ENDIF}
THoldServer = class(TOleServer)
private
FIntf: IHoldServer;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
FProps: THoldServerProperties;
function GetServerProperties: THoldServerProperties;
{$ENDIF}
function GetDefaultInterface: IHoldServer;
protected
procedure InitServerData; override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure Connect; override;
procedure ConnectTo(svrIntf: IHoldServer);
procedure Disconnect; override;
procedure HoldMeFor(const vID: WideString; iSeconds: Integer);
property DefaultInterface: IHoldServer read GetDefaultInterface;
published
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
property Server: THoldServerProperties read GetServerProperties;
{$ENDIF}
end;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
// *********************************************************************//
// OLE Server Properties Proxy Class
// Server Object : THoldServer
// (This object is used by the IDE's Property Inspector to allow editing
// of the properties of this server)
// *********************************************************************//
THoldServerProperties = class(TPersistent)
private
FServer: THoldServer;
function GetDefaultInterface: IHoldServer;
constructor Create(AServer: THoldServer);
protected
public
property DefaultInterface: IHoldServer read GetDefaultInterface;
published
end;
{$ENDIF}
THoldServerCorbaFactory = class
class function CreateInstance(const InstanceName: string): IHoldServer;
end;
procedure Register;
implementation
uses ComObj;
{ TFreezeServerStub }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -