dos12.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.
DosR2StackRealloc (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDEVICES
 
USHORT DosR2StackRealloc(usSize)
USHORT usSize;    /* new size for stack */
 
The DosR2StackRealloc function changes the size of a thread's ring-2 stack.
The function reallocates the stack as requested.
 
This function cannot be used from ring 2.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
usSize     Specifies the size (in bytes) of the ring-2 stack. If the
           specified size is smaller then the current stack size, it will be
           ignored.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is an
error value.
 
                                      ♦