ICLRRuntimeInfo::GetProcAddress Method

Gets the address of a specified function that was exported from the common language runtime (CLR) associated with this interface.

This method supersedes the GetRealProcAddress function.

HRESULT GetProcAddress(
     [in]  LPCSTR pszProcName,
     [out, retval] LPVOID *ppProc);

pszProcName

[in] The name of the exported function.

ppProc

[out] The address of the exported function.

This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.

HRESULT

Description

S_OK

The method completed successfully.

E_POINTER

pszProcName or ppProc is null.

CLR_E_SHIM_RUNTIMEEXPORT

The specified function is not an exported function.

This method causes the CLR to be loaded but not initialized.

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4.5, 4

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft