Loads the common language runtime (CLR) into a process by using version information that is read from an XML file.
HRESULT CorBindToRuntimeByCfg ( [in] IStream *pCfgStream, [in] DWORD reserved, [in] DWORD startupFlags, [in] REFCLSID rclsid, [in] REFIID riid, [out] LPVOID FAR* ppv );
[in] A pointer to an IStream object that reads the XML file.
[in] Reserved for future use. Use 0 (zero) as value.
[in] A value of theenumeration that specifies the startup behavior of the CLR.
[in] The CLSID of the coclass that implements either theinterface or the interface. Supported values are CLSID_CorRuntimeHost or CLSID_CLRRuntimeHost.
[in] The IID of either theinterface or the interface. Supported values are IID_ICorRuntimeHost or IID_ICLRRuntimeHost.
[out] A pointer to the address of the returned interface.