INtime SDK Help
SuspendThread, RtSuspendThread (iwin32)
INtime SDK v7 > About INtime > Alternate APIs > iwin32 API > iwin32 API > SuspendThread, RtSuspendThread (iwin32)

Suspends the specified thread.

DWORD SuspendThread(
    HANDLE hThread

DWORD RtSuspendThread(
    HANDLE hThread
);

Parameters

hThread
Handle to the thread.

Remarks

If the function succeeds, the specified thread's execution suspends and the thread's suspend count increments.

Suspending a thread causes the thread to stop executing user-mode (application) code.

ResumeThread decrements a a suspended thread's suspend count.

Return Values

The thread's previous suspend count
Success.
0xFFFFFFFF
Failure. For extended error information, see GetLastError.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/iwin32.h
intime/rt/include/winbase.h
iwin32.h
windows.h
iwin32.lib

Note

See Also

ResumeThread, iwin32 API, iwin32 Overview