Beispiel #1
0
        public override IntPtr GetDynamicLibraryProcedureAddress(IntPtr handle, string procName)
        {
            var addr      = LinuxApi.dlsym(handle, procName);
            var lastError = Marshal.GetLastWin32Error();

            if (addr == IntPtr.Zero)
            {
                ThrowHelper.ThrowENetLibraryProcNotFound(procName, lastError);
            }

            return(addr);
        }
Beispiel #2
0
 public override IntPtr GetProcAddress(IntPtr handle, string procName) => LinuxApi.dlsym(handle, procName);