关闭屏幕保护

网络整理 - 07-26
procedure TForm1.Button1Click(Sender: TObject);
begin
{关闭}
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,
0,
nil,
0);
{打开}
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,
1,
nil,
0);
end;