GenCodeHook, Version 1.5a

Download: codehook_1.5a.zip (35.608 Bytes, vom 09.08.2006 09:45:06)

Dateien

Name   Original   Gepackt   Datum / Uhrzeit
README.txt   8.365   3.375   09.08.2006 08:43:08
README.de.txt   8.568   3.690   09.08.2006 08:43:08
GenCodeHook.pas   8.652   3.041   04.07.2006 14:34:18
CodeLen.pas   73.928   15.547   09.08.2006 08:40:58
CodeMem.pas   3.908   1.511   01.01.2006 15:23:56
CodeMemOpt.pas   8.345   2.796   01.01.2006 15:23:56
CHANGES.txt   1.474   740   09.08.2006 08:43:08
Sample/   <dir>   <dir>   05.06.2006 11:59:52
Sample/FlashOnIO.dpr   605   327   01.01.2006 15:23:56
Sample/fmain.pas   8.140   2.024   01.01.2006 15:23:56
Sample/fmain.dfm   2.732   802   09.11.2005 13:19:50

Informationen

GenCodeHook.pas (CodeLen.pas, CodeMem.pas, CodeMemOpt.pas)

Delphi unit containing functions to do a generic code hook by replacing the
code location to be patched by a jump to the new location. Additionally, a
new code fragment is created that allows to call the old function. See the
included README.txt for more information and how to use it.

Version 1.5a - Always find the most current version at
http://flocke.vssd.de/prog/code/pascal/codehook/

Copyright (C) 2005, 2006 Volker Siebert <flocke@vssd.de>
All rights reserved.

License: M.I.T. (see source resp. the included file "README.txt")

Änderungen

2006-08-08: Version 1.3c

  • Small fix in "CodeLen.pas" (Delphi 5 only).

2006-01-01: Version 1.5

  • Some small changes to avoid warnings under Delphi 2006.

2005-10-23: Version 1.4

  • Almost complete rewrite of CodeLen.pas with the new functions "AnalyzeCpuInstructionSequence", "LengthOfCpuInstructionSequence", and "CopyCpuInstructionSequence".
  • Modified "CreateGenericCodeHook" to use two different branch types instead of a pc-relative displacement.
  • Removed the flag "Is16Bit" - did never work for 16-bit code.
  • Still no support for Windows 95/98/Me system area ($80000000-$FFFFFFFF).

Version 1.3 (non-public)

  • Removed from WebSite because of several problems regarding relocation of relative displacements, and with Windows 9x/Me and global hooks.
  • Added "AnalyzeCpuInstruction" for a thorough analysis of the instruction, including referenced code and data memory.

2005-09-16: Version 1.2

  • First public version (added sample application).
  • Enhanced "PatchMemory" by first overwriting the first byte with $CC.
  • Added some AMD specific instructions and 3DNow to "CodeLen.pas".

2005-09-15: Version 1.1

  • Added module "CodeMem.pas" for extensible code memory allocation.
  • Wrote optimized code memory manager "CodeMemOpt.pas".
  • Enhanced "PatchMemory" by "FlushInstructionCache".
  • Added function "IsJumpInstruction" to "CodeLen.pas".

2005-09-15: Version 1.0

  • Initial version, derived from the "PrintToFile" project.
Flocke's Garage
Valid HTML 4.01 Transitional Valid CSS!
(C) 2005-2018 Volker Siebert.
Creative Commons-LizenzvertragDer gesamte Inhalt dieser Webseite steht unter einer Creative Commons-Lizenz (sofern nicht anders angegeben).