cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/15/07:46:42

From: "Timo Bingmann" <timo AT hmtg DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: jumping into linear memory and across programs in protected mode
Date: Fri, 15 May 1998 13:37:41 +0200
Organization: LF.net GmbH, Internet Services, Stuttgart, Germany
Lines: 22
Message-ID: <6jh9c7$2p8$1@news.LF.net>
NNTP-Posting-Host: p1-04.stuttgart.netsurf.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello

I have written two TSR programs needing to communcate with each other.
All program memory is locked.

Is it possible in DPMI to call an other protected mode C function my linear
memory reference?
Jumping across TSR programs shouldn't be a problem.

If this is possible by some far jump function the next problem is to
calculate the linear address of a function.
This should be possible by getting the linear address of the selector which
the program is stored in and adding the offset of the function.
The offset of the function can be got by ---  int offset =
(unsigned)&function;
But I don't know how to get the linear address of the program selector out
of the DPMI server?

Please help



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019