[python-win32] how to use win32process.CreateRemoteThread

Tim Roberts timr at probo.com
Fri Sep 11 03:27:45 EDT 2020


On Sep 10, 2020, at 7:24 AM, june y <qwertyjune56 at gmail.com> wrote:
> 
>  <https://stackoverflow.com/posts/63814377/timeline>i am studying win32process of pywin32.
> 
> but, i encounter a problem.
> 
> problem is I don't know win32process.CreateRemoteThread wants what arguments
> 

CreateRemoteThread does not work with Python functions.  It is a C API, and it expects to be handed the address of a C function in the other process.  id(x) returns to you an address, but it’s an address that has to be interpreted by the Python interpreter run-time, and the Python run-time will not be part of the other process.

If you want to do threading in Python, use the ’thread’ or ’threading’ modules.  Don’t use win32process for that.
— 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20200911/793dca71/attachment.html>


More information about the python-win32 mailing list