Mangeshd wrote:
"i can add exe entry to registry...so sure that my application will be start at bootup..
but i need my application should run forever even if application is closed from task manager...i need the way to detect and handle this...to restart it automatically...
if i start another application to monitor my 1st application and if both application are terminated then?????????????????
how can i start my main applcation.exe???????"
PLEASE edit your post, instead of posting fake answers.
yes, you can use the registry to start your app on startup, but not to restart it.
I told you the only option. There is no way to stop someone from killing both processes. You can make each process search for and start the other, if you want to start war with your users, but you can't make it 100% the case that a user can't kill your processes, you can just make it harder for them. Once your two processes are dead, there is nothing you can do.