Application killed when window service killed


I have written a window XP service. My windows XP service launches an mfc window application. I am using ShellExecute API to launch mfc window app from service at service startup. When I kill/stop my service from task manager (TM->ProcessTab->RightClick->EndProcess) my window application also getting killed. I want that even if my service got killed/stopped, my mfc window application should not get killed. Is it possible?

Thanks a lot in Adv.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!