gpt4 book ai didi

c++ - 获取 CLSID key 问题

转载 作者:行者123 更新时间:2023-11-30 05:11:23 24 4
gpt4 key购买 nike

我想在 Windows XP 上获取 Control PanelAdd or Remove ProgramsCLSID

示例:shell::::{26EE0668-A00A-44D7-9371-BEB064C98683} - 仅适用于 Vista(控制面板)。

有什么获取方法的建议吗?

最佳答案

I want to get CLSID for Control Panel

您可以使用 shell:ControlPanelFolder 而不是 CLSID supported on Win XP .

您还可以通过 SHGetSpecialFolderLocation() 获取文件夹位置通过 CSIDL_CONTROLS对于参数 nFolder

and Add or Remove Programs

Raymond Chen 有一个 blog post ,他在哪里 comments :

Windows NT/2000/XP doesn't have a "Programs and Features" folder, so the question is moot. If you mean "enumerate all installed applications", there's no built-in way of doing this. You have to mimic what "Add/Remove Programs" does, which is messy because Add/Remove Programs enumerates apps from some places that may not be obvious (like the MSI store).

关于c++ - 获取 CLSID key 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45040197/

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