Skip to content

Commit

Permalink
Expose Marshall.LoadLibrary API
Browse files Browse the repository at this point in the history
  • Loading branch information
ericstj committed Dec 12, 2018
1 parent c30f2bc commit 859351c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</PropertyGroup>
<ItemGroup>
<Compile Include="System.Runtime.InteropServices.cs" />
<Compile Condition="'$(TargetsNetCoreApp)' == 'true'" Include="System.Runtime.InteropServices.netcoreapp.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\System.Reflection\ref\System.Reflection.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ------------------------------------------------------------------------------
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------

namespace System.Runtime.InteropServices
{
public static partial class Marshal
{
public static void FreeLibrary(System.IntPtr handle) { }
public static System.IntPtr GetLibraryExport(System.IntPtr handle, string name) { throw null; }
public static System.IntPtr LoadLibrary(string libraryPath) { throw null; }
public static System.IntPtr LoadLibrary(string libraryName, System.Reflection.Assembly assembly, DllImportSearchPath? searchPath) { throw null; }
public static bool TryGetLibraryExport(System.IntPtr handle, string name, out System.IntPtr address) { throw null; }
public static bool TryLoadLibrary(string libraryPath, out System.IntPtr handle) { throw null; }
public static bool TryLoadLibrary(string libraryName, System.Reflection.Assembly assembly, DllImportSearchPath? searchPath, out System.IntPtr handle) { throw null; }
}
}

0 comments on commit 859351c

Please sign in to comment.