列出所有进程,你看看改改就可以用了<br>uses TLHelp32;<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> ListBox.Items.Add(StrPas(lppe.szExeFile));//列出所有进程。<br> found := Process32Next(Hand,lppe);<br> end;<br> showmessage(inttostr(count));<br>end;