This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]