OS is Windows 98 SE, I checked through the registry for anything that contained rundll32, and found alot of stuff, but I am not shure which one runs with shutdown. I realy dont want to resort to adtional software like any sceduler or any of that, It would be nice if I could find a registry key responsible for shutdown.

I know that in delphi you can intercept shutdowns. I will be useing either C++ or batch.