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