My Development Blog!
Information and code samples/examples on: Compact Framework using C#, J2ME using java, Web development using ASP.NET, Windows Forms on C# and other special tricks at excel, word. enjoy...
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();