C++Builder logo
How to disable 'Ctrl+Alt+Del' Comment neutraliser l'appui sur 'Ctrl+Alt+Del'

There is a simple way to do this. Let windows think a screensaver is running. Pour neutraliser l'appui sur les touches 'Ctrl+Alt+del', il suffit de faire croire à windows qu'un screensaver tourne.

MOUSEKEYS       mk;
SystemParametersInfo(SPI_SCREENSAVERRUNNING,TRUE,&mk,0);

To go back to the normal behavior, change TRUE by FALSE. Pour permettre, à nouveau l'appui sur les touches, changez le TRUE en FALSE.

MOUSEKEYS       mk;
SystemParametersInfo(SPI_SCREENSAVERRUNNING,FALSE,&mk,0);