IDebugClient5::DetachCurrentProcess method

The DetachCurrentProcess method detaches the debugger engine from the current process, resuming all its threads.

Syntax

HRESULT DetachCurrentProcess(

);

Parameters

This method has no parameters.

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

The target must be running on Windows XP or a later versions of Windows.

For more information about creating and attaching to live user-mode targets, see Live User-Mode Targets.

Requirements

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

See Also

.detach (Detach from Process)

AbandonCurrentProcess

AttachProcess

CreateProcessAndAttach2

DetachProcesses

IDebugClient2

IDebugClient3

IDebugClient4

IDebugClient5

TerminateCurrentProcess