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

📄 torrent_tlb.pas

📁 分析torrent的东西是拿别人的
💻 PAS
字号:
unit Torrent_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 : 1.2
// File generated on 2005-9-20 16:30:09 from Type Library described below.

// ************************************************************************  //
// Type Lib: D:\develop\delphi\btcom\Torrent.tlb (1)
// LIBID: {5B0B2246-4978-45BA-8E77-1A8D475C9FF0}
// LCID: 0
// Helpfile: 
// HelpString: Torrent 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
  TorrentMajorVersion = 1;
  TorrentMinorVersion = 0;

  LIBID_Torrent: TGUID = '{5B0B2246-4978-45BA-8E77-1A8D475C9FF0}';

  IID_IParse: TGUID = '{F14619AB-92F4-4216-8A80-DE6B02877822}';
  CLASS_Parse: TGUID = '{EC96407F-017D-4DBE-AFF6-2C59FDEDC67C}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IParse = interface;
  IParseDisp = dispinterface;

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


// *********************************************************************//
// Interface: IParse
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {F14619AB-92F4-4216-8A80-DE6B02877822}
// *********************************************************************//
  IParse = interface(IDispatch)
    ['{F14619AB-92F4-4216-8A80-DE6B02877822}']
    procedure OnStartPage(const AScriptingContext: IUnknown); safecall;
    procedure OnEndPage; safecall;
    procedure LoadFile(const Path: WideString); safecall;
    procedure Close; safecall;
    function Get_Announce: WideString; safecall;
    function Get_Hash: WideString; safecall;
    function Get_Name: WideString; safecall;
    function Get_FileList: WideString; safecall;
    function Get_Error: WideString; safecall;
    function Get_CreatedBy: WideString; safecall;
    function Get_BinaryHash: WideString; safecall;
    function Get_CreationDate: WideString; safecall;
    function Get_Size: Int64; safecall;
    function Get_AnnounceList: WideString; safecall;
    property Announce: WideString read Get_Announce;
    property Hash: WideString read Get_Hash;
    property Name: WideString read Get_Name;
    property FileList: WideString read Get_FileList;
    property Error: WideString read Get_Error;
    property CreatedBy: WideString read Get_CreatedBy;
    property BinaryHash: WideString read Get_BinaryHash;
    property CreationDate: WideString read Get_CreationDate;
    property Size: Int64 read Get_Size;
    property AnnounceList: WideString read Get_AnnounceList;
  end;

// *********************************************************************//
// DispIntf:  IParseDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {F14619AB-92F4-4216-8A80-DE6B02877822}
// *********************************************************************//
  IParseDisp = dispinterface
    ['{F14619AB-92F4-4216-8A80-DE6B02877822}']
    procedure OnStartPage(const AScriptingContext: IUnknown); dispid 201;
    procedure OnEndPage; dispid 202;
    procedure LoadFile(const Path: WideString); dispid 203;
    procedure Close; dispid 204;
    property Announce: WideString readonly dispid 205;
    property Hash: WideString readonly dispid 206;
    property Name: WideString readonly dispid 207;
    property FileList: WideString readonly dispid 208;
    property Error: WideString readonly dispid 209;
    property CreatedBy: WideString readonly dispid 210;
    property BinaryHash: WideString readonly dispid 211;
    property CreationDate: WideString readonly dispid 212;
    property Size: {??Int64}OleVariant readonly dispid 213;
    property AnnounceList: WideString readonly dispid 214;
  end;

// *********************************************************************//
// The Class CoParse provides a Create and CreateRemote method to          
// create instances of the default interface IParse exposed by              
// the CoClass Parse. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoParse = class
    class function Create: IParse;
    class function CreateRemote(const MachineName: string): IParse;
  end;

implementation

uses ComObj;

class function CoParse.Create: IParse;
begin
  Result := CreateComObject(CLASS_Parse) as IParse;
end;

class function CoParse.CreateRemote(const MachineName: string): IParse;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_Parse) as IParse;
end;

end.

⌨️ 快捷键说明

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