Default
Google

How can I disable Ctrl + Alt + Del or Alt + Tab?

Applies To: C++Builder 1 or higher
Category: Knowledge Base

 1.
  Start a new project using File | New Application.
 
 2.
  Edit the OnShow event:
 
void __fastcall TForm1::FormShow(TObject *Sender)
{
    int result;
    SystemParametersInfo(SPI_SCREENSAVERRUNNING, true, &result,
        0);
}
 
 3.
  Edit the OnClose event:
 
void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction
    &Action)
{
    int result;
    SystemParametersInfo(SPI_SCREENSAVERRUNNING, false, &result,
        0);
}
 
As you already know, when a screen saver is running, the special Windows keys are disabled in order to prevent security problems. You can trick Windows into thinking that a screen saver is running.

C++Builder Developer's Network
Copyright © Yoto Yotov



Acquiring image from ProHosting Banner Exchange