关闭屏幕保护

发表于:2007-06-30来源:作者:点击数: 标签:
procedure TForm1.Button1Click(Sender: TObject);
begin
{关闭}
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,
0,
nil,
0);
{打开}
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,
1,
nil,
0);
end;

原文转自:http://www.ltesting.net