Freigeben über


ICorDebugController::Terminate Method

Terminates the process with the specified exit code.

Note

This method is a wrapper for the Win32 TerminateProcess function. Thus, Terminate uses the exit code in the same way that the Win32 TerminateProcess function uses it.

HRESULT Terminate (
    [in] UINT exitCode
);

Parameters

  • exitCode
    [in] A numeric value that is the exit code. The valid numeric values are defined in Winbase.h.

Remarks

If the process is stopped when Terminate is called, the process should be continued by using the ICorDebugController::Continue Method method so that the debugger receives confirmation of the termination via the ICorDebugManagedCallback::ExitProcess Method or ICorDebugManagedCallback::ExitAppDomain Method callback.

Note

This method is not implemented by an application domain. That is, it is not implemented at the AppDomain level.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

ICorDebugController Interface