文件名称:ExampleForFindHideToolz
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:33.44kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
R3层 检 测 HideToolz的Delphi代码
原理很简单,检查系统托盘区内容是否包含"HideToolz"字串.
假如用HideToolz把Explorer.exe隐藏起来,那么上述代码就检测不到了.
此处复制内容到剪贴板代码:
ToolBarHnd := FindWindowEx(0, 0, Shell_TrayWnd , nil)
ToolBarHnd := FindWindowEx(ToolBarHnd, 0, TrayNotifyWnd , nil)
ToolBarHnd := FindWindowEx(ToolBarHnd, 0, SysPager , nil)
ToolBarHnd := FindWindowEx(ToolBarHnd, 0, ToolbarWindow32 , nil)
if ToolBarHnd = 0 then
begin
Exit
end 会跳出函数,当然你也可以跳出之前加入处理代码,防止Explorer.exe被隐藏.
完整的代码和测试包含在附件中,运行project1.exe,如果HideToolz开启会MessageBox否则没有任何提示安静的退出.
-R3 layer testing of Delphi code HideToolz principle is very simple to check whether the system tray area contains " HideToolz" string. HideToolz If the Explorer.exe with hidden, then the code could not be detected above the. Here the code to copy the contents to the clipboard : ToolBarHnd: = FindWindowEx (0, 0, ' Shell_TrayWnd' , nil) ToolBarHnd: = FindWindowEx (ToolBarHnd, 0, ' TrayNotifyWnd' , nil) ToolBarHnd: = FindWindowEx (ToolBarHnd, 0, ' SysPager' , nil) ToolBarHnd : = FindWindowEx (ToolBarHnd, 0, ' ToolbarWindow32' , nil) if ToolBarHnd = 0 then begin Exit end will be out of function, of course, before you can jump out to deal with code, to prevent hidden Explorer.exe. complete code and test included in the Annex, the operation project1.exe, open HideToolz will MessageBox if there is no prompt or a quiet exit.
原理很简单,检查系统托盘区内容是否包含"HideToolz"字串.
假如用HideToolz把Explorer.exe隐藏起来,那么上述代码就检测不到了.
此处复制内容到剪贴板代码:
ToolBarHnd := FindWindowEx(0, 0, Shell_TrayWnd , nil)
ToolBarHnd := FindWindowEx(ToolBarHnd, 0, TrayNotifyWnd , nil)
ToolBarHnd := FindWindowEx(ToolBarHnd, 0, SysPager , nil)
ToolBarHnd := FindWindowEx(ToolBarHnd, 0, ToolbarWindow32 , nil)
if ToolBarHnd = 0 then
begin
Exit
end 会跳出函数,当然你也可以跳出之前加入处理代码,防止Explorer.exe被隐藏.
完整的代码和测试包含在附件中,运行project1.exe,如果HideToolz开启会MessageBox否则没有任何提示安静的退出.
-R3 layer testing of Delphi code HideToolz principle is very simple to check whether the system tray area contains " HideToolz" string. HideToolz If the Explorer.exe with hidden, then the code could not be detected above the. Here the code to copy the contents to the clipboard : ToolBarHnd: = FindWindowEx (0, 0, ' Shell_TrayWnd' , nil) ToolBarHnd: = FindWindowEx (ToolBarHnd, 0, ' TrayNotifyWnd' , nil) ToolBarHnd: = FindWindowEx (ToolBarHnd, 0, ' SysPager' , nil) ToolBarHnd : = FindWindowEx (ToolBarHnd, 0, ' ToolbarWindow32' , nil) if ToolBarHnd = 0 then begin Exit end will be out of function, of course, before you can jump out to deal with code, to prevent hidden Explorer.exe. complete code and test included in the Annex, the operation project1.exe, open HideToolz will MessageBox if there is no prompt or a quiet exit.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Project1.exe
Project1.dpr
Project1.dpr
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.