Apache Posted November 17, 2008 Posted November 17, 2008 I'm currently updating my VB5 and VB6 Bespoke Application Library to VB.NET 2008 (.NET Framework 3.5) and I've come across a problem. One of my programs originally coded in VB6 used a keyboard hook to help amongst other things, disable the Ctrl + Alt + Delete, Ctrl + Shift + Esc and Alt + F4 commands. They were used in various capacities to restrict user interruption whilst performing critical functions in a network rollover program such as ad-hoc updates, policy changes and server-wide lockdowns. (a key feature of the security program I was writing) Whilst updating I found that the keyboard hooks no longer worked and threw back all kinds of Type Mismatches and Compile Errors. After reading through a few websites including Microsoft MSDN Technical Help I've struck a loss at how to solve the problem. Are Keyboard Hooks no longer supported on XP SP2 and SP3 / Windows Vista (Tried the compile on all three platforms, same problems.) As of now I can make it so that when Ctrl+Alt+Del is pressed, it shows the correct form and the program runs fine but it doesn't disable the C+A+D function and still brings up either the Task Manager or the Control Screen (Platform Dependent) with the program still running in the background. Is there anyway to solve it without decompiling the kernal and brute forcing a patch? Quote
Scorpion Posted November 19, 2008 Posted November 19, 2008 You are correct in windows xp and vista that the Ctrl Alt and delete can no longer be stopped (blame vurises then mircosoft) what i've seen people doing is having the program monitor the process list so if it detects the task manager to automaticly close it so it looks like it didnt work. There might be other ways but havent seen it yet not needed to look. I use Vb 05 but can't remember the code to watch the process list at this time, but to kill is easy kill(PROGRAM.exe) and it does it. Quote
Apache Posted November 19, 2008 Author Posted November 19, 2008 I've read into that a bit, it's fairly simple to set up the process kill but we're running the network on ZenWorks, C+A+D brings up the command screen (Logoff, Change Password, Lock Workstation etc) rather than the task manager. My test machine is running Vista as well (as a prototype image for the network) and that's worse as it brings up a Welcome screen with options on it. I could hack that up with reshack but it might make the system unstable. ResHacking the OS on the test image has led to more than one re-format so far. Vista does not like being altered. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.