🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7123

Re: How to write a TSR in C ?

#7123
From: Edward John Kalenda
Date: Tue, 18 Jun 1991 05:05
20 lines
1352 bytes
>Does anyone have experience in writing a TSR utility in C ? 
>If yes, would you help me by telling me how, giving me a sample, or
>directing me to a book.  Thanks in advance.
>---Susie Chu

If you're using MSC 6.0, there is an example called ALARM.C in the
QuickHelp database. Type QH ALARM.C to see what it does. A word of
caution though: They made a SERIOUS mistake in the sample program
where they call _dos_free() with the segment number of the PSP. If
you do this your program memory space will be freed. What they meant
to do was free the environment memory block but blew it. I've used
their example (leaving out the call to free the PSP) and it worked
OK.

Feel free to email me with more detailed questions if you do get
involved with this. I'll take a stab at answers as time permits. (I'm
a semi-independant consultant/contractor and get busy at times.)

Ed
ekalenda@cup.portal.com
Technical Details
Message-ID: <43420@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!uunet!fernwood!portal!cup.portal.com!ekalenda
References: <1991Jun15.231057.27928@news.arc.nasa.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!uunet!fernwood!portal!cup.portal.com!ekalenda
From: ekalenda@cup.portal.com (Edward John Kalenda)
Newsgroups: comp.os.msdos.programmer
Subject: Re: How to write a TSR in C ?
Message-ID: <43420@cup.portal.com>
Date: 18 Jun 91 05:05:50 GMT
References: <1991Jun15.231057.27928@news.arc.nasa.gov>
Organization: The Portal System (TM)
Lines: 20