HANDLE CreateThread( //安全描述符 LPSECURITY_ATTRIBUTES lpThreadAttributes, //堆栈大小 SIZE_T dwStackSize, //A pointer to the application-defined function to be executed by the thread LPTHREAD_START_ROUTINE lpStartAddress, // *void类型的函数参数 __drv_aliasesMem LPVOID lpParameter, //The flags that control the creation of the thread. DWORD dwCreationFlags, //传递线程id LPDWORD lpThreadId );
DWORD WaitForMultipleObjects( //The number of object handles in the array pointed to by lpHandles DWORD nCount, //An array of object handles. const HANDLE *lpHandles, BOOL bWaitAll, DWORD dwMilliseconds );