I am now the happiest man. Finally, I figured this out. There is a restriction on file size. The code was alright, once I test with small .bmp files, it works.
The bad thing is that, with big images, it does not work, but the API call still returns successfully. But not much one can do, that's just how it works.
Guys, thanks for all the helps. By the way, jacques, the reason I didn't install your module, instead only copied a piece is that, the whole point is to figure out what was wrong, not just workaround ;-) I wanted to know why.
Update:When I say small .bmp file, I actually meant the file size. It probably not only has something to do with the size (width, height) of the image, but also could be the color schema (certain types of bmp), resolution. Any way, when I test with those wallpaper images coming with windows, they all worked. and I noticed that their sizes are small. (This moment, I am on windows 98).
In reply to Re: set windows background picture
by pg
in thread set windows background picture
by pg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |