killotherprogram
所属分类:Windows编程
开发工具:Visual Basic
文件大小:3KB
下载次数:24
上传日期:2009-09-04 03:40:28
上 传 者:
caikexin2
说明: 用程序终止另一个进程用程序终止另一个进程用程序终止另一个进程
(Of procedures used to terminate another process, another process, termination of the proceedings of procedures to terminate another process)
文件列表:
197t (0, 2007-07-05)
197t\ASP300使用注意.url (168, 2006-03-21)
197t\KILLAPP.BAS (1221, 1997-08-04)
197t\KILLAPP.FRM (1255, 1997-08-04)
197t\KILLAPP.VBP (664, 1998-01-17)
197t\KILLAPP.VBW (84, 1998-08-24)
197t\拉基源码.txt (1482, 2007-06-08)
197t\系统说明.txt (67, 2004-01-12)
http://www.vb-helper.com/HowTo/killapp.zip
Purpose
Kill another application given its name.
Method
Use the EnumWindows API function to examine each running window. Use
GetWindowText to determine each window's title. When it finds the target
window, the programn uses SendMessage to make the target close itself.
Note: Esben Maal (esm@erfa.dk) discovered thaht this did not work on his
system, but it works when he uses PostMessage instead of SendMessage.
Declare Function PostMessage Lib "user32" Alias "PostMessageA" _
(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long,
_ByVal lParam As Long) As Long
Disclaimer
This example program is provided "as is" with no warranty of any kind. It is
intended for demonstration purposes only. In particular, it does not error
handling. You can use the example in any form, but please mention
www.vb-helper.com.
近期下载者:
相关文件:
收藏者: