_CorExeMain Function
Initializes the common language runtime (CLR), locates the managed entry point in the executable assembly's CLR header, and begins execution.
__int32 STDMETHODCALLTYPE _CorExeMain ();
Remarks
This function is called by the loader in processes created from managed executable assemblies. For DLL assemblies, the loader calls the _CorDllMain function instead.
The operating system loader calls this method regardless of the entry point specified in the image file.
In Windows 98, Windows ME, Windows NT, and Windows 2000, the _CorExeMain function is called indirectly through a fixup in the operating system loader. In all other versions of Windows, it is called directly by the operating system loader.
For additional information, see the Remarks section in the _CorValidateImage topic.
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
Change History
Date |
History |
Reason |
---|---|---|
July 2009 |
Revised introduction and Remarks section. |
Content bug fix. |