有人可以告诉我在设置默认程序时如何填充程序列表? 我想添加和删除一些,但不知道如何做到这一点。感谢
从开始菜单:控制面板\程序\默认程序\设置默认程序
答案 0 :(得分:1)
我认为你的意思是你已经编写了一个程序,并希望它出现在该列表中,这样用户就可以选择他/她希望你的程序成为默认程序。 MSDN有一个pretty good overview of the topic,但基本的想法是你必须设置一些registry entries。
以下示例显示了名为WebBrowser的虚构Contoso浏览器的注册表项:
HKEY_LOCAL_MACHINE
SOFTWARE
Contoso
WebBrowser
Capabilities
ApplicationDescription = This award-winning Contoso browser is better than ever. Search the Internet and find exactly what you want in just seconds. Use integrated tabs and new phishing detectors to enhance your Internet experience.
FileAssociations
.htm = ContosoHTML
.html = ContosoHTML
.shtml = ContosoHTML
.xht = ContosoHTML
.xhtml = ContosoHTML
Startmenu
StartmenuInternet = Contoso.exe
UrlAssociations
http = Contoso.Url.Http
https = Contoso.Url.Https
ftp = Contoso.Url.ftp
SOFTWARE
RegisteredApplications
Contoso.WebBrowser.1.06 = SOFTWARE\Contoso\WebBrowser\Capabilities