![]() |
Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming! |
⤷ Disable Alt-Tab, Ctrl-Esc keys
Use SystemParametersInfo function with SPI_SCREENSAVERRUNNING parameter.
var
MyW: Word = 0;
...
procedure TForm1.Button1Click(Sender: TObject);
begin
SystemParametersInfo(SPI_SCREENSAVERRUNNING,1,@MyW,0);
Label1.Caption:='mode - disable';
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
SystemParametersInfo(SPI_SCREENSAVERRUNNING,0,@MyW,0);
Label1.Caption:='mode - enable';
end;
-
More for developers