I am creating an application that monitors a select group of programs and restarts them if required. With this group of programs if something has 'gone wrong' (i.e. they need restarted) the program will appear in task manager as 'not responding'.
Is there any way to iterate around non-responding programs in windows using an api? Or alternatively given I have the process id or handle to a window can I query whether it is responsive or not?