System.WindowsConsoleDriver.GetForeground C# (CSharp) Method