Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit 859351c

Browse files
committed
Expose Marshall.LoadLibrary API
1 parent c30f2bc commit 859351c

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</PropertyGroup>
1010
<ItemGroup>
1111
<Compile Include="System.Runtime.InteropServices.cs" />
12+
<Compile Condition="'$(TargetsNetCoreApp)' == 'true'" Include="System.Runtime.InteropServices.netcoreapp.cs" />
1213
</ItemGroup>
1314
<ItemGroup>
1415
<ProjectReference Include="..\..\System.Reflection\ref\System.Reflection.csproj" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
// ------------------------------------------------------------------------------
5+
// Changes to this file must follow the http://aka.ms/api-review process.
6+
// ------------------------------------------------------------------------------
7+
8+
namespace System.Runtime.InteropServices
9+
{
10+
public static partial class Marshal
11+
{
12+
public static void FreeLibrary(System.IntPtr handle) { }
13+
public static System.IntPtr GetLibraryExport(System.IntPtr handle, string name) { throw null; }
14+
public static System.IntPtr LoadLibrary(string libraryPath) { throw null; }
15+
public static System.IntPtr LoadLibrary(string libraryName, System.Reflection.Assembly assembly, DllImportSearchPath? searchPath) { throw null; }
16+
public static bool TryGetLibraryExport(System.IntPtr handle, string name, out System.IntPtr address) { throw null; }
17+
public static bool TryLoadLibrary(string libraryPath, out System.IntPtr handle) { throw null; }
18+
public static bool TryLoadLibrary(string libraryName, System.Reflection.Assembly assembly, DllImportSearchPath? searchPath, out System.IntPtr handle) { throw null; }
19+
}
20+
}

0 commit comments

Comments
 (0)