关于一个复制监视的问题?

lsinc 2004-04-10 02:05:17
如何能得知windows何时开始复制文件,复制了哪些文件,以及复制的路径?
...全文
48 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qingenerp 2004-04-10
  • 打赏
  • 举报
回复
aiirii(ari-爱的眼睛)老兄厉害啊,小弟学习
只能顶一把!
aiirii 2004-04-10
  • 打赏
  • 举报
回复
http://www.shellplus.com/examples/copyhook-handler-example.html

procedure TSxModule1.SxCopyHook1CopyHook(Sender: TSxCopyHook; Wnd: Integer;
CopyFunct: TSxCopyFunct; CopyFlags: TSxCopyFlags; SrcFile,
DstFile: String; SrcAttr, DstAttr: TSxFileType;
var Result: TSxCopyHookResult);
begin
ConfirmWindow:=TConfirmWindow.CreateParented(Wnd); // Confirmation dialog
try
ConfirmWindow.eSourceFolder.Text:=SrcFile; // Source file
ConfirmWindow.eDestFolder.Text:=DstFile; // Destination file
case CopyFunct of // Kind of operation
cfCopy: ConfirmWindow.eOperation.Text:='Copying';
cfDelete: ConfirmWindow.eOperation.Text:='Deleteon';
cfMove: ConfirmWindow.eOperation.Text:='Moving';
cfRename: ConfirmWindow.eOperation.Text:='Renaming';
end;
case ConfirmWindow.ShowModal of
mrYes: Result:=chrYes;
mrNo: Result:=chrNo;
mrCancel: Result:=chrCancel;
end;
finally
ConfirmWindow.Free;
end;
end;

1,184

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧