Forgot to hide console window

This commit is contained in:
Kevin Lukritz
2020-11-09 15:37:49 -06:00
parent 8b70df5178
commit 99e98e68b0

View File

@@ -1,6 +1,6 @@
#region Header #region Header
$Version = "1.0.1" $Version = "1.0.2"
#Dependencies #Dependencies
[Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null [Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
@@ -8,7 +8,7 @@
Add-Type -AssemblyName PresentationFramework Add-Type -AssemblyName PresentationFramework
<#Hide Console Window Hide Console Window
Add-Type -Name Window -Namespace Console -MemberDefinition ' Add-Type -Name Window -Namespace Console -MemberDefinition '
[DllImport("Kernel32.dll")] [DllImport("Kernel32.dll")]
public static extern IntPtr GetConsoleWindow(); public static extern IntPtr GetConsoleWindow();
@@ -20,8 +20,6 @@
$consolePtr = [Console.Window]::GetConsoleWindow() $consolePtr = [Console.Window]::GetConsoleWindow()
[Console.Window]::ShowWindow($consolePtr, 0) > $null [Console.Window]::ShowWindow($consolePtr, 0) > $null
#>
#Talking across runspaces #Talking across runspaces
$Sync = [Hashtable]::Synchronized(@{}) $Sync = [Hashtable]::Synchronized(@{})