uses tlhelp32<br>....<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>var lppe: TProcessEntry32;<br> found : boolean;<br> Hand : THandle;<br>begin<br> Hand := CreateToolhelp32Snapshot(TH32CS_SNAPALL,0);<br> found := Process32First(Hand,lppe);<br> while found do<br> begin<br> ListBox1.Items.Add(StrPas(lppe.szExeFile));<br> found := Process32Next(Hand,lppe);<br> end;<br>end;<br><br>然后设置time监控,隔一定时间扫描一次,发现新的进程<br>或kill了的进程!