-------------------------------------------------------------------------
| 105 | |
| 106 | //------------------------------------------------------------------------- |
| 107 | Debugger::ProcessStatus Debugger::HandleDebugEvent( |
| 108 | const DEBUG_EVENT& debugEvent, |
| 109 | IDebugEventsHandler& debugEventsHandler) |
| 110 | { |
| 111 | auto dwProcessId = debugEvent.dwProcessId; |
| 112 | auto dwThreadId = debugEvent.dwThreadId; |
| 113 | |
| 114 | switch (debugEvent.dwDebugEventCode) |
| 115 | { |
| 116 | case CREATE_PROCESS_DEBUG_EVENT: OnCreateProcess(debugEvent, debugEventsHandler); break; |
| 117 | case CREATE_THREAD_DEBUG_EVENT: OnCreateThread(debugEvent.u.CreateThread.hThread, dwThreadId); break; |
| 118 | default: |
| 119 | { |
| 120 | auto hProcess = GetProcessHandle(dwProcessId); |
| 121 | auto hThread = GetThreadHandle(dwThreadId); |
| 122 | return HandleNotCreationalEvent(debugEvent, debugEventsHandler, hProcess, hThread, dwThreadId); |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | return{}; |
| 127 | } |
| 128 | |
| 129 | //------------------------------------------------------------------------- |
| 130 | Debugger::ProcessStatus |
nothing calls this directly
no outgoing calls
no test coverage detected