Share via


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

Parameters

  • pszProcName
    [in] The name of the exported function.

  • ppProc
    [out] The address of the exported function.

Return Value

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.

Remarks

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

Requirements

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4

See Also

Reference

ICLRRuntimeInfo Interface

Other Resources

Hosting Interfaces

Hosting (Unmanaged API Reference)