Created
May 18, 2012 18:30
-
-
Save opavlyshak/2726908 to your computer and use it in GitHub Desktop.
Create and show console window in .NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.InteropServices; | |
namespace Application | |
{ | |
public class ConsoleUtils | |
{ | |
[DllImport("kernel32.dll", EntryPoint = "AllocConsole", CharSet = CharSet.Unicode)] | |
public static extern bool AllocConsole(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment