14 return LoadByName(libraryName,
new QCallAssembly(ref assembly2), searchPath.HasValue, (uint)searchPath.GetValueOrDefault(), throwOnError);
21 internal static extern IntPtr LoadByName(
string libraryName,
QCallAssembly callingAssembly,
bool hasDllImportSearchPathFlag, uint dllImportSearchPathFlag,
bool throwOnError);
31 if (libraryPath ==
null)
40 if (libraryPath ==
null)
50 if (libraryName ==
null)
67 if (libraryName ==
null)
120 if (assembly ==
null)
124 if (resolver ==
null)
bool IsRuntimeImplemented()
static void SetDllImportResolver(Assembly assembly, DllImportResolver resolver)
static IntPtr LoadLibraryCallbackStub(string libraryName, Assembly assembly, bool hasDllImportSearchPathFlags, uint dllImportSearchPathFlags)
static IntPtr GetExport(IntPtr handle, string name)
static IntPtr Load(string libraryPath)
static void Free(IntPtr handle)
static IntPtr LoadFromPath(string libraryName, bool throwOnError)
static ConditionalWeakTable< Assembly, DllImportResolver > s_nativeDllResolveMap
static bool TryLoad(string libraryPath, out IntPtr handle)
static IntPtr GetSymbol(IntPtr handle, string symbolName, bool throwOnError)
static bool TryGetExport(IntPtr handle, string name, out IntPtr address)
static bool TryLoad(string libraryName, Assembly assembly, DllImportSearchPath? searchPath, out IntPtr handle)
static IntPtr LoadLibraryByName(string libraryName, Assembly assembly, DllImportSearchPath? searchPath, bool throwOnError)
static IntPtr Load(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)
static void FreeLib(IntPtr handle)
static IntPtr LoadByName(string libraryName, QCallAssembly callingAssembly, bool hasDllImportSearchPathFlag, uint dllImportSearchPathFlag, bool throwOnError)
static string Argument_MustBeRuntimeAssembly
static string InvalidOperation_CannotRegisterSecondResolver
static int CompareExchange(ref int location1, int value, int comparand)
delegate IntPtr DllImportResolver(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)
static readonly IntPtr Zero