> 2) When I go to uninstall my own patches, see if SysGetTrapAddress is no
> longer pointing to me, in which case I just don't unpatch myself (seems
> similar in effect to your library solution, I think.) No extra heap used,
> but does leave my patch installed until a reset occurs.

(remember to store the oldProc pointer in a feature (ie, FtrGet) and not in
a global)


> 3) I patch SysGetTrapAddress and SysSetTrapAddress myself  to monitor
> things until I'm done. While active, any requests for my patched traps
> return the old unpatched address(es). This means that new patches will
> be ignored until I'm through. When I uninstall myself, I glue
> the calling chain back together (somehow).

unless someone else has the same idea and also patches SysGetTrapAddress,
etc, as they're doing their patching...  then you're right back to the
original problem.



Reply via email to