本帖最后由 sairen139 于 2022-9-28 08:24 编辑
所有pe添加图片缩略图功能的方法:从六七十m极限骨头版pe到微软自带RE都适用只需两个dll文件和一个注册表片段
一般来说维护pe里看图功能不是必须的,但是据@江南一根葱说有时候恢复文件需要瞟一眼图看是不是。
这样一来pe里看图似乎有点用处。那最方便的方法莫过于资源管理器里直接看图片的缩略图,因为这样只需扫一眼就能大致看出图像的内容。
在江南等网友的帮助下pe增添图片缩略图功能,并且能完全适用于原生资源管理器和非原生资源管理器比如explorer++等的方法也摸索出来了。具体方法如下:
第一步:用7zip给pe的system32文件夹添加两个dll文件,也就是PhotoMetadataHandler.dll文件和thumbcache.dll文件。
第二步:用7zip把原pe里system32文件夹下config文件夹里的software注册表配置文件解压到桌面上,然后regedit注册表编辑器挂载成pe-software导入下面的注册表片段再卸载上载后覆盖掉pe里的原software注册表配置文件即可(第三方文件管理器explorer++不需要最后一项注册表条目)!具体离线导入pe的注册表内容如下所示:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\CLSID\{a38b883c-1682-497e-97b0-0a3a9e801682}]
@="IPropertyStore Handler for Images"
"ManualSafeSave"=dword:00000001
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\CLSID\{a38b883c-1682-497e-97b0-0a3a9e801682}\InProcServer32]
@=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,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,50,00,68,00,\
6f,00,74,00,6f,00,4d,00,65,00,74,00,61,00,64,00,61,00,74,00,61,00,48,00,61,\
00,6e,00,64,00,6c,00,65,00,72,00,2e,00,64,00,6c,00,6c,00,00,00
"ThreadingModel"="Both"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\CLSID\{C7657C4A-9F68-40fa-A4DF-96BC08EB3551}]
@="Photo Thumbnail Provider"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\CLSID\{C7657C4A-9F68-40fa-A4DF-96BC08EB3551}\InProcServer32]
@=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,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,50,00,68,00,\
6f,00,74,00,6f,00,4d,00,65,00,74,00,61,00,64,00,61,00,74,00,61,00,48,00,61,\
00,6e,00,64,00,6c,00,65,00,72,00,2e,00,64,00,6c,00,6c,00,00,00
"ThreadingModel"="Both"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\SystemFileAssociations\image\shellex\{e357fccd-a995-4576-b01f-234630154e96}]
@="{C7657C4A-9F68-40fa-A4DF-96BC08EB3551}"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\CLSID\{50EF4544-AC9F-4A8E-B21B-8A26180DB13F}\InprocServer32]
@="X:\\Windows\\System32\\thumbcache.dll"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE\pe-software\Classes\CLSID\{3F30C968-480A-4C6C-862D-EFC0897BB84B}\InProcServer32]
@=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,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,50,00,68,00,\
6f,00,74,00,6f,00,4d,00,65,00,74,00,61,00,64,00,61,00,74,00,61,00,48,00,61,\
00,6e,00,64,00,6c,00,65,00,72,00,2e,00,64,00,6c,00,6c,00,00,00
"ThreadingModel"="Both"
[HKEY_LOCAL_MACHINE\pe-software\Classes\SystemFileAssociations\image\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{3F30C968-480A-4C6C-862D-EFC0897BB84B}"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\Interface\{E357FCCD-A995-4576-B01F-234630154E96}\ProxyStubClsid32] @="{95E15D0A-66E6-93D9-C53C-76E6219D3341}"
|