Beispiel #1
0
    public static IntPtr GetProcAddress(IntPtr library, string function)
    {
        var ret = IntPtr.Zero;

        ret = Common.OSTest.IsWindows()
            ? Windows.DLSym(library, function)
            : Common.OSTest.IsRunningOnMac() ? OSX.DLSym(library, function) : Linux.DLSym(library, function);

        return(ret);
    }