我用ShellExecute(Handle, 'open', 'IExplore.EXE', 'www.baidu.com', nil, SW_SHOWNORMAL)打开了网页,现在想用delphi程序将打开的网页关闭,如何写?

解决方案 »

  1.   

    1 CreateToolhelp32Snapshot  //创建进程快照2  ContinueLoop:=Process32First //循环查找进程3 FPid:=FProcessEntry32.th32ProcessID; // 获取 PID 4 OpenProcess()   //打开进程5 TerminateProcess() //杀死进程
      

  2.   

    shellexcuteex,createprocess返回进程句柄
      

  3.   

    哪位兄弟直接说一下我应该怎么关闭用ShellExecute打开的网页