This documentation is archived and is not being maintained.

CoInitializeEE Function

Ensures that the common language runtime execution engine is loaded into a process. This function is deprecated in the .NET Framework version 4. Use the ICLRRuntimeHost::Start method instead.

HRESULT CoInitializeEE (
   [in] DWORD fFlags


[in] One of the COINITIEE enumeration constants.

This method returns standard COM error codes as defined in Winerror.h, and the values in the following table.

Return code



The execution engine was loaded successfully.


The execution engine is already loaded.


The execution engine could not be loaded.

This method loads the execution engine if it has not been previously loaded.

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0