Пример #1
0
        private static void _current_WindowIntPtr_Get(object obj)
        {
            //string processname = null;

            Thread.Sleep(_intSleepTime);

            IntPtr hwnd = API_Windows.GetForegroundWindow();

            delRtnIntPtr evt = obj as delRtnIntPtr;

            if (obj == null)
            {
                return;
            }

            evt(hwnd);
        }
Пример #2
0
        public static IntPtr Current_WindowIntPtr_Get()
        {
            //string processname = null;

            return(API_Windows.GetForegroundWindow());
        }