Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable Keyboard buttons with Win API
Message
 
To
05/01/2001 11:35:00
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00459449
Message ID:
00459876
Views:
30
>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)
>
>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
>
>But it doesn't work !!
>
>Why ?
>
>Could someonem help me please.
>TIA

Declare and pass the third parameter by reference. Note that this will not work on Window NT, and I assume Win2K as well.

I don't know the KB number of the article you used, but there a very strong warning in Q161133 about doing this.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform