Ejemplo n.º 1
0
 private void ApiMonButton_Click(object sender, EventArgs e)
 {
     if (ApiMonButton.Text == "ApiMon OFF")
     {
         __RtApiMonInst.WRAP_RtProtectionDrv_LoadDriver();
         if (__RtApiMonInst.Get_loaded() == true)
         {
             ApiMonButton.Text      = "ApiMon ON";
             __ApiMonThread         = new Thread(new ThreadStart(ApiMonThreadFunc));
             __ApiMonThread_working = true;
             __ApiMonThread.Start();
         }
     }
     else
     {
         __ApiMonThread_working = false;
     }
 }
Ejemplo n.º 2
0
 private void RTProtection_Button_Activate_Click(object sender, EventArgs e)
 {
     if (RTProtection_Button_Activate.Text == "Activate")
     {
         __RtProtectionInst.WRAP_RtProtectionDrv_LoadDriver();
         if (__RtProtectionInst.Get_loaded() == true)
         {
             RTProtection_Button_Activate.Text = "Deactivate";
             __procMonThread         = new Thread(new ThreadStart(ProcMonThreadFunc));
             __procMonThread_working = true;
             __procMonThread.Start();
         }
     }
     else
     {
         __procMonThread_working = false;
     }
 }