(commandShow uintptr)
| 3 | import "github.com/gonutz/ide/w32" |
| 4 | |
| 5 | func ShowConsoleAsync(commandShow uintptr) { |
| 6 | console := w32.GetConsoleWindow() |
| 7 | if console != 0 { |
| 8 | _, consoleProcID := w32.GetWindowThreadProcessId(console) |
| 9 | if w32.GetCurrentProcessId() == consoleProcID { |
| 10 | w32.ShowWindowAsync(console, commandShow) |
| 11 | } |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | func main() { |
| 16 | ShowConsoleAsync(w32.SW_HIDE) |