CWinThread::CreateThread
BOOLCreateThread(DWORDdwCreateFlags**=0,UINTnStackSize=0,LPSECURITY_ATTRIBUTESlpSecurityAttrs=NULL);**
Return Value
Nonzero if the thread is created successfully; otherwise 0.
Parameters
dwCreateFlags
Specifies an additional flag that controls the creation of the thread. This flag can contain one of two values:
CREATE_SUSPENDED Start the thread with a suspend count of one. The thread will not execute until ResumeThread is called.
0 Start the thread immediately after creation.
nStackSize
Specifies the size in bytes of the stack for the new thread. If 0, the stack size defaults to the same size as that of the process’s primary thread.
lpSecurityAttrs
Points to a structure that specifies the security attributes for the thread.
Remarks
Creates a thread to execute within the address space of the calling process. Use AfxBeginThread to create a thread object and execute it in one step. Use CreateThread if you want to reuse the thread object between successive creation and termination of thread executions.
CWinThread Overview | Class Members | Hierarchy Chart
See Also AfxBeginThread, CWinThread::CWinThread,