| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected