Board index » delphi » Disable CTRL-ALT-DEL

Disable CTRL-ALT-DEL

Is anybody know how to disable CTRL-ALT-DEL in the Delphi lang ??
please teach me !
 

Re:Disable CTRL-ALT-DEL


Quote
david kwee wrote:

> Is anybody know how to disable CTRL-ALT-DEL in the Delphi lang ??
> please teach me !

This should turn Alt + Ctrl + Delete off.  I'm not sure about the
Alt+Tab though.

procedure TurnSysKeysOff;
var
  OldVal : LongInt;
begin
  SystemParametersInfo (97, Word (True), @OldVal, 0)
end;

procedure TurnSysKeysBackOn;
var
  OldVal : LongInt;
begin
  SystemParametersInfo (97, Word (False), @OldVal, 0)
end;

Hope that helps!

Rkr

--
                   \|||/
                   /'^'\
                  ( 0 0 )
--------------oOOO--(_)--OOOo--------------
. Reid Roman                              .
. Delphi Programmer / Analyst             .
. TVisualBasic:=class(None);              .
. May the Source be With You              .
-------------------------------------------
. Auto-By-Tel (http://www.autobytel.com)  .
. Irvine, CA U.S.A                        .
. E-Mail : rkroman (at) pacbell (dot) net .
. or reidr (at) autobytel (dot) com       .
-------------------------------------------

Re:Disable CTRL-ALT-DEL


I believe this will not work for Windows NT.

Check out  http://www.phord.com/keyblock.html

Quote
>david kwee wrote:
>procedure TurnSysKeysOff;
>var
>  OldVal : LongInt;
>begin
>  SystemParametersInfo (97, Word (True), @OldVal, 0)
>end;

>procedure TurnSysKeysBackOn;
>var
>  OldVal : LongInt;
>begin
>  SystemParametersInfo (97, Word (False), @OldVal, 0)
>end;

Other Threads