getforegroundwindow c# pocess code example
Example: c# getforegroundwindow
[DllImport("user32.dll")]
private static extern IntPtr GetForegroundWindow();
[DllImport("user32.dll")]
private static extern IntPtr GetForegroundWindow();