- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ctrlHandler (0.46 sec)
-
src/runtime/testdata/testwinlibsignal/main.c
#include <windows.h> #include <stdio.h> HANDLE waitForCtrlBreakEvent; BOOL WINAPI CtrlHandler(DWORD fdwCtrlType) { switch (fdwCtrlType) { case CTRL_BREAK_EVENT: SetEvent(waitForCtrlBreakEvent); return TRUE; default: return FALSE; } } int main(void) { waitForCtrlBreakEvent = CreateEvent(NULL, TRUE, FALSE, NULL); if (!waitForCtrlBreakEvent) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 21 13:21:00 UTC 2021 - 1.5K bytes - Viewed (0) -
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)