예제 #1
0
 private static bool SendInjectionComplete(string pipeName, int pid)
 {
     using (var pipeClient = CreateClient(pipeName))
     {
         if (pipeClient.Connect())
         {
             return(SendPipeMessage(pipeClient.MessageHandler,
                                    InjectionCompleteNotification.CreateMessage(pid, true)));
         }
     }
     return(false);
 }
예제 #2
0
 private static bool SendInjectionComplete(IMessageWriter writer, int processId)
 {
     return(writer.TryWrite(InjectionCompleteNotification.CreateMessage(processId, true)));
 }