This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ttyfier (was: Re: Looking for the 'stdout' of a Windows application)
Andy Koppe wrote:
> But the DLL injection makes me wonder: is it possible to override
> existing functions such as WriteConsole or ReadConsole?
You'd need to inject a DLL that hotpatched the IAT live in memory, which is
certainly possible, but a bit hacky. (I don't know whether the LD_PRELOAD
mechanism would get invoked when spawning a win32 process but it would
probably be nice to use if it did.)
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple