我使用了2种方法1 FindWindow 和 PostMessage
2 FindWindow,GetWindowThreadProcessId,OpenProcess,TerminateProcess但是依然无法关闭,如瑞星,ZoneAlarm Security Suite各位大哥有好的方法介绍一下。

解决方案 »

  1.   

    GetWindowThreadProcessId这个函数在win2000下是不起作用的
      

  2.   

    如果你的桌面当前没有打开瑞星的窗口,FindWindow函数可能会失效。
    应该是采用列举进程列表,得到进程ID,然后提升你的程序的权限,最后,OpenProcess,得到进程句柄,然后调用TerminateProcess。
      

  3.   

    瑞星我不知道,我自己的程序我用Terminate关闭了!
      

  4.   

    打开服务进程句柄,要SE_DEBUG_NAME权限