50% OFF!!!

Booking.com

Sunday, December 7, 2008

Windows Mobile | Get current displayed window


Find which window is running right now.
Used for determining if OUR window is on background or not.



[DllImport("coredll.dll", SetLastError = true)]
public static extern IntPtr GetForegroundWindow();