Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CreateDebuggingInterfaceFromVersion Function

Creates an ICorDebug object based on the specified version information.

HRESULT CreateDebuggingInterfaceFromVersion (
    [in]  int      iDebuggerVersion, 
    [in]  LPCWSTR  szDebuggeeVersion, 
    [out] IUnknown **ppCordb


[in] The version of ICorDebug that is expected by the debugger. See the CorDebugInterfaceVersion enumeration for valid values.


[in] The common language runtime version associated with the application or process to be debugged. See the GetVersionFromProcess or GetRequestedRuntimeVersion method for information on retrieving this value.


[out] The location that receives a pointer to the ICorDebug object.

This method returns standard COM error codes as defined in the WinError.h file in addition to the following values.

Return code



The method completed successfully.


szDebuggeeVersion or ppCordb is null, or the version string is incorrect.

The szDebuggeeVersion argument maps to the corresponding version of MSCorDbi.dll.

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.idl

Library: MSCorEE.dll

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

Community Additions

© 2015 Microsoft