So, In a couple of weeks is my brothers birthday, and we always pull a prank on each other on our birthdays. This year, I have something special in mind. I have an incredibly simple code here (below) that I want to send him, but I don't want him to be able to close it without my help (so like if he can't close it through conventional means, and it will close in response to a password) Any help would be greatly appreciated thanks!
not with that program. he would have to leave it running for hours. and you can actually make it so you could only remove the program with a rescue disk. not recommending that (its malware status) just proving maeriden wrong
My entire family have computers and none of them are smart, but when they run into programs that lock up their computer or just continually run without stopping they just turn off the computer and reboot it. Your prank is pointless as I'm sure your brother is smart enough to just reboot the computer.
can you make a program that can call/open another c++.exe on close? because that could be fun if you say type "random numbers" to close, then 2 seconds later another opens with the same command. might slow him down on clicking the x.
Well yeah he could click the close button, but some libraries actually let you ignore the close button being pressed. So task manager to kill the process or a hard reset to shut off and reboot the computer. There is no way to lock the computer out like he wants for this alleged prank.
if he add the program to the startup folder the program will appear on the windows startup until input the right password and delete the program from startup folder
Well you can figure how to keep it "open" which I'm sure would probably be classified as making a virus if it is impossible to close without using a special password or unplugging the machine/power off. But here is how I would do the infinite loop which probably isn't the best since it is a non-standard library but gets the job done.