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