我在Winxp中用下面代码关闭 explorer.exe后,explorer.exe会自动从启。
TerminateProcess lProcess, lExitCode
我觉得是 lExitCode参数不对,请教高手。
手机打字慢,就打这么多了。

解决方案 »

  1.   

    explorer.exe 非正常关闭,会自动重启。除非更换别的程序为 shell 外壳。
      

  2.   

    Shell "cmd.exe /c taskkill /im explorer.exe /f", vbHide
      

  3.   

    lExitCode设置为1,winlogon就不会自动重启explorer
      

  4.   

    谢谢你的回复,但是Guest用户下不能用
      

  5.   

    h = GetShellWindow
    GetWindowThreadProcessId h, h
    h = OpenProcess(1, 0, h)
    TerminateProcess h, 1
    即可结束explorer.exe,不会自动重启