Undocumented functions of NTDLL

2OOO, 11 November


NtCreateThread
NtCreateThread

NTSYSAPI 
NTSTATUS
NTAPI

NtCreateThread(
OUT PHANDLE ThreadHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN HANDLE ProcessHandle, OUT PCLIENT_ID ClientId, IN PCONTEXT ThreadContext, IN PINITIAL_TEB InitialTeb, IN BOOLEAN CreateSuspended );


ThreadHandle
Caller supplied storage for the resulting handle.

DesiredAccess
Specifies the allowed or desired access to the thread.

ObjectAttributes
Initialized attributes for the object.

ProcessHandle
Handle to the threads parent process.

ClientId
Caller supplies storage for returned process id and thread id.

ThreadContext
Initial processor context for the thread.

InitialTeb
Initial user mode stack context for the thread.

CreateSuspended
Specifies if the thread is ready for scheduling. See NtContinue for more information.





Documented by:
Reactos



Requirements:
Library: ntdll.lib


See also:
INITIAL_TEB
NtContinue
NtCreateProcess
NtTerminateThread
NtAlertResumeThread