Carl Spitzer wrote:
On Wed, 2005-12-28 at 21:13 -0500, Jim Lemon wrote:

I programmed something like this and it might do what you want. The following constants and function allow a program to place up to 16 two-byte characters in the keyboard buffer. When the program exits (without reading any of the characters, of course) DOS will execute the command as though it had been typed.

Why the limit of 16??

Because that's the size of the keyboard buffer. Overwrite adjacent bytes and the old "unpredictable behavior" gets you.


This email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
Freedos-user mailing list

Reply via email to