Пример #1
0
 public DbgHookedNativeFunctionImpl(ProcessMemoryBlock memBlock, ulong newFunctionAddress, ulong originalFunctionAddress)
 {
     this.memBlock           = memBlock ?? throw new ArgumentNullException(nameof(memBlock));
     NewCodeAddress          = memBlock.CurrentAddress;
     NewFunctionAddress      = newFunctionAddress;
     OriginalFunctionAddress = originalFunctionAddress;
 }
Пример #2
0
 public PatchAPIResult(string errorMessage)
 {
     ErrorMessage       = errorMessage ?? throw new ArgumentNullException(nameof(errorMessage));
     Block              = null;
     NewFunctionAddress = 0;
     SimplePatch        = default;
 }
Пример #3
0
 public PatchAPIResult(ProcessMemoryBlock block, ulong newFunctionAddress, SimpleAPIPatch simplePatch)
 {
     if (simplePatch.Data == null)
     {
         throw new ArgumentException();
     }
     ErrorMessage       = null;
     Block              = block ?? throw new ArgumentNullException(nameof(block));
     NewFunctionAddress = newFunctionAddress;
     SimplePatch        = simplePatch;
 }