Leaked source code of windows server 2003
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.

143 lines
7.6 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. HKLM,"%SMWCVSEA%","%CLSID_AutoplayForSlideShow%",,"Autoplay for SlideShow"
  75. ; Shell details image property handler
  76. HKCR,"CLSID\%CLSID_ImagePropertyHandler%",,,"Shell Image Property Handler"
  77. HKCR,"CLSID\%CLSID_ImagePropertyHandler%\%IPS%",,%REGEXSZ%,"%_SYS_MOD_PATH%"
  78. HKCR,"CLSID\%CLSID_ImagePropertyHandler%\%IPS%","ThreadingModel",,"Apartment"
  79. ; ImageRecompress object - used from sendto/pubwiz
  80. HKCR,"CLSID\%CLSID_ImageRecompress%",,,"Shell Image Recompression Object"
  81. HKCR,"CLSID\%CLSID_ImageRecompress%\%IPS%",,%REGEXSZ%,"%_SYS_MOD_PATH%"
  82. HKCR,"CLSID\%CLSID_ImageRecompress%\%IPS%","ThreadingModel",,"Apartment"
  83. ; mark things as approved
  84. HKLM,"%SMWCVSEA%","%CLSID_GdiThumbnailExtractor%",,"%DESC_GDITHUMBEXTRACT%"
  85. HKLM,"%SMWCVSEA%","%CLSID_DocfileThumbnailHandler%",,"%DESC_DOCTHUMBEXTRACT%"
  86. HKLM,"%SMWCVSEA%","%CLSID_HtmlThumbnailExtractor%",,"%DESC_HTMLTHUMBEXTRACT%"
  87. HKLM,"%SMWCVSEA%","%CLSID_ImagePropertyHandler%",,"Shell Image Property Handler"
  88. [RegDelete]
  89. HKCR,"CLSID\%CLSID_AllPhotoVerbs%"
  90. HKCR,Paint.Picture\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  91. HKCR,giffile\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  92. HKCR,pjpegfile\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  93. HKCR,jpegfile\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  94. HKCR,pngfile\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  95. HKCR,TIFImage.Document\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  96. HKCR,XIFImage.Document,"ImageOptionFlags"
  97. HKCR,XIFImage.Document\ShellEx\ContextMenuHandlers\%CLSID_PhotoVerbs%
  98. HKCR,XIFImage.Document\ShellEx\ContextMenuHandlers\%CLSID_AllPhotoVerbs%
  99. HKCR,"Applications\shimgvw.dll"
  100. [UnRegAll]
  101. HKCR,"CLSID\%CLSID_PhotoVerbs%"
  102. HKCR,"CLSID\%CLSID_ShellImageDataFactory%"
  103. HKCR,"CLSID\%CLSID_ImagePropertyHandler%"
  104. [Strings]
  105. SMWCVSEA="Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved"
  106. PATH_EXPLORER="Software\Microsoft\Windows\CurrentVersion\Explorer"
  107. IPS="InProcServer32"
  108. LS="LocalServer32"
  109. CLSID_AllPhotoVerbs="{86603d99-fe49-4467-b72c-0f50d9accf29}"
  110. CLSID_PhotoVerbs="{e84fda7c-1d6a-45f6-b725-cb260c236066}"
  111. CLSID_ShellImageDataFactory="{66e4e4fb-f385-4dd0-8d74-a2efd1bc6178}"
  112. CLSID_AutoplayForSlideShow="{00E7B358-F65B-4dcf-83DF-CD026B94BFD4}"
  113. CLSID_ImageRecompress="{6e33091c-d2f8-4740-b55e-2e11d1477a2c}"
  114. CLSID_PrintPhotosDropTarget="{60fd46de-f830-4894-a628-6fa81bc0190d}"
  115. CLSID_GdiThumbnailExtractor="{3F30C968-480A-4C6C-862D-EFC0897BB84B}"
  116. CLSID_DocfileThumbnailHandler="{9DBD2C50-62AD-11d0-B806-00C04FD706EC}"
  117. CLSID_HtmlThumbnailExtractor="{EAB841A0-9550-11cf-8C16-00805F1408F3}"
  118. CLSID_ImagePropertyHandler="{eb9b1153-3b57-4e68-959a-a3266bc3d7fe}"
  119. IID_IExtractImage="{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}"
  120. PROGID_AutoplayForSlideShow="Shell.AutoplayForSlideShow"
  121. DESC_AutoplayForSlideShow="Shell Autoplay for Slideshow"
  122. DESC_GDITHUMBEXTRACT="GDI+ file thumbnail extractor"
  123. DESC_DOCTHUMBEXTRACT="Summary Info Thumbnail handler (DOCFILES)"
  124. DESC_HTMLTHUMBEXTRACT="HTML Thumbnail Extractor"
  125. REGEXSZ=0x00020000
  126. REGDW=0x00010001
  127. IDS_PREVIEW_CTX=550