The method of disabling Ctrl-alt-delete under Windows XP is simpler, because the function of the Ctrl-alt-delete key is to invoke Task Manager, to disable the Task Manager directly, and to ctrl-alt-delete the function of the device. The equivalent is also disabled. The simple implementation of this method is to open the C:\windows\system32\taskmgr.exe Task Manager program in binary stream form before the task manager can be opened manually. The code is as follows:
Copy Code code as follows:
Open "C:\WINDOWS\system32\taskmgr.exe" for Binary as #1
This approach is feasible on XP, but it is not valid on Vista and WIN7. My workaround is to end the Task Manager program Taskmgr.exe with the Taskkill command. The code is as follows:
Copy Code code as follows:
Shell ("cmd/c taskkill/f/im taskmgr.exe"), vbhide
In VB program implementation, it is best to put the above statements into the timer event, every once in a while, you can implement the purpose of disabling Task Manager. The code is as follows:
Private Sub Timer1_timer ()
Shell ("cmd/c taskkill/f/im taskmgr.exe"), Vbhide end
Sub
The above mentioned is the entire content of this article, I hope you can enjoy.