Partilhar via


CorBindToRuntimeByCfg Function

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
);

Parameters

  • pCfgStream
    [in] A pointer to an IStream object that reads the XML file.
  • reserved
    [in] Reserved for future use. Use 0 (zero) as value.
  • ppv
    [out] A pointer to the address of the returned interface.

Remarks

The format of the XML file is modeled after the standard application configuration file. For more information about XML files, see Configuration File Schema for the .NET Framework.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: MSCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

CorBindToCurrentRuntime Function
CorBindToRuntime Function
CorBindToRuntimeEx Function
CorBindToRuntimeHost Function
ICorRuntimeHost Interface

Other Resources

Hosting Global Static Functions