Share via

Change desktop background image programmatically with C++

VansFannel 0 Reputation points
2023-09-17T15:10:41.48+00:00

Hi!

I'm developing a Windows 10 and Windows 11 application with C++.

I want to know if there is a way to change the desktop wallpaper programmatically. How can I do it? Is there a Windows API call to do it? Maybe, I only have to override an image file.

With desktop wallpaper I mean the image that we see as background of our desktop, not the one we see when the computer is locked

Thanks.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.