VB implementation disables the Task Manager method _vb

Source: Internet
Author: User
Tags delete key

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.