| 12345678910111213141516171819202122232425 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Diagnostics;
 
- using System.Linq;
 
- using System.Runtime.InteropServices;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- namespace PTMedicalInsurance.Common
 
- {
 
-     public class WinApi
 
-     {
 
-         public static IntPtr GetWindowHandle(string name)
 
-         {
 
-             Process[] procs = Process.GetProcessesByName(name);
 
-             if (procs.Length != 0)
 
-             {
 
-                 return procs[0].MainWindowHandle;
 
-             }
 
-             return IntPtr.Zero;
 
-         }
 
-     }
 
- }
 
 
  |