msos2.hlp (Table of Contents; Topic list)
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.
MAKEPGINFOSEG (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSINFOSEG
 
 
MAKEPGINFOSEG(sel)
 
The MAKEPGINFOSEG macro creates a far (32-bit) pointer to the first byte in
the global information segment. The macro assumes that the selector
specified by the sel parameter has been retrieved by using the
DosGetInfoSeg function.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
sel        Specifies the segment selector of the global information
           segment.
 
Example
 
SEL selGlobalSeg, selLocalSeg;
GINFOSEG FAR *pgis;
DosGetInfoSeg(&selGlobalSeg, &selLocalSeg);
pgis = MAKEPGINFOSEG(selGlobalSeg);
 
See Also
 
DosGetInfoSeg, MAKEPLINFOSEG