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:
00459872
Views:
34
This only works in Win9X not NT/2000. See KB Article Q161133.

What you are essentially doing is telling the OS to act like the screen saver is running. It is built into 9X to disregard the reboot/menu keys if this is the case, not NT/2000.

IAC, this function only works with the "reboot" keys. You can't define your own set of input to ignore.

>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
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform