I have some code that I incorporated into a program that changes the Windows background (wallpaper). It works fine under Windows 98, but it will not work under Windows 2000. Does anyone know of any code that will work for all varieties of Windows?

Thanks!

Code:
If SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, FileDirectory & "background_eagle_1024.bmp", 0) Then
    MsgBox "Wallpaper changed!"
Else
    MsgBox "An Error Occurred!"
End If