SEL sel1, sel2; PVOID pSegment1, pSegment2; DosAllocSeg(0, &sel1, SEG_NONSHARED); DosAllocSeg(8192, &sel2, SEG_NONSHARED); pSegment1=MAKEP(sel1, 0); pSegment2=MAKEP(sel2, 0);
This example shows the use of the DosAllocSeg() function to allocate multiple segments in order to access 72KB of memory.