lpsa .
dwStackSize . 0 , .
lpStartAddr ( ), . 32- . DWORD, . (ThreadFunc) :
DWORD WINAPI ThreadFunc(LPVOID)
lpThreadParm , , .
dwCreationFlags 0, CreateThread. CREATE_SUSPENDED , ResumeThread.
lpThreadId DWORD, ; Windows 9x Windows NT 3.51 NULL .
, ExitThread, . , , . DLL, DllMain ( 4) DLL_THREAD_DETACH "" .
VOID ExitThread(DWORD dwExitCode)
, .
TerminateThread, , DLL . , ; TerminateThread . TerminateThread , TerminateProcess.
, (, ), , CloseHandle . , , , .
BOOL GetExitCodeThread(HANDLE hThread, LPDWORD lpExitCode)
lpExitCode , . , STILL_ACTIVE.