From: "Timo Bingmann" 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 Precedence: bulk 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