- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for GetConsoleWindow (0.35 sec)
-
src/runtime/testdata/testwinsignal/main.go
// Register to receive all signals. c := make(chan os.Signal, 1) signal.Notify(c) // Get console window handle. kernel32 := syscall.NewLazyDLL("kernel32.dll") getConsoleWindow := kernel32.NewProc("GetConsoleWindow") hwnd, _, err := getConsoleWindow.Call() if hwnd == 0 { log.Fatal("no associated console: ", err) } // Send message to close the console window. const _WM_CLOSE = 0x0010
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 07:37:53 UTC 2022 - 1.3K bytes - Viewed (0)