My goal is to increase the default stack size of a process.
I found out that it can be easily achieved on a thread by setting dwStackSize on the CreateThread function, but it seems like there is no documented way to do similar things on a process' main thread.