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.

Jim


-------------------------------------------------------
This SF.net 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!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to