ICLRRuntimeInfo Interface

Provides methods that return information about a specific common language runtime (CLR), including version, directory, and load status. This interface also provides runtime-specific functionality without initializing the runtime. It includes the runtime-relative LoadLibrary method, the runtime module-specific GetProcAddress method, and runtime-provided interfaces through the GetInterface method.

Methods

Method

Description

ICLRRuntimeInfo::BindAsLegacyV2Runtime Method

Binds this runtime for all legacy CLR version 2 activation policy decisions.

ICLRRuntimeInfo::GetDefaultStartupFlags Method

Gets the CLR startup flags and host configuration file.

ICLRRuntimeInfo::GetInterface Method

Loads the CLR into the current process and returns runtime interface pointers, such as ICLRRuntimeHost, ICLRStrongName and IMetaDataDispenser. This method supersedes all the CorBindTo* functions.

ICLRRuntimeInfo::GetProcAddress Method

Gets the address of a specified function that was exported from the CLR associated with this interface. This method supersedes the GetRealProcAddress method.

ICLRRuntimeInfo::GetRuntimeDirectory Method

Gets the installation directory of the CLR associated with this interface. This method supersedes the GetCORSystemDirectory method.

ICLRRuntimeInfo::GetVersionString Method

Gets common language runtime (CLR) version information associated with a given ICLRRuntimeInfo interface. This method supersedes the GetRequestedRuntimeInfo and GetRequestedRuntimeVersion methods.

ICLRRuntimeInfo::IsLoadable Method

Indicates whether the runtime associated with this interface can be loaded into the current process, taking into account other runtimes that might already be loaded into the process.

ICLRRuntimeInfo::IsLoaded Method

Indicates whether the CLR associated with the ICLRRuntimeInfo interface is loaded into a process.

ICLRRuntimeInfo::IsStarted Method

Indicates whether the CLR that is associated with the ICLRRuntimeInfo interface has been started.

ICLRRuntimeInfo::LoadErrorString Method

Translates an HRESULT value into an appropriate error message for the specified culture. This method supersedes the LoadStringRC and LoadStringRCEx methods.

ICLRRuntimeInfo::LoadLibrary Method

Loads a library from the framework directory of the CLR represented by an ICLRRuntimeInfo interface. This method supersedes the LoadLibraryShim method.

ICLRRuntimeInfo::SetDefaultStartupFlags Method

Sets the CLR startup flags and host configuration file.

Requirements

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4

See Also

Other Resources

Hosting Interfaces

Hosting (Unmanaged API Reference)