FreeConsole (kernel32)
Last changed: -87.74.96.9

.
Summary

C# Signature:

[DllImport("kernel32.dll", SetLastError=true, ExactSpelling=true)]
static extern bool FreeConsole();

VB Signature:

<DllImport("kernel32.dll", SetLastError:=True, ExactSpelling:=True)> _
    Private Function FreeConsole() As Boolean
    End Function

User-Defined Types:

None.

Notes:

Hides the active console window. Much easier than using ShowWindow on the current process.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation