private static SafeLibraryHandle NullifyInvalidHandle(SafeLibraryHandle handle) { return(handle.IsInvalid ? null : handle); }
public static IntPtr LoadProcedure(SafeLibraryHandle handle, string functionName) { return(dlsym(handle, functionName)); }
private static extern IntPtr dlsym(SafeLibraryHandle handle, string symbol);
private static extern IntPtr GetProcAddress(SafeLibraryHandle moduleHandle, string procname);