From: jma on
Hi all,

I am not very experienced with windows programming. What I want to do
is setup a fault injection framework for white box and black box
testing. But let's keep it simple and consider the white box first.
What the framework has to do, is according to a failure pattern, when
a system resource is requested (mostly memory or disk) a fault is
returned and I then monitor the exception handling. On NIX this could
be done with ptrace and intercepting system calls. I can also fork in
order to let the rest of the process run. However, none of these is
available on windows. What I came up with was to use either
Microsoft's detours and instrument my own system functions, hook on my
own some dll and/or use the debugging tools. However, I am not sure
what would be the state of the art for this and what would be more
portable in the future. If someone has experience with this I would
appreciate the help.

TIA!

-- dimitris