var
BmpPath: PChar;
begin
BmpPath := 'C:\Temp\Test.bmp';
SystemParametersInfo(SPI_SETDESKWALLPAPER, , BmpPath, SPIF_UPDATEINIFILE);
end;
函数原型
BOOL WINAPI SystemParametersInfo(
_In_ UINT uiAction,
_In_ UINT uiParam,
_Inout_ PVOID pvParam,
_In_ UINT fWinIni
);
SPI_GETBEEP = ; {}
SPI_SETBEEP = ; {}
SPI_GETMOUSE = ; {}
SPI_SETMOUSE = ; {}
SPI_GETBORDER = ; {}
SPI_SETBORDER = ; {}
SPI_GETKEYBOARDSPEED = ; {}
SPI_SETKEYBOARDSPEED = ; {}
SPI_LANGDRIVER = ; {}
SPI_ICONHORIZONTALSPACING = ; {}
SPI_GETSCREENSAVETIMEOUT = ; {}
SPI_SETSCREENSAVETIMEOUT = ; {}
SPI_GETSCREENSAVEACTIVE = $10; {}
SPI_SETSCREENSAVEACTIVE = ; {}
SPI_GETGRIDGRANULARITY = ; {}
SPI_SETGRIDGRANULARITY = ; {}
SPI_SETDESKWALLPAPER = ; {}
SPI_SETDESKPATTERN = ; {}
SPI_GETKEYBOARDDELAY = ; {}
SPI_SETKEYBOARDDELAY = ; {}
SPI_ICONVERTICALSPACING = ; {}
SPI_GETICONTITLEWRAP = ; {}
SPI_SETICONTITLEWRAP = ; {}
SPI_GETMENUDROPALIGNMENT = ; {}
SPI_SETMENUDROPALIGNMENT = ; {}
SPI_SETDOUBLECLKWIDTH = ; {}
SPI_SETDOUBLECLKHEIGHT = ; {}
SPI_GETICONTITLELOGFONT = ; {}
SPI_SETDOUBLECLICKTIME = $20; {}
SPI_SETMOUSEBUTTONSWAP = ; {}
SPI_SETICONTITLELOGFONT = ; {}
SPI_GETFASTTASKSWITCH = ; {}
SPI_SETFASTTASKSWITCH = ; {}
SPI_SETDRAGFULLWINDOWS = ; {}
SPI_GETDRAGFULLWINDOWS = ; {}
SPI_GETNONCLIENTMETRICS = ; {}
SPI_SETNONCLIENTMETRICS = ; {}
SPI_GETMINIMIZEDMETRICS = ; {}
SPI_SETMINIMIZEDMETRICS = ; {}
SPI_GETICONMETRICS = ; {}
SPI_SETICONMETRICS = ; {}
SPI_SETWORKAREA = ; {}
SPI_GETWORKAREA = ; {}
SPI_SETPENWINDOWS = ; {}
SPI_GETHIGHCONTRAST = ; {}
SPI_SETHIGHCONTRAST = ; {}
SPI_GETKEYBOARDPREF = ; {}
SPI_SETKEYBOARDPREF = ; {}
SPI_GETSCREENREADER = ; {}
SPI_SETSCREENREADER = ; {}
SPI_GETANIMATION = ; {}
SPI_SETANIMATION = ; {}
SPI_GETFONTSMOOTHING = ; {}
SPI_SETFONTSMOOTHING = ; {}
SPI_SETDRAGWIDTH = ; {}
SPI_SETDRAGHEIGHT = ; {}
SPI_SETHANDHELD = ; {}
SPI_GETLOWPOWERTIMEOUT = ; {}
SPI_GETPOWEROFFTIMEOUT = ; {}
SPI_SETLOWPOWERTIMEOUT = ; {}
SPI_SETPOWEROFFTIMEOUT = ; {}
SPI_GETLOWPOWERACTIVE = ; {}
SPI_GETPOWEROFFACTIVE = ; {}
SPI_SETLOWPOWERACTIVE = ; {}
SPI_SETPOWEROFFACTIVE = ; {}
SPI_SETCURSORS = ; {}
SPI_SETICONS = ; {}
SPI_GETDEFAULTINPUTLANG = ; {}
SPI_SETDEFAULTINPUTLANG = ; {}
SPI_SETLANGTOGGLE = ; {}
SPI_GETWINDOWSEXTENSION = ; {}
SPI_SETMOUSETRAILS = ; {}
SPI_GETMOUSETRAILS = ; {}
SPI_SCREENSAVERRUNNING = ; {}
SPI_GETFILTERKEYS = ; {}
SPI_SETFILTERKEYS = ; {}
SPI_GETTOGGLEKEYS = ; {}
SPI_SETTOGGLEKEYS = ; {}
SPI_GETMOUSEKEYS = ; {}
SPI_SETMOUSEKEYS = ; {}
SPI_GETSHOWSOUNDS = ; {}
SPI_SETSHOWSOUNDS = ; {}
SPI_GETSTICKYKEYS = ; {}
SPI_SETSTICKYKEYS = ; {}
SPI_GETACCESSTIMEOUT = ; {}
SPI_SETACCESSTIMEOUT = ; {}
SPI_GETSERIALKEYS = ; {}
SPI_SETSERIALKEYS = ; {}
SPI_GETSOUNDSENTRY = ; {}
SPI_SETSOUNDSENTRY = ; {}
SPI_GETSNAPTODEFBUTTON = ; {}
SPI_SETSNAPTODEFBUTTON = ; {}
SPI_GETMOUSEHOVERWIDTH = ; {}
SPI_SETMOUSEHOVERWIDTH = ; {}
SPI_GETMOUSEHOVERHEIGHT = ; {}
SPI_SETMOUSEHOVERHEIGHT = ; {}
SPI_GETMOUSEHOVERTIME = ; {}
SPI_SETMOUSEHOVERTIME = ; {}
SPI_GETWHEELSCROLLLINES = ; {}
SPI_SETWHEELSCROLLLINES = ; {}
SPI_GETMENUSHOWDELAY = ; {}
SPI_SETMENUSHOWDELAY = ; {}
SPI_GETSHOWIMEUI = ; {}
SPI_SETSHOWIMEUI = ; {}
SPI_GETMOUSESPEED = ; {}
SPI_SETMOUSESPEED = ; {}
SPI_GETSCREENSAVERRUNNING = ; {}
SPI_GETACTIVEWINDOWTRACKING = $1000; {}
SPI_SETACTIVEWINDOWTRACKING = $1001; {}
SPI_GETMENUANIMATION = $1002; {}
SPI_SETMENUANIMATION = $1003; {}
SPI_GETCOMBOBOXANIMATION = $1004; {}
SPI_SETCOMBOBOXANIMATION = $1005; {}
SPI_GETLISTBOXSMOOTHSCROLLING = $1006; {}
SPI_SETLISTBOXSMOOTHSCROLLING = $1007; {}
SPI_GETGRADIENTCAPTIONS = $1008; {}
SPI_SETGRADIENTCAPTIONS = $1009; {}
SPI_GETKEYBOARDCUES = $100A; {}
SPI_SETKEYBOARDCUES = $100B; {}
SPI_GETMENUUNDERLINES = SPI_GETKEYBOARDCUES;
SPI_SETMENUUNDERLINES = SPI_SETKEYBOARDCUES;
SPI_GETACTIVEWNDTRKZORDER = $100C; {}
SPI_SETACTIVEWNDTRKZORDER = $100D; {}
SPI_GETHOTTRACKING = $100E; {}
SPI_SETHOTTRACKING = $100F; {}
SPI_GETMENUFADE = $1012; {}
SPI_SETMENUFADE = $1013; {}
SPI_GETSELECTIONFADE = $1014; {}
SPI_SETSELECTIONFADE = $1015; {}
SPI_GETTOOLTIPANIMATION = $1016; {}
SPI_SETTOOLTIPANIMATION = $1017; {}
SPI_GETTOOLTIPFADE = $1018; {}
SPI_SETTOOLTIPFADE = $1019; {}
SPI_GETCURSORSHADOW = $101A; {}
SPI_SETCURSORSHADOW = $101B; {}
SPI_GETMOUSESONAR = $101C; {}
SPI_SETMOUSESONAR = $101D; {}
SPI_GETMOUSECLICKLOCK = $101E; {}
SPI_SETMOUSECLICKLOCK = $101F; {}
SPI_GETMOUSEVANISH = $1020; {}
SPI_SETMOUSEVANISH = $1021; {}
SPI_GETFLATMENU = $1022; {}
SPI_SETFLATMENU = $1023; {}
SPI_GETDROPSHADOW = $1024; {}
SPI_SETDROPSHADOW = $1025; {}
SPI_GETUIEFFECTS = $103E; {}
SPI_SETUIEFFECTS = $103F; {}
SPI_GETFOREGROUNDLOCKTIMEOUT = $2000; {}
SPI_SETFOREGROUNDLOCKTIMEOUT = $2001; {}
SPI_GETACTIVEWNDTRKTIMEOUT = $2002; {}
SPI_SETACTIVEWNDTRKTIMEOUT = $2003; {}
SPI_GETFOREGROUNDFLASHCOUNT = $2004; {}
SPI_SETFOREGROUNDFLASHCOUNT = $2005; {}
SPI_GETCARETWIDTH = $2006; {}
SPI_SETCARETWIDTH = $2007; {}
SPI_GETMOUSECLICKLOCKTIME = $2008; {}
SPI_SETMOUSECLICKLOCKTIME = $2009; {}
SPI_GETFONTSMOOTHINGTYPE = $200A; {}
SPI_SETFONTSMOOTHINGTYPE = $200B; {}
SPIF_UPDATEINIFILE = ; {}
SPIF_SENDWININICHANGE = ; {}
SPIF_SENDCHANGE = SPIF_SENDWININICHANGE;