Debugging Tools for Windows

AbandonCurrentProcess

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

HRESULT
  IDebugClient2::AbandonCurrentProcess(
    );

Parameters

None

Return Value

S_OK
The method was successful.

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

Interface Version

AbandonCurrentProcess is available in IDebugClient2 and later versions.

Comments

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

Headers: Defined in dbgeng.h. Include dbgeng.h.

See Also

AttachProcess, CreateProcessAndAttach2, DetachCurrentProcess, TerminateCurrentProcess, .abandon (Abandon Process)

Build machine: CAPEBUILD