// SetWallPaper.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include int _tmain(int argc, _TCHAR* argv[]) { char *wallpaper; if (argc == 1) wallpaper = ""; else wallpaper = argv[1]; SystemParametersInfo( SPI_SETDESKWALLPAPER, // Set the wall paper 0, // Not used wallpaper, 0); // not used return 0; }