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.
如何在 c# 代码中获取内核进程的进程句柄和 id?当我尝试遍历某些进程时,我得到 win32exception “访问被拒绝”,这是否意味着这些是内核进程?
我想做的简单查看内存中的所有内核进程并使用 MiniDumpWriteDump 转储它。
你只需要这样:
Process prc = Process.GetProcessesByName("System").FirstOrDefault();
您将获得 PID,但您将无法获得此进程句柄。