Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable Keyboard buttons with Win API
Message
From
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:
00459849
Views:
47
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform