NtDllNtSuspendProcess Method

Suspends a process.

When you suspend a process, all the threads of the process will be set to a suspended state.

This cuts off code execution until we resume the process, which consists of resuming each thread under the process which was put into a suspended state.

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("NtDll.dll", SetLastError = true)]
public static NTStatus NtSuspendProcess(
	IntPtr processHandle
)

Parameters

processHandle  IntPtr
A handle to the process to suspend.

Return Value

NTStatus
Returns SUCCESS on success.

Remarks

See Also