MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / handlerWrapper

Function handlerWrapper

inc/osvr/Server/RegisterShutdownHandlerWin32.h:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 namespace detail {
45 template <ShutdownHandler F>
46 BOOL WINAPI handlerWrapper(DWORD signalType) {
47 switch (signalType) {
48 case CTRL_C_EVENT:
49 case CTRL_BREAK_EVENT:
50 case CTRL_CLOSE_EVENT:
51 case CTRL_LOGOFF_EVENT:
52 case CTRL_SHUTDOWN_EVENT:
53 F();
54 return TRUE;
55 default:
56 return FALSE;
57 }
58 }
59 } // namespace detail
60#endif // #ifndef OSVR_DOXYGEN_EXTERNAL
61

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected