Delphi 我不懂,但下面的C++代码可以获得进程的信息: HANDLE hSnapshot= CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
PROCESSENTRY32 pe; if ( !Process32First(hSnapshot,&pe) )
{
TRACE(" Error: bSucc!=Process32First(hSnapshot,&pe)\n");
return;
} do
{
} while (bSucc==Process32Next(hSnapshot,&pe) );pe存放的是进程信息,其中pe.th32ProcessID为.......呵呵,你要的
PROCESSENTRY32 pe; if ( !Process32First(hSnapshot,&pe) )
{
TRACE(" Error: bSucc!=Process32First(hSnapshot,&pe)\n");
return;
} do
{
} while (bSucc==Process32Next(hSnapshot,&pe) );pe存放的是进程信息,其中pe.th32ProcessID为.......呵呵,你要的
但我要的是WIN2K下的,你写的只能在WIN98写!是利用了TOOLHELP32
在WIN2K下考虑到安全性,并不支持TOOLHELP32。只能用PSAPI.DLL中提供的
几个函数!(不知有没其他办法?)