Debugging Tools for Windows

TerminateCurrentProcess

The TerminateCurrentProcess method attempts to terminate the current process.

HRESULT
  IDebugClient2::TerminateCurrentProcess(
    );

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

TerminateCurrentProcess is available in IDebugClient2 and later versions.

Comments

Only live user-mode process are terminated by this method. For other targets, the target is detached from the debugger engine without terminating.

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, TerminateProcesses, AbandonCurrentProcess, DetachCurrentProcess, .kill (Kill Process)

Build machine: CAPEBUILD