Attempts to shut down all loaded runtimes gracefully and then terminates the process. Supersedes the CorExitProcess function.
HRESULT ExitProcess ( [in] INT32 iExitCode);
[in] The exit code for the process.
This method never returns, so its return value is undefined.
Platforms: See System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 4