Beispiel #1
0
 public ApiPatcherX86(ProcessMemoryBlockAllocator processMemoryBlockAllocator, bool is64, ulong funcAddress, ulong moduleAddress, ulong moduleEndAddress)
 {
     this.processMemoryBlockAllocator = processMemoryBlockAllocator ?? throw new ArgumentNullException(nameof(processMemoryBlockAllocator));
     this.is64             = is64;
     this.funcAddress      = funcAddress;
     this.moduleAddress    = moduleAddress;
     this.moduleEndAddress = moduleEndAddress;
     codeReader            = new CodeReaderImpl();
 }
Beispiel #2
0
 public DbgNativeFunctionHookContextImpl(DbgProcess process)
 {
     Process = process ?? throw new ArgumentNullException(nameof(process));
     processMemoryBlockAllocator = new ProcessMemoryBlockAllocator(process);
     functionProvider            = new DbgHookedNativeFunctionProviderImpl(process, processMemoryBlockAllocator);
 }