public Functions() { var processModule = Process.GetCurrentProcess().MainModule; if (processModule != null) { YellFunction = Marshal.GetDelegateForFunctionPointer( processModule.BaseAddress + YellFunctionOffset, typeof(YellDelegate)) as YellDelegate; } }
public Functions() { YellFunction = Marshal.GetDelegateForFunctionPointer( Process.GetCurrentProcess().MainModule.BaseAddress + YELL_FUNCTION_OFFSET, typeof(YellDelegate)) as YellDelegate; }