|
| Rating: | 100% (2 votes registred) |
|
| 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" |
|