Open phanirithvij opened 4 years ago
I'll look into it. There's been quite a lot of turbulence with this project some time ago, and I didn't manage to revisit it yet.
Works on my end:
$ cargo run --example wallpaper-shobjidl
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Running `C:\Users\MOZGIII\Desktop\wallpaper-rs\target\debug\examples\wallpaper-shobjidl.exe`
C:\Users\MOZGIII\AppData\Local\Temp\bm6yqr.jpg
I wonder what could be causing this. Maybe the Windows API does return an empty result?
It might just be the behavior of Windows API. For me both examples work consistently.
Can you try setting the wallpaper via one of the examples and then cargo run --example wallpaper-shobjidl
again?
When using the SlideShow
option wallpaper-shobjidl
doesn't work.
It works with single images.
I have a cpp implementation to get the wallpaper using IDesktopWallpaper
if that can help you debug if you're able to replicate this issue.
wallpaper.zip
Please provide a step-by-step guide to reproduce the issue if you know what's causing it.
I tried running your example
cargo run --example wallpaper-shobjidl
it gave no output.The other one is working
cargo run --example wallpaper-user32
which gave the wallpaper path.