Share via


ICLRMetaHost::ExitProcess Method

Attempts to shut down all loaded runtimes gracefully and then terminates the process. Supersedes the CorExitProcess function.

HRESULT ExitProcess (
    [in] INT32 iExitCode);

Parameters

  • iExitCode
    [in] The exit code for the process.

Return Value

This method never returns, so its return value is undefined.

Requirements

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4

See Also

Reference

ICLRMetaHost Interface

Other Resources

Hosting (Unmanaged API Reference)