This method supersedes all the CorBindTo* functions in the .NET Framework 1.1 and 2.0 Hosting Global Static Functions section.
HRESULT GetInterface( [in] REFCLSID rclsid, [in] REFIID riid, [out, iid_is(riid), retval] LPVOID *ppUnk);
This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.
The method completed successfully.
ppUnk is null.
Not enough memory is available to handle the request.
A different runtime was already bound to the legacy CLR version 2 activation policy.
This method causes the CLR to be loaded but not initialized.
The following table shows the supported combinations for rclsid and riid.
Platforms: See .NET Framework System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: 4