delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | "Joel Saunders" <jbs30000 AT aol DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: DJGPP TSR |
Date: | Tue, 22 Jan 2002 11:59:36 +0000 (UTC) |
Organization: | Mailgate.ORG Server - http://www.Mailgate.ORG |
Lines: | 27 |
Message-ID: | <cd3afb153e87e9ada0e83c1b83d88f40.62691@mygate.mailgate.org> |
References: | <8f6731259c2274809aa909fd0438bd8e DOT 62691 AT mygate DOT mailgate DOT org> <2110-Tue22Jan2002095129+0200-eliz AT is DOT elta DOT co DOT il> |
NNTP-Posting-Host: | spider-ntc-tc052.proxy.aol.com |
X-Trace: | news.mailgate.org 1011699439 10412 198.81.17.42 (Tue Jan 22 12:59:36 2002) |
X-Complaints-To: | abuse AT mailgate DOT org |
NNTP-Posting-Date: | Tue, 22 Jan 2002 11:59:36 +0000 (UTC) |
Injector-Info: | news.mailgate.org; posting-host=spider-ntc-tc052.proxy.aol.com; posting-account=62691; posting-date=1011699439 |
User-Agent: | Mailgate Web Server |
X-URL: | http://mygate.mailgate.org/mynews/comp/comp.os.msdos.djgpp/cd3afb153e87e9ada0e83c1b83d88f40.62691%40mygate.mailgate.org |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Thanks for letting me know about the Simtel.net program, I'll check it out. And yes, I have also thought about calling command.com instead. I might try that if I can't make a TSR. Also, I know that the way I hooked the mouse is right, because in another program I'm working on, I did something similar and it works fine. Although since this example is for a TSR, I should have thought about locking the memory, but I don't have any experiance with doing things like that. And finally, on this: > > r.x.ax = 0x3100; > > r.x.dx = 4; > > __dpmi_int(0x21, &r); > This is an absolute no-no: you can't call the DOS TSR funcion from > protected mode. The DPMI spec disallows that. The only reason I did it, is because on: http://www.delorie.com/djgpp/doc/dpmi/api/310c01.html It says "If the objective is only to provide resident services to real mode programs, the client should use the DPMI translation service Int 31H Function 0300H to invoke DOS's Int 21H Function 31H directly." Anyway, thanks for your help, I appreciate it. -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |