Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
7.3 KiB

  1. [Version]
  2. Signature="$CHICAGO$"
  3. [RegDll]
  4. DelReg=RegDelete
  5. AddReg=RegAll
  6. [UnregDll]
  7. DelReg=UnRegAll,RegAll
  8. [RegAll]
  9. ; Shell Image Object
  10. HKCR,"Applications\shimgvw.dll\shell\open","MuiVerb",,"@shimgvw.dll,-%IDS_PREVIEW_CTX%"
  11. HKCR,"Applications\shimgvw.dll\shell\open\command",,%REGEXSZ%,"rundll32.exe %_SYS_MOD_PATH%,ImageView_Fullscreen %%1"
  12. HKCR,"Applications\shimgvw.dll\shell\open\DropTarget","Clsid",,"%CLSID_PhotoVerbs%"
  13. ; we dont have a command line print verb...
  14. HKCR,"Applications\shimgvw.dll\shell\print\command",,%REGEXSZ%,"rundll32.exe %_SYS_MOD_PATH%,ImageView_Fullscreen %%1"
  15. HKCR,"Applications\shimgvw.dll\shell\print\DropTarget","Clsid",,"%CLSID_PrintPhotosDropTarget%"
  16. HKCR,"CLSID\%CLSID_PhotoVerbs%",,,""Shell Image Verbs""
  17. HKCR,"CLSID\%CLSID_PhotoVerbs%\%IPS%",,%REGEXSZ%,"%_SYS_MOD_PATH%"
  18. HKCR,"CLSID\%CLSID_PhotoVerbs%\%IPS%","ThreadingModel",,"Apartment"
  19. HKCR,"CLSID\%CLSID_PhotoVerbs%\shellex\MayChangeDefaultMenu",,,""
  20. HKLM,"%SMWCVSEA%","%CLSID_PhotoVerbs%",,""Shell Image Verbs""
  21. HKCR,SystemFileAssociations\image\ShellEx\ContextMenuHandlers\ShellImagePreview,,,"%CLSID_PhotoVerbs%"
  22. HKCR,SystemFileAssociations\image\shellex\PropertyHandler,,,%CLSID_ImagePropertyHandler%
  23. HKCR,SystemFileAssociations\image\shellex\%IID_IExtractImage%,,,%CLSID_GdiThumbnailExtractor%
  24. ; we dont have a command line print verb...
  25. HKCR,"SystemFileAssociations\image\shell\print\command",,%REGEXSZ%,"rundll32.exe %_SYS_MOD_PATH%,ImageView_Fullscreen %%1"
  26. HKCR,"SystemFileAssociations\image\shell\print\DropTarget","Clsid",,"%CLSID_PrintPhotosDropTarget%"
  27. HKCR,"SystemFileAssociations\image\OpenWithList\shimgvw.dll",,,
  28. ; probably need to add CheckSupportedTypes
  29. ; Register the classes for the interesting image types
  30. HKCR,Paint.Picture,"FriendlyTypeName",%REGEXSZ%,"@%_SYS_MOD_PATH%,-304"
  31. HKCR,giffile,"FriendlyTypeName",%REGEXSZ%,"@%_SYS_MOD_PATH%,-302"
  32. HKCR,pjpegfile,"FriendlyTypeName",%REGEXSZ%,"@%_SYS_MOD_PATH%,-303"
  33. HKCR,jpegfile,"FriendlyTypeName",%REGEXSZ%,"@%_SYS_MOD_PATH%,-303"
  34. HKCR,pngfile,"FriendlyTypeName",%REGEXSZ%,"@%_SYS_MOD_PATH%,-305"
  35. HKCR,TIFImage.Document,"FriendlyTypeName",%REGEXSZ%,"@%_SYS_MOD_PATH%,-306"
  36. HKCR,emffile,"FriendlyTypeName",%REGEXSZ%,"@%_SYS_MOD_PATH%,-301"
  37. HKCR,wmffile,"FriendlyTypeName",%REGEXSZ%,"@%_SYS_MOD_PATH%,-307"
  38. ; Set the ImageOptionsFlag for image types (0x00000001 is CanRotate, 0x00000002 is CanWallpaper)
  39. ; Note that can only set bitmaps as wallpaper on 64-bit Windows
  40. HKCR,Paint.Picture,"ImageOptionFlags",%REGDW%,0x00000003
  41. #ifdef _WIN64
  42. HKCR,giffile,"ImageOptionFlags",%REGDW%,0x00000001
  43. HKCR,pjpegfile,"ImageOptionFlags",%REGDW%,0x00000001
  44. HKCR,jpegfile,"ImageOptionFlags",%REGDW%,0x00000001
  45. #else
  46. HKCR,giffile,"ImageOptionFlags",%REGDW%,0x00000003
  47. HKCR,pjpegfile,"ImageOptionFlags",%REGDW%,0x00000003
  48. HKCR,jpegfile,"ImageOptionFlags",%REGDW%,0x00000003
  49. #endif // _WIN64
  50. HKCR,pngfile,"ImageOptionFlags",%REGDW%,0x00000003
  51. HKCR,TIFImage.Document,"ImageOptionFlags",%REGDW%,0x00000000
  52. HKCR,emffile,"ImageOptionFlags",%REGDW%,0x00000000
  53. HKCR,wmffile,"ImageOptionFlags",%REGDW%,0x00000000
  54. HKCR,icofile,"ImageOptionFlags",%REGDW%,0x00000000
  55. ; Shell Image Object - hides GDI+ from us
  56. HKCR,"CLSID\%CLSID_ShellImageDataFactory%",,,"Shell Image Data Factory"
  57. HKCR,"CLSID\%CLSID_ShellImageDataFactory%\%IPS%",,%REGEXSZ%,"%_SYS_MOD_PATH%"
  58. HKCR,"CLSID\%CLSID_ShellImageDataFactory%\%IPS%","ThreadingModel",,"Apartment"
  59. HKLM,"%SMWCVSEA%","%CLSID_ShellImageDataFactory%",,"Shell Image Data Factory"
  60. ; Shell AutoplayForSlideShow
  61. HKCR,"CLSID\%CLSID_AutoplayForSlideShow%",,,%DESC_AutoplayForSlideShow%
  62. HKCR,"CLSID\%CLSID_AutoplayForSlideShow%\%LS%",,%REGEXSZ%,"rundll32.exe %_SYS_MOD_PATH%,ImageView_COMServer %CLSID_AutoplayForSlideShow%"
  63. HKCR,"CLSID\%CLSID_AutoplayForSlideShow%\%LS%","ThreadingModel",,"Both"
  64. HKCR,"CLSID\%CLSID_AutoplayForSlideShow%\ProgID",,,"%PROGID_AutoplayForSlideShow%.1"
  65. HKCR,"CLSID\%CLSID_AutoplayForSlideShow%\VersionIndependentProgID",,,"%PROGID_AutoplayForSlideShow%"
  66. HKCR,"CLSID\%CLSID_AutoplayForSlideShow%","AppID",,"%CLSID_AutoplayForSlideShow%"
  67. HKCR,"AppID\%CLSID_AutoplayForSlideShow%","RunAs",,"Interactive User"
  68. HKCR,"%PROGID_AutoplayForSlideShow%",,,"%DESC_AutoplayForSlideShow%"
  69. HKCR,"%PROGID_AutoplayForSlideShow%\CLSID",,,"%CLSID_AutoplayForSlideShow%"
  70. HKCR,"%PROGID_AutoplayForSlideShow%\CurVer",,,"%PROGID_AutoplayForSlideShow%.1"
  71. HKCR,"%PROGID_AutoplayForSlideShow%.1",,,"%DESC_AutoplayForSlideShow%"
  72. HKCR,"%PROGID_AutoplayForSlideShow%.1\CLSID",,,"%CLSID_AutoplayForSlideShow%"
  73. HKCR,"%PROGID_AutoplayForSlideShow%.1\shell\open\DropTarget","Clsid",,"%CLSID_AutoplayForSlideShow%"
  74. ; Shell details image property handler
  75. HKCR,"CLSID\%CLSID_ImagePropertyHandler%",,,"Shell Image Property Handler"
  76. HKCR,"CLSID\%CLSID_ImagePropertyHandler%\%IPS%",,%REGEXSZ%,"%_SYS_MOD_PATH%"
  77. HKCR,"CLSID\%CLSID_ImagePropertyHandler%\%IPS%","ThreadingModel",,"Apartment"
  78. ; ImageRecompress object - used from sendto/pubwiz
  79. HKCR,"CLSID\%CLSID_ImageRecompress%",,,"Shell Image Recompression Object"
  80. HKCR,"CLSID\%CLSID_ImageRecompress%\%IPS%",,%REGEXSZ%,"%_SYS_MOD_PATH%"
  81. HKCR,"CLSID\%CLSID_ImageRecompress%\%IPS%","ThreadingModel",,"Apartment"
  82. ; mark things as approved
  83. HKLM,"%SMWCVSEA%","%CLSID_GdiThumbnailExtractor%",,"%DESC_GDITHUMBEXTRACT%"
  84. HKLM,"%SMWCVSEA%","%CLSID_DocfileThumbnailHandler%",,"%DESC_DOCTHUMBEXTRACT%"
  85. HKLM,"%SMWCVSEA%","%CLSID_HtmlThumbnailExtractor%",,"%DESC_HTMLTHUMBEXTRACT%"
  86. HKLM,"%SMWCVSEA%","%CLSID_ImagePropertyHandler%",,"Shell Image Property Handler"
  87. [RegDelete]
  88. HKCR,"CLSID\%CLSID_AllPhotoVerbs%"
  89. HKCR,Paint.Picture\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  90. HKCR,giffile\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  91. HKCR,pjpegfile\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  92. HKCR,jpegfile\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  93. HKCR,pngfile\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  94. HKCR,TIFImage.Document\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  95. HKCR,XIFImage.Document,"ImageOptionFlags"
  96. HKCR,XIFImage.Document\ShellEx\ContextMenuHandlers\%CLSID_PhotoVerbs%
  97. HKCR,XIFImage.Document\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  98. HKCR,"Applications\shimgvw.dll"
  99. [UnRegAll]
  100. HKCR,"CLSID\%CLSID_PhotoVerbs%"
  101. HKCR,"CLSID\%CLSID_ShellImageDataFactory%"
  102. HKCR,"CLSID\%CLSID_ImagePropertyHandler%"
  103. [Strings]
  104. SMWCVSEA="Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved"
  105. PATH_EXPLORER="Software\Microsoft\Windows\CurrentVersion\Explorer"
  106. IPS="InProcServer32"
  107. LS="LocalServer32"
  108. CLSID_AllPhotoVerbs="{86603d99-fe49-4467-b72c-0f50d9accf29}"
  109. CLSID_PhotoVerbs="{e84fda7c-1d6a-45f6-b725-cb260c236066}"
  110. CLSID_ShellImageDataFactory="{66e4e4fb-f385-4dd0-8d74-a2efd1bc6178}"
  111. CLSID_AutoplayForSlideShow="{00E7B358-F65B-4dcf-83DF-CD026B94BFD4}"
  112. CLSID_ImageRecompress="{6e33091c-d2f8-4740-b55e-2e11d1477a2c}"
  113. CLSID_PrintPhotosDropTarget="{60fd46de-f830-4894-a628-6fa81bc0190d}"
  114. CLSID_GdiThumbnailExtractor="{3F30C968-480A-4C6C-862D-EFC0897BB84B}"
  115. CLSID_DocfileThumbnailHandler="{9DBD2C50-62AD-11d0-B806-00C04FD706EC}"
  116. CLSID_HtmlThumbnailExtractor="{EAB841A0-9550-11cf-8C16-00805F1408F3}"
  117. CLSID_ImagePropertyHandler="{eb9b1153-3b57-4e68-959a-a3266bc3d7fe}"
  118. IID_IExtractImage="{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}"
  119. PROGID_AutoplayForSlideShow="Shell.AutoplayForSlideShow"
  120. DESC_AutoplayForSlideShow="Shell Autoplay for Slideshow"
  121. DESC_GDITHUMBEXTRACT="GDI+ file thumbnail extractor"
  122. DESC_DOCTHUMBEXTRACT="Summary Info Thumbnail handler (DOCFILES)"
  123. DESC_HTMLTHUMBEXTRACT="HTML Thumbnail Extractor"
  124. REGEXSZ=0x00020000
  125. REGDW=0x00010001
  126. IDS_PREVIEW_CTX=550