System.Diagnostics.Process.EnterDebugMode C# (CSharp) Method

EnterDebugMode() public static method

Puts a Process component in state to interact with operating system processes that run in a special mode by enabling the native property SeDebugPrivilege on the current thread.
public static EnterDebugMode ( ) : void
return void
        public static void EnterDebugMode()
        {
            SetPrivilege(Interop.Advapi32.SeDebugPrivilege, (int)Interop.Advapi32.SEPrivileges.SE_PRIVILEGE_ENABLED);
        }

Usage Example

Esempio n. 1
0
 public void EnterLeaveDebugMode()
 {
     Process.EnterDebugMode();
     Process.LeaveDebugMode();
 }