Re: how to use win32process.CreateRemoteThread
Tim Roberts <[email protected]>
| Newsgroups | gmane.comp.python.windows |
|---|---|
| Message-ID | <[email protected]> |
On Sep 10, 2020, at 7:24 AM, june y <[email protected]> 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, [email protected] Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32