Inheritance: IDisposable
コード例 #1
0
ファイル: describe_Patch.cs プロジェクト: sgraf812/BananaHook
 void before_each()
 {
     buffer = Marshal.AllocHGlobal(4);
     replaceWith = new byte[] { 0x37, 0x13, 0, 0 };
     Marshal.WriteInt32(buffer, 0);
     memory = new InProcessMemory();
     patch = new Patch(memory, buffer, replaceWith);
 }
コード例 #2
0
ファイル: PatchingHook.cs プロジェクト: sgraf812/BananaHook
 public PatchingHook(IMemory memory, IntPtr targetAddress, byte[] redirection)
 {
     Patch = new Patch(memory, targetAddress, redirection);
 }