public Form1() { InitializeComponent(); try { mre.Reset(); Process process = new Process(); process.StartInfo.FileName = "cppPlayer.exe"; //创建匿名管道流实例, using (pipeStream = new AnonymousPipeServerStream(PipeDirection.Out, HandleInheritability.Inheritable)) { //pipeStream. //将句柄传递给子进程 string strlhandle = mre.ToString(); string strpipe = pipeStream.GetClientHandleAsString(); //string strPam = strlhandle + " " + process.StartInfo.Arguments = "file:///D:/123.mp3 192.168.4.90 9885 103 " + strlhandle + " " + strpipe + " 1600 128"; process.StartInfo.UseShellExecute = true; process.Start(); } //process.WaitForExit(); //process.Close(); } catch (Exception dxml) { } }