예제 #1
0
 public void ErrorProcess(BmpHook.ProcessError error)
 {
     if (error == BmpHook.ProcessError.ProcessFailed)
     {
         Log("Process hooking failed.");
     }
     else if (error == BmpHook.ProcessError.ProcessNonAccessible)
     {
         Log("Process hooking failed due to lack of privilege. Please make sure the game is not running in administrator mode. Alternatively, run BMP in administrator mode.");
     }
 }
예제 #2
0
 public void ErrorProcess(BmpHook.ProcessError error)
 {
     if (error == BmpHook.ProcessError.ProcessFailed)
     {
         Log("Process hooking failed.");
     }
     else if (error == BmpHook.ProcessError.ProcessNonAccessible)
     {
         bool admin = new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);
         if (!admin)
         {
             MessageBox.Show(this, "Process memory cannot be read.\nPlease start BMP in administrator mode.", "Process not accessible");
         }
         else
         {
             Log("Process hooking failed due to lack of privilege. Please make sure the game is not running in administrator mode.");
         }
     }
 }