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 version 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.
The method completed successfully.
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.
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.
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0