按类名开关咯
类名是:
PP11FrameClass
找到句柄后再结束进程就行了~
API声明你就自己去查啦~下面代码
Dim hProessID As Long, hProessHand As Long, lExitCode As Long,hwin as long
hwin = findwindow("PP11FrameClass",vbnullstring)
GetWindowThreadProcessId hwin, hProessID
hProessHand = OpenProcess(PROCESS_TERMINATE, True, hProessID) '获取进程句柄
TerminateProcess hProessHand, lExitCode '关闭进程