Desktop background

BlitzMax Forums/BlitzMax Programming/Desktop background

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This returns garbage. What have I done wrong?
Extern "win32"
  Function SystemParametersInfo(uiAction:Int, uiParam:Int, pvParam:String, fWinIni:Int) = "SystemParametersInfoA@16"
End Extern

Const SPI_GETDESKWALLPAPER = $73

Print getwallpaper()
End

Function GetWallpaper:String()
	Local result:String
	SystemParametersInfo(SPI_GETDESKWALLPAPER, 128, result, 0)
        Return result
End Function