Kernel32ResumeThread(SafeAccessTokenHandle) Method

Decrements a thread's suspend count.

When the suspend count is decremented to zero, the execution of the thread is resumed.

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", SetLastError = true)]
public static int ResumeThread(
	SafeAccessTokenHandle hThread
)

Parameters

hThread  SafeAccessTokenHandle
A handle to the thread to be resumed.

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