LoadLibraryShim Function

Loads a specified version of a DLL that is included in the .NET Framework redistributable package.

HRESULT LoadLibraryShim (
        [in]  LPCWSTR  szDllName,
        [in]  LPCWSTR  szVersion,
              LPVOID   pvReserved,
        [out] HMODULE *phModDll
);

Parameters

  • szDllName
    [in] A zero-terminated string that represents the name of the DLL to be loaded from the .NET Framework library.
  • szVersion
    [in] A zero-terminated string that represents the version of the DLL to be loaded. If szVersion is null, the latest version of the specified DLL is loaded.
  • pvReserved
    Reserved for future use.
  • phModDll
    [out] A pointer to the handle of the module.

Remarks

This function is used to load DLLs that are included in the .NET Framework redistributable package. It does not load user-generated DLLs.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Other Resources

Hosting Global Static Functions