Kernel32SuspendThread32(IntPtr) Method

Suspends the specified 32-Bit thread.

A 32-bit application can suspend a 64-Bit thread using the SuspendThread64(SafeAccessTokenHandle) function.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", EntryPoint = "Wow64SuspendThread", 
	SetLastError = true)]
public static int SuspendThread32(
	IntPtr hThread
)

Parameters

hThread  IntPtr
A handle to the thread that is to be suspended.

The handle must have the SuspendResume access right

Return Value

Int32
If the function succeeds, the return value is the thread's previous suspend count; otherwise, it is -1.

To get extended error information, call GetLastWin32Error.

Remarks

See Also