gpt4 book ai didi

c++ - Windows 7 NotifyIcon GUID 欺骗保护

转载 作者:行者123 更新时间:2023-11-30 03:09:37 31 4
gpt4 key购买 nike

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

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

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

最佳答案

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.

“清除现有 GUID 注册表信息”应用程序的机制有点,呃,不清楚。我会假设这实际上并不经常发生。因此,新的 guid 或证书。

关于c++ - Windows 7 NotifyIcon GUID 欺骗保护,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3974293/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com