by ebred (3 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(5 Votes)
This code will work for win 2000 and XP. It hooks the systems keyboard and runs a callback function to determine if the "delete" key has been hit and disables the delete (system wide not just application wide). This program could also be easily resigned as a keylogger if you feel the need to do so, also it may be used to disable any number of keys you wish. In the LowLevelKetBoardProc just use debug.print xpInfo.vkCode and you will see the value of the key and you could set that value to de disabled (as VK_DELETE is currently.) When I get a chance I will also try to make it for the other MS OS's
***************Warning********************
Since this program uses callbacks DO NOT HIT THE END BUTTON IN VB'S IDE .....YOU WILL CRASH.
Download KeyBoardHook (2 KB)