SuspendThread¶
Suspend a running thread.
Declaration¶
Source position: threadh.inc line 161
function SuspendThread(threadHandle: TThreadHandle) : DWord;
Description¶
SuspendThread suspends a running thread. The thread is identified with it's handle or ID threadHandle.
The function returns zero if successful. A nonzero return value indicates failure.
Errors¶
If a failure occurred, a nonzero result is returned. The meaning is system dependent.
See also¶
| Name | Description |
|---|---|
| ResumeThread | Resume a suspended thread. |
| KillThread | Kill a running thread. |