Log in

View Full Version : Hooking serialport


Rattle
April 3rd, 2002, 14:38
Hi,
I'm trying to monitor/change data sent/receiver to a serialport by hooking kernel32.dll. I have created a hook for CreateFileA and ReadFile/WriteFile and it's working great on my own VC++ written software. But when trying to hook CreateFileA in software written in VB or Delphi it doesn't work. Looking at the imports with W32Dasm I can see that it uses CreateFileA. Any Tip?

I use the code found at http://www.codeguru.com/dll/apihijack.shtml

/Rattle - a newbie