Process[] ProcessList = Process.GetProcessesByName("mspaint");//画图板 IntPtr test = ProcessList[].MainWindowHandle;-