Experience with CheckRemoteDebuggerPresent()

Discussion in 'Mixed Languages' started by Muerto, Jan 6, 2020.

  1. Muerto

    Muerto MDL Debugger

    Mar 7, 2012
    1,850
    2,069
    60
    #1 Muerto, Jan 6, 2020
    Last edited: Jan 12, 2021
    ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Muerto

    Muerto MDL Debugger

    Mar 7, 2012
    1,850
    2,069
    60
    #2 Muerto, Jan 6, 2020
    Last edited: Jan 12, 2021
    (OP)
    ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Michaela Joy

    Michaela Joy MDL Crazy Lady

    Jul 26, 2012
    4,077
    4,649
    150
    PBOOL is a pointer to a BOOL. Is there a syntax to tell it that the second parameter is a pointer to a BOOL?

    In C#:

    BOOL IsAttached;

    CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, &IsAttached);
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Muerto

    Muerto MDL Debugger

    Mar 7, 2012
    1,850
    2,069
    60
    #4 Muerto, Jan 7, 2020
    Last edited: Jan 12, 2021
    (OP)
    ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...