#include <windows.h>
#include <stdio.h>

const char *USAGE =
"Junko2 SetWindowsWallpaper program, 2007-03-20\n"
"Usage: setwallpaper <path-to-bmp-file>\n";

int main(int argc, char **argv) {
    if( argc < 2 ) {
	fputs( USAGE, stderr );
	return 1;
    }
    SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, argv[1], SPIF_UPDATEINIFILE);
    return 0;
}
