win32process.CreateRemoteThread

PyHANDLE, int = CreateRemoteThread(hprocess, sa , stackSize , entryPoint , Parameter , flags )

creates a thread that runs in the virtual address space of another process.

Parameters

hprocess : PyHANDLE

The handle to the remote process.

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's address.

Parameter : int

Arg passed to the function in the form of a void pointer

flags : int

Return Value

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