public static void Suspend(Process process) { foreach (ProcessThread thread in (ReadOnlyCollectionBase)process.Threads) { int num = (int)Kernel32.SuspendThread(new IntPtr(thread.Id)); } }
public static void SuspendThread(int tid) { IntPtr num1 = Kernel32.OpenThread(ThreadAccessFlags.SuspendResume, false, (uint)tid); int num2 = (int)Kernel32.SuspendThread(num1); Kernel32.CloseHandle(num1); }
public static void Suspend(ProcessThread thread) { int num = (int)Kernel32.SuspendThread(new IntPtr(thread.Id)); }