2
我有一些Windows命名空間外殼文件夾視圖的擴展名。我想用它來與具有特定文件擴展名的文件進行用戶交互。這些文件是由其他我的應用程序創建的。爲特定文件擴展名註冊windows shell名稱空間文件夾視圖擴展
如何在Windows註冊表中正確執行註冊。我是否應該爲擴展名和擴展名本身的CLSID或其他內容添加一些文件擴展名的密鑰?
我有一些Windows命名空間外殼文件夾視圖的擴展名。我想用它來與具有特定文件擴展名的文件進行用戶交互。這些文件是由其他我的應用程序創建的。爲特定文件擴展名註冊windows shell名稱空間文件夾視圖擴展
如何在Windows註冊表中正確執行註冊。我是否應該爲擴展名和擴展名本身的CLSID或其他內容添加一些文件擴展名的密鑰?
您必須在此註冊表位置寄存器:
[HKEY_CLASSES_ROOT\.yourextension]
@="CLSID\\{Your namespace extension CLSID}"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}]
@="Test File"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\CLSID]
@="{Your namespace extension CLSID}"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\DefaultIcon]
@="yourdll.dll,0"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\Implemented Categories]
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\Implemented Categories\{00021490-0000-0000-C000-000000000046}]
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\InProcServer32]
@="yourdll.dll"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell]
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\explore]
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\explore\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\
65,00,20,00,2f,00,65,00,2c,00,2f,00,69,00,64,00,6c,00,69,00,73,00,74,00,2c,\
00,25,00,49,00,2c,00,25,00,4c,00,00,00
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\explore\ddeexec]
@="[ExploreFolder(\"%l\", %I, %S)]"
"NoActivateHandler"=""
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\explore\ddeexec\application]
@="Folders"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\explore\ddeexec\ifexec]
@="[]"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\explore\ddeexec\topic]
@="AppProperties"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\find]
"SuppressionPolicy"=dword:00000080
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\find\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\
65,00,00,00
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\find\ddeexec]
@="[FindFolder(\"%l\", %I)]"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\find\ddeexec\application]
@="Folders"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\find\ddeexec\topic]
@="AppProperties"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\open]
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\
65,00,20,00,2f,00,69,00,64,00,6c,00,69,00,73,00,74,00,2c,00,25,00,49,00,2c,\
00,25,00,4c,00,00,00
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\open\ddeexec]
@="[ViewFolder(\"%l\", %I, %S)]"
"NoActivateHandler"=""
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\open\ddeexec\application]
@="Folders"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\open\ddeexec\ifexec]
@="[]"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\shell\open\ddeexec\topic]
@="AppProperties"
[HKEY_CLASSES_ROOT\CLSID\{Your namespace extension CLSID}\ShellFolder]
"Attributes"=dword:680001a0
有關可能的屬性值看SFGAO值。
同樣不要忘記將CLSID添加到Approved shell擴展中。