15 references to NativeLibrary
PresentationCore (3)
MS\Internal\Text\TextInterface\DWriteLoader.cs (3)
36NativeLibrary.Free(_dwrite); 54IntPtr hDWriteLibrary = NativeLibrary.Load("dwrite.dll", typeof(DWriteLoader).Assembly, DllImportSearchPath.System32); 58DWriteCreateFactory = (delegate* unmanaged<int, void*, void*, int>)NativeLibrary.GetExport(hDWriteLibrary, "DWriteCreateFactory");
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
145_moduleHandle = NativeLibrary.Load(fileName, Assembly.GetExecutingAssembly(), null);
System.Data.Odbc (2)
src\libraries\Common\src\Interop\Unix\Interop.Odbc.cs (2)
28NativeLibrary.SetDllImportResolver(Assembly.GetExecutingAssembly(), (libraryName, assembly, searchPath) => 32return NativeLibrary.Load(GetNativeLibraryName(), assembly, default);
System.Drawing.Common (1)
System\Drawing\Gdiplus.cs (1)
20NativeLibrary.SetDllImportResolver(Assembly.GetExecutingAssembly(), static (_, _, _) =>
System.Net.Quic (5)
System\Net\Quic\Internal\MsQuicApi.cs (5)
93loaded = NativeLibrary.TryLoad(Interop.Libraries.MsQuic, typeof(MsQuicApi).Assembly, DllImportSearchPath.AssemblyDirectory, out msQuicHandle); 98loaded = NativeLibrary.TryLoad($"{Interop.Libraries.MsQuic}.{s_minMsQuicVersion.Major}", typeof(MsQuicApi).Assembly, null, out msQuicHandle) || 99NativeLibrary.TryLoad(Interop.Libraries.MsQuic, typeof(MsQuicApi).Assembly, null, out msQuicHandle); 113MsQuicOpenVersion = (delegate* unmanaged[Cdecl]<uint, QUIC_API_TABLE**, int>)NativeLibrary.GetExport(msQuicHandle, nameof(MsQuicOpenVersion)); 114MsQuicClose = (delegate* unmanaged[Cdecl]<QUIC_API_TABLE*, void>)NativeLibrary.GetExport(msQuicHandle, nameof(MsQuicClose));
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.cs (1)
93if (!NativeLibrary.TryLoad(library, typeof(object).Assembly, DllImportSearchPath.ApplicationDirectory | DllImportSearchPath.System32, out IntPtr lib) && failOnLoadFailure)
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
447return NativeLibrary.Load(unmanagedDllPath);
System.Runtime.InteropServices (1)
artifacts\obj\System.Runtime.InteropServices\Debug\net10.0\System.Runtime.InteropServices.Forwards.cs (1)
116[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.NativeLibrary))]