⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dcomserver_tlb.pas

📁 《Delphi COM深入编程》原书光盘
💻 PAS
字号:
unit DCOMServer_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.75  $
// File generated on 6/22/99 1:48:02 PM from Type Library described below.

// ************************************************************************ //
// Type Lib: J:\Book\samples\Chap07\DCOMServer\DCOMServer.tlb
// IID\LCID: {682C7F20-28C9-11D3-B802-0040F67455FE}\0
// Helpfile: 
// HelpString: Project1 Library
// Version:    1.0
// ************************************************************************ //

interface

uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;

// *********************************************************************//
// 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_DCOMServer: TGUID = '{682C7F20-28C9-11D3-B802-0040F67455FE}';
  IID_ISimpleDCOMServer: TGUID = '{682C7F21-28C9-11D3-B802-0040F67455FE}';
  CLASS_SimpleDCOMServer: TGUID = '{682C7F23-28C9-11D3-B802-0040F67455FE}';
type

// *********************************************************************//
// Forward declaration of interfaces defined in Type Library            //
// *********************************************************************//
  ISimpleDCOMServer = interface;
  ISimpleDCOMServerDisp = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                     //
// (NOTE: Here we map each CoClass to its Default Interface)            //
// *********************************************************************//
  SimpleDCOMServer = ISimpleDCOMServer;


// *********************************************************************//
// Interface: ISimpleDCOMServer
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {682C7F21-28C9-11D3-B802-0040F67455FE}
// *********************************************************************//
  ISimpleDCOMServer = interface(IDispatch)
    ['{682C7F21-28C9-11D3-B802-0040F67455FE}']
    function AreYouThere: WordBool; safecall;
  end;

// *********************************************************************//
// DispIntf:  ISimpleDCOMServerDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {682C7F21-28C9-11D3-B802-0040F67455FE}
// *********************************************************************//
  ISimpleDCOMServerDisp = dispinterface
    ['{682C7F21-28C9-11D3-B802-0040F67455FE}']
    function AreYouThere: WordBool; dispid 1;
  end;

  CoSimpleDCOMServer = class
    class function Create: ISimpleDCOMServer;
    class function CreateRemote(const MachineName: string): ISimpleDCOMServer;
  end;

implementation

uses ComObj;

class function CoSimpleDCOMServer.Create: ISimpleDCOMServer;
begin
  Result := CreateComObject(CLASS_SimpleDCOMServer) as ISimpleDCOMServer;
end;

class function CoSimpleDCOMServer.CreateRemote(const MachineName: string): ISimpleDCOMServer;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_SimpleDCOMServer) as ISimpleDCOMServer;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -