Your app will crash if you try to invoke the setdesktopwallpaper verb

I was building a little app that would take a jpeg file and set it as the user’s wallpaper. I could use the SystemParametersInfo API but I wanted something a bit more flexible (e.g. SPI only supports BMP images). So I set out to do what most people have already tried (and failed) and attempted…