Code: Select all
(import "kernel32.dll" "GetConsoleWindow")
(import "user32.dll" "ShowWindow")
(constant 'SW_HIDE 0)
(constant 'SW_SHOW 5)
(setq hwndConsole (GetConsoleWindow))
(if-not (zero? hwndConsole)
(ShowWindow hwndConsole SW_HIDE)
)
Code: Select all
(import "kernel32.dll" "GetConsoleWindow")
(import "user32.dll" "ShowWindow")
(constant 'SW_HIDE 0)
(constant 'SW_SHOW 5)
(setq hwndConsole (GetConsoleWindow))
(if-not (zero? hwndConsole)
(ShowWindow hwndConsole SW_HIDE)
)