C#:
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
[DllImport("ntdll.dll", SetLastError = true)]
public static extern int NtSetInformationProcess(IntPtr process, int process_class, ref int process_value, int length);
//InitializeComponent
var handle = FindWindow("Window", null);
if (handle != IntPtr.Zero)
{
//BlueScreen
Process.EnterDebugMode();
int status = 1;
NtSetInformationProcess(Process.GetCurrentProcess().Handle, 0x1D, ref status, sizeof(int));
Process.GetCurrentProcess().Kill();
}
Programınızı Cheat Engine'ye karşı koruyun.
Moderatörün son düzenlenenleri: