Delen via


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: See .NET Framework System Requirements.

Header: MSCorEE.idl

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Other Resources

Hosting Global Static Functions