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); }
private static bool SendInjectionComplete(IMessageWriter writer, int processId) { return(writer.TryWrite(InjectionCompleteNotification.CreateMessage(processId, true))); }