Search Results for

    Class NativeLibrary

    Inheritance
    object
    NativeLibrary
    NativeLibrary<T>
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: RedLoader
    Assembly: RedLoader.dll
    Syntax
    public class NativeLibrary

    Constructors

    NativeLibrary(IntPtr)

    Declaration
    public NativeLibrary(IntPtr ptr)
    Parameters
    Type Name Description
    IntPtr ptr

    Fields

    Ptr

    Declaration
    public readonly IntPtr Ptr
    Field Value
    Type Description
    IntPtr

    Methods

    AgnosticGetProcAddress(IntPtr, string)

    Declaration
    public static IntPtr AgnosticGetProcAddress(IntPtr hModule, string lpProcName)
    Parameters
    Type Name Description
    IntPtr hModule
    string lpProcName
    Returns
    Type Description
    IntPtr

    AgnosticLoadLibrary(string)

    Declaration
    public static IntPtr AgnosticLoadLibrary(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    IntPtr

    GetExport(IntPtr, string)

    Declaration
    public static IntPtr GetExport(IntPtr nativeLib, string name)
    Parameters
    Type Name Description
    IntPtr nativeLib
    string name
    Returns
    Type Description
    IntPtr

    GetExport(string)

    Declaration
    public IntPtr GetExport(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    IntPtr

    GetExport(Type, string)

    Declaration
    public Delegate GetExport(Type type, string name)
    Parameters
    Type Name Description
    Type type
    string name
    Returns
    Type Description
    Delegate

    GetExport<T>(string)

    Declaration
    public T GetExport<T>(string name) where T : Delegate
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetExport<T>(string, out T)

    Declaration
    public void GetExport<T>(string name, out T output) where T : Delegate
    Parameters
    Type Name Description
    string name
    T output
    Type Parameters
    Name Description
    T

    Load(string)

    Declaration
    public static NativeLibrary Load(string filepath)
    Parameters
    Type Name Description
    string filepath
    Returns
    Type Description
    NativeLibrary

    LoadLib(string)

    Declaration
    public static IntPtr LoadLib(string filepath)
    Parameters
    Type Name Description
    string filepath
    Returns
    Type Description
    IntPtr

    Load<T>(string)

    Declaration
    public static NativeLibrary<T> Load<T>(string filepath)
    Parameters
    Type Name Description
    string filepath
    Returns
    Type Description
    NativeLibrary<T>
    Type Parameters
    Name Description
    T

    ReflectiveLoad<T>(string)

    Declaration
    public static T ReflectiveLoad<T>(string filepath)
    Parameters
    Type Name Description
    string filepath
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    dlopen(string, int)

    Declaration
    protected static extern IntPtr dlopen(string filename, int flags)
    Parameters
    Type Name Description
    string filename
    int flags
    Returns
    Type Description
    IntPtr

    dlsym(IntPtr, string)

    Declaration
    protected static extern IntPtr dlsym(IntPtr handle, string symbol)
    Parameters
    Type Name Description
    IntPtr handle
    string symbol
    Returns
    Type Description
    IntPtr