Create a window prompt in C language, a window in C Language
Open Vs2012 [my account is 2012]
/*
X is useless...
If you do not change the value of 2013 or 2015, devC ++ and the original vc6.0 are also supported.
If the compiling environment encounters problems, you can search online to solve the problem. The most important thing is to believe that you can solve it.
I encountered a situation where PDB cannot be loaded.
Solution: http://jingyan.baidu.com/article/90bc8fc87fbafff653640ca6.html
DEVC ++]
*/
2. Create a project
III,
Click "Empty Project" in the next step:
Complete
In the project list, right-click the source file and choose add> new item.
Code Section:
Main. c: code:
# Include <Windows. h> int main () {MessageBoxA (0, "Your machine will restart in 5 minutes. "," Prompt ", MB_ OK); return 0; // here ctrl + L is to delete a row. Well, I don't want to say anything, because I don't want to change the default shortcut key. // Http://jingyan.baidu.com/article/9158e0006e10d8a254122826.html to see this URL .}
// I didn't want to change the key because I pressed F5... I changed it to F6. [Laugh and cry] [Laugh and cry]
Of course, this is a simple tip, and there is no practical effect.
/**
Of course, you can also have
For example, add this line: rononce-p // command to shut down within 15 seconds.
That is, the system ("rononce-p"); this is terrible. It means that the cmd command can be executed in the "", so what is executed in the cmd, can be put in this and then executed. This is terrible.
*/
However, the result is not good. We need to go to our directory every time and double-click it to execute it.
Double-click to execute.
This is not what we want. What we want is to throw a prompt to ask us when executing a system program or program. This requires an injection tool. Dllinject.exe
Select the program to be injected, and click our dynamic library file. Then there will be a prompt.
Of course, if the injection has been injected again, it may be ineffective. So this time we change the program
Select vs and click inject:
Find the dll file we just produced here.
Click Open.
Then confirm
A confirmation prompt will pop up.
This is a 64-bit system, and it is not easy to insert some software. It may be easier to use another injection tool.