GetThread

The GetThread function returns the main thread id of a process

function GetThread(
  dwProcessID: DWord
): DWord; stdcall;


Parameters

dwProcessID
[in] Process id or process handle of the target process.
 
 

Remarks

-

Return Values

If the function succeeds, the return value is the main thread id of the process.

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