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 Interface object based on the specified version information.


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

Parameters

iDebuggerVersion

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

szDebuggeeVersion

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

ppCordb

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

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

Return code Description

S_OK

The method completed successfully.

E_INVALIDARG

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

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

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

Header: MSCorEE.idl

Library: MSCorEE.dll

.NET Framework Version: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft