procedure TForm1.Button1Click(Sender: TObject);
begin
{关闭}
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,
0,
nil,
0);
{打开}
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,
1,
nil,
0);
end;
关闭屏幕保护
80酷酷网 80kuku.com
procedure TForm1.Button1Click(Sender: TObject);
begin
{关闭}
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,
0,
nil,
0);
{打开}
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,
1,
nil,
0);
end;