How to find true stack size in Windows

Let me start by stating the obvious, if you find yourself needing to get your thread’s stack size as part of your code, more likely than not, you are doing something wrong. Unless it is part of your core logic, getting into OS’s business is often an invitation to trouble.   That’s said, there are…