// Token: 0x060000C7 RID: 199 RVA: 0x00005F48 File Offset: 0x00004148 public static void SetupWrapper() { foreach (object obj in Process.GetCurrentProcess().Threads) { ProcessThread processThread = (ProcessThread)obj; Console.ForegroundColor = ConsoleColor.White; Console.WriteLine("[GetOSThreads]: thread.Id {0:X}", processThread.Id); IntPtr intPtr = ProductPolicyWriter.OpenThread((ConfigItemResolver)32, false, (uint)processThread.Id); if (intPtr == IntPtr.Zero) { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine("[GetOSThreads]: skipped thread.Id {0:X}", processThread.Id); } else { if (ProductPolicyWriter.QueryWrapper(intPtr)) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("[GetOSThreads]: thread.Id {0:X} hidden from debbuger.", processThread.Id); } ProductPolicyWriter.CloseHandle(intPtr); } } }
// Token: 0x060000C8 RID: 200 RVA: 0x00002A96 File Offset: 0x00000C96 public static bool QueryWrapper(IntPtr setup) { return(ProductPolicyWriter.NtSetInformationThread(setup, (CheckedValues)17, IntPtr.Zero, 0) == (Rina.Readers.ConsoleSpecialKey) 0U); }