纯win32程序中,如何建立线程并让线程先不执行处于等待状态,待定时器里某种条件达成时再让它去执行

纯win32程序中,怎么建立线程并让线程先不执行处于等待状态,待定时器里某种条件达成时再让它去执行?
纯win32程序中,怎么建立线程并让线程先不执行处于等待状态,待定时器里某种条件达成时再让它去执行?

------解决方案--------------------
HANDLE CreateThread(
LPSECURITY_ATTRIBUTES lpThreadAttributes, 
DWORD dwStackSize, 
LPTHREAD_START_ROUTINE lpStartAddress, 
LPVOID lpParameter, 
DWORD dwCreationFlags, 
LPDWORD lpThreadId); 

dwCreationFlags 
Specifies flags that control the creation of the thread. 
Value Description 
CREATE_SUSPENDED The thread is created in a suspended state, and will not run until the ResumeThread function is called. 
0 The thread runs immediately after creation.