-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Description
The GetCLRRuntimeHost export on the coreclr binary is a way to get at the COM interface hosting API that is no longer supported in .NET 5+. We should get rid of this API and simplify the internal initialization logic by removing the COM API style. Since it is no longer supported and we have no test coverage assets it is sitting there waiting to get broken.
runtime/src/coreclr/vm/corhost.cpp
Lines 861 to 868 in acb4c46
| extern "C" | |
| DLLEXPORT | |
| HRESULT GetCLRRuntimeHost(REFIID riid, IUnknown **ppUnk) | |
| { | |
| WRAPPER_NO_CONTRACT; | |
| return CorHost2::CreateObject(riid, (void**)ppUnk); | |
| } |
The new API is officially documented with guidance and a sample can be found here.