CreateThread function kernel32
int
CreateThread(
- Pointer<
SECURITY_ATTRIBUTES> lpThreadAttributes, - int dwStackSize,
- Pointer<
NativeFunction< lpStartAddress,LPTHREAD_START_ROUTINE> > - Pointer<
NativeType> lpParameter, - int dwCreationFlags,
- Pointer<
Uint32> lpThreadId,
Creates a thread to execute within the virtual address space of the calling process.
HANDLE CreateThread(
LPSECURITY_ATTRIBUTES lpThreadAttributes,
SIZE_T dwStackSize,
LPTHREAD_START_ROUTINE lpStartAddress,
LPVOID lpParameter,
DWORD dwCreationFlags,
LPDWORD lpThreadId
);
Implementation
int CreateThread(
Pointer<SECURITY_ATTRIBUTES> lpThreadAttributes,
int dwStackSize,
Pointer<NativeFunction<LPTHREAD_START_ROUTINE>> lpStartAddress,
Pointer lpParameter,
int dwCreationFlags,
Pointer<Uint32> lpThreadId) =>
_CreateThread(lpThreadAttributes, dwStackSize, lpStartAddress, lpParameter,
dwCreationFlags, lpThreadId);