Class NativeLibrary
Inheritance
NativeLibrary
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
Methods
AgnosticGetProcAddress(IntPtr, string)
Declaration
public static IntPtr AgnosticGetProcAddress(IntPtr hModule, string lpProcName)
Parameters
Returns
AgnosticLoadLibrary(string)
Declaration
public static IntPtr AgnosticLoadLibrary(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetExport(IntPtr, string)
Declaration
public static IntPtr GetExport(IntPtr nativeLib, string name)
Parameters
Returns
GetExport(string)
Declaration
public IntPtr GetExport(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetExport(Type, string)
Declaration
public Delegate GetExport(Type type, string name)
Parameters
Returns
GetExport<T>(string)
Declaration
public T GetExport<T>(string name) where T : Delegate
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Type Parameters
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
Load(string)
Declaration
public static NativeLibrary Load(string filepath)
Parameters
Type |
Name |
Description |
string |
filepath |
|
Returns
LoadLib(string)
Declaration
public static IntPtr LoadLib(string filepath)
Parameters
Type |
Name |
Description |
string |
filepath |
|
Returns
Load<T>(string)
Declaration
public static NativeLibrary<T> Load<T>(string filepath)
Parameters
Type |
Name |
Description |
string |
filepath |
|
Returns
Type Parameters
ReflectiveLoad<T>(string)
Declaration
public static T ReflectiveLoad<T>(string filepath)
Parameters
Type |
Name |
Description |
string |
filepath |
|
Returns
Type Parameters
dlopen(string, int)
Declaration
protected static extern IntPtr dlopen(string filename, int flags)
Parameters
Type |
Name |
Description |
string |
filename |
|
int |
flags |
|
Returns
dlsym(IntPtr, string)
Declaration
protected static extern IntPtr dlsym(IntPtr handle, string symbol)
Parameters
Returns