Esempio n. 1
0
 public bool TryInject()
 {
     RemoteHooking.InstallSupportDriver();
     try
     {
         RemoteHooking.Inject(_targetProcessId, "Injector.dll", "Injector.dll", _channelName);
         if (InjectSuccess != null)
         {
             InjectSuccess(this, EventArgs.Empty);
         }
         return(true);
     }
     catch (Exception errorMsg)
     {
         if (InjectFailed != null)
         {
             InjectFailed(errorMsg.ToString());
         }
         return(false);
     }
 }