public DbgHookedNativeFunctionImpl(ProcessMemoryBlock memBlock, ulong newFunctionAddress, ulong originalFunctionAddress) { this.memBlock = memBlock ?? throw new ArgumentNullException(nameof(memBlock)); NewCodeAddress = memBlock.CurrentAddress; NewFunctionAddress = newFunctionAddress; OriginalFunctionAddress = originalFunctionAddress; }
public PatchAPIResult(string errorMessage) { ErrorMessage = errorMessage ?? throw new ArgumentNullException(nameof(errorMessage)); Block = null; NewFunctionAddress = 0; SimplePatch = default; }
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; }