MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / ConsoleHandler

Function ConsoleHandler

DebugViewConsole/DebugViewConsole.cpp:156–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156BOOL WINAPI ConsoleHandler(DWORD dwType)
157{
158 switch (dwType)
159 {
160 case CTRL_C_EVENT:
161 case CTRL_LOGOFF_EVENT:
162 case CTRL_SHUTDOWN_EVENT:
163 fusion::debugviewpp::Quit();
164 // report as handled, so no other handler gets called.
165 return TRUE;
166 default:
167 break;
168 }
169 return FALSE;
170}
171
172int main(int argc, char* argv[])
173try

Callers

nothing calls this directly

Calls 1

QuitFunction · 0.85

Tested by

no test coverage detected