Is there a call to determine the stack size of a running thread? I\'ve been looking in MSDN thread functions documentation, and can\'t seem to find one.
You can get the current committed size from the Top and Bottom in the TEB. You can get the process initial reserve and commit sizes from the PE header. But you cannot retrieve the actual sizes passed to CreateThread, nor is there any API to get the remaining size of reserved nor committed from current stack, see Thread Stack Size.