用vb怎样关闭一个没有窗口的程序?例如internat.exe

zeric 2000-06-20 02:44:00
我想用api,但却不知道如何获取一个没有窗口的程序的句柄
...全文
120 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
rubberlin 2001-02-28
  • 打赏
  • 举报
回复
API函数:enumchildwindow函数能实现上述的功能!

具体你可以自己看看msdn,有什么不懂的,与我rubberlin@etang.com联系!
Truman 2000-06-21
  • 打赏
  • 举报
回复
APi FindWindow()
SendMessage(WM_CLOSE)
Limu 2000-06-20
  • 打赏
  • 举报
回复
Use API function that declare like this(a Delphi Version):
BOOL TerminateProcess(

HANDLE hProcess, // handle to the process
UINT uExitCode // exit code for the process
);
Before you can use this function,you must get the process handle(the first parameter).

7,762

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧