CreateRemoteThreadX

The CreateRemoteThreadX creates a thread in the target process.

function CreateRemoteThreadX(
  dwProcessID: DWord;
  pThreadAttributes: Pointer;
dwStackSize: DWord; pStartAddr: Pointer; pParameter: Pointer; dwCreationFlags: DWord; var dwThreadID: DWord ): DWord; stdcall;

Parameters

dwProcessID
[in] Target process id or process handle.
 
pThreadAttributes
[in] Special thread attributes.
 
dwStackSize
[in] Size of the stack of the created thread.
 
pParameter
[in] Parameter which is passed to the thread function.
 
dwCreationFlags
[in] Special creation flags like CREATE_SUSPENDED.
 
dwThreadID
[out] Returns the thread id of the created thread.
 
 
Remarks

CreateRemoteThreadX uses CreateRemoteThread for WinNt systems and thread changing for Win9x systems.

 

Return Values

If the function succeeds, the return value is not 0.

If the function fails, the return value is 0.

 

Requirements

Client Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
Header

Declared in uallKernel.pas