| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 594 人关注过本帖
标题:根据窗口句柄得到进程ID
只看楼主 加入收藏
easyppt
Rank: 6Rank: 6
等 级:侠之大者
威 望:1
帖 子:239
专家分:451
注 册:2021-11-24
结帖率:100%
收藏
 问题点数:0 回复次数:0 
根据窗口句柄得到进程ID
问题解决,内容修正:

cCaption='F:\vfprunK.exe'
Declare Integer FindWindow In win32api String cClass,String cCaption
Declare Long GetWindowThreadProcessId In WIN32API Long,Long @lpdwProcessId
handle = FindWindow(0,cCaption)

dhProcess = 0
GetWindowThreadProcessId(handle,@dhProcess)



[此贴子已经被作者于2022-5-21 10:44编辑过]

搜索更多相关主题的帖子: String 进程 窗口句柄 FindWindow Long 
2022-05-21 10:24
快速回复:根据窗口句柄得到进程ID
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014343 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved