i want to change the desktop background to an html file i made. this code works fine with bmp files but doesn't change the registry when i use a html file. what is wrong?
i am using theis code:

Option Explicit

Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As String, ByVal fuWinIni As Long) As Long
Private Const SPI_SETDESKWALLPAPER = 20
Private Const SPIF_UPDATEINIFILE = 1

Private Sub Command1_Click()

SystemParametersInfo SPI_SETDESKWALLPAPER, _
0, "c:\windows\desktop\test.html", SPIF_UPDATEINIFILE
End Sub


thanks in advance.

[Edited by HAVocINCARNATE29 on 04-01-2000 at 08:50 PM]