|
From: Howard C. <hy...@hi...> - 2006-12-28 07:49:14
|
Not content to leave well enough alone, here's yet another approach. It's far uglier, and requires NT/2000/XP (I.e., no Win95/98/ME). This code assumes that the target program has been linked with an MSVC CRT DLL. If it can find one of these DLLs attached to the target, then it will find the raise() entry point in the DLL, and use that to send signals to the target. One advantage of this approach is that it will work even if the target program doesn't use a Console. The obvious disadvantage is that it's pretty invasive. If there's no MSVCRT, then it does nothing. Food for thought. It works, but I'm not sure it was worth the effort. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc OpenLDAP Core Team http://www.openldap.org/project/ |