[DllImport("Kernel32.dll", SetLastError = true, ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool CheckRemoteDebuggerPresent(SafeProcessHandle hProcess, [MarshalAs(UnmanagedType.Bool)]ref bool isDebuggerPresent);
Declare Function CheckRemoteDebuggerPresent Lib "kernel32.dll" _
(ByVal hProcess As Long, ByVal fResult As Boolean) As Boolean
None.
Do you know one? Please contribute it!
Checks for RemoteDebugger on the 'hProcess'.
Please add some!
Public Class Form1
Declare Function CheckRemoteDebuggerPresent Lib "kernel32.dll" _
(ByVal hProcess As Long, ByVal fResult As Boolean) As Boolean
Dim bool As Boolean
Dim proc As Process = Process.GetCurrentProcess()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Debug.Print(CStr(CheckRemoteDebuggerPresent(proc.Handle, bool)))
End Sub
End Class