Can someone tell me why this isn't working - the file exists, atleast to me:
SystemParametersInfo(SPI_SETDESKWALLPAPER, (UINT) 0, "C:\wallpaper.bmp", SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);
Printable View
Can someone tell me why this isn't working - the file exists, atleast to me:
SystemParametersInfo(SPI_SETDESKWALLPAPER, (UINT) 0, "C:\wallpaper.bmp", SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);
Z.Code:SystemParametersInfo(SPI_SETDESKWALLPAPER, (UINT) 0, "C:\\wallpaper.bmp", SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);
Thanks, I was a bit brain dead there for a second.
Another question, how would I be able to go about storing a picture in my program, to write it to a file to use? Or simply get an image off the web? If it wasn't clear enough this is for mischievious purposes - revenge on a friend for messing with my computer when I wasn't around, don't worry, I don't plan on causing any serious or irreversable damage :)