🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Colin Goldstein Fri, 22 Mar 1991 13:21
Re: Size of Shared Segment
#2474
Author: Colin Goldstein
Date: Fri, 22 Mar 1991 13:21
34 lines
2004 bytes
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 |
\-------------------------------------------------------------------/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads