Deprecated CLR Hosting Functions
This section describes the unmanaged global static functions that earlier versions of the hosting API used.
With the exception of the infrastructure functions (
_Cor* functions), which are used only by the .NET Framework, these functions have been deprecated in the .NET Framework 4.
Deprecated. Creates an instance of the specified managed type.
Deprecated. Loads the common language runtime (CLR) into a process by using version information stored in an XML file.
Deprecated. Enables unmanaged hosts to load the CLR into a process.
Deprecated. Loads the CLR into a process by using version information that is read from an XML file.
Deprecated. Enables unmanaged hosts to load the CLR into a process, and allows you to set flags to specify the behavior of the CLR.
Deprecated. Enables hosts to load a specified version of the CLR into a process.
Deprecated. Gets the required CLR version number.
Deprecated. Returns the installation directory of the CLR that is loaded into the process.
Deprecated. Gets the address of the specified function that is exported from the latest installed version of the CLR.
Deprecated. Gets version and directory information about the CLR requested by an application.
CLR version functions
The functions in this section return a CLR version; they do not activate the CLR.
Deprecated. Returns the version number of the CLR that is running in the current process.
Deprecated. Gets the CLR version information of the specified file, using the specified buffer.
Deprecated. Gets the version number of the CLR requested by the specified application. If that version is not installed, gets the most recent version that is installed before the requested version.
Deprecated. Gets the appropriate CLR version information for the class with the specified CLSID.
Deprecated. Gets the version number of the CLR that is associated with the specified process handle.
Deprecated. Allows the host to determine which version of the CLR will be used within the process before explicitly initializing the CLR.
Deprecated. Makes a call to the function that has the specified name and parameters in the specified library.
Deprecated. Unloads a COM assembly from the process.
Deprecated. Shuts down the current unmanaged process.
Deprecated. Starts the application at the specified network path, using the specified manifests and other application data.
Deprecated. Marks the currently executing thread-pool thread for the execution of managed code. Starting with the .NET Framework version 2.0, this function has no effect. It is not required, and can be removed from your code.
Obsolete. The CLR cannot be unloaded from a process.
FExecuteInAppDomainCallback Function Pointer
Deprecated. Points to a function that the CLR calls to execute managed code.
FLockClrVersionCallback Function Pointer
Deprecated. Points to a function that the CLR calls to notify the host that initialization has either started or completed.
Deprecated. Gets a pointer to an interface that allows the CLR to manage identities.
Deprecated. Loads a specified version of a .NET Framework DLL.
Deprecated. Translates an HRESULT value into an error message by using the default culture of the current thread.
Deprecated. Translates an HRESULT value to an appropriate error message for the specified culture.
LPOVERLAPPED_COMPLETION_ROUTINE Function Pointer
Deprecated. Points to a function that notifies the host when an overlapped (that is, asynchronous) I/O to a device has completed.
LPTHREAD_START_ROUTINE Function Pointer
Deprecated. Points to a function that notifies the host that a thread has started to execute.
Deprecated. Executes the specified command.
WAITORTIMERCALLBACK Function Pointer
Deprecated. Points to a function that notifies the host that a wait handle has either been signaled or timed out.
The functions in this section are for use by the .NET Framework only.
Initializes the CLR, locates the managed entry point in the DLL assembly's CLR header, and begins execution.
Initializes the CLR, locates the managed entry point in the executable assembly's CLR header, and begins execution.
Executes the entry point in the specified memory-mapped code. This function is called by the operating system loader.
Notifies the loader when the managed module images are unloaded.
Validates managed module images, and notifies the operating system loader after they have been loaded.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.