CreateThread
E724269
CreateThread is a Windows API function in the Kernel32 library used to create a new thread of execution within a process.
Statements (48)
| Predicate | Object |
|---|---|
| instanceOf |
Windows API function
ⓘ
thread creation function ⓘ |
| appliesTo | native Win32 applications ⓘ |
| callingConvention | WINAPI ⓘ |
| creationFlag |
CREATE_SUSPENDED
ⓘ
STACK_SIZE_PARAM_IS_A_RESERVATION ⓘ |
| defaultStackSizeBehavior | uses executable’s default stack size when dwStackSize is 0 ⓘ |
| definedInLibrary | Kernel32.dll NERFINISHED ⓘ |
| errorRetrieval | GetLastError ⓘ |
| handleManagement | thread handle must be closed with CloseHandle ⓘ |
| headerFile | windows.h ⓘ |
| inheritHandleBehavior | handle inheritance controlled by lpThreadAttributes ⓘ |
| introducedIn | Win32 API NERFINISHED ⓘ |
| languageBinding | C NERFINISHED ⓘ |
| minimumSupportedClient | Windows 2000 Professional NERFINISHED ⓘ |
| minimumSupportedServer | Windows 2000 Server NERFINISHED ⓘ |
| module | Kernel32 NERFINISHED ⓘ |
| notRecommendedFor | managed .NET applications ⓘ |
| parameter |
DWORD dwCreationFlags
ⓘ
LPDWORD lpThreadId ⓘ LPSECURITY_ATTRIBUTES lpThreadAttributes ⓘ LPTHREAD_START_ROUTINE lpStartAddress ⓘ LPVOID lpParameter ⓘ SIZE_T dwStackSize ⓘ |
| partOf | Windows API NERFINISHED ⓘ |
| relatedFunction |
CreateRemoteThread
ⓘ
ExitThread ⓘ GetExitCodeThread NERFINISHED ⓘ ResumeThread ⓘ SetThreadPriority ⓘ SuspendThread ⓘ TerminateThread ⓘ _beginthreadex ⓘ |
| returnsOnFailure | NULL ⓘ |
| returnsOnSuccess | handle to the new thread ⓘ |
| returnType | HANDLE ⓘ |
| runsOn | Microsoft Windows NERFINISHED ⓘ |
| securityAttributesUsage | lpThreadAttributes can specify security descriptor ⓘ |
| synchronization |
thread handle can be used with WaitForMultipleObjects
ⓘ
thread handle can be used with WaitForSingleObject ⓘ |
| threadContext | new thread starts in suspended or running state depending on dwCreationFlags ⓘ |
| threadEntryPointSignature | DWORD WINAPI ThreadProc(LPVOID lpParameter) ⓘ |
| threadEntryPointType | LPTHREAD_START_ROUTINE ⓘ |
| threadIdOutput | lpThreadId receives the thread identifier ⓘ |
| threadTermination |
thread can exit by calling ExitThread
ⓘ
thread can exit by returning from start routine ⓘ |
| usedFor |
creating a new thread of execution in a process
ⓘ
starting a new thread in the calling process ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.