找进程的窗口Handle Process[] ProcessList = Process.GetProcessesByName("mspaint");//画图板 IntPtr test = ProcessList[0].MainWindowHandle; -