* * *

Author Topic: Mimic a TSR in WinExec call???  (Read 905 times)

ozznixon

  • New member
  • *
  • Posts: 47
    • http://www.modernpascal.com/
Mimic a TSR in WinExec call???
« on: May 12, 2018, 11:59:44 pm »
All,

   I do not know who to ask – however, as low-level as your knowledge is, maybe you know how to do this and could help me.

   IN the 80’s and 90’s – (BBS era) … when running a BBS and Fidonet mailer, it was common place to use a FOSSIL instead of writing your own UART code.

   In the 2000’s … Microsoft dropped the NTVDM, so running a 16bit TSR is impossible (or is it?)…

   I have read, where a C++ guy has came up with a way to spawn an EXE, does a little PIPE control to make sure everything is running without error … however, he is mimic’ing a FOSSIL: https://en.wikipedia.org/wiki/FOSSIL

Original dev notes: http://www.dcllabs.net/docs/x00ref.txt (page 6 starts the things to trap – it is all sent to 1 Interrupt)

   The C++ programming in the background runs QuickBBS or RA for example – he is trapping all of the INT 14 calls for the FOSSIL and returns the mimic’d information. I want to do this in Delphi, however, no idea how to do this part. I was hoping you could send me sample in Delphi (please, begging haha – I have tried and tried but, no success).

   What I want to build as a free-open source piece of code in Delphi and C, and show people how to run the old BBS program in a background shell – and in the foreground interact with Winsock. Thus, I could telnet to 127.0.0.1 port 1234 – the FOSSIL will send to the BBS program “Ring Indicator”, and when the BBS reads the comport buffer, it will get “RING”. It will send “ATA”, which the program will use as "Accept(socket_handle)” and return “CONNECT 19200”. Etc etc.

   I am just trying to find someone who can show me how to mimic INT 14 (and I receive all function queries) from the spawned EXE(s).

   Can anyone help???

Thank you kindly!!
Ozz



---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6230
Re: Mimic a TSR in WinExec call???
« Reply #1 on: May 13, 2018, 05:23:31 am »
   The C++ programming in the background runs QuickBBS or RA for example – he is trapping all of the INT 14 calls for the FOSSIL and returns the mimic’d information. I want to do this in Delphi, however, no idea how to do this part. I was hoping you could send me sample in Delphi (please, begging haha – I have tried and tried but, no success).

This is the Lazarus forum, not the Delphi forum.
 
In Lazarus one would use TProcess.

dbannon

  • Sr. Member
  • ****
  • Posts: 257
Re: Mimic a TSR in WinExec call???
« Reply #2 on: May 13, 2018, 06:20:45 am »
I wonder if the original post was more about advertising a commercial product (see signature line at the bottom) than seeking an answer to a question that became irrelevant a long time ago. TSR was great technology on single threaded systems. Why would you bother today ?
Davo
Lazarus 1.8, Linux (and reluctantly Win10, OSX)

Thaddy

  • Hero Member
  • *****
  • Posts: 6099
Re: Mimic a TSR in WinExec call???
« Reply #3 on: May 13, 2018, 09:43:41 am »
I wonder if the original post was more about advertising a commercial product (see signature line at the bottom) than seeking an answer to a question that became irrelevant a long time ago. TSR was great technology on single threaded systems. Why would you bother today ?
Davo
If it is Ozz Nixon himself he merely mixed up naming FPC/Delphi. What he means is Object Pascal.
I also still play with TSR's (In TP and PowerBasic 3) in a virtual machine and/or DOSBOX (although I have a second series IBM - still working, I hope - but gathering dust.). It is just fun to see your old code run.....
My answer would be to use DOSBOX and dosboxwrapper (included with FPC) to run and interface with such old software.
He should be capable enough by now (  8-) ) to know how to do that.
I might not give the answer that you want me to.. Peter Green 1969

dbannon

  • Sr. Member
  • ****
  • Posts: 257
Re: Mimic a TSR in WinExec call???
« Reply #4 on: May 13, 2018, 11:13:51 am »
Ah, dosbox ?  I use dosbox on my linux laptop to run Warcraft II - it far more stable than it ever was on DOS6 or Windows95. I don't save my position anymore.

Hmm, perhaps I'm getting a little off topic......

 ;)
Lazarus 1.8, Linux (and reluctantly Win10, OSX)

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus