[译]反历史
By robot-v1.0
本文链接 https://www.kyfws.com/applications/antihisto-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 4 分钟阅读 - 1518 个词 阅读量 0[译]反历史
原文地址:https://www.codeproject.com/Articles/2076/AntiHisto
原文作者:Chris Losinger
译文由本站 robot-v1.0 翻译
前言
A utility to edit IE URL history
用于编辑IE URL历史记录的实用程序
介绍(Introduction)
您是否与某人共享一台计算机?您是否曾经访问过不完全相同的网址(Do you share a computer with someone? Have you ever visited a URL that you’re not exactly) 骄傲(proud) 的?希望您可以从Internet Explorer历史记录列表中将其删除吗?好吧,坐下来,打开啤酒,因为我告诉你,你的烦恼已经过去了!这个惊人的应用程序使您可以编辑和删除那些讲故事的Internet Explorer历史记录项!(of? Wish you could delete it from the Internet Explorer history list? Well sit back and crack open a beer, because let me tell you, your troubles are over! This amazing application allows you to edit and remove those tell-tale Internet Explorer history items!)
尽管听起来如此强大和令人惊奇,但您不必成为黑带MSCE即可做到这一点.实际上,此应用程序基本上只是注册表的一小部分的查看器.虽然初学者可能会发现查看列表控件的编辑和隐藏键拦截的完成方式很有用,但代码本身非常简单;这里没有先进或突破性的技术.我只是想与世界分享这个惊人的实用程序-免费!(As powerful and amazing as this might sound, you do not need to be a blackbelt MSCE to do this. In reality, this application is basically a viewer into a very small part of the registry. While beginners might find it useful to see how the list control editing and sneaky key interception is done, the code itself is very simple; there are no advanced or ground-breaking techniques here. I just thought I’d share this amazing utility with the world - free of charge!)
怎么运行的(How it works)
它读(It reads the) HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs
注册表项.这是当前用户的IE历史记录列表的存储位置.请注意,这是IE下拉历史记录,而不是自动完成历史记录(我无法在注册表中的任何位置找到自动完成历史记录).读取它们后,将字符串放入列表控件((registry key. This is where the IE history list for the current user is stored. Note that this is the IE drop-down history, not the auto-complete history (I couldn’t find the auto-complete history anywhere in the registry). After reading them, the strings are placed into a list control () CListCtrl
),然后允许用户编辑字符串并将其标记为已删除.当用户退出时,它将新列表写回到注册表中.显然,IE仅在启动时从注册表中读取此列表,并在退出时写入此列表.因此您必须关闭IE才能使用它(否则,此IE将覆盖彼此的URL列表).() and the user is allowed to edit the strings and mark them as deleted. When the user quits, it writes the new list back to the registry. Apparently, IE only reads this list from the registry when it starts, and writes this list when it exits; so you will have to shut down IE to use this (or this and IE will overwrite each other’s URL list).)
有趣的位(Interesting bits)
列表控件是此应用程序中最有趣的部分.它允许就地编辑,图标和多选.如果您不熟悉列表控件,则可能会提供更多信息.(The list control is the most interesting part of this app. It allows in-place editing, icons and multi-select. If you’re new to list controls, this might be informative.)
用于处理Delete和Backspace键(将URL标记为"已删除")的代码是通过覆盖实现的(The code to handle the delete and backspace keys (to mark URLs as “deleted”) is accomplished by overriding) PreTranslateMessage
并查看适当的消息.如果您以前从未做过,那么可能看起来不错.(and watching for the appropriate messages. This might be nice to look at, if you’ve never done this before.)
注册表类来自(The registry class is from) 罗伯特`皮滕格(Robert Pittenger) .这将使您看到它的实际效果.(. This will let you see it in action.)
就是这样(That’s about it.)
IE版本(IE Versions)
这是用IE v6.0编写的.我不知道其他IE版本是否会将其历史记录保存在同一位置.如果没有,哦.您免费期望什么?(This was written with IE v6.0. I don’t know if other IE versions keep their history in the same place. If not, oh well. What do you expect for free?)
名称(Name)
是抗组胺药(抗组胺药→抗病药,我的药→得到药吗?),但我认为这有点太微妙了. AntiHisto更容易弄清楚.(It was Antihistamine, (anti-hista-mine → anti-history, mine → get it?) but I thought was a bit too subtle. AntiHisto is easier to figure out.)
请享用(Enjoy)
您必须自己解决这个问题.(You’ll have to figure this out on your own.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
VC7.0 C++ VC6 WinXP Windows Win2K MFC Visual-Studio Dev 新闻 翻译