Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!hplabs!sdcrdcf!burdvax!bbking!rmarks From: rmarks@KSP.Unisys.COM (richard marks) Newsgroups: comp.sys.ibm.pc Subject: Re: Program Loaded Where? from inside another Message-ID: <41@bbking.KSP.Unisys.COM> Date: 20 Apr 88 18:01:45 GMT References: <39@softart.UUCP> Organization: Unisys/Knowledge Systems Organization, Bluebell, PA Lines: 10 In article <39@softart.UUCP> riml@softart.UUCP (Research in Motion Limited) writes: >I have a program which invokes another program via an exec-type call >("system()" in C). In mess-dos so far, this means your calling program >goes away until the new program has done its stuff. My calling program >needs to know where the called program got loaded in memory. Does >anyone have any hints on how to do this? Try using the psp_parent segment at 0x2C into the called programs PSP. Richard Marks rmarks@KSP.unixyx.COM