private static void Main(string[] args) { Arguments a = new Arguments(); var parser = new CommandLineParser(new CommandLineParserSettings(Console.Error)); if (!parser.ParseArguments(args, a)) { return; } Console.WriteLine("Injecting '{0}' into '{1}' calling '{2}'.", a.ExecutableName, a.DllName, a.FunctionName); Console.WriteLine(a.DllName); Console.WriteLine(a.FunctionName); using (KProcess process = new KProcess()) { process.Open(Path.GetFileNameWithoutExtension(a.ExecutableName)); process.LoadLibrary(Environment.CurrentDirectory + "\\" + a.DllName, a.FunctionName); } Console.WriteLine("Success!"); }