With some help from old answers I have managed to get a couple of windows hooks working (thanks to past contributors!) ... but now when I try to access files ... problems!
I tried something REALLY SIMPLE using TFileStream, like so...
outFile := 'c:\test.out';
with TFileStream.Create(transFile, fmCreate or fmShareCompat) do try
... but it crashes the application from which the hook event eminated ... No data written.
So I'm assuming there are some things I have to do to be a little more careful when attempting this stuff.
Now here comes the ugly part... Those with a faint heart, go no further ...
I am using Delphi 3 (because of certain BDE compatibility issues within the hooking app)
Wait, it gets worse!
The app being hooked is a 16-bit app.
I'm not sure if these a contributing factors, but heck if I knew why it was happening I'd just fix it and stop bothering you.