当保护模式打开时,DeleteURLCacheEntry 不会删除临时 Internet 文件

发布于 2024-10-10 08:06:38 字数 322 浏览 8 评论 0原文

我正在使用“deleteURLCacheEntry”Wininet API 分别删除 Win7/Vista IE 7/8 上的临时 Internet 文件。当 IE 的保护模式关闭时,API 可以正常工作。但当保护模式打开时,它会默默地失败。有人可以告诉我如何在保护模式打开时以编程方式删除临时互联网文件吗?

我基本上使用以下 msdn 链接中给出的程序:

http://support.microsoft.com/kb/ 815718

谢谢。

I am using "deleteURLCacheEntry" Wininet API to delete temporary internet files on Win7/Vista IE 7/8 respectively. The API works perfectly fine when IE's protected mode is OFF. But it fails silently when the protected mode is ON. Can somebody advise me how to delete the temporary internet files programmatically when PROTECTED MODE is ON?

I am basically using the program given in the following msdn link:

http://support.microsoft.com/kb/815718

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒废 2024-10-17 08:06:38

实际上,看看我关于 DeleteUrlCacheEntry 失败的两个问题,无需在此处提供任何信息:第二个链接包含失败的项目示例:

如何获取DeleteUrlCacheEntry()错误代码? (或者有关为什么特定删除不起作用的其他信息)?

和...

https://stackoverflow.com/questions/12096546/deleteurlcacheentry-function-of-wininet-api-not-deleting-some-internet-explo

现在,查看一下此文档来自 MSDN,请告诉我它是否对您有帮助或者它是否是解决方案...

了解并在保护模式下工作 Internet Explorer

http://msdn.microsoft.com/en-us/library/bb250462(v=vs.85).aspx< /a>

您将问题与“保护模式”问题联系起来的事实也让我有所启发(就试图回答我的两个问题而言),所以我现在将继续调查这个问题作为可能的解决方案。

我链接到的 MSDN 文章几乎可以让您创建注册表项,以允许您的程序额外访问通常在保护模式下被阻止的内容。我无法确认这就是您或我的问题的解决方案,但是,我有一种强烈的感觉它可能是。

请随时通知我们,并随时编辑您的问题的标签,以使其反映您正在使用DeleteUrlCacheEntry 的编程语言。

Actually, take a look at my two questions on DeleteUrlCacheEntry failing without providing any information here: The second link contains examples of items it is failing on:

How To Get DeleteUrlCacheEntry() Error Codes? (Or additional information on why a particular deletion didn't work)?

and...

https://stackoverflow.com/questions/12096546/deleteurlcacheentry-function-of-wininet-api-not-deleting-some-internet-explo

Now, check out this document from MSDN, and let me know if it helped you out or if it turns out to be the solution...

Understanding and Working in Protected Mode Internet Explorer

http://msdn.microsoft.com/en-us/library/bb250462(v=vs.85).aspx

The fact that you have tied your question to the "Protected Mode" issue has enlightened me somewhat as well (in terms of trying to answer my two questions) so I will now continue to investigate this as a possible solution.

The MSDN article I have linked to pretty much lets you make Registry Entries to allow your program additional access to things that are typically blocked under Protected Mode. I cannot confirm that this is the solution to your or my questions, however, I have a strong feeling it may be.

Please do keep us posted, and feel free to edit the tagging of your question in order for it to reflect the programming languages you are using DeleteUrlCacheEntry with.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文