Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
DosGetSeg (1.2)
◄Function Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSMEMMGR
USHORT DosGetSeg(sel)
SEL sel; /* selector of shared-memory segment */
The DosGetSeg function obtains access to the shared-memory segment
identified by the specified segment selector. Although a process can receive
the selector for a shared-memory segment from another process, the process
must first use the DosGetSeg function to access the segment.
Parameter Description
────────────────────────────────────────────────────────────────────────────
sel Specifies the selector for the shared-memory segment.
Return Value
The return value is zero if the function is successful. Otherwise, it is an
error value.
Comments
DosGetSeg obtains access only to shared-memory segments created by using the
DosAllocSeg function with the fAttrs parameter set to SEG_GETTABLE.
DosGetSeg can be issued from ring 2, but the shared-memory segment must be a
ring 3 segment.
See Also
DosAllocSeg, DosGetShrSeg, DosGiveSeg
♦