0

in windows server 2003. Does it assume that if it hasn't returned an error code, it must be running? or is there some kind of start code?

Thanks, P

1 Answers1

1

When it launches the process the scheduler receives a handle (reference) to that process which it can use to monitor it, pause, kill, etc.

When that handle is signalled it knows that the process has died for some reason and can then retrieve the final exit code.

devstuff
  • 206
  • 1
  • 5
  • Sorry, typo! Question should read "How does WIndows Scheduled Task detect that the scheduled application has NOT started?" –  Jul 02 '10 at 10:22
  • I'm not sure exactly which method the Windows team used, but they probably check the process list for a process using the same executable. What is the exact problem you're trying to solve? – devstuff Jul 03 '10 at 12:52