in reply to Refreshing Windows desktop
For more info on SystemParametersInfo look here and here.use warnings; use Win32::API; my $SystemParametersInfo = new Win32::API("user32","SystemParametersIn +fo",[ I,I,P,I ],I); if (not defined $SystemParametersInfo ) { die "could not import SystemParametersInfo"; } my $wallpaper = "c:\\winnt\\Blue Lace 16.bmp"; my $action = 20; #reference http://support.microsoft.com/support/kb/ar +ticles/Q97/1/42.ASP to see which constant to use my $saveWinINI = 0; #save this in the user profile? my $param = 0; #dependent on what $action is #change the wallpaper my $retval = $SystemParametersInfo->Call($action,$param,$wallpaper,$sa +veWinINI);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Refreshing Windows desktop
by Anonymous Monk on Apr 11, 2001 at 01:38 UTC | |
by RhetTbull (Curate) on Apr 11, 2001 at 05:53 UTC |