I have been playing around with my Error Handler routines and some other code to inject a dll into another process. (In this case a program i wrote to raise an exception).
I have gotten my dll to inject and it gets called via the "SetUnhandledException" but for the life of me I can not figure out how I would let the "Crash program" call a function in my "Dll Error Handler" when my Dll was injected, not compiled as a part of the "Crash program"
The other function I am trying to call in my Dll is when an error is not a "Fatal GPF" that we all see when an app has to close.
and in that case "Non-Fatal" errors are not called via "SetUnhandledException"
So I am wondering, once I inject my Dll, how does the "Crash Program" know what function(s) to call in my dll and when to do it?????
Any ideas?
I have gotten my dll to inject and it gets called via the "SetUnhandledException" but for the life of me I can not figure out how I would let the "Crash program" call a function in my "Dll Error Handler" when my Dll was injected, not compiled as a part of the "Crash program"
The other function I am trying to call in my Dll is when an error is not a "Fatal GPF" that we all see when an app has to close.
and in that case "Non-Fatal" errors are not called via "SetUnhandledException"
So I am wondering, once I inject my Dll, how does the "Crash Program" know what function(s) to call in my dll and when to do it?????
Any ideas?
Comment