DECLAREINTEGER SetKeyboardState IN user32;
STRING @ lpKeyState
[in] Pointer to a 256-byte array that contains keyboard key states.
If the function succeeds, the return value is nonzero.
This is the same table accessed by the GetKeyboardState and GetKeyState functions. Changes made to this table do not affect keyboard input to any other thread.
Because the SetKeyboardState function alters the input state of the calling thread and not the global input state of the system, an application cannot use SetKeyboardState to set the NUM LOCK, CAPS LOCK, or SCROLL LOCK (or the Japanese KANA) indicator lights on the keyboard. These can be set or cleared using SendInput to simulate keystrokes.
I'am trying to block the ctrl+esc keys,is there a way to do this ?
thanks in advance
A.M. | 2005-08-31 16:34:03
Windows NT 4.0 Service Pack 3 and later Windows 2000 Applications can disable ALT+TAB or CTRL+ESC by installing a low-level keyboard hook. A low-level keyboard hook is installed by calling SetWindowsHookEx.
The SetWindowsHookEx requires callback function as a parameter -- can not be achieved in direct VFP code.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.1.55-log), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.