This call allocates a named shared memory segment to a process.
DosAllocShrSeg
Size (USHORT) - input
DosAllocShrSeg allocates a named segment of up to 64KB in size, which is movable and swappable. The segment can be shared by any process that knows the name of the segment.
To access the shared segment, another process issues DosGetShrSeg, specifying the segment name. The selector returned by DosGetShrSeg is the same as the one returned by DosAllocShrSeg.
The maximum number of segments a process can define with DosAllocShrSeg or access with DosGetShrSeg is 256.
Note: This request may be issued from privilege level 2. However, the segment is allocated as a privilege level 3 segment.