Setting the desktop wallpaper

BlitzMax Forums/BlitzMax Beginners Area/Setting the desktop wallpaper

The trouble is I have it declared like this...

Extern "win32"
  Function SystemParametersInfo(uiAction, uiParam, pvParam Var, fWinIni) = "SystemParametersInfoA@16"
End Extern


Notice the "Var" declaration. Not too sure why its there but it seems to have to be for the function to be used to tell windows that the screen saver is running...

  SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, True, oldState, 0) ' (Win9x only)     


Any thoghts?