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

📄 qmdelphiplugin_tlb.pas.~1~

📁 这个是按键精灵插件的delphi版本。这样可以扩展按键精灵的功能
💻 ~1~
字号:
unit QMDelphiPlugin_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 2008-2-24 0:45:04 from Type Library described below.

// ************************************************************************  //
// Type Lib: C:\Documents and Settings\Administrator\桌面\Delphi模板\QMDelphiPlugin.tlb (1)
// LIBID: {A7A37041-477C-48BF-B736-0BBD72D5121E}
// LCID: 0
// Helpfile: 
// HelpString: QMDelphiPlugin 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
  QMDelphiPluginMajorVersion = 1;
  QMDelphiPluginMinorVersion = 0;

  LIBID_QMDelphiPlugin: TGUID = '{A7A37041-477C-48BF-B736-0BBD72D5121E}';

  IID_IQMPlugin: TGUID = '{5288E3A8-24A3-4555-B18E-AD712CBDD9E7}';
  CLASS_QMPlugin: TGUID = '{2EFC3158-9AE3-4DD1-89ED-CDEB089060B7}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IQMPlugin = interface;
  IQMPluginDisp = dispinterface;

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


// *********************************************************************//
// Interface: IQMPlugin
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {5288E3A8-24A3-4555-B18E-AD712CBDD9E7}
// *********************************************************************//
  IQMPlugin = interface(IDispatch)
    ['{5288E3A8-24A3-4555-B18E-AD712CBDD9E7}']
    function Test1: WideString; safecall;
    function Test2(Number1: Integer; Number2: Integer): Integer; safecall;
    function Test3(const String1: WideString; const String2: WideString): WideString; safecall;
    function GetMirHwnd: Integer; safecall;
    function Get_Plugin_Description(const MethodName: WideString): WideString; safecall;
  end;

// *********************************************************************//
// DispIntf:  IQMPluginDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {5288E3A8-24A3-4555-B18E-AD712CBDD9E7}
// *********************************************************************//
  IQMPluginDisp = dispinterface
    ['{5288E3A8-24A3-4555-B18E-AD712CBDD9E7}']
    function Test1: WideString; dispid 201;
    function Test2(Number1: Integer; Number2: Integer): Integer; dispid 202;
    function Test3(const String1: WideString; const String2: WideString): WideString; dispid 203;
    function GetMirHwnd: Integer; dispid 204;
    function Get_Plugin_Description(const MethodName: WideString): WideString; dispid 205;
  end;

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

implementation

uses ComObj;

class function CoQMPlugin.Create: IQMPlugin;
begin
  Result := CreateComObject(CLASS_QMPlugin) as IQMPlugin;
end;

class function CoQMPlugin.CreateRemote(const MachineName: string): IQMPlugin;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_QMPlugin) as IQMPlugin;
end;

end.

⌨️ 快捷键说明

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