-
Member
Writing debug dll
Hi!
I would ask for tipps about some win api (win 7 ulti sp1) or anything decent to catch vector 1 interrupt.
The plan is, to inject a dll into a running multi-threaded application, to set up hw breakpoint on that code execution, and to catch the vector 1 event (this last one makes me headache). Unless that, application should run maximal possible speed.
As far as i am digging with google, found these options:
SetUnhandledExceptionFilter(): Handles top-most level exception trap. If application enters into a guarded block (C-style try { } catch { }) anytime, it overwrites previous top-most level handler, so i will catch nothing inside that block.
AddVectoredExceptionHandler(): Sets the callback only inside own context, and i don't know, how to attach handler into a thread from outside. Is that possible at all?
Still searching for something useful stuff, and wanna ask for help in the question, where to search, what to check?
Thank you in any advance
-
If you want to be the first to handle any and all interrupts (software exception, int 3, etc.), then a VEH is what you're after. Of course you'll need to be running in the target process for that.
But I'm not sure that's exactly what you're asking since your post was kind of a mess, lol.
Last edited by Jadd; 04-09-2016 at 01:40 PM.
-
Post Thanks / Like - 1 Thanks
citrot (1 members gave Thanks to Jadd for this useful post)
-
Member
(Edit: msg deleted, thx tipp, it works alread.)
Last edited by citrot; 05-01-2016 at 02:13 PM.