Visual C++ Program to Change Desktop Wallpaper Image in Command Line

You are currently viewing Visual C++ Program to Change Desktop Wallpaper Image in Command Line

Visual C++ Program to Change Desktop Wallpaper Image in Command Line

#include "stdafx.h"
#include <windows.h>
 
int main() {
 
    int return_value = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, L"d:/flower1.jpg", SPIF_UPDATEINIFILE);
 
    return 0;
}

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply