www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <q4uru498ltbhiqfl8vt877lk0va00pk3ih@4ax.com> |
References: | <C2163734F5AC6346B64F4DD53C7F7A2803155C5A AT rxsprimary DOT accessrxs DOT com> <okjpu495u4a7ad3cupjt10nd4iv53pt2ni AT 4ax DOT com> <q4uru498ltbhiqfl8vt877lk0va00pk3ih AT 4ax DOT com> |
Date: | Fri, 1 May 2009 20:26:31 +0100 |
Message-ID: | <416096c60905011226j27e942bcrf7661fb1693b5df1@mail.gmail.com> |
Subject: | Re: DOS programs under "screen" |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
2009/4/21 Barry Kelly: > Windows implements console mode as a client-server protocol between the > executable (ntvdm.exe for DOS apps) and winsrv.dll (hosted in > csrss.exe), but the protocol isn't easily hookable. I guess one would > have to hijack the console APIs, perhaps by stepping into the > application using debugging APIs and overwriting the DLL imports, but it > would be pretty painful. Hi Barry, have you got any pointers to documentation or reverse engineering attempts for that console protocol? 2009/4/21 Christopher Faylor: > It can be done using the same technique as Console2: > > http://console.sourceforge.net I don't understand how. ReadConsoleOutput() on the hidden console only gives you the cooked output in terms of character cell contents and attributes, whereas the raw output as it came from the console app would need to be sent to the pty to be displayed by the likes of screen. As far as I can see, recreating the raw output from the cooked one isn't possible in general. This article has more on this: http://homepages.tesco.net/~J.deBoynePollard/FGA/capture-console-win32.html Andy -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |