- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CtrlHandler (0.15 sec)
-
build/pause/windows/pause.c
*/ #include <windows.h> #include <stdio.h> #include <string.h> #define STRINGIFY(x) #x #define VERSION_STRING(x) STRINGIFY(x) #ifndef VERSION #define VERSION HEAD #endif BOOL WINAPI CtrlHandler(DWORD fdwCtrlType) { switch (fdwCtrlType) { case CTRL_C_EVENT: fprintf(stderr, "Shutting down, got signal\n"); exit(0); case CTRL_BREAK_EVENT: fprintf(stderr, "Shutting down, got signal\n");
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 13:09:17 UTC 2024 - 1.3K bytes - Viewed (0) -
src/runtime/os_windows.go
} stdcall1(_FreeEnvironmentStringsW, uintptr(strings)) // We call these all the way here, late in init, so that malloc works // for the callback functions these generate. var fn any = ctrlHandler ctrlHandlerPC := compileCallback(*efaceOf(&fn), true) stdcall2(_SetConsoleCtrlHandler, ctrlHandlerPC, 1) monitorSuspendResume() } // exiting is set to non-zero when the process is exiting.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 41.5K bytes - Viewed (0)