Monitoring processes to see if they've crashed in vb6
问题 I've got a program that tends to crash quite often while I'm asleep and I need to keep it running. So I thought I might writeup a vb6 application that monitors the process list, if something disappears it will relaunch it. Anyone know of an easy way? 回答1: You could use EnumProcesses to list every process in the system at the moment you're running you could use this declaration to use it Public Declare Function EnumProcesses Lib "psapi.dll" ( _ ByRef idProcess As Long, ByVal cb As Long, _