Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!nic.csu.net!beach.csulb.edu!csus.edu!wuarchive!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!npd.novell.com!newsun!colin From: colin@la.excelan.com (Colin Goldstein) Newsgroups: comp.os.os2.programmer Subject: Re: Size of Shared Segment Keywords: Shared Segment, DosGetShrSeg Message-ID: <1991Mar21.195752.9946@novell.com> Date: 22 Mar 91 13:21:35 GMT Sender: news@novell.com ( Lines: 32 The News Manager) Nntp-Posting-Host: la Reply-To: colin@la.novell.com (Colin Goldstein) Organization: Novell, Inc., San Jose, Ca References: <18806@milton.u.washington.edu> Date: Thu, 21 Mar 1991 19:57:52 GMT In article <18806@milton.u.washington.edu> rol@grasp1.univ-lyon1.fr (Paul Rolland) writes: > > I've two processes running concurently. The first one >allocates a shared memory segment to put data in, with a known >name. It then starts the second program, giving him the name of >the segment as a parameter. So, the second program issues a >DosGetShrSeg to have a selector to access this memory. But I >don't know the size of this shared segment. How can I do that ? > > Please Email an answer to rol@grasp1.univ-lyon1.fr > Thanks, > Paul. This is done by using the DosSizeSeg function. It take 2 params. The first is the selector, the second a pointer to a long, which contains the size upon return. Colin -- /-------------------------------------------------------------------\ | The views expressed here are my own. | Norm, what are you | | They do not necessarily represent | up too??? | | the views expressed by my employer. | | | ---------------| My ideal weight if I | | colin@novell.com | Novell Inc., | were 11 feet tall. | | uunet!novell!colin | San Jose | - Cheers | \-------------------------------------------------------------------/