SuspendThread() private method

private SuspendThread ( SafeObjectHandle hThread ) : int
hThread SafeObjectHandle
return int
Example #1
0
 public static void Suspend(Process process)
 {
     foreach (ProcessThread thread in (ReadOnlyCollectionBase)process.Threads)
     {
         int num = (int)Kernel32.SuspendThread(new IntPtr(thread.Id));
     }
 }
Example #2
0
        public static void SuspendThread(int tid)
        {
            IntPtr num1 = Kernel32.OpenThread(ThreadAccessFlags.SuspendResume, false, (uint)tid);
            int    num2 = (int)Kernel32.SuspendThread(num1);

            Kernel32.CloseHandle(num1);
        }
Example #3
0
 public static void Suspend(ProcessThread thread)
 {
     int num = (int)Kernel32.SuspendThread(new IntPtr(thread.Id));
 }