34 references to NativeLibrary
crossgen2 (2)
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (2)
108
nint libHandle =
NativeLibrary
.Load(jitInterfaceLibrary, System.Reflection.Assembly.GetExecutingAssembly(), DllImportSearchPath.AssemblyDirectory);
112
var getCpuFeatures = (delegate* unmanaged<int>)
NativeLibrary
.GetExport(libHandle, "JitGetProcessorFeatures");
ilc (2)
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (2)
108
nint libHandle =
NativeLibrary
.Load(jitInterfaceLibrary, System.Reflection.Assembly.GetExecutingAssembly(), DllImportSearchPath.AssemblyDirectory);
112
var getCpuFeatures = (delegate* unmanaged<int>)
NativeLibrary
.GetExport(libHandle, "JitGetProcessorFeatures");
ILCompiler.ReadyToRun (4)
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (4)
60
NativeLibrary
.SetDllImportResolver(typeof(CorInfoImpl).Assembly, (libName, assembly, searchPath) =>
67
libHandle =
NativeLibrary
.Load(jitPath);
71
libHandle =
NativeLibrary
.Load("clrjit_" + GetTargetSpec(target), assembly, searchPath);
76
libHandle =
NativeLibrary
.Load("jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant(), assembly, searchPath);
ILCompiler.RyuJit (4)
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (4)
60
NativeLibrary
.SetDllImportResolver(typeof(CorInfoImpl).Assembly, (libName, assembly, searchPath) =>
67
libHandle =
NativeLibrary
.Load(jitPath);
71
libHandle =
NativeLibrary
.Load("clrjit_" + GetTargetSpec(target), assembly, searchPath);
76
libHandle =
NativeLibrary
.Load("jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant(), assembly, searchPath);
Microsoft.DotNet.NativeWrapper (1)
Interop.cs (1)
76
if (!
NativeLibrary
.TryLoad(s_hostFxrPath, out var handle))
PresentationCore (3)
MS\Internal\Text\TextInterface\DWriteLoader.cs (3)
35
NativeLibrary
.Free(_dwrite);
53
IntPtr hDWriteLibrary =
NativeLibrary
.Load("dwrite.dll", typeof(DWriteLoader).Assembly, DllImportSearchPath.System32);
57
DWriteCreateFactory = (delegate* unmanaged<int, void*, void*, int>)
NativeLibrary
.GetExport(hDWriteLibrary, "DWriteCreateFactory");
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
130
_moduleHandle =
NativeLibrary
.Load(fileName, Assembly.GetExecutingAssembly(), null);
System.Data.Odbc (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Odbc.cs (2)
28
NativeLibrary
.SetDllImportResolver(Assembly.GetExecutingAssembly(), (libraryName, assembly, searchPath) =>
32
return
NativeLibrary
.Load(GetNativeLibraryName(), assembly, default);
System.DirectoryServices.Protocols (3)
src\runtime\src\libraries\Common\src\Interop\Linux\OpenLdap\Interop.Ldap.cs (3)
84
if (
NativeLibrary
.TryLoad("libldap-2.6.so.0", out IntPtr handle) ||
85
NativeLibrary
.TryLoad("libldap-2.5.so.0", out handle) ||
86
NativeLibrary
.TryLoad("libldap-2.4.so.2", out handle))
System.Net.Quic (5)
System\Net\Quic\Internal\MsQuicApi.cs (5)
110
loaded =
NativeLibrary
.TryLoad(path, typeof(MsQuicApi).Assembly, DllImportSearchPath.LegacyBehavior, out msQuicHandle);
115
loaded =
NativeLibrary
.TryLoad($"{Interop.Libraries.MsQuic}.{s_minMsQuicVersion.Major}", typeof(MsQuicApi).Assembly, null, out msQuicHandle) ||
116
NativeLibrary
.TryLoad(Interop.Libraries.MsQuic, typeof(MsQuicApi).Assembly, null, out msQuicHandle);
130
MsQuicOpenVersion = (delegate* unmanaged[Cdecl]<uint, QUIC_API_TABLE**, int>)
NativeLibrary
.GetExport(msQuicHandle, nameof(MsQuicOpenVersion));
131
MsQuicClose = (delegate* unmanaged[Cdecl]<QUIC_API_TABLE*, void>)
NativeLibrary
.GetExport(msQuicHandle, nameof(MsQuicClose));
System.Private.CoreLib (5)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (3)
305
IntPtr hModule =
NativeLibrary
.LoadLibraryCallbackStub(moduleName, callingAssembly, hasDllImportSearchPath, dllImportSearchPath);
309
NativeLibrary
.LoadLibErrorTracker loadLibErrorTracker = default;
311
hModule =
NativeLibrary
.LoadBySearch(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.cs (1)
91
if (!
NativeLibrary
.TryLoad(library, typeof(object).Assembly, DllImportSearchPath.ApplicationDirectory | DllImportSearchPath.System32, out IntPtr lib) && failOnLoadFailure)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
448
return
NativeLibrary
.Load(unmanagedDllPath);
System.Private.Windows.GdiPlus (1)
Windows\Win32\PInvokeGdiPlus.cs (1)
19
NativeLibrary
.SetDllImportResolver(Assembly.GetExecutingAssembly(), static (_, _, _) =>
System.Runtime.InteropServices (1)
src\runtime\artifacts\obj\System.Runtime.InteropServices\Release\net11.0\System.Runtime.InteropServices.Forwards.cs (1)
121
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.
NativeLibrary
))]