根据窗口句柄得到进程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编辑过]