(Oct 12, 2014 06:29 AM)+Haze Wrote: I think that code would only work if you were to close it by clicking the exit button on the form and not by closing it using the task manager.
Try it. It also works if you kill the application via taskmanager.
(Oct 12, 2014 06:29 AM)+Haze Wrote: I think that code would only work if you were to close it by clicking the exit button on the form and not by closing it using the task manager.
It does work, but only in Windows 8, and I think 8.1. I think this is a bug that they don't care about.
Oct 12, 2014 02:43 PM (This post was last modified: Oct 12, 2014 02:45 PM by SIM-1456245.)
I have coded the same thing a long time ago, it's called Twin-Process persistence. It is theoretically good, but in practice not the best thing. Haven't seen the code, but if you are looping through the processes(getting by name) then the positive thing is that it doesn't require any kind of elevation, but if you are using strange API's, no profit, just use another method.