CreateRemoteThread (KERNEL32.@)
HANDLE CreateRemoteThread ( HANDLE hProcess, SECURITY_ATTRIBUTES* sa, SIZE_T stack, LPTHREAD_START_ROUTINE start, LPVOID param, DWORD flags, LPDWORD id )
Creates a thread that runs in the address space of another process.
| Success: Handle to the new thread. |
| Failure: NULL. Use GetLastError to find the error cause. |
Improper memory allocation: there's no ability to free new_thread_info in other process. Bad start address for RtlCreateUserThread because the library may be loaded at different address in other process.
Defined in "winbase.h".
Implemented in "dlls/kernel32/thread.c". source.winehq.org/source/dlls/kernel32/thread.c
Debug channel "thread".
Copyright © 2009 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2009.