Esempio n. 1
0
        private uint GetProcId(string windowName, out int handle)
        {
            uint         procId;
            WindowFinder windowFinder = new WindowFinder();
            IntPtr       hwnd         = windowFinder.FindWindowAsynch(windowName, 10000, out procId);

            handle = hwnd.ToInt32();
            return(procId);
        }