Example #1
0
        public static int GetWindowProcessID(IntPtr hWnd)
        {
            int procId;

            Api_User32.GetWindowThreadProcessId(hWnd, out procId);
            return(procId);
        }