C ++:如何正确地注册和注销应用程序的文件类型关联(程序) [英] C++: How do I correctly register and unregister file type associations for our application (programatically)
问题描述
时间是在以下时间设置文件关联:
Time was when you set file associations in:
HEY_CLASSES_ROOT\< .ext>
HEY_CLASSES_ROOT\<.ext>
然而,这似乎是可能的,但不再是一个不完整的解决方案。整个注册表中还有其他关联。例如:
However, that seems to be possible, but an incomplete solution anymore. There are additional associations throughout the registry. For example:
HKEY_LOCAL_MACHINE\软件\Microsoft\Windows \CurrentVersion\Explorer\KindMap
HKEY_LOCAL_MACHINE \Software \Microsoft \ Windows \CurrentVersion\Explorer\Extensions
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\KindMap HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Extensions
以上所有,但由HKEY_USERS \
And all of the above, but by HKEY_USERS\
Microsoft已添加了他们的设置默认关联控制面板小程序,它控制...什么?
And Microsoft added their Set Default Associations control panel applet, which controls... what?
我在寻找白皮书或讨论:
I'm looking for a white paper, or discussions on:
用C / C ++编写的现代Windows XP-Windows 7兼容应用程序应该注册和操作其文件关联,而不会干扰Explorer,用户设置,或默认关联cpl
编辑:我正在尝试进一步调查这里的更多问题:
http://stackoverflow.com/questions/2850157/how- to-delete-progids-from-other-user-accounts-when-uninstalling-from-windows
I'm trying to further this investigation with more questions here: http://stackoverflow.com/questions/2850157/how-to-delete-progids-from-other-user-accounts-when-uninstalling-from-windows
推荐答案
唉,这个文档仍然是最新的,它是关于注册表: MSDN
Alas, this documentation still seems current, and it's all about the registry: MSDN
也许有人为此创建了一个很好的包装器?到达Google的时间...
Maybe someone's created a nice wrapper for this? Time to hit Google...
这篇关于C ++:如何正确地注册和注销应用程序的文件类型关联(程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!