CreateRemoteThread(3w)

CreateRemoteThread3w

Usage

HANDLE CreateRemoteThread
(
HANDLE hProcess,
SECURITY_ATTRIBUTES* sa,
SIZE_T stack,
LPTHREAD_START_ROUTINE start,
LPVOID param,
DWORD flags,
LPDWORD id
)

Overview

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

Params

Returns

Success: Handle to the new thread.

Failure: NULL. Use GetLastError(3w) to find the error cause.

Implementation

Declared in "winbase.h".

Implemented in "dlls/kernel32/thread.c".

Debug channel "thread".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

Bugs

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.

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.