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.
DosSizeSeg (1.2)
◄Function Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSMEMMGR
USHORT DosSizeSeg(sel, pulSize)
SEL sel; /* segment selector */
PULONG pulSize; /* receives segment size */
The DosSizeSeg function retrieves the size (in bytes) of a specified
segment.
The DosSizeSeg function is a family API function.
Parameter Description
────────────────────────────────────────────────────────────────────────────
sel Specifies the selector of the segment. For huge segments, this
must be the base selector.
pulSize Points to the variable that receives the segment size (in bytes).
(For huge segments, the number of full segments will be in the
high word, and the size of the last segment will be in the low
word. These values are equivalent to the values of the usNumSeg
and usPartialSeg parameters that were passed to the DosAllocHuge
or DosReallocHuge function.)
Return Value
The return value is zero if the function is successful. Otherwise, it is an
error value.
See Also
DosAllocHuge, DosAllocSeg, DosReallocHuge
♦