Bekz.net - (14016 of 825944 - 2%) 

 Home | Tips & Tricks | General Info | Downloads | NG Archive | Links | Email | Search | Register | Users | Login

 


 

Tips & Tricks

 

Rating: 100% (2 votes registred)
Rate this item:

Back to list

How can disable / enable CTRL-ALT-DEL key combination?

With the help of the Windows API SystemParametersInfo() function it is possible to enable and/or disable the CTRL-ALT-DEL key combination. The SystemParametersInfo function retrieves or sets the value of one of the system-wide parameters.

Function CtrlAltDel( lState )

If !lState
   SysParInfo( 97, 1, 0, 0 )
else
   SysParInfo( 97, 0, 0, 0 )
endif

Return NIL


DLL32 FUNCTION SysParInfo( uAction AS LONG,;
                           uParam  AS LONG,;
                           vParam  AS LONG,;
                           uWinIni AS LONG ) AS LONG PASCAL;
      FROM "SystemParametersInfoA" LIB "User32.dll"
 

 

 

 

 

© 2002 Bekz.net, Inc. All Rights Reserved.