Crash watcher DumpHandler pointer Error code
| 109 | /// <param name="lpParam">DumpHandler pointer</param> |
| 110 | /// <returns>Error code</returns> |
| 111 | DWORD CALLBACK DumpHandler::WatchdogProc( LPVOID lpParam ) |
| 112 | { |
| 113 | DumpHandler* pClass = reinterpret_cast<DumpHandler*>(lpParam); |
| 114 | |
| 115 | // Wait for crashed thread id |
| 116 | while (pClass && pClass->_FailedThread == 0) |
| 117 | { |
| 118 | if (pClass->_active) |
| 119 | Sleep( 5 ); |
| 120 | else |
| 121 | return ERROR_SUCCESS; |
| 122 | } |
| 123 | |
| 124 | if (pClass) |
| 125 | pClass->ExceptionHandler(); |
| 126 | |
| 127 | return ERROR_SUCCESS; |
| 128 | } |
| 129 | |
| 130 | /// <summary> |
| 131 | /// Actual exception handler |
nothing calls this directly
no test coverage detected