HANDLE CreateThread(
LPSECURITY_ATTRIBUTES lpThreadAttributes,
SIZE_T dwStackSize, // 栈大小?如何指定?即如何计算你线程需要多大的栈空间?
LPTHREAD_START_ROUTINE lpStartAddress,
LPVOID lpParameter,
DWORD dwCreationFlags,
LPDWORD lpThreadId
);
LPSECURITY_ATTRIBUTES lpThreadAttributes,
SIZE_T dwStackSize, // 栈大小?如何指定?即如何计算你线程需要多大的栈空间?
LPTHREAD_START_ROUTINE lpStartAddress,
LPVOID lpParameter,
DWORD dwCreationFlags,
LPDWORD lpThreadId
);
[in] Ignored unless the STACK_SIZE_PARAM_IS_A_RESERVATION flag is used. In which case the dwStackSize parameter specifies the virtual memory reserved for the new thread. When ignored, the default stack size for a thread is determined by the linker setting /STACK.
一般情况你可以不用指定,是忽略的.