Delen via


CoInitializeEE Function

Ensures that the common language runtime execution engine is loaded into a process.

HRESULT CoInitializeEE (
   [in] DWORD fFlags
);

Parameters

  • fFlags
    [in] One of the COINITIEE enumeration constants.

Return Value

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

Return code

Description

S_OK

The execution engine was loaded successfully.

S_FALSE

The execution engine is already loaded.

E_FAIL

The execution engine could not be loaded.

Remarks

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

Requirements

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

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

See Also

Other Resources

Metadata Global Static Functions