Hi all,
Here's a little code how wich can help you making a minivirus
Code:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
// Turns the monitor off
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
// Higher number is longer monitor off.
Sleep(500);
// Turns monitor on
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1);
return 0;
}
You can add such things as changing wallpaper during that the monitor is off. Or open webpages