示例#1
0
 public static void AllocConsole()
 {
     if (!WinCon.AllocConsole())
     {
         throw new IOException("Unable to allocate console", Marshal.GetLastWin32Error());
     }
 }