Debugging Tools for Windows

DetachCurrentProcess

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

HRESULT
  IDebugClient2::DetachCurrentProcess(
    );

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

DetachCurrentProcess is available in IDebugClient2 and later versions.

Comments

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

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

See Also

AttachProcess, CreateProcessAndAttach2, DetachProcesses, AbandonCurrentProcess, TerminateCurrentProcess, .detach (Detach from Process)

Build machine: CAPEBUILD