>Thanks for the advice, but reading MSDN I found somethig
>to disable some buttons for VB and was trying to do the
>same with VFP.
>
>I just want to have more control over the application,
>because some user's just dont read what's in front of
>their nose, and some user's press CTRL + ALT + DEL (twice)
>and we all know what happens !
>
>I found This:
>Declare Integer SystemParametersInfo ;
>In user32 As SystemParametersInfo ;
>Integer uAction , ;
>Integer uParam ,;
>String lpvParam ,;
>Integer fuWinIni
>
>* Disable Buttons Ctrl + Esc & Alt + Tab & Ctrl + Alt + Del
>=SystemParametersInfo( 97, 1, 0, 0)
This affects the screen saver mode, and should not be called at all in Win9x; it's called internally. The literal 97 is SPI_SCREENSAVERRUNNING.
VFP does not have the mechanism needed to hook a system keystroke by itself - it requires a callback.
I'd investigate two API calls - BlockInput(), which can block respose to key and mouse events, and MapVirtualKey(), which can assign a different virtual key to a scan code on a temporary basis.
>
>wait windows "Buttons 'Ctrl+Esc' & 'Crtl+Tab' & 'Ctrl+Alt+Del' Disable" timeout 3
>
>* Enable
>=SystemParametersInfo( 97, 0, 0, 0)
>wait windows "Buttons Enable" timeout 3