Пример #1
0
        public Functions()
        {
            var processModule = Process.GetCurrentProcess().MainModule;

            if (processModule != null)
            {
                YellFunction = Marshal.GetDelegateForFunctionPointer(
                    processModule.BaseAddress + YellFunctionOffset,
                    typeof(YellDelegate)) as YellDelegate;
            }
        }
Пример #2
0
 public Functions()
 {
     YellFunction = Marshal.GetDelegateForFunctionPointer(
         Process.GetCurrentProcess().MainModule.BaseAddress + YELL_FUNCTION_OFFSET,
         typeof(YellDelegate)) as YellDelegate;
 }