protected IntPtr GetProcAddress(IntPtr hModule, string procedureName) { if (IsLinux) { return(LinuxLibLoader.dlsym(hModule, procedureName)); } return(WindowsLibLoader.GetProcAddress(hModule, procedureName)); }
protected bool FreeLibrary(IntPtr hModule) { if (IsLinux) { return(true); } return(WindowsLibLoader.FreeLibrary(hModule)); }
protected IntPtr LoadLibrary() { if (IsLinux) { return(LinuxLibLoader.dlopen(LinuxDriver, LinuxLibLoader.RTLD_NOW)); } return(WindowsLibLoader.LoadLibrary(WindowsDriver)); }