System.Runtime.InteropServices

January 13, 2025 ยท View on GitHub

 namespace System.Runtime.InteropServices {
+    public static class NativeLibrary {
+        public static void Free(IntPtr handle);
+        public static IntPtr GetExport(IntPtr handle, string name);
+        public static IntPtr Load(string libraryPath);
+        public static IntPtr Load(string libraryName, Assembly assembly, Nullable<DllImportSearchPath> searchPath);
+        public static bool TryGetExport(IntPtr handle, string name, out IntPtr address);
+        public static bool TryLoad(string libraryPath, out IntPtr handle);
+        public static bool TryLoad(string libraryName, Assembly assembly, Nullable<DllImportSearchPath> searchPath, out IntPtr handle);
+    }
 }