in reply to Auto-Restarting Windows Services

Why poll instead of using Win32::Process and WaitForSingleObject on a process handle or this is a service which runs inside svchost.exe?

Replies are listed 'Best First'.
Re^2: Auto-Restarting Windows Services
by temporal (Pilgrim) on Apr 04, 2012 at 15:24 UTC

    This particular machine is XP, which I believe runs task scheduler inside svchost.exe

    If it were Vista or 7 task scheduler does have a separate process which I could (and should!) do what you're suggesting.

    (someone more knowledgeable correct me if I'm wrong here)