[This is preliminary documentation and is subject to change.]

Creates console fro process without console

Namespace: Tools
Assembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public static void AllocateConsole()
Visual Basic
Public Shared Sub AllocateConsole
Visual C++
public:
static void AllocateConsole()
F#
static member AllocateConsole : unit -> unit 
JScript
public static function AllocateConsole()

Remarks

After this function is called, you can use the Console class to interact with console.

When console is allocated for windows application, closing the console terminates whole application.

Exceptions

ExceptionCondition
Tools.API..::..Win32APIExceptionThe process already has console

See Also