mirror of
https://github.com/chylex/Hardcore-Ender-Expansion-2.git
synced 2024-11-23 16:42:47 +01:00
4 lines
303 B
PowerShell
4 lines
303 B
PowerShell
Param([Parameter(Mandatory = $True, Position = 1)][string] $processId)
|
|
Add-Type -MemberDefinition '[DllImport("user32.dll")]public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);' -Name Functions -Namespace Win32
|
|
[Win32.Functions]::ShowWindow((Get-Process -Id $processId).MainWindowHandle, 3)
|