Kernel32DebugActiveProcess Method
Enables a debugger to attach to an active process and debug it.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)]
public static bool DebugActiveProcess(
uint processId
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function DebugActiveProcess (
processId As UInteger
) As Boolean
Dim processId As UInteger
Dim returnValue As Boolean
returnValue = Kernel32.DebugActiveProcess(processId)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true, SetLastError = true)]
static bool DebugActiveProcess(
unsigned int processId
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)>]
static member DebugActiveProcess :
processId : uint32 -> bool
No code example is currently available or this language may not be supported.
- processId UInt32
-
The identifier for the process to be debugged.
The debugger is granted debugging access to the process as if it created the process with the DEBUG_ONLY_THIS_PROCESS flag.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.