IDebugClient4::AbandonCurrentProcess method (dbgeng.h)

The AbandonCurrentProcess method removes the current process from the debugger engine's process list without detaching or terminating the process.

Syntax

HRESULT AbandonCurrentProcess();

Return value

This method may also return error values. See Return Values for more details.

Return code Description
S_OK
The method was successful.

Remarks

This method is only available for live user-mode debugging. The target must be running on Windows XP or a later version of Windows.

Windows will continue to consider this process as being debugged, and so the process will remain suspended. This method allows the debugger to be shut down and a new debugger to attach to the process. See Live User-Mode Targets and Re-attaching to the Target Application for more information.

Requirements

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)

See also

.abandon (Abandon Process)

AttachProcess

CreateProcessAndAttach2

DetachCurrentProcess

IDebugClient2

IDebugClient3

IDebugClient4

IDebugClient5

TerminateCurrentProcess