?? iefav_plugin.dpr
字號:
library IEFav_Plugin;
{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. }
uses
Windows,
SysUtils,
Classes,
Forms,
UntMain in 'UntMain.pas' {Form1},
untLoadFav in 'untLoadFav.pas',
untFileInfo in 'untFileInfo.pas',
untBackUp in 'untBackUp.pas';
{$R *.res}
//宿主程序(驅動備份)獲取插件名稱
function PluginName():ShortString;stdcall;
begin
result:='備份IE搜索夾';
end;
//宿主程序(驅動備份)調用的"關于插件"
procedure PluginAbout(handle:HWND);stdcall;
var str:string;
begin
str:='備份IE搜索夾'+#13+#10+#13+
'版本:1.0.0.23'+#13+#10+#13+
'作者:林仕君'+#13+#10+#13+
'E-mail:moufer@21cn.com '+#13+#10+#13+
'http://moufer.51.net/';
messagebox(handle,Pchar(Str),'關于',0+64);
end;
////宿主程序(驅動備份)調用的打開插件事件
procedure PluginFormShow;stdcall;
begin
Application.CreateForm(TForm1, Form1);
Form1.ShowModal;
end;
//注冊宿主程序(驅動備份)調用的函數名
exports
PluginName,
PluginAbout,
PluginFormShow;
begin
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -