Ejemplo n.º 1
0
        protected IntPtr GetProcAddress(IntPtr hModule, string procedureName)
        {
            if (IsLinux)
            {
                return(LinuxLibLoader.dlsym(hModule, procedureName));
            }

            return(WindowsLibLoader.GetProcAddress(hModule, procedureName));
        }
Ejemplo n.º 2
0
        protected bool FreeLibrary(IntPtr hModule)
        {
            if (IsLinux)
            {
                return(true);
            }

            return(WindowsLibLoader.FreeLibrary(hModule));
        }
Ejemplo n.º 3
0
        protected IntPtr LoadLibrary()
        {
            if (IsLinux)
            {
                return(LinuxLibLoader.dlopen(LinuxDriver, LinuxLibLoader.RTLD_NOW));
            }

            return(WindowsLibLoader.LoadLibrary(WindowsDriver));
        }