As mentioned in the title, I want to get the path to the current desktop wallpaper (in C++). I tried to use SystemParametersInfo
with SPI_GETDESKWALLPAPER
. But this only returns this:
%AppData%\Microsoft\Windows\Themes\TranscodedWallpaper
What I really need would be something like this:
C:\User\...\image.png
Is there any way to achieve this?
There is registry hive HKEY_CURRENT_USER\Control Panel\Desktop. It has value with name Wallpaper. It contains the path to the current wallpaper.