yahoobb2004-09-19 18:54:42
发现有一个程序不停的扫描注册表。如果在
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
下面没有名为"FFIX32",值为"C:\WINDOWS\system32\Dractx.exe"的字键,就添加一个进去。

我试图找到是哪一个程序在进行这个操作,现在可以监视到程序对注册表的修改,但不知道如何得到程序的句柄。请高手指点。最好能有代码。另外,有哪位知道那个dractx.exe是什么程序吗?请赐教。先谢了。

private void button1_Click(object sender, System.EventArgs e)
{
try
{
RegistryKey temp=Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Run",true);
temp.DeleteValue("ffix32");
const int num=15;

while(true)
{
int num2=temp.ValueCount;
if(num!=num2)
{
label1.Text="ok";
break;
}
}
}
catch(Exception e1)
{
label1.Text=e1.ToString();
}
}