请问,如何结束外部程序?
请问在VB中SHELL是执行外部程序,那结束外部程序的命令是什么啊 ?谢谢!
Public Function Closedexe(Ret As String) As Boolean
Dim WinWnd As Long
'搜寻该窗口的句柄
WinWnd = FindWindow(VbNullString, Ret)
If WinWnd <> 0 Then
SendMessage WinWnd, WM_Close, 0&, 0&
End If
Closedexe = True
End Function
[此贴子已经被作者于2007-4-17 10:10:35编辑过]