src/AntiDebugging/AntiDebugging/AntiDebug.cs
/// <summary>
/// Checks whether a process is being debugged.
/// </summary>
/// <remarks>
/// The "remote" in CheckRemoteDebuggerPresent does not imply that the debugger
/// necessarily resides on a different computer; instead, it indicates that the 
/// debugger resides in a separate and parallel process.
/// </remarks>
Checks whether a process is being debugged.
Checks whether a process is being debugged .
public static bool CheckRemoteDebugger()
        {
            var isDebuggerPresent = false;
            var bApiRet = CheckRemoteDebuggerPresent(System.Diagnostics.Process.GetCurrentProcess().SafeHandle, ref isDebuggerPresent);
            return bApiRet && isDebuggerPresent;
        }
public static bool CheckRemoteDebugger ( ) { var isDebuggerPresent = false ; var bApiRet = CheckRemoteDebuggerPresent ( System . Diagnostics . Process . GetCurrentProcess ( ) . SafeHandle , ref isDebuggerPresent ) ; return bApiRet && isDebuggerPresent ; }
Checks whether a process is being debugged.
Checks whether a process is being debugged .
remarks
The "remote" in CheckRemoteDebuggerPresent does not imply that the debugger
necessarily resides on a different computer; instead, it indicates that the
debugger resides in a separate and parallel process.
The " remote " in CheckRemoteDebuggerPresent does not imply that the debugger necessarily resides on a different computer ; instead it indicates that the debugger resides in a separate and parallel process .