Parameters
pwszWallpaper
String value containing the file name of the wallpaper to be set.
dwReserved
Reserved. Must be set to zero.
Return Values
Returns S_OK if successful, or an OLE error code otherwise.
In VB, I would suggest that yo use the SystemParametersInfo API Call
Public 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
Public Sub SetWallPaper()
Dim FileName As String
Dim Ret As Long
FileName = "<your graphic pathname>"
Ret = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0&, FileName, SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE)
End Sub Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
hi,
ALLAPI is offering APIGUIDE. I have used it earlier but the new version is not working. Is their anyother software which provides details about api's.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.