LoadLibraryShim Function
Loads a specified version of a DLL that is included in the .NET Framework redistributable package.
This function has been deprecated in the .NET Framework 4. Use the ICLRRuntimeInfo::LoadLibrary method instead.
HRESULT LoadLibraryShim (
[in] LPCWSTR szDllName,
[in] LPCWSTR szVersion,
LPVOID pvReserved,
[out] HMODULE *phModDll
);
This method returns standard Component Object Model (COM) error codes, as defined in WinError.h, in addition to the following values.
|
Return code |
Description |
|---|---|
|
S_OK |
The method completed successfully. |
|
CLR_E_SHIM_RUNTIMELOAD |
Loading szDllName requires loading the common language runtime (CLR), and the necessary version of the CLR cannot be loaded. |
This function is used to load DLLs that are included in the .NET Framework redistributable package. It does not load user-generated DLLs.
Note
|
|---|
|
Beginning with the .NET Framework version 2.0, loading Fusion.dll causes the CLR to be loaded. This is because the functions in Fusion.dll are now wrappers whose implementations are provided by the runtime. |
Platforms: See .NET Framework System Requirements.
Header: MSCorEE.h
.NET Framework Versions: 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0
Note