The method of disabling Ctrl-Alt-Delete under Windows XP is relatively simple, because the function of the Ctrl-Alt-Delete key combination is to call the Task Manager. If the Task Manager is directly disabled, the function of Ctrl-Alt-Delete will not be available. , which is equivalent to being disabled. The simple implementation of this method is to first open the C:/windows/system32/taskmgr.exe task manager program in binary stream form, so that the task manager cannot be opened normally later manually. The code is as follows:
Copy the code code as follows:
Open "C:/WINDOWS/system32/taskmgr.exe" For Binary As #1
This method is feasible on XP, but is invalid on VISTA and WIN7. My solution is to use the taskkill command to end the task manager program tasksmgr.exe. The code is as follows:
Copy the code as follows: Shell ("cmd /c taskkill /f /im taskmgr.exe"), vbHide
If implemented in a VB program, it is best to put the above statement in the Timer event and execute it every once in a while to achieve the purpose of disabling the task manager. The code is as follows:
Private Sub Timer1_timer()Shell ("cmd /c taskkill /f /im taskmgr.exe"), vbHideEnd Sub
The above is the entire content of this article, I hope you all like it.