This is an archive of the site as it was in May 2009. Please go to www.rajeshgoli.com/ for latest content.

TSRs - Description

TSRs Or Terminate and stay Resident programs when execute enter memory; however, unlike regular programs, these programs do not free the memory they took over when they exit. This enables them to do many interesting things that normal DOS programs cannot do. For instance, this enables "task switching" in DOS, which is impossible otherwise. If you are a computer engineering or infromation technology engineering student looking for project ideas (final year or otherwise) to do in DOS, or are simply trying to do academic computing projects that deal with system prohgramming in DOS, it may be worthwhile to explore TSRs.

Writing TSRs, unlike regular academic projects of programs that you may undertake, is an art in itself. These programs need special interest. The ones I have given here have been tested extensively and may be suitable for academic computing projects, computer engineering projects or information technolgoy student mini projects.

Most of the C files over here might require two header files, namely, Rajesh.h and Tsr.h/Tsrs.h. Please download these from the headers section.

Programs - TSRs (5)

1. TSRCalc.c

A TSR Calculator. Well you know Yacc parser generator is not available for DOS , thats why the input syntax is rudimentary , besides I didn't have a clue how parsers work when I wrote this stuff sometime in 2k.

View - Download - Executable - Screen Shot

2. Capson.c

Turns Caps lock on and doesn't let you turn off the caps lock. I havent coded an 'antidote' for this , under DOS the only way to get rid would be to reboot , If u running this in a DOS box (more likely ..) , just close the window , also , if u run this in some other way ( say start->run ) , you may not be able to salvage from the situation ( u will probably be forced to reboot ).

View - Download - Executable - Screen Shot

3. Hwego.c

Is a template of a TSR which pops on hitting ALT-C , All you have to do is change the realfunction() function. Change the realfunction to anything you wish , a calulator , an ascii table or anything , then you have a working TSR. you have to be careful and use functions in tsr.h/tsrs.h for i/o though.

View - Download - Executable - Screen Shot

4. Kbdis.c

Disables Keyboard. Again only effective if u are in 'pure' DOS mode . If you are running from a DOS box , closing it will mean the end of this TSR.

View - Download - Executable - Screen Shot

5. Keylogger.c

Under Construction ....

Probably will never be completed ... I abandoned this project in favour of something else ( I dont remeber actually ) and got engrossed in something else. So If I renew my interest on this project some time in the future , It might be available . Anyway, If u want the incomplete code and design startergy of this , do mail in to me. Ahem .. If i find this stuff somewhere in the junkyard ( ;) is ur hdd clean ? ) of my hdd , i will send it to you.

View - Download - Executable - Screen Shot