[Toc][Index]

DosR2StackRealloc


Bindings:  C, MASM 

This call changes the size of a thread's privilege level 2 stack. 
 DosR2StackRealloc     (NewSize) 
 
 NewSize (USHORT) - input 
    New size, in bytes, for the privilege level 2 stack. The stack is 
    reallocated as required and the TSS SP pointer is adjusted 
    accordingly. The new stack size can not be less than the current stack 
    size. 
 
 rc (USHORT) - return 
    Return code descriptions are: 
    0         NO_ERROR 
    8         ERROR_NOT_ENOUGH_MEMORY 
    196       ERROR_DYNLINK_FROM_INVALID_RING 
    197       ERROR_IOPL_NOT_ENABLED 
    207       ERROR_RING2_STACK_IN_USE 
    216       ERROR_CANNOT_SHRINK 
 
 Remarks 
 This call is provided to allow the privilege level 2 stack to be resized 
 and to have the TSS adjusted to reflect the new size. The size can not be 
 less than the current size. 
 This call can not be made from privilege level 2. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs