ok someone tell me if there is anything wrong with this program flow (this is all theory)
You run your program and when windows shuts down , it writes a command in the runonce part of the registry to run it again next time windows is started.
The next time windows is started, the key starts your program and windows automatically deletes the reg key.
Then when the program closes at the end of that windows session, it writes a new runonce command.
The kicker of this is if anyone searches the registry during the windows session, they won't find any reg entries.
Why would someone want to do this? Well all evil intentions aside, it could be pretty useful for a "netnanny" program or something similar as a 2nd way of running your program on startup, to help prevent defeating of it by a novice kid wanting to see porn.
If you register your program as a service, there would basically be no way of preventing it from running every time windows starts(until windows crashes some day, preventing the reg entry)
Anyone think of any reason why this wouldn't work?![]()





, it could be pretty useful for a "netnanny" program or something similar as a 2nd way of running your program on startup, to help prevent defeating of it by a novice kid wanting to see porn.
(until windows crashes some day, preventing the reg entry)
Reply With Quote