This method supersedes all the CorBindTo* functions in the Deprecated CLR Hosting Functions section.
[in] The CLSID interface for the coclass.
[in] The IID of the requested rclsid interface.
[out] A pointer to the queried interface.
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: Available since 4