I'm currently in the prosess of writing a program that steps through the memory control block to find all TSR's in memory (the program will eventually be used in a primative virus scanner).
I can find all programs resident in memory but I can't tell which are TSRs and which are programs that are currently operating. Does anybody know of a way of doing this? I'm hoping there is some entry in the PSP that tells this but I don't know which one.
Thanks in advance for any help,
P.s. I'm writing the program in 8086 assembly and C if it makes any difference
April 4th, 2003, 01:45 PM
Correct me if i'm wrong but aren't TSR's a typical DOS thing? Why not create something for current windows versions (NT, 2K, XP, .NET)?
You neglected to mention the OS you are programming on.
April 4th, 2003, 03:01 PM
I'm writing it for DOS.
I'm doing it in DOS for a number of reasons, but mainly because it is still very important to know alot about DOS no matter what OS you are programming for.
Beside I'm doing this for my own education more than anything else, i.e. I'll not be able to write an antivirus program to rival any current commerecial product.