win32process.beginthreadex

PyHANDLE, int = beginthreadex(sa, stackSize , entryPoint , args , flags )

Creates a new thread

Parameters

sa : PySECURITY_ATTRIBUTES

The security attributes, or None

stackSize : int

Stack size for the new thread, or zero for the default size.

entryPoint : function

The thread function.

args : tuple

Args passed to the function.

flags : int

Can be CREATE_SUSPENDED so thread doesn't run immediately

Return Value

The result is a tuple of the thread handle and thread ID.