Vartana
asked on
Make exe my wallpaper 1000pts !!!!
hi i need to make my exe which i made in vb.net to replace my wallpaper. (2k/XP)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Integer, ByVal uParam As Integer, ByVal lpvParam As String, ByVal fuWinIni As Integer) As Integer
Const SPI_SETDESKWALLPAPER = 20
Const SPIF_SENDWININICHANGE = &H2
Const SPIF_UPDATEINIFILE = &H1
Public Function SetDesktopImage(ByVal fn As String) As Long
SetDesktopImage = SystemParametersInfo(SPI_S
End Function