Best way to read characters from a 16-bit DOS app in NTVDM?

Started by box, October 07, 2010, 07:11:24 PM

Previous topic - Next topic

box

I want to write a 32-bit windows app that can read the text displayed by an old DOS game - should I be hooking into standard output somehow, or do I need to find the video memory somewhere in the ntvdm process and read that, or something else?

any suggestions appreciated

vozzie

Hy,

If it's standard output you want to read. I've tried the attached CreateProcessAndRedirectOutput procedure with a 16 bit app. First it didn't work, but using CMD as middle process it does,...

cmd /c the16bitapp

Another way would be

cmd /c the16bitapp >> temp.txt

Greetings

box

Thanks for the reply, I couldn't get that to work and ended up just using ReadProcessMemory.