reactos/dll
Oleg Dubinskiy f9a5344254
[SHELL32] Allow using custom desktop/folders/drives icons (#6421)
Implement proper reading the current user's icons from registry.

CORE-14758

- Load the icons specified by user in registry in the following keys:
  "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\DefaultIcon"
  (virtual namespace folders)
  "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons"
  (filesystem folders and drives)
- Implement two functions HCU/HLM_GetIconW for reading the icons
  from mentioned HKCU and HKLM keys accordingly.
- Use HCR_RegGetIconW for falling back to default icons.
  This function always loads only default icons, even when
  the custom ones are specified by user.
- Refactor SIC_LoadOverlayIcon to use newly implemented HLM_GetIconW.

These changes apply to:
- virtual namespace folders and other desktop items (like My Computer,
  My Documents, Network Places, Recycle Bin, Web Browser (aka Internet
  Explorer), Control Panel and some of its items);
- normal filesystem directories;
- all types of drives (fixed disk drives, removable drives, CD-ROMs,
  RamDisks and network drives). Handle invalid drives, setting blank
  icon for them, since they cannot be recognized or mounted correctly.
  Also, load the autorun icons first to avoid overriding them by the
  icons defined in registry.

I've rechecked twice: excluding Start Menu icons, Desktop Workspace icon
and some FS folder icons that have their own desktop.ini configuration
files (we probably should write the custom icons we load to these configs,
as Windows does it, perhaps with WritePrivateProfileStringW), all other
icons can be changed now (only ones that can be changed on XP SP3 / 2003
SP2) via built-in system tools (like Desktop icons in desk.cpl) or any
3rd-party tools without modifying system resources.

Also all icons for the known file types can be changed,
same as before my changes.

Regarding Start Menu icons:
- changing them should be correctly implemented in explorer
  instead of shell32, as the former is responsible for the Start Menu
  and partially for the taskbar;
- in order to actually use all of them, we need to implement modern
  Start Menu first.

Useful reference: http://www.winfaq.de/faq_html/Content/tip0000/onlinefaq.php?h=tip0162.htm
2024-02-29 00:20:47 +03:00
..
3rdparty [LIBPNG] Update to version 1.6.39. CORE-18670 2022-11-27 10:10:53 -05:00
apisets [APISETS] Forward _seh_longjmp_unwind4() to msvcrt (#6176) 2023-12-17 22:19:00 +01:00
appcompat [APPHELP] Stop shimeng being initialized multiple times 2022-10-26 20:19:31 +02:00
cpl [APPWIZ][SHELL32] Improve 'Create Shortcut' dialog (#6550) 2024-02-28 15:22:44 +09:00
directx [DSOUND_NEW][HDAUDBUS] Replace meaningless YDEBUG (#5857) 2023-11-01 13:39:05 +01:00
ime [MSCTFIME] Finish msctfime.cpp (#6523) 2024-02-23 19:58:21 +09:00
keyboard [KEYBOARD] Fix problems in our keyboard layouts 2022-10-05 21:28:15 +03:00
nls [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
np [REACTOS] Explicitly link against pseh & include pseh headers in a few places 2021-04-28 13:10:23 +02:00
ntdll [LDR][NDK] Fix inconsistent Cookie type (#6188) 2023-12-23 22:13:47 +01:00
opengl [MESA] Change reported OpenGL version to 1.1.0 (#5675) 2023-09-09 22:30:44 +03:00
shellext [ZIPFLDR] Update Romanian (ro-RO) translation (#6453) 2024-02-11 23:11:26 +01:00
win32 [SHELL32] Allow using custom desktop/folders/drives icons (#6421) 2024-02-29 00:20:47 +03:00
CMakeLists.txt [MSCTFIME][SDK][USER32] Add msctfime.ime (stub) (#6141) 2023-12-11 22:37:25 +09:00