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

📄 mysqlbckup_tlb.pas

📁 Delphi mysql 导入导出 COM-dll 源码 PHP 调用 demo
💻 PAS
字号:
unit mysqlbckup_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 2009-5-7 13:01:39 from Type Library described below.

// ************************************************************************  //
// Type Lib: E:\Delphi\com\mysql\backup\mysqlbckup.tlb (1)
// LIBID: {9EFBE6E8-5928-4D19-B8CC-BC704D11758C}
// LCID: 0
// Helpfile: 
// HelpString: mysqlbckup Library
// DepndLst: 
//   (1) v2.0 stdole, (C:\WINDOWS\system32\STDOLE2.TLB)
//   (2) v4.0 StdVCL, (C:\WINDOWS\system32\stdvcl40.dll)
// ************************************************************************ //
{$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
  mysqlbckupMajorVersion = 1;
  mysqlbckupMinorVersion = 0;

  LIBID_mysqlbckup: TGUID = '{9EFBE6E8-5928-4D19-B8CC-BC704D11758C}';

  IID_IYPMySql: TGUID = '{A0F13914-8253-43C3-9A78-B802711C60CC}';
  CLASS_YPMySql: TGUID = '{F9535A98-02F9-4A44-88CF-F4F3356F0D0E}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IYPMySql = interface;
  IYPMySqlDisp = dispinterface;

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


// *********************************************************************//
// Interface: IYPMySql
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {A0F13914-8253-43C3-9A78-B802711C60CC}
// *********************************************************************//
  IYPMySql = interface(IDispatch)
    ['{A0F13914-8253-43C3-9A78-B802711C60CC}']
    function backup(const table: WideString; const files: WideString): WideString; safecall;
    procedure set_(const g_server: WideString; g_port: SYSINT; const g_user: WideString; 
                   const g_pass: WideString; const g_database: WideString); safecall;
    function Restore(const filename: WideString): WideString; safecall;
  end;

// *********************************************************************//
// DispIntf:  IYPMySqlDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {A0F13914-8253-43C3-9A78-B802711C60CC}
// *********************************************************************//
  IYPMySqlDisp = dispinterface
    ['{A0F13914-8253-43C3-9A78-B802711C60CC}']
    function backup(const table: WideString; const files: WideString): WideString; dispid 201;
    procedure set_(const g_server: WideString; g_port: SYSINT; const g_user: WideString; 
                   const g_pass: WideString; const g_database: WideString); dispid 202;
    function Restore(const filename: WideString): WideString; dispid 203;
  end;

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

implementation

uses ComObj;

class function CoYPMySql.Create: IYPMySql;
begin
  Result := CreateComObject(CLASS_YPMySql) as IYPMySql;
end;

class function CoYPMySql.CreateRemote(const MachineName: string): IYPMySql;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_YPMySql) as IYPMySql;
end;

end.

⌨️ 快捷键说明

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