/////不显示
procedure TForm1.Button1Click(Sender: TObject);
Var
temp:integer;
begin
SystemParametersInfo(
Spi_screensaverrunning,1,@temp,0);
end;
/////////显示
procedure TForm1.Button2Click(Sender: TObject);
Var
Temp:integer;
begin
SystemParametersInfo(
spi_screensaverrunning,0,@temp,0);
end;