Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果进程正在运行,我正在制作一个 Visual Basic 控制台应用程序以将 DLL 注入 exe 进程这里的问题是如何使控制台应用程序检查所需的进程是否正在运行
该类Process提供了允许您获取正在运行的进程列表的方法。例如:
Process
If Process.GetProcessesByName("notepad").Length <> 0 Then ' Notepad is running End If