Process.EnterDebugMode 方法

定义

通过启用当前线程的本机属性 Process,将 SeDebugPrivilege 组件置于与以特殊模式运行的操作系统进程交互的状态。

C#
public static void EnterDebugMode ();

注解

某些操作系统进程在特殊模式下运行。 除非已 EnterDebugMode 调用 组件,否则无法尝试读取 的属性或附加到这些进程。 不再需要访问以特殊模式运行的这些进程时调用 LeaveDebugMode

适用于

产品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

另请参阅