Loads a .NET Framework library from the common language runtime (CLR) represented by an ICLRRuntimeInfo interface.
This method supersedes the LoadLibraryShim function.
[in] LPCWSTR pwzDllName,
[out, retval] HMODULE *phndModule);
[in] The name of the assembly to be loaded.
[out] A handle to the loaded assembly.
This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.
The method completed successfully.
pwzDllName or phndModule is null.
Not enough memory is available to handle the request.
This method only loads DLLs included in the .NET Framework redistributable package. It can not load user-generated assemblies.