求助 批量获取多个进程PID
Dim sysps As String
sysps = Array("1.exe", "2exe", "3.exe", "4exe",)
Dim hProcess As Long
Dim pid As Long
pid = GetPsPid(sysps)
hProcess = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If hProcess = 0 Then
hProcess = LzOpenProcess(PROCESS_ALL_ACCESS, pid)
End If
Call TerminateProcess1(hProcess, 0)
总是出错,我就是要批量取 多个进程的PID ,在TIMER里循环 取,如果发现这几个进程,我就 结束他,麻烦 高手了,帮我看看