killapp
所属分类:控制台编程
开发工具:Visual Basic
文件大小:2KB
下载次数:16
上传日期:2006-05-09 21:17:17
上 传 者:
19908242
说明: 带进度条的vb下载控件(包含所有控件的源码)
(with the progress of the download vb Control (contains all the source code control))
文件列表:
KILLAPP.BAS (1221, 1997-08-04)
KILLAPP.FRM (1255, 1997-08-04)
KILLAPP.VBP (664, 1998-01-17)
KILLAPP.VBW (84, 1998-08-24)
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.
近期下载者:
相关文件:
收藏者: