Windows XP 控制面板 - 为“评论”提供值场地

发布于 2024-09-05 08:31:55 字数 224 浏览 3 评论 0原文

Windows XP 控制面板从哪里获取“注释”字段的值?我正在编写一个 EXE 控制面板应用程序,但它没有出现在 文档,您可以为该字段提供一个值。

Where does the Windows XP control panel get the value for the "Comments" field from? I'm writing an EXE control panel application, and it doesn't appear from the documentation that you can provide a value for that field.

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

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

发布评论

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

评论(3

甜点 2024-09-12 08:31:55

使用 Windows Installer XML (WIX) 在 Windows Vista 上将可执行文件 (exe) 注册为控制面板小程序,网址为 链接


[先前的答案]

请参阅注册控制面板项目可执行控制面板项目注册 >位于http://msdn.microsoft.com/en -us/library/cc144195(VS.85).aspx

具体来说,您需要 InfoTip,即注释。

注册控制面板项目

控制面板项目必须注册
为了出现在控件中
面板窗口。如果控制面板
item 作为 .exe 的一部分实现
文件然后它被注册为
命令对象。注册不同
如果该项目以 .dll 形式实现
导出 CPlApplet 的文件
功能。

Registering an Executable File (exe) as a Control Panel Applet on Windows Vista using Windows Installer XML (WIX) at Link


[previous answer]

See the Executable Control Panel Item Registration of Registering Control Panel Items at http://msdn.microsoft.com/en-us/library/cc144195(VS.85).aspx

Specifically, you want InfoTip, which is the comments.

Registering Control Panel Items

Control Panel items must be registered
in order to appear in the Control
Panel window. If the Control Panel
item is implemented as part of a .exe
file then it is registered as a
command object. Registration differs
if the item is implemented as a .dll
file that exports the CPlApplet
function.

泛泛之交 2024-09-12 08:31:55

使用 CPLApplet

当控制面板加载 .dll(或
.cpl) 文件,它调用 CPlApplet
函数来获取信息,例如
控制面板项目的数量
文件主机,以及信息
关于每个项目

当 Windows 首次加载控件时
面板项,它检索地址
CPlApplet 函数和
随后使用该地址来调用
该函数并向其传递消息。它
可能会发送以下消息。

您需要处理CPL_INQUIRE消息并填写 CPLINFO 结构

typedef struct tagCPLINFO {
  int      idIcon;
  int      idName;
  int      idInfo;
  LONG_PTR lpData;
} CPLINFO;

idInfo 是包含描述的字符串的资源标识符。你不能简单地通过填写一些注册表项来设置这个东西。

编辑:好吧,我的错,这是一个旧的解决方案。

Using CPLApplet:

When Control Panel loads a .dll (or
.cpl) file, it calls the CPlApplet
function to get information such as
the number of Control Panel items the
file hosts, as well as information
about each item
.

When Windows first loads the Control
Panel item, it retrieves the address
of the CPlApplet function and
subsequently uses that address to call
the function and pass it messages. It
might send the following messages.

You need to handle CPL_INQUIRE Message and fill the CPLINFO Structure.

typedef struct tagCPLINFO {
  int      idIcon;
  int      idName;
  int      idInfo;
  LONG_PTR lpData;
} CPLINFO;

idInfo is the resource identifier of the string containing the description. You cannot simply set this thing by filling in some registry key.

Edit: Ok, my bad, this is an old solution.

二智少女猫性小仙女 2024-09-12 08:31:55

该字符串是从 HKCR\CLSID{guid}\InfoTip 注册表值中检索的。 MSDN 库文章,我可以补充的不多。

This string is retrieved from the HKCR\CLSID{guid}\InfoTip registry value. How to whack the registry into shape is explained very well in this MSDN Library article, not much I can add to that.

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