CreateThread

E724269

CreateThread is a Windows API function in the Kernel32 library used to create a new thread of execution within a process.

All labels observed (2)

Label Occurrences
CreateThread canonical 1
SetThreadPriority 1

How this entity was disambiguated

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
linked to: Kernel32
errorRetrieval GetLastError
handleManagement thread handle must be closed with CloseHandle
headerFile windows.h
inheritHandleBehavior handle inheritance controlled by lpThreadAttributes
introducedIn Win32 API
languageBinding C
minimumSupportedClient Windows 2000 Professional
linked to: Windows 2000
minimumSupportedServer Windows 2000 Server
linked to: Windows 2000
module Kernel32
notRecommendedFor managed .NET applications
parameter DWORD dwCreationFlags
LPDWORD lpThreadId
LPSECURITY_ATTRIBUTES lpThreadAttributes
LPTHREAD_START_ROUTINE lpStartAddress
LPVOID lpParameter
SIZE_T dwStackSize
partOf Windows API
linked to: Win32 API
relatedFunction CreateRemoteThread
ExitThread
GetExitCodeThread
ResumeThread
SetThreadPriority
SuspendThread
TerminateThread
_beginthreadex
returnsOnFailure NULL
returnsOnSuccess handle to the new thread
returnType HANDLE
runsOn Microsoft Windows
linked to: Windows
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

How these facts were elicited

Referenced by (2)

Full triples — surface form annotated when it differs from this entity's canonical label.

Kernel32 exportsFunction CreateThread
GetCurrentThread usedWith SetThreadPriority
linked to: CreateThread