Windows 7 NotifyIcon GUID 欺骗保护

发布于 2024-09-28 02:12:46 字数 320 浏览 0 评论 0原文

我目前正在学习 WINAPI 的一些不同方面,包括 Windows 7 中引入的功能。其中之一是使用 GUID 作为通知图标的标识符。

可以在 MSDN 上阅读,第一次添加通知图标时,GUID 通过路径绑定到可执行文件。该页面承诺在 Shell_Notifyicon() 文档中提供有关该问题的更多信息,但我在那里找不到任何进一步的信息。

用户应该如何能够显示已移动的可执行文件的通知图标?

I am currently working on learning some different aspects of WINAPI, including features introduced in windows 7.. One of those is using a GUID as identifier for a Notification icon.

As can be read on the MSDN, the GUID is bound to the executable by path, the first time the notification icon is added. This page in question promises further information on the issue at the documentation for Shell_Notifyicon(), but I cannot find any further information there.

How are users supposed to be able to display notification-icons from an executable that has been moved?

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

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

发布评论

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

评论(1

欢烬 2024-10-05 02:12:46

记录

如果必须更改路径,
应用程序应清除现有的
之前的GUID注册表信息
将二进制文件移动到新的
位置并重新注册它
新的 GUID。与相关的任何设置
原始 GUID 注册将是
丢失了。

这也会发生在以下情况:
并排安装。什么时候
并肩处理
安装,新版本
应用程序应更新 GUID
二进制文件。

注意移动的唯一例外
当原始文件和
移动的二进制文件是
验证码由同一人签名
公司。在这种情况下,设置是
通过移动保留。

该应用程序“清除现有 GUID 注册表信息”的机制有点,呃,不清楚。我会假设这种情况实际上并不经常发生。所以,新的指南或证书。

It's documented:

If the path must be changed, the
application should clear the existing
GUID registry information before
moving the binary file to a new
location and reregistering it with a
new GUID. Any settings associated with
the original GUID registration will be
lost.

This also occurs in the case of a
side-by-side installation. When
dealing with a side-by-side
installation, new versions of the
application should update the GUID of
the binary file.

Note The only exception to a moved
file occurs when both the original and
moved binary files are
Authenticode-signed by the same
company. In that case, settings are
preserved through the move.

The mechanics of the app "clearing the existing GUID registry information" are bit, erm, unclear. I'd work from the assumption that this doesn't actually happen often. So, new guid or a certificate.

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