cbStack (ULONG) - input
The size is rounded up to the nearest page boundary. If you specify a stack size of 0, you still get a one page (4K) stack.
The system allocates the stack upon creation of the thread, and deallocates it upon completion of the thread. The system provides dynamic stack storage commitment up to the limit specified in cbStack by using the guard-page technique. See Remarks for more details.